Skip to content

feat(sv): support $sampled in processes - #1879

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/sva-stage1/support-sampled-processes--764da6c4
Oct 26, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/sva-stage1/support-sampled-processes--764da6c4

Conversation

@tignear

@tignear tignear commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Implement sampled values for static variables using copies captured before advancing to a later timestamp (IEEE 1800-2023 16.5.1 and 16.9.3). Initialize from declarations, preserve automatic variables, and copy strided arrays through their layouts. Same-timestamp host resumptions and writes retain the Preponed baseline; untimed Simulator calls each form a slot.

Resolve sampled select operands before hoisting nested calls, including calls with side effects. Cover timed host-only writes, repeated run_until calls, bounded runs, step, advance_to, and report watching. Verify that the compiled scheduler actually executes in the regression.

The runtime schema gains sample_shadows; native image version is 42. Combinational $sampled and handle operands remain unsupported in this stack member.

Validation:

  • sv_sampled: 35 passed across interpreter, native, actual Cranelift and WASM.
  • Celox/runtime unit tests: 309 passed.
  • Time, stop, state-file, runtime API, clock and image consumers: 110 passed, 2 ignored.
  • Formatting and affected-crate Clippy with -D warnings.

@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-26T10:01:29.348937Z 903b789 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 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 $sampled in processes #1879 👈
2 feat(sv): support $past and the value change functions in clocked processes #1880
3 fix(sv)!: give reports the time they are issued at #1881
4 feat(sv): extend sampled values and inferred history clocks #1882

@mergify

mergify Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

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

@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/defer-assertions-combinational-processes-module--dc510d3a branch from 87fc9d6 to b3f39f3 Compare October 24, 2026 11:06
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/support-sampled-processes--764da6c4 branch from 7baa69a to 1113dbb Compare October 24, 2026 11:06
@tignear

tignear commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor Author

Revision history

# Type Changes Reason Date
1 initial 7baa69a 2026-10-24 11:03 UTC
2 content 7baa69a → 1113dbb Rebase over the review fixes of #1878: a settle inside a host call samples but no longer matures; container version 36 2026-10-24 11:03 UTC
3 rebase 1113dbb → 38be0d2 (rebase only) 2026-10-24 12:11 UTC
4 content 38be0d2 → 964e6ca 2026-10-24 18:21 UTC
5 content 964e6ca → 10358b5 2026-10-24 21:36 UTC
6 content 10358b5 → 635ab91 2026-10-25 04:27 UTC
7 content 635ab91 → 860b34c 2026-10-25 05:14 UTC
8 content 860b34c → bca1f84 (raw) 2026-10-25 06:02 UTC
9 rebase bca1f84 → 51b9549 (rebase only) 2026-10-25 06:58 UTC
10 content 51b9549 → 71e2dce 2026-10-25 08:25 UTC
11 content 71e2dce → b5571a7 2026-10-25 08:57 UTC
12 rebase b5571a7 → 6078c7d (rebase only) 2026-10-25 09:46 UTC
13 rebase 6078c7d → f9b1d33 (rebase only) 2026-10-25 09:59 UTC
14 content f9b1d33 → 1f2b566 Make the public sampling copy helper safe for overlapping or identical valid signal views. 2026-10-26 09:01 UTC
15 content 1f2b566 → 96d20fe Correct the inherited Cranelift regression registration: build() now selects the native backend, so use build_cranelift() explicitly. 2026-10-26 09:25 UTC
16 content 96d20fe → 903b789 Align the scheduler field documentation with the time-advance sampling boundary. 2026-10-26 09:56 UTC

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1113dbb372

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/celox-runtime/src/lib.rs Resolved
Comment thread crates/celox/src/simulator.rs Resolved
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/defer-assertions-combinational-processes-module--dc510d3a branch from b3f39f3 to c9f6320 Compare October 24, 2026 12:12
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/support-sampled-processes--764da6c4 branch from 1113dbb to 38be0d2 Compare October 24, 2026 12:12

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 38be0d205b

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/celox/src/simulator.rs Resolved
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/support-sampled-processes--764da6c4 branch from 38be0d2 to 964e6ca Compare October 24, 2026 18:24
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/defer-assertions-combinational-processes-module--dc510d3a branch 2 times, most recently from 0e7031c to 8821d4c Compare October 24, 2026 21:38
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/support-sampled-processes--764da6c4 branch from 964e6ca to 10358b5 Compare October 24, 2026 21:38
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/defer-assertions-combinational-processes-module--dc510d3a branch from 8821d4c to 736ab81 Compare October 25, 2026 04:28
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/support-sampled-processes--764da6c4 branch from 10358b5 to 635ab91 Compare October 25, 2026 04:28
@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.

1 similar comment
@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 force-pushed the stack/tignear/feat/sva-stage1/defer-assertions-combinational-processes-module--dc510d3a branch from 736ab81 to 4da191c Compare October 25, 2026 05:15
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/support-sampled-processes--764da6c4 branch from 635ab91 to 860b34c Compare October 25, 2026 05:15
@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.

1 similar comment
@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 force-pushed the stack/tignear/feat/sva-stage1/defer-assertions-combinational-processes-module--dc510d3a branch from 4da191c to e3ce7bf Compare October 25, 2026 06:02

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 51b9549701

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/celox/src/simulation.rs Resolved
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/support-sampled-processes--764da6c4 branch from 51b9549 to 71e2dce Compare October 25, 2026 08:28
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/defer-assertions-combinational-processes-module--dc510d3a branch from 32b8420 to 03fc450 Compare October 25, 2026 08:28

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 71e2dcea6a

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/celox/src/simulator.rs Resolved
Comment thread crates/celox/src/simulator.rs Resolved
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/support-sampled-processes--764da6c4 branch from 71e2dce to b5571a7 Compare October 25, 2026 08:57
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/defer-assertions-combinational-processes-module--dc510d3a branch from 03fc450 to 0857710 Compare October 25, 2026 08:57

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b5571a7bea

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/celox/src/simulator.rs Resolved
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/support-sampled-processes--764da6c4 branch from b5571a7 to 6078c7d Compare October 25, 2026 09:46
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/defer-assertions-combinational-processes-module--dc510d3a branch from 0857710 to 086b802 Compare October 25, 2026 09:46
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/support-sampled-processes--764da6c4 branch from 6078c7d to f9b1d33 Compare October 25, 2026 09:59
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/defer-assertions-combinational-processes-module--dc510d3a branch from 086b802 to 71e4e4f Compare October 25, 2026 09:59

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f9b1d33cca

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Base automatically changed from stack/tignear/feat/sva-stage1/defer-assertions-combinational-processes-module--dc510d3a to master October 25, 2026 11:52
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/support-sampled-processes--764da6c4 branch from f9b1d33 to 1f2b566 Compare October 26, 2026 09:02
@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 26, 2026
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/support-sampled-processes--764da6c4 branch from 1f2b566 to 96d20fe Compare October 26, 2026 09:26

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 96d20fe207

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@tignear tignear removed the merge-ready Request merging through Mergify after required checks label Oct 26, 2026
Implement sampled values for static variables using copies captured before advancing to a later timestamp (IEEE 1800-2023 16.5.1 and 16.9.3). Initialize from declarations, preserve automatic variables, and copy strided arrays through their layouts. Same-timestamp host resumptions and writes retain the Preponed baseline; untimed Simulator calls each form a slot.

Resolve sampled select operands before hoisting nested calls, including calls with side effects. Cover timed host-only writes, repeated run_until calls, bounded runs, step, advance_to, and report watching. Verify that the compiled scheduler actually executes in the regression.

The runtime schema gains sample_shadows; native image version is 42. Combinational $sampled and handle operands remain unsupported in this stack member.

Validation:
- sv_sampled: 35 passed across interpreter, native, actual Cranelift and WASM.
- Celox/runtime unit tests: 309 passed.
- Time, stop, state-file, runtime API, clock and image consumers: 110 passed, 2 ignored.
- Formatting and affected-crate Clippy with -D warnings.

Change-Id: I764da6c419a54df2ca88f784d797f22e5c8520eb
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/support-sampled-processes--764da6c4 branch from 96d20fe to 903b789 Compare October 26, 2026 09:57
@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 26, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 26, 2026
@mergify

mergify Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 41 minutes 46 seconds in the queue, including 40 minutes 3 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 ba2b15a into master Oct 26, 2026
23 checks passed
@mergify
mergify Bot deleted the stack/tignear/feat/sva-stage1/support-sampled-processes--764da6c4 branch October 26, 2026 11:16
@mergify mergify Bot removed the queued Mergify queue entry label Oct 26, 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