Skip to content

fix(sv): validate enum initializer declarations - #2075

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/sv-tests-preprocessing/validate-enum-initializer-declarations--71ba3443
Oct 25, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/sv-tests-preprocessing/validate-enum-initializer-declarations--71ba3443

Conversation

@tignear

@tignear tignear commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Reject sized enum literals whose width differs from the base, X/Z values
without an explicit four-state base, and implicit successors of X/Z values
as required by IEEE 1800-2023 6.19. Preserve masks across references to
preceding members and allow expressions that resolve to known values.

Defer typedef validation until enum constants and dependent aliases resolve.
Keep inline declarations checked when their types are bound. Leave ranged
member expansion to the existing unsupported path instead of guessing values.
Update the three affected sv-tests cases in both state modes.

Validation: all analyzer tests (811 passed, 3 existing ignored), 2 doctests,
combined analyzer tests (814 passed, 3 ignored), all-target Clippy and fmt.
Full release-driver sv-tests validation runs in CI as requested.

@tignear

tignear commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 fix(sv): validate enum initializer declarations #2075 👈
2 fix(sv)!: read heap strings in formatted scans #2076
3 feat(sv)!: execute final procedures at simulation termination #2088

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 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-25T21:48:23.365490Z 728b37d 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 25, 2026
@tignear
tignear force-pushed the stack/tignear/fix/sv-tests-preprocessing/validate-enum-initializer-declarations--71ba3443 branch from bbd167c to 4082ff4 Compare October 25, 2026 20:55
@tignear

tignear commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor Author

Revision history

# Type Changes Reason Date
1 initial bbd167c 2026-10-25 20:53 UTC
2 content bbd167c → 4082ff4 Separate enum range-overflow and explicit-width regression inputs after earlier width validation changed diagnostic precedence 2026-10-25 20:53 UTC
3 rebase 4082ff4 → 728b37d (rebase only) 2026-10-25 21:45 UTC

Base automatically changed from stack/tignear/fix/sv-tests-preprocessing/enforce-class-member-access-visibility--8d06c543 to master October 25, 2026 21:16
@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 18 minutes 45 seconds in the queue, with no time running CI.

Reason

The pull request #2075 has been manually updated

Waiting for
  • check-success = Queue validation
  • any of: [🛡 GitHub repository ruleset rule master]
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
    • check-success = @github-actions/Rust Test & NAPI Build
All conditions
  • check-success = Queue validation
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
    • check-success = @github-actions/Rust Test & NAPI Build
  • check-success = Conventional Commit title
  • depends-on = celox-sim/celox#2074 [⛓️ fix(sv)!: enforce class member access visibility #2074]
  • 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/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

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

Reject sized enum literals whose width differs from the base, X/Z values
without an explicit four-state base, and implicit successors of X/Z values
as required by IEEE 1800-2023 6.19. Preserve masks across references to
preceding members and allow expressions that resolve to known values.

Defer typedef validation until enum constants and dependent aliases resolve.
Keep inline declarations checked when their types are bound. Leave ranged
member expansion to the existing unsupported path instead of guessing values.
Update the three affected sv-tests cases in both state modes.

Validation: all analyzer tests (811 passed, 3 existing ignored), 2 doctests,
combined analyzer tests (814 passed, 3 ignored), all-target Clippy and fmt.
Full release-driver sv-tests validation runs in CI as requested.

Change-Id: I71ba3443f34b307ef6a424decec09ef01881948d
@tignear
tignear force-pushed the stack/tignear/fix/sv-tests-preprocessing/validate-enum-initializer-declarations--71ba3443 branch from 4082ff4 to 728b37d Compare October 25, 2026 21:46
@mergify mergify Bot removed the queued Mergify queue entry 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 25 minutes 34 seconds in the queue, including 23 minutes 8 seconds running CI.

Required conditions to merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • depends-on=celox-sim/celox#2075 [⛓️ fix(sv): validate enum initializer declarations #2075 [stack]]
  • 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 825ef81 into master Oct 25, 2026
24 checks passed
@mergify
mergify Bot deleted the stack/tignear/fix/sv-tests-preprocessing/validate-enum-initializer-declarations--71ba3443 branch October 25, 2026 22:45
@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