Skip to content

Commit

Permalink
temporary fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PetarMax committed Jan 13, 2025
1 parent 4aa718f commit 741fbc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
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
6 changes: 2 additions & 4 deletions tests/specs/examples/sum-to-n-spec.k
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ module VERIFICATION

rule chop(I) => I requires #rangeUInt(256, I) [simplification]

rule 0 <=Int #sizeWordStack ( _ , _ ) => true [simplification, smt-lemma]

syntax Bytes ::= "sumToN" [macro]
// -------------------------------------
rule sumToN
Expand Down Expand Up @@ -66,10 +64,10 @@ module SUM-TO-N-SPEC
<pc> 3 => 21 </pc>
<gas> G => G -Int (52 *Int I +Int 21) </gas>
<wordStack> I : S : WS
=> 0 : S +Int I *Int (I +Int 1) /Int 2 : WS </wordStack>
=> 0 : S +Int I *Int (I +Int 1) divInt 2 : WS </wordStack>
requires I >=Int 0
andBool S >=Int 0
andBool S +Int I *Int (I +Int 1) /Int 2 <Int pow256
andBool S +Int I *Int (I +Int 1) divInt 2 <Int pow256
andBool #sizeWordStack(WS) <Int 1021
andBool G >=Int 52 *Int I +Int 21
[circularity]
Expand Down

0 comments on commit 741fbc2

Please sign in to comment.