mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add local vars to cex
This commit is contained in:
@@ -19,7 +19,8 @@ contract C {
|
||||
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
|
||||
// Disabled because of Spacer nondeterminism.
|
||||
//assert(b1.length == b5.length); // fails for now
|
||||
}
|
||||
}
|
||||
// ====
|
||||
@@ -27,5 +28,5 @@ contract C {
|
||||
// ----
|
||||
// Warning 2072: (364-379): Unused local variable.
|
||||
// Warning 2072: (650-665): Unused local variable.
|
||||
// Warning 2072: (823-838): Unused local variable.
|
||||
// Warning 6328: (312-342): CHC: Assertion violation happens here.
|
||||
// Warning 6328: (995-1025): CHC: Assertion violation happens here.
|
||||
|
||||
Reference in New Issue
Block a user