Skip to content

Conversation

@SpaceManiac
Copy link
Contributor

Wasmi's execution model includes a trap representation that models classic exit codes, which host functions can return using Err(wasmi::core::Trap::i32_exit(0)).

This is a tweak to fn execution_trace that catches such exit(0) calls and considers them to be successful program executions and continues proving that trace, rather than erroring out.

It's possible that this misses some important post-function-call tracing or cleanup deeper in the stack; I don't know zkEngine well enough to say.

@SpaceManiac SpaceManiac changed the title Let exit(0) end Wasm execution but continue tracing and proving Let exit(0) end Wasm execution but continue proving Jun 10, 2025
@Forpee Forpee merged commit e23abd8 into ICME-Lab:main Jun 10, 2025
1 of 2 checks passed
@SpaceManiac SpaceManiac deleted the patch/end-execution-early branch June 25, 2025 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants