We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d46a9db commit 6fffef3Copy full SHA for 6fffef3
tests/specs/mcd-structured/verification.k
@@ -401,4 +401,11 @@ module LEMMAS-MCD [symbolic]
401
rule #if B #then C #else D #fi => C requires B [simplification]
402
rule #if B #then C #else D #fi => C requires notBool B [simplification]
403
404
+ // #buf simplification comparing to null-bytes: compare as Int
405
+ rule #buf(N, X:Int) ==K NULLBYTES => X ==Int 0
406
+ requires 0 <=Int X
407
+ andBool X <=Int 2 ^Int ( 8 *Int N)
408
+ andBool #asInteger(NULLBYTES) ==Int 0
409
+ [simplification, concrete(NULLBYTES)]
410
+
411
endmodule
0 commit comments