Skip to content

Commit 8e5c626

Browse files
authored
Fix side condition in new simplification for mcd-structured (#2830)
* Adjust side condition (X <Int 2^numbits not X <=Int) * add length condition and preserves-definedness * remove accidentally-committed json file
1 parent e128e47 commit 8e5c626

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/specs/mcd-structured/flapper-yank-pass-rough-spec.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/specs/mcd-structured/verification.k

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,9 @@ module LEMMAS-MCD [symbolic]
404404
// #buf simplification comparing to null-bytes: compare as Int
405405
rule #buf(N, X:Int) ==K NULLBYTES => X ==Int 0
406406
requires 0 <=Int X
407-
andBool X <=Int 2 ^Int ( 8 *Int N)
407+
andBool X <Int 2 ^Int ( 8 *Int N)
408408
andBool #asInteger(NULLBYTES) ==Int 0
409-
[simplification, concrete(NULLBYTES)]
409+
andBool lengthBytes(NULLBYTES) ==Int N
410+
[simplification, concrete(NULLBYTES), preserves-definedness]
410411

411412
endmodule

0 commit comments

Comments
 (0)