Skip to content

processor: add exact continuation stack limit regression test#2995

Open
KitaroMoha563 wants to merge 4 commits into0xMiden:nextfrom
KitaroMoha563:test-processor-exact-continuation-limit
Open

processor: add exact continuation stack limit regression test#2995
KitaroMoha563 wants to merge 4 commits into0xMiden:nextfrom
KitaroMoha563:test-processor-exact-continuation-limit

Conversation

@KitaroMoha563
Copy link
Copy Markdown
Contributor

@KitaroMoha563 KitaroMoha563 commented Apr 13, 2026

Describe your changes

Follow-up to #2825.

Add a regression test that proves execution still succeeds when the continuation stack size is exactly equal to max_num_continuations.

Checklist before requesting a review

  • Repo forked and branch created from next according to naming convention.
  • Commit messages and codestyle follow conventions.
  • Commits are signed.
  • Relevant issues are linked in the PR description.
  • Tests added for new functionality.
  • Documentation/comments updated according to changes.
  • Updated CHANGELOG.md

@github-actions
Copy link
Copy Markdown

Automated check (CONTRIBUTING.md)

Findings:

Recommendations:

  • Consider adding a Test plan or clear review steps.

Next steps:

  • Link a relevant issue (e.g., "Fixes Implement SHA256 in Miden Assembly #123") and ensure it is assigned to you.
  • See CONTRIBUTING.md for expectations.
  • If this is a false positive, comment: /quality-review.

@KitaroMoha563
Copy link
Copy Markdown
Contributor Author

The cargo-deny error appears to be the existing rand 0.9.2 version issue, not something introduced by this PR.

huitseeker
huitseeker previously approved these changes Apr 13, 2026
Copy link
Copy Markdown
Collaborator

@huitseeker huitseeker left a comment

Choose a reason for hiding this comment

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

Thanks!

@huitseeker huitseeker dismissed their stale review April 13, 2026 15:48

Changelog issue

Comment thread CHANGELOG.md Outdated
- Replaced unsound `ptr::read` with safe unbox in panic recovery, removing UB from potential double-drop ([#2934](https://github.com/0xMiden/miden-vm/pull/2934)).
- Reverted `InvokeKind::ProcRef` back to `InvokeKind::Exec` in `visit_mut_procref` and added an explanatory comment (#2893).
- Fixed the release dry-run publish cycle between `miden-air` and `miden-ace-codegen`, and preserved leaf-only DAG imports with explicit snapshots ([#2931](https://github.com/0xMiden/miden-vm/pull/2931)).
- Added regression coverage for the exact `max_num_continuations` continuation-stack boundary.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please link to this PR, as with the other lines.

@KitaroMoha563
Copy link
Copy Markdown
Contributor Author

@huitseeker Done, thanks very much for your review!

Copy link
Copy Markdown
Collaborator

@huitseeker huitseeker left a comment

Choose a reason for hiding this comment

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

🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants