solidity/test/libsolidity/smtCheckerTests/blockchain_state/balance_receive_ext_calls.sol

18 lines
414 B
Solidity
Raw Normal View History

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
// ----
// Warning 1218: (131-165): CHC: Error trying to invoke SMT solver.
// Warning 6328: (131-165): CHC: Assertion violation might happen here.