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

14 lines
377 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 2072: (96-102): Unused local variable.
2020-08-11 13:53:24 +00:00
// Warning 4984: (105-127): Overflow (resulting value larger than 2**256 - 1) happens here
2020-07-13 18:48:00 +00:00
// Warning 6328: (131-160): Assertion violation happens here