solidity/test/libsolidity/smtCheckerTests/bmc_coverage/call_balance.sol
2022-04-01 23:41:18 -05:00

14 lines
373 B
Solidity

contract C {
function f(address _a) public {
uint b1 = address(this).balance;
_a.call("");
uint b2 = address(this).balance;
assert(b1 == b2); // should fail
}
}
// ====
// SMTEngine: bmc
// ----
// Warning 9302: (83-94='_a.call("")'): Return value of low-level calls not used.
// Warning 4661: (133-149='assert(b1 == b2)'): BMC: Assertion violation happens here.