diff options
| author | serpilliere <fabrice.desclaux@cea.fr> | 2015-02-21 21:09:07 +0100 |
|---|---|---|
| committer | serpilliere <fabrice.desclaux@cea.fr> | 2015-02-22 01:48:27 +0100 |
| commit | dd2da246f676ff827201c9eee3ae698081875bf7 (patch) | |
| tree | 92f0b1839ac0398426ad0332cd973cf9b41ca8c9 /example/ida/graph_ir.py | |
| parent | f26427471fb9cda89b36b1d2609a9f58f1d79d68 (diff) | |
| download | focaccia-miasm-dd2da246f676ff827201c9eee3ae698081875bf7.tar.gz focaccia-miasm-dd2da246f676ff827201c9eee3ae698081875bf7.zip | |
Expression: remove code which uses expression modifications
Diffstat (limited to 'example/ida/graph_ir.py')
| -rw-r--r-- | example/ida/graph_ir.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/ida/graph_ir.py b/example/ida/graph_ir.py index a1db6cbd..3a936e37 100644 --- a/example/ida/graph_ir.py +++ b/example/ida/graph_ir.py @@ -139,8 +139,8 @@ print "IR ok... %x" % ad for irb in ir_arch.blocs.values(): for irs in irb.irs: - for i, e in enumerate(irs): - e.dst, e.src = expr_simp(e.dst), expr_simp(e.src) + for i, expr in enumerate(irs): + irs[i] = ExprAff(expr_simp(expr.dst), expr_simp(expr.src)) ir_arch.gen_graph() out = ir_arch.graph() |