about summary refs log tree commit diff stats
path: root/miasm2/expression/expression_helper.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2014-10-31 10:41:18 +0100
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2014-10-31 10:41:18 +0100
commit80cfb30b725cf4d53dea151755a3328f18db68c3 (patch)
tree37b6e8d0e6a39783a5e82e3e3e73894bae6ea86c /miasm2/expression/expression_helper.py
parent37a2072c9efc9980638a58d4464c6e87e9863bbf (diff)
downloadmiasm-80cfb30b725cf4d53dea151755a3328f18db68c3.tar.gz
miasm-80cfb30b725cf4d53dea151755a3328f18db68c3.zip
Expression: fix umod/udiv in expression simplification
Diffstat (limited to 'miasm2/expression/expression_helper.py')
-rw-r--r--miasm2/expression/expression_helper.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/miasm2/expression/expression_helper.py b/miasm2/expression/expression_helper.py
index 92f46324..9c98b08f 100644
--- a/miasm2/expression/expression_helper.py
+++ b/miasm2/expression/expression_helper.py
@@ -128,7 +128,8 @@ def merge_sliceto_slice(args):
 
 
 op_propag_cst = ['+', '*', '^', '&', '|', '>>',
-                 '<<', "a>>", ">>>", "<<<", "/", "%", 'idiv', 'imod']
+                 '<<', "a>>", ">>>", "<<<",
+                 "/", "%", 'idiv', 'imod', 'umod', 'udiv']
 
 
 def is_pure_int(e):