Repository navigation
merge queue: checking #2240 + #2250 + #2251 together on master (626dc7c), stacked on #2253 - #2261
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
Lower randomize() with blocks into call-specific solver methods. Inline predicates add to named constraints without persisting across calls, retain static receiver property lookup under dynamic dispatch, and preserve selection, check-only calls, hooks and UNSAT value preservation. Package methods and separate generated instances get distinct methods. This initial subset accepts unqualified receiver properties; caller-local captures, local::, qualified this/super and restricted with-name lists remain unsupported. Bound nested inline parsing before recursion. IEEE 1800-2023 18.6.3 and 18.7. Validation: 133 syntax tests, 840 analyzer tests (three existing ignored), 356 class backend tests and 20 final inline backend tests pass; affected all-target Clippy and formatting pass. Verilator passes the basic and package/instance cases. Retain observed Icarus compile limitations and standalone Verilator evidence for failed-call post hooks and hidden-property static scope, without weakening assertions. Retain bound inline requests in exported scope symbols, deduplicate them across imports and regenerate helper dispatch in the consumer scope. A package method called through a base handle now reaches module-defined subclasses, including their constraints and hooks. The package/multiple-instance regression covers this import boundary. Validation: 60 constrained backend tests, 841 analyzer tests (three existing ignored), Verilator and analyzer all-target Clippy pass; Icarus retains its known inline-syntax exclusion. Change-Id: I6ae718696957044ae716f778092c6106488086d6
Allow constraint expressions to read width-checked, immutable input values supplied for one solve. Inputs are excluded from the solver projection and object state. Missing inputs fail before RNG draws, and check-only calls preserve object values and the random stream. Add a heap operation that consumes a binary input buffer, preserving zero bytes and releasing the buffer even if program decoding or solving fails. Existing ordinary randomization remains compatible and passes an empty input list. Validation: all 26 celox-heap tests and all-target Clippy pass. Regression covers successive input values, check-only UNSAT, missing input diagnostics, binary transport and malformed buffer lengths. Change-Id: Ib35948f9141eaa42af30ad9db9c9ad68a5e9b560
Resolve inline constraint names against the receiver class first, then the calling scope. Support local::name to bypass the receiver explicitly. Pass 1–64-bit two-state scalar variables and arguments as read-only call inputs, retaining width and signedness through solving, dynamic subclass dispatch and imported package methods. Keep local:: out of package dependency discovery. Four-state and unpacked inputs, typed parameter inputs, qualified this/super references and restricted with-name lists remain unsupported. IEEE 1800-2023 18.7 and 18.7.1. Validation: 70 constrained-randomization backend cases, 842 analyzer tests (three existing ignored), affected all-target Clippy, formatting, four retained-report tests and seven report checker tests pass. Both new shared cases pass Verilator. Icarus rejects the constraint/inline syntax; observed diagnostics extend the existing reviewed exclusion. Cases cover shadowed locals, signed values, repeated calls, range inputs, check-only calls, selected-member UNSAT preservation and imported inherited methods. Prepare the receiver (selection and pre-hook) before reading caller inputs, then solve and run the post-hook once. Receiver static members reject before caller fallback, while explicit local:: remains valid. Accept the official CI-observed fail-to-pass transition for 18.7.1--local-scope-resolution_0 in both state modes; both were rechecked with the pinned source and debug driver. Review validation: 75 constrained backend tests, three focused analyzer regressions, affected Clippy, four retained-report tests and seven report checker tests pass. The new hook case exposes Verilator 5.052 sampling inline inputs before the pre-hook; preserve the assertions and record observed evidence in the reviewed limitation. Change-Id: I65f528d40633d4cbbe253c55c98f0039c01f82aa
This was referenced Oct 27, 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 growing-choucroute-gagp1h of the
changesqueue, to test #2240, #2250 and #2251 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 #2240, #2250 and #2251 still pass CI once combined with everything queued ahead of them. CI runs on this draft's code, built in this order:
masterat626dc7ce0f2942The 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 pull request ahead, so a failure here can come from it as much as from #2240 + #2250 + #2251. See only this batch's changes.
Queued ahead of this batch
This pull request entered the queue before this batch and is 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#2250[⛓️ feat(heap): accept per-call scalar constraint inputs #2250]master]: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:holddepends-on = celox-sim/celox#2250[⛓️ feat(heap): accept per-call scalar constraint inputs #2250]base ~= ^(master|develop)$base ~= ^stack/body ~= (?m)^Depends-On:head != release-please--branches--master--components--celoxlabel = merge-readymaster]: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-success = @github-actions/JS Test (Ubuntu)check-neutral = @github-actions/JS Test (Ubuntu)check-skipped = @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 7a4bfdcf5bbd43a5a1d96858b692b16b["growing-choucroute-gagp1h<br/>#2240 + #2250 + #2251<br/>scopes: core"] 87819dd6188c43ff9d0e54313ad68bf9["toasted-cassoulet-5tss1j<br/>#2262 + #2244 + #2231<br/>scopes: core<br/>bisecting"] 7a4bfdcf5bbd43a5a1d96858b692b16b --> 87819dd6188c43ff9d0e54313ad68bf9 style 7a4bfdcf5bbd43a5a1d96858b692b16b fill:#6366f1,color:#fff