Skip to content

Commit

Permalink
adding definedness constraints for ecrec
Browse files Browse the repository at this point in the history
  • Loading branch information
PetarMax committed Aug 10, 2023
1 parent 3279e4f commit a35b70e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/specs/benchmarks/verification.k
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ module VERIFICATION-COMMON
rule 0 <=Int #asWord(#ecrec(_ , _ , _ , _ )) => true [simplification]
rule #asWord(#ecrec(_ , _ , _ , _ )) <=Int maxUInt160 => true [simplification]

rule #Ceil( #ecrec(HASH, SIGV, SIGR, SIGS) ) => #Top
requires #ecrecEmpty(HASH, SIGV, SIGR, SIGS) [simplification]

rule #Ceil( #ecrec(HASH, SIGV, SIGR, SIGS) ) => #Top
requires notBool #ecrecEmpty(HASH, SIGV, SIGR, SIGS) [simplification]

endmodule

module VERIFICATION
Expand Down

0 comments on commit a35b70e

Please sign in to comment.