2020-05-14 18:09:52 +00:00
|
|
|
pragma experimental SMTChecker;
|
|
|
|
|
|
|
|
abstract contract D {
|
|
|
|
function d() external virtual;
|
|
|
|
}
|
|
|
|
|
|
|
|
contract C {
|
|
|
|
uint x;
|
|
|
|
D d;
|
|
|
|
function f() public {
|
|
|
|
if (x < 10)
|
|
|
|
++x;
|
|
|
|
}
|
|
|
|
function g() public {
|
|
|
|
d.d();
|
|
|
|
assert(x < 11);
|
|
|
|
}
|
|
|
|
}
|
2020-12-10 15:51:10 +00:00
|
|
|
// ----
|