about summary refs log tree commit diff stats
path: root/example/expression/solve_condition_stp.py
diff options
context:
space:
mode:
Diffstat (limited to 'example/expression/solve_condition_stp.py')
-rw-r--r--example/expression/solve_condition_stp.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/example/expression/solve_condition_stp.py b/example/expression/solve_condition_stp.py
index 93c17018..67d536d5 100644
--- a/example/expression/solve_condition_stp.py
+++ b/example/expression/solve_condition_stp.py
@@ -80,11 +80,11 @@ def emul_symb(ir_arch, mdis, states_todo, states_done):
             # Create 2 states, each including complementary conditions
             p1 = sb.symbols.copy()
             p2 = sb.symbols.copy()
-            c1 = {ad.cond: ExprInt_from(ad.cond, 0)}
-            c2 = {ad.cond: ExprInt_from(ad.cond, 1)}
+            c1 = {ad.cond: ExprInt(0, ad.cond.size)}
+            c2 = {ad.cond: ExprInt(1, ad.cond.size)}
             print ad.cond
-            p1[ad.cond] = ExprInt_from(ad.cond, 0)
-            p2[ad.cond] = ExprInt_from(ad.cond, 1)
+            p1[ad.cond] = ExprInt(0, ad.cond.size)
+            p2[ad.cond] = ExprInt(1, ad.cond.size)
             ad1 = expr_simp(sb.eval_expr(ad.replace_expr(c1), {}))
             ad2 = expr_simp(sb.eval_expr(ad.replace_expr(c2), {}))
             if not (isinstance(ad1, ExprInt) or (isinstance(ad1, ExprId) and isinstance(ad1.name, asmbloc.asm_label)) and