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

12 lines
229 B
Solidity
Raw Normal View History

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;
}
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all
// ----
2021-03-31 15:11:54 +00:00
// Warning 6838: (115-120): BMC: Condition is always false.