From b4114c3e786cf9c90b9c81cb4594d7775a266f5d Mon Sep 17 00:00:00 2001 From: Ajax Date: Mon, 9 Nov 2015 14:49:51 +0100 Subject: Example: move output .txt to .dot --- example/expression/asm_to_ir.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example/expression/asm_to_ir.py') diff --git a/example/expression/asm_to_ir.py b/example/expression/asm_to_ir.py index ee8a481a..3ed59ffe 100644 --- a/example/expression/asm_to_ir.py +++ b/example/expression/asm_to_ir.py @@ -47,11 +47,11 @@ for lbl, b in ir_arch.blocs.items(): # Dead propagation ir_arch.gen_graph() out = ir_arch.graph() -open('graph.txt', 'w').write(out) +open('graph.dot', 'w').write(out) print '*' * 80 ir_arch.dead_simp() out2 = ir_arch.graph() -open('graph2.txt', 'w').write(out2) +open('graph2.dot', 'w').write(out2) # Display new IR print 'new ir blocs' -- cgit 1.4.1