Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
4c0f1237
Commit
4c0f1237
authored
Aug 04, 2006
by
Matthias Braun
Browse files
reindented source
parent
541b29cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/test/ForTest.c
View file @
4c0f1237
...
...
@@ -13,40 +13,40 @@ typedef int boolean;
#define false 0
static
void
piff
(
void
)
{
int
i
,
j
,
x
,
delta_x
;
delta_x
=
2
;
j
=
0
;
x
=
0
;
for
(
i
=
0
,
x
=
0
;
i
<
1000
;
i
++
,
x
+=
delta_x
)
{
j
+=
x
;
}
int
i
,
j
,
x
,
delta_x
;
delta_x
=
2
;
j
=
0
;
x
=
0
;
for
(
i
=
0
,
x
=
0
;
i
<
1000
;
i
++
,
x
+=
delta_x
)
{
j
+=
x
;
}
}
static
int
simpleloop
(
int
a
,
int
b
)
{
int
i
,
j
,
delta_x
,
x
;
boolean
loopfinal
=
true
;
for
(
i
=
0
;
(
i
<
10
)
&&
loopfinal
;
i
++
)
{
if
(
5
==
i
)
loopfinal
=
false
;
printf
(
"%d "
,
i
);
}
printf
(
"
\n
"
);
for
(
i
=
0
;
i
<
a
;
++
i
)
{
for
(
j
=
0
;
j
<
b
;
++
j
)
{
printf
(
"%d,%d
\n
"
,
i
,
j
);
}
}
return
(
i
);
int
i
,
j
,
delta_x
,
x
;
boolean
loopfinal
=
true
;
for
(
i
=
0
;
(
i
<
10
)
&&
loopfinal
;
i
++
)
{
if
(
5
==
i
)
loopfinal
=
false
;
printf
(
"%d "
,
i
);
}
printf
(
"
\n
"
);
for
(
i
=
0
;
i
<
a
;
++
i
)
{
for
(
j
=
0
;
j
<
b
;
++
j
)
{
printf
(
"%d,%d
\n
"
,
i
,
j
);
}
}
return
(
i
);
}
int
main
(
int
argc
,
char
*
argv
[])
{
int
i
,
j
;
int
i
,
j
;
printf
(
"ForTest.c
\n
"
);
printf
(
"ForTest.c
\n
"
);
simpleloop
(
3
,
10
);
return
0
;
simpleloop
(
3
,
10
);
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment