Repository navigation
merge queue: checking #2235 + #2180 together on master (4616658), stacked on #2275 - #2281
Closed
mergify[bot] wants to merge 6 commits into
Closed
mergify[bot] wants to merge 6 commits into
mergify[bot] wants to merge 6 commits into
Conversation
An exhaustive ordinary case on {b, 1'bx}, with b declared bit and labels
2'b0x and 2'b1x, was rejected as an inferred latch. Coverage enumerated the
selector's full four-state domain and included values that its fixed X bit
could never produce.
Track possible bit values through constants, concatenations, slices, captures
and identity operations, preserving the distinction between two-state inputs
and four-state logic. Filter the existing bounded enumeration with these
constraints. Leave opaque expressions conservative and bound each bit query;
real incomplete cases and X/Z mismatches still produce latch diagnostics.
No diagnostic policy or optimization settings are relaxed.
Validation: all 5935 SV tests, 10 frontend unit tests, 54 suite tests,
affected-crate clippy and formatting pass. After updating to master 4616658,
all 12 focused regressions, frontend unit tests, clippy and formatting pass.
Shared regressions exercise all five compiled backend variants; the original
example also runs in both state modes, including logic storage in two-state
mode. Icarus passes both shared four-state cases. Verilator reports its existing
four-state capability limit. Existing ignored tests, exclusions and retained
verification baselines remain unchanged.
Change-Id: I9a163ef5eb4a6a28a033e9bd955bb351ba3abf15
Zero-argument functions that construct constant masks with unpacked scratch arrays were lowered into runtime loops and wide dynamic shifts. Reuse the bounded constant interpreter and cache each result after excluding persistent state, global writes, simulation-state reads and effectful or missing callees. Preserve the runtime state mode and fall back when evaluation is unsupported or exceeds the shared budget. Use all case labels to determine the comparison width and signedness before evaluating the selector once and labels in source order (IEEE 1800-2023 12.5). Propagate that context into arithmetic, retain fill-literal sizing and compare X/Z exactly. Preserve unknown inside results when combining wildcard comparisons and ranges (11.4.13), and initialize four-state constant-function locals and returns to X. Keep the added case and membership work off the recursive interpreter frame so the existing recursion guard works on the default stack. Regressions cover both runtime state modes, later unsigned/wider labels, context-sized arithmetic, skipped labels, exact X/Z cases, unknown membership, ranges and partially assigned returns. The existing 8100-bit mask/cache and frontend instruction-bound regressions continue to pass. Shared case tests use explicit automatic-local assignments because Icarus 13.0 aborts on their declaration initializers; analyzer regressions retain the original form. Validated on master 4616658: 858 analyzer and 11 frontend unit tests, 5964 SystemVerilog integration tests across the compiled backend variants, 54 suite tests, affected-crate clippy and formatting. Existing ignored tests remain unchanged. Wide-mask cache reuse and frontend instruction-bound tests continue to pass in both state modes. Icarus evidence for the unchanged shared cases is two passes; Verilator passes the two-state case and reports its existing four-state capability limit for the other. No exclusions or retained verification baselines were changed. Change-Id: I268b61b85e35aef99179cb8ca5e7139d787c1924
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 rare-persillade-wkz82q of the
changesqueue, to test #2235 and #2180 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 #2235 and #2180 still pass CI once combined with everything queued ahead of them. CI runs on this draft's code, built in this order:
masterat46166582a1f036The 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 #2235 + #2180. 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 validationmaster]:check-success = @github-actions/Lint & Formatcheck-neutral = @github-actions/Lint & Formatcheck-skipped = @github-actions/Lint & Formatmaster]: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/Conventional Commit titlecheck-neutral = @github-actions/Conventional Commit titlecheck-skipped = @github-actions/Conventional Commit titlemaster]:check-success = @github-actions/Queue validationcheck-neutral = @github-actions/Queue validationcheck-skipped = @github-actions/Queue validationRequired 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-readymaster]:check-success = @github-actions/Lint & Formatcheck-neutral = @github-actions/Lint & Formatcheck-skipped = @github-actions/Lint & Formatmaster]: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/Conventional Commit titlecheck-neutral = @github-actions/Conventional Commit titlecheck-skipped = @github-actions/Conventional Commit titlemaster]:check-skipped = @github-actions/Queue validationcheck-neutral = @github-actions/Queue validationcheck-success = @github-actions/Queue validation