Skip to content

Commit

Permalink
Optimize _<_> schedule operator (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwight Guth committed Jun 25, 2024
1 parent 8ed2042 commit d2cdd9e
Show file tree
Hide file tree
Showing 13 changed files with 1,067 additions and 241 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ KEEP_OUTPUTS := false
CHECK := git --no-pager diff --no-index --ignore-all-space -R

tests/ethereum-tests/BlockchainTests/GeneralStateTests/VMTests/%: KEVM_MODE = VMTESTS
tests/ethereum-tests/BlockchainTests/GeneralStateTests/VMTests/%: KEVM_SCHEDULE = DEFAULT
tests/ethereum-tests/BlockchainTests/GeneralStateTests/VMTests/%: KEVM_SCHEDULE = HOMESTEAD

tests/%.run-interactive: tests/%
$(POETRY_RUN) kevm-pyk run $< $(KEVM_OPTS) $(KRUN_OPTS) --target $(TEST_CONCRETE_BACKEND) \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ You can call `kevm-pyk --help` to get a quick summary of how to use the script.
Run the file `tests/ethereum-tests/BlockchainTests/GeneralStateTests/VMTests/vmArithmeticTest/add0.json`:

```sh
poetry -C kevm-pyk run kevm-pyk run tests/ethereum-tests/BlockchainTests/GeneralStateTests/VMTests/vmArithmeticTest/add0.json --schedule DEFAULT --mode VMTESTS
poetry -C kevm-pyk run kevm-pyk run tests/ethereum-tests/BlockchainTests/GeneralStateTests/VMTests/vmArithmeticTest/add0.json --schedule HOMESTEAD --mode VMTESTS
```

To enable the debug symbols for the llvm backend, build using this command:
Expand Down
1 change: 0 additions & 1 deletion kevm-pyk/src/kevm_pyk/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,6 @@ def kprove_legacy_args(self) -> ArgumentParser:
@cached_property
def evm_chain_args(self) -> ArgumentParser:
schedules = (
'DEFAULT',
'FRONTIER',
'HOMESTEAD',
'TANGERINE_WHISTLE',
Expand Down
3 changes: 1 addition & 2 deletions kevm-pyk/src/kevm_pyk/kproj/evm-semantics/evm.md
Original file line number Diff line number Diff line change
Expand Up @@ -1718,8 +1718,7 @@ Precompiled Contracts
syntax Int ::= #precompiledAccountsUB ( Schedule ) [klabel(#precompiledAccountsUB), function, total]
// ----------------------------------------------------------------------------------------------------
rule #precompiledAccountsUB(DEFAULT) => 4
rule #precompiledAccountsUB(FRONTIER) => #precompiledAccountsUB(DEFAULT)
rule #precompiledAccountsUB(FRONTIER) => 4
rule #precompiledAccountsUB(HOMESTEAD) => #precompiledAccountsUB(FRONTIER)
rule #precompiledAccountsUB(TANGERINE_WHISTLE) => #precompiledAccountsUB(HOMESTEAD)
rule #precompiledAccountsUB(SPURIOUS_DRAGON) => #precompiledAccountsUB(TANGERINE_WHISTLE)
Expand Down
Loading

0 comments on commit d2cdd9e

Please sign in to comment.