Skip to content

fix: don't emit get-value in SMT file#688

Draft
fabiomadge wants to merge 1 commit intostrata-org:mainfrom
fabiomadge:fix/no-get-value-in-smt-file
Draft

fix: don't emit get-value in SMT file#688
fabiomadge wants to merge 1 commit intostrata-org:mainfrom
fabiomadge:fix/no-get-value-in-smt-file

Conversation

@fabiomadge
Copy link
Copy Markdown
Contributor

When using the file-based solver, (get-value) was emitted after every (check-sat). If z3 returned unsat, the subsequent (get-value) caused a "model is not available" error and z3 exited with code 1, preventing any remaining check-sat commands from executing.

Pass empty variable lists to checkSat/checkSatAssuming in encodeCore so (get-value) is never written to the SMT file.

@fabiomadge fabiomadge requested a review from a team March 27, 2026 15:50
@fabiomadge fabiomadge marked this pull request as draft March 27, 2026 15:51
When using the file-based solver, (get-value) was emitted after every
(check-sat). If z3 returned unsat, the subsequent (get-value) caused
'model is not available' error and z3 exited with code 1, preventing
any remaining check-sat commands from executing.

Pass empty variable lists to checkSat/checkSatAssuming in encodeCore
so (get-value) is never written to the SMT file.
@fabiomadge fabiomadge force-pushed the fix/no-get-value-in-smt-file branch from 8bc9441 to 5ced8d4 Compare March 27, 2026 15:59
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

Successfully merging this pull request may close these issues.

1 participant