2020-08-18 17:25:36 +00:00
|
|
|
abstract contract D {
|
|
|
|
function d() public virtual ;
|
|
|
|
}
|
|
|
|
|
|
|
|
contract C {
|
|
|
|
bool a;
|
|
|
|
uint x;
|
|
|
|
D d;
|
|
|
|
function g() public returns (uint) {
|
|
|
|
x = 2;
|
|
|
|
return x;
|
|
|
|
}
|
|
|
|
function f(bool b) public {
|
|
|
|
x = 1;
|
|
|
|
uint y = b ? g() : 3;
|
|
|
|
assert(x == 2 || x == 1);
|
|
|
|
}
|
|
|
|
function h() public {
|
|
|
|
x = 3;
|
|
|
|
}
|
|
|
|
}
|
2021-03-31 15:11:54 +00:00
|
|
|
// ====
|
|
|
|
// SMTEngine: all
|
2020-08-18 17:25:36 +00:00
|
|
|
// ----
|
2021-03-31 15:11:54 +00:00
|
|
|
// Warning 2072: (240-246): Unused local variable.
|
2023-02-09 16:07:13 +00:00
|
|
|
// Info 1391: CHC: 1 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them.
|