diff options
| author | serpilliere <devnull@localhost> | 2014-06-24 15:00:33 +0200 |
|---|---|---|
| committer | serpilliere <devnull@localhost> | 2014-06-24 15:00:33 +0200 |
| commit | 70e7237106321ddf6fb2db198cdf45d06b74581a (patch) | |
| tree | ac4f26904f54e23820b35e7b1a1f975dcb879b2d /miasm2/expression/simplifications_common.py | |
| parent | d5a38769bfbd94ed46bf654c4dac1733e088d5bf (diff) | |
| download | miasm-70e7237106321ddf6fb2db198cdf45d06b74581a.tar.gz miasm-70e7237106321ddf6fb2db198cdf45d06b74581a.zip | |
Fix operand unify irem/imod
Diffstat (limited to 'miasm2/expression/simplifications_common.py')
| -rw-r--r-- | miasm2/expression/simplifications_common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm2/expression/simplifications_common.py b/miasm2/expression/simplifications_common.py index fc85f118..208870eb 100644 --- a/miasm2/expression/simplifications_common.py +++ b/miasm2/expression/simplifications_common.py @@ -60,7 +60,7 @@ def simp_cst_propagation(e_s, e): x1 = mod_size2int[i1.arg.size](i1.arg) x2 = mod_size2int[i2.arg.size](i2.arg) o = mod_size2uint[i1.arg.size](x1 / x2) - elif op == 'irem': + elif op == 'imod': assert(i2.arg) x1 = mod_size2int[i1.arg.size](i1.arg) x2 = mod_size2int[i2.arg.size](i2.arg) @@ -110,7 +110,7 @@ def simp_cst_propagation(e_s, e): # op A => A if op in ['+', '*', '^', '&', '|', '>>', '<<', - 'a>>', '<<<', '>>>', 'idiv', 'irem'] and len(args) == 1: + 'a>>', '<<<', '>>>', 'idiv', 'imod'] and len(args) == 1: return args[0] # A-B => A + (-B) |