about summary refs log tree commit diff stats
path: root/example/expression
diff options
context:
space:
mode:
authorserpilliere <devnull@localhost>2012-06-21 10:08:40 +0200
committerserpilliere <devnull@localhost>2012-06-21 10:08:40 +0200
commit50c79519af9c768eb1cddc02792b5c68a433bd4c (patch)
tree8f0341ce93bf9409d12cb067c04bc8f04211478b /example/expression
parent662b6860e39e15e79940b92868eb2b5b659af26c (diff)
downloadfocaccia-miasm-50c79519af9c768eb1cddc02792b5c68a433bd4c.tar.gz
focaccia-miasm-50c79519af9c768eb1cddc02792b5c68a433bd4c.zip
expression_helper: add exprcond simpl
Diffstat (limited to 'example/expression')
-rw-r--r--example/expression/manip_expression6.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/example/expression/manip_expression6.py b/example/expression/manip_expression6.py
index 079faf76..65d43f04 100644
--- a/example/expression/manip_expression6.py
+++ b/example/expression/manip_expression6.py
@@ -97,11 +97,16 @@ to_test = [(ExprInt32(5)+c+a+b-a+ExprInt32(1)-ExprInt32(5)),
 
            ExprMem(a)[:32],
            ExprMem(a)[:16],
+
+           ExprCond(ExprInt32(1), a, b),
+           ExprCond(ExprInt32(0), b, a),
+
+
            ]
 
 
 for e in to_test:
     print "#"*80
     print e
-    print e.visit(expr_simp)
+    print expr_simp(e)