2019-05-06 16:24:15 +00:00
|
|
|
pragma experimental SMTChecker;
|
|
|
|
|
|
|
|
contract C
|
|
|
|
{
|
|
|
|
uint[] a;
|
2021-03-23 18:15:14 +00:00
|
|
|
constructor() { init(); }
|
|
|
|
function init() internal {
|
|
|
|
a.push();
|
|
|
|
a.push();
|
|
|
|
a.push();
|
|
|
|
}
|
2019-05-06 16:24:15 +00:00
|
|
|
function g() internal {
|
|
|
|
delete a;
|
|
|
|
}
|
|
|
|
function h() internal {
|
|
|
|
delete a[2];
|
|
|
|
}
|
|
|
|
function f(bool b) public {
|
|
|
|
a[2] = 3;
|
|
|
|
require(b);
|
|
|
|
if (b)
|
|
|
|
g();
|
|
|
|
else
|
|
|
|
h();
|
2021-03-23 18:15:14 +00:00
|
|
|
init();
|
2019-05-06 16:24:15 +00:00
|
|
|
assert(a[2] == 0);
|
2019-08-22 13:44:30 +00:00
|
|
|
assert(a[1] == 0);
|
2019-05-06 16:24:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
2021-03-23 18:15:14 +00:00
|
|
|
// Warning 6838: (295-296): BMC: Condition is always true.
|