projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fixed out-flags parsing
[libfirm]
/
ir
/
be
/
test
/
condeval.c
1
#if 1
2
int f(int x)
3
{
4
if (x < 23) x = 23;
5
if (x > 42) x = 42;
6
return x;
7
}
8
#endif
9
10
11
#if 1
12
static int g(int x)
13
{
14
return x == 42;
15
}
16
17
void h(int x)
18
{
19
if (g(x)) {
20
puts("1");
21
} else {
22
puts("2");
23
}
24
}
25
#endif
26
27
28
#if 1
29
int rand(void);
30
31
void i(void)
32
{
33
int finish = 0;
34
int x;
35
int y;
36
int z;
37
38
for (x = 0; x < 10 && !finish; x++) {
39
for (y = 0; y < 10 && !finish; y++) {
40
for (z = 0; z < 10 && !finish; z++) {
41
if (rand())
42
finish = 1;
43
//a();
44
}
45
}
46
}
47
}
48
#endif
49
50
51
#if 1
52
int rand(void);
53
54
void j(void)
55
{
56
int finish = 0;
57
int x;
58
int y;
59
int z;
60
61
for (x = 0; !finish; x++) {
62
for (y = 0; !finish; y++) {
63
for (z = 0; !finish; z++) {
64
if (rand()) finish = 1;
65
}
66
}
67
}
68
}
69
#endif
70
71
int main() {
72
return 0;
73
}