From 308a634b7c2c20692e85f5b72178e00d072b7bcd Mon Sep 17 00:00:00 2001 From: Ajax Date: Fri, 4 Dec 2015 18:46:48 +0100 Subject: IR: replace `.g` with a lazy built `.graph`, avoiding the need of `gen_graph` --- example/disasm/full.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'example/disasm/full.py') diff --git a/example/disasm/full.py b/example/disasm/full.py index d939d430..33b2f41f 100644 --- a/example/disasm/full.py +++ b/example/disasm/full.py @@ -194,13 +194,11 @@ if args.gen_ir: log.info("Print blocs (with analyse)") for label, bloc in ir_arch_a.blocs.iteritems(): print bloc - ir_arch.gen_graph() - ir_arch_a.gen_graph() if args.simplify: ir_arch_a.dead_simp() - out = ir_arch_a.graph() + out = ir_arch_a.graph.dot() open('graph_irflow.dot', 'w').write(out) - out = ir_arch.graph() + out = ir_arch.graph.dot() open('graph_irflow_raw.dot', 'w').write(out) -- cgit 1.4.1