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 5, 2024
1 parent 3ae4cb2 commit e572f3b
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 e572f3b

Please sign in to comment.