projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
- Fixed strict-convs before Stores again: We can skip at least those
[libfirm]
/
ir
/
be
/
test
/
codegen
/
countingloop.c
1
char *pt;
2
3
int gf, gm;
4
5
int f(int max) {
6
int i;
7
int f = 0;
8
int m = 0;
9
char *p = pt;
10
11
for(i = 0; i < max; ++i) {
12
if(pt[i] == 0) {
13
f++;
14
} else {
15
m++;
16
}
17
}
18
gf = f;
19
gm = m;
20
return 0;
21
}