diff options
| author | Pierre LALET <pierre.lalet@cea.fr> | 2018-12-23 19:26:44 +0100 |
|---|---|---|
| committer | Pierre LALET <pierre.lalet@cea.fr> | 2018-12-23 19:26:44 +0100 |
| commit | 814ccf50314852d12168ad5b8a4a875a86bc6e3d (patch) | |
| tree | e19e9820bb8355730ae9bd0c706e414e39c895ef /miasm2/expression/simplifications_common.py | |
| parent | 011e1e209b3d00afe3c8e65000209a568c5eb791 (diff) | |
| download | miasm-814ccf50314852d12168ad5b8a4a875a86bc6e3d.tar.gz miasm-814ccf50314852d12168ad5b8a4a875a86bc6e3d.zip | |
Fix typos & add codespell
Diffstat (limited to 'miasm2/expression/simplifications_common.py')
| -rw-r--r-- | miasm2/expression/simplifications_common.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/miasm2/expression/simplifications_common.py b/miasm2/expression/simplifications_common.py index 7bdfd33b..6f0eb34a 100644 --- a/miasm2/expression/simplifications_common.py +++ b/miasm2/expression/simplifications_common.py @@ -23,7 +23,7 @@ def simp_cst_propagation(e_s, expr): op_name = expr.op # simpl integer manip # int OP int => int - # TODO: <<< >>> << >> are architecture dependant + # TODO: <<< >>> << >> are architecture dependent if op_name in op_propag_cst: while (len(args) >= 2 and args[-1].is_int() and @@ -240,7 +240,7 @@ def simp_cst_propagation(e_s, expr): else: # Do not consider this case, too tricky (overflow on addition / - # substraction) + # subtraction) pass # A >> X >> Y => A >> (X+Y) if X + Y does not overflow @@ -284,7 +284,7 @@ def simp_cst_propagation(e_s, expr): # ! (!X + int) => X - int # TODO - # ((A & mask) >> shift) whith mask < 2**shift => 0 + # ((A & mask) >> shift) with mask < 2**shift => 0 if op_name == ">>" and args[1].is_int() and args[0].is_op("&"): if (args[0].args[1].is_int() and 2 ** args[1].arg > args[0].args[1].arg): |