Added walker for const code
[libfirm] / testprograms / while_example.c
index c1dd962..0a86f07 100644 (file)
@@ -6,9 +6,12 @@
 ** testprogram.
 */
 
+# include <stdio.h>
+# include <string.h>
+
+# include "irvrfy.h"
 # include "irdump.h"
 # include "firm.h"
-# include "irnode.h"
 
 /**
 ***  This file constructs the ir for the following pseudo-program:
@@ -111,6 +114,8 @@ main(void)
   add_in_edge (get_irg_end_block(irg), x);
   mature_block (get_irg_end_block(irg));
 
+  finalize_cons (irg);
+
   printf("Optimizing ...\n");
 
   local_optimize_graph(irg),
@@ -121,7 +126,7 @@ main(void)
 
   /* output the vcg file */
   printf("Done building the graph.  Dumping it.\n");
-  turn_of_edge_labels();
+  turn_off_edge_labels();
   dump_all_types();
   dump_ir_block_graph (irg);
   printf("Use xvcg to view this graph:\n");