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

12 lines
253 B
Solidity

pragma experimental SMTChecker;
contract C {
function f(bool b1, bool b2) public pure {
require(b1 || b2);
uint c = b1 ? 3 : (b2 ? 2 : 1);
assert(c > 1);
}
}
// ----
// Warning 6838: (147-149): Condition is always true.