2020-10-26 16:16:27 +00:00
|
|
|
contract C {
|
|
|
|
int[][] array2d;
|
2021-03-23 18:15:14 +00:00
|
|
|
function s() public {
|
2020-10-26 16:16:27 +00:00
|
|
|
delete array2d.push();
|
|
|
|
assert(array2d[array2d.length - 1].length == 0);
|
|
|
|
// Fails
|
|
|
|
assert(array2d[array2d.length - 1].length != 0);
|
|
|
|
delete array2d.push().push();
|
|
|
|
uint length = array2d.length;
|
|
|
|
uint length2 = array2d[length - 1].length;
|
|
|
|
assert(array2d[length - 1][length2 - 1] == 0);
|
|
|
|
// Fails
|
|
|
|
assert(array2d[length - 1][length2 - 1] != 0);
|
|
|
|
}
|
|
|
|
}
|
2021-03-31 15:11:54 +00:00
|
|
|
// ====
|
|
|
|
// SMTEngine: all
|
2021-08-23 09:30:12 +00:00
|
|
|
// SMTIgnoreCex: yes
|
2020-10-26 16:16:27 +00:00
|
|
|
// ----
|
2021-08-23 09:30:12 +00:00
|
|
|
// Warning 6328: (143-190): CHC: Assertion violation happens here.
|
2021-08-20 16:47:30 +00:00
|
|
|
// Warning 6328: (363-408): CHC: Assertion violation happens here.
|