projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added stickyness
[libfirm]
/
testprograms
/
three_cfpred_example.c
diff --git
a/testprograms/three_cfpred_example.c
b/testprograms/three_cfpred_example.c
index
c6edb4d
..
2c283a1
100644
(file)
--- a/
testprograms/three_cfpred_example.c
+++ b/
testprograms/three_cfpred_example.c
@@
-29,7
+29,7
@@
* Block1 scnCondBlock
* | | |
* | | |
* Block1 scnCondBlock
* | | |
* | | |
- *
| \ / \ /
+ * | \ / \ /
* | Block2 Block3
* \ | /
* \ | /
* | Block2 Block3
* \ | /
* \ | /
@@
-40,9
+40,9
@@
* This is a program as, e.g.,
*
* if () then
* This is a program as, e.g.,
*
* if () then
- * { Jmp label1; } // happens anyways
+ * { Jmp label1; } //
happens anyways
* else
* else
- * { Jmp label1; } // happens anyways
+ * { Jmp label1; } //
happens anyways
* label1:
* return();
* Jmp label1;
* label1:
* return();
* Jmp label1;
@@
-75,11
+75,11
@@
int main(int argc, char **argv)
#define METHODNAME "THREE_CFPRED_EXAMPLE_main"
#define NRARGS 1
#define NRES 1
#define METHODNAME "THREE_CFPRED_EXAMPLE_main"
#define NRARGS 1
#define NRES 1
- printf("\nCreating an IR graph: ...\n");
+ printf("\nCreating an IR graph:
THREE_CFPRED_EXAMPLE
...\n");
owner = get_glob_type();
proc_main = new_type_method(id_from_str(METHODNAME, strlen(METHODNAME)),
owner = get_glob_type();
proc_main = new_type_method(id_from_str(METHODNAME, strlen(METHODNAME)),
-
NRARGS, NRES);
+ NRARGS, NRES);
set_method_param_type(proc_main, 0, prim_t_int);
set_method_res_type(proc_main, 0, prim_t_int);
set_method_param_type(proc_main, 0, prim_t_int);
set_method_res_type(proc_main, 0, prim_t_int);