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

Unsat cores empty when using from_string with optimize in Z3Py #7449

Closed
ZakSingh opened this issue Nov 11, 2024 · 0 comments
Closed

Unsat cores empty when using from_string with optimize in Z3Py #7449

ZakSingh opened this issue Nov 11, 2024 · 0 comments

Comments

@ZakSingh
Copy link

When using the Solver's from_string method in z3py to load a SMT2 file, unsat cores are produced correctly for tracked assertions in the smtlib file. However, if I switch from using Solver to Optimize, the unsat core list is always empty.

Also - to produce unsat cores with a Solver when using from_string, I have to include (set-option :produce-unsat-cores true) in the smtlib file as solver.set(unsat_core=True) doesn't seem to affect the from_string call. I'm not sure whether this is expected behavior or not.

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

1 participant