about summary refs log tree commit diff stats
path: root/example/expression/get_read_write.py
diff options
context:
space:
mode:
Diffstat (limited to 'example/expression/get_read_write.py')
-rw-r--r--example/expression/get_read_write.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/example/expression/get_read_write.py b/example/expression/get_read_write.py
index f0f48015..d98b461a 100644
--- a/example/expression/get_read_write.py
+++ b/example/expression/get_read_write.py
@@ -21,6 +21,5 @@ for lbl, b in ir_arch.blocs.items():
         print 'read:   ', [str(x) for x in o_r]
         print 'written:', [str(x) for x in o_w]
         print
-ir_arch.gen_graph()
-g = ir_arch.graph()
-open('graph_instr.dot', 'w').write(g)
+
+open('graph_instr.dot', 'w').write(ir_arch.graph.dot())