Skip to content

Commit

Permalink
Merge branch 'master' into abstraction-cheatcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
anvacaru authored Jan 14, 2025
2 parents ab23771 + f1dec7c commit 7be55d6
Show file tree
Hide file tree
Showing 44 changed files with 1,199 additions and 216 deletions.
2 changes: 1 addition & 1 deletion deps/k_release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.1.191
7.1.196
2 changes: 1 addition & 1 deletion deps/kevm_release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.765
1.0.770
2 changes: 1 addition & 1 deletion deps/z3
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.13.0
4.13.4
38 changes: 19 additions & 19 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description = "Kontrol";

inputs = {
kevm.url = "github:runtimeverification/evm-semantics/v1.0.765";
kevm.url = "github:runtimeverification/evm-semantics/v1.0.770";
nixpkgs.follows = "kevm/nixpkgs";
k-framework.follows = "kevm/k-framework";
flake-utils.follows = "kevm/flake-utils";
Expand Down
367 changes: 228 additions & 139 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ authors = [

[tool.poetry.dependencies]
python = "^3.10"
kevm-pyk = { git = "https://github.com/runtimeverification/evm-semantics.git", tag = "v1.0.765", subdirectory = "kevm-pyk" }
kevm-pyk = { git = "https://github.com/runtimeverification/evm-semantics.git", tag = "v1.0.770", subdirectory = "kevm-pyk" }
eth-utils = "^4.1.1"
pycryptodome = "^3.20.0"
pyevmasm = "^0.2.3"
Expand Down
1 change: 1 addition & 0 deletions src/kontrol/prove.py
Original file line number Diff line number Diff line change
Expand Up @@ -1064,6 +1064,7 @@ def _init_cterm(
'ACCESSEDSTORAGE_CELL': map_empty(),
'INTERIMSTATES_CELL': list_empty(),
'TOUCHEDACCOUNTS_CELL': set_empty(),
'CREATEDACCOUNTS_CELL': set_empty(),
'STATIC_CELL': FALSE,
'ACCOUNTS_CELL': KEVM.accounts(init_account_list),
}
Expand Down
4 changes: 2 additions & 2 deletions src/tests/integration/test-data/lemmas.k
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module SUM-TO-N-INVARIANT
JUMPDESTS
</jumpDests>
<wordStack>
(S => (S +Int ((N *Int (N +Int 1)) /Int 2)))
(S => (S +Int ((N *Int (N +Int 1)) divInt 2)))
: 0
: (N => 0)
: 459
Expand All @@ -55,7 +55,7 @@ module SUM-TO-N-INVARIANT
</kevm>

requires 0 <Int N
andBool #rangeUInt(256, S +Int ((N *Int (N +Int 1)) /Int 2))
andBool #rangeUInt(256, S +Int ((N *Int (N +Int 1)) divInt 2))
andBool #rangeUInt(256, N)
andBool #rangeUInt(256, S)
andBool GAS_AMT >=Int N *Int 178
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ module SUMMARY-TEST%ACCOUNTPARAMSTEST.TESTDEALCONCRETE():0
<accessedStorage>
.Map
</accessedStorage>
<createdAccounts>
.Set
</createdAccounts>
...
</substate>
<origin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ module SUMMARY-TEST%ADDRTEST.TEST-ADDR-TRUE():0
<accessedStorage>
.Map
</accessedStorage>
<createdAccounts>
.Set
</createdAccounts>
...
</substate>
<origin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ module SUMMARY-TEST%ARITHMETICCALLTEST.TEST-DOUBLE-ADD(UINT256,UINT256):0
<accessedStorage>
.Map
</accessedStorage>
<createdAccounts>
.Set
</createdAccounts>
</substate> } ) => .List )
</interimStates>
<touchedAccounts>
Expand Down Expand Up @@ -315,6 +318,9 @@ module SUMMARY-TEST%ARITHMETICCALLTEST.TEST-DOUBLE-ADD(UINT256,UINT256):0
<accessedStorage>
.Map
</accessedStorage>
<createdAccounts>
.Set
</createdAccounts>
</substate>
<origin>
ORIGIN_ID:Int
Expand Down Expand Up @@ -643,6 +649,9 @@ module SUMMARY-TEST%ARITHMETICCALLTEST.TEST-DOUBLE-ADD(UINT256,UINT256):0
<accessedStorage>
.Map
</accessedStorage>
<createdAccounts>
.Set
</createdAccounts>
</substate> } ) )
</interimStates>
<touchedAccounts>
Expand Down Expand Up @@ -697,6 +706,9 @@ module SUMMARY-TEST%ARITHMETICCALLTEST.TEST-DOUBLE-ADD(UINT256,UINT256):0
<accessedStorage>
.Map
</accessedStorage>
<createdAccounts>
.Set
</createdAccounts>
</substate>
<origin>
ORIGIN_ID:Int
Expand Down Expand Up @@ -1049,6 +1061,9 @@ module SUMMARY-TEST%ARITHMETICCALLTEST.TEST-DOUBLE-ADD(UINT256,UINT256):0
<accessedStorage>
.Map
</accessedStorage>
<createdAccounts>
.Set
</createdAccounts>
</substate> } ) => .List )
</interimStates>
<touchedAccounts>
Expand Down Expand Up @@ -1103,6 +1118,9 @@ module SUMMARY-TEST%ARITHMETICCALLTEST.TEST-DOUBLE-ADD(UINT256,UINT256):0
<accessedStorage>
.Map
</accessedStorage>
<createdAccounts>
.Set
</createdAccounts>
</substate>
<origin>
ORIGIN_ID:Int
Expand Down Expand Up @@ -1436,6 +1454,9 @@ module SUMMARY-TEST%ARITHMETICCALLTEST.TEST-DOUBLE-ADD(UINT256,UINT256):0
<accessedStorage>
.Map
</accessedStorage>
<createdAccounts>
.Set
</createdAccounts>
</substate> } ) => .List )
</interimStates>
<touchedAccounts>
Expand Down Expand Up @@ -1490,6 +1511,9 @@ module SUMMARY-TEST%ARITHMETICCALLTEST.TEST-DOUBLE-ADD(UINT256,UINT256):0
<accessedStorage>
.Map
</accessedStorage>
<createdAccounts>
.Set
</createdAccounts>
</substate>
<origin>
ORIGIN_ID:Int
Expand Down Expand Up @@ -1824,6 +1848,9 @@ module SUMMARY-TEST%ARITHMETICCALLTEST.TEST-DOUBLE-ADD(UINT256,UINT256):0
<accessedStorage>
.Map
</accessedStorage>
<createdAccounts>
.Set
</createdAccounts>
</substate> } ) => .List )
</interimStates>
<touchedAccounts>
Expand Down Expand Up @@ -1878,6 +1905,9 @@ module SUMMARY-TEST%ARITHMETICCALLTEST.TEST-DOUBLE-ADD(UINT256,UINT256):0
<accessedStorage>
.Map
</accessedStorage>
<createdAccounts>
.Set
</createdAccounts>
</substate>
<origin>
ORIGIN_ID:Int
Expand Down
Loading

0 comments on commit 7be55d6

Please sign in to comment.