diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2016-10-22 23:57:43 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2016-11-04 16:45:46 +0100 |
| commit | f0fbc59a663774dc4f4861308bee3f91ccd9746d (patch) | |
| tree | 21a7d7ad5d6da120e8e23e0b92725073d4d4e27c /miasm2/ir/symbexec.py | |
| parent | 05bdb3651796525100a5cbe160e2f8ad93c80316 (diff) | |
| download | miasm-f0fbc59a663774dc4f4861308bee3f91ccd9746d.tar.gz miasm-f0fbc59a663774dc4f4861308bee3f91ccd9746d.zip | |
ExprCompose: updt internal struct
Diffstat (limited to '')
| -rw-r--r-- | miasm2/ir/symbexec.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/miasm2/ir/symbexec.py b/miasm2/ir/symbexec.py index 65515c64..db3eacdc 100644 --- a/miasm2/ir/symbexec.py +++ b/miasm2/ir/symbexec.py @@ -229,9 +229,8 @@ class symbexec(object): ret = m2_expr.ExprOp(expr.op, *args) elif isinstance(expr, m2_expr.ExprCompose): args = [] - for (arg, start, stop) in expr.args: - arg = self.apply_expr_on_state_visit_cache(arg, state, cache, level+1) - args.append(arg) + for arg in expr.args: + args.append(self.apply_expr_on_state_visit_cache(arg, state, cache, level+1)) ret = m2_expr.ExprCompose(*args) else: raise TypeError("Unknown expr type") @@ -378,7 +377,6 @@ class symbexec(object): """ pool_out = {} eval_cache = {} - for dst, src in assignblk.iteritems(): src = self.eval_expr(src, eval_cache) if isinstance(dst, m2_expr.ExprMem): |