diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2017-02-15 07:20:23 +0100 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2017-03-13 14:13:09 +0100 |
| commit | c3940991f2461278fdb3c7faff8b270320585556 (patch) | |
| tree | d4eae779f301e0d346c757b92e7461a7d4dd4c89 /example/expression/asm_to_ir.py | |
| parent | e94fb099ce7cf80f57d21306de4c2b59ce7b3006 (diff) | |
| download | miasm-c3940991f2461278fdb3c7faff8b270320585556.tar.gz miasm-c3940991f2461278fdb3c7faff8b270320585556.zip | |
IR: rename blocs to blocks
Diffstat (limited to 'example/expression/asm_to_ir.py')
| -rw-r--r-- | example/expression/asm_to_ir.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/example/expression/asm_to_ir.py b/example/expression/asm_to_ir.py index 2f8999a4..552ddd36 100644 --- a/example/expression/asm_to_ir.py +++ b/example/expression/asm_to_ir.py @@ -41,8 +41,8 @@ for b in blocs: ir_arch.add_bloc(b) # Display IR -for lbl, b in ir_arch.blocs.items(): - print b +for lbl, irblock in ir_arch.blocks.items(): + print irblock # Dead propagation open('graph.dot', 'w').write(ir_arch.graph.dot()) @@ -51,6 +51,6 @@ ir_arch.dead_simp() open('graph2.dot', 'w').write(ir_arch.graph.dot()) # Display new IR -print 'new ir blocs' -for lbl, b in ir_arch.blocs.items(): - print b +print 'new ir blocks' +for lbl, irblock in ir_arch.blocks.items(): + print irblock |