Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Revert interpreter stack display #238

Merged
merged 1 commit into from
May 22, 2024
Merged

Conversation

Nashtare
Copy link
Collaborator

Encountering an error while running the CPU in simulation mode (i.e. through the interpreter) would display a reverted stack, which can be confusing. Additionally, the interpreter was re-implementing stack reconstruction in a bloated way while we could reuse the implementation from the underlying generation state (assuming the stack is less than 10 elements long in unit tests, which is currently always the case).

The only downside is that the interpreter's implementation of the State trait method get_stack requires a double call to stack.reverse(), although this method is only used upon CPU erroring, so this isn't an issue.

@Nashtare Nashtare added this to the Cleanups and Misc. milestone May 21, 2024
@Nashtare Nashtare self-assigned this May 21, 2024
@github-actions github-actions bot added the crate: evm_arithmetization Anything related to the evm_arithmetization crate. label May 21, 2024
@Nashtare Nashtare merged commit e9367f6 into develop May 22, 2024
6 checks passed
@Nashtare Nashtare deleted the fix/interpreter_stack branch May 22, 2024 05:51
Nashtare added a commit that referenced this pull request May 27, 2024
* ci: add cargo audit job (#236)

* fix: Revert interpreter stack display (#238)

* Fix clippy doc_lazy_continuation (#247)

* perf: Improve blake2 precompile (#239)

* Speed-up some blake2 components

* Some more optimizations

* Cleanup

* Endline

* Some more speed-up

* Fix comments

* Clippy

---------

Co-authored-by: Robin Salen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crate: evm_arithmetization Anything related to the evm_arithmetization crate.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants