Skip to content

Commit

Permalink
SimpleRangeAnalysis: Remove ±Inf typeBounds for FloatingPointType
Browse files Browse the repository at this point in the history
If this doesn't break any tests, then this will simplify the rewrite of all SimpleRangeAnalysis floats to BigInt.
  • Loading branch information
d10c committed Jul 1, 2024
1 parent d9b337c commit ab15d79
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,6 @@ private predicate typeBounds(ArithmeticType t, float lb, float ub) {
lb = 0 and ub = limit - 1
)
)
or
// This covers all floating point types. The range is (-Inf, +Inf).
t instanceof FloatingPointType and lb = -(1.0 / 0.0) and ub = 1.0 / 0.0
}

private Type stripReference(Type t) {
Expand Down

0 comments on commit ab15d79

Please sign in to comment.