diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-09-20 07:53:13 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-10-01 06:55:22 +0200 |
| commit | 9c4c548e372311f6d685647b3cfed35e1579ad54 (patch) | |
| tree | e29e888313ab79d5150ecd517c0fe3d8ada8e977 /miasm2/ir/ir.py | |
| parent | 9c8596646ba6150694deb984f25aaad73d2c7125 (diff) | |
| download | miasm-9c4c548e372311f6d685647b3cfed35e1579ad54.tar.gz miasm-9c4c548e372311f6d685647b3cfed35e1579ad54.zip | |
Expresion: use ExprAssign instead of ExprAff
ExprAff stands for (in french) "Expression affectation" We will now use ExprAssign (for Expression Assignment) (instead of ExprAss)
Diffstat (limited to 'miasm2/ir/ir.py')
| -rw-r--r-- | miasm2/ir/ir.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/miasm2/ir/ir.py b/miasm2/ir/ir.py index db47d4ef..a77ce992 100644 --- a/miasm2/ir/ir.py +++ b/miasm2/ir/ir.py @@ -58,7 +58,7 @@ class AssignBlock(object): def __init__(self, irs=None, instr=None): """Create a new AssignBlock - @irs: (optional) sequence of ExprAff, or dictionnary dst (Expr) -> src + @irs: (optional) sequence of ExprAssign, or dictionnary dst (Expr) -> src (Expr) @instr: (optional) associate an instruction with this AssignBlock @@ -66,7 +66,7 @@ class AssignBlock(object): if irs is None: irs = [] self._instr = instr - self._assigns = {} # ExprAff.dst -> ExprAff.src + self._assigns = {} # ExprAssign.dst -> ExprAssign.src # Concurrent assignments are handled in _set if hasattr(irs, "iteritems"): @@ -250,10 +250,10 @@ class AssignBlock(object): out.append("%s = %s" % (dst, src)) return "\n".join(out) - def dst2ExprAff(self, dst): - """Return an ExprAff corresponding to @dst equation + def dst2ExprAssign(self, dst): + """Return an ExprAssign corresponding to @dst equation @dst: Expr instance""" - return m2_expr.ExprAff(dst, self[dst]) + return m2_expr.ExprAssign(dst, self[dst]) def simplify(self, simplifier): """ |