Merge pull request #11262 from ethereum/disable-smt-assertion-in-slices-3

Disable assertion that gives non-deterministic results in slice tests for SMTChecker
This commit is contained in:
Đorđe Mijović 2021-04-16 09:34:25 +02:00 committed by GitHub
commit da87eea309
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,8 @@ function f(int[] calldata b, uint256 start, uint256 end) public returns (int) {
uint len = end - start; uint len = end - start;
assert(len == s.length); assert(len == s.length);
for (uint i = 0; i < len; i++) { for (uint i = 0; i < len; i++) {
assert(b[start:end][i] == s[i]); // Removed because of Spacer nondeterminism.
//assert(b[start:end][i] == s[i]);
} }
return s[0]; return s[0];
} }
@ -13,5 +14,3 @@ function f(int[] calldata b, uint256 start, uint256 end) public returns (int) {
// ==== // ====
// SMTEngine: all // SMTEngine: all
// ---- // ----
// Warning 6328: (226-257): CHC: Assertion violation might happen here.
// Warning 4661: (226-257): BMC: Assertion violation happens here.