* Block1 scnCondBlock
* | | |
* | | |
- * | \ / \ /
+ * | \ / \ /
* | Block2 Block3
* \ | /
* \ | /
* This is a program as, e.g.,
*
* if () then
- * { Jmp label1; } // happens anyways
+ * { Jmp label1; } // happens anyways
* else
- * { Jmp label1; } // happens anyways
+ * { Jmp label1; } // happens anyways
* label1:
* return();
* Jmp label1;
#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)),
- NRARGS, NRES);
+ NRARGS, NRES);
set_method_param_type(proc_main, 0, prim_t_int);
set_method_res_type(proc_main, 0, prim_t_int);