projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
call optimize_cf() to delete dead-code that might arise after cond_eval
[libfirm]
/
ir
/
be
/
test
/
tailrec.c
1
#include <stdio.h>
2
3
static unsigned fak(unsigned n)
4
{
5
if (n == 0)
6
return 1;
7
8
return n * fak(n - 1);
9
}
10
11
12
int main(int argc, char *argv[])
13
{
14
int x = 4;
15
16
printf("%d! = %d\n", x, fak(x));
17
18
return 0;
19
}