solidity/test/libsolidity/smtCheckerTests/operators/conditional_assignment_statevar_1.sol
2020-08-20 21:39:35 +02:00

14 lines
272 B
Solidity

pragma experimental SMTChecker;
contract C {
uint a;
bool b;
function f() public returns(uint c) {
c = b ? a + 1 : a--;
assert(c > a);
}
}
// ----
// Warning 2661: (129-134): Overflow (resulting value larger than 2**256 - 1) happens here