projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
eccp optimized the assert away!?!, anyway I wanna fix the real error first...
[libfirm]
/
ir
/
be
/
test
/
ForTest.c
diff --git
a/ir/be/test/ForTest.c
b/ir/be/test/ForTest.c
index
3ca67fb
..
945ab9f
100644
(file)
--- a/
ir/be/test/ForTest.c
+++ b/
ir/be/test/ForTest.c
@@
-12,19
+12,8
@@
typedef int boolean;
#define true 1
#define false 0
#define true 1
#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;
- }
-}
-
static int simpleloop (int a, int b) {
static int simpleloop (int a, int b) {
- int i, j
, delta_x, x
;
+ int i, j;
boolean loopfinal = true;
for(i = 0; (i < 10) && loopfinal; i++) {
boolean loopfinal = true;
for(i = 0; (i < 10) && loopfinal; i++) {
@@
-43,8
+32,6
@@
static int simpleloop (int a, int b) {
}
int main (int argc, char *argv[]) {
}
int main (int argc, char *argv[]) {
- int i, j;
-
printf("ForTest.c\n");
simpleloop(3, 10);
printf("ForTest.c\n");
simpleloop(3, 10);