Repository navigation
feat(aplite): add reproducible seeded scalar model search - #2168
Merged
mergify[bot] merged 1 commit intoOct 26, 2026
Conversation
Aplite's fixed SAT phases produce the same witness for repeated scalar queries. Add solve_seeded with caller-owned seed-selected initial phases so constrained-randomization consumers can vary witnesses without changing the asserted formula or using global RNG state. Keep the existing proof search paths unchanged and use one bounded CDCL search for seeded queries. Replay all SAT assignments against the original formula and context; unsupported arrays and exhausted budgets return Unknown. This is a seeded search primitive, not uniform sampling. IEEE 1800-2023 section 18.5.9 requires uniform legal-combination distributions unless ordering changes them. Distribution policy, solve-before, randc and SystemVerilog frontend/runtime integration remain follow-up work; this PR does not claim constrained-randomization conformance. Validation: all 73 existing Aplite unit tests plus five seeded regressions, two README doctests, exhaustive two-Boolean truth-table oracle across 16 seeds, constrained bit-vector model diversity and replay, seed reproducibility, unique/unsatisfiable inputs and budget/unsupported cases. Lydite IR (38), solver (29) and kernel integration (5) tests passed with Z3 configured. Affected all-target clippy, cargo fmt, diff checks and standalone cargo package verification passed. No full RV32I campaign or release build was run. Change-Id: Icc9fb9fedd174944495a3cef3d16c9a3b8f1bafb
Contributor
Author
|
This pull request is part of a Mergify stack:
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
|
Queued — the merge queue status continues in this comment ↓. |
Contributor
Merge Queue Status
This pull request spent 41 minutes 11 seconds in the queue, including 38 minutes 46 seconds running CI. Required conditions to merge
|
43 of 73 tasks
This was referenced Oct 26, 2026
Base automatically changed from
stack/tignear/feat/aplite/extract-independently-versioned-finite-solver--912d3583
to
master
October 26, 2026 17:24
This was referenced Oct 26, 2026
Closed
This was referenced Oct 26, 2026
mergify
Bot
deleted the
stack/tignear/feat/aplite/add-reproducible-seeded-scalar-model-search--cc9fb9fe
branch
October 26, 2026 17:36
This was referenced Oct 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Aplite's fixed SAT phases produce the same witness for repeated scalar queries. Add solve_seeded with caller-owned seed-selected initial phases so constrained-randomization consumers can vary witnesses without changing the asserted formula or using global RNG state. Keep the existing proof search paths unchanged and use one bounded CDCL search for seeded queries. Replay all SAT assignments against the original formula and context; unsupported arrays and exhausted budgets return Unknown.
This is a seeded search primitive, not uniform sampling. IEEE 1800-2023 section 18.5.9 requires uniform legal-combination distributions unless ordering changes them. Distribution policy, solve-before, randc and SystemVerilog frontend/runtime integration remain follow-up work; this PR does not claim constrained-randomization conformance.
Validation: all 73 existing Aplite unit tests plus five seeded regressions, two README doctests, exhaustive two-Boolean truth-table oracle across 16 seeds, constrained bit-vector model diversity and replay, seed reproducibility, unique/unsatisfiable inputs and budget/unsupported cases. Lydite IR (38), solver (29) and kernel integration (5) tests passed with Z3 configured. Affected all-target clippy, cargo fmt, diff checks and standalone cargo package verification passed. No full RV32I campaign or release build was run.
Depends-On: #2167