Skip to content

Commit 2c49ae7

Browse files
author
Leo
authored
Merge pull request #12984 from ethereum/fix_smt
fix smt flaky test
2 parents 84c64ed + 201c6c6 commit 2c49ae7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/libsolidity/smtCheckerTests/operators/slice_default_end.sol

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ contract C {
33
require(b.length == 30);
44
require(b[10] == 0xff);
55
require(b[b.length - 1] == 0xaa);
6-
assert(bytes(b[10:]).length == 20);
7-
assert(bytes(b[10:])[0] == 0xff);
6+
assert(bytes(b[10:]).length == 20); // should hold
7+
// Disabled because of Spacer's nondeterminism.
8+
//assert(bytes(b[10:])[0] == 0xff); // should hold
89
//assert(bytes(b[10:])[5] == 0xff); // Removed because of Spacer's nondeterminism
910
//assert(bytes(b[10:])[19] == 0xaa); // Removed because of Spacer nondeterminism
1011
}
1112
}
1213
// ====
1314
// SMTEngine: all
1415
// ----
15-
// Warning 6328: (188-220): CHC: Assertion violation might happen here.
16-
// Warning 4661: (188-220): BMC: Assertion violation happens here.

0 commit comments

Comments
 (0)