Skip to content

Strengthen historical nlsat regression tests#9857

Open
peter941221 wants to merge 3 commits into
Z3Prover:masterfrom
peter941221:test/nlsat-assertions
Open

Strengthen historical nlsat regression tests#9857
peter941221 wants to merge 3 commits into
Z3Prover:masterfrom
peter941221:test/nlsat-assertions

Conversation

@peter941221

@peter941221 peter941221 commented Jun 14, 2026

Copy link
Copy Markdown

This tightens two historical nlsat regressions that were still print-only.

Closes #9859.

In tst_16, the test already exercises the old lws2380 shape, but it only dumped the projected clause. On current master, both projection paths still keep the x7-linked root constraints, so this change turns that observation into an assertion and updates the stale comment to describe the current invariant.

In tst_22, the test already computes whether the projected lemma is falsified at the stored counterexample. It previously printed the result and kept going. This change adds ENSURE(!all_false) so the test fails if that historical unsoundness shape comes back.

Testing:
cmake --build . --target test-z3 -j1
./test-z3 /seq nlsat

@peter941221 peter941221 marked this pull request as ready for review June 14, 2026 22:37
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.

Historical nlsat regression tests still rely on print-only diagnostics

1 participant