X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=testprograms%2Fconst_eval_example.c;h=ba20d8f37798a54f83b15d94487a994c4af7d897;hb=60478f1cd1789370b9f088fa46b13fe71801e126;hp=59384ef68ef063fa7a3e7dd42947cda9632c53ce;hpb=3e5692defee7bec4dcd584b83d1c79baaf6a63c7;p=libfirm diff --git a/testprograms/const_eval_example.c b/testprograms/const_eval_example.c index 59384ef68..ba20d8f37 100644 --- a/testprograms/const_eval_example.c +++ b/testprograms/const_eval_example.c @@ -6,6 +6,10 @@ ** testprogram */ +#include +# include + +# include "irvrfy.h" # include "irdump.h" # include "firm.h" @@ -83,13 +87,15 @@ main(void) add_in_edge (get_irg_end_block(irg), x); mature_block (get_irg_end_block(irg)); + finalize_cons (irg); + printf("Optimizing ...\n"); dead_node_elimination(irg); - printf("Done building the graph. Dumping it.\n"); /* verify the graph */ irg_vrfy(irg); + printf("Done building the graph. Dumping it.\n"); dump_ir_block_graph (irg); printf("use xvcg to view this graph:\n");