solidity/test/libsolidity/smtCheckerTests/operators/conditional_assignment_2.sol
2021-04-08 21:03:39 +02:00

13 lines
241 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): CHC: Assertion violation happens here.