Open and answer this issue on GitHub.
ready · opened 2026-11-21 · updated 2026-11-21 · 0 comments
Part of #1319
The owner’s direction of 2026-11-07 (comment on #1319): the solver is a product of its own, faster than z3 and cvc5, using fewer resources (ADR-270 D17). Today sv_ask (packages/logic/src/sv_ask.nika) always runs Fourier-Motzkin (lg_check) first and asks the new engine only where it answers unknown; sv_strategy_pick (packages/logic/src/sv_strategy.nika) chooses between search and walk-first, never Fourier-Motzkin. This part makes Fourier-Motzkin one pipeline the strategy picks (D8, D14) and adds a cheap stage before it.
sv_strategy_pick chooses it from the features (small, dense, without disjunctions), the same way it chooses the search or the walk, rather than sv_ask always running it first. The compiler’s order (FM first, #1285) stays until the measurements show that the pick is cheaper on the compiler’s queries. Test: a tests/compiler/tests/solver_*.nika program whose query the pick sends to Fourier-Motzkin and one it sends to the search, printing the pipeline.tests/solver/compiler) and on QF_LIA (tests/solver/qflia): instructions and answers before and after, recorded in this issue. It is kept only where it saves work or answers more.sv_strategy_pick can choose Fourier-Motzkin from a query’s features, shown by a test, and the cheap stage’s instructions and answers before and after on the compiler’s queries and on QF_LIA are recorded here, each step kept only where it saves work or answers more; the commit of the last item carries Fixes #THIS.
packages/logic/src/sv_ask.nika, packages/logic/src/sv_strategy.nika, new tests in tests/compiler/tests/solver_*.nika. No new Rust (CLAUDE.md).
Split from #1319 by Claude Code