solidity/test/libsolidity/smtCheckerTests/operators/conditional_assignment_2.sol
2022-04-01 23:41:18 -05:00

13 lines
258 B
Solidity

contract C {
function f(uint b) public pure {
require(b < 3);
uint c = (b > 0) ? b++ : ++b;
assert(c == 0);
}
}
// ====
// SMTEngine: all
// SMTIgnoreCex: yes
// ----
// Warning 6328: (99-113='assert(c == 0)'): CHC: Assertion violation happens here.