solidity/test/libsolidity/smtCheckerTests/types/address_balance.sol
2020-08-14 12:58:27 +02:00

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 4984: (105-127): Overflow (resulting value larger than 2**256 - 1) happens here
// Warning 6328: (131-160): Assertion violation happens here