projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Example for optimizing non-strict programs using combo.
[libfirm]
/
ir
/
be
/
test
/
fak.c
diff --git
a/ir/be/test/fak.c
b/ir/be/test/fak.c
index
5f971e4
..
fb6a9e1
100644
(file)
--- a/
ir/be/test/fak.c
+++ b/
ir/be/test/fak.c
@@
-9,6
+9,8
@@
int factorial(int x) {
}
int main(int argc, char **argv) {
- int val = atoi(argv[0]);
+ int val = 7;
+ if(argc>1)
+ val = atoi(argv[1]);
printf("%d\n", factorial(val));
}