Repository navigation
merge queue: checking #2175 + #2171 together on master (6b3e8b4), stacked on #2168 and #2170 - #2179
Closed
mergify[bot] wants to merge 8 commits into
Closed
mergify[bot] wants to merge 8 commits into
mergify[bot] wants to merge 8 commits into
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
Add a test-only bounded oracle for projected scalar solution sets. Enumerate distinct projected assignments, verify exact cardinalities on small domains and select a reservoir sample to check projection weighting. Hidden witness multiplicity must not change projected probabilities; incomplete enumeration must not expose a partial sample. Whole-space enumeration is intentionally excluded from the public API and production build. It is a correctness reference for future scalable constrained-randomization algorithms, not the runtime randomize path. Keep the public solver surface at solve, solve_with_hint and solve_seeded; do not claim uniform production sampling or SystemVerilog constraint support. Validation: 84 Aplite unit tests and two README doctests passed, including all two-Boolean truth-table counts, hidden-witness multiplicity, deterministic seed/distribution checks, exact model limits, global work exhaustion, zero timeout, empty projections and invalid input. All-target clippy, formatting and diff checks passed. No production solver algorithms were changed and no full RV32I campaign or release build was run. Change-Id: Ia225f690beff201815b45c973d09d019d82d4b57
Repeated literal arithmetic in aggregate port defaults rediscovered declaration scopes and copied growing scope snapshots. Runtime select lowering also repeatedly attempted constant evaluation of large inlined expressions. Skip declaration discovery for expression trees composed entirely of literals, reject required unbound runtime operands before constant substitution, reuse binary operands already evaluated for type context, and return width one for identical runtime bit-select bounds. Keep names in unselected query arms on the discovery path and preserve short-circuit evaluation. Local compile measurements against master ee675d8, using frozen CLI binaries and identical options: - 128 aggregate-default ports: 20.62 s to 0.69 s. - 256 aggregate-default ports: 90 s timeout to 0.50 s. - Original Taxi 32-channel Ethernet configuration: 123.971 s to 99.821 s, about 20% faster. - VCU108 still exceeds the 300 s compile limit with both binaries. This remains unresolved. Taxi sources were unchanged at cc70b270b910d369ab1ad7b3855e76399fd461f1. Taxi measurements cover compilation only, with O1 and two-state operation; cocotb runtime tests were not rerun. These are local measurements rather than timing assertions in CI. Validation: - Analyzer/frontend unit tests: 846 passed; 2 doctests passed. - Full SystemVerilog backend suite: 5,664 passed; 20 existing skips. - Clippy for celox-sv-analyzer, celox-frontend-sv and celox tests with systemverilog, cranelift and wasm-runtime: passed with -D warnings. - cargo fmt --all -- --check and git diff --check: passed. Regression tests assert discovery/evaluation counts and width semantics without wall-clock thresholds. Shared executable cases and external adapters are unchanged. Change-Id: Ia023a992051109e82c9ae3ae147c313b49f70e54
Repeated constraint queries currently validate and bit-blast the same expressions on every solve. Add PreparedQuery to compile a fixed scalar formula, context and Boolean predicate definitions once, then assert chosen predicate polarities per call. Encode assumptions as decision levels rather than permanent unit clauses, reapply them after backjumps, and retain learned clauses after successful searches. Discard mutable search state after UNSAT or interruption while keeping the original encoding reusable. Share source compilation, phase initialization and model replay with the existing solver. Replay every SAT witness against the original formula, requested context and asserted predicates. Preparation and solve budgets are explicit and separate; invalid predicate indexes or resource exhaustion return Unknown, never UNSAT. The API is a reusable solving primitive, not a uniform sampler or an implementation of SystemVerilog randomize. Validation: 84 existing Aplite tests plus six prepared-query regressions and three README doctests. Exhaustively checked 4,096 changing assumption queries against all three-Boolean truth tables; tested retained learned clauses, opposite/duplicate/constant assumptions, sort conflicts, invalid input, and recovery after interrupted searches. Lydite IR (38), solver (29), kernel (5), and pipeline/search consumers (7) passed, including finite-only proofs and deliberate fault detection. Affected all-target clippy, formatting, package include/version checks, diff checks and standalone cargo package verification passed. No full RV32I campaign or release build was run. Change-Id: I80ec43950e64c7fc7a7dfc0c0975848fe51adea2
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.
Note
This is a merge queue draft opened by Mergify. Nobody needs to act on it.
Mergify opened it for batch monetary-navet-d6u5p4 of the
changesqueue, to test #2175 and #2171 before they merge intomaster. Pushing to this branch or closing this pull request removes them from the queue.What this draft tests
Mergify checks that #2175 and #2171 still pass CI once combined with everything queued ahead of them. CI runs on this draft's code, built in this order:
masterat6b3e8b42b1faaeThe check is speculative: it assumes the pull requests ahead will merge, so it starts without waiting for them.
🎉 Where it stands: checks passed
CI passed on this draft.
Follow the
changesqueue in the dashboardWhat happens next
masterand closes this draft.Tip
A red check is not necessarily caused by this batch. These checks run on a tip that also carries the commits of the 2 pull requests ahead, so a failure here can come from them as much as from #2175 + #2171. See only this batch's changes.
Queued ahead of this batch
These pull requests entered the queue before this batch and are not part of it.
Metadata for CI tooling, read by
mergify ci1 scope
coreRequired conditions of queue rule
changesfor mergecheck-success = Conventional Commit titlecheck-success = Queue validationdepends-on = celox-sim/celox#2170[⛓️ test(aplite): keep exhaustive sampling as a small-domain oracle #2170]number != 2175master]:check-success = @github-actions/Lint & Formatcheck-neutral = @github-actions/Lint & Formatcheck-skipped = @github-actions/Lint & Formatmaster]:check-success = @github-actions/NAPI Build (Linux ARM64 GNU)check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)master]:check-success = @github-actions/NAPI Build (Windows)check-neutral = @github-actions/NAPI Build (Windows)check-skipped = @github-actions/NAPI Build (Windows)master]:check-success = @github-actions/Rust Test & NAPI Buildcheck-neutral = @github-actions/Rust Test & NAPI Buildcheck-skipped = @github-actions/Rust Test & NAPI Buildmaster]:check-success = @github-actions/JS Test (Ubuntu)check-neutral = @github-actions/JS Test (Ubuntu)check-skipped = @github-actions/JS Test (Ubuntu)master]:check-success = @github-actions/JS Test (Windows)check-neutral = @github-actions/JS Test (Windows)check-skipped = @github-actions/JS Test (Windows)master]:check-success = @github-actions/Conventional Commit titlecheck-neutral = @github-actions/Conventional Commit titlecheck-skipped = @github-actions/Conventional Commit titleRequired conditions to stay in the queue
-conflict-draft-head ~= ^(integration/|renovate/veryl-crates$|upgrade/veryl-|release-please--branches--master--components--celox$|master$)-head ~= ^renovate/-label = release:holdbase ~= ^(master|develop)$base ~= ^stack/body ~= (?m)^Depends-On:head != release-please--branches--master--components--celoxlabel = merge-readydepends-on = celox-sim/celox#2170[⛓️ test(aplite): keep exhaustive sampling as a small-domain oracle #2170]number != 2175master]:check-success = @github-actions/Lint & Formatcheck-neutral = @github-actions/Lint & Formatcheck-skipped = @github-actions/Lint & Formatmaster]:check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)check-success = @github-actions/NAPI Build (Linux ARM64 GNU)master]:check-skipped = @github-actions/NAPI Build (Windows)check-neutral = @github-actions/NAPI Build (Windows)check-success = @github-actions/NAPI Build (Windows)master]:check-success = @github-actions/Rust Test & NAPI Buildcheck-neutral = @github-actions/Rust Test & NAPI Buildcheck-skipped = @github-actions/Rust Test & NAPI Buildmaster]:check-neutral = @github-actions/JS Test (Ubuntu)check-skipped = @github-actions/JS Test (Ubuntu)check-success = @github-actions/JS Test (Ubuntu)master]:check-skipped = @github-actions/JS Test (Windows)check-neutral = @github-actions/JS Test (Windows)check-success = @github-actions/JS Test (Windows)master]:check-success = @github-actions/Conventional Commit titlecheck-neutral = @github-actions/Conventional Commit titlecheck-skipped = @github-actions/Conventional Commit titleQueue graph
The diagram is not laid out in queue order, so a node's position says nothing about when it merges.
graph LR f4589e12df3548ffafba74307cac5dbd["monetary-navet-d6u5p4<br/>#2175 + #2171<br/>scopes: core"] eb222a626fc84c9497f8070d6e7fa386["progressive-raclette-enwsm4<br/>#2181<br/>scopes: core"] f4589e12df3548ffafba74307cac5dbd --> eb222a626fc84c9497f8070d6e7fa386 style f4589e12df3548ffafba74307cac5dbd fill:#6366f1,color:#fff