From 43d26a5244e9fb161012db97d4d04600b24e1f18 Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Wed, 9 Aug 2017 15:09:41 +0200 Subject: Simplifications: add regression tests --- test/expression/simplifications.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/expression/simplifications.py') 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)), ] -- cgit 1.4.1