diff options
| author | Ajax <commial@gmail.com> | 2015-12-04 18:46:48 +0100 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2015-12-07 11:15:43 +0100 |
| commit | 308a634b7c2c20692e85f5b72178e00d072b7bcd (patch) | |
| tree | 3e091aef76acdf18d6592c2a058345d87489227b /example/disasm/full.py | |
| parent | 42d4998c1646e48fd9cb150d1aa0e9970b5717c8 (diff) | |
| download | focaccia-miasm-308a634b7c2c20692e85f5b72178e00d072b7bcd.tar.gz focaccia-miasm-308a634b7c2c20692e85f5b72178e00d072b7bcd.zip | |
IR: replace `.g` with a lazy built `.graph`, avoiding the need of `gen_graph`
Diffstat (limited to 'example/disasm/full.py')
| -rw-r--r-- | example/disasm/full.py | 6 |
1 files changed, 2 insertions, 4 deletions
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) |