Skip to content

feat(sv)!: support scope enum randomization - #1847

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/sv-enum-randomization/support-scope-enum-randomization--2e07aafc
Oct 24, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/sv-enum-randomization/support-scope-enum-randomization--2e07aafc

Conversation

@tignear

@tignear tignear commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Support scalar enums in randomize(e) and std::randomize(e), selecting only declared values with unbiased rejection sampling from the process RNG. Preserve enum domains through aliases and local variables, allow mixed enum/integer arguments, and retain short-circuit evaluation and checkpoint replay.

Add shared domain and evaluation-order regressions plus Celox checkpoint and forced-rejection tests. Document the observed Icarus 13.0 compile limitation and Verilator 5.052 enum-domain mismatch with narrowly scoped exclusions and reproduction evidence.

Validation: analyzer 796 and frontend 4 unit tests; 708 system-function regressions; 4 forced-rejection backend tests; retained-report checks (3); NAPI build and JS tests (432); affected-crate Clippy, cargo fmt and diff checks. Both new shared cases were exercised with Icarus and Verilator; their failures are retained as the tool limitations described above.

BREAKING CHANGE: The public celox-sv-analyzer SystemFunction enum gains ScopeRandomizeEnum; downstream exhaustive matches must handle this variant.

Depends-On: #1838

@tignear

tignear commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 feat(sv): support class enum randomization #1838
2 feat(sv)!: support scope enum randomization #1847 👈

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 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-24T08:44:22.281825Z 490502b 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.

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

mergify Bot commented Oct 24, 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 24, 2026
@mergify

mergify Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-10-24 04:59 UTC · Rule: changes · triggered by rule Queue explicitly requested merges
  • 🚫 Left the queue — 2026-10-24 05:22 UTC · at 01c7e9f9c2d401001c6964c34d4127fe1ce8076d

This pull request spent 22 minutes 41 seconds in the queue, with no time running CI.

Reason

Pull request #1847 has been dequeued

Queue conditions are not satisfied:

Hint

You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it.
If you do update this pull request, it will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue instead, you can requeue the pull request, without updating it, by posting a @mergifyio queue comment.

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

@mergify mergify Bot added dequeued Mergify stopped this queue entry; investigate before retrying and removed queued Mergify queue entry labels Oct 24, 2026
@tignear
tignear force-pushed the stack/tignear/feat/sv-enum-randomization/support-class-enum-randomization--076dfe02 branch from 11faea3 to 37ec478 Compare October 24, 2026 05:44
@tignear
tignear force-pushed the stack/tignear/feat/sv-enum-randomization/support-scope-enum-randomization--2e07aafc branch from 01c7e9f to 9f68a03 Compare October 24, 2026 05:44
@tignear

tignear commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor Author

Revision history

# Type Changes Reason Date
1 initial 01c7e9f 2026-10-24 05:41 UTC
2 rebase 01c7e9f → 9f68a03 (rebase only) Resolve conflicts with master after #1816 merged and restore stack queue eligibility 2026-10-24 05:41 UTC
3 content 9f68a03 → 490502b Rebase dependent scope enum randomization with parent conflict resolution 2026-10-24 08:41 UTC

@mergify mergify Bot added queued Mergify queue entry and removed dequeued Mergify stopped this queue entry; investigate before retrying labels Oct 24, 2026
@mergify

mergify Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-10-24 06:58 UTC · Rule: changes · triggered by rule Queue explicitly requested merges
  • 🚫 Left the queue — 2026-10-24 07:32 UTC · at 9f68a03bf389da0c02925dc4ecb94dd1d9f7f183

This pull request spent 33 minutes 54 seconds in the queue, with no time running CI.

Reason

Pull request #1847 has been dequeued

Queue conditions are not satisfied:

Hint

You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it.
If you do update this pull request, it will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue instead, you can requeue the pull request, without updating it, by posting a @mergifyio queue comment.

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

@mergify mergify Bot added dequeued Mergify stopped this queue entry; investigate before retrying and removed queued Mergify queue entry labels Oct 24, 2026
Support scalar enums in randomize(e) and std::randomize(e), selecting only declared values with unbiased rejection sampling from the process RNG. Preserve enum domains through aliases and local variables, allow mixed enum/integer arguments, and retain short-circuit evaluation and checkpoint replay.

Add shared domain and evaluation-order regressions plus Celox checkpoint and forced-rejection tests. Document the observed Icarus 13.0 compile limitation and Verilator 5.052 enum-domain mismatch with narrowly scoped exclusions and reproduction evidence.

Validation: analyzer 796 and frontend 4 unit tests; 708 system-function regressions; 4 forced-rejection backend tests; retained-report checks (3); NAPI build and JS tests (432); affected-crate Clippy, cargo fmt and diff checks. Both new shared cases were exercised with Icarus and Verilator; their failures are retained as the tool limitations described above.

BREAKING CHANGE: The public celox-sv-analyzer SystemFunction enum gains ScopeRandomizeEnum; downstream exhaustive matches must handle this variant.

Change-Id: I2e07aafc25d024b216ce17760324265e3719055d
@tignear
tignear force-pushed the stack/tignear/feat/sv-enum-randomization/support-scope-enum-randomization--2e07aafc branch from 9f68a03 to 490502b Compare October 24, 2026 08:42
@tignear
tignear force-pushed the stack/tignear/feat/sv-enum-randomization/support-class-enum-randomization--076dfe02 branch from 37ec478 to b9d5870 Compare October 24, 2026 08:42
@tignear tignear removed the dequeued Mergify stopped this queue entry; investigate before retrying label Oct 24, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 24, 2026
@mergify

mergify Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 2 hours 42 minutes 47 seconds in the queue, with no time running CI.

Reason

Pull request #1847 has been dequeued

Queue conditions are not satisfied:

Hint

You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it.
If you do update this pull request, it will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue instead, you can requeue the pull request, without updating it, by posting a @mergifyio queue comment.

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

@mergify mergify Bot added dequeued Mergify stopped this queue entry; investigate before retrying and removed queued Mergify queue entry labels Oct 24, 2026
@tignear tignear removed the dequeued Mergify stopped this queue entry; investigate before retrying label Oct 24, 2026
@mergify mergify Bot added the dequeued Mergify stopped this queue entry; investigate before retrying label Oct 24, 2026
@tignear

tignear commented Oct 24, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify

mergify Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 1 hour 20 minutes 53 seconds in the queue, including 1 hour 52 seconds running CI.

Required conditions to merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • depends-on = celox-sim/celox#1838 [⛓️ feat(sv): support class enum randomization #1838]
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Lint & Format
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
  • any of [🛡 GitHub repository ruleset rule master]:
    • 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)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Windows)
    • check-neutral = @github-actions/NAPI Build (Windows)
    • check-skipped = @github-actions/NAPI Build (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Rust Test & NAPI Build
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Ubuntu)
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Windows)
    • check-neutral = @github-actions/JS Test (Windows)
    • check-skipped = @github-actions/JS Test (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Conventional Commit title
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title

@mergify mergify Bot added the queued Mergify queue entry label Oct 24, 2026
@tignear tignear removed the dequeued Mergify stopped this queue entry; investigate before retrying label Oct 24, 2026
Base automatically changed from stack/tignear/feat/sv-enum-randomization/support-class-enum-randomization--076dfe02 to master October 24, 2026 16:19
@mergify
mergify Bot merged commit 1d18b11 into master Oct 24, 2026
37 of 58 checks passed
@mergify
mergify Bot deleted the stack/tignear/feat/sv-enum-randomization/support-scope-enum-randomization--2e07aafc branch October 24, 2026 16:20
@mergify mergify Bot removed the queued Mergify queue entry label Oct 24, 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