Add local vars to cex

This commit is contained in:
Leonardo Alt
2021-03-30 17:55:21 +02:00
parent a7e2a8acb2
commit ba97d6ac4e
216 changed files with 601 additions and 306 deletions
@@ -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.