Skip to content

feat(sv): solve conditional class constraints bidirectionally - #2239

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/sv-constraint-extensions/solve-conditional-class-constraints--726d3ce3
Oct 27, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/sv-constraint-extensions/solve-conditional-class-constraints--726d3ce3

Conversation

@tignear

@tignear tignear commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Retain if/else and implication constraint sets as guarded Boolean relations. Nested sets, dangling else association and implication chains preserve their logical meaning; the condition participates in solving rather than selecting a procedural branch. Keep parsing on the existing explicit worklist and share constraint-block parsing for inline calls.

IEEE 1800-2023 18.5.5 and 18.5.6. Validation: 40 constrained-randomization backend tests, 132 syntax tests, four analyzer randomization regressions, affected all-target Clippy and formatting pass. Both new cases pass Verilator; Icarus rejects constraint syntax. The final nested-guard fixture uses a one-bit constant to avoid Verilator 5.052 generating an ill-typed SMT Boolean conversion for if (0), and also passes the interpreter.

Depends-On: #2238

@tignear

tignear commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 feat(sv): support scalar set membership constraints #2238
2 feat(sv): solve conditional class constraints bidirectionally #2239 👈
3 feat(sv): support per-call inline class constraints #2240
4 feat(heap): accept per-call scalar constraint inputs #2250
5 feat(sv): bind caller scalar inputs in inline constraints #2251

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T06:32:50.385358Z 32021e5 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Retain if/else and implication constraint sets as guarded Boolean relations. Nested sets, dangling else association and implication chains preserve their logical meaning; the condition participates in solving rather than selecting a procedural branch. Keep parsing on the existing explicit worklist and share constraint-block parsing for inline calls.

IEEE 1800-2023 18.5.5 and 18.5.6. Validation: 40 constrained-randomization backend tests, 132 syntax tests, four analyzer randomization regressions, affected all-target Clippy and formatting pass. Both new cases pass Verilator; Icarus rejects constraint syntax. The final nested-guard fixture uses a one-bit constant to avoid Verilator 5.052 generating an ill-typed SMT Boolean conversion for if (0), and also passes the interpreter.

Change-Id: I726d3ce3d92d511536ead0e18509261ce5cd2d20
@tignear
tignear force-pushed the stack/tignear/feat/sv-constraint-extensions/support-scalar-set-membership-constraints--cdebb01d branch from 4fc1740 to 909723e Compare October 27, 2026 06:31
@tignear
tignear force-pushed the stack/tignear/feat/sv-constraint-extensions/solve-conditional-class-constraints--726d3ce3 branch from a973e8a to 32021e5 Compare October 27, 2026 06:31
@tignear

tignear commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

Revision history

# Type Changes Reason Date
1 initial a973e8a 2026-10-27 06:30 UTC
2 content a973e8a → 32021e5 (raw) 2026-10-27 06:30 UTC

@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 27, 2026
@mergify

mergify Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Queued — the merge queue status continues in this comment ↓.

@mergify mergify Bot added the queued Mergify queue entry label Oct 27, 2026
@mergify

mergify Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

✅ Merged into master as 626dc7c at 08:10 UTC

Merged together with #2238. 42 min in the queue, 30 min of it CI.

So far

Merge conditions: 10 of 10 met

This pull request

Condition
✅ depends-on = celox-sim/celox#2238

The batch, tested on draft #2249

Condition Required by
✅ check-success = Conventional Commit title —
✅ check-success = Queue validation —
✅ any of: check-success = @github-actions/Lint & Format, check-neutral = @github-actions/Lint & Format, check-skipped = @github-actions/Lint & Format GitHub repository ruleset rule master
✅ any of: 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) GitHub repository ruleset rule master
✅ any of: check-success = @github-actions/NAPI Build (Windows), check-neutral = @github-actions/NAPI Build (Windows), check-skipped = @github-actions/NAPI Build (Windows) GitHub repository ruleset rule master
✅ any of: check-success = @github-actions/Rust Test & NAPI Build, check-neutral = @github-actions/Rust Test & NAPI Build, check-skipped = @github-actions/Rust Test & NAPI Build GitHub repository ruleset rule master
✅ any of: check-success = @github-actions/JS Test (Ubuntu), check-neutral = @github-actions/JS Test (Ubuntu), check-skipped = @github-actions/JS Test (Ubuntu) GitHub repository ruleset rule master
✅ any of: check-success = @github-actions/JS Test (Windows), check-neutral = @github-actions/JS Test (Windows), check-skipped = @github-actions/JS Test (Windows) GitHub repository ruleset rule master
✅ any of: check-success = @github-actions/Conventional Commit title, check-neutral = @github-actions/Conventional Commit title, check-skipped = @github-actions/Conventional Commit title GitHub repository ruleset rule master

Times in UTC · dashboard · how the merge queue works

Base automatically changed from stack/tignear/feat/sv-constraint-extensions/support-scalar-set-membership-constraints--cdebb01d to master October 27, 2026 08:08
@mergify
mergify Bot merged commit 626dc7c into master Oct 27, 2026
23 of 25 checks passed
@mergify
mergify Bot deleted the stack/tignear/feat/sv-constraint-extensions/solve-conditional-class-constraints--726d3ce3 branch October 27, 2026 08:10
@mergify mergify Bot removed the queued Mergify queue entry label Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-ready Request merging through Mergify after required checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant