{
switch (get_bool_state (r, lhs, type))
{
+ case BRS_TRUE:
+ // If it's true, the result is the same as OP2.
+ r = op2;
+ break;
+
case BRS_FALSE:
// If the result is false, the only time we know anything is
// if OP2 is a constant.
r.set_varying (type);
break;
- case BRS_TRUE:
- // If it's true, the result is the same as OP2.
- r = op2;
- break;
-
default:
break;
}
{
switch (get_bool_state (r, lhs, type))
{
- case BRS_FALSE:
- build_le (r, type, op1.upper_bound ());
- break;
-
case BRS_TRUE:
build_gt (r, type, op1.lower_bound ());
break;
+ case BRS_FALSE:
+ build_le (r, type, op1.upper_bound ());
+ break;
+
default:
break;
}
{
switch (get_bool_state (r, lhs, type))
{
- case BRS_FALSE:
- build_lt (r, type, op1.upper_bound ());
- break;
-
case BRS_TRUE:
build_ge (r, type, op1.lower_bound ());
break;
+ case BRS_FALSE:
+ build_lt (r, type, op1.upper_bound ());
+ break;
+
default:
break;
}
{
switch (get_bool_state (r, lhs, type))
{
- case BRS_FALSE:
- build_ge (r, type, op1.lower_bound ());
- break;
-
case BRS_TRUE:
build_lt (r, type, op1.upper_bound ());
break;
+ case BRS_FALSE:
+ build_ge (r, type, op1.lower_bound ());
+ break;
+
default:
break;
}
{
switch (get_bool_state (r, lhs, type))
{
- case BRS_FALSE:
- build_gt (r, type, op1.lower_bound ());
- break;
-
case BRS_TRUE:
build_le (r, type, op1.upper_bound ());
break;
+ case BRS_FALSE:
+ build_gt (r, type, op1.lower_bound ());
+ break;
+
default:
break;
}