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;
|
|
|
|
d.d();
|
|
|
|
return x;
|
|
|
|
}
|
2020-09-29 18:54:26 +00:00
|
|
|
function f() public {
|
2020-08-18 17:25:36 +00:00
|
|
|
x = 1;
|
2020-09-29 18:54:26 +00:00
|
|
|
uint y = g();
|
2020-08-18 17:25:36 +00:00
|
|
|
assert(x == 2 || x == 1);
|
|
|
|
}
|
|
|
|
function h() public {
|
|
|
|
x = 3;
|
|
|
|
}
|
|
|
|
}
|
2021-01-20 10:22:28 +00:00
|
|
|
// ====
|
2021-03-31 15:11:54 +00:00
|
|
|
// SMTEngine: all
|
2021-01-20 10:22:28 +00:00
|
|
|
// SMTIgnoreCex: yes
|
2020-08-18 17:25:36 +00:00
|
|
|
// ----
|
2021-03-31 15:11:54 +00:00
|
|
|
// Warning 2072: (249-255): Unused local variable.
|
2021-11-23 17:08:36 +00:00
|
|
|
// Warning 6328: (271-295): CHC: Assertion violation happens here.
|