Skip to content

feat(sv): support $past and the value change functions in clocked processes - #1880

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/sva-stage1/support-past-value-change-funcs-clocked-processes--8980d66c
Oct 26, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/sva-stage1/support-past-value-change-funcs-clocked-processes--8980d66c

Conversation

@tignear

@tignear tignear commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Implement $past, $rose, $fell, $stable and $changed using per-process sampled histories and an inferred clock. Initialize history from declared/default values, support constant history depth and gated ticks, and compare four-state values using case equality where required.

Reject history operands whose semantics cannot yet be represented. NativeProgramInstance rejects images requiring sampled/history slot boundaries; Simulator and Simulation retain the metadata and initialization copies. Rebase that check onto the current native image API and bump the image container to version 43.

Preserve nested sampled operands both during call discovery and when lowering select indices; resolve their histories before evaluation. Support numeric stability/change comparisons for real and shortreal, including signed zero and nested sampled expressions.

Validation on this stack member: sv_past, sv_sampled and native_simulation_image across interpreter, native, actual Cranelift and WASM, 96 passed; frontend unit tests, 7 passed; formatting and affected-crate Clippy with -D warnings. Both newly added regressions failed on all four backends before the fixes.

Depends-On: #1879

@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

@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:00:35.891502Z f1a6efb 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.

@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: 21159a7c46

ℹ️ 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
@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/support-sampled-processes--764da6c4 branch from 7baa69a to 1113dbb Compare October 24, 2026 11:06
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/support-past-value-change-funcs-clocked-processes--8980d66c branch from 21159a7 to 166ae72 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 21159a7 2026-10-24 11:03 UTC
2 content 21159a7 → 166ae72 Review: capture the gate before the body, fold constant tick counts, reject nested and unpacked-array operands, copy arrays by layout; container version 37 2026-10-24 11:03 UTC
3 rebase 166ae72 → be7cf52 (rebase only) 2026-10-24 12:11 UTC
4 content be7cf52 → 89ed237 2026-10-24 18:21 UTC
5 rebase 89ed237 → 5905b6c (rebase only) 2026-10-24 21:36 UTC
6 rebase 5905b6c → 1f9c849 (rebase only) 2026-10-25 04:27 UTC
7 content 1f9c849 → 5aa80ce 2026-10-25 05:14 UTC
8 content 5aa80ce → f433326 (raw) 2026-10-25 06:02 UTC
9 rebase f433326 → 0cb546c (rebase only) 2026-10-25 06:58 UTC
10 rebase 0cb546c → 5cb9294 (rebase only) 2026-10-25 08:25 UTC
11 content 5cb9294 → 1721bbf 2026-10-25 08:57 UTC
12 rebase 1721bbf → 1d8d8c5 (rebase only) 2026-10-25 09:46 UTC
13 content 1d8d8c5 → f22d926 2026-10-25 09:59 UTC
14 content f22d926 → bf580f9 2026-10-26 09:01 UTC
15 content bf580f9 → 67240c9 Select the actual Cranelift backend in history regressions and gate optional backend registrations. 2026-10-26 09:25 UTC
16 content 67240c9 → f1a6efb Preserve nested sampled operands in history select indices and support real stability comparisons from new P2 reviews. 2026-10-26 09:56 UTC

@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/support-past-value-change-funcs-clocked-processes--8980d66c branch from 166ae72 to be7cf52 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: be7cf528ff

ℹ️ 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 force-pushed the stack/tignear/feat/sva-stage1/support-past-value-change-funcs-clocked-processes--8980d66c branch from be7cf52 to 89ed237 Compare October 24, 2026 18:24
@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

@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: 89ed23793c

ℹ️ 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 force-pushed the stack/tignear/feat/sva-stage1/support-past-value-change-funcs-clocked-processes--8980d66c branch from 89ed237 to 5905b6c 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

@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: 5905b6c2a9

ℹ️ 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-past-value-change-funcs-clocked-processes--8980d66c branch from 5905b6c to 1f9c849 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/support-past-value-change-funcs-clocked-processes--8980d66c branch from 1f9c849 to 5aa80ce 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.

@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/support-sampled-processes--764da6c4 branch from bca1f84 to 51b9549 Compare October 25, 2026 06:59
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/support-past-value-change-funcs-clocked-processes--8980d66c branch from f433326 to 0cb546c Compare October 25, 2026 06:59
@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/support-past-value-change-funcs-clocked-processes--8980d66c branch from 0cb546c to 5cb9294 Compare October 25, 2026 08:28
@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/support-past-value-change-funcs-clocked-processes--8980d66c branch from 5cb9294 to 1721bbf Compare October 25, 2026 08:57
@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/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/support-past-value-change-funcs-clocked-processes--8980d66c branch from 1721bbf to 1d8d8c5 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/support-past-value-change-funcs-clocked-processes--8980d66c branch 2 times, most recently from f22d926 to bf580f9 Compare October 26, 2026 09:02
@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

@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: bf580f9b26

ℹ️ 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 force-pushed the stack/tignear/feat/sva-stage1/support-sampled-processes--764da6c4 branch from 1f2b566 to 96d20fe Compare October 26, 2026 09:26
@tignear
tignear force-pushed the stack/tignear/feat/sva-stage1/support-past-value-change-funcs-clocked-processes--8980d66c branch from bf580f9 to 67240c9 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: 67240c98d9

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

…cesses

Implement $past, $rose, $fell, $stable and $changed using per-process sampled histories and an inferred clock. Initialize history from declared/default values, support constant history depth and gated ticks, and compare four-state values using case equality where required.

Reject history operands whose semantics cannot yet be represented. NativeProgramInstance rejects images requiring sampled/history slot boundaries; Simulator and Simulation retain the metadata and initialization copies. Rebase that check onto the current native image API and bump the image container to version 43.

Preserve nested sampled operands both during call discovery and when lowering select indices; resolve their histories before evaluation. Support numeric stability/change comparisons for real and shortreal, including signed zero and nested sampled expressions.

Validation on this stack member: sv_past, sv_sampled and native_simulation_image across interpreter, native, actual Cranelift and WASM, 96 passed; frontend unit tests, 7 passed; formatting and affected-crate Clippy with -D warnings. Both newly added regressions failed on all four backends before the fixes.

Change-Id: I8980d66c6a630a5297ed41429c982e3b02a62f9b
@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 force-pushed the stack/tignear/feat/sva-stage1/support-past-value-change-funcs-clocked-processes--8980d66c branch from 67240c9 to f1a6efb 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 1 hour 3 minutes 35 seconds in the queue, including 37 minutes 7 seconds running CI.

Required conditions to merge

Base automatically changed from stack/tignear/feat/sva-stage1/support-sampled-processes--764da6c4 to master October 26, 2026 11:16
@mergify
mergify Bot merged commit fa2009f into master Oct 26, 2026
26 checks passed
@mergify
mergify Bot deleted the stack/tignear/feat/sva-stage1/support-past-value-change-funcs-clocked-processes--8980d66c branch October 26, 2026 11:41
@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