2019-04-01 09:10:28 +00:00
|
|
|
contract C
|
|
|
|
{
|
|
|
|
uint y;
|
|
|
|
|
|
|
|
function f() public {
|
2020-02-12 02:21:42 +00:00
|
|
|
if (y != 1)
|
|
|
|
g();
|
2019-04-01 09:10:28 +00:00
|
|
|
assert(y == 1);
|
|
|
|
}
|
|
|
|
|
2020-02-12 02:21:42 +00:00
|
|
|
function g() internal {
|
2019-04-01 09:10:28 +00:00
|
|
|
y = 1;
|
|
|
|
h();
|
|
|
|
}
|
|
|
|
|
2020-02-12 02:21:42 +00:00
|
|
|
function h() internal {
|
2019-04-01 09:10:28 +00:00
|
|
|
f();
|
2020-02-12 02:21:42 +00:00
|
|
|
assert(y == 1);
|
2019-04-01 09:10:28 +00:00
|
|
|
}
|
|
|
|
}
|
2021-03-31 15:11:54 +00:00
|
|
|
// ====
|
|
|
|
// SMTEngine: all
|
2019-04-01 09:10:28 +00:00
|
|
|
// ----
|
2023-02-09 16:07:13 +00:00
|
|
|
// Info 1391: CHC: 2 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them.
|