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

Minor optimization to search #1170

Merged
merged 2 commits into from
Dec 2, 2024
Merged

Minor optimization to search #1170

merged 2 commits into from
Dec 2, 2024

Conversation

dwightguth
Copy link
Collaborator

@dwightguth dwightguth commented Nov 27, 2024

In the final version of the ULM, we want to enforce that semantics are deterministic. We do this using the search feature and the --execute-to-branch option which treats all states with more than one successor as final states and does not rewrite them further.

I tested this by running the ethereum test suite with this option and all the tests passed (with a few trivial changes to the semantics). A minor change resulted from this effort: if only a single state is active at a given time, we do not need to do the expensive equality check performed by erase. It is sufficient to simply clear the hash set.

@rv-jenkins rv-jenkins changed the base branch from master to develop November 27, 2024 19:21
@dwightguth dwightguth changed the title Some minor improvements to search Minor optimization to search Nov 27, 2024
@dwightguth dwightguth marked this pull request as ready for review December 2, 2024 17:07
Copy link
Collaborator

@Robertorosmaninho Robertorosmaninho left a comment

Choose a reason for hiding this comment

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

LGTM.
Will you push these semantics modifications somewhere?

@dwightguth
Copy link
Collaborator Author

@Robertorosmaninho there is a pr in the evm fork you can take a look at if you want.

@dwightguth dwightguth merged commit 1d701f5 into develop Dec 2, 2024
10 checks passed
@dwightguth dwightguth deleted the search branch December 2, 2024 17:31
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