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

12 lines
236 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C {
function f(uint b) public pure returns (uint d) {
require(b < 10);
uint c = b < 5 ? 5 : 1;
d = c > 5 ? 3 : 2;
}
}
// ----
// Warning 6838: (148-153): BMC: Condition is always false.