@@ -1106,12 +1106,9 @@ module RangeStage<
1106
1106
b = bRight and origdelta = odRight and reason = rRight and bLeft instanceof SemZeroBound
1107
1107
)
1108
1108
or
1109
- exists (
1110
- D:: Delta dLeft , D:: Delta dRight , boolean fbeLeft , boolean fbeRight , D:: Delta odLeft ,
1111
- D:: Delta odRight , SemReason rLeft , SemReason rRight
1112
- |
1113
- boundedSubOperandLeft ( e , upper , b , dLeft , fbeLeft , odLeft , rLeft ) and
1114
- boundedSubOperandRight ( e , upper , dRight , fbeRight , odRight , rRight ) and
1109
+ exists ( D:: Delta dLeft , D:: Delta dRight , boolean fbeLeft , boolean fbeRight |
1110
+ boundedSubOperandLeft ( e , upper , b , dLeft , fbeLeft , origdelta , reason ) and
1111
+ boundedSubOperandRight ( e , upper , dRight , fbeRight ) and
1115
1112
// when `upper` is `true` we have:
1116
1113
// left <= b + dLeft
1117
1114
// right >= 0 + dRight
@@ -1124,10 +1121,6 @@ module RangeStage<
1124
1121
// = b + (dLeft - dRight)
1125
1122
delta = D:: fromFloat ( D:: toFloat ( dLeft ) - D:: toFloat ( dRight ) ) and
1126
1123
fromBackEdge = fbeLeft .booleanOr ( fbeRight )
1127
- |
1128
- origdelta = odLeft and reason = rLeft
1129
- or
1130
- origdelta = odRight and reason = rRight
1131
1124
)
1132
1125
or
1133
1126
exists (
@@ -1217,13 +1210,12 @@ module RangeStage<
1217
1210
*/
1218
1211
pragma [ nomagic]
1219
1212
private predicate boundedSubOperandRight (
1220
- SemSubExpr sub , boolean upper , D:: Delta delta , boolean fromBackEdge , D:: Delta origdelta ,
1221
- SemReason reason
1213
+ SemSubExpr sub , boolean upper , D:: Delta delta , boolean fromBackEdge
1222
1214
) {
1223
1215
// `semValueFlowStep` already handles the case where one of the operands is a constant.
1224
1216
not semValueFlowStep ( sub , _, _) and
1225
- bounded ( sub .getRightOperand ( ) , any ( SemZeroBound zb ) , delta , upper .booleanNot ( ) , fromBackEdge ,
1226
- origdelta , reason )
1217
+ bounded ( sub .getRightOperand ( ) , any ( SemZeroBound zb ) , delta , upper .booleanNot ( ) , fromBackEdge , _ ,
1218
+ _ )
1227
1219
}
1228
1220
1229
1221
pragma [ nomagic]
0 commit comments