solidity/test/libsolidity/smtCheckerTests/types/address_balance.sol

14 lines
377 B
Solidity

pragma experimental SMTChecker;
contract C
{
function f(address a, address b) public view {
uint x = b.balance + 1000 ether;
assert(a.balance > b.balance);
}
}
// ----
// Warning 2072: (96-102): Unused local variable.
// Warning 2661: (105-127): Overflow (resulting value larger than 2**256 - 1) happens here
// Warning 4661: (131-160): Assertion violation happens here