From de1f8324bee530930d75f0053d5fabbb0cf413d2 Mon Sep 17 00:00:00 2001 From: serpilliere Date: Wed, 4 Jul 2012 09:44:23 +0200 Subject: expression_helper: fix exprcompose simplification --- example/expression/manip_expression6.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'example/expression/manip_expression6.py') diff --git a/example/expression/manip_expression6.py b/example/expression/manip_expression6.py index 024de0f4..180022e1 100644 --- a/example/expression/manip_expression6.py +++ b/example/expression/manip_expression6.py @@ -102,6 +102,11 @@ to_test = [(ExprInt32(5)+c+a+b-a+ExprInt32(1)-ExprInt32(5)), ExprCond(ExprInt32(0), b, a), ExprInt32(0x80000000)[31:32], + ExprCompose([(ExprInt16(0x1337)[:8], 0, 8),(ExprInt16(0x1337)[8:16], 8, 16)]), + + ExprCompose([(ExprInt32(0x1337beef)[8:16], 8, 16), + (ExprInt32(0x1337beef)[:8], 0, 8), + (ExprInt32(0x1337beef)[16:32], 16, 32)]), ] -- cgit 1.4.1