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

14 lines
362 B
Solidity
Raw Normal View History

2019-04-11 16:14:48 +00:00
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: (96-102): Unused local variable.
// Warning: (131-160): Assertion violation happens here
// Warning: (105-127): Overflow (resulting value larger than 2**256 - 1) happens here