/* (C) 1998 - 2000 by Universitaet Karlsruhe
-** All rights reserved.
-**
-** Authors: Christian Schaefer, Goetz Lindenmaier
-**
-** testprogram.
+* All rights reserved.
+*
+* Authors: Christian Schaefer, Goetz Lindenmaier
+*
+* testprogram.
*/
# include <stdio.h>
# include "firm.h"
/**
-*** This file constructs the ir for the following pseudo-program:
-***
-*** main() {
-*** int a = 0; // pos 0
-*** int b = 1; // pos 1
-*** int h; // pos 2
-***
-*** if (0 == 0)
-*** { a = 2; }
-***
-*** while (0 == 0) loop {
-*** h = a;
-*** a = b;
-*** b = h;
-*** }
-***
-*** return a-b;
-*** }
+* This file constructs the ir for the following pseudo-program:
+*
+* main() {
+* int a = 0; // pos 0
+* int b = 1; // pos 1
+* int h; // pos 2
+*
+* if (0 == 0)
+* { a = 2; }
+*
+* while (0 == 0) loop {
+* h = a;
+* a = b;
+* b = h;
+* }
+*
+* return a-b;
+* }
**/
int
set_method_res_type(proc_main, 0, prim_t_int);
owner = new_type_class (id_from_str ("IF_WHILE_EXAMPLE", 16));
ent = new_entity (owner, id_from_str ("main", 4), proc_main);
+ get_entity_ld_name(ent);
/* Generates start and end blocks and nodes and a first, initial block */
irg = new_ir_graph (ent, 4);