case float_abs(_):
- return float
+ return float.with_range(low=0, high=None)
to me, looks like a risky change. I would fear this could introduce a bug when computing isNaN(abs(NaN))
That should return true, but with that change, I fear it could return false because it informs the optimizer that abs never returns a NaN.EDIT: Ah, other comment mentions article was edited.
how?
The actual bug-fix linked to in the footnote does it in a slightly different way: it says "as I'm walking through optimizing my tree of expressions, if I see 'abs(abs(X))' then simplify the tree to just 'abs(X)'".
Which language? Where? I just googled for float_abs and got nothing.