From 70e7237106321ddf6fb2db198cdf45d06b74581a Mon Sep 17 00:00:00 2001 From: serpilliere Date: Tue, 24 Jun 2014 15:00:33 +0200 Subject: Fix operand unify irem/imod --- miasm2/expression/simplifications_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'miasm2/expression/simplifications_common.py') 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) -- cgit 1.4.1