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

Enable generating KEVM claims from the basic blocks of Kontrol KCFGs #262

Merged
merged 23 commits into from
Jan 15, 2024

Conversation

ehildenb
Copy link
Member

@ehildenb ehildenb commented Jan 9, 2024

Blocked on: #261
Blocked on: runtimeverification/pyk#804
Blocked on: runtimeverification/evm-semantics#2236
Blocked on: #265

Enables: runtimeverification/evm-semantics#2244

This PR enables generating KEVM specifications directly from the basic blocks of generated Kontrol KCFGs. In particular:

  • Option --to-kevm-claims to kontrol show ... also produces a module containing KEVM claims for each basic block. The basic blocks are turned into claims that should pass without branching on KEVM, with the following massaging:
    • Any claim mentioning symbols from the Foundry modules is stripped out.
    • The claims are made over only the <kevm> subconfiguration which is extracted, not over the remaining <cheat-codes> configuration.
  • Option --kevm-claim-dir ... allows specifying a directory to generate these claims in.

@ehildenb ehildenb self-assigned this Jan 9, 2024
@ehildenb ehildenb marked this pull request as ready for review January 12, 2024 20:08
@palinatolmach
Copy link
Collaborator

@anvacaru lgtm, but could you please review this PR too?

src/kontrol/foundry.py Outdated Show resolved Hide resolved
src/kontrol/foundry.py Outdated Show resolved Hide resolved
@ehildenb ehildenb requested a review from anvacaru January 15, 2024 17:04
Copy link
Contributor

@anvacaru anvacaru left a comment

Choose a reason for hiding this comment

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

Approved with one comment 👍 !

src/kontrol/foundry.py Outdated Show resolved Hide resolved
@rv-jenkins rv-jenkins merged commit 90d913d into master Jan 15, 2024
11 checks passed
@rv-jenkins rv-jenkins deleted the kevm-claims branch January 15, 2024 19:03
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.

4 participants