Skip to content

Commit 9c1fc90

Browse files
committed
Generate summary specification files for multiple EVM opcodes
- Update summary files for numerous EVM opcodes - Modify basic block rules in summary specification files - Systematically process and generate summary files for various EVM instructions
1 parent 999dd4f commit 9c1fc90

File tree

105 files changed

+231
-48
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+231
-48
lines changed

kevm-pyk/src/kevm_pyk/kproj/evm-semantics/summaries/summary-add-2-spec.k

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
requires "../evm.md"
2+
requires "../buf.md"
23

34
module SUMMARY-ADD-2-SPEC
45
imports EVM
6+
imports BUF
57

68

79
rule [BASIC-BLOCK-8-TO-6]: <kevm>

kevm-pyk/src/kevm_pyk/kproj/evm-semantics/summaries/summary-addmod-3-spec.k

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
requires "../evm.md"
2+
requires "../buf.md"
23

34
module SUMMARY-ADDMOD-3-SPEC
45
imports EVM
6+
imports BUF
57

68

79
rule [BASIC-BLOCK-8-TO-6]: <kevm>

kevm-pyk/src/kevm_pyk/kproj/evm-semantics/summaries/summary-address-0-spec.k

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
requires "../evm.md"
2+
requires "../buf.md"
23

34
module SUMMARY-ADDRESS-0-SPEC
45
imports EVM
6+
imports BUF
57

68

79
rule [BASIC-BLOCK-3-TO-8]: <kevm>

kevm-pyk/src/kevm_pyk/kproj/evm-semantics/summaries/summary-and-2-spec.k

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
requires "../evm.md"
2+
requires "../buf.md"
23

34
module SUMMARY-AND-2-SPEC
45
imports EVM
6+
imports BUF
57

68

79
rule [BASIC-BLOCK-8-TO-7]: <kevm>

kevm-pyk/src/kevm_pyk/kproj/evm-semantics/summaries/summary-balance-normal-1-spec.k

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
requires "../evm.md"
2+
requires "../buf.md"
23

34
module SUMMARY-BALANCE-NORMAL-1-SPEC
45
imports EVM
6+
imports BUF
57

68

79
rule [BASIC-BLOCK-1-TO-3]: <kevm>
@@ -38,7 +40,7 @@ imports EVM
3840
<accounts>
3941
<account>
4042
<acctID>
41-
( W0:Int modInt pow160 )
43+
ACCTID
4244
</acctID>
4345
<balance>
4446
BALANCE_CELL:Int
@@ -52,9 +54,8 @@ imports EVM
5254
</ethereum>
5355
...
5456
</kevm>
55-
requires ( notBool <acctID>
56-
( W0:Int modInt pow160 )
57-
</acctID> in_keys ( DotAccountVar:AccountCellMap ) )
57+
requires ACCTID ==Int W0:Int modInt pow160
58+
5859
[priority(20), label(BASIC-BLOCK-1-TO-3)]
5960

6061
endmodule

kevm-pyk/src/kevm_pyk/kproj/evm-semantics/summaries/summary-balance-owise-1-spec.k

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
requires "../evm.md"
2+
requires "../buf.md"
23

34
module SUMMARY-BALANCE-OWISE-1-SPEC
45
imports EVM
6+
imports BUF
57

68

79
rule [BASIC-BLOCK-1-TO-3]: <kevm>
@@ -52,9 +54,7 @@ imports EVM
5254
</ethereum>
5355
...
5456
</kevm>
55-
requires ( notBool <acctID>
56-
( W0:Int modInt pow160 )
57-
</acctID> in_keys ( DotAccountVar:AccountCellMap ) )
57+
5858
[priority(20), label(BASIC-BLOCK-1-TO-3)]
5959

6060
endmodule

kevm-pyk/src/kevm_pyk/kproj/evm-semantics/summaries/summary-blockhash-1-spec.k

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
requires "../evm.md"
2+
requires "../buf.md"
23

34
module SUMMARY-BLOCKHASH-1-SPEC
45
imports EVM
6+
imports BUF
57

68

79
rule [BASIC-BLOCK-8-TO-7]: <kevm>

kevm-pyk/src/kevm_pyk/kproj/evm-semantics/summaries/summary-byte-2-spec.k

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
requires "../evm.md"
2+
requires "../buf.md"
23

34
module SUMMARY-BYTE-2-SPEC
45
imports EVM
6+
imports BUF
57

68

79
rule [BASIC-BLOCK-8-TO-6]: <kevm>

kevm-pyk/src/kevm_pyk/kproj/evm-semantics/summaries/summary-calldatacopy-3-spec.k

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
requires "../evm.md"
2+
requires "../buf.md"
23

34
module SUMMARY-CALLDATACOPY-3-SPEC
45
imports EVM
6+
imports BUF
57

68

79
rule [BASIC-BLOCK-8-TO-7]: <kevm>

kevm-pyk/src/kevm_pyk/kproj/evm-semantics/summaries/summary-calldataload-1-spec.k

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
requires "../evm.md"
2+
requires "../buf.md"
23

34
module SUMMARY-CALLDATALOAD-1-SPEC
45
imports EVM
6+
imports BUF
57

68

79
rule [BASIC-BLOCK-8-TO-6]: <kevm>

0 commit comments

Comments
 (0)