Skip to content

Commit 9670070

Browse files
committed
SimpleRangeAnalysis: Remove ±Inf typeBounds for FloatingPointType
If this doesn't break any tests, then this will simplify the rewrite of all SimpleRangeAnalysis floats to BigInt.
1 parent 8c9d2f1 commit 9670070

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

cpp/ql/lib/semmle/code/cpp/rangeanalysis/RangeAnalysisUtils.qll

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,6 @@ private predicate typeBounds(ArithmeticType t, float lb, float ub) {
405405
lb = 0 and ub = limit - 1
406406
)
407407
)
408-
or
409-
// This covers all floating point types. The range is (-Inf, +Inf).
410-
t instanceof FloatingPointType and lb = -(1.0 / 0.0) and ub = 1.0 / 0.0
411408
}
412409

413410
private Type stripReference(Type t) {

0 commit comments

Comments
 (0)