Skip to content

Commit

Permalink
Preserve definedness in more cases (#2226)
Browse files Browse the repository at this point in the history
* evm-types: marke ^Word as total

* evm.md: marke SSTORE rule as preserving definedness

* Set Version: 1.0.398

* Set Version: 1.0.399

* Set Version: 1.0.400

---------

Co-authored-by: devops <[email protected]>
Co-authored-by: Andrei Văcaru <[email protected]>
  • Loading branch information
3 people authored Dec 19, 2023
1 parent b50a246 commit 576b3cd
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion kevm-pyk/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "kevm-pyk"
version = "1.0.399"
version = "1.0.400"
description = ""
authors = [
"Runtime Verification, Inc. <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion kevm-pyk/src/kevm_pyk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
from typing import Final


VERSION: Final = '1.0.399'
VERSION: Final = '1.0.400'
4 changes: 2 additions & 2 deletions kevm-pyk/src/kevm_pyk/kproj/evm-semantics/evm-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ The helper `powmod` is a totalization of the operator `_^%Int__` (which comes wi
`_^%Int__` is not defined when the modulus (third argument) is zero, but `powmod` is.

```k
syntax Int ::= Int "^Word" Int [function]
syntax Int ::= powmod(Int, Int, Int) [function, total]
syntax Int ::= Int "^Word" Int [function, total]
| powmod(Int, Int, Int) [function, total]
// ------------------------------------------------------
rule W0 ^Word W1 => powmod(W0, W1, pow256)
Expand Down
1 change: 1 addition & 0 deletions kevm-pyk/src/kevm_pyk/kproj/evm-semantics/evm.md
Original file line number Diff line number Diff line change
Expand Up @@ -1214,6 +1214,7 @@ These rules reach into the network state and load/store from account storage:
<storage> STORAGE => STORAGE [ INDEX <- NEW ] </storage>
...
</account>
[preserves-definedness]
```

### Call Operations
Expand Down
2 changes: 1 addition & 1 deletion package/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.399
1.0.400

0 comments on commit 576b3cd

Please sign in to comment.