Skip to content

feat(sv)!: add Annex N integer distribution functions - #1664

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/svtf-runtime-extensions/add-annex-n-integer-distribution-funcs--5e156a79
Oct 21, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/svtf-runtime-extensions/add-annex-n-integer-distribution-funcs--5e156a79

Conversation

@tignear

@tignear tignear commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Support $dist_normal, $dist_exponential, $dist_poisson, $dist_chi_square, $dist_t and $dist_erlang in timed Simulation. Use the Annex N algorithms with signed 32-bit formals and results, evaluate seed selectors once, and preserve deterministic checkpoint replay. Invalid positive parameters report an error without updating the seed.

Validate native image serialization with both formatted-input and distribution host requests; container version 23 distinguishes the extended host schema.

Validation: runtime reference vectors (3 tests), API tests across four backends and both state modes (21 tests), shared backend variants (10 tests), native image roundtrip, and host-request encoding tests. Two cases each passed Icarus and Verilator. Integrated Clippy, formatting and NAPI/JS boundary tests passed.

sv-tests: reviewed the full official CI report (2,054 mode runs) and updated twelve distribution expectation rows that now pass in both state modes. The file-input improvements are retained by the lower PR; no regressions or other verdict changes were observed.

BREAKING CHANGE: Adds variants to the public SystemFunction and HostRequestKind enums. Native images must be regenerated for container version 23.

Depends-On: #1663

@tignear

tignear commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 feat(sv)!: support binary input and file positioning #1662
2 feat(sv)!: support integral formatted input #1663
3 feat(sv)!: add Annex N integer distribution functions #1664 👈

@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-20T23:37:53.884134Z
We couldn’t complete this review. Comment @codex review to try again.
7558620 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.

@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 20, 2026
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime-extensions/add-annex-n-integer-distribution-funcs--5e156a79 branch from 7558620 to dcde6ba Compare October 21, 2026 01:04
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime-extensions/support-integral-formatted-input--31d742e8 branch from 615a9b3 to 2f54d5b Compare October 21, 2026 01:04
@tignear

tignear commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor Author

Revision history

# Type Changes Reason Date
1 initial 7558620 2026-10-21 01:04 UTC
2 content 7558620 → dcde6ba Update retained sv-tests expectations for all six Annex N distributions in both state modes, using the official CI report. 2026-10-21 01:04 UTC
3 content dcde6ba → abf5463 2026-10-21 01:55 UTC
4 content abf5463 → 5bdfc3a 2026-10-21 02:59 UTC
5 content 5bdfc3a → a7cebae 2026-10-21 12:16 UTC

@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime-extensions/support-integral-formatted-input--31d742e8 branch from 2f54d5b to 35219a2 Compare October 21, 2026 01:55
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime-extensions/add-annex-n-integer-distribution-funcs--5e156a79 branch 2 times, most recently from abf5463 to 5bdfc3a Compare October 21, 2026 03:00
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime-extensions/support-integral-formatted-input--31d742e8 branch from 35219a2 to 1d8fafd Compare October 21, 2026 03:00
@mergify mergify Bot added the queued Mergify queue entry label Oct 21, 2026
@mergify

mergify Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-10-21 04:15 UTC · Rule: changes · triggered by rule Queue explicitly requested merges
  • 🚫 Left the queue — 2026-10-21 04:54 UTC · at 5bdfc3ae9afb716836451287b589b971ece5fca7

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

Reason

Pull request #1664 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 21, 2026
Support `$dist_normal`, `$dist_exponential`, `$dist_poisson`, `$dist_chi_square`, `$dist_t` and `$dist_erlang` in timed `Simulation`. Use the Annex N algorithms with signed 32-bit formals and results, evaluate seed selectors once, and preserve deterministic checkpoint replay. Invalid positive parameters report an error without updating the seed.

Validate native image serialization with both formatted-input and distribution host requests; container version 23 distinguishes the extended host schema.

Validation: runtime reference vectors (3 tests), API tests across four backends and both state modes (21 tests), shared backend variants (10 tests), native image roundtrip, and host-request encoding tests. Two cases each passed Icarus and Verilator. Integrated Clippy, formatting and NAPI/JS boundary tests passed.

sv-tests: reviewed the full official CI report (2,054 mode runs) and updated twelve distribution expectation rows that now pass in both state modes. The file-input improvements are retained by the lower PR; no regressions or other verdict changes were observed.

BREAKING CHANGE: Adds variants to the public SystemFunction and HostRequestKind enums. Native images must be regenerated for container version 23.

Change-Id: I5e156a7970741d8649b8ef33497ca1d1b54b3280
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime-extensions/add-annex-n-integer-distribution-funcs--5e156a79 branch from 5bdfc3a to a7cebae Compare October 21, 2026 12:16
@tignear
tignear force-pushed the stack/tignear/feat/svtf-runtime-extensions/support-integral-formatted-input--31d742e8 branch from 1d8fafd to 1f42ca3 Compare October 21, 2026 12:16
@mergify mergify Bot added queued Mergify queue entry and removed dequeued Mergify stopped this queue entry; investigate before retrying labels Oct 21, 2026
@mergify

mergify Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 3 hours 2 minutes 48 seconds in the queue, including 1 hour 26 minutes 23 seconds running CI.

Required conditions to merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • depends-on = celox-sim/celox#1663 [⛓️ feat(sv)!: support integral formatted input #1663]
  • 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

Base automatically changed from stack/tignear/feat/svtf-runtime-extensions/support-integral-formatted-input--31d742e8 to master October 21, 2026 16:50
@mergify
mergify Bot merged commit 144bbcc into master Oct 21, 2026
37 of 58 checks passed
@mergify
mergify Bot deleted the stack/tignear/feat/svtf-runtime-extensions/add-annex-n-integer-distribution-funcs--5e156a79 branch October 21, 2026 16:52
@mergify mergify Bot removed the queued Mergify queue entry label Oct 21, 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