solidity/test/libsolidity/smtCheckerTests/operators/conditional_assignment_1.sol

11 lines
276 B
Solidity
Raw Normal View History

contract C {
function f(bool b) public pure {
uint a = b ? 2 : 3;
assert(a > 2);
}
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all
// ----
2021-03-31 15:11:54 +00:00
// Warning 6328: (71-84): CHC: Assertion violation happens here.\nCounterexample:\n\nb = true\na = 2\n\nTransaction trace:\nC.constructor()\nC.f(true)