Skip to content

feat(sv)!: support bounded class randc randomization - #1959

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/sv-randc/support-bounded-class-randc-randomization--48859189
Oct 25, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/sv-randc/support-bounded-class-randc-randomization--48859189

Conversation

@tignear

@tignear tignear commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Implement unconstrained randc for 1–8-bit two-state integers and scalar enums with up to 256 declared values. Draw uniformly without replacement using per-object, per-property cycle state, then start a new cycle once all values have been consumed. Preserve cycles across disabled modes, explicit member selection, aliases, inheritance and checkpoint restore. Reseeding changes the RNG without reintroducing consumed values.

Add shared cycle/domain/control regressions, heap and checkpoint tests, and diagnostics for larger domains. Verilator passes the integer/direct-enum case; its inherited srandom compilation failure and enum alias mismatch, and Icarus's unsupported randomization methods, are recorded with narrow exclusions and reproduction evidence.

Validation: analyzer 804 tests (3 existing ignores), frontend 6, heap 18, class regressions 198; NAPI build and JS tests 432; retained reports 4; affected crate/test Clippy, formatting and diff checks. Shared cases were exercised with Verilator and Icarus, with the limitations above retained.

Rebased onto master and revalidated the class suite and retained-report checks. The optional xezim adapter was not run because xezim is not installed in this shell.

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

Implement unconstrained randc for 1–8-bit two-state integers and scalar enums with up to 256 declared values. Draw uniformly without replacement using per-object, per-property cycle state, then start a new cycle once all values have been consumed. Preserve cycles across disabled modes, explicit member selection, aliases, inheritance and checkpoint restore. Reseeding changes the RNG without reintroducing consumed values.

Add shared cycle/domain/control regressions, heap and checkpoint tests, and diagnostics for larger domains. Verilator passes the integer/direct-enum case; its inherited srandom compilation failure and enum alias mismatch, and Icarus's unsupported randomization methods, are recorded with narrow exclusions and reproduction evidence.

Validation: analyzer 804 tests (3 existing ignores), frontend 6, heap 18, class regressions 198; NAPI build and JS tests 432; retained reports 4; affected crate/test Clippy, formatting and diff checks. Shared cases were exercised with Verilator and Icarus, with the limitations above retained.

Rebased onto master and revalidated the class suite and retained-report checks. The optional xezim adapter was not run because xezim is not installed in this shell.

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

Change-Id: I48859189cd57d25bb8c0df4773968b8e1534bf60
@chatgpt-codex-connector

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 ⚠️ Failed 2026-10-25T04:03:43.391124Z
We couldn’t complete this review. Comment @codex review to try again.
1d8b956 PR opened
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@mergify

mergify Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

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

@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 25, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 25, 2026
@mergify

mergify Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 45 minutes 56 seconds in the queue, including 44 minutes 29 seconds running CI.

Required conditions to merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • 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 merged commit 644beac into master Oct 25, 2026
23 checks passed
@mergify
mergify Bot deleted the stack/tignear/feat/sv-randc/support-bounded-class-randc-randomization--48859189 branch October 25, 2026 05:30
@mergify mergify Bot removed the queued Mergify queue entry label Oct 25, 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