mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
disabling some tests because of nondeterminism in Spacer
This commit is contained in:
@@ -11,21 +11,17 @@ contract C {
|
||||
// should hold but the engine cannot infer that data is fully equals data[:data.length] because each index is assigned separately
|
||||
//assert(b1.length == b3.length); // fails for now
|
||||
|
||||
bytes memory b4 = abi.encode(data[5:10]);
|
||||
assert(b1.length == b4.length); // should fail
|
||||
// Disabled because of Spacer nondeterminism
|
||||
//bytes memory b4 = abi.encode(data[5:10]);
|
||||
//assert(b1.length == b4.length); // should fail
|
||||
|
||||
uint x = 5;
|
||||
uint y = 10;
|
||||
bytes memory b5 = abi.encode(data[x:y]);
|
||||
// Disabled because of Spacer nondeterminism in Z3 4.8.9
|
||||
//uint x = 5;
|
||||
//uint y = 10;
|
||||
//bytes memory b5 = abi.encode(data[x:y]);
|
||||
// should hold but the engine cannot infer that data[5:10] is fully equals data[x:y] because each index is assigned separately
|
||||
assert(b1.length == b5.length); // fails for now
|
||||
//assert(b1.length == b5.length); // fails for now
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning 6328: (311-341): CHC: Assertion violation happens here.
|
||||
// Warning 1218: (694-724): CHC: Error trying to invoke SMT solver.
|
||||
// Warning 6328: (694-724): CHC: Assertion violation might happen here.
|
||||
// Warning 1218: (945-975): CHC: Error trying to invoke SMT solver.
|
||||
// Warning 6328: (945-975): CHC: Assertion violation might happen here.
|
||||
// Warning 4661: (694-724): BMC: Assertion violation happens here.
|
||||
// Warning 4661: (945-975): BMC: Assertion violation happens here.
|
||||
|
||||
Reference in New Issue
Block a user