about summary refs log tree commit diff stats
path: root/example/expression/asm_to_ir.py
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2015-11-09 14:49:51 +0100
committerAjax <commial@gmail.com>2015-11-09 15:01:12 +0100
commitb4114c3e786cf9c90b9c81cb4594d7775a266f5d (patch)
tree55e86387c9e1ee9b2b0c7fed92d8cf6cffde9160 /example/expression/asm_to_ir.py
parent7681a432c7c98df9d075701a172df0d5f311f753 (diff)
downloadfocaccia-miasm-b4114c3e786cf9c90b9c81cb4594d7775a266f5d.tar.gz
focaccia-miasm-b4114c3e786cf9c90b9c81cb4594d7775a266f5d.zip
Example: move output .txt to .dot
Diffstat (limited to 'example/expression/asm_to_ir.py')
-rw-r--r--example/expression/asm_to_ir.py4
1 files changed, 2 insertions, 2 deletions
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'