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

21 lines
426 B
Solidity
Raw Normal View History

library L {
function l(address payable a) internal {}
}
contract C {
using L for address payable;
uint x;
function f(address payable a) public payable {
require(msg.value > 1);
uint b1 = address(this).balance;
a.l();
uint b2 = address(this).balance;
assert(b1 == b2); // should hold
assert(x == 0); // should hold
}
}
// ====
// SMTEngine: all
2021-10-06 09:53:03 +00:00
// ----
// Info 1180: Contract invariant(s) for :C:\n(x <= 0)\n