solidity/test/libsolidity/smtCheckerTests/operators/conditional_assignment_nested_unsafe.sol
2020-09-09 16:14:21 +02:00

11 lines
234 B
Solidity

pragma experimental SMTChecker;
contract C {
function f(bool b1, bool b2) public pure {
uint c = b1 ? 3 : (b2 ? 2 : 1);
assert(c > 1);
}
}
// ----
// Warning 6328: (141-154): Assertion violation happens here.