about summary refs log tree commit diff stats
path: root/example/ida/graph_ir.py
diff options
context:
space:
mode:
Diffstat (limited to 'example/ida/graph_ir.py')
-rw-r--r--example/ida/graph_ir.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/example/ida/graph_ir.py b/example/ida/graph_ir.py
index b181f72a..4447cadd 100644
--- a/example/ida/graph_ir.py
+++ b/example/ida/graph_ir.py
@@ -119,8 +119,7 @@ print hex(ad)
 ab = mdis.dis_multibloc(ad)
 
 print "generating graph"
-g = bloc2graph(ab, True)
-open('asm_flow.dot', 'w').write(g)
+open('asm_flow.dot', 'w').write(ab.graph.dot(label=True))
 
 
 print "generating IR... %x" % ad