Skip to content

Commit

Permalink
fix for z3-solver>=4.8.10
Browse files Browse the repository at this point in the history
  • Loading branch information
bdcht committed Mar 28, 2021
1 parent 5db8c2e commit 5226b0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_cas_smt.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ def test_reg_bv(x,y):
assert complexity(z)<100
m = solver([z==cst(0x0,32),xl==0xa,xh==0x84]).get_model()
assert m is not None
xv,yv = (m[v].as_long() for v in m)
xv = m.eval(x.to_smtlib()).as_long()
yv = m.eval(y.to_smtlib()).as_long()
assert m.eval(xl.to_smtlib()).as_long() == 0xa
assert m.eval(xh.to_smtlib()).as_long() == 0x84
assert ((xv^0xcafebabe)+(yv+(xv>>2)))&0xffffffff == 0
Expand Down

0 comments on commit 5226b0c

Please sign in to comment.