diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2017-08-09 15:09:41 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2017-08-10 09:18:33 +0200 |
| commit | 43d26a5244e9fb161012db97d4d04600b24e1f18 (patch) | |
| tree | 95c231e5fcc40ce3c01bc5b68ff2e3db75c90c5f /test/expression/simplifications.py | |
| parent | 7bfaf3a1e68e826557482023523607b26a0b4b6a (diff) | |
| download | focaccia-miasm-43d26a5244e9fb161012db97d4d04600b24e1f18.tar.gz focaccia-miasm-43d26a5244e9fb161012db97d4d04600b24e1f18.zip | |
Simplifications: add regression tests
Diffstat (limited to 'test/expression/simplifications.py')
| -rw-r--r-- | test/expression/simplifications.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/expression/simplifications.py b/test/expression/simplifications.py index efabddb5..ad420621 100644 --- a/test/expression/simplifications.py +++ b/test/expression/simplifications.py @@ -318,6 +318,10 @@ to_test = [(ExprInt(1, 32) - ExprInt(1, 32), ExprInt(0, 32)), ExprMem(a + ExprInt(0x42, a.size), 16), ExprInt(0x0321, 16)), ExprCompose(ExprInt(0x0123, 16), ExprMem(a + ExprInt(0x40, a.size), 32), ExprInt(0x0321, 16))), + (ExprCompose(ExprCond(a, i1, i0), ExprCond(a, i1, i2)), + ExprCond(a, ExprInt(0x100000001, 64), ExprInt(0x200000000, 64))), + ((ExprMem(ExprCond(a, b, c)),ExprCond(a, ExprMem(b), ExprMem(c)))), + (ExprCond(a, i0, i1) + ExprCond(a, i0, i1), ExprCond(a, i0, i2)), ] |