@@ -769,7 +769,7 @@ private float getLowerBoundsImpl(Expr expr) {
769
769
exists ( float x , float y |
770
770
x = getFullyConvertedLowerBounds ( maxExpr .getLeftOperand ( ) ) and
771
771
y = getFullyConvertedLowerBounds ( maxExpr .getRightOperand ( ) ) and
772
- if x >= y then result = x else result = y
772
+ result = x . maximum ( y )
773
773
)
774
774
)
775
775
or
@@ -979,7 +979,7 @@ private float getUpperBoundsImpl(Expr expr) {
979
979
exists ( float x , float y |
980
980
x = getFullyConvertedUpperBounds ( minExpr .getLeftOperand ( ) ) and
981
981
y = getFullyConvertedUpperBounds ( minExpr .getRightOperand ( ) ) and
982
- if x <= y then result = x else result = y
982
+ result = x . minimum ( y )
983
983
)
984
984
)
985
985
or
@@ -1152,10 +1152,7 @@ private float getUpperBoundsImpl(Expr expr) {
1152
1152
not expr instanceof SimpleRangeAnalysisExpr
1153
1153
or
1154
1154
// A modeled expression for range analysis
1155
- exists ( SimpleRangeAnalysisExpr rangeAnalysisExpr |
1156
- rangeAnalysisExpr = expr and
1157
- result = rangeAnalysisExpr .getUpperBounds ( )
1158
- )
1155
+ result = expr .( SimpleRangeAnalysisExpr ) .getUpperBounds ( )
1159
1156
}
1160
1157
1161
1158
/**
@@ -1606,7 +1603,7 @@ private module SimpleRangeAnalysisCached {
1606
1603
* the lower bound of the expression after all the casts have been applied,
1607
1604
* call `lowerBound` like this:
1608
1605
*
1609
- * ` lowerBound(expr.getFullyConverted())`
1606
+ * lowerBound(expr.getFullyConverted())
1610
1607
*/
1611
1608
cached
1612
1609
float lowerBound ( Expr expr ) {
@@ -1625,7 +1622,7 @@ private module SimpleRangeAnalysisCached {
1625
1622
* the upper bound of the expression after all the casts have been applied,
1626
1623
* call `upperBound` like this:
1627
1624
*
1628
- * ` upperBound(expr.getFullyConverted())`
1625
+ * upperBound(expr.getFullyConverted())
1629
1626
*/
1630
1627
cached
1631
1628
float upperBound ( Expr expr ) {
0 commit comments