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

Draft: more work on the simulations for the gas file #678

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

clarus
Copy link
Collaborator

@clarus clarus commented Mar 4, 2025

Currentyl, the simulations are not working yet. Here are some things that still need to be done:

  • Simplify the LowM.t monad for links so that the errors are handled in a separate error monad. This should simplify some definitions, especially for the simulations that are built on top of it. In addition, we would be able to statically exclude the non-panic exceptions from the possible values returned by a function (break, continue, ...).
  • Rename LowM.Let as LowM.LetAlloc to make it more explicit.
  • We do this kind of LetAlloc for all the cases where we provide an explicit ty. There are such cases in the definition of the matching operators, that hence make one allocation too much. Fix it.
  • Have a way to make all the definitions, rather automatically, using only as hypothesis that we have the "Stack.Access.t" property on all the references to the stack at call point.
  • We that in hand, make a complete definition for the interpreter in the interpreter crate. We can admit all the loops for now, as well as not care about the aliasing. We will see how to properly isolate mutable references later.

@clarus clarus force-pushed the guillaume-claret@add-more-of-simulations-2025-03-04 branch 3 times, most recently from 2e5d8d1 to db7bab8 Compare March 11, 2025 13:53
@clarus clarus force-pushed the guillaume-claret@add-more-of-simulations-2025-03-04 branch from db7bab8 to 6be7148 Compare March 12, 2025 16:17
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.

1 participant