Skip to content

Commit

Permalink
Additional constraints for simplifications of PR #2307 (#2311)
Browse files Browse the repository at this point in the history
* non-negativity and concrete arguments for simplifications

* Set Version: 1.0.462

---------

Co-authored-by: devops <[email protected]>
  • Loading branch information
PetarMax and devops authored Feb 22, 2024
1 parent f0a032b commit adfe3a0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 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.461"
version = "1.0.462"
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.461'
VERSION: Final = '1.0.462'
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ module BYTES-SIMPLIFICATION [symbolic]
rule [buf-asWord-invert-lr-len-leq]:
#buf (W:Int , #asWord(B:Bytes)) => #buf(W -Int lengthBytes(B), 0) +Bytes B
requires lengthBytes(B) <=Int W andBool W <=Int 32
[simplification]
[simplification, concrete(W)]

rule [buf-asWord-invert-lr-len-gt]:
#buf (W:Int , #asWord(B:Bytes)) => #range(B, lengthBytes(B) -Int W, W)
requires W <Int lengthBytes(B) andBool lengthBytes(B) <=Int 32
requires 0 <=Int W andBool W <Int lengthBytes(B) andBool lengthBytes(B) <=Int 32
andBool #asWord(B) <Int 2 ^Int (8 *Int W)
[simplification]
[simplification, concrete(W)]

rule [buf-asWord-invert-rl]:
#asWord ( #buf ( WB:Int, X:Int ) ) => X
Expand Down
2 changes: 1 addition & 1 deletion package/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.461
1.0.462

0 comments on commit adfe3a0

Please sign in to comment.