diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2020-10-04 23:16:08 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2020-10-04 23:16:08 +0200 |
| commit | 73b9339e5808612eb31b32896c80333b5b939ecf (patch) | |
| tree | ed2320d770f764cb2cb0a8fdabe6a5fab371f574 /example/disasm/full.py | |
| parent | 218492cd10b339a8d47d2fdbd61953fcf954fb8b (diff) | |
| download | miasm-73b9339e5808612eb31b32896c80333b5b939ecf.tar.gz miasm-73b9339e5808612eb31b32896c80333b5b939ecf.zip | |
Use blocks in ircfg instead of ir_arch
Diffstat (limited to 'example/disasm/full.py')
| -rw-r--r-- | example/disasm/full.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/example/disasm/full.py b/example/disasm/full.py index 9e739109..47eca56d 100644 --- a/example/disasm/full.py +++ b/example/disasm/full.py @@ -240,9 +240,6 @@ if args.gen_ir: ircfg = ir_arch.new_ircfg() ircfg_a = ir_arch.new_ircfg() - ir_arch.blocks = {} - ir_arch_a.blocks = {} - head = list(entry_points)[0] for ad, asmcfg in viewitems(all_funcs_blocks): @@ -252,13 +249,13 @@ if args.gen_ir: ir_arch_a.add_asmblock_to_ircfg(block, ircfg_a) log.info("Print blocks (without analyse)") - for label, block in viewitems(ir_arch.blocks): + for label, block in viewitems(ircfg.blocks): print(block) log.info("Gen Graph... %x" % ad) log.info("Print blocks (with analyse)") - for label, block in viewitems(ir_arch_a.blocks): + for label, block in viewitems(ircfg_a.blocks): print(block) if args.simplify > 0: |