Skip to content

Commit

Permalink
Introducing first sumary for ERC20TransferValid.json contract
Browse files Browse the repository at this point in the history
  • Loading branch information
Robertorosmaninho committed Oct 15, 2024
1 parent 1e44493 commit fb3c445
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kevm-pyk/src/kevm_pyk/kproj/evm-semantics/driver.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ requires "evm.md"
requires "optimizations.md"
requires "asm.md"
requires "state-utils.md"
requires "lemmas/summaries.k"
module ETHEREUM-SIMULATION
imports EVM
imports EVM-OPTIMIZATIONS
imports EVM-ASSEMBLY
imports STATE-UTILS
imports SUMMARIES
```

An Ethereum simulation is a list of Ethereum commands.
Expand Down
15 changes: 15 additions & 0 deletions kevm-pyk/src/kevm_pyk/kproj/evm-semantics/lemmas/summaries.k
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
requires "domains.md"
requires "evm.md"

module ERC20TRANSFERVALID-SUMMARY
imports EVM

rule [program.load]:
<k> #loadProgram BYTES => .K ...</k>
<program> _ => BYTES </program>
<jumpDests> _ => b"\x00\x00\x00\x00\x00\x00\x00\x00\x00" </jumpDests> [priority(40)]
endmodule

module SUMMARIES
imports ERC20TRANSFERVALID-SUMMARY
endmodule

0 comments on commit fb3c445

Please sign in to comment.