solidity/test/libsolidity/smtCheckerTests/blockchain_state/library_internal_1.sol
2023-03-09 14:59:32 +01:00

21 lines
501 B
Solidity

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
// ----
// Info 1391: CHC: 2 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them.