(FPCore (x y) :precision binary64 (/ (* x y) (+ y 1.0)))
↓
(FPCore (x y)
:precision binary64
(let* ((t_0 (- x (/ x y))))
(if (<= y -53455814794.271835)
t_0
(if (<= y 44690398.39284847) (* y (/ x (+ y 1.0))) t_0))))
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (x * y) / (y + 1.0d0)
end function
↓
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = x - (x / y)
if (y <= (-53455814794.271835d0)) then
tmp = t_0
else if (y <= 44690398.39284847d0) then
tmp = y * (x / (y + 1.0d0))
else
tmp = t_0
end if
code = tmp
end function
herbie shell --seed 2022313
(FPCore (x y)
:name "Diagrams.Trail:splitAtParam from diagrams-lib-1.3.0.3, B"
:precision binary64
:herbie-target
(if (< y -3693.8482788297247) (- (/ x (* y y)) (- (/ x y) x)) (if (< y 6799310503.41891) (/ (* x y) (+ y 1.0)) (- (/ x (* y y)) (- (/ x y) x))))
(/ (* x y) (+ y 1.0)))