diff options
| author | Ajax <commial@gmail.com> | 2017-03-30 16:10:13 +0200 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2017-03-30 16:25:41 +0200 |
| commit | 8c211caed99021a3654c14db4cdc5c6ff0b612ee (patch) | |
| tree | 3fca770e9ba8bd395a4f675dabd785d0ee0c3543 /test/analysis/modularintervals.py | |
| parent | 19af18b7bd57c37c6bdb3ef1a98b8111a9b74259 (diff) | |
| download | miasm-8c211caed99021a3654c14db4cdc5c6ff0b612ee.tar.gz miasm-8c211caed99021a3654c14db4cdc5c6ff0b612ee.zip | |
Update regression tests fo ModularIntervals mul
Diffstat (limited to 'test/analysis/modularintervals.py')
| -rw-r--r-- | test/analysis/modularintervals.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/analysis/modularintervals.py b/test/analysis/modularintervals.py index 36a29aa8..45aa82bd 100644 --- a/test/analysis/modularintervals.py +++ b/test/analysis/modularintervals.py @@ -89,6 +89,13 @@ def test(left, right): rez = (x ^ y) & mask assert rez in result + # Check MUL + result = left_i * right_i + for x in left_values: + for y in right_values: + rez = (x * y) & mask + assert rez in result + # Check >> result = left_i >> right_i for x in left_values: |