Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

z3.Tactics returning z3.unknown upon BitVecRef < BitVecRef #7345

Closed
Notselwyn opened this issue Aug 14, 2024 · 2 comments
Closed

z3.Tactics returning z3.unknown upon BitVecRef < BitVecRef #7345

Notselwyn opened this issue Aug 14, 2024 · 2 comments

Comments

@Notselwyn
Copy link

Notselwyn commented Aug 14, 2024

Hi, the following returns z3.unknown on PIP package z3-solver ver 4.13.0.0:

s = z3.Then('elim-term-ite', 'solve-eqs').solver()
s.add(z3.BitVec("abc", 12) > z3.BitVecVal(0x200, 12))
s.check()  # z3.unknown

s.reason_unknown() returns "unknown". It is not specific to elim-term-ite or solve-eqs.

I'm confident this is a bug, because the following examples do return z3.sat:

z3.solve(z3.BitVec("abc", 12) > z3.BitVecVal(0x200, 12))
s = z3.Solver()
s.add(z3.BitVec("abc", 12) > z3.BitVecVal(0x200, 12))
s.check()

The same happens for <, >, <=, etc

@NikolajBjorner
Copy link
Contributor

try

s = z3.Then('elim-term-ite', 'solve-eqs', 'smt').solver()

otehrwise it will only run the two tactics that you specify and they are not complete solvers.

@Notselwyn
Copy link
Author

Great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants