Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2

Percentage Accurate: 55.9% → 84.1%
Time: 8.5s
Alternatives: 21
Speedup: 1.7×

Specification

?
\[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
(FPCore (x y z t a b c i)
  :precision binary64
  (/
 (+
  (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y)
  t)
 (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(x, y, z, t, a, b, c, i)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    code = ((((((((x * y) + z) * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
def code(x, y, z, t, a, b, c, i):
	return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
function code(x, y, z, t, a, b, c, i)
	return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i))
end
function tmp = code(x, y, z, t, a, b, c, i)
	tmp = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]
\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 21 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 55.9% accurate, 1.0× speedup?

\[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
(FPCore (x y z t a b c i)
  :precision binary64
  (/
 (+
  (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y)
  t)
 (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(x, y, z, t, a, b, c, i)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    code = ((((((((x * y) + z) * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
def code(x, y, z, t, a, b, c, i):
	return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
function code(x, y, z, t, a, b, c, i)
	return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i))
end
function tmp = code(x, y, z, t, a, b, c, i)
	tmp = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]
\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}

Alternative 1: 84.1% accurate, 0.3× speedup?

\[\begin{array}{l} t_1 := \frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\ t_2 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)\\ \mathbf{if}\;t\_1 \leq 10^{+289}:\\ \;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{t\_2}, y, \frac{t}{t\_2}\right)\\ \mathbf{elif}\;t\_1 \leq \infty:\\ \;\;\;\;\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), \frac{y}{t\_2}, \frac{27464.7644705}{t\_2}\right), \frac{t}{i}\right)\\ \mathbf{else}:\\ \;\;\;\;\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\ \end{array} \]
(FPCore (x y z t a b c i)
  :precision binary64
  (let* ((t_1
        (/
         (+
          (*
           (+
            (* (+ (* (+ (* x y) z) y) 27464.7644705) y)
            230661.510616)
           y)
          t)
         (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))
       (t_2 (fma (fma (fma (+ a y) y b) y c) y i)))
  (if (<= t_1 1e+289)
    (fma
     (/ (fma (fma (fma y x z) y 27464.7644705) y 230661.510616) t_2)
     y
     (/ t t_2))
    (if (<= t_1 INFINITY)
      (fma
       (* y y)
       (fma (fma x y z) (/ y t_2) (/ 27464.7644705 t_2))
       (/ t i))
      (- (+ x (/ z y)) (/ (* a x) y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	double t_1 = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
	double t_2 = fma(fma(fma((a + y), y, b), y, c), y, i);
	double tmp;
	if (t_1 <= 1e+289) {
		tmp = fma((fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616) / t_2), y, (t / t_2));
	} else if (t_1 <= ((double) INFINITY)) {
		tmp = fma((y * y), fma(fma(x, y, z), (y / t_2), (27464.7644705 / t_2)), (t / i));
	} else {
		tmp = (x + (z / y)) - ((a * x) / y);
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i)
	t_1 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i))
	t_2 = fma(fma(fma(Float64(a + y), y, b), y, c), y, i)
	tmp = 0.0
	if (t_1 <= 1e+289)
		tmp = fma(Float64(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616) / t_2), y, Float64(t / t_2));
	elseif (t_1 <= Inf)
		tmp = fma(Float64(y * y), fma(fma(x, y, z), Float64(y / t_2), Float64(27464.7644705 / t_2)), Float64(t / i));
	else
		tmp = Float64(Float64(x + Float64(z / y)) - Float64(Float64(a * x) / y));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]}, If[LessEqual[t$95$1, 1e+289], N[(N[(N[(N[(N[(y * x + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] / t$95$2), $MachinePrecision] * y + N[(t / t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, Infinity], N[(N[(y * y), $MachinePrecision] * N[(N[(x * y + z), $MachinePrecision] * N[(y / t$95$2), $MachinePrecision] + N[(27464.7644705 / t$95$2), $MachinePrecision]), $MachinePrecision] + N[(t / i), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(a * x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
t_1 := \frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\
t_2 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)\\
\mathbf{if}\;t\_1 \leq 10^{+289}:\\
\;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{t\_2}, y, \frac{t}{t\_2}\right)\\

\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), \frac{y}{t\_2}, \frac{27464.7644705}{t\_2}\right), \frac{t}{i}\right)\\

\mathbf{else}:\\
\;\;\;\;\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\


\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < 1.0000000000000001e289

    1. Initial program 55.9%

      \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    2. Step-by-step derivation
      1. lift-/.f64N/A

        \[\leadsto \color{blue}{\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}} \]
      2. lift-+.f64N/A

        \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      3. div-addN/A

        \[\leadsto \color{blue}{\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} + \frac{t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}} \]
      4. lift-*.f64N/A

        \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} + \frac{t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      5. *-commutativeN/A

        \[\leadsto \frac{\color{blue}{y \cdot \left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right)}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} + \frac{t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      6. associate-/l*N/A

        \[\leadsto \color{blue}{y \cdot \frac{\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}} + \frac{t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      7. *-commutativeN/A

        \[\leadsto \color{blue}{\frac{\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \cdot y} + \frac{t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    3. Applied rewrites56.8%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, y, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)} \]

    if 1.0000000000000001e289 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < +inf.0

    1. Initial program 55.9%

      \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    2. Step-by-step derivation
      1. lift-/.f64N/A

        \[\leadsto \color{blue}{\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}} \]
      2. lift-+.f64N/A

        \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      3. div-addN/A

        \[\leadsto \color{blue}{\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} + \frac{t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}} \]
      4. lift-*.f64N/A

        \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} + \frac{t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      5. *-commutativeN/A

        \[\leadsto \frac{\color{blue}{y \cdot \left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right)}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} + \frac{t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      6. associate-/l*N/A

        \[\leadsto \color{blue}{y \cdot \frac{\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}} + \frac{t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      7. *-commutativeN/A

        \[\leadsto \color{blue}{\frac{\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \cdot y} + \frac{t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    3. Applied rewrites56.8%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, y, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)} \]
    4. Applied rewrites57.3%

      \[\leadsto \color{blue}{\mathsf{fma}\left(y \cdot y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)} \]
    5. Step-by-step derivation
      1. lift-/.f64N/A

        \[\leadsto \mathsf{fma}\left(y \cdot y, \color{blue}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, \frac{54929528941}{2000000}\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}}, \frac{\mathsf{fma}\left(\frac{28832688827}{125000}, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right) \]
      2. lift-fma.f64N/A

        \[\leadsto \mathsf{fma}\left(y \cdot y, \frac{\color{blue}{\mathsf{fma}\left(x, y, z\right) \cdot y + \frac{54929528941}{2000000}}}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{\mathsf{fma}\left(\frac{28832688827}{125000}, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right) \]
      3. div-addN/A

        \[\leadsto \mathsf{fma}\left(y \cdot y, \color{blue}{\frac{\mathsf{fma}\left(x, y, z\right) \cdot y}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)} + \frac{\frac{54929528941}{2000000}}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}}, \frac{\mathsf{fma}\left(\frac{28832688827}{125000}, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right) \]
      4. associate-/l*N/A

        \[\leadsto \mathsf{fma}\left(y \cdot y, \color{blue}{\mathsf{fma}\left(x, y, z\right) \cdot \frac{y}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}} + \frac{\frac{54929528941}{2000000}}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{\mathsf{fma}\left(\frac{28832688827}{125000}, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right) \]
      5. lower-fma.f64N/A

        \[\leadsto \mathsf{fma}\left(y \cdot y, \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), \frac{y}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{\frac{54929528941}{2000000}}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)}, \frac{\mathsf{fma}\left(\frac{28832688827}{125000}, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right) \]
      6. lower-/.f64N/A

        \[\leadsto \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), \color{blue}{\frac{y}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}}, \frac{\frac{54929528941}{2000000}}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right), \frac{\mathsf{fma}\left(\frac{28832688827}{125000}, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right) \]
      7. lower-/.f6458.0%

        \[\leadsto \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), \frac{y}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \color{blue}{\frac{27464.7644705}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}}\right), \frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right) \]
    6. Applied rewrites58.0%

      \[\leadsto \mathsf{fma}\left(y \cdot y, \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), \frac{y}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{27464.7644705}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)}, \frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right) \]
    7. Taylor expanded in y around 0

      \[\leadsto \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), \frac{y}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{27464.7644705}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right), \color{blue}{\frac{t}{i}}\right) \]
    8. Step-by-step derivation
      1. lower-/.f6434.4%

        \[\leadsto \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), \frac{y}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{27464.7644705}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right), \frac{t}{\color{blue}{i}}\right) \]
    9. Applied rewrites34.4%

      \[\leadsto \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), \frac{y}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{27464.7644705}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right), \color{blue}{\frac{t}{i}}\right) \]

    if +inf.0 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i))

    1. Initial program 55.9%

      \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    2. Taylor expanded in y around inf

      \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]
    3. Step-by-step derivation
      1. lower--.f64N/A

        \[\leadsto \left(x + \frac{z}{y}\right) - \color{blue}{\frac{a \cdot x}{y}} \]
      2. lower-+.f64N/A

        \[\leadsto \left(x + \frac{z}{y}\right) - \frac{\color{blue}{a \cdot x}}{y} \]
      3. lower-/.f64N/A

        \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot \color{blue}{x}}{y} \]
      4. lower-/.f64N/A

        \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{\color{blue}{y}} \]
      5. lower-*.f6431.1%

        \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y} \]
    4. Applied rewrites31.1%

      \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]
  3. Recombined 3 regimes into one program.
  4. Add Preprocessing

Alternative 2: 83.5% accurate, 0.3× speedup?

\[\begin{array}{l} t_1 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)\\ \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq \infty:\\ \;\;\;\;\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), \frac{y}{t\_1}, \frac{27464.7644705}{t\_1}\right), \frac{\mathsf{fma}\left(230661.510616, y, t\right)}{t\_1}\right)\\ \mathbf{else}:\\ \;\;\;\;\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\ \end{array} \]
(FPCore (x y z t a b c i)
  :precision binary64
  (let* ((t_1 (fma (fma (fma (+ a y) y b) y c) y i)))
  (if (<=
       (/
        (+
         (*
          (+
           (* (+ (* (+ (* x y) z) y) 27464.7644705) y)
           230661.510616)
          y)
         t)
        (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))
       INFINITY)
    (fma
     (* y y)
     (fma (fma x y z) (/ y t_1) (/ 27464.7644705 t_1))
     (/ (fma 230661.510616 y t) t_1))
    (- (+ x (/ z y)) (/ (* a x) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	double t_1 = fma(fma(fma((a + y), y, b), y, c), y, i);
	double tmp;
	if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)) <= ((double) INFINITY)) {
		tmp = fma((y * y), fma(fma(x, y, z), (y / t_1), (27464.7644705 / t_1)), (fma(230661.510616, y, t) / t_1));
	} else {
		tmp = (x + (z / y)) - ((a * x) / y);
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i)
	t_1 = fma(fma(fma(Float64(a + y), y, b), y, c), y, i)
	tmp = 0.0
	if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i)) <= Inf)
		tmp = fma(Float64(y * y), fma(fma(x, y, z), Float64(y / t_1), Float64(27464.7644705 / t_1)), Float64(fma(230661.510616, y, t) / t_1));
	else
		tmp = Float64(Float64(x + Float64(z / y)) - Float64(Float64(a * x) / y));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]}, If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(y * y), $MachinePrecision] * N[(N[(x * y + z), $MachinePrecision] * N[(y / t$95$1), $MachinePrecision] + N[(27464.7644705 / t$95$1), $MachinePrecision]), $MachinePrecision] + N[(N[(230661.510616 * y + t), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(a * x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)\\
\mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), \frac{y}{t\_1}, \frac{27464.7644705}{t\_1}\right), \frac{\mathsf{fma}\left(230661.510616, y, t\right)}{t\_1}\right)\\

\mathbf{else}:\\
\;\;\;\;\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\


\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < +inf.0

    1. Initial program 55.9%

      \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    2. Step-by-step derivation
      1. lift-/.f64N/A

        \[\leadsto \color{blue}{\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}} \]
      2. lift-+.f64N/A

        \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      3. div-addN/A

        \[\leadsto \color{blue}{\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} + \frac{t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}} \]
      4. lift-*.f64N/A

        \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} + \frac{t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      5. *-commutativeN/A

        \[\leadsto \frac{\color{blue}{y \cdot \left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right)}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} + \frac{t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      6. associate-/l*N/A

        \[\leadsto \color{blue}{y \cdot \frac{\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}} + \frac{t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      7. *-commutativeN/A

        \[\leadsto \color{blue}{\frac{\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \cdot y} + \frac{t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    3. Applied rewrites56.8%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, y, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)} \]
    4. Applied rewrites57.3%

      \[\leadsto \color{blue}{\mathsf{fma}\left(y \cdot y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)} \]
    5. Step-by-step derivation
      1. lift-/.f64N/A

        \[\leadsto \mathsf{fma}\left(y \cdot y, \color{blue}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, \frac{54929528941}{2000000}\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}}, \frac{\mathsf{fma}\left(\frac{28832688827}{125000}, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right) \]
      2. lift-fma.f64N/A

        \[\leadsto \mathsf{fma}\left(y \cdot y, \frac{\color{blue}{\mathsf{fma}\left(x, y, z\right) \cdot y + \frac{54929528941}{2000000}}}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{\mathsf{fma}\left(\frac{28832688827}{125000}, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right) \]
      3. div-addN/A

        \[\leadsto \mathsf{fma}\left(y \cdot y, \color{blue}{\frac{\mathsf{fma}\left(x, y, z\right) \cdot y}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)} + \frac{\frac{54929528941}{2000000}}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}}, \frac{\mathsf{fma}\left(\frac{28832688827}{125000}, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right) \]
      4. associate-/l*N/A

        \[\leadsto \mathsf{fma}\left(y \cdot y, \color{blue}{\mathsf{fma}\left(x, y, z\right) \cdot \frac{y}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}} + \frac{\frac{54929528941}{2000000}}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{\mathsf{fma}\left(\frac{28832688827}{125000}, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right) \]
      5. lower-fma.f64N/A

        \[\leadsto \mathsf{fma}\left(y \cdot y, \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), \frac{y}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{\frac{54929528941}{2000000}}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)}, \frac{\mathsf{fma}\left(\frac{28832688827}{125000}, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right) \]
      6. lower-/.f64N/A

        \[\leadsto \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), \color{blue}{\frac{y}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}}, \frac{\frac{54929528941}{2000000}}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right), \frac{\mathsf{fma}\left(\frac{28832688827}{125000}, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right) \]
      7. lower-/.f6458.0%

        \[\leadsto \mathsf{fma}\left(y \cdot y, \mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), \frac{y}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \color{blue}{\frac{27464.7644705}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}}\right), \frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right) \]
    6. Applied rewrites58.0%

      \[\leadsto \mathsf{fma}\left(y \cdot y, \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), \frac{y}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{27464.7644705}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)}, \frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right) \]

    if +inf.0 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i))

    1. Initial program 55.9%

      \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    2. Taylor expanded in y around inf

      \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]
    3. Step-by-step derivation
      1. lower--.f64N/A

        \[\leadsto \left(x + \frac{z}{y}\right) - \color{blue}{\frac{a \cdot x}{y}} \]
      2. lower-+.f64N/A

        \[\leadsto \left(x + \frac{z}{y}\right) - \frac{\color{blue}{a \cdot x}}{y} \]
      3. lower-/.f64N/A

        \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot \color{blue}{x}}{y} \]
      4. lower-/.f64N/A

        \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{\color{blue}{y}} \]
      5. lower-*.f6431.1%

        \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y} \]
    4. Applied rewrites31.1%

      \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 3: 83.1% accurate, 0.4× speedup?

\[\begin{array}{l} t_1 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)\\ \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq \infty:\\ \;\;\;\;\mathsf{fma}\left(y \cdot y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right)}{t\_1}, \frac{\mathsf{fma}\left(230661.510616, y, t\right)}{t\_1}\right)\\ \mathbf{else}:\\ \;\;\;\;\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\ \end{array} \]
(FPCore (x y z t a b c i)
  :precision binary64
  (let* ((t_1 (fma (fma (fma (+ a y) y b) y c) y i)))
  (if (<=
       (/
        (+
         (*
          (+
           (* (+ (* (+ (* x y) z) y) 27464.7644705) y)
           230661.510616)
          y)
         t)
        (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))
       INFINITY)
    (fma
     (* y y)
     (/ (fma (fma x y z) y 27464.7644705) t_1)
     (/ (fma 230661.510616 y t) t_1))
    (- (+ x (/ z y)) (/ (* a x) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	double t_1 = fma(fma(fma((a + y), y, b), y, c), y, i);
	double tmp;
	if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)) <= ((double) INFINITY)) {
		tmp = fma((y * y), (fma(fma(x, y, z), y, 27464.7644705) / t_1), (fma(230661.510616, y, t) / t_1));
	} else {
		tmp = (x + (z / y)) - ((a * x) / y);
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i)
	t_1 = fma(fma(fma(Float64(a + y), y, b), y, c), y, i)
	tmp = 0.0
	if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i)) <= Inf)
		tmp = fma(Float64(y * y), Float64(fma(fma(x, y, z), y, 27464.7644705) / t_1), Float64(fma(230661.510616, y, t) / t_1));
	else
		tmp = Float64(Float64(x + Float64(z / y)) - Float64(Float64(a * x) / y));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]}, If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(y * y), $MachinePrecision] * N[(N[(N[(x * y + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] / t$95$1), $MachinePrecision] + N[(N[(230661.510616 * y + t), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(a * x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)\\
\mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(y \cdot y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right)}{t\_1}, \frac{\mathsf{fma}\left(230661.510616, y, t\right)}{t\_1}\right)\\

\mathbf{else}:\\
\;\;\;\;\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\


\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < +inf.0

    1. Initial program 55.9%

      \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    2. Step-by-step derivation
      1. lift-/.f64N/A

        \[\leadsto \color{blue}{\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}} \]
      2. lift-+.f64N/A

        \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      3. div-addN/A

        \[\leadsto \color{blue}{\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} + \frac{t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}} \]
      4. lift-*.f64N/A

        \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} + \frac{t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      5. *-commutativeN/A

        \[\leadsto \frac{\color{blue}{y \cdot \left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right)}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} + \frac{t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      6. associate-/l*N/A

        \[\leadsto \color{blue}{y \cdot \frac{\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}} + \frac{t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      7. *-commutativeN/A

        \[\leadsto \color{blue}{\frac{\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \cdot y} + \frac{t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    3. Applied rewrites56.8%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, y, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)} \]
    4. Applied rewrites57.3%

      \[\leadsto \color{blue}{\mathsf{fma}\left(y \cdot y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, \frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)} \]

    if +inf.0 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i))

    1. Initial program 55.9%

      \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    2. Taylor expanded in y around inf

      \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]
    3. Step-by-step derivation
      1. lower--.f64N/A

        \[\leadsto \left(x + \frac{z}{y}\right) - \color{blue}{\frac{a \cdot x}{y}} \]
      2. lower-+.f64N/A

        \[\leadsto \left(x + \frac{z}{y}\right) - \frac{\color{blue}{a \cdot x}}{y} \]
      3. lower-/.f64N/A

        \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot \color{blue}{x}}{y} \]
      4. lower-/.f64N/A

        \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{\color{blue}{y}} \]
      5. lower-*.f6431.1%

        \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y} \]
    4. Applied rewrites31.1%

      \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 4: 82.0% accurate, 0.4× speedup?

\[\begin{array}{l} t_1 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)\\ \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq 10^{+289}:\\ \;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{t\_1}, y, \frac{t}{t\_1}\right)\\ \mathbf{else}:\\ \;\;\;\;\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\ \end{array} \]
(FPCore (x y z t a b c i)
  :precision binary64
  (let* ((t_1 (fma (fma (fma (+ a y) y b) y c) y i)))
  (if (<=
       (/
        (+
         (*
          (+
           (* (+ (* (+ (* x y) z) y) 27464.7644705) y)
           230661.510616)
          y)
         t)
        (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))
       1e+289)
    (fma
     (/ (fma (fma (fma y x z) y 27464.7644705) y 230661.510616) t_1)
     y
     (/ t t_1))
    (- (+ x (/ z y)) (/ (* a x) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	double t_1 = fma(fma(fma((a + y), y, b), y, c), y, i);
	double tmp;
	if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)) <= 1e+289) {
		tmp = fma((fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616) / t_1), y, (t / t_1));
	} else {
		tmp = (x + (z / y)) - ((a * x) / y);
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i)
	t_1 = fma(fma(fma(Float64(a + y), y, b), y, c), y, i)
	tmp = 0.0
	if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i)) <= 1e+289)
		tmp = fma(Float64(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616) / t_1), y, Float64(t / t_1));
	else
		tmp = Float64(Float64(x + Float64(z / y)) - Float64(Float64(a * x) / y));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]}, If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], 1e+289], N[(N[(N[(N[(N[(y * x + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] / t$95$1), $MachinePrecision] * y + N[(t / t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(a * x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)\\
\mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq 10^{+289}:\\
\;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{t\_1}, y, \frac{t}{t\_1}\right)\\

\mathbf{else}:\\
\;\;\;\;\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\


\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < 1.0000000000000001e289

    1. Initial program 55.9%

      \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    2. Step-by-step derivation
      1. lift-/.f64N/A

        \[\leadsto \color{blue}{\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}} \]
      2. lift-+.f64N/A

        \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      3. div-addN/A

        \[\leadsto \color{blue}{\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} + \frac{t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}} \]
      4. lift-*.f64N/A

        \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} + \frac{t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      5. *-commutativeN/A

        \[\leadsto \frac{\color{blue}{y \cdot \left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right)}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} + \frac{t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      6. associate-/l*N/A

        \[\leadsto \color{blue}{y \cdot \frac{\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}} + \frac{t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      7. *-commutativeN/A

        \[\leadsto \color{blue}{\frac{\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \cdot y} + \frac{t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    3. Applied rewrites56.8%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}, y, \frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\right)} \]

    if 1.0000000000000001e289 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i))

    1. Initial program 55.9%

      \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    2. Taylor expanded in y around inf

      \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]
    3. Step-by-step derivation
      1. lower--.f64N/A

        \[\leadsto \left(x + \frac{z}{y}\right) - \color{blue}{\frac{a \cdot x}{y}} \]
      2. lower-+.f64N/A

        \[\leadsto \left(x + \frac{z}{y}\right) - \frac{\color{blue}{a \cdot x}}{y} \]
      3. lower-/.f64N/A

        \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot \color{blue}{x}}{y} \]
      4. lower-/.f64N/A

        \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{\color{blue}{y}} \]
      5. lower-*.f6431.1%

        \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y} \]
    4. Applied rewrites31.1%

      \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 5: 81.7% accurate, 0.9× speedup?

\[\begin{array}{l} t_1 := \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\ \mathbf{if}\;y \leq -3 \cdot 10^{+139}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -1.8 \cdot 10^{+36}:\\ \;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\ \mathbf{elif}\;y \leq 1.65 \cdot 10^{+56}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y \cdot y, \mathsf{fma}\left(230661.510616, y, t\right)\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \]
(FPCore (x y z t a b c i)
  :precision binary64
  (let* ((t_1 (- (+ x (/ z y)) (/ (* a x) y))))
  (if (<= y -3e+139)
    t_1
    (if (<= y -1.8e+36)
      (* y (+ (/ x a) (/ z (* a y))))
      (if (<= y 1.65e+56)
        (/
         (fma (fma z y 27464.7644705) (* y y) (fma 230661.510616 y t))
         (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))
        t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	double t_1 = (x + (z / y)) - ((a * x) / y);
	double tmp;
	if (y <= -3e+139) {
		tmp = t_1;
	} else if (y <= -1.8e+36) {
		tmp = y * ((x / a) + (z / (a * y)));
	} else if (y <= 1.65e+56) {
		tmp = fma(fma(z, y, 27464.7644705), (y * y), fma(230661.510616, y, t)) / (((((((y + a) * y) + b) * y) + c) * y) + i);
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i)
	t_1 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(a * x) / y))
	tmp = 0.0
	if (y <= -3e+139)
		tmp = t_1;
	elseif (y <= -1.8e+36)
		tmp = Float64(y * Float64(Float64(x / a) + Float64(z / Float64(a * y))));
	elseif (y <= 1.65e+56)
		tmp = Float64(fma(fma(z, y, 27464.7644705), Float64(y * y), fma(230661.510616, y, t)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i));
	else
		tmp = t_1;
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(a * x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3e+139], t$95$1, If[LessEqual[y, -1.8e+36], N[(y * N[(N[(x / a), $MachinePrecision] + N[(z / N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.65e+56], N[(N[(N[(z * y + 27464.7644705), $MachinePrecision] * N[(y * y), $MachinePrecision] + N[(230661.510616 * y + t), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
t_1 := \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\
\mathbf{if}\;y \leq -3 \cdot 10^{+139}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y \leq -1.8 \cdot 10^{+36}:\\
\;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\

\mathbf{elif}\;y \leq 1.65 \cdot 10^{+56}:\\
\;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y \cdot y, \mathsf{fma}\left(230661.510616, y, t\right)\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -3e139 or 1.65e56 < y

    1. Initial program 55.9%

      \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    2. Taylor expanded in y around inf

      \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]
    3. Step-by-step derivation
      1. lower--.f64N/A

        \[\leadsto \left(x + \frac{z}{y}\right) - \color{blue}{\frac{a \cdot x}{y}} \]
      2. lower-+.f64N/A

        \[\leadsto \left(x + \frac{z}{y}\right) - \frac{\color{blue}{a \cdot x}}{y} \]
      3. lower-/.f64N/A

        \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot \color{blue}{x}}{y} \]
      4. lower-/.f64N/A

        \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{\color{blue}{y}} \]
      5. lower-*.f6431.1%

        \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y} \]
    4. Applied rewrites31.1%

      \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]

    if -3e139 < y < -1.7999999999999999e36

    1. Initial program 55.9%

      \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    2. Taylor expanded in a around inf

      \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
    3. Step-by-step derivation
      1. lower-/.f64N/A

        \[\leadsto \frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{\color{blue}{a \cdot {y}^{3}}} \]
    4. Applied rewrites6.1%

      \[\leadsto \color{blue}{\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
    5. Taylor expanded in y around inf

      \[\leadsto y \cdot \color{blue}{\left(\frac{x}{a} + \frac{z}{a \cdot y}\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y \cdot \left(\frac{x}{a} + \color{blue}{\frac{z}{a \cdot y}}\right) \]
      2. lower-+.f64N/A

        \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{\color{blue}{a \cdot y}}\right) \]
      3. lower-/.f64N/A

        \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{\color{blue}{a} \cdot y}\right) \]
      4. lower-/.f64N/A

        \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot \color{blue}{y}}\right) \]
      5. lower-*.f6410.9%

        \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right) \]
    7. Applied rewrites10.9%

      \[\leadsto y \cdot \color{blue}{\left(\frac{x}{a} + \frac{z}{a \cdot y}\right)} \]

    if -1.7999999999999999e36 < y < 1.65e56

    1. Initial program 55.9%

      \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    2. Step-by-step derivation
      1. lift-+.f64N/A

        \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      2. lift-*.f64N/A

        \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      3. *-commutativeN/A

        \[\leadsto \frac{\color{blue}{y \cdot \left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right)} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      4. lift-+.f64N/A

        \[\leadsto \frac{y \cdot \color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right)} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      5. distribute-rgt-inN/A

        \[\leadsto \frac{\color{blue}{\left(\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y\right) \cdot y + \frac{28832688827}{125000} \cdot y\right)} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      6. associate-+l+N/A

        \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y\right) \cdot y + \left(\frac{28832688827}{125000} \cdot y + t\right)}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      7. lift-*.f64N/A

        \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y\right)} \cdot y + \left(\frac{28832688827}{125000} \cdot y + t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      8. associate-*l*N/A

        \[\leadsto \frac{\color{blue}{\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot \left(y \cdot y\right)} + \left(\frac{28832688827}{125000} \cdot y + t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      9. *-commutativeN/A

        \[\leadsto \frac{\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot \left(y \cdot y\right) + \left(\color{blue}{y \cdot \frac{28832688827}{125000}} + t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      10. lower-fma.f64N/A

        \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}, y \cdot y, y \cdot \frac{28832688827}{125000} + t\right)}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    3. Applied rewrites55.9%

      \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y \cdot y, \mathsf{fma}\left(230661.510616, y, t\right)\right)}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    4. Taylor expanded in x around 0

      \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{z}, y, 27464.7644705\right), y \cdot y, \mathsf{fma}\left(230661.510616, y, t\right)\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    5. Step-by-step derivation
      1. Applied rewrites52.8%

        \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{z}, y, 27464.7644705\right), y \cdot y, \mathsf{fma}\left(230661.510616, y, t\right)\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
    6. Recombined 3 regimes into one program.
    7. Add Preprocessing

    Alternative 6: 81.7% accurate, 1.0× speedup?

    \[\begin{array}{l} t_1 := \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\ \mathbf{if}\;y \leq -3 \cdot 10^{+139}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -1.8 \cdot 10^{+36}:\\ \;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\ \mathbf{elif}\;y \leq 1.65 \cdot 10^{+56}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \]
    (FPCore (x y z t a b c i)
      :precision binary64
      (let* ((t_1 (- (+ x (/ z y)) (/ (* a x) y))))
      (if (<= y -3e+139)
        t_1
        (if (<= y -1.8e+36)
          (* y (+ (/ x a) (/ z (* a y))))
          (if (<= y 1.65e+56)
            (/
             (fma (fma (fma z y 27464.7644705) y 230661.510616) y t)
             (fma (fma (fma (+ a y) y b) y c) y i))
            t_1)))))
    double code(double x, double y, double z, double t, double a, double b, double c, double i) {
    	double t_1 = (x + (z / y)) - ((a * x) / y);
    	double tmp;
    	if (y <= -3e+139) {
    		tmp = t_1;
    	} else if (y <= -1.8e+36) {
    		tmp = y * ((x / a) + (z / (a * y)));
    	} else if (y <= 1.65e+56) {
    		tmp = fma(fma(fma(z, y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma((a + y), y, b), y, c), y, i);
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a, b, c, i)
    	t_1 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(a * x) / y))
    	tmp = 0.0
    	if (y <= -3e+139)
    		tmp = t_1;
    	elseif (y <= -1.8e+36)
    		tmp = Float64(y * Float64(Float64(x / a) + Float64(z / Float64(a * y))));
    	elseif (y <= 1.65e+56)
    		tmp = Float64(fma(fma(fma(z, y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma(Float64(a + y), y, b), y, c), y, i));
    	else
    		tmp = t_1;
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(a * x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3e+139], t$95$1, If[LessEqual[y, -1.8e+36], N[(y * N[(N[(x / a), $MachinePrecision] + N[(z / N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.65e+56], N[(N[(N[(N[(z * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
    
    \begin{array}{l}
    t_1 := \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\
    \mathbf{if}\;y \leq -3 \cdot 10^{+139}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;y \leq -1.8 \cdot 10^{+36}:\\
    \;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\
    
    \mathbf{elif}\;y \leq 1.65 \cdot 10^{+56}:\\
    \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if y < -3e139 or 1.65e56 < y

      1. Initial program 55.9%

        \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      2. Taylor expanded in y around inf

        \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]
      3. Step-by-step derivation
        1. lower--.f64N/A

          \[\leadsto \left(x + \frac{z}{y}\right) - \color{blue}{\frac{a \cdot x}{y}} \]
        2. lower-+.f64N/A

          \[\leadsto \left(x + \frac{z}{y}\right) - \frac{\color{blue}{a \cdot x}}{y} \]
        3. lower-/.f64N/A

          \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot \color{blue}{x}}{y} \]
        4. lower-/.f64N/A

          \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{\color{blue}{y}} \]
        5. lower-*.f6431.1%

          \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y} \]
      4. Applied rewrites31.1%

        \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]

      if -3e139 < y < -1.7999999999999999e36

      1. Initial program 55.9%

        \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      2. Taylor expanded in a around inf

        \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
      3. Step-by-step derivation
        1. lower-/.f64N/A

          \[\leadsto \frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{\color{blue}{a \cdot {y}^{3}}} \]
      4. Applied rewrites6.1%

        \[\leadsto \color{blue}{\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
      5. Taylor expanded in y around inf

        \[\leadsto y \cdot \color{blue}{\left(\frac{x}{a} + \frac{z}{a \cdot y}\right)} \]
      6. Step-by-step derivation
        1. lower-*.f64N/A

          \[\leadsto y \cdot \left(\frac{x}{a} + \color{blue}{\frac{z}{a \cdot y}}\right) \]
        2. lower-+.f64N/A

          \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{\color{blue}{a \cdot y}}\right) \]
        3. lower-/.f64N/A

          \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{\color{blue}{a} \cdot y}\right) \]
        4. lower-/.f64N/A

          \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot \color{blue}{y}}\right) \]
        5. lower-*.f6410.9%

          \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right) \]
      7. Applied rewrites10.9%

        \[\leadsto y \cdot \color{blue}{\left(\frac{x}{a} + \frac{z}{a \cdot y}\right)} \]

      if -1.7999999999999999e36 < y < 1.65e56

      1. Initial program 55.9%

        \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      2. Taylor expanded in x around 0

        \[\leadsto \frac{\left(\left(\color{blue}{z} \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
      3. Step-by-step derivation
        1. Applied rewrites52.8%

          \[\leadsto \frac{\left(\left(\color{blue}{z} \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
        2. Step-by-step derivation
          1. lift-+.f64N/A

            \[\leadsto \frac{\color{blue}{\left(\left(z \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          2. lift-*.f64N/A

            \[\leadsto \frac{\color{blue}{\left(\left(z \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          3. lower-fma.f6452.8%

            \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\left(z \cdot y + 27464.7644705\right) \cdot y + 230661.510616, y, t\right)}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          4. lift-+.f64N/A

            \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\left(z \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}}, y, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          5. lift-*.f64N/A

            \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\left(z \cdot y + \frac{54929528941}{2000000}\right) \cdot y} + \frac{28832688827}{125000}, y, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          6. lower-fma.f6452.8%

            \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z \cdot y + 27464.7644705, y, 230661.510616\right)}, y, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          7. lift-+.f64N/A

            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{z \cdot y + \frac{54929528941}{2000000}}, y, \frac{28832688827}{125000}\right), y, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          8. lift-*.f64N/A

            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{z \cdot y} + \frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          9. lower-fma.f6452.8%

            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z, y, 27464.7644705\right)}, y, 230661.510616\right), y, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          10. lift-+.f64N/A

            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{\color{blue}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}} \]
          11. lift-*.f64N/A

            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{\color{blue}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y} + i} \]
          12. lower-fma.f6452.8%

            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c, y, i\right)}} \]
        3. Applied rewrites52.8%

          \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}} \]
      4. Recombined 3 regimes into one program.
      5. Add Preprocessing

      Alternative 7: 78.3% accurate, 0.5× speedup?

      \[\begin{array}{l} t_1 := \left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i\\ \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{t\_1} \leq 10^{+289}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y \cdot y, \mathsf{fma}\left(230661.510616, y, t\right)\right)}{t\_1}\\ \mathbf{else}:\\ \;\;\;\;\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\ \end{array} \]
      (FPCore (x y z t a b c i)
        :precision binary64
        (let* ((t_1 (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))
        (if (<=
             (/
              (+
               (*
                (+
                 (* (+ (* (+ (* x y) z) y) 27464.7644705) y)
                 230661.510616)
                y)
               t)
              t_1)
             1e+289)
          (/
           (fma
            (fma (fma y x z) y 27464.7644705)
            (* y y)
            (fma 230661.510616 y t))
           t_1)
          (- (+ x (/ z y)) (/ (* a x) y)))))
      double code(double x, double y, double z, double t, double a, double b, double c, double i) {
      	double t_1 = ((((((y + a) * y) + b) * y) + c) * y) + i;
      	double tmp;
      	if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / t_1) <= 1e+289) {
      		tmp = fma(fma(fma(y, x, z), y, 27464.7644705), (y * y), fma(230661.510616, y, t)) / t_1;
      	} else {
      		tmp = (x + (z / y)) - ((a * x) / y);
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a, b, c, i)
      	t_1 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i)
      	tmp = 0.0
      	if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / t_1) <= 1e+289)
      		tmp = Float64(fma(fma(fma(y, x, z), y, 27464.7644705), Float64(y * y), fma(230661.510616, y, t)) / t_1);
      	else
      		tmp = Float64(Float64(x + Float64(z / y)) - Float64(Float64(a * x) / y));
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]}, If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / t$95$1), $MachinePrecision], 1e+289], N[(N[(N[(N[(y * x + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * N[(y * y), $MachinePrecision] + N[(230661.510616 * y + t), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(a * x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]
      
      \begin{array}{l}
      t_1 := \left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i\\
      \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{t\_1} \leq 10^{+289}:\\
      \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y \cdot y, \mathsf{fma}\left(230661.510616, y, t\right)\right)}{t\_1}\\
      
      \mathbf{else}:\\
      \;\;\;\;\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\
      
      
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < 1.0000000000000001e289

        1. Initial program 55.9%

          \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
        2. Step-by-step derivation
          1. lift-+.f64N/A

            \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          2. lift-*.f64N/A

            \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          3. *-commutativeN/A

            \[\leadsto \frac{\color{blue}{y \cdot \left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right)} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          4. lift-+.f64N/A

            \[\leadsto \frac{y \cdot \color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right)} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          5. distribute-rgt-inN/A

            \[\leadsto \frac{\color{blue}{\left(\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y\right) \cdot y + \frac{28832688827}{125000} \cdot y\right)} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          6. associate-+l+N/A

            \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y\right) \cdot y + \left(\frac{28832688827}{125000} \cdot y + t\right)}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          7. lift-*.f64N/A

            \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y\right)} \cdot y + \left(\frac{28832688827}{125000} \cdot y + t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          8. associate-*l*N/A

            \[\leadsto \frac{\color{blue}{\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot \left(y \cdot y\right)} + \left(\frac{28832688827}{125000} \cdot y + t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          9. *-commutativeN/A

            \[\leadsto \frac{\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot \left(y \cdot y\right) + \left(\color{blue}{y \cdot \frac{28832688827}{125000}} + t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          10. lower-fma.f64N/A

            \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}, y \cdot y, y \cdot \frac{28832688827}{125000} + t\right)}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
        3. Applied rewrites55.9%

          \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y \cdot y, \mathsf{fma}\left(230661.510616, y, t\right)\right)}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]

        if 1.0000000000000001e289 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i))

        1. Initial program 55.9%

          \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
        2. Taylor expanded in y around inf

          \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]
        3. Step-by-step derivation
          1. lower--.f64N/A

            \[\leadsto \left(x + \frac{z}{y}\right) - \color{blue}{\frac{a \cdot x}{y}} \]
          2. lower-+.f64N/A

            \[\leadsto \left(x + \frac{z}{y}\right) - \frac{\color{blue}{a \cdot x}}{y} \]
          3. lower-/.f64N/A

            \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot \color{blue}{x}}{y} \]
          4. lower-/.f64N/A

            \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{\color{blue}{y}} \]
          5. lower-*.f6431.1%

            \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y} \]
        4. Applied rewrites31.1%

          \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]
      3. Recombined 2 regimes into one program.
      4. Add Preprocessing

      Alternative 8: 78.3% accurate, 0.5× speedup?

      \[\begin{array}{l} \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq 10^{+289}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\ \mathbf{else}:\\ \;\;\;\;\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\ \end{array} \]
      (FPCore (x y z t a b c i)
        :precision binary64
        (if (<=
           (/
            (+
             (*
              (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616)
              y)
             t)
            (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))
           1e+289)
        (/
         (fma (fma (fma (fma y x z) y 27464.7644705) y 230661.510616) y t)
         (fma (fma (fma (+ a y) y b) y c) y i))
        (- (+ x (/ z y)) (/ (* a x) y))))
      double code(double x, double y, double z, double t, double a, double b, double c, double i) {
      	double tmp;
      	if ((((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)) <= 1e+289) {
      		tmp = fma(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma((a + y), y, b), y, c), y, i);
      	} else {
      		tmp = (x + (z / y)) - ((a * x) / y);
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a, b, c, i)
      	tmp = 0.0
      	if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i)) <= 1e+289)
      		tmp = Float64(fma(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma(Float64(a + y), y, b), y, c), y, i));
      	else
      		tmp = Float64(Float64(x + Float64(z / y)) - Float64(Float64(a * x) / y));
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], 1e+289], N[(N[(N[(N[(N[(y * x + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(a * x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
      
      \begin{array}{l}
      \mathbf{if}\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \leq 10^{+289}:\\
      \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\
      
      \mathbf{else}:\\
      \;\;\;\;\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\
      
      
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < 1.0000000000000001e289

        1. Initial program 55.9%

          \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
        2. Step-by-step derivation
          1. lift-+.f64N/A

            \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          2. lift-*.f64N/A

            \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          3. lower-fma.f6455.9%

            \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616, y, t\right)}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          4. lift-+.f64N/A

            \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}}, y, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          5. lift-*.f64N/A

            \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y} + \frac{28832688827}{125000}, y, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          6. lower-fma.f6455.9%

            \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705, y, 230661.510616\right)}, y, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          7. lift-+.f64N/A

            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}}, y, \frac{28832688827}{125000}\right), y, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          8. lift-*.f64N/A

            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\left(x \cdot y + z\right) \cdot y} + \frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          9. lower-fma.f6455.9%

            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x \cdot y + z, y, 27464.7644705\right)}, y, 230661.510616\right), y, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          10. lift-+.f64N/A

            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{x \cdot y + z}, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          11. lift-*.f64N/A

            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{x \cdot y} + z, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          12. *-commutativeN/A

            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{y \cdot x} + z, y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          13. lower-fma.f6455.9%

            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(y, x, z\right)}, y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          14. lift-+.f64N/A

            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{\color{blue}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}} \]
        3. Applied rewrites55.9%

          \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}} \]

        if 1.0000000000000001e289 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) #s(literal 54929528941/2000000 binary64)) y) #s(literal 28832688827/125000 binary64)) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i))

        1. Initial program 55.9%

          \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
        2. Taylor expanded in y around inf

          \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]
        3. Step-by-step derivation
          1. lower--.f64N/A

            \[\leadsto \left(x + \frac{z}{y}\right) - \color{blue}{\frac{a \cdot x}{y}} \]
          2. lower-+.f64N/A

            \[\leadsto \left(x + \frac{z}{y}\right) - \frac{\color{blue}{a \cdot x}}{y} \]
          3. lower-/.f64N/A

            \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot \color{blue}{x}}{y} \]
          4. lower-/.f64N/A

            \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{\color{blue}{y}} \]
          5. lower-*.f6431.1%

            \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y} \]
        4. Applied rewrites31.1%

          \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]
      3. Recombined 2 regimes into one program.
      4. Add Preprocessing

      Alternative 9: 76.4% accurate, 0.9× speedup?

      \[\begin{array}{l} t_1 := \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\ \mathbf{if}\;y \leq -3 \cdot 10^{+139}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -1050:\\ \;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\ \mathbf{elif}\;y \leq 3.7 \cdot 10^{-12}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(b, y, c\right), y, i\right)}\\ \mathbf{elif}\;y \leq 1.65 \cdot 10^{+56}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y \cdot y, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \]
      (FPCore (x y z t a b c i)
        :precision binary64
        (let* ((t_1 (- (+ x (/ z y)) (/ (* a x) y))))
        (if (<= y -3e+139)
          t_1
          (if (<= y -1050.0)
            (* y (+ (/ x a) (/ z (* a y))))
            (if (<= y 3.7e-12)
              (/
               (fma
                (fma (fma (fma x y z) y 27464.7644705) y 230661.510616)
                y
                t)
               (fma (fma b y c) y i))
              (if (<= y 1.65e+56)
                (/
                 (fma (fma z y 27464.7644705) (* y y) t)
                 (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))
                t_1))))))
      double code(double x, double y, double z, double t, double a, double b, double c, double i) {
      	double t_1 = (x + (z / y)) - ((a * x) / y);
      	double tmp;
      	if (y <= -3e+139) {
      		tmp = t_1;
      	} else if (y <= -1050.0) {
      		tmp = y * ((x / a) + (z / (a * y)));
      	} else if (y <= 3.7e-12) {
      		tmp = fma(fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(b, y, c), y, i);
      	} else if (y <= 1.65e+56) {
      		tmp = fma(fma(z, y, 27464.7644705), (y * y), t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a, b, c, i)
      	t_1 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(a * x) / y))
      	tmp = 0.0
      	if (y <= -3e+139)
      		tmp = t_1;
      	elseif (y <= -1050.0)
      		tmp = Float64(y * Float64(Float64(x / a) + Float64(z / Float64(a * y))));
      	elseif (y <= 3.7e-12)
      		tmp = Float64(fma(fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(b, y, c), y, i));
      	elseif (y <= 1.65e+56)
      		tmp = Float64(fma(fma(z, y, 27464.7644705), Float64(y * y), t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i));
      	else
      		tmp = t_1;
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(a * x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3e+139], t$95$1, If[LessEqual[y, -1050.0], N[(y * N[(N[(x / a), $MachinePrecision] + N[(z / N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.7e-12], N[(N[(N[(N[(N[(x * y + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / N[(N[(b * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.65e+56], N[(N[(N[(z * y + 27464.7644705), $MachinePrecision] * N[(y * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
      
      \begin{array}{l}
      t_1 := \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\
      \mathbf{if}\;y \leq -3 \cdot 10^{+139}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;y \leq -1050:\\
      \;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\
      
      \mathbf{elif}\;y \leq 3.7 \cdot 10^{-12}:\\
      \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(b, y, c\right), y, i\right)}\\
      
      \mathbf{elif}\;y \leq 1.65 \cdot 10^{+56}:\\
      \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y \cdot y, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      
      Derivation
      1. Split input into 4 regimes
      2. if y < -3e139 or 1.65e56 < y

        1. Initial program 55.9%

          \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
        2. Taylor expanded in y around inf

          \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]
        3. Step-by-step derivation
          1. lower--.f64N/A

            \[\leadsto \left(x + \frac{z}{y}\right) - \color{blue}{\frac{a \cdot x}{y}} \]
          2. lower-+.f64N/A

            \[\leadsto \left(x + \frac{z}{y}\right) - \frac{\color{blue}{a \cdot x}}{y} \]
          3. lower-/.f64N/A

            \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot \color{blue}{x}}{y} \]
          4. lower-/.f64N/A

            \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{\color{blue}{y}} \]
          5. lower-*.f6431.1%

            \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y} \]
        4. Applied rewrites31.1%

          \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]

        if -3e139 < y < -1050

        1. Initial program 55.9%

          \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
        2. Taylor expanded in a around inf

          \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
        3. Step-by-step derivation
          1. lower-/.f64N/A

            \[\leadsto \frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{\color{blue}{a \cdot {y}^{3}}} \]
        4. Applied rewrites6.1%

          \[\leadsto \color{blue}{\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
        5. Taylor expanded in y around inf

          \[\leadsto y \cdot \color{blue}{\left(\frac{x}{a} + \frac{z}{a \cdot y}\right)} \]
        6. Step-by-step derivation
          1. lower-*.f64N/A

            \[\leadsto y \cdot \left(\frac{x}{a} + \color{blue}{\frac{z}{a \cdot y}}\right) \]
          2. lower-+.f64N/A

            \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{\color{blue}{a \cdot y}}\right) \]
          3. lower-/.f64N/A

            \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{\color{blue}{a} \cdot y}\right) \]
          4. lower-/.f64N/A

            \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot \color{blue}{y}}\right) \]
          5. lower-*.f6410.9%

            \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right) \]
        7. Applied rewrites10.9%

          \[\leadsto y \cdot \color{blue}{\left(\frac{x}{a} + \frac{z}{a \cdot y}\right)} \]

        if -1050 < y < 3.7e-12

        1. Initial program 55.9%

          \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
        2. Taylor expanded in y around 0

          \[\leadsto \frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\color{blue}{b} \cdot y + c\right) \cdot y + i} \]
        3. Step-by-step derivation
          1. Applied rewrites50.9%

            \[\leadsto \frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\color{blue}{b} \cdot y + c\right) \cdot y + i} \]
          2. Step-by-step derivation
            1. lift-+.f64N/A

              \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}}{\left(b \cdot y + c\right) \cdot y + i} \]
            2. lift-*.f64N/A

              \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y} + t}{\left(b \cdot y + c\right) \cdot y + i} \]
            3. lower-fma.f6450.9%

              \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616, y, t\right)}}{\left(b \cdot y + c\right) \cdot y + i} \]
            4. lift-+.f64N/A

              \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}}, y, t\right)}{\left(b \cdot y + c\right) \cdot y + i} \]
            5. lift-*.f64N/A

              \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y} + \frac{28832688827}{125000}, y, t\right)}{\left(b \cdot y + c\right) \cdot y + i} \]
            6. lower-fma.f6450.9%

              \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705, y, 230661.510616\right)}, y, t\right)}{\left(b \cdot y + c\right) \cdot y + i} \]
            7. lift-+.f64N/A

              \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}}, y, \frac{28832688827}{125000}\right), y, t\right)}{\left(b \cdot y + c\right) \cdot y + i} \]
            8. lift-*.f64N/A

              \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\left(x \cdot y + z\right) \cdot y} + \frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)}{\left(b \cdot y + c\right) \cdot y + i} \]
            9. lift-+.f64N/A

              \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\left(x \cdot y + z\right)} \cdot y + \frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)}{\left(b \cdot y + c\right) \cdot y + i} \]
            10. lift-*.f64N/A

              \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\left(\color{blue}{x \cdot y} + z\right) \cdot y + \frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)}{\left(b \cdot y + c\right) \cdot y + i} \]
            11. lift-fma.f64N/A

              \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, y, z\right)} \cdot y + \frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)}{\left(b \cdot y + c\right) \cdot y + i} \]
            12. lower-fma.f6450.9%

              \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right)}, y, 230661.510616\right), y, t\right)}{\left(b \cdot y + c\right) \cdot y + i} \]
            13. lift-+.f64N/A

              \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{\color{blue}{\left(b \cdot y + c\right) \cdot y + i}} \]
          3. Applied rewrites50.9%

            \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(b, y, c\right), y, i\right)}} \]

          if 3.7e-12 < y < 1.65e56

          1. Initial program 55.9%

            \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          2. Step-by-step derivation
            1. lift-+.f64N/A

              \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
            2. lift-*.f64N/A

              \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
            3. *-commutativeN/A

              \[\leadsto \frac{\color{blue}{y \cdot \left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right)} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
            4. lift-+.f64N/A

              \[\leadsto \frac{y \cdot \color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right)} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
            5. distribute-rgt-inN/A

              \[\leadsto \frac{\color{blue}{\left(\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y\right) \cdot y + \frac{28832688827}{125000} \cdot y\right)} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
            6. associate-+l+N/A

              \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y\right) \cdot y + \left(\frac{28832688827}{125000} \cdot y + t\right)}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
            7. lift-*.f64N/A

              \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y\right)} \cdot y + \left(\frac{28832688827}{125000} \cdot y + t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
            8. associate-*l*N/A

              \[\leadsto \frac{\color{blue}{\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot \left(y \cdot y\right)} + \left(\frac{28832688827}{125000} \cdot y + t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
            9. *-commutativeN/A

              \[\leadsto \frac{\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot \left(y \cdot y\right) + \left(\color{blue}{y \cdot \frac{28832688827}{125000}} + t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
            10. lower-fma.f64N/A

              \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}, y \cdot y, y \cdot \frac{28832688827}{125000} + t\right)}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          3. Applied rewrites55.9%

            \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y \cdot y, \mathsf{fma}\left(230661.510616, y, t\right)\right)}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          4. Taylor expanded in x around 0

            \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{z}, y, 27464.7644705\right), y \cdot y, \mathsf{fma}\left(230661.510616, y, t\right)\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
          5. Step-by-step derivation
            1. Applied rewrites52.8%

              \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{z}, y, 27464.7644705\right), y \cdot y, \mathsf{fma}\left(230661.510616, y, t\right)\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
            2. Taylor expanded in y around 0

              \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y \cdot y, \color{blue}{t}\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
            3. Step-by-step derivation
              1. Applied rewrites45.5%

                \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y \cdot y, \color{blue}{t}\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
            4. Recombined 4 regimes into one program.
            5. Add Preprocessing

            Alternative 10: 76.0% accurate, 1.0× speedup?

            \[\begin{array}{l} t_1 := \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\ \mathbf{if}\;y \leq -3 \cdot 10^{+139}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -1050:\\ \;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\ \mathbf{elif}\;y \leq 7.2 \cdot 10^{+32}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(b, y, c\right), y, i\right)}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \]
            (FPCore (x y z t a b c i)
              :precision binary64
              (let* ((t_1 (- (+ x (/ z y)) (/ (* a x) y))))
              (if (<= y -3e+139)
                t_1
                (if (<= y -1050.0)
                  (* y (+ (/ x a) (/ z (* a y))))
                  (if (<= y 7.2e+32)
                    (/
                     (fma
                      (fma (fma (fma x y z) y 27464.7644705) y 230661.510616)
                      y
                      t)
                     (fma (fma b y c) y i))
                    t_1)))))
            double code(double x, double y, double z, double t, double a, double b, double c, double i) {
            	double t_1 = (x + (z / y)) - ((a * x) / y);
            	double tmp;
            	if (y <= -3e+139) {
            		tmp = t_1;
            	} else if (y <= -1050.0) {
            		tmp = y * ((x / a) + (z / (a * y)));
            	} else if (y <= 7.2e+32) {
            		tmp = fma(fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(b, y, c), y, i);
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a, b, c, i)
            	t_1 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(a * x) / y))
            	tmp = 0.0
            	if (y <= -3e+139)
            		tmp = t_1;
            	elseif (y <= -1050.0)
            		tmp = Float64(y * Float64(Float64(x / a) + Float64(z / Float64(a * y))));
            	elseif (y <= 7.2e+32)
            		tmp = Float64(fma(fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(b, y, c), y, i));
            	else
            		tmp = t_1;
            	end
            	return tmp
            end
            
            code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(a * x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3e+139], t$95$1, If[LessEqual[y, -1050.0], N[(y * N[(N[(x / a), $MachinePrecision] + N[(z / N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.2e+32], N[(N[(N[(N[(N[(x * y + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / N[(N[(b * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
            
            \begin{array}{l}
            t_1 := \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\
            \mathbf{if}\;y \leq -3 \cdot 10^{+139}:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;y \leq -1050:\\
            \;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\
            
            \mathbf{elif}\;y \leq 7.2 \cdot 10^{+32}:\\
            \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(b, y, c\right), y, i\right)}\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_1\\
            
            
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if y < -3e139 or 7.1999999999999994e32 < y

              1. Initial program 55.9%

                \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
              2. Taylor expanded in y around inf

                \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]
              3. Step-by-step derivation
                1. lower--.f64N/A

                  \[\leadsto \left(x + \frac{z}{y}\right) - \color{blue}{\frac{a \cdot x}{y}} \]
                2. lower-+.f64N/A

                  \[\leadsto \left(x + \frac{z}{y}\right) - \frac{\color{blue}{a \cdot x}}{y} \]
                3. lower-/.f64N/A

                  \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot \color{blue}{x}}{y} \]
                4. lower-/.f64N/A

                  \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{\color{blue}{y}} \]
                5. lower-*.f6431.1%

                  \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y} \]
              4. Applied rewrites31.1%

                \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]

              if -3e139 < y < -1050

              1. Initial program 55.9%

                \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
              2. Taylor expanded in a around inf

                \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
              3. Step-by-step derivation
                1. lower-/.f64N/A

                  \[\leadsto \frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{\color{blue}{a \cdot {y}^{3}}} \]
              4. Applied rewrites6.1%

                \[\leadsto \color{blue}{\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
              5. Taylor expanded in y around inf

                \[\leadsto y \cdot \color{blue}{\left(\frac{x}{a} + \frac{z}{a \cdot y}\right)} \]
              6. Step-by-step derivation
                1. lower-*.f64N/A

                  \[\leadsto y \cdot \left(\frac{x}{a} + \color{blue}{\frac{z}{a \cdot y}}\right) \]
                2. lower-+.f64N/A

                  \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{\color{blue}{a \cdot y}}\right) \]
                3. lower-/.f64N/A

                  \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{\color{blue}{a} \cdot y}\right) \]
                4. lower-/.f64N/A

                  \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot \color{blue}{y}}\right) \]
                5. lower-*.f6410.9%

                  \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right) \]
              7. Applied rewrites10.9%

                \[\leadsto y \cdot \color{blue}{\left(\frac{x}{a} + \frac{z}{a \cdot y}\right)} \]

              if -1050 < y < 7.1999999999999994e32

              1. Initial program 55.9%

                \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
              2. Taylor expanded in y around 0

                \[\leadsto \frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\color{blue}{b} \cdot y + c\right) \cdot y + i} \]
              3. Step-by-step derivation
                1. Applied rewrites50.9%

                  \[\leadsto \frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\color{blue}{b} \cdot y + c\right) \cdot y + i} \]
                2. Step-by-step derivation
                  1. lift-+.f64N/A

                    \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}}{\left(b \cdot y + c\right) \cdot y + i} \]
                  2. lift-*.f64N/A

                    \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y} + t}{\left(b \cdot y + c\right) \cdot y + i} \]
                  3. lower-fma.f6450.9%

                    \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616, y, t\right)}}{\left(b \cdot y + c\right) \cdot y + i} \]
                  4. lift-+.f64N/A

                    \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}}, y, t\right)}{\left(b \cdot y + c\right) \cdot y + i} \]
                  5. lift-*.f64N/A

                    \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y} + \frac{28832688827}{125000}, y, t\right)}{\left(b \cdot y + c\right) \cdot y + i} \]
                  6. lower-fma.f6450.9%

                    \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705, y, 230661.510616\right)}, y, t\right)}{\left(b \cdot y + c\right) \cdot y + i} \]
                  7. lift-+.f64N/A

                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}}, y, \frac{28832688827}{125000}\right), y, t\right)}{\left(b \cdot y + c\right) \cdot y + i} \]
                  8. lift-*.f64N/A

                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\left(x \cdot y + z\right) \cdot y} + \frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)}{\left(b \cdot y + c\right) \cdot y + i} \]
                  9. lift-+.f64N/A

                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\left(x \cdot y + z\right)} \cdot y + \frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)}{\left(b \cdot y + c\right) \cdot y + i} \]
                  10. lift-*.f64N/A

                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\left(\color{blue}{x \cdot y} + z\right) \cdot y + \frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)}{\left(b \cdot y + c\right) \cdot y + i} \]
                  11. lift-fma.f64N/A

                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(x, y, z\right)} \cdot y + \frac{54929528941}{2000000}, y, \frac{28832688827}{125000}\right), y, t\right)}{\left(b \cdot y + c\right) \cdot y + i} \]
                  12. lower-fma.f6450.9%

                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right)}, y, 230661.510616\right), y, t\right)}{\left(b \cdot y + c\right) \cdot y + i} \]
                  13. lift-+.f64N/A

                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, \frac{54929528941}{2000000}\right), y, \frac{28832688827}{125000}\right), y, t\right)}{\color{blue}{\left(b \cdot y + c\right) \cdot y + i}} \]
                3. Applied rewrites50.9%

                  \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(b, y, c\right), y, i\right)}} \]
              4. Recombined 3 regimes into one program.
              5. Add Preprocessing

              Alternative 11: 74.2% accurate, 1.0× speedup?

              \[\begin{array}{l} t_1 := \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\ \mathbf{if}\;y \leq -3 \cdot 10^{+139}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -1050:\\ \;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\ \mathbf{elif}\;y \leq 7.2 \cdot 10^{+32}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y \cdot y, \mathsf{fma}\left(230661.510616, y, t\right)\right)}{\left(b \cdot y + c\right) \cdot y + i}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \]
              (FPCore (x y z t a b c i)
                :precision binary64
                (let* ((t_1 (- (+ x (/ z y)) (/ (* a x) y))))
                (if (<= y -3e+139)
                  t_1
                  (if (<= y -1050.0)
                    (* y (+ (/ x a) (/ z (* a y))))
                    (if (<= y 7.2e+32)
                      (/
                       (fma (fma z y 27464.7644705) (* y y) (fma 230661.510616 y t))
                       (+ (* (+ (* b y) c) y) i))
                      t_1)))))
              double code(double x, double y, double z, double t, double a, double b, double c, double i) {
              	double t_1 = (x + (z / y)) - ((a * x) / y);
              	double tmp;
              	if (y <= -3e+139) {
              		tmp = t_1;
              	} else if (y <= -1050.0) {
              		tmp = y * ((x / a) + (z / (a * y)));
              	} else if (y <= 7.2e+32) {
              		tmp = fma(fma(z, y, 27464.7644705), (y * y), fma(230661.510616, y, t)) / ((((b * y) + c) * y) + i);
              	} else {
              		tmp = t_1;
              	}
              	return tmp;
              }
              
              function code(x, y, z, t, a, b, c, i)
              	t_1 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(a * x) / y))
              	tmp = 0.0
              	if (y <= -3e+139)
              		tmp = t_1;
              	elseif (y <= -1050.0)
              		tmp = Float64(y * Float64(Float64(x / a) + Float64(z / Float64(a * y))));
              	elseif (y <= 7.2e+32)
              		tmp = Float64(fma(fma(z, y, 27464.7644705), Float64(y * y), fma(230661.510616, y, t)) / Float64(Float64(Float64(Float64(b * y) + c) * y) + i));
              	else
              		tmp = t_1;
              	end
              	return tmp
              end
              
              code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(a * x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3e+139], t$95$1, If[LessEqual[y, -1050.0], N[(y * N[(N[(x / a), $MachinePrecision] + N[(z / N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.2e+32], N[(N[(N[(z * y + 27464.7644705), $MachinePrecision] * N[(y * y), $MachinePrecision] + N[(230661.510616 * y + t), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(b * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
              
              \begin{array}{l}
              t_1 := \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\
              \mathbf{if}\;y \leq -3 \cdot 10^{+139}:\\
              \;\;\;\;t\_1\\
              
              \mathbf{elif}\;y \leq -1050:\\
              \;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\
              
              \mathbf{elif}\;y \leq 7.2 \cdot 10^{+32}:\\
              \;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y \cdot y, \mathsf{fma}\left(230661.510616, y, t\right)\right)}{\left(b \cdot y + c\right) \cdot y + i}\\
              
              \mathbf{else}:\\
              \;\;\;\;t\_1\\
              
              
              \end{array}
              
              Derivation
              1. Split input into 3 regimes
              2. if y < -3e139 or 7.1999999999999994e32 < y

                1. Initial program 55.9%

                  \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                2. Taylor expanded in y around inf

                  \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]
                3. Step-by-step derivation
                  1. lower--.f64N/A

                    \[\leadsto \left(x + \frac{z}{y}\right) - \color{blue}{\frac{a \cdot x}{y}} \]
                  2. lower-+.f64N/A

                    \[\leadsto \left(x + \frac{z}{y}\right) - \frac{\color{blue}{a \cdot x}}{y} \]
                  3. lower-/.f64N/A

                    \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot \color{blue}{x}}{y} \]
                  4. lower-/.f64N/A

                    \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{\color{blue}{y}} \]
                  5. lower-*.f6431.1%

                    \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y} \]
                4. Applied rewrites31.1%

                  \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]

                if -3e139 < y < -1050

                1. Initial program 55.9%

                  \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                2. Taylor expanded in a around inf

                  \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
                3. Step-by-step derivation
                  1. lower-/.f64N/A

                    \[\leadsto \frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{\color{blue}{a \cdot {y}^{3}}} \]
                4. Applied rewrites6.1%

                  \[\leadsto \color{blue}{\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
                5. Taylor expanded in y around inf

                  \[\leadsto y \cdot \color{blue}{\left(\frac{x}{a} + \frac{z}{a \cdot y}\right)} \]
                6. Step-by-step derivation
                  1. lower-*.f64N/A

                    \[\leadsto y \cdot \left(\frac{x}{a} + \color{blue}{\frac{z}{a \cdot y}}\right) \]
                  2. lower-+.f64N/A

                    \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{\color{blue}{a \cdot y}}\right) \]
                  3. lower-/.f64N/A

                    \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{\color{blue}{a} \cdot y}\right) \]
                  4. lower-/.f64N/A

                    \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot \color{blue}{y}}\right) \]
                  5. lower-*.f6410.9%

                    \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right) \]
                7. Applied rewrites10.9%

                  \[\leadsto y \cdot \color{blue}{\left(\frac{x}{a} + \frac{z}{a \cdot y}\right)} \]

                if -1050 < y < 7.1999999999999994e32

                1. Initial program 55.9%

                  \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                2. Step-by-step derivation
                  1. lift-+.f64N/A

                    \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y + t}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                  2. lift-*.f64N/A

                    \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right) \cdot y} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                  3. *-commutativeN/A

                    \[\leadsto \frac{\color{blue}{y \cdot \left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right)} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                  4. lift-+.f64N/A

                    \[\leadsto \frac{y \cdot \color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y + \frac{28832688827}{125000}\right)} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                  5. distribute-rgt-inN/A

                    \[\leadsto \frac{\color{blue}{\left(\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y\right) \cdot y + \frac{28832688827}{125000} \cdot y\right)} + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                  6. associate-+l+N/A

                    \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y\right) \cdot y + \left(\frac{28832688827}{125000} \cdot y + t\right)}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                  7. lift-*.f64N/A

                    \[\leadsto \frac{\color{blue}{\left(\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot y\right)} \cdot y + \left(\frac{28832688827}{125000} \cdot y + t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                  8. associate-*l*N/A

                    \[\leadsto \frac{\color{blue}{\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot \left(y \cdot y\right)} + \left(\frac{28832688827}{125000} \cdot y + t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                  9. *-commutativeN/A

                    \[\leadsto \frac{\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}\right) \cdot \left(y \cdot y\right) + \left(\color{blue}{y \cdot \frac{28832688827}{125000}} + t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                  10. lower-fma.f64N/A

                    \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\left(x \cdot y + z\right) \cdot y + \frac{54929528941}{2000000}, y \cdot y, y \cdot \frac{28832688827}{125000} + t\right)}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                3. Applied rewrites55.9%

                  \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y \cdot y, \mathsf{fma}\left(230661.510616, y, t\right)\right)}}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                4. Taylor expanded in x around 0

                  \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{z}, y, 27464.7644705\right), y \cdot y, \mathsf{fma}\left(230661.510616, y, t\right)\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                5. Step-by-step derivation
                  1. Applied rewrites52.8%

                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{z}, y, 27464.7644705\right), y \cdot y, \mathsf{fma}\left(230661.510616, y, t\right)\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                  2. Taylor expanded in y around 0

                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y \cdot y, \mathsf{fma}\left(230661.510616, y, t\right)\right)}{\left(\color{blue}{b \cdot y} + c\right) \cdot y + i} \]
                  3. Step-by-step derivation
                    1. lower-*.f6448.8%

                      \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y \cdot y, \mathsf{fma}\left(230661.510616, y, t\right)\right)}{\left(b \cdot \color{blue}{y} + c\right) \cdot y + i} \]
                  4. Applied rewrites48.8%

                    \[\leadsto \frac{\mathsf{fma}\left(\mathsf{fma}\left(z, y, 27464.7644705\right), y \cdot y, \mathsf{fma}\left(230661.510616, y, t\right)\right)}{\left(\color{blue}{b \cdot y} + c\right) \cdot y + i} \]
                6. Recombined 3 regimes into one program.
                7. Add Preprocessing

                Alternative 12: 74.2% accurate, 1.1× speedup?

                \[\begin{array}{l} t_1 := \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\ \mathbf{if}\;y \leq -3 \cdot 10^{+139}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -1050:\\ \;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\ \mathbf{elif}\;y \leq 7.2 \cdot 10^{+32}:\\ \;\;\;\;\frac{\left(\left(z \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(b \cdot y + c\right) \cdot y + i}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \]
                (FPCore (x y z t a b c i)
                  :precision binary64
                  (let* ((t_1 (- (+ x (/ z y)) (/ (* a x) y))))
                  (if (<= y -3e+139)
                    t_1
                    (if (<= y -1050.0)
                      (* y (+ (/ x a) (/ z (* a y))))
                      (if (<= y 7.2e+32)
                        (/
                         (+ (* (+ (* (+ (* z y) 27464.7644705) y) 230661.510616) y) t)
                         (+ (* (+ (* b y) c) y) i))
                        t_1)))))
                double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                	double t_1 = (x + (z / y)) - ((a * x) / y);
                	double tmp;
                	if (y <= -3e+139) {
                		tmp = t_1;
                	} else if (y <= -1050.0) {
                		tmp = y * ((x / a) + (z / (a * y)));
                	} else if (y <= 7.2e+32) {
                		tmp = ((((((z * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / ((((b * y) + c) * y) + i);
                	} else {
                		tmp = t_1;
                	}
                	return tmp;
                }
                
                module fmin_fmax_functions
                    implicit none
                    private
                    public fmax
                    public fmin
                
                    interface fmax
                        module procedure fmax88
                        module procedure fmax44
                        module procedure fmax84
                        module procedure fmax48
                    end interface
                    interface fmin
                        module procedure fmin88
                        module procedure fmin44
                        module procedure fmin84
                        module procedure fmin48
                    end interface
                contains
                    real(8) function fmax88(x, y) result (res)
                        real(8), intent (in) :: x
                        real(8), intent (in) :: y
                        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                    end function
                    real(4) function fmax44(x, y) result (res)
                        real(4), intent (in) :: x
                        real(4), intent (in) :: y
                        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                    end function
                    real(8) function fmax84(x, y) result(res)
                        real(8), intent (in) :: x
                        real(4), intent (in) :: y
                        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                    end function
                    real(8) function fmax48(x, y) result(res)
                        real(4), intent (in) :: x
                        real(8), intent (in) :: y
                        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                    end function
                    real(8) function fmin88(x, y) result (res)
                        real(8), intent (in) :: x
                        real(8), intent (in) :: y
                        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                    end function
                    real(4) function fmin44(x, y) result (res)
                        real(4), intent (in) :: x
                        real(4), intent (in) :: y
                        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                    end function
                    real(8) function fmin84(x, y) result(res)
                        real(8), intent (in) :: x
                        real(4), intent (in) :: y
                        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                    end function
                    real(8) function fmin48(x, y) result(res)
                        real(4), intent (in) :: x
                        real(8), intent (in) :: y
                        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                    end function
                end module
                
                real(8) function code(x, y, z, t, a, b, c, i)
                use fmin_fmax_functions
                    real(8), intent (in) :: x
                    real(8), intent (in) :: y
                    real(8), intent (in) :: z
                    real(8), intent (in) :: t
                    real(8), intent (in) :: a
                    real(8), intent (in) :: b
                    real(8), intent (in) :: c
                    real(8), intent (in) :: i
                    real(8) :: t_1
                    real(8) :: tmp
                    t_1 = (x + (z / y)) - ((a * x) / y)
                    if (y <= (-3d+139)) then
                        tmp = t_1
                    else if (y <= (-1050.0d0)) then
                        tmp = y * ((x / a) + (z / (a * y)))
                    else if (y <= 7.2d+32) then
                        tmp = ((((((z * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / ((((b * y) + c) * y) + i)
                    else
                        tmp = t_1
                    end if
                    code = tmp
                end function
                
                public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                	double t_1 = (x + (z / y)) - ((a * x) / y);
                	double tmp;
                	if (y <= -3e+139) {
                		tmp = t_1;
                	} else if (y <= -1050.0) {
                		tmp = y * ((x / a) + (z / (a * y)));
                	} else if (y <= 7.2e+32) {
                		tmp = ((((((z * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / ((((b * y) + c) * y) + i);
                	} else {
                		tmp = t_1;
                	}
                	return tmp;
                }
                
                def code(x, y, z, t, a, b, c, i):
                	t_1 = (x + (z / y)) - ((a * x) / y)
                	tmp = 0
                	if y <= -3e+139:
                		tmp = t_1
                	elif y <= -1050.0:
                		tmp = y * ((x / a) + (z / (a * y)))
                	elif y <= 7.2e+32:
                		tmp = ((((((z * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / ((((b * y) + c) * y) + i)
                	else:
                		tmp = t_1
                	return tmp
                
                function code(x, y, z, t, a, b, c, i)
                	t_1 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(a * x) / y))
                	tmp = 0.0
                	if (y <= -3e+139)
                		tmp = t_1;
                	elseif (y <= -1050.0)
                		tmp = Float64(y * Float64(Float64(x / a) + Float64(z / Float64(a * y))));
                	elseif (y <= 7.2e+32)
                		tmp = Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(b * y) + c) * y) + i));
                	else
                		tmp = t_1;
                	end
                	return tmp
                end
                
                function tmp_2 = code(x, y, z, t, a, b, c, i)
                	t_1 = (x + (z / y)) - ((a * x) / y);
                	tmp = 0.0;
                	if (y <= -3e+139)
                		tmp = t_1;
                	elseif (y <= -1050.0)
                		tmp = y * ((x / a) + (z / (a * y)));
                	elseif (y <= 7.2e+32)
                		tmp = ((((((z * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / ((((b * y) + c) * y) + i);
                	else
                		tmp = t_1;
                	end
                	tmp_2 = tmp;
                end
                
                code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(a * x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3e+139], t$95$1, If[LessEqual[y, -1050.0], N[(y * N[(N[(x / a), $MachinePrecision] + N[(z / N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.2e+32], N[(N[(N[(N[(N[(N[(N[(z * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(b * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                
                \begin{array}{l}
                t_1 := \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\
                \mathbf{if}\;y \leq -3 \cdot 10^{+139}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;y \leq -1050:\\
                \;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\
                
                \mathbf{elif}\;y \leq 7.2 \cdot 10^{+32}:\\
                \;\;\;\;\frac{\left(\left(z \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(b \cdot y + c\right) \cdot y + i}\\
                
                \mathbf{else}:\\
                \;\;\;\;t\_1\\
                
                
                \end{array}
                
                Derivation
                1. Split input into 3 regimes
                2. if y < -3e139 or 7.1999999999999994e32 < y

                  1. Initial program 55.9%

                    \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                  2. Taylor expanded in y around inf

                    \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]
                  3. Step-by-step derivation
                    1. lower--.f64N/A

                      \[\leadsto \left(x + \frac{z}{y}\right) - \color{blue}{\frac{a \cdot x}{y}} \]
                    2. lower-+.f64N/A

                      \[\leadsto \left(x + \frac{z}{y}\right) - \frac{\color{blue}{a \cdot x}}{y} \]
                    3. lower-/.f64N/A

                      \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot \color{blue}{x}}{y} \]
                    4. lower-/.f64N/A

                      \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{\color{blue}{y}} \]
                    5. lower-*.f6431.1%

                      \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y} \]
                  4. Applied rewrites31.1%

                    \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]

                  if -3e139 < y < -1050

                  1. Initial program 55.9%

                    \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                  2. Taylor expanded in a around inf

                    \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
                  3. Step-by-step derivation
                    1. lower-/.f64N/A

                      \[\leadsto \frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{\color{blue}{a \cdot {y}^{3}}} \]
                  4. Applied rewrites6.1%

                    \[\leadsto \color{blue}{\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
                  5. Taylor expanded in y around inf

                    \[\leadsto y \cdot \color{blue}{\left(\frac{x}{a} + \frac{z}{a \cdot y}\right)} \]
                  6. Step-by-step derivation
                    1. lower-*.f64N/A

                      \[\leadsto y \cdot \left(\frac{x}{a} + \color{blue}{\frac{z}{a \cdot y}}\right) \]
                    2. lower-+.f64N/A

                      \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{\color{blue}{a \cdot y}}\right) \]
                    3. lower-/.f64N/A

                      \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{\color{blue}{a} \cdot y}\right) \]
                    4. lower-/.f64N/A

                      \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot \color{blue}{y}}\right) \]
                    5. lower-*.f6410.9%

                      \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right) \]
                  7. Applied rewrites10.9%

                    \[\leadsto y \cdot \color{blue}{\left(\frac{x}{a} + \frac{z}{a \cdot y}\right)} \]

                  if -1050 < y < 7.1999999999999994e32

                  1. Initial program 55.9%

                    \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                  2. Taylor expanded in x around 0

                    \[\leadsto \frac{\left(\left(\color{blue}{z} \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                  3. Step-by-step derivation
                    1. Applied rewrites52.8%

                      \[\leadsto \frac{\left(\left(\color{blue}{z} \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                    2. Taylor expanded in y around 0

                      \[\leadsto \frac{\left(\left(z \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\color{blue}{b \cdot y} + c\right) \cdot y + i} \]
                    3. Step-by-step derivation
                      1. lower-*.f6448.8%

                        \[\leadsto \frac{\left(\left(z \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(b \cdot \color{blue}{y} + c\right) \cdot y + i} \]
                    4. Applied rewrites48.8%

                      \[\leadsto \frac{\left(\left(z \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\color{blue}{b \cdot y} + c\right) \cdot y + i} \]
                  4. Recombined 3 regimes into one program.
                  5. Add Preprocessing

                  Alternative 13: 72.6% accurate, 1.2× speedup?

                  \[\begin{array}{l} t_1 := \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\ \mathbf{if}\;y \leq -3 \cdot 10^{+139}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -3.2 \cdot 10^{-12}:\\ \;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\ \mathbf{elif}\;y \leq 7.2 \cdot 10^{+32}:\\ \;\;\;\;\frac{\left(\left(z \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{c \cdot y + i}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \]
                  (FPCore (x y z t a b c i)
                    :precision binary64
                    (let* ((t_1 (- (+ x (/ z y)) (/ (* a x) y))))
                    (if (<= y -3e+139)
                      t_1
                      (if (<= y -3.2e-12)
                        (* y (+ (/ x a) (/ z (* a y))))
                        (if (<= y 7.2e+32)
                          (/
                           (+ (* (+ (* (+ (* z y) 27464.7644705) y) 230661.510616) y) t)
                           (+ (* c y) i))
                          t_1)))))
                  double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                  	double t_1 = (x + (z / y)) - ((a * x) / y);
                  	double tmp;
                  	if (y <= -3e+139) {
                  		tmp = t_1;
                  	} else if (y <= -3.2e-12) {
                  		tmp = y * ((x / a) + (z / (a * y)));
                  	} else if (y <= 7.2e+32) {
                  		tmp = ((((((z * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / ((c * y) + i);
                  	} else {
                  		tmp = t_1;
                  	}
                  	return tmp;
                  }
                  
                  module fmin_fmax_functions
                      implicit none
                      private
                      public fmax
                      public fmin
                  
                      interface fmax
                          module procedure fmax88
                          module procedure fmax44
                          module procedure fmax84
                          module procedure fmax48
                      end interface
                      interface fmin
                          module procedure fmin88
                          module procedure fmin44
                          module procedure fmin84
                          module procedure fmin48
                      end interface
                  contains
                      real(8) function fmax88(x, y) result (res)
                          real(8), intent (in) :: x
                          real(8), intent (in) :: y
                          res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                      end function
                      real(4) function fmax44(x, y) result (res)
                          real(4), intent (in) :: x
                          real(4), intent (in) :: y
                          res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                      end function
                      real(8) function fmax84(x, y) result(res)
                          real(8), intent (in) :: x
                          real(4), intent (in) :: y
                          res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                      end function
                      real(8) function fmax48(x, y) result(res)
                          real(4), intent (in) :: x
                          real(8), intent (in) :: y
                          res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                      end function
                      real(8) function fmin88(x, y) result (res)
                          real(8), intent (in) :: x
                          real(8), intent (in) :: y
                          res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                      end function
                      real(4) function fmin44(x, y) result (res)
                          real(4), intent (in) :: x
                          real(4), intent (in) :: y
                          res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                      end function
                      real(8) function fmin84(x, y) result(res)
                          real(8), intent (in) :: x
                          real(4), intent (in) :: y
                          res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                      end function
                      real(8) function fmin48(x, y) result(res)
                          real(4), intent (in) :: x
                          real(8), intent (in) :: y
                          res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                      end function
                  end module
                  
                  real(8) function code(x, y, z, t, a, b, c, i)
                  use fmin_fmax_functions
                      real(8), intent (in) :: x
                      real(8), intent (in) :: y
                      real(8), intent (in) :: z
                      real(8), intent (in) :: t
                      real(8), intent (in) :: a
                      real(8), intent (in) :: b
                      real(8), intent (in) :: c
                      real(8), intent (in) :: i
                      real(8) :: t_1
                      real(8) :: tmp
                      t_1 = (x + (z / y)) - ((a * x) / y)
                      if (y <= (-3d+139)) then
                          tmp = t_1
                      else if (y <= (-3.2d-12)) then
                          tmp = y * ((x / a) + (z / (a * y)))
                      else if (y <= 7.2d+32) then
                          tmp = ((((((z * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / ((c * y) + i)
                      else
                          tmp = t_1
                      end if
                      code = tmp
                  end function
                  
                  public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                  	double t_1 = (x + (z / y)) - ((a * x) / y);
                  	double tmp;
                  	if (y <= -3e+139) {
                  		tmp = t_1;
                  	} else if (y <= -3.2e-12) {
                  		tmp = y * ((x / a) + (z / (a * y)));
                  	} else if (y <= 7.2e+32) {
                  		tmp = ((((((z * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / ((c * y) + i);
                  	} else {
                  		tmp = t_1;
                  	}
                  	return tmp;
                  }
                  
                  def code(x, y, z, t, a, b, c, i):
                  	t_1 = (x + (z / y)) - ((a * x) / y)
                  	tmp = 0
                  	if y <= -3e+139:
                  		tmp = t_1
                  	elif y <= -3.2e-12:
                  		tmp = y * ((x / a) + (z / (a * y)))
                  	elif y <= 7.2e+32:
                  		tmp = ((((((z * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / ((c * y) + i)
                  	else:
                  		tmp = t_1
                  	return tmp
                  
                  function code(x, y, z, t, a, b, c, i)
                  	t_1 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(a * x) / y))
                  	tmp = 0.0
                  	if (y <= -3e+139)
                  		tmp = t_1;
                  	elseif (y <= -3.2e-12)
                  		tmp = Float64(y * Float64(Float64(x / a) + Float64(z / Float64(a * y))));
                  	elseif (y <= 7.2e+32)
                  		tmp = Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(c * y) + i));
                  	else
                  		tmp = t_1;
                  	end
                  	return tmp
                  end
                  
                  function tmp_2 = code(x, y, z, t, a, b, c, i)
                  	t_1 = (x + (z / y)) - ((a * x) / y);
                  	tmp = 0.0;
                  	if (y <= -3e+139)
                  		tmp = t_1;
                  	elseif (y <= -3.2e-12)
                  		tmp = y * ((x / a) + (z / (a * y)));
                  	elseif (y <= 7.2e+32)
                  		tmp = ((((((z * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / ((c * y) + i);
                  	else
                  		tmp = t_1;
                  	end
                  	tmp_2 = tmp;
                  end
                  
                  code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(a * x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3e+139], t$95$1, If[LessEqual[y, -3.2e-12], N[(y * N[(N[(x / a), $MachinePrecision] + N[(z / N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.2e+32], N[(N[(N[(N[(N[(N[(N[(z * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(c * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                  
                  \begin{array}{l}
                  t_1 := \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\
                  \mathbf{if}\;y \leq -3 \cdot 10^{+139}:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{elif}\;y \leq -3.2 \cdot 10^{-12}:\\
                  \;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\
                  
                  \mathbf{elif}\;y \leq 7.2 \cdot 10^{+32}:\\
                  \;\;\;\;\frac{\left(\left(z \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{c \cdot y + i}\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;t\_1\\
                  
                  
                  \end{array}
                  
                  Derivation
                  1. Split input into 3 regimes
                  2. if y < -3e139 or 7.1999999999999994e32 < y

                    1. Initial program 55.9%

                      \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                    2. Taylor expanded in y around inf

                      \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]
                    3. Step-by-step derivation
                      1. lower--.f64N/A

                        \[\leadsto \left(x + \frac{z}{y}\right) - \color{blue}{\frac{a \cdot x}{y}} \]
                      2. lower-+.f64N/A

                        \[\leadsto \left(x + \frac{z}{y}\right) - \frac{\color{blue}{a \cdot x}}{y} \]
                      3. lower-/.f64N/A

                        \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot \color{blue}{x}}{y} \]
                      4. lower-/.f64N/A

                        \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{\color{blue}{y}} \]
                      5. lower-*.f6431.1%

                        \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y} \]
                    4. Applied rewrites31.1%

                      \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]

                    if -3e139 < y < -3.2000000000000001e-12

                    1. Initial program 55.9%

                      \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                    2. Taylor expanded in a around inf

                      \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
                    3. Step-by-step derivation
                      1. lower-/.f64N/A

                        \[\leadsto \frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{\color{blue}{a \cdot {y}^{3}}} \]
                    4. Applied rewrites6.1%

                      \[\leadsto \color{blue}{\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
                    5. Taylor expanded in y around inf

                      \[\leadsto y \cdot \color{blue}{\left(\frac{x}{a} + \frac{z}{a \cdot y}\right)} \]
                    6. Step-by-step derivation
                      1. lower-*.f64N/A

                        \[\leadsto y \cdot \left(\frac{x}{a} + \color{blue}{\frac{z}{a \cdot y}}\right) \]
                      2. lower-+.f64N/A

                        \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{\color{blue}{a \cdot y}}\right) \]
                      3. lower-/.f64N/A

                        \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{\color{blue}{a} \cdot y}\right) \]
                      4. lower-/.f64N/A

                        \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot \color{blue}{y}}\right) \]
                      5. lower-*.f6410.9%

                        \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right) \]
                    7. Applied rewrites10.9%

                      \[\leadsto y \cdot \color{blue}{\left(\frac{x}{a} + \frac{z}{a \cdot y}\right)} \]

                    if -3.2000000000000001e-12 < y < 7.1999999999999994e32

                    1. Initial program 55.9%

                      \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                    2. Taylor expanded in x around 0

                      \[\leadsto \frac{\left(\left(\color{blue}{z} \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                    3. Step-by-step derivation
                      1. Applied rewrites52.8%

                        \[\leadsto \frac{\left(\left(\color{blue}{z} \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                      2. Taylor expanded in y around 0

                        \[\leadsto \frac{\left(\left(z \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\color{blue}{c \cdot y} + i} \]
                      3. Step-by-step derivation
                        1. lower-*.f6444.4%

                          \[\leadsto \frac{\left(\left(z \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{c \cdot \color{blue}{y} + i} \]
                      4. Applied rewrites44.4%

                        \[\leadsto \frac{\left(\left(z \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\color{blue}{c \cdot y} + i} \]
                    4. Recombined 3 regimes into one program.
                    5. Add Preprocessing

                    Alternative 14: 70.2% accurate, 1.2× speedup?

                    \[\begin{array}{l} t_1 := \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\ \mathbf{if}\;y \leq -3 \cdot 10^{+139}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -4200000:\\ \;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\ \mathbf{elif}\;y \leq 5.8 \cdot 10^{+29}:\\ \;\;\;\;\frac{230661.510616 \cdot y + t}{\left(\left(a \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \]
                    (FPCore (x y z t a b c i)
                      :precision binary64
                      (let* ((t_1 (- (+ x (/ z y)) (/ (* a x) y))))
                      (if (<= y -3e+139)
                        t_1
                        (if (<= y -4200000.0)
                          (* y (+ (/ x a) (/ z (* a y))))
                          (if (<= y 5.8e+29)
                            (/
                             (+ (* 230661.510616 y) t)
                             (+ (* (+ (* (+ (* a y) b) y) c) y) i))
                            t_1)))))
                    double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                    	double t_1 = (x + (z / y)) - ((a * x) / y);
                    	double tmp;
                    	if (y <= -3e+139) {
                    		tmp = t_1;
                    	} else if (y <= -4200000.0) {
                    		tmp = y * ((x / a) + (z / (a * y)));
                    	} else if (y <= 5.8e+29) {
                    		tmp = ((230661.510616 * y) + t) / ((((((a * y) + b) * y) + c) * y) + i);
                    	} else {
                    		tmp = t_1;
                    	}
                    	return tmp;
                    }
                    
                    module fmin_fmax_functions
                        implicit none
                        private
                        public fmax
                        public fmin
                    
                        interface fmax
                            module procedure fmax88
                            module procedure fmax44
                            module procedure fmax84
                            module procedure fmax48
                        end interface
                        interface fmin
                            module procedure fmin88
                            module procedure fmin44
                            module procedure fmin84
                            module procedure fmin48
                        end interface
                    contains
                        real(8) function fmax88(x, y) result (res)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                        end function
                        real(4) function fmax44(x, y) result (res)
                            real(4), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                        end function
                        real(8) function fmax84(x, y) result(res)
                            real(8), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                        end function
                        real(8) function fmax48(x, y) result(res)
                            real(4), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                        end function
                        real(8) function fmin88(x, y) result (res)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                        end function
                        real(4) function fmin44(x, y) result (res)
                            real(4), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                        end function
                        real(8) function fmin84(x, y) result(res)
                            real(8), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                        end function
                        real(8) function fmin48(x, y) result(res)
                            real(4), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                        end function
                    end module
                    
                    real(8) function code(x, y, z, t, a, b, c, i)
                    use fmin_fmax_functions
                        real(8), intent (in) :: x
                        real(8), intent (in) :: y
                        real(8), intent (in) :: z
                        real(8), intent (in) :: t
                        real(8), intent (in) :: a
                        real(8), intent (in) :: b
                        real(8), intent (in) :: c
                        real(8), intent (in) :: i
                        real(8) :: t_1
                        real(8) :: tmp
                        t_1 = (x + (z / y)) - ((a * x) / y)
                        if (y <= (-3d+139)) then
                            tmp = t_1
                        else if (y <= (-4200000.0d0)) then
                            tmp = y * ((x / a) + (z / (a * y)))
                        else if (y <= 5.8d+29) then
                            tmp = ((230661.510616d0 * y) + t) / ((((((a * y) + b) * y) + c) * y) + i)
                        else
                            tmp = t_1
                        end if
                        code = tmp
                    end function
                    
                    public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                    	double t_1 = (x + (z / y)) - ((a * x) / y);
                    	double tmp;
                    	if (y <= -3e+139) {
                    		tmp = t_1;
                    	} else if (y <= -4200000.0) {
                    		tmp = y * ((x / a) + (z / (a * y)));
                    	} else if (y <= 5.8e+29) {
                    		tmp = ((230661.510616 * y) + t) / ((((((a * y) + b) * y) + c) * y) + i);
                    	} else {
                    		tmp = t_1;
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y, z, t, a, b, c, i):
                    	t_1 = (x + (z / y)) - ((a * x) / y)
                    	tmp = 0
                    	if y <= -3e+139:
                    		tmp = t_1
                    	elif y <= -4200000.0:
                    		tmp = y * ((x / a) + (z / (a * y)))
                    	elif y <= 5.8e+29:
                    		tmp = ((230661.510616 * y) + t) / ((((((a * y) + b) * y) + c) * y) + i)
                    	else:
                    		tmp = t_1
                    	return tmp
                    
                    function code(x, y, z, t, a, b, c, i)
                    	t_1 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(a * x) / y))
                    	tmp = 0.0
                    	if (y <= -3e+139)
                    		tmp = t_1;
                    	elseif (y <= -4200000.0)
                    		tmp = Float64(y * Float64(Float64(x / a) + Float64(z / Float64(a * y))));
                    	elseif (y <= 5.8e+29)
                    		tmp = Float64(Float64(Float64(230661.510616 * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(a * y) + b) * y) + c) * y) + i));
                    	else
                    		tmp = t_1;
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y, z, t, a, b, c, i)
                    	t_1 = (x + (z / y)) - ((a * x) / y);
                    	tmp = 0.0;
                    	if (y <= -3e+139)
                    		tmp = t_1;
                    	elseif (y <= -4200000.0)
                    		tmp = y * ((x / a) + (z / (a * y)));
                    	elseif (y <= 5.8e+29)
                    		tmp = ((230661.510616 * y) + t) / ((((((a * y) + b) * y) + c) * y) + i);
                    	else
                    		tmp = t_1;
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(a * x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3e+139], t$95$1, If[LessEqual[y, -4200000.0], N[(y * N[(N[(x / a), $MachinePrecision] + N[(z / N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.8e+29], N[(N[(N[(230661.510616 * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(a * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                    
                    \begin{array}{l}
                    t_1 := \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\
                    \mathbf{if}\;y \leq -3 \cdot 10^{+139}:\\
                    \;\;\;\;t\_1\\
                    
                    \mathbf{elif}\;y \leq -4200000:\\
                    \;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\
                    
                    \mathbf{elif}\;y \leq 5.8 \cdot 10^{+29}:\\
                    \;\;\;\;\frac{230661.510616 \cdot y + t}{\left(\left(a \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;t\_1\\
                    
                    
                    \end{array}
                    
                    Derivation
                    1. Split input into 3 regimes
                    2. if y < -3e139 or 5.7999999999999999e29 < y

                      1. Initial program 55.9%

                        \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                      2. Taylor expanded in y around inf

                        \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]
                      3. Step-by-step derivation
                        1. lower--.f64N/A

                          \[\leadsto \left(x + \frac{z}{y}\right) - \color{blue}{\frac{a \cdot x}{y}} \]
                        2. lower-+.f64N/A

                          \[\leadsto \left(x + \frac{z}{y}\right) - \frac{\color{blue}{a \cdot x}}{y} \]
                        3. lower-/.f64N/A

                          \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot \color{blue}{x}}{y} \]
                        4. lower-/.f64N/A

                          \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{\color{blue}{y}} \]
                        5. lower-*.f6431.1%

                          \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y} \]
                      4. Applied rewrites31.1%

                        \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]

                      if -3e139 < y < -4.2e6

                      1. Initial program 55.9%

                        \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                      2. Taylor expanded in a around inf

                        \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
                      3. Step-by-step derivation
                        1. lower-/.f64N/A

                          \[\leadsto \frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{\color{blue}{a \cdot {y}^{3}}} \]
                      4. Applied rewrites6.1%

                        \[\leadsto \color{blue}{\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
                      5. Taylor expanded in y around inf

                        \[\leadsto y \cdot \color{blue}{\left(\frac{x}{a} + \frac{z}{a \cdot y}\right)} \]
                      6. Step-by-step derivation
                        1. lower-*.f64N/A

                          \[\leadsto y \cdot \left(\frac{x}{a} + \color{blue}{\frac{z}{a \cdot y}}\right) \]
                        2. lower-+.f64N/A

                          \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{\color{blue}{a \cdot y}}\right) \]
                        3. lower-/.f64N/A

                          \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{\color{blue}{a} \cdot y}\right) \]
                        4. lower-/.f64N/A

                          \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot \color{blue}{y}}\right) \]
                        5. lower-*.f6410.9%

                          \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right) \]
                      7. Applied rewrites10.9%

                        \[\leadsto y \cdot \color{blue}{\left(\frac{x}{a} + \frac{z}{a \cdot y}\right)} \]

                      if -4.2e6 < y < 5.7999999999999999e29

                      1. Initial program 55.9%

                        \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                      2. Taylor expanded in y around 0

                        \[\leadsto \frac{\color{blue}{\frac{28832688827}{125000}} \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                      3. Step-by-step derivation
                        1. Applied rewrites48.1%

                          \[\leadsto \frac{\color{blue}{230661.510616} \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                        2. Taylor expanded in y around 0

                          \[\leadsto \frac{230661.510616 \cdot y + t}{\left(\left(\color{blue}{a \cdot y} + b\right) \cdot y + c\right) \cdot y + i} \]
                        3. Step-by-step derivation
                          1. lower-*.f6447.6%

                            \[\leadsto \frac{230661.510616 \cdot y + t}{\left(\left(a \cdot \color{blue}{y} + b\right) \cdot y + c\right) \cdot y + i} \]
                        4. Applied rewrites47.6%

                          \[\leadsto \frac{230661.510616 \cdot y + t}{\left(\left(\color{blue}{a \cdot y} + b\right) \cdot y + c\right) \cdot y + i} \]
                      4. Recombined 3 regimes into one program.
                      5. Add Preprocessing

                      Alternative 15: 69.7% accurate, 1.4× speedup?

                      \[\begin{array}{l} t_1 := \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\ \mathbf{if}\;y \leq -3 \cdot 10^{+139}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -3.8 \cdot 10^{-12}:\\ \;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\ \mathbf{elif}\;y \leq 4.5 \cdot 10^{-14}:\\ \;\;\;\;\frac{230661.510616 \cdot y + t}{\left(b \cdot y + c\right) \cdot y + i}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \]
                      (FPCore (x y z t a b c i)
                        :precision binary64
                        (let* ((t_1 (- (+ x (/ z y)) (/ (* a x) y))))
                        (if (<= y -3e+139)
                          t_1
                          (if (<= y -3.8e-12)
                            (* y (+ (/ x a) (/ z (* a y))))
                            (if (<= y 4.5e-14)
                              (/ (+ (* 230661.510616 y) t) (+ (* (+ (* b y) c) y) i))
                              t_1)))))
                      double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                      	double t_1 = (x + (z / y)) - ((a * x) / y);
                      	double tmp;
                      	if (y <= -3e+139) {
                      		tmp = t_1;
                      	} else if (y <= -3.8e-12) {
                      		tmp = y * ((x / a) + (z / (a * y)));
                      	} else if (y <= 4.5e-14) {
                      		tmp = ((230661.510616 * y) + t) / ((((b * y) + c) * y) + i);
                      	} else {
                      		tmp = t_1;
                      	}
                      	return tmp;
                      }
                      
                      module fmin_fmax_functions
                          implicit none
                          private
                          public fmax
                          public fmin
                      
                          interface fmax
                              module procedure fmax88
                              module procedure fmax44
                              module procedure fmax84
                              module procedure fmax48
                          end interface
                          interface fmin
                              module procedure fmin88
                              module procedure fmin44
                              module procedure fmin84
                              module procedure fmin48
                          end interface
                      contains
                          real(8) function fmax88(x, y) result (res)
                              real(8), intent (in) :: x
                              real(8), intent (in) :: y
                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                          end function
                          real(4) function fmax44(x, y) result (res)
                              real(4), intent (in) :: x
                              real(4), intent (in) :: y
                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                          end function
                          real(8) function fmax84(x, y) result(res)
                              real(8), intent (in) :: x
                              real(4), intent (in) :: y
                              res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                          end function
                          real(8) function fmax48(x, y) result(res)
                              real(4), intent (in) :: x
                              real(8), intent (in) :: y
                              res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                          end function
                          real(8) function fmin88(x, y) result (res)
                              real(8), intent (in) :: x
                              real(8), intent (in) :: y
                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                          end function
                          real(4) function fmin44(x, y) result (res)
                              real(4), intent (in) :: x
                              real(4), intent (in) :: y
                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                          end function
                          real(8) function fmin84(x, y) result(res)
                              real(8), intent (in) :: x
                              real(4), intent (in) :: y
                              res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                          end function
                          real(8) function fmin48(x, y) result(res)
                              real(4), intent (in) :: x
                              real(8), intent (in) :: y
                              res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                          end function
                      end module
                      
                      real(8) function code(x, y, z, t, a, b, c, i)
                      use fmin_fmax_functions
                          real(8), intent (in) :: x
                          real(8), intent (in) :: y
                          real(8), intent (in) :: z
                          real(8), intent (in) :: t
                          real(8), intent (in) :: a
                          real(8), intent (in) :: b
                          real(8), intent (in) :: c
                          real(8), intent (in) :: i
                          real(8) :: t_1
                          real(8) :: tmp
                          t_1 = (x + (z / y)) - ((a * x) / y)
                          if (y <= (-3d+139)) then
                              tmp = t_1
                          else if (y <= (-3.8d-12)) then
                              tmp = y * ((x / a) + (z / (a * y)))
                          else if (y <= 4.5d-14) then
                              tmp = ((230661.510616d0 * y) + t) / ((((b * y) + c) * y) + i)
                          else
                              tmp = t_1
                          end if
                          code = tmp
                      end function
                      
                      public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                      	double t_1 = (x + (z / y)) - ((a * x) / y);
                      	double tmp;
                      	if (y <= -3e+139) {
                      		tmp = t_1;
                      	} else if (y <= -3.8e-12) {
                      		tmp = y * ((x / a) + (z / (a * y)));
                      	} else if (y <= 4.5e-14) {
                      		tmp = ((230661.510616 * y) + t) / ((((b * y) + c) * y) + i);
                      	} else {
                      		tmp = t_1;
                      	}
                      	return tmp;
                      }
                      
                      def code(x, y, z, t, a, b, c, i):
                      	t_1 = (x + (z / y)) - ((a * x) / y)
                      	tmp = 0
                      	if y <= -3e+139:
                      		tmp = t_1
                      	elif y <= -3.8e-12:
                      		tmp = y * ((x / a) + (z / (a * y)))
                      	elif y <= 4.5e-14:
                      		tmp = ((230661.510616 * y) + t) / ((((b * y) + c) * y) + i)
                      	else:
                      		tmp = t_1
                      	return tmp
                      
                      function code(x, y, z, t, a, b, c, i)
                      	t_1 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(a * x) / y))
                      	tmp = 0.0
                      	if (y <= -3e+139)
                      		tmp = t_1;
                      	elseif (y <= -3.8e-12)
                      		tmp = Float64(y * Float64(Float64(x / a) + Float64(z / Float64(a * y))));
                      	elseif (y <= 4.5e-14)
                      		tmp = Float64(Float64(Float64(230661.510616 * y) + t) / Float64(Float64(Float64(Float64(b * y) + c) * y) + i));
                      	else
                      		tmp = t_1;
                      	end
                      	return tmp
                      end
                      
                      function tmp_2 = code(x, y, z, t, a, b, c, i)
                      	t_1 = (x + (z / y)) - ((a * x) / y);
                      	tmp = 0.0;
                      	if (y <= -3e+139)
                      		tmp = t_1;
                      	elseif (y <= -3.8e-12)
                      		tmp = y * ((x / a) + (z / (a * y)));
                      	elseif (y <= 4.5e-14)
                      		tmp = ((230661.510616 * y) + t) / ((((b * y) + c) * y) + i);
                      	else
                      		tmp = t_1;
                      	end
                      	tmp_2 = tmp;
                      end
                      
                      code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(a * x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3e+139], t$95$1, If[LessEqual[y, -3.8e-12], N[(y * N[(N[(x / a), $MachinePrecision] + N[(z / N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.5e-14], N[(N[(N[(230661.510616 * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(b * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                      
                      \begin{array}{l}
                      t_1 := \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\
                      \mathbf{if}\;y \leq -3 \cdot 10^{+139}:\\
                      \;\;\;\;t\_1\\
                      
                      \mathbf{elif}\;y \leq -3.8 \cdot 10^{-12}:\\
                      \;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\
                      
                      \mathbf{elif}\;y \leq 4.5 \cdot 10^{-14}:\\
                      \;\;\;\;\frac{230661.510616 \cdot y + t}{\left(b \cdot y + c\right) \cdot y + i}\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;t\_1\\
                      
                      
                      \end{array}
                      
                      Derivation
                      1. Split input into 3 regimes
                      2. if y < -3e139 or 4.4999999999999998e-14 < y

                        1. Initial program 55.9%

                          \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                        2. Taylor expanded in y around inf

                          \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]
                        3. Step-by-step derivation
                          1. lower--.f64N/A

                            \[\leadsto \left(x + \frac{z}{y}\right) - \color{blue}{\frac{a \cdot x}{y}} \]
                          2. lower-+.f64N/A

                            \[\leadsto \left(x + \frac{z}{y}\right) - \frac{\color{blue}{a \cdot x}}{y} \]
                          3. lower-/.f64N/A

                            \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot \color{blue}{x}}{y} \]
                          4. lower-/.f64N/A

                            \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{\color{blue}{y}} \]
                          5. lower-*.f6431.1%

                            \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y} \]
                        4. Applied rewrites31.1%

                          \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]

                        if -3e139 < y < -3.8e-12

                        1. Initial program 55.9%

                          \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                        2. Taylor expanded in a around inf

                          \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
                        3. Step-by-step derivation
                          1. lower-/.f64N/A

                            \[\leadsto \frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{\color{blue}{a \cdot {y}^{3}}} \]
                        4. Applied rewrites6.1%

                          \[\leadsto \color{blue}{\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
                        5. Taylor expanded in y around inf

                          \[\leadsto y \cdot \color{blue}{\left(\frac{x}{a} + \frac{z}{a \cdot y}\right)} \]
                        6. Step-by-step derivation
                          1. lower-*.f64N/A

                            \[\leadsto y \cdot \left(\frac{x}{a} + \color{blue}{\frac{z}{a \cdot y}}\right) \]
                          2. lower-+.f64N/A

                            \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{\color{blue}{a \cdot y}}\right) \]
                          3. lower-/.f64N/A

                            \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{\color{blue}{a} \cdot y}\right) \]
                          4. lower-/.f64N/A

                            \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot \color{blue}{y}}\right) \]
                          5. lower-*.f6410.9%

                            \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right) \]
                        7. Applied rewrites10.9%

                          \[\leadsto y \cdot \color{blue}{\left(\frac{x}{a} + \frac{z}{a \cdot y}\right)} \]

                        if -3.8e-12 < y < 4.4999999999999998e-14

                        1. Initial program 55.9%

                          \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                        2. Taylor expanded in y around 0

                          \[\leadsto \frac{\color{blue}{\frac{28832688827}{125000}} \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                        3. Step-by-step derivation
                          1. Applied rewrites48.1%

                            \[\leadsto \frac{\color{blue}{230661.510616} \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                          2. Taylor expanded in y around 0

                            \[\leadsto \frac{230661.510616 \cdot y + t}{\left(\color{blue}{b \cdot y} + c\right) \cdot y + i} \]
                          3. Step-by-step derivation
                            1. lower-*.f6445.8%

                              \[\leadsto \frac{230661.510616 \cdot y + t}{\left(b \cdot \color{blue}{y} + c\right) \cdot y + i} \]
                          4. Applied rewrites45.8%

                            \[\leadsto \frac{230661.510616 \cdot y + t}{\left(\color{blue}{b \cdot y} + c\right) \cdot y + i} \]
                        4. Recombined 3 regimes into one program.
                        5. Add Preprocessing

                        Alternative 16: 67.4% accurate, 1.7× speedup?

                        \[\begin{array}{l} t_1 := \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\ \mathbf{if}\;y \leq -3 \cdot 10^{+139}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -5 \cdot 10^{-11}:\\ \;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\ \mathbf{elif}\;y \leq 1.55 \cdot 10^{-13}:\\ \;\;\;\;\frac{230661.510616 \cdot y + t}{c \cdot y + i}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \]
                        (FPCore (x y z t a b c i)
                          :precision binary64
                          (let* ((t_1 (- (+ x (/ z y)) (/ (* a x) y))))
                          (if (<= y -3e+139)
                            t_1
                            (if (<= y -5e-11)
                              (* y (+ (/ x a) (/ z (* a y))))
                              (if (<= y 1.55e-13)
                                (/ (+ (* 230661.510616 y) t) (+ (* c y) i))
                                t_1)))))
                        double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                        	double t_1 = (x + (z / y)) - ((a * x) / y);
                        	double tmp;
                        	if (y <= -3e+139) {
                        		tmp = t_1;
                        	} else if (y <= -5e-11) {
                        		tmp = y * ((x / a) + (z / (a * y)));
                        	} else if (y <= 1.55e-13) {
                        		tmp = ((230661.510616 * y) + t) / ((c * y) + i);
                        	} else {
                        		tmp = t_1;
                        	}
                        	return tmp;
                        }
                        
                        module fmin_fmax_functions
                            implicit none
                            private
                            public fmax
                            public fmin
                        
                            interface fmax
                                module procedure fmax88
                                module procedure fmax44
                                module procedure fmax84
                                module procedure fmax48
                            end interface
                            interface fmin
                                module procedure fmin88
                                module procedure fmin44
                                module procedure fmin84
                                module procedure fmin48
                            end interface
                        contains
                            real(8) function fmax88(x, y) result (res)
                                real(8), intent (in) :: x
                                real(8), intent (in) :: y
                                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                            end function
                            real(4) function fmax44(x, y) result (res)
                                real(4), intent (in) :: x
                                real(4), intent (in) :: y
                                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                            end function
                            real(8) function fmax84(x, y) result(res)
                                real(8), intent (in) :: x
                                real(4), intent (in) :: y
                                res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                            end function
                            real(8) function fmax48(x, y) result(res)
                                real(4), intent (in) :: x
                                real(8), intent (in) :: y
                                res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                            end function
                            real(8) function fmin88(x, y) result (res)
                                real(8), intent (in) :: x
                                real(8), intent (in) :: y
                                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                            end function
                            real(4) function fmin44(x, y) result (res)
                                real(4), intent (in) :: x
                                real(4), intent (in) :: y
                                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                            end function
                            real(8) function fmin84(x, y) result(res)
                                real(8), intent (in) :: x
                                real(4), intent (in) :: y
                                res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                            end function
                            real(8) function fmin48(x, y) result(res)
                                real(4), intent (in) :: x
                                real(8), intent (in) :: y
                                res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                            end function
                        end module
                        
                        real(8) function code(x, y, z, t, a, b, c, i)
                        use fmin_fmax_functions
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            real(8), intent (in) :: z
                            real(8), intent (in) :: t
                            real(8), intent (in) :: a
                            real(8), intent (in) :: b
                            real(8), intent (in) :: c
                            real(8), intent (in) :: i
                            real(8) :: t_1
                            real(8) :: tmp
                            t_1 = (x + (z / y)) - ((a * x) / y)
                            if (y <= (-3d+139)) then
                                tmp = t_1
                            else if (y <= (-5d-11)) then
                                tmp = y * ((x / a) + (z / (a * y)))
                            else if (y <= 1.55d-13) then
                                tmp = ((230661.510616d0 * y) + t) / ((c * y) + i)
                            else
                                tmp = t_1
                            end if
                            code = tmp
                        end function
                        
                        public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                        	double t_1 = (x + (z / y)) - ((a * x) / y);
                        	double tmp;
                        	if (y <= -3e+139) {
                        		tmp = t_1;
                        	} else if (y <= -5e-11) {
                        		tmp = y * ((x / a) + (z / (a * y)));
                        	} else if (y <= 1.55e-13) {
                        		tmp = ((230661.510616 * y) + t) / ((c * y) + i);
                        	} else {
                        		tmp = t_1;
                        	}
                        	return tmp;
                        }
                        
                        def code(x, y, z, t, a, b, c, i):
                        	t_1 = (x + (z / y)) - ((a * x) / y)
                        	tmp = 0
                        	if y <= -3e+139:
                        		tmp = t_1
                        	elif y <= -5e-11:
                        		tmp = y * ((x / a) + (z / (a * y)))
                        	elif y <= 1.55e-13:
                        		tmp = ((230661.510616 * y) + t) / ((c * y) + i)
                        	else:
                        		tmp = t_1
                        	return tmp
                        
                        function code(x, y, z, t, a, b, c, i)
                        	t_1 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(a * x) / y))
                        	tmp = 0.0
                        	if (y <= -3e+139)
                        		tmp = t_1;
                        	elseif (y <= -5e-11)
                        		tmp = Float64(y * Float64(Float64(x / a) + Float64(z / Float64(a * y))));
                        	elseif (y <= 1.55e-13)
                        		tmp = Float64(Float64(Float64(230661.510616 * y) + t) / Float64(Float64(c * y) + i));
                        	else
                        		tmp = t_1;
                        	end
                        	return tmp
                        end
                        
                        function tmp_2 = code(x, y, z, t, a, b, c, i)
                        	t_1 = (x + (z / y)) - ((a * x) / y);
                        	tmp = 0.0;
                        	if (y <= -3e+139)
                        		tmp = t_1;
                        	elseif (y <= -5e-11)
                        		tmp = y * ((x / a) + (z / (a * y)));
                        	elseif (y <= 1.55e-13)
                        		tmp = ((230661.510616 * y) + t) / ((c * y) + i);
                        	else
                        		tmp = t_1;
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(a * x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3e+139], t$95$1, If[LessEqual[y, -5e-11], N[(y * N[(N[(x / a), $MachinePrecision] + N[(z / N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.55e-13], N[(N[(N[(230661.510616 * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(c * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                        
                        \begin{array}{l}
                        t_1 := \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\
                        \mathbf{if}\;y \leq -3 \cdot 10^{+139}:\\
                        \;\;\;\;t\_1\\
                        
                        \mathbf{elif}\;y \leq -5 \cdot 10^{-11}:\\
                        \;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\
                        
                        \mathbf{elif}\;y \leq 1.55 \cdot 10^{-13}:\\
                        \;\;\;\;\frac{230661.510616 \cdot y + t}{c \cdot y + i}\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;t\_1\\
                        
                        
                        \end{array}
                        
                        Derivation
                        1. Split input into 3 regimes
                        2. if y < -3e139 or 1.55e-13 < y

                          1. Initial program 55.9%

                            \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                          2. Taylor expanded in y around inf

                            \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]
                          3. Step-by-step derivation
                            1. lower--.f64N/A

                              \[\leadsto \left(x + \frac{z}{y}\right) - \color{blue}{\frac{a \cdot x}{y}} \]
                            2. lower-+.f64N/A

                              \[\leadsto \left(x + \frac{z}{y}\right) - \frac{\color{blue}{a \cdot x}}{y} \]
                            3. lower-/.f64N/A

                              \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot \color{blue}{x}}{y} \]
                            4. lower-/.f64N/A

                              \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{\color{blue}{y}} \]
                            5. lower-*.f6431.1%

                              \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y} \]
                          4. Applied rewrites31.1%

                            \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]

                          if -3e139 < y < -5.0000000000000002e-11

                          1. Initial program 55.9%

                            \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                          2. Taylor expanded in a around inf

                            \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
                          3. Step-by-step derivation
                            1. lower-/.f64N/A

                              \[\leadsto \frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{\color{blue}{a \cdot {y}^{3}}} \]
                          4. Applied rewrites6.1%

                            \[\leadsto \color{blue}{\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
                          5. Taylor expanded in y around inf

                            \[\leadsto y \cdot \color{blue}{\left(\frac{x}{a} + \frac{z}{a \cdot y}\right)} \]
                          6. Step-by-step derivation
                            1. lower-*.f64N/A

                              \[\leadsto y \cdot \left(\frac{x}{a} + \color{blue}{\frac{z}{a \cdot y}}\right) \]
                            2. lower-+.f64N/A

                              \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{\color{blue}{a \cdot y}}\right) \]
                            3. lower-/.f64N/A

                              \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{\color{blue}{a} \cdot y}\right) \]
                            4. lower-/.f64N/A

                              \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot \color{blue}{y}}\right) \]
                            5. lower-*.f6410.9%

                              \[\leadsto y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right) \]
                          7. Applied rewrites10.9%

                            \[\leadsto y \cdot \color{blue}{\left(\frac{x}{a} + \frac{z}{a \cdot y}\right)} \]

                          if -5.0000000000000002e-11 < y < 1.55e-13

                          1. Initial program 55.9%

                            \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                          2. Taylor expanded in y around 0

                            \[\leadsto \frac{\color{blue}{\frac{28832688827}{125000}} \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                          3. Step-by-step derivation
                            1. Applied rewrites48.1%

                              \[\leadsto \frac{\color{blue}{230661.510616} \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                            2. Taylor expanded in y around 0

                              \[\leadsto \frac{230661.510616 \cdot y + t}{\color{blue}{c \cdot y} + i} \]
                            3. Step-by-step derivation
                              1. lower-*.f6442.1%

                                \[\leadsto \frac{230661.510616 \cdot y + t}{c \cdot \color{blue}{y} + i} \]
                            4. Applied rewrites42.1%

                              \[\leadsto \frac{230661.510616 \cdot y + t}{\color{blue}{c \cdot y} + i} \]
                          4. Recombined 3 regimes into one program.
                          5. Add Preprocessing

                          Alternative 17: 67.1% accurate, 1.7× speedup?

                          \[\begin{array}{l} t_1 := \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\ \mathbf{if}\;y \leq -1.5 \cdot 10^{+109}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -3.6:\\ \;\;\;\;\frac{x \cdot y}{a}\\ \mathbf{elif}\;y \leq 1.55 \cdot 10^{-13}:\\ \;\;\;\;\frac{230661.510616 \cdot y + t}{c \cdot y + i}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \]
                          (FPCore (x y z t a b c i)
                            :precision binary64
                            (let* ((t_1 (- (+ x (/ z y)) (/ (* a x) y))))
                            (if (<= y -1.5e+109)
                              t_1
                              (if (<= y -3.6)
                                (/ (* x y) a)
                                (if (<= y 1.55e-13)
                                  (/ (+ (* 230661.510616 y) t) (+ (* c y) i))
                                  t_1)))))
                          double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                          	double t_1 = (x + (z / y)) - ((a * x) / y);
                          	double tmp;
                          	if (y <= -1.5e+109) {
                          		tmp = t_1;
                          	} else if (y <= -3.6) {
                          		tmp = (x * y) / a;
                          	} else if (y <= 1.55e-13) {
                          		tmp = ((230661.510616 * y) + t) / ((c * y) + i);
                          	} else {
                          		tmp = t_1;
                          	}
                          	return tmp;
                          }
                          
                          module fmin_fmax_functions
                              implicit none
                              private
                              public fmax
                              public fmin
                          
                              interface fmax
                                  module procedure fmax88
                                  module procedure fmax44
                                  module procedure fmax84
                                  module procedure fmax48
                              end interface
                              interface fmin
                                  module procedure fmin88
                                  module procedure fmin44
                                  module procedure fmin84
                                  module procedure fmin48
                              end interface
                          contains
                              real(8) function fmax88(x, y) result (res)
                                  real(8), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                              end function
                              real(4) function fmax44(x, y) result (res)
                                  real(4), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                              end function
                              real(8) function fmax84(x, y) result(res)
                                  real(8), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                              end function
                              real(8) function fmax48(x, y) result(res)
                                  real(4), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                              end function
                              real(8) function fmin88(x, y) result (res)
                                  real(8), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                              end function
                              real(4) function fmin44(x, y) result (res)
                                  real(4), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                              end function
                              real(8) function fmin84(x, y) result(res)
                                  real(8), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                              end function
                              real(8) function fmin48(x, y) result(res)
                                  real(4), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                              end function
                          end module
                          
                          real(8) function code(x, y, z, t, a, b, c, i)
                          use fmin_fmax_functions
                              real(8), intent (in) :: x
                              real(8), intent (in) :: y
                              real(8), intent (in) :: z
                              real(8), intent (in) :: t
                              real(8), intent (in) :: a
                              real(8), intent (in) :: b
                              real(8), intent (in) :: c
                              real(8), intent (in) :: i
                              real(8) :: t_1
                              real(8) :: tmp
                              t_1 = (x + (z / y)) - ((a * x) / y)
                              if (y <= (-1.5d+109)) then
                                  tmp = t_1
                              else if (y <= (-3.6d0)) then
                                  tmp = (x * y) / a
                              else if (y <= 1.55d-13) then
                                  tmp = ((230661.510616d0 * y) + t) / ((c * y) + i)
                              else
                                  tmp = t_1
                              end if
                              code = tmp
                          end function
                          
                          public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                          	double t_1 = (x + (z / y)) - ((a * x) / y);
                          	double tmp;
                          	if (y <= -1.5e+109) {
                          		tmp = t_1;
                          	} else if (y <= -3.6) {
                          		tmp = (x * y) / a;
                          	} else if (y <= 1.55e-13) {
                          		tmp = ((230661.510616 * y) + t) / ((c * y) + i);
                          	} else {
                          		tmp = t_1;
                          	}
                          	return tmp;
                          }
                          
                          def code(x, y, z, t, a, b, c, i):
                          	t_1 = (x + (z / y)) - ((a * x) / y)
                          	tmp = 0
                          	if y <= -1.5e+109:
                          		tmp = t_1
                          	elif y <= -3.6:
                          		tmp = (x * y) / a
                          	elif y <= 1.55e-13:
                          		tmp = ((230661.510616 * y) + t) / ((c * y) + i)
                          	else:
                          		tmp = t_1
                          	return tmp
                          
                          function code(x, y, z, t, a, b, c, i)
                          	t_1 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(a * x) / y))
                          	tmp = 0.0
                          	if (y <= -1.5e+109)
                          		tmp = t_1;
                          	elseif (y <= -3.6)
                          		tmp = Float64(Float64(x * y) / a);
                          	elseif (y <= 1.55e-13)
                          		tmp = Float64(Float64(Float64(230661.510616 * y) + t) / Float64(Float64(c * y) + i));
                          	else
                          		tmp = t_1;
                          	end
                          	return tmp
                          end
                          
                          function tmp_2 = code(x, y, z, t, a, b, c, i)
                          	t_1 = (x + (z / y)) - ((a * x) / y);
                          	tmp = 0.0;
                          	if (y <= -1.5e+109)
                          		tmp = t_1;
                          	elseif (y <= -3.6)
                          		tmp = (x * y) / a;
                          	elseif (y <= 1.55e-13)
                          		tmp = ((230661.510616 * y) + t) / ((c * y) + i);
                          	else
                          		tmp = t_1;
                          	end
                          	tmp_2 = tmp;
                          end
                          
                          code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(a * x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.5e+109], t$95$1, If[LessEqual[y, -3.6], N[(N[(x * y), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[y, 1.55e-13], N[(N[(N[(230661.510616 * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(c * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                          
                          \begin{array}{l}
                          t_1 := \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}\\
                          \mathbf{if}\;y \leq -1.5 \cdot 10^{+109}:\\
                          \;\;\;\;t\_1\\
                          
                          \mathbf{elif}\;y \leq -3.6:\\
                          \;\;\;\;\frac{x \cdot y}{a}\\
                          
                          \mathbf{elif}\;y \leq 1.55 \cdot 10^{-13}:\\
                          \;\;\;\;\frac{230661.510616 \cdot y + t}{c \cdot y + i}\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;t\_1\\
                          
                          
                          \end{array}
                          
                          Derivation
                          1. Split input into 3 regimes
                          2. if y < -1.5000000000000001e109 or 1.55e-13 < y

                            1. Initial program 55.9%

                              \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                            2. Taylor expanded in y around inf

                              \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]
                            3. Step-by-step derivation
                              1. lower--.f64N/A

                                \[\leadsto \left(x + \frac{z}{y}\right) - \color{blue}{\frac{a \cdot x}{y}} \]
                              2. lower-+.f64N/A

                                \[\leadsto \left(x + \frac{z}{y}\right) - \frac{\color{blue}{a \cdot x}}{y} \]
                              3. lower-/.f64N/A

                                \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot \color{blue}{x}}{y} \]
                              4. lower-/.f64N/A

                                \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{\color{blue}{y}} \]
                              5. lower-*.f6431.1%

                                \[\leadsto \left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y} \]
                            4. Applied rewrites31.1%

                              \[\leadsto \color{blue}{\left(x + \frac{z}{y}\right) - \frac{a \cdot x}{y}} \]

                            if -1.5000000000000001e109 < y < -3.6000000000000001

                            1. Initial program 55.9%

                              \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                            2. Taylor expanded in a around inf

                              \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
                            3. Step-by-step derivation
                              1. lower-/.f64N/A

                                \[\leadsto \frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{\color{blue}{a \cdot {y}^{3}}} \]
                            4. Applied rewrites6.1%

                              \[\leadsto \color{blue}{\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
                            5. Taylor expanded in x around inf

                              \[\leadsto \frac{x \cdot y}{\color{blue}{a}} \]
                            6. Step-by-step derivation
                              1. lower-/.f64N/A

                                \[\leadsto \frac{x \cdot y}{a} \]
                              2. lower-*.f649.3%

                                \[\leadsto \frac{x \cdot y}{a} \]
                            7. Applied rewrites9.3%

                              \[\leadsto \frac{x \cdot y}{\color{blue}{a}} \]

                            if -3.6000000000000001 < y < 1.55e-13

                            1. Initial program 55.9%

                              \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                            2. Taylor expanded in y around 0

                              \[\leadsto \frac{\color{blue}{\frac{28832688827}{125000}} \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                            3. Step-by-step derivation
                              1. Applied rewrites48.1%

                                \[\leadsto \frac{\color{blue}{230661.510616} \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                              2. Taylor expanded in y around 0

                                \[\leadsto \frac{230661.510616 \cdot y + t}{\color{blue}{c \cdot y} + i} \]
                              3. Step-by-step derivation
                                1. lower-*.f6442.1%

                                  \[\leadsto \frac{230661.510616 \cdot y + t}{c \cdot \color{blue}{y} + i} \]
                              4. Applied rewrites42.1%

                                \[\leadsto \frac{230661.510616 \cdot y + t}{\color{blue}{c \cdot y} + i} \]
                            4. Recombined 3 regimes into one program.
                            5. Add Preprocessing

                            Alternative 18: 45.3% accurate, 2.0× speedup?

                            \[\begin{array}{l} t_1 := \frac{x \cdot y}{a}\\ \mathbf{if}\;y \leq -3.6:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 2.3 \cdot 10^{+39}:\\ \;\;\;\;\frac{230661.510616 \cdot y + t}{c \cdot y + i}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \]
                            (FPCore (x y z t a b c i)
                              :precision binary64
                              (let* ((t_1 (/ (* x y) a)))
                              (if (<= y -3.6)
                                t_1
                                (if (<= y 2.3e+39)
                                  (/ (+ (* 230661.510616 y) t) (+ (* c y) i))
                                  t_1))))
                            double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                            	double t_1 = (x * y) / a;
                            	double tmp;
                            	if (y <= -3.6) {
                            		tmp = t_1;
                            	} else if (y <= 2.3e+39) {
                            		tmp = ((230661.510616 * y) + t) / ((c * y) + i);
                            	} else {
                            		tmp = t_1;
                            	}
                            	return tmp;
                            }
                            
                            module fmin_fmax_functions
                                implicit none
                                private
                                public fmax
                                public fmin
                            
                                interface fmax
                                    module procedure fmax88
                                    module procedure fmax44
                                    module procedure fmax84
                                    module procedure fmax48
                                end interface
                                interface fmin
                                    module procedure fmin88
                                    module procedure fmin44
                                    module procedure fmin84
                                    module procedure fmin48
                                end interface
                            contains
                                real(8) function fmax88(x, y) result (res)
                                    real(8), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                end function
                                real(4) function fmax44(x, y) result (res)
                                    real(4), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                end function
                                real(8) function fmax84(x, y) result(res)
                                    real(8), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                end function
                                real(8) function fmax48(x, y) result(res)
                                    real(4), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                end function
                                real(8) function fmin88(x, y) result (res)
                                    real(8), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                end function
                                real(4) function fmin44(x, y) result (res)
                                    real(4), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                end function
                                real(8) function fmin84(x, y) result(res)
                                    real(8), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                end function
                                real(8) function fmin48(x, y) result(res)
                                    real(4), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                end function
                            end module
                            
                            real(8) function code(x, y, z, t, a, b, c, i)
                            use fmin_fmax_functions
                                real(8), intent (in) :: x
                                real(8), intent (in) :: y
                                real(8), intent (in) :: z
                                real(8), intent (in) :: t
                                real(8), intent (in) :: a
                                real(8), intent (in) :: b
                                real(8), intent (in) :: c
                                real(8), intent (in) :: i
                                real(8) :: t_1
                                real(8) :: tmp
                                t_1 = (x * y) / a
                                if (y <= (-3.6d0)) then
                                    tmp = t_1
                                else if (y <= 2.3d+39) then
                                    tmp = ((230661.510616d0 * y) + t) / ((c * y) + i)
                                else
                                    tmp = t_1
                                end if
                                code = tmp
                            end function
                            
                            public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                            	double t_1 = (x * y) / a;
                            	double tmp;
                            	if (y <= -3.6) {
                            		tmp = t_1;
                            	} else if (y <= 2.3e+39) {
                            		tmp = ((230661.510616 * y) + t) / ((c * y) + i);
                            	} else {
                            		tmp = t_1;
                            	}
                            	return tmp;
                            }
                            
                            def code(x, y, z, t, a, b, c, i):
                            	t_1 = (x * y) / a
                            	tmp = 0
                            	if y <= -3.6:
                            		tmp = t_1
                            	elif y <= 2.3e+39:
                            		tmp = ((230661.510616 * y) + t) / ((c * y) + i)
                            	else:
                            		tmp = t_1
                            	return tmp
                            
                            function code(x, y, z, t, a, b, c, i)
                            	t_1 = Float64(Float64(x * y) / a)
                            	tmp = 0.0
                            	if (y <= -3.6)
                            		tmp = t_1;
                            	elseif (y <= 2.3e+39)
                            		tmp = Float64(Float64(Float64(230661.510616 * y) + t) / Float64(Float64(c * y) + i));
                            	else
                            		tmp = t_1;
                            	end
                            	return tmp
                            end
                            
                            function tmp_2 = code(x, y, z, t, a, b, c, i)
                            	t_1 = (x * y) / a;
                            	tmp = 0.0;
                            	if (y <= -3.6)
                            		tmp = t_1;
                            	elseif (y <= 2.3e+39)
                            		tmp = ((230661.510616 * y) + t) / ((c * y) + i);
                            	else
                            		tmp = t_1;
                            	end
                            	tmp_2 = tmp;
                            end
                            
                            code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x * y), $MachinePrecision] / a), $MachinePrecision]}, If[LessEqual[y, -3.6], t$95$1, If[LessEqual[y, 2.3e+39], N[(N[(N[(230661.510616 * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(c * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                            
                            \begin{array}{l}
                            t_1 := \frac{x \cdot y}{a}\\
                            \mathbf{if}\;y \leq -3.6:\\
                            \;\;\;\;t\_1\\
                            
                            \mathbf{elif}\;y \leq 2.3 \cdot 10^{+39}:\\
                            \;\;\;\;\frac{230661.510616 \cdot y + t}{c \cdot y + i}\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;t\_1\\
                            
                            
                            \end{array}
                            
                            Derivation
                            1. Split input into 2 regimes
                            2. if y < -3.6000000000000001 or 2.3000000000000001e39 < y

                              1. Initial program 55.9%

                                \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                              2. Taylor expanded in a around inf

                                \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
                              3. Step-by-step derivation
                                1. lower-/.f64N/A

                                  \[\leadsto \frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{\color{blue}{a \cdot {y}^{3}}} \]
                              4. Applied rewrites6.1%

                                \[\leadsto \color{blue}{\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
                              5. Taylor expanded in x around inf

                                \[\leadsto \frac{x \cdot y}{\color{blue}{a}} \]
                              6. Step-by-step derivation
                                1. lower-/.f64N/A

                                  \[\leadsto \frac{x \cdot y}{a} \]
                                2. lower-*.f649.3%

                                  \[\leadsto \frac{x \cdot y}{a} \]
                              7. Applied rewrites9.3%

                                \[\leadsto \frac{x \cdot y}{\color{blue}{a}} \]

                              if -3.6000000000000001 < y < 2.3000000000000001e39

                              1. Initial program 55.9%

                                \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                              2. Taylor expanded in y around 0

                                \[\leadsto \frac{\color{blue}{\frac{28832688827}{125000}} \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                              3. Step-by-step derivation
                                1. Applied rewrites48.1%

                                  \[\leadsto \frac{\color{blue}{230661.510616} \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                2. Taylor expanded in y around 0

                                  \[\leadsto \frac{230661.510616 \cdot y + t}{\color{blue}{c \cdot y} + i} \]
                                3. Step-by-step derivation
                                  1. lower-*.f6442.1%

                                    \[\leadsto \frac{230661.510616 \cdot y + t}{c \cdot \color{blue}{y} + i} \]
                                4. Applied rewrites42.1%

                                  \[\leadsto \frac{230661.510616 \cdot y + t}{\color{blue}{c \cdot y} + i} \]
                              4. Recombined 2 regimes into one program.
                              5. Add Preprocessing

                              Alternative 19: 32.5% accurate, 3.0× speedup?

                              \[\begin{array}{l} t_1 := \frac{x \cdot y}{a}\\ \mathbf{if}\;y \leq -3.6:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 24000000000000:\\ \;\;\;\;\frac{t}{i}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \]
                              (FPCore (x y z t a b c i)
                                :precision binary64
                                (let* ((t_1 (/ (* x y) a)))
                                (if (<= y -3.6) t_1 (if (<= y 24000000000000.0) (/ t i) t_1))))
                              double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                              	double t_1 = (x * y) / a;
                              	double tmp;
                              	if (y <= -3.6) {
                              		tmp = t_1;
                              	} else if (y <= 24000000000000.0) {
                              		tmp = t / i;
                              	} else {
                              		tmp = t_1;
                              	}
                              	return tmp;
                              }
                              
                              module fmin_fmax_functions
                                  implicit none
                                  private
                                  public fmax
                                  public fmin
                              
                                  interface fmax
                                      module procedure fmax88
                                      module procedure fmax44
                                      module procedure fmax84
                                      module procedure fmax48
                                  end interface
                                  interface fmin
                                      module procedure fmin88
                                      module procedure fmin44
                                      module procedure fmin84
                                      module procedure fmin48
                                  end interface
                              contains
                                  real(8) function fmax88(x, y) result (res)
                                      real(8), intent (in) :: x
                                      real(8), intent (in) :: y
                                      res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                  end function
                                  real(4) function fmax44(x, y) result (res)
                                      real(4), intent (in) :: x
                                      real(4), intent (in) :: y
                                      res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                  end function
                                  real(8) function fmax84(x, y) result(res)
                                      real(8), intent (in) :: x
                                      real(4), intent (in) :: y
                                      res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                  end function
                                  real(8) function fmax48(x, y) result(res)
                                      real(4), intent (in) :: x
                                      real(8), intent (in) :: y
                                      res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                  end function
                                  real(8) function fmin88(x, y) result (res)
                                      real(8), intent (in) :: x
                                      real(8), intent (in) :: y
                                      res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                  end function
                                  real(4) function fmin44(x, y) result (res)
                                      real(4), intent (in) :: x
                                      real(4), intent (in) :: y
                                      res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                  end function
                                  real(8) function fmin84(x, y) result(res)
                                      real(8), intent (in) :: x
                                      real(4), intent (in) :: y
                                      res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                  end function
                                  real(8) function fmin48(x, y) result(res)
                                      real(4), intent (in) :: x
                                      real(8), intent (in) :: y
                                      res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                  end function
                              end module
                              
                              real(8) function code(x, y, z, t, a, b, c, i)
                              use fmin_fmax_functions
                                  real(8), intent (in) :: x
                                  real(8), intent (in) :: y
                                  real(8), intent (in) :: z
                                  real(8), intent (in) :: t
                                  real(8), intent (in) :: a
                                  real(8), intent (in) :: b
                                  real(8), intent (in) :: c
                                  real(8), intent (in) :: i
                                  real(8) :: t_1
                                  real(8) :: tmp
                                  t_1 = (x * y) / a
                                  if (y <= (-3.6d0)) then
                                      tmp = t_1
                                  else if (y <= 24000000000000.0d0) then
                                      tmp = t / i
                                  else
                                      tmp = t_1
                                  end if
                                  code = tmp
                              end function
                              
                              public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                              	double t_1 = (x * y) / a;
                              	double tmp;
                              	if (y <= -3.6) {
                              		tmp = t_1;
                              	} else if (y <= 24000000000000.0) {
                              		tmp = t / i;
                              	} else {
                              		tmp = t_1;
                              	}
                              	return tmp;
                              }
                              
                              def code(x, y, z, t, a, b, c, i):
                              	t_1 = (x * y) / a
                              	tmp = 0
                              	if y <= -3.6:
                              		tmp = t_1
                              	elif y <= 24000000000000.0:
                              		tmp = t / i
                              	else:
                              		tmp = t_1
                              	return tmp
                              
                              function code(x, y, z, t, a, b, c, i)
                              	t_1 = Float64(Float64(x * y) / a)
                              	tmp = 0.0
                              	if (y <= -3.6)
                              		tmp = t_1;
                              	elseif (y <= 24000000000000.0)
                              		tmp = Float64(t / i);
                              	else
                              		tmp = t_1;
                              	end
                              	return tmp
                              end
                              
                              function tmp_2 = code(x, y, z, t, a, b, c, i)
                              	t_1 = (x * y) / a;
                              	tmp = 0.0;
                              	if (y <= -3.6)
                              		tmp = t_1;
                              	elseif (y <= 24000000000000.0)
                              		tmp = t / i;
                              	else
                              		tmp = t_1;
                              	end
                              	tmp_2 = tmp;
                              end
                              
                              code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x * y), $MachinePrecision] / a), $MachinePrecision]}, If[LessEqual[y, -3.6], t$95$1, If[LessEqual[y, 24000000000000.0], N[(t / i), $MachinePrecision], t$95$1]]]
                              
                              \begin{array}{l}
                              t_1 := \frac{x \cdot y}{a}\\
                              \mathbf{if}\;y \leq -3.6:\\
                              \;\;\;\;t\_1\\
                              
                              \mathbf{elif}\;y \leq 24000000000000:\\
                              \;\;\;\;\frac{t}{i}\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;t\_1\\
                              
                              
                              \end{array}
                              
                              Derivation
                              1. Split input into 2 regimes
                              2. if y < -3.6000000000000001 or 2.4e13 < y

                                1. Initial program 55.9%

                                  \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                2. Taylor expanded in a around inf

                                  \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
                                3. Step-by-step derivation
                                  1. lower-/.f64N/A

                                    \[\leadsto \frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{\color{blue}{a \cdot {y}^{3}}} \]
                                4. Applied rewrites6.1%

                                  \[\leadsto \color{blue}{\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
                                5. Taylor expanded in x around inf

                                  \[\leadsto \frac{x \cdot y}{\color{blue}{a}} \]
                                6. Step-by-step derivation
                                  1. lower-/.f64N/A

                                    \[\leadsto \frac{x \cdot y}{a} \]
                                  2. lower-*.f649.3%

                                    \[\leadsto \frac{x \cdot y}{a} \]
                                7. Applied rewrites9.3%

                                  \[\leadsto \frac{x \cdot y}{\color{blue}{a}} \]

                                if -3.6000000000000001 < y < 2.4e13

                                1. Initial program 55.9%

                                  \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                2. Taylor expanded in y around 0

                                  \[\leadsto \color{blue}{\frac{t}{i}} \]
                                3. Step-by-step derivation
                                  1. lower-/.f6429.0%

                                    \[\leadsto \frac{t}{\color{blue}{i}} \]
                                4. Applied rewrites29.0%

                                  \[\leadsto \color{blue}{\frac{t}{i}} \]
                              3. Recombined 2 regimes into one program.
                              4. Add Preprocessing

                              Alternative 20: 30.4% accurate, 5.4× speedup?

                              \[\begin{array}{l} \mathbf{if}\;y \leq -0.43:\\ \;\;\;\;\frac{z}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{t}{i}\\ \end{array} \]
                              (FPCore (x y z t a b c i)
                                :precision binary64
                                (if (<= y -0.43) (/ z a) (/ t i)))
                              double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                              	double tmp;
                              	if (y <= -0.43) {
                              		tmp = z / a;
                              	} else {
                              		tmp = t / i;
                              	}
                              	return tmp;
                              }
                              
                              module fmin_fmax_functions
                                  implicit none
                                  private
                                  public fmax
                                  public fmin
                              
                                  interface fmax
                                      module procedure fmax88
                                      module procedure fmax44
                                      module procedure fmax84
                                      module procedure fmax48
                                  end interface
                                  interface fmin
                                      module procedure fmin88
                                      module procedure fmin44
                                      module procedure fmin84
                                      module procedure fmin48
                                  end interface
                              contains
                                  real(8) function fmax88(x, y) result (res)
                                      real(8), intent (in) :: x
                                      real(8), intent (in) :: y
                                      res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                  end function
                                  real(4) function fmax44(x, y) result (res)
                                      real(4), intent (in) :: x
                                      real(4), intent (in) :: y
                                      res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                  end function
                                  real(8) function fmax84(x, y) result(res)
                                      real(8), intent (in) :: x
                                      real(4), intent (in) :: y
                                      res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                  end function
                                  real(8) function fmax48(x, y) result(res)
                                      real(4), intent (in) :: x
                                      real(8), intent (in) :: y
                                      res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                  end function
                                  real(8) function fmin88(x, y) result (res)
                                      real(8), intent (in) :: x
                                      real(8), intent (in) :: y
                                      res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                  end function
                                  real(4) function fmin44(x, y) result (res)
                                      real(4), intent (in) :: x
                                      real(4), intent (in) :: y
                                      res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                  end function
                                  real(8) function fmin84(x, y) result(res)
                                      real(8), intent (in) :: x
                                      real(4), intent (in) :: y
                                      res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                  end function
                                  real(8) function fmin48(x, y) result(res)
                                      real(4), intent (in) :: x
                                      real(8), intent (in) :: y
                                      res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                  end function
                              end module
                              
                              real(8) function code(x, y, z, t, a, b, c, i)
                              use fmin_fmax_functions
                                  real(8), intent (in) :: x
                                  real(8), intent (in) :: y
                                  real(8), intent (in) :: z
                                  real(8), intent (in) :: t
                                  real(8), intent (in) :: a
                                  real(8), intent (in) :: b
                                  real(8), intent (in) :: c
                                  real(8), intent (in) :: i
                                  real(8) :: tmp
                                  if (y <= (-0.43d0)) then
                                      tmp = z / a
                                  else
                                      tmp = t / i
                                  end if
                                  code = tmp
                              end function
                              
                              public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                              	double tmp;
                              	if (y <= -0.43) {
                              		tmp = z / a;
                              	} else {
                              		tmp = t / i;
                              	}
                              	return tmp;
                              }
                              
                              def code(x, y, z, t, a, b, c, i):
                              	tmp = 0
                              	if y <= -0.43:
                              		tmp = z / a
                              	else:
                              		tmp = t / i
                              	return tmp
                              
                              function code(x, y, z, t, a, b, c, i)
                              	tmp = 0.0
                              	if (y <= -0.43)
                              		tmp = Float64(z / a);
                              	else
                              		tmp = Float64(t / i);
                              	end
                              	return tmp
                              end
                              
                              function tmp_2 = code(x, y, z, t, a, b, c, i)
                              	tmp = 0.0;
                              	if (y <= -0.43)
                              		tmp = z / a;
                              	else
                              		tmp = t / i;
                              	end
                              	tmp_2 = tmp;
                              end
                              
                              code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -0.43], N[(z / a), $MachinePrecision], N[(t / i), $MachinePrecision]]
                              
                              \begin{array}{l}
                              \mathbf{if}\;y \leq -0.43:\\
                              \;\;\;\;\frac{z}{a}\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;\frac{t}{i}\\
                              
                              
                              \end{array}
                              
                              Derivation
                              1. Split input into 2 regimes
                              2. if y < -0.42999999999999999

                                1. Initial program 55.9%

                                  \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                2. Taylor expanded in a around inf

                                  \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
                                3. Step-by-step derivation
                                  1. lower-/.f64N/A

                                    \[\leadsto \frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{\color{blue}{a \cdot {y}^{3}}} \]
                                4. Applied rewrites6.1%

                                  \[\leadsto \color{blue}{\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
                                5. Taylor expanded in z around inf

                                  \[\leadsto \frac{z}{\color{blue}{a}} \]
                                6. Step-by-step derivation
                                  1. lower-/.f647.8%

                                    \[\leadsto \frac{z}{a} \]
                                7. Applied rewrites7.8%

                                  \[\leadsto \frac{z}{\color{blue}{a}} \]

                                if -0.42999999999999999 < y

                                1. Initial program 55.9%

                                  \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                                2. Taylor expanded in y around 0

                                  \[\leadsto \color{blue}{\frac{t}{i}} \]
                                3. Step-by-step derivation
                                  1. lower-/.f6429.0%

                                    \[\leadsto \frac{t}{\color{blue}{i}} \]
                                4. Applied rewrites29.0%

                                  \[\leadsto \color{blue}{\frac{t}{i}} \]
                              3. Recombined 2 regimes into one program.
                              4. Add Preprocessing

                              Alternative 21: 7.8% accurate, 9.7× speedup?

                              \[\frac{z}{a} \]
                              (FPCore (x y z t a b c i)
                                :precision binary64
                                (/ z a))
                              double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                              	return z / a;
                              }
                              
                              module fmin_fmax_functions
                                  implicit none
                                  private
                                  public fmax
                                  public fmin
                              
                                  interface fmax
                                      module procedure fmax88
                                      module procedure fmax44
                                      module procedure fmax84
                                      module procedure fmax48
                                  end interface
                                  interface fmin
                                      module procedure fmin88
                                      module procedure fmin44
                                      module procedure fmin84
                                      module procedure fmin48
                                  end interface
                              contains
                                  real(8) function fmax88(x, y) result (res)
                                      real(8), intent (in) :: x
                                      real(8), intent (in) :: y
                                      res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                  end function
                                  real(4) function fmax44(x, y) result (res)
                                      real(4), intent (in) :: x
                                      real(4), intent (in) :: y
                                      res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                  end function
                                  real(8) function fmax84(x, y) result(res)
                                      real(8), intent (in) :: x
                                      real(4), intent (in) :: y
                                      res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                  end function
                                  real(8) function fmax48(x, y) result(res)
                                      real(4), intent (in) :: x
                                      real(8), intent (in) :: y
                                      res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                  end function
                                  real(8) function fmin88(x, y) result (res)
                                      real(8), intent (in) :: x
                                      real(8), intent (in) :: y
                                      res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                  end function
                                  real(4) function fmin44(x, y) result (res)
                                      real(4), intent (in) :: x
                                      real(4), intent (in) :: y
                                      res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                  end function
                                  real(8) function fmin84(x, y) result(res)
                                      real(8), intent (in) :: x
                                      real(4), intent (in) :: y
                                      res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                  end function
                                  real(8) function fmin48(x, y) result(res)
                                      real(4), intent (in) :: x
                                      real(8), intent (in) :: y
                                      res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                  end function
                              end module
                              
                              real(8) function code(x, y, z, t, a, b, c, i)
                              use fmin_fmax_functions
                                  real(8), intent (in) :: x
                                  real(8), intent (in) :: y
                                  real(8), intent (in) :: z
                                  real(8), intent (in) :: t
                                  real(8), intent (in) :: a
                                  real(8), intent (in) :: b
                                  real(8), intent (in) :: c
                                  real(8), intent (in) :: i
                                  code = z / a
                              end function
                              
                              public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                              	return z / a;
                              }
                              
                              def code(x, y, z, t, a, b, c, i):
                              	return z / a
                              
                              function code(x, y, z, t, a, b, c, i)
                              	return Float64(z / a)
                              end
                              
                              function tmp = code(x, y, z, t, a, b, c, i)
                              	tmp = z / a;
                              end
                              
                              code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(z / a), $MachinePrecision]
                              
                              \frac{z}{a}
                              
                              Derivation
                              1. Initial program 55.9%

                                \[\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i} \]
                              2. Taylor expanded in a around inf

                                \[\leadsto \color{blue}{\frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
                              3. Step-by-step derivation
                                1. lower-/.f64N/A

                                  \[\leadsto \frac{t + y \cdot \left(\frac{28832688827}{125000} + y \cdot \left(\frac{54929528941}{2000000} + y \cdot \left(z + x \cdot y\right)\right)\right)}{\color{blue}{a \cdot {y}^{3}}} \]
                              4. Applied rewrites6.1%

                                \[\leadsto \color{blue}{\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right)\right)}{a \cdot {y}^{3}}} \]
                              5. Taylor expanded in z around inf

                                \[\leadsto \frac{z}{\color{blue}{a}} \]
                              6. Step-by-step derivation
                                1. lower-/.f647.8%

                                  \[\leadsto \frac{z}{a} \]
                              7. Applied rewrites7.8%

                                \[\leadsto \frac{z}{\color{blue}{a}} \]
                              8. Add Preprocessing

                              Reproduce

                              ?
                              herbie shell --seed 2025212 
                              (FPCore (x y z t a b c i)
                                :name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2"
                                :precision binary64
                                (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))