diff options
Diffstat (limited to 'miasm2/expression/simplifications_common.py')
| -rw-r--r-- | miasm2/expression/simplifications_common.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/miasm2/expression/simplifications_common.py b/miasm2/expression/simplifications_common.py index a52debe6..2d5e4e6b 100644 --- a/miasm2/expression/simplifications_common.py +++ b/miasm2/expression/simplifications_common.py @@ -30,6 +30,8 @@ def simp_cst_propagation(e_s, e): o = i1.arg + i2.arg elif op == '*': o = i1.arg * i2.arg + elif op == '**': + o =i1.arg ** i2.arg elif op == '^': o = i1.arg ^ i2.arg elif op == '&': @@ -194,7 +196,7 @@ def simp_cst_propagation(e_s, e): j += 1 i += 1 - if op in ['|', '&', '%', '/'] and len(args) == 1: + if op in ['|', '&', '%', '/', '**'] and len(args) == 1: return args[0] # A <<< A.size => A |