2021-08-20 16:47:38 +00:00
|
|
|
interface I {
|
|
|
|
function ext() external;
|
|
|
|
}
|
|
|
|
|
|
|
|
contract C {
|
|
|
|
function f(I _i) public {
|
|
|
|
uint x = address(this).balance;
|
|
|
|
_i.ext();
|
|
|
|
assert(address(this).balance == x); // should fail
|
|
|
|
assert(address(this).balance >= x); // should hold
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ====
|
|
|
|
// SMTEngine: all
|
2021-11-24 10:38:22 +00:00
|
|
|
// SMTIgnoreOS: macos
|
2021-08-20 16:47:38 +00:00
|
|
|
// ----
|
2023-02-09 16:07:13 +00:00
|
|
|
// Warning 6328: (131-165): CHC: Assertion violation happens here.
|
|
|
|
// Info 1391: CHC: 1 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them.
|