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 authored and dwightguth committed Sep 25, 2024
1 parent 47350c5 commit b94d7f7
Show file tree
Hide file tree
Showing 13 changed files with 1,210 additions and 258 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,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 @@ -219,7 +219,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 @@ -896,7 +896,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 @@ -1777,8 +1777,7 @@ Precompiled Contracts
syntax Int ::= #precompiledAccountsUB ( Schedule ) [symbol(#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 b94d7f7

Please sign in to comment.