Diagrams.Solve.Tridiagonal:solveCyclicTriDiagonal from diagrams-solve-0.1, B

Percentage Accurate: 75.3% → 87.8%
Time: 5.1s
Alternatives: 14
Speedup: 0.3×

Specification

?
\[\begin{array}{l} \\ \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))
double code(double x, double y, double z, double t, double a, double b) {
	return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
}
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)
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
    code = (x + ((y * z) / t)) / ((a + 1.0d0) + ((y * b) / t))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
}
def code(x, y, z, t, a, b):
	return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t))
function code(x, y, z, t, a, b)
	return Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t)))
end
function tmp = code(x, y, z, t, a, b)
	tmp = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}
\end{array}

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 14 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: 75.3% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))
double code(double x, double y, double z, double t, double a, double b) {
	return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
}
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)
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
    code = (x + ((y * z) / t)) / ((a + 1.0d0) + ((y * b) / t))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
}
def code(x, y, z, t, a, b):
	return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t))
function code(x, y, z, t, a, b)
	return Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t)))
end
function tmp = code(x, y, z, t, a, b)
	tmp = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}
\end{array}

Alternative 1: 87.8% accurate, 0.3× speedup?

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

\\
\begin{array}{l}
t_1 := x + \frac{y \cdot z}{t}\\
t_2 := \frac{t\_1}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;\frac{y \cdot z}{t \cdot \left(1 + \left(a + \frac{b \cdot y}{t}\right)\right)}\\

\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+304}:\\
\;\;\;\;\frac{t\_1}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}\\

\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\


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

    1. Initial program 33.1%

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

      \[\leadsto \color{blue}{\frac{z}{b}} \]
    3. Step-by-step derivation
      1. lower-/.f6457.2

        \[\leadsto \frac{z}{\color{blue}{b}} \]
    4. Applied rewrites57.2%

      \[\leadsto \color{blue}{\frac{z}{b}} \]
    5. Taylor expanded in x around 0

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

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

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

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

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

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

        \[\leadsto \frac{y \cdot z}{t \cdot \left(1 + \left(a + \frac{b \cdot y}{\color{blue}{t}}\right)\right)} \]
      7. lower-*.f6459.0

        \[\leadsto \frac{y \cdot z}{t \cdot \left(1 + \left(a + \frac{b \cdot y}{t}\right)\right)} \]
    7. Applied rewrites59.0%

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

    if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 4.9999999999999997e304

    1. Initial program 90.3%

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

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

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

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

        \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\left(1 + a\right) + \frac{\color{blue}{y \cdot b}}{t}} \]
      5. lift-/.f64N/A

        \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\left(1 + a\right) + \color{blue}{\frac{y \cdot b}{t}}} \]
      6. +-commutativeN/A

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

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

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

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

        \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\mathsf{fma}\left(b, \color{blue}{\frac{y}{t}}, 1 + a\right)} \]
      11. lower-+.f6491.2

        \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\mathsf{fma}\left(b, \frac{y}{t}, \color{blue}{1 + a}\right)} \]
    3. Applied rewrites91.2%

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

    if 4.9999999999999997e304 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t)))

    1. Initial program 12.2%

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

      \[\leadsto \color{blue}{\frac{z}{b}} \]
    3. Step-by-step derivation
      1. lower-/.f6481.1

        \[\leadsto \frac{z}{\color{blue}{b}} \]
    4. Applied rewrites81.1%

      \[\leadsto \color{blue}{\frac{z}{b}} \]
  3. Recombined 3 regimes into one program.
  4. Add Preprocessing

Alternative 2: 69.0% accurate, 0.7× speedup?

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

\\
\begin{array}{l}
t_1 := x + \frac{y \cdot z}{t}\\
\mathbf{if}\;a \leq -9.5 \cdot 10^{+104}:\\
\;\;\;\;\frac{t\_1}{\mathsf{fma}\left(b, \frac{y}{t}, a\right)}\\

\mathbf{elif}\;a \leq -8 \cdot 10^{-73}:\\
\;\;\;\;\frac{z + \frac{t \cdot x}{y}}{b}\\

\mathbf{elif}\;a \leq 1.15 \cdot 10^{-25}:\\
\;\;\;\;\frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\mathsf{fma}\left(b, \frac{y}{t}, 1\right)}\\

\mathbf{else}:\\
\;\;\;\;\frac{t\_1}{a + \frac{y \cdot b}{t}}\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if a < -9.5e104

    1. Initial program 74.8%

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

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

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

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

        \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\left(1 + a\right) + \frac{\color{blue}{y \cdot b}}{t}} \]
      5. lift-/.f64N/A

        \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\left(1 + a\right) + \color{blue}{\frac{y \cdot b}{t}}} \]
      6. +-commutativeN/A

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

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

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

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

        \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\mathsf{fma}\left(b, \color{blue}{\frac{y}{t}}, 1 + a\right)} \]
      11. lower-+.f6475.0

        \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\mathsf{fma}\left(b, \frac{y}{t}, \color{blue}{1 + a}\right)} \]
    3. Applied rewrites75.0%

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

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

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

      if -9.5e104 < a < -7.99999999999999998e-73

      1. Initial program 77.2%

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

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

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

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

          \[\leadsto \frac{x + \color{blue}{\frac{y \cdot z}{t}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
        5. lift-+.f64N/A

          \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\color{blue}{\left(a + 1\right) + \frac{y \cdot b}{t}}} \]
        6. lift-+.f64N/A

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

          \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{\color{blue}{y \cdot b}}{t}} \]
        8. lift-/.f64N/A

          \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \color{blue}{\frac{y \cdot b}{t}}} \]
        9. div-addN/A

          \[\leadsto \color{blue}{\frac{x}{\left(a + 1\right) + \frac{y \cdot b}{t}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}} \]
        10. +-commutativeN/A

          \[\leadsto \frac{x}{\color{blue}{\left(1 + a\right)} + \frac{y \cdot b}{t}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
        11. *-commutativeN/A

          \[\leadsto \frac{x}{\left(1 + a\right) + \frac{\color{blue}{b \cdot y}}{t}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
        12. associate-+r+N/A

          \[\leadsto \frac{x}{\color{blue}{1 + \left(a + \frac{b \cdot y}{t}\right)}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
        13. +-commutativeN/A

          \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} + \frac{\frac{y \cdot z}{t}}{\color{blue}{\left(1 + a\right)} + \frac{y \cdot b}{t}} \]
        14. *-commutativeN/A

          \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} + \frac{\frac{y \cdot z}{t}}{\left(1 + a\right) + \frac{\color{blue}{b \cdot y}}{t}} \]
        15. associate-+r+N/A

          \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} + \frac{\frac{y \cdot z}{t}}{\color{blue}{1 + \left(a + \frac{b \cdot y}{t}\right)}} \]
      3. Applied rewrites79.5%

        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y}{t}, \frac{z}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}, \frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}\right)} \]
      4. Taylor expanded in b around inf

        \[\leadsto \color{blue}{\frac{z + \frac{t \cdot x}{y}}{b}} \]
      5. Step-by-step derivation
        1. lower-/.f64N/A

          \[\leadsto \frac{z + \frac{t \cdot x}{y}}{\color{blue}{b}} \]
        2. lower-+.f64N/A

          \[\leadsto \frac{z + \frac{t \cdot x}{y}}{b} \]
        3. lower-/.f64N/A

          \[\leadsto \frac{z + \frac{t \cdot x}{y}}{b} \]
        4. lower-*.f6444.8

          \[\leadsto \frac{z + \frac{t \cdot x}{y}}{b} \]
      6. Applied rewrites44.8%

        \[\leadsto \color{blue}{\frac{z + \frac{t \cdot x}{y}}{b}} \]

      if -7.99999999999999998e-73 < a < 1.15e-25

      1. Initial program 75.5%

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

        \[\leadsto \color{blue}{\frac{x + \frac{y \cdot z}{t}}{1 + \frac{b \cdot y}{t}}} \]
      3. Step-by-step derivation
        1. lower-/.f64N/A

          \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\color{blue}{1 + \frac{b \cdot y}{t}}} \]
        2. +-commutativeN/A

          \[\leadsto \frac{\frac{y \cdot z}{t} + x}{\color{blue}{1} + \frac{b \cdot y}{t}} \]
        3. associate-/l*N/A

          \[\leadsto \frac{y \cdot \frac{z}{t} + x}{1 + \frac{b \cdot y}{t}} \]
        4. lower-fma.f64N/A

          \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\color{blue}{1} + \frac{b \cdot y}{t}} \]
        5. lower-/.f64N/A

          \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{1 + \frac{b \cdot y}{t}} \]
        6. +-commutativeN/A

          \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\frac{b \cdot y}{t} + \color{blue}{1}} \]
        7. associate-/l*N/A

          \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{b \cdot \frac{y}{t} + 1} \]
        8. lower-fma.f64N/A

          \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\mathsf{fma}\left(b, \color{blue}{\frac{y}{t}}, 1\right)} \]
        9. lower-/.f6474.2

          \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\mathsf{fma}\left(b, \frac{y}{\color{blue}{t}}, 1\right)} \]
      4. Applied rewrites74.2%

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

      if 1.15e-25 < a

      1. Initial program 74.1%

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

        \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\color{blue}{a} + \frac{y \cdot b}{t}} \]
      3. Step-by-step derivation
        1. Applied rewrites70.3%

          \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\color{blue}{a} + \frac{y \cdot b}{t}} \]
      4. Recombined 4 regimes into one program.
      5. Add Preprocessing

      Alternative 3: 68.9% accurate, 0.8× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x + \frac{y \cdot z}{t}}{\mathsf{fma}\left(b, \frac{y}{t}, a\right)}\\ \mathbf{if}\;a \leq -9.5 \cdot 10^{+104}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -8 \cdot 10^{-73}:\\ \;\;\;\;\frac{z + \frac{t \cdot x}{y}}{b}\\ \mathbf{elif}\;a \leq 1.15 \cdot 10^{-25}:\\ \;\;\;\;\frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\mathsf{fma}\left(b, \frac{y}{t}, 1\right)}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
      (FPCore (x y z t a b)
       :precision binary64
       (let* ((t_1 (/ (+ x (/ (* y z) t)) (fma b (/ y t) a))))
         (if (<= a -9.5e+104)
           t_1
           (if (<= a -8e-73)
             (/ (+ z (/ (* t x) y)) b)
             (if (<= a 1.15e-25) (/ (fma y (/ z t) x) (fma b (/ y t) 1.0)) t_1)))))
      double code(double x, double y, double z, double t, double a, double b) {
      	double t_1 = (x + ((y * z) / t)) / fma(b, (y / t), a);
      	double tmp;
      	if (a <= -9.5e+104) {
      		tmp = t_1;
      	} else if (a <= -8e-73) {
      		tmp = (z + ((t * x) / y)) / b;
      	} else if (a <= 1.15e-25) {
      		tmp = fma(y, (z / t), x) / fma(b, (y / t), 1.0);
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a, b)
      	t_1 = Float64(Float64(x + Float64(Float64(y * z) / t)) / fma(b, Float64(y / t), a))
      	tmp = 0.0
      	if (a <= -9.5e+104)
      		tmp = t_1;
      	elseif (a <= -8e-73)
      		tmp = Float64(Float64(z + Float64(Float64(t * x) / y)) / b);
      	elseif (a <= 1.15e-25)
      		tmp = Float64(fma(y, Float64(z / t), x) / fma(b, Float64(y / t), 1.0));
      	else
      		tmp = t_1;
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(b * N[(y / t), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9.5e+104], t$95$1, If[LessEqual[a, -8e-73], N[(N[(z + N[(N[(t * x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], If[LessEqual[a, 1.15e-25], N[(N[(y * N[(z / t), $MachinePrecision] + x), $MachinePrecision] / N[(b * N[(y / t), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \frac{x + \frac{y \cdot z}{t}}{\mathsf{fma}\left(b, \frac{y}{t}, a\right)}\\
      \mathbf{if}\;a \leq -9.5 \cdot 10^{+104}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;a \leq -8 \cdot 10^{-73}:\\
      \;\;\;\;\frac{z + \frac{t \cdot x}{y}}{b}\\
      
      \mathbf{elif}\;a \leq 1.15 \cdot 10^{-25}:\\
      \;\;\;\;\frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\mathsf{fma}\left(b, \frac{y}{t}, 1\right)}\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if a < -9.5e104 or 1.15e-25 < a

        1. Initial program 74.4%

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

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

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

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

            \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\left(1 + a\right) + \frac{\color{blue}{y \cdot b}}{t}} \]
          5. lift-/.f64N/A

            \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\left(1 + a\right) + \color{blue}{\frac{y \cdot b}{t}}} \]
          6. +-commutativeN/A

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

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

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

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

            \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\mathsf{fma}\left(b, \color{blue}{\frac{y}{t}}, 1 + a\right)} \]
          11. lower-+.f6474.2

            \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\mathsf{fma}\left(b, \frac{y}{t}, \color{blue}{1 + a}\right)} \]
        3. Applied rewrites74.2%

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

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

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

          if -9.5e104 < a < -7.99999999999999998e-73

          1. Initial program 77.2%

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

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

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

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

              \[\leadsto \frac{x + \color{blue}{\frac{y \cdot z}{t}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
            5. lift-+.f64N/A

              \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\color{blue}{\left(a + 1\right) + \frac{y \cdot b}{t}}} \]
            6. lift-+.f64N/A

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

              \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{\color{blue}{y \cdot b}}{t}} \]
            8. lift-/.f64N/A

              \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \color{blue}{\frac{y \cdot b}{t}}} \]
            9. div-addN/A

              \[\leadsto \color{blue}{\frac{x}{\left(a + 1\right) + \frac{y \cdot b}{t}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}} \]
            10. +-commutativeN/A

              \[\leadsto \frac{x}{\color{blue}{\left(1 + a\right)} + \frac{y \cdot b}{t}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
            11. *-commutativeN/A

              \[\leadsto \frac{x}{\left(1 + a\right) + \frac{\color{blue}{b \cdot y}}{t}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
            12. associate-+r+N/A

              \[\leadsto \frac{x}{\color{blue}{1 + \left(a + \frac{b \cdot y}{t}\right)}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
            13. +-commutativeN/A

              \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} + \frac{\frac{y \cdot z}{t}}{\color{blue}{\left(1 + a\right)} + \frac{y \cdot b}{t}} \]
            14. *-commutativeN/A

              \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} + \frac{\frac{y \cdot z}{t}}{\left(1 + a\right) + \frac{\color{blue}{b \cdot y}}{t}} \]
            15. associate-+r+N/A

              \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} + \frac{\frac{y \cdot z}{t}}{\color{blue}{1 + \left(a + \frac{b \cdot y}{t}\right)}} \]
          3. Applied rewrites79.5%

            \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y}{t}, \frac{z}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}, \frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}\right)} \]
          4. Taylor expanded in b around inf

            \[\leadsto \color{blue}{\frac{z + \frac{t \cdot x}{y}}{b}} \]
          5. Step-by-step derivation
            1. lower-/.f64N/A

              \[\leadsto \frac{z + \frac{t \cdot x}{y}}{\color{blue}{b}} \]
            2. lower-+.f64N/A

              \[\leadsto \frac{z + \frac{t \cdot x}{y}}{b} \]
            3. lower-/.f64N/A

              \[\leadsto \frac{z + \frac{t \cdot x}{y}}{b} \]
            4. lower-*.f6444.8

              \[\leadsto \frac{z + \frac{t \cdot x}{y}}{b} \]
          6. Applied rewrites44.8%

            \[\leadsto \color{blue}{\frac{z + \frac{t \cdot x}{y}}{b}} \]

          if -7.99999999999999998e-73 < a < 1.15e-25

          1. Initial program 75.5%

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

            \[\leadsto \color{blue}{\frac{x + \frac{y \cdot z}{t}}{1 + \frac{b \cdot y}{t}}} \]
          3. Step-by-step derivation
            1. lower-/.f64N/A

              \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\color{blue}{1 + \frac{b \cdot y}{t}}} \]
            2. +-commutativeN/A

              \[\leadsto \frac{\frac{y \cdot z}{t} + x}{\color{blue}{1} + \frac{b \cdot y}{t}} \]
            3. associate-/l*N/A

              \[\leadsto \frac{y \cdot \frac{z}{t} + x}{1 + \frac{b \cdot y}{t}} \]
            4. lower-fma.f64N/A

              \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\color{blue}{1} + \frac{b \cdot y}{t}} \]
            5. lower-/.f64N/A

              \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{1 + \frac{b \cdot y}{t}} \]
            6. +-commutativeN/A

              \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\frac{b \cdot y}{t} + \color{blue}{1}} \]
            7. associate-/l*N/A

              \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{b \cdot \frac{y}{t} + 1} \]
            8. lower-fma.f64N/A

              \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\mathsf{fma}\left(b, \color{blue}{\frac{y}{t}}, 1\right)} \]
            9. lower-/.f6474.2

              \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\mathsf{fma}\left(b, \frac{y}{\color{blue}{t}}, 1\right)} \]
          4. Applied rewrites74.2%

            \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\mathsf{fma}\left(b, \frac{y}{t}, 1\right)}} \]
        6. Recombined 3 regimes into one program.
        7. Add Preprocessing

        Alternative 4: 67.6% accurate, 0.8× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x + \frac{y \cdot z}{t}}{a}\\ \mathbf{if}\;a \leq -9.5 \cdot 10^{+104}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -8 \cdot 10^{-73}:\\ \;\;\;\;\frac{z + \frac{t \cdot x}{y}}{b}\\ \mathbf{elif}\;a \leq 1.6 \cdot 10^{+30}:\\ \;\;\;\;\frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\mathsf{fma}\left(b, \frac{y}{t}, 1\right)}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
        (FPCore (x y z t a b)
         :precision binary64
         (let* ((t_1 (/ (+ x (/ (* y z) t)) a)))
           (if (<= a -9.5e+104)
             t_1
             (if (<= a -8e-73)
               (/ (+ z (/ (* t x) y)) b)
               (if (<= a 1.6e+30) (/ (fma y (/ z t) x) (fma b (/ y t) 1.0)) t_1)))))
        double code(double x, double y, double z, double t, double a, double b) {
        	double t_1 = (x + ((y * z) / t)) / a;
        	double tmp;
        	if (a <= -9.5e+104) {
        		tmp = t_1;
        	} else if (a <= -8e-73) {
        		tmp = (z + ((t * x) / y)) / b;
        	} else if (a <= 1.6e+30) {
        		tmp = fma(y, (z / t), x) / fma(b, (y / t), 1.0);
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        function code(x, y, z, t, a, b)
        	t_1 = Float64(Float64(x + Float64(Float64(y * z) / t)) / a)
        	tmp = 0.0
        	if (a <= -9.5e+104)
        		tmp = t_1;
        	elseif (a <= -8e-73)
        		tmp = Float64(Float64(z + Float64(Float64(t * x) / y)) / b);
        	elseif (a <= 1.6e+30)
        		tmp = Float64(fma(y, Float64(z / t), x) / fma(b, Float64(y / t), 1.0));
        	else
        		tmp = t_1;
        	end
        	return tmp
        end
        
        code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]}, If[LessEqual[a, -9.5e+104], t$95$1, If[LessEqual[a, -8e-73], N[(N[(z + N[(N[(t * x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], If[LessEqual[a, 1.6e+30], N[(N[(y * N[(z / t), $MachinePrecision] + x), $MachinePrecision] / N[(b * N[(y / t), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := \frac{x + \frac{y \cdot z}{t}}{a}\\
        \mathbf{if}\;a \leq -9.5 \cdot 10^{+104}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;a \leq -8 \cdot 10^{-73}:\\
        \;\;\;\;\frac{z + \frac{t \cdot x}{y}}{b}\\
        
        \mathbf{elif}\;a \leq 1.6 \cdot 10^{+30}:\\
        \;\;\;\;\frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\mathsf{fma}\left(b, \frac{y}{t}, 1\right)}\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if a < -9.5e104 or 1.59999999999999986e30 < a

          1. Initial program 74.4%

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

            \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\color{blue}{a}} \]
          3. Step-by-step derivation
            1. Applied rewrites65.2%

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

            if -9.5e104 < a < -7.99999999999999998e-73

            1. Initial program 77.2%

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

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

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

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

                \[\leadsto \frac{x + \color{blue}{\frac{y \cdot z}{t}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
              5. lift-+.f64N/A

                \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\color{blue}{\left(a + 1\right) + \frac{y \cdot b}{t}}} \]
              6. lift-+.f64N/A

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

                \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{\color{blue}{y \cdot b}}{t}} \]
              8. lift-/.f64N/A

                \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \color{blue}{\frac{y \cdot b}{t}}} \]
              9. div-addN/A

                \[\leadsto \color{blue}{\frac{x}{\left(a + 1\right) + \frac{y \cdot b}{t}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}} \]
              10. +-commutativeN/A

                \[\leadsto \frac{x}{\color{blue}{\left(1 + a\right)} + \frac{y \cdot b}{t}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
              11. *-commutativeN/A

                \[\leadsto \frac{x}{\left(1 + a\right) + \frac{\color{blue}{b \cdot y}}{t}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
              12. associate-+r+N/A

                \[\leadsto \frac{x}{\color{blue}{1 + \left(a + \frac{b \cdot y}{t}\right)}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
              13. +-commutativeN/A

                \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} + \frac{\frac{y \cdot z}{t}}{\color{blue}{\left(1 + a\right)} + \frac{y \cdot b}{t}} \]
              14. *-commutativeN/A

                \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} + \frac{\frac{y \cdot z}{t}}{\left(1 + a\right) + \frac{\color{blue}{b \cdot y}}{t}} \]
              15. associate-+r+N/A

                \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} + \frac{\frac{y \cdot z}{t}}{\color{blue}{1 + \left(a + \frac{b \cdot y}{t}\right)}} \]
            3. Applied rewrites79.5%

              \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y}{t}, \frac{z}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}, \frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}\right)} \]
            4. Taylor expanded in b around inf

              \[\leadsto \color{blue}{\frac{z + \frac{t \cdot x}{y}}{b}} \]
            5. Step-by-step derivation
              1. lower-/.f64N/A

                \[\leadsto \frac{z + \frac{t \cdot x}{y}}{\color{blue}{b}} \]
              2. lower-+.f64N/A

                \[\leadsto \frac{z + \frac{t \cdot x}{y}}{b} \]
              3. lower-/.f64N/A

                \[\leadsto \frac{z + \frac{t \cdot x}{y}}{b} \]
              4. lower-*.f6444.8

                \[\leadsto \frac{z + \frac{t \cdot x}{y}}{b} \]
            6. Applied rewrites44.8%

              \[\leadsto \color{blue}{\frac{z + \frac{t \cdot x}{y}}{b}} \]

            if -7.99999999999999998e-73 < a < 1.59999999999999986e30

            1. Initial program 75.3%

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

              \[\leadsto \color{blue}{\frac{x + \frac{y \cdot z}{t}}{1 + \frac{b \cdot y}{t}}} \]
            3. Step-by-step derivation
              1. lower-/.f64N/A

                \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\color{blue}{1 + \frac{b \cdot y}{t}}} \]
              2. +-commutativeN/A

                \[\leadsto \frac{\frac{y \cdot z}{t} + x}{\color{blue}{1} + \frac{b \cdot y}{t}} \]
              3. associate-/l*N/A

                \[\leadsto \frac{y \cdot \frac{z}{t} + x}{1 + \frac{b \cdot y}{t}} \]
              4. lower-fma.f64N/A

                \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\color{blue}{1} + \frac{b \cdot y}{t}} \]
              5. lower-/.f64N/A

                \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{1 + \frac{b \cdot y}{t}} \]
              6. +-commutativeN/A

                \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\frac{b \cdot y}{t} + \color{blue}{1}} \]
              7. associate-/l*N/A

                \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{b \cdot \frac{y}{t} + 1} \]
              8. lower-fma.f64N/A

                \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\mathsf{fma}\left(b, \color{blue}{\frac{y}{t}}, 1\right)} \]
              9. lower-/.f6471.5

                \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\mathsf{fma}\left(b, \frac{y}{\color{blue}{t}}, 1\right)} \]
            4. Applied rewrites71.5%

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

          Alternative 5: 65.5% accurate, 1.1× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -6.6 \cdot 10^{-13}:\\ \;\;\;\;\frac{z + \frac{t \cdot x}{y}}{b}\\ \mathbf{elif}\;b \leq 2.1 \cdot 10^{-19}:\\ \;\;\;\;\frac{x + \frac{y \cdot z}{t}}{1 + a}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}\\ \end{array} \end{array} \]
          (FPCore (x y z t a b)
           :precision binary64
           (if (<= b -6.6e-13)
             (/ (+ z (/ (* t x) y)) b)
             (if (<= b 2.1e-19)
               (/ (+ x (/ (* y z) t)) (+ 1.0 a))
               (/ x (fma b (/ y t) (+ 1.0 a))))))
          double code(double x, double y, double z, double t, double a, double b) {
          	double tmp;
          	if (b <= -6.6e-13) {
          		tmp = (z + ((t * x) / y)) / b;
          	} else if (b <= 2.1e-19) {
          		tmp = (x + ((y * z) / t)) / (1.0 + a);
          	} else {
          		tmp = x / fma(b, (y / t), (1.0 + a));
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a, b)
          	tmp = 0.0
          	if (b <= -6.6e-13)
          		tmp = Float64(Float64(z + Float64(Float64(t * x) / y)) / b);
          	elseif (b <= 2.1e-19)
          		tmp = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(1.0 + a));
          	else
          		tmp = Float64(x / fma(b, Float64(y / t), Float64(1.0 + a)));
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -6.6e-13], N[(N[(z + N[(N[(t * x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], If[LessEqual[b, 2.1e-19], N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(1.0 + a), $MachinePrecision]), $MachinePrecision], N[(x / N[(b * N[(y / t), $MachinePrecision] + N[(1.0 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;b \leq -6.6 \cdot 10^{-13}:\\
          \;\;\;\;\frac{z + \frac{t \cdot x}{y}}{b}\\
          
          \mathbf{elif}\;b \leq 2.1 \cdot 10^{-19}:\\
          \;\;\;\;\frac{x + \frac{y \cdot z}{t}}{1 + a}\\
          
          \mathbf{else}:\\
          \;\;\;\;\frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if b < -6.6000000000000001e-13

            1. Initial program 65.8%

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

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

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

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

                \[\leadsto \frac{x + \color{blue}{\frac{y \cdot z}{t}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
              5. lift-+.f64N/A

                \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\color{blue}{\left(a + 1\right) + \frac{y \cdot b}{t}}} \]
              6. lift-+.f64N/A

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

                \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{\color{blue}{y \cdot b}}{t}} \]
              8. lift-/.f64N/A

                \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \color{blue}{\frac{y \cdot b}{t}}} \]
              9. div-addN/A

                \[\leadsto \color{blue}{\frac{x}{\left(a + 1\right) + \frac{y \cdot b}{t}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}} \]
              10. +-commutativeN/A

                \[\leadsto \frac{x}{\color{blue}{\left(1 + a\right)} + \frac{y \cdot b}{t}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
              11. *-commutativeN/A

                \[\leadsto \frac{x}{\left(1 + a\right) + \frac{\color{blue}{b \cdot y}}{t}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
              12. associate-+r+N/A

                \[\leadsto \frac{x}{\color{blue}{1 + \left(a + \frac{b \cdot y}{t}\right)}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
              13. +-commutativeN/A

                \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} + \frac{\frac{y \cdot z}{t}}{\color{blue}{\left(1 + a\right)} + \frac{y \cdot b}{t}} \]
              14. *-commutativeN/A

                \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} + \frac{\frac{y \cdot z}{t}}{\left(1 + a\right) + \frac{\color{blue}{b \cdot y}}{t}} \]
              15. associate-+r+N/A

                \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} + \frac{\frac{y \cdot z}{t}}{\color{blue}{1 + \left(a + \frac{b \cdot y}{t}\right)}} \]
            3. Applied rewrites73.3%

              \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y}{t}, \frac{z}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}, \frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}\right)} \]
            4. Taylor expanded in b around inf

              \[\leadsto \color{blue}{\frac{z + \frac{t \cdot x}{y}}{b}} \]
            5. Step-by-step derivation
              1. lower-/.f64N/A

                \[\leadsto \frac{z + \frac{t \cdot x}{y}}{\color{blue}{b}} \]
              2. lower-+.f64N/A

                \[\leadsto \frac{z + \frac{t \cdot x}{y}}{b} \]
              3. lower-/.f64N/A

                \[\leadsto \frac{z + \frac{t \cdot x}{y}}{b} \]
              4. lower-*.f6457.2

                \[\leadsto \frac{z + \frac{t \cdot x}{y}}{b} \]
            6. Applied rewrites57.2%

              \[\leadsto \color{blue}{\frac{z + \frac{t \cdot x}{y}}{b}} \]

            if -6.6000000000000001e-13 < b < 2.0999999999999999e-19

            1. Initial program 85.1%

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

              \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\color{blue}{1 + a}} \]
            3. Step-by-step derivation
              1. lower-+.f6474.1

                \[\leadsto \frac{x + \frac{y \cdot z}{t}}{1 + \color{blue}{a}} \]
            4. Applied rewrites74.1%

              \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\color{blue}{1 + a}} \]

            if 2.0999999999999999e-19 < b

            1. Initial program 66.4%

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

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

                \[\leadsto \frac{x}{\color{blue}{1 + \left(a + \frac{b \cdot y}{t}\right)}} \]
              2. associate-+r+N/A

                \[\leadsto \frac{x}{\left(1 + a\right) + \color{blue}{\frac{b \cdot y}{t}}} \]
              3. *-commutativeN/A

                \[\leadsto \frac{x}{\left(1 + a\right) + \frac{y \cdot b}{t}} \]
              4. +-commutativeN/A

                \[\leadsto \frac{x}{\frac{y \cdot b}{t} + \color{blue}{\left(1 + a\right)}} \]
              5. *-commutativeN/A

                \[\leadsto \frac{x}{\frac{b \cdot y}{t} + \left(1 + a\right)} \]
              6. associate-/l*N/A

                \[\leadsto \frac{x}{b \cdot \frac{y}{t} + \left(\color{blue}{1} + a\right)} \]
              7. lower-fma.f64N/A

                \[\leadsto \frac{x}{\mathsf{fma}\left(b, \color{blue}{\frac{y}{t}}, 1 + a\right)} \]
              8. lower-/.f64N/A

                \[\leadsto \frac{x}{\mathsf{fma}\left(b, \frac{y}{\color{blue}{t}}, 1 + a\right)} \]
              9. lower-+.f6454.4

                \[\leadsto \frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)} \]
            4. Applied rewrites54.4%

              \[\leadsto \color{blue}{\frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}} \]
          3. Recombined 3 regimes into one program.
          4. Add Preprocessing

          Alternative 6: 65.2% accurate, 1.1× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -6 \cdot 10^{-61}:\\ \;\;\;\;\frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}\\ \mathbf{elif}\;t \leq 8.2 \cdot 10^{-110}:\\ \;\;\;\;\frac{z + \frac{t \cdot x}{y}}{b}\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{1 + a}\\ \end{array} \end{array} \]
          (FPCore (x y z t a b)
           :precision binary64
           (if (<= t -6e-61)
             (/ x (fma b (/ y t) (+ 1.0 a)))
             (if (<= t 8.2e-110)
               (/ (+ z (/ (* t x) y)) b)
               (/ (fma y (/ z t) x) (+ 1.0 a)))))
          double code(double x, double y, double z, double t, double a, double b) {
          	double tmp;
          	if (t <= -6e-61) {
          		tmp = x / fma(b, (y / t), (1.0 + a));
          	} else if (t <= 8.2e-110) {
          		tmp = (z + ((t * x) / y)) / b;
          	} else {
          		tmp = fma(y, (z / t), x) / (1.0 + a);
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a, b)
          	tmp = 0.0
          	if (t <= -6e-61)
          		tmp = Float64(x / fma(b, Float64(y / t), Float64(1.0 + a)));
          	elseif (t <= 8.2e-110)
          		tmp = Float64(Float64(z + Float64(Float64(t * x) / y)) / b);
          	else
          		tmp = Float64(fma(y, Float64(z / t), x) / Float64(1.0 + a));
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -6e-61], N[(x / N[(b * N[(y / t), $MachinePrecision] + N[(1.0 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.2e-110], N[(N[(z + N[(N[(t * x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], N[(N[(y * N[(z / t), $MachinePrecision] + x), $MachinePrecision] / N[(1.0 + a), $MachinePrecision]), $MachinePrecision]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;t \leq -6 \cdot 10^{-61}:\\
          \;\;\;\;\frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}\\
          
          \mathbf{elif}\;t \leq 8.2 \cdot 10^{-110}:\\
          \;\;\;\;\frac{z + \frac{t \cdot x}{y}}{b}\\
          
          \mathbf{else}:\\
          \;\;\;\;\frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{1 + a}\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if t < -6.00000000000000024e-61

            1. Initial program 83.9%

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

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

                \[\leadsto \frac{x}{\color{blue}{1 + \left(a + \frac{b \cdot y}{t}\right)}} \]
              2. associate-+r+N/A

                \[\leadsto \frac{x}{\left(1 + a\right) + \color{blue}{\frac{b \cdot y}{t}}} \]
              3. *-commutativeN/A

                \[\leadsto \frac{x}{\left(1 + a\right) + \frac{y \cdot b}{t}} \]
              4. +-commutativeN/A

                \[\leadsto \frac{x}{\frac{y \cdot b}{t} + \color{blue}{\left(1 + a\right)}} \]
              5. *-commutativeN/A

                \[\leadsto \frac{x}{\frac{b \cdot y}{t} + \left(1 + a\right)} \]
              6. associate-/l*N/A

                \[\leadsto \frac{x}{b \cdot \frac{y}{t} + \left(\color{blue}{1} + a\right)} \]
              7. lower-fma.f64N/A

                \[\leadsto \frac{x}{\mathsf{fma}\left(b, \color{blue}{\frac{y}{t}}, 1 + a\right)} \]
              8. lower-/.f64N/A

                \[\leadsto \frac{x}{\mathsf{fma}\left(b, \frac{y}{\color{blue}{t}}, 1 + a\right)} \]
              9. lower-+.f6466.0

                \[\leadsto \frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)} \]
            4. Applied rewrites66.0%

              \[\leadsto \color{blue}{\frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}} \]

            if -6.00000000000000024e-61 < t < 8.19999999999999965e-110

            1. Initial program 62.7%

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

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

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

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

                \[\leadsto \frac{x + \color{blue}{\frac{y \cdot z}{t}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
              5. lift-+.f64N/A

                \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\color{blue}{\left(a + 1\right) + \frac{y \cdot b}{t}}} \]
              6. lift-+.f64N/A

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

                \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{\color{blue}{y \cdot b}}{t}} \]
              8. lift-/.f64N/A

                \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \color{blue}{\frac{y \cdot b}{t}}} \]
              9. div-addN/A

                \[\leadsto \color{blue}{\frac{x}{\left(a + 1\right) + \frac{y \cdot b}{t}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}} \]
              10. +-commutativeN/A

                \[\leadsto \frac{x}{\color{blue}{\left(1 + a\right)} + \frac{y \cdot b}{t}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
              11. *-commutativeN/A

                \[\leadsto \frac{x}{\left(1 + a\right) + \frac{\color{blue}{b \cdot y}}{t}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
              12. associate-+r+N/A

                \[\leadsto \frac{x}{\color{blue}{1 + \left(a + \frac{b \cdot y}{t}\right)}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
              13. +-commutativeN/A

                \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} + \frac{\frac{y \cdot z}{t}}{\color{blue}{\left(1 + a\right)} + \frac{y \cdot b}{t}} \]
              14. *-commutativeN/A

                \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} + \frac{\frac{y \cdot z}{t}}{\left(1 + a\right) + \frac{\color{blue}{b \cdot y}}{t}} \]
              15. associate-+r+N/A

                \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} + \frac{\frac{y \cdot z}{t}}{\color{blue}{1 + \left(a + \frac{b \cdot y}{t}\right)}} \]
            3. Applied rewrites56.3%

              \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y}{t}, \frac{z}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}, \frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}\right)} \]
            4. Taylor expanded in b around inf

              \[\leadsto \color{blue}{\frac{z + \frac{t \cdot x}{y}}{b}} \]
            5. Step-by-step derivation
              1. lower-/.f64N/A

                \[\leadsto \frac{z + \frac{t \cdot x}{y}}{\color{blue}{b}} \]
              2. lower-+.f64N/A

                \[\leadsto \frac{z + \frac{t \cdot x}{y}}{b} \]
              3. lower-/.f64N/A

                \[\leadsto \frac{z + \frac{t \cdot x}{y}}{b} \]
              4. lower-*.f6466.8

                \[\leadsto \frac{z + \frac{t \cdot x}{y}}{b} \]
            6. Applied rewrites66.8%

              \[\leadsto \color{blue}{\frac{z + \frac{t \cdot x}{y}}{b}} \]

            if 8.19999999999999965e-110 < t

            1. Initial program 81.4%

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

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

                \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\color{blue}{1 + a}} \]
              2. +-commutativeN/A

                \[\leadsto \frac{\frac{y \cdot z}{t} + x}{\color{blue}{1} + a} \]
              3. associate-/l*N/A

                \[\leadsto \frac{y \cdot \frac{z}{t} + x}{1 + a} \]
              4. lower-fma.f64N/A

                \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\color{blue}{1} + a} \]
              5. lower-/.f64N/A

                \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{1 + a} \]
              6. lower-+.f6469.8

                \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{1 + \color{blue}{a}} \]
            4. Applied rewrites69.8%

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

          Alternative 7: 65.2% accurate, 1.1× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -6 \cdot 10^{-61}:\\ \;\;\;\;\frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}\\ \mathbf{elif}\;t \leq 3 \cdot 10^{-135}:\\ \;\;\;\;\frac{z + \frac{t \cdot x}{y}}{b}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{\mathsf{fma}\left(\frac{b}{t}, y, a + 1\right)}\\ \end{array} \end{array} \]
          (FPCore (x y z t a b)
           :precision binary64
           (if (<= t -6e-61)
             (/ x (fma b (/ y t) (+ 1.0 a)))
             (if (<= t 3e-135)
               (/ (+ z (/ (* t x) y)) b)
               (/ x (fma (/ b t) y (+ a 1.0))))))
          double code(double x, double y, double z, double t, double a, double b) {
          	double tmp;
          	if (t <= -6e-61) {
          		tmp = x / fma(b, (y / t), (1.0 + a));
          	} else if (t <= 3e-135) {
          		tmp = (z + ((t * x) / y)) / b;
          	} else {
          		tmp = x / fma((b / t), y, (a + 1.0));
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a, b)
          	tmp = 0.0
          	if (t <= -6e-61)
          		tmp = Float64(x / fma(b, Float64(y / t), Float64(1.0 + a)));
          	elseif (t <= 3e-135)
          		tmp = Float64(Float64(z + Float64(Float64(t * x) / y)) / b);
          	else
          		tmp = Float64(x / fma(Float64(b / t), y, Float64(a + 1.0)));
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -6e-61], N[(x / N[(b * N[(y / t), $MachinePrecision] + N[(1.0 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3e-135], N[(N[(z + N[(N[(t * x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], N[(x / N[(N[(b / t), $MachinePrecision] * y + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;t \leq -6 \cdot 10^{-61}:\\
          \;\;\;\;\frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}\\
          
          \mathbf{elif}\;t \leq 3 \cdot 10^{-135}:\\
          \;\;\;\;\frac{z + \frac{t \cdot x}{y}}{b}\\
          
          \mathbf{else}:\\
          \;\;\;\;\frac{x}{\mathsf{fma}\left(\frac{b}{t}, y, a + 1\right)}\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if t < -6.00000000000000024e-61

            1. Initial program 83.9%

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

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

                \[\leadsto \frac{x}{\color{blue}{1 + \left(a + \frac{b \cdot y}{t}\right)}} \]
              2. associate-+r+N/A

                \[\leadsto \frac{x}{\left(1 + a\right) + \color{blue}{\frac{b \cdot y}{t}}} \]
              3. *-commutativeN/A

                \[\leadsto \frac{x}{\left(1 + a\right) + \frac{y \cdot b}{t}} \]
              4. +-commutativeN/A

                \[\leadsto \frac{x}{\frac{y \cdot b}{t} + \color{blue}{\left(1 + a\right)}} \]
              5. *-commutativeN/A

                \[\leadsto \frac{x}{\frac{b \cdot y}{t} + \left(1 + a\right)} \]
              6. associate-/l*N/A

                \[\leadsto \frac{x}{b \cdot \frac{y}{t} + \left(\color{blue}{1} + a\right)} \]
              7. lower-fma.f64N/A

                \[\leadsto \frac{x}{\mathsf{fma}\left(b, \color{blue}{\frac{y}{t}}, 1 + a\right)} \]
              8. lower-/.f64N/A

                \[\leadsto \frac{x}{\mathsf{fma}\left(b, \frac{y}{\color{blue}{t}}, 1 + a\right)} \]
              9. lower-+.f6466.0

                \[\leadsto \frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)} \]
            4. Applied rewrites66.0%

              \[\leadsto \color{blue}{\frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}} \]

            if -6.00000000000000024e-61 < t < 3.00000000000000012e-135

            1. Initial program 61.9%

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

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

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

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

                \[\leadsto \frac{x + \color{blue}{\frac{y \cdot z}{t}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
              5. lift-+.f64N/A

                \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\color{blue}{\left(a + 1\right) + \frac{y \cdot b}{t}}} \]
              6. lift-+.f64N/A

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

                \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{\color{blue}{y \cdot b}}{t}} \]
              8. lift-/.f64N/A

                \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \color{blue}{\frac{y \cdot b}{t}}} \]
              9. div-addN/A

                \[\leadsto \color{blue}{\frac{x}{\left(a + 1\right) + \frac{y \cdot b}{t}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}} \]
              10. +-commutativeN/A

                \[\leadsto \frac{x}{\color{blue}{\left(1 + a\right)} + \frac{y \cdot b}{t}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
              11. *-commutativeN/A

                \[\leadsto \frac{x}{\left(1 + a\right) + \frac{\color{blue}{b \cdot y}}{t}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
              12. associate-+r+N/A

                \[\leadsto \frac{x}{\color{blue}{1 + \left(a + \frac{b \cdot y}{t}\right)}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
              13. +-commutativeN/A

                \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} + \frac{\frac{y \cdot z}{t}}{\color{blue}{\left(1 + a\right)} + \frac{y \cdot b}{t}} \]
              14. *-commutativeN/A

                \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} + \frac{\frac{y \cdot z}{t}}{\left(1 + a\right) + \frac{\color{blue}{b \cdot y}}{t}} \]
              15. associate-+r+N/A

                \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} + \frac{\frac{y \cdot z}{t}}{\color{blue}{1 + \left(a + \frac{b \cdot y}{t}\right)}} \]
            3. Applied rewrites55.3%

              \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y}{t}, \frac{z}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}, \frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}\right)} \]
            4. Taylor expanded in b around inf

              \[\leadsto \color{blue}{\frac{z + \frac{t \cdot x}{y}}{b}} \]
            5. Step-by-step derivation
              1. lower-/.f64N/A

                \[\leadsto \frac{z + \frac{t \cdot x}{y}}{\color{blue}{b}} \]
              2. lower-+.f64N/A

                \[\leadsto \frac{z + \frac{t \cdot x}{y}}{b} \]
              3. lower-/.f64N/A

                \[\leadsto \frac{z + \frac{t \cdot x}{y}}{b} \]
              4. lower-*.f6467.6

                \[\leadsto \frac{z + \frac{t \cdot x}{y}}{b} \]
            6. Applied rewrites67.6%

              \[\leadsto \color{blue}{\frac{z + \frac{t \cdot x}{y}}{b}} \]

            if 3.00000000000000012e-135 < t

            1. Initial program 81.0%

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

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

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

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

                \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\left(1 + a\right) + \frac{\color{blue}{y \cdot b}}{t}} \]
              5. lift-/.f64N/A

                \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\left(1 + a\right) + \color{blue}{\frac{y \cdot b}{t}}} \]
              6. +-commutativeN/A

                \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\color{blue}{\frac{y \cdot b}{t} + \left(1 + a\right)}} \]
              7. associate-/l*N/A

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

                \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, 1 + a\right)}} \]
              9. lower-/.f64N/A

                \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\mathsf{fma}\left(y, \color{blue}{\frac{b}{t}}, 1 + a\right)} \]
              10. lower-+.f6482.8

                \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\mathsf{fma}\left(y, \frac{b}{t}, \color{blue}{1 + a}\right)} \]
            3. Applied rewrites82.8%

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

              \[\leadsto \color{blue}{\frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)}} \]
            5. Step-by-step derivation
              1. +-commutativeN/A

                \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} \]
              2. +-commutativeN/A

                \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} \]
              3. associate-*r/N/A

                \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} \]
              4. lower-/.f64N/A

                \[\leadsto \frac{x}{\color{blue}{1 + \left(a + \frac{b \cdot y}{t}\right)}} \]
              5. associate-+r+N/A

                \[\leadsto \frac{x}{\left(1 + a\right) + \color{blue}{\frac{b \cdot y}{t}}} \]
              6. *-commutativeN/A

                \[\leadsto \frac{x}{\left(1 + a\right) + \frac{y \cdot b}{t}} \]
              7. associate-*r/N/A

                \[\leadsto \frac{x}{\left(1 + a\right) + y \cdot \color{blue}{\frac{b}{t}}} \]
              8. +-commutativeN/A

                \[\leadsto \frac{x}{y \cdot \frac{b}{t} + \color{blue}{\left(1 + a\right)}} \]
              9. *-commutativeN/A

                \[\leadsto \frac{x}{\frac{b}{t} \cdot y + \left(\color{blue}{1} + a\right)} \]
              10. lower-fma.f64N/A

                \[\leadsto \frac{x}{\mathsf{fma}\left(\frac{b}{t}, \color{blue}{y}, 1 + a\right)} \]
              11. lift-/.f64N/A

                \[\leadsto \frac{x}{\mathsf{fma}\left(\frac{b}{t}, y, 1 + a\right)} \]
              12. +-commutativeN/A

                \[\leadsto \frac{x}{\mathsf{fma}\left(\frac{b}{t}, y, a + 1\right)} \]
              13. lower-+.f6462.3

                \[\leadsto \frac{x}{\mathsf{fma}\left(\frac{b}{t}, y, a + 1\right)} \]
            6. Applied rewrites62.3%

              \[\leadsto \color{blue}{\frac{x}{\mathsf{fma}\left(\frac{b}{t}, y, a + 1\right)}} \]
          3. Recombined 3 regimes into one program.
          4. Add Preprocessing

          Alternative 8: 64.6% accurate, 1.1× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}\\ \mathbf{if}\;t \leq -6 \cdot 10^{-61}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 3.8 \cdot 10^{-135}:\\ \;\;\;\;\frac{z + \frac{t \cdot x}{y}}{b}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
          (FPCore (x y z t a b)
           :precision binary64
           (let* ((t_1 (/ x (fma b (/ y t) (+ 1.0 a)))))
             (if (<= t -6e-61) t_1 (if (<= t 3.8e-135) (/ (+ z (/ (* t x) y)) b) t_1))))
          double code(double x, double y, double z, double t, double a, double b) {
          	double t_1 = x / fma(b, (y / t), (1.0 + a));
          	double tmp;
          	if (t <= -6e-61) {
          		tmp = t_1;
          	} else if (t <= 3.8e-135) {
          		tmp = (z + ((t * x) / y)) / b;
          	} else {
          		tmp = t_1;
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a, b)
          	t_1 = Float64(x / fma(b, Float64(y / t), Float64(1.0 + a)))
          	tmp = 0.0
          	if (t <= -6e-61)
          		tmp = t_1;
          	elseif (t <= 3.8e-135)
          		tmp = Float64(Float64(z + Float64(Float64(t * x) / y)) / b);
          	else
          		tmp = t_1;
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(b * N[(y / t), $MachinePrecision] + N[(1.0 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6e-61], t$95$1, If[LessEqual[t, 3.8e-135], N[(N[(z + N[(N[(t * x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], t$95$1]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := \frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}\\
          \mathbf{if}\;t \leq -6 \cdot 10^{-61}:\\
          \;\;\;\;t\_1\\
          
          \mathbf{elif}\;t \leq 3.8 \cdot 10^{-135}:\\
          \;\;\;\;\frac{z + \frac{t \cdot x}{y}}{b}\\
          
          \mathbf{else}:\\
          \;\;\;\;t\_1\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if t < -6.00000000000000024e-61 or 3.8000000000000003e-135 < t

            1. Initial program 82.3%

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

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

                \[\leadsto \frac{x}{\color{blue}{1 + \left(a + \frac{b \cdot y}{t}\right)}} \]
              2. associate-+r+N/A

                \[\leadsto \frac{x}{\left(1 + a\right) + \color{blue}{\frac{b \cdot y}{t}}} \]
              3. *-commutativeN/A

                \[\leadsto \frac{x}{\left(1 + a\right) + \frac{y \cdot b}{t}} \]
              4. +-commutativeN/A

                \[\leadsto \frac{x}{\frac{y \cdot b}{t} + \color{blue}{\left(1 + a\right)}} \]
              5. *-commutativeN/A

                \[\leadsto \frac{x}{\frac{b \cdot y}{t} + \left(1 + a\right)} \]
              6. associate-/l*N/A

                \[\leadsto \frac{x}{b \cdot \frac{y}{t} + \left(\color{blue}{1} + a\right)} \]
              7. lower-fma.f64N/A

                \[\leadsto \frac{x}{\mathsf{fma}\left(b, \color{blue}{\frac{y}{t}}, 1 + a\right)} \]
              8. lower-/.f64N/A

                \[\leadsto \frac{x}{\mathsf{fma}\left(b, \frac{y}{\color{blue}{t}}, 1 + a\right)} \]
              9. lower-+.f6464.3

                \[\leadsto \frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)} \]
            4. Applied rewrites64.3%

              \[\leadsto \color{blue}{\frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}} \]

            if -6.00000000000000024e-61 < t < 3.8000000000000003e-135

            1. Initial program 62.0%

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

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

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

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

                \[\leadsto \frac{x + \color{blue}{\frac{y \cdot z}{t}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
              5. lift-+.f64N/A

                \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\color{blue}{\left(a + 1\right) + \frac{y \cdot b}{t}}} \]
              6. lift-+.f64N/A

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

                \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{\color{blue}{y \cdot b}}{t}} \]
              8. lift-/.f64N/A

                \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \color{blue}{\frac{y \cdot b}{t}}} \]
              9. div-addN/A

                \[\leadsto \color{blue}{\frac{x}{\left(a + 1\right) + \frac{y \cdot b}{t}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}} \]
              10. +-commutativeN/A

                \[\leadsto \frac{x}{\color{blue}{\left(1 + a\right)} + \frac{y \cdot b}{t}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
              11. *-commutativeN/A

                \[\leadsto \frac{x}{\left(1 + a\right) + \frac{\color{blue}{b \cdot y}}{t}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
              12. associate-+r+N/A

                \[\leadsto \frac{x}{\color{blue}{1 + \left(a + \frac{b \cdot y}{t}\right)}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
              13. +-commutativeN/A

                \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} + \frac{\frac{y \cdot z}{t}}{\color{blue}{\left(1 + a\right)} + \frac{y \cdot b}{t}} \]
              14. *-commutativeN/A

                \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} + \frac{\frac{y \cdot z}{t}}{\left(1 + a\right) + \frac{\color{blue}{b \cdot y}}{t}} \]
              15. associate-+r+N/A

                \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} + \frac{\frac{y \cdot z}{t}}{\color{blue}{1 + \left(a + \frac{b \cdot y}{t}\right)}} \]
            3. Applied rewrites55.3%

              \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y}{t}, \frac{z}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}, \frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}\right)} \]
            4. Taylor expanded in b around inf

              \[\leadsto \color{blue}{\frac{z + \frac{t \cdot x}{y}}{b}} \]
            5. Step-by-step derivation
              1. lower-/.f64N/A

                \[\leadsto \frac{z + \frac{t \cdot x}{y}}{\color{blue}{b}} \]
              2. lower-+.f64N/A

                \[\leadsto \frac{z + \frac{t \cdot x}{y}}{b} \]
              3. lower-/.f64N/A

                \[\leadsto \frac{z + \frac{t \cdot x}{y}}{b} \]
              4. lower-*.f6467.6

                \[\leadsto \frac{z + \frac{t \cdot x}{y}}{b} \]
            6. Applied rewrites67.6%

              \[\leadsto \color{blue}{\frac{z + \frac{t \cdot x}{y}}{b}} \]
          3. Recombined 2 regimes into one program.
          4. Add Preprocessing

          Alternative 9: 60.4% accurate, 0.9× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{z + \frac{t \cdot x}{y}}{b}\\ t_2 := \frac{x + \frac{y \cdot z}{t}}{a}\\ \mathbf{if}\;a \leq -9.5 \cdot 10^{+104}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;a \leq -7.2 \cdot 10^{-74}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 7 \cdot 10^{-129}:\\ \;\;\;\;\frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1\right)}\\ \mathbf{elif}\;a \leq 1.6 \cdot 10^{+30}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
          (FPCore (x y z t a b)
           :precision binary64
           (let* ((t_1 (/ (+ z (/ (* t x) y)) b)) (t_2 (/ (+ x (/ (* y z) t)) a)))
             (if (<= a -9.5e+104)
               t_2
               (if (<= a -7.2e-74)
                 t_1
                 (if (<= a 7e-129)
                   (/ x (fma b (/ y t) 1.0))
                   (if (<= a 1.6e+30) t_1 t_2))))))
          double code(double x, double y, double z, double t, double a, double b) {
          	double t_1 = (z + ((t * x) / y)) / b;
          	double t_2 = (x + ((y * z) / t)) / a;
          	double tmp;
          	if (a <= -9.5e+104) {
          		tmp = t_2;
          	} else if (a <= -7.2e-74) {
          		tmp = t_1;
          	} else if (a <= 7e-129) {
          		tmp = x / fma(b, (y / t), 1.0);
          	} else if (a <= 1.6e+30) {
          		tmp = t_1;
          	} else {
          		tmp = t_2;
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a, b)
          	t_1 = Float64(Float64(z + Float64(Float64(t * x) / y)) / b)
          	t_2 = Float64(Float64(x + Float64(Float64(y * z) / t)) / a)
          	tmp = 0.0
          	if (a <= -9.5e+104)
          		tmp = t_2;
          	elseif (a <= -7.2e-74)
          		tmp = t_1;
          	elseif (a <= 7e-129)
          		tmp = Float64(x / fma(b, Float64(y / t), 1.0));
          	elseif (a <= 1.6e+30)
          		tmp = t_1;
          	else
          		tmp = t_2;
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z + N[(N[(t * x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]}, If[LessEqual[a, -9.5e+104], t$95$2, If[LessEqual[a, -7.2e-74], t$95$1, If[LessEqual[a, 7e-129], N[(x / N[(b * N[(y / t), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.6e+30], t$95$1, t$95$2]]]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := \frac{z + \frac{t \cdot x}{y}}{b}\\
          t_2 := \frac{x + \frac{y \cdot z}{t}}{a}\\
          \mathbf{if}\;a \leq -9.5 \cdot 10^{+104}:\\
          \;\;\;\;t\_2\\
          
          \mathbf{elif}\;a \leq -7.2 \cdot 10^{-74}:\\
          \;\;\;\;t\_1\\
          
          \mathbf{elif}\;a \leq 7 \cdot 10^{-129}:\\
          \;\;\;\;\frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1\right)}\\
          
          \mathbf{elif}\;a \leq 1.6 \cdot 10^{+30}:\\
          \;\;\;\;t\_1\\
          
          \mathbf{else}:\\
          \;\;\;\;t\_2\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if a < -9.5e104 or 1.59999999999999986e30 < a

            1. Initial program 74.4%

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

              \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\color{blue}{a}} \]
            3. Step-by-step derivation
              1. Applied rewrites65.2%

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

              if -9.5e104 < a < -7.2000000000000005e-74 or 6.9999999999999995e-129 < a < 1.59999999999999986e30

              1. Initial program 77.0%

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

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

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

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

                  \[\leadsto \frac{x + \color{blue}{\frac{y \cdot z}{t}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
                5. lift-+.f64N/A

                  \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\color{blue}{\left(a + 1\right) + \frac{y \cdot b}{t}}} \]
                6. lift-+.f64N/A

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

                  \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{\color{blue}{y \cdot b}}{t}} \]
                8. lift-/.f64N/A

                  \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \color{blue}{\frac{y \cdot b}{t}}} \]
                9. div-addN/A

                  \[\leadsto \color{blue}{\frac{x}{\left(a + 1\right) + \frac{y \cdot b}{t}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}} \]
                10. +-commutativeN/A

                  \[\leadsto \frac{x}{\color{blue}{\left(1 + a\right)} + \frac{y \cdot b}{t}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
                11. *-commutativeN/A

                  \[\leadsto \frac{x}{\left(1 + a\right) + \frac{\color{blue}{b \cdot y}}{t}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
                12. associate-+r+N/A

                  \[\leadsto \frac{x}{\color{blue}{1 + \left(a + \frac{b \cdot y}{t}\right)}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
                13. +-commutativeN/A

                  \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} + \frac{\frac{y \cdot z}{t}}{\color{blue}{\left(1 + a\right)} + \frac{y \cdot b}{t}} \]
                14. *-commutativeN/A

                  \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} + \frac{\frac{y \cdot z}{t}}{\left(1 + a\right) + \frac{\color{blue}{b \cdot y}}{t}} \]
                15. associate-+r+N/A

                  \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} + \frac{\frac{y \cdot z}{t}}{\color{blue}{1 + \left(a + \frac{b \cdot y}{t}\right)}} \]
              3. Applied rewrites79.3%

                \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y}{t}, \frac{z}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}, \frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}\right)} \]
              4. Taylor expanded in b around inf

                \[\leadsto \color{blue}{\frac{z + \frac{t \cdot x}{y}}{b}} \]
              5. Step-by-step derivation
                1. lower-/.f64N/A

                  \[\leadsto \frac{z + \frac{t \cdot x}{y}}{\color{blue}{b}} \]
                2. lower-+.f64N/A

                  \[\leadsto \frac{z + \frac{t \cdot x}{y}}{b} \]
                3. lower-/.f64N/A

                  \[\leadsto \frac{z + \frac{t \cdot x}{y}}{b} \]
                4. lower-*.f6445.1

                  \[\leadsto \frac{z + \frac{t \cdot x}{y}}{b} \]
              6. Applied rewrites45.1%

                \[\leadsto \color{blue}{\frac{z + \frac{t \cdot x}{y}}{b}} \]

              if -7.2000000000000005e-74 < a < 6.9999999999999995e-129

              1. Initial program 74.7%

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

                \[\leadsto \color{blue}{\frac{x + \frac{y \cdot z}{t}}{1 + \frac{b \cdot y}{t}}} \]
              3. Step-by-step derivation
                1. lower-/.f64N/A

                  \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\color{blue}{1 + \frac{b \cdot y}{t}}} \]
                2. +-commutativeN/A

                  \[\leadsto \frac{\frac{y \cdot z}{t} + x}{\color{blue}{1} + \frac{b \cdot y}{t}} \]
                3. associate-/l*N/A

                  \[\leadsto \frac{y \cdot \frac{z}{t} + x}{1 + \frac{b \cdot y}{t}} \]
                4. lower-fma.f64N/A

                  \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\color{blue}{1} + \frac{b \cdot y}{t}} \]
                5. lower-/.f64N/A

                  \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{1 + \frac{b \cdot y}{t}} \]
                6. +-commutativeN/A

                  \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\frac{b \cdot y}{t} + \color{blue}{1}} \]
                7. associate-/l*N/A

                  \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{b \cdot \frac{y}{t} + 1} \]
                8. lower-fma.f64N/A

                  \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\mathsf{fma}\left(b, \color{blue}{\frac{y}{t}}, 1\right)} \]
                9. lower-/.f6473.6

                  \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\mathsf{fma}\left(b, \frac{y}{\color{blue}{t}}, 1\right)} \]
              4. Applied rewrites73.6%

                \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\mathsf{fma}\left(b, \frac{y}{t}, 1\right)}} \]
              5. Taylor expanded in x around inf

                \[\leadsto \frac{x}{\mathsf{fma}\left(\color{blue}{b}, \frac{y}{t}, 1\right)} \]
              6. Step-by-step derivation
                1. Applied rewrites50.6%

                  \[\leadsto \frac{x}{\mathsf{fma}\left(\color{blue}{b}, \frac{y}{t}, 1\right)} \]
              7. Recombined 3 regimes into one program.
              8. Add Preprocessing

              Alternative 10: 55.7% accurate, 1.0× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a}\\ \mathbf{if}\;a \leq -9.5 \cdot 10^{+104}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -1.22 \cdot 10^{-56}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;a \leq 3100000:\\ \;\;\;\;\frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1\right)}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
              (FPCore (x y z t a b)
               :precision binary64
               (let* ((t_1 (/ (fma y (/ z t) x) a)))
                 (if (<= a -9.5e+104)
                   t_1
                   (if (<= a -1.22e-56)
                     (/ z b)
                     (if (<= a 3100000.0) (/ x (fma b (/ y t) 1.0)) t_1)))))
              double code(double x, double y, double z, double t, double a, double b) {
              	double t_1 = fma(y, (z / t), x) / a;
              	double tmp;
              	if (a <= -9.5e+104) {
              		tmp = t_1;
              	} else if (a <= -1.22e-56) {
              		tmp = z / b;
              	} else if (a <= 3100000.0) {
              		tmp = x / fma(b, (y / t), 1.0);
              	} else {
              		tmp = t_1;
              	}
              	return tmp;
              }
              
              function code(x, y, z, t, a, b)
              	t_1 = Float64(fma(y, Float64(z / t), x) / a)
              	tmp = 0.0
              	if (a <= -9.5e+104)
              		tmp = t_1;
              	elseif (a <= -1.22e-56)
              		tmp = Float64(z / b);
              	elseif (a <= 3100000.0)
              		tmp = Float64(x / fma(b, Float64(y / t), 1.0));
              	else
              		tmp = t_1;
              	end
              	return tmp
              end
              
              code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * N[(z / t), $MachinePrecision] + x), $MachinePrecision] / a), $MachinePrecision]}, If[LessEqual[a, -9.5e+104], t$95$1, If[LessEqual[a, -1.22e-56], N[(z / b), $MachinePrecision], If[LessEqual[a, 3100000.0], N[(x / N[(b * N[(y / t), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              t_1 := \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a}\\
              \mathbf{if}\;a \leq -9.5 \cdot 10^{+104}:\\
              \;\;\;\;t\_1\\
              
              \mathbf{elif}\;a \leq -1.22 \cdot 10^{-56}:\\
              \;\;\;\;\frac{z}{b}\\
              
              \mathbf{elif}\;a \leq 3100000:\\
              \;\;\;\;\frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1\right)}\\
              
              \mathbf{else}:\\
              \;\;\;\;t\_1\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 3 regimes
              2. if a < -9.5e104 or 3.1e6 < a

                1. Initial program 74.5%

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

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

                    \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\color{blue}{a}} \]
                  2. +-commutativeN/A

                    \[\leadsto \frac{\frac{y \cdot z}{t} + x}{a} \]
                  3. associate-/l*N/A

                    \[\leadsto \frac{y \cdot \frac{z}{t} + x}{a} \]
                  4. lower-fma.f64N/A

                    \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a} \]
                  5. lower-/.f6464.1

                    \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a} \]
                4. Applied rewrites64.1%

                  \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a}} \]

                if -9.5e104 < a < -1.22e-56

                1. Initial program 76.8%

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

                  \[\leadsto \color{blue}{\frac{z}{b}} \]
                3. Step-by-step derivation
                  1. lower-/.f6435.9

                    \[\leadsto \frac{z}{\color{blue}{b}} \]
                4. Applied rewrites35.9%

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

                if -1.22e-56 < a < 3.1e6

                1. Initial program 75.5%

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

                  \[\leadsto \color{blue}{\frac{x + \frac{y \cdot z}{t}}{1 + \frac{b \cdot y}{t}}} \]
                3. Step-by-step derivation
                  1. lower-/.f64N/A

                    \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\color{blue}{1 + \frac{b \cdot y}{t}}} \]
                  2. +-commutativeN/A

                    \[\leadsto \frac{\frac{y \cdot z}{t} + x}{\color{blue}{1} + \frac{b \cdot y}{t}} \]
                  3. associate-/l*N/A

                    \[\leadsto \frac{y \cdot \frac{z}{t} + x}{1 + \frac{b \cdot y}{t}} \]
                  4. lower-fma.f64N/A

                    \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\color{blue}{1} + \frac{b \cdot y}{t}} \]
                  5. lower-/.f64N/A

                    \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{1 + \frac{b \cdot y}{t}} \]
                  6. +-commutativeN/A

                    \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\frac{b \cdot y}{t} + \color{blue}{1}} \]
                  7. associate-/l*N/A

                    \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{b \cdot \frac{y}{t} + 1} \]
                  8. lower-fma.f64N/A

                    \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\mathsf{fma}\left(b, \color{blue}{\frac{y}{t}}, 1\right)} \]
                  9. lower-/.f6473.5

                    \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\mathsf{fma}\left(b, \frac{y}{\color{blue}{t}}, 1\right)} \]
                4. Applied rewrites73.5%

                  \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\mathsf{fma}\left(b, \frac{y}{t}, 1\right)}} \]
                5. Taylor expanded in x around inf

                  \[\leadsto \frac{x}{\mathsf{fma}\left(\color{blue}{b}, \frac{y}{t}, 1\right)} \]
                6. Step-by-step derivation
                  1. Applied rewrites50.1%

                    \[\leadsto \frac{x}{\mathsf{fma}\left(\color{blue}{b}, \frac{y}{t}, 1\right)} \]
                7. Recombined 3 regimes into one program.
                8. Add Preprocessing

                Alternative 11: 54.7% accurate, 1.2× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x}{1 + a}\\ \mathbf{if}\;t \leq -6.5 \cdot 10^{-61}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 0.000112:\\ \;\;\;\;\frac{z + \frac{t \cdot x}{y}}{b}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                (FPCore (x y z t a b)
                 :precision binary64
                 (let* ((t_1 (/ x (+ 1.0 a))))
                   (if (<= t -6.5e-61)
                     t_1
                     (if (<= t 0.000112) (/ (+ z (/ (* t x) y)) b) t_1))))
                double code(double x, double y, double z, double t, double a, double b) {
                	double t_1 = x / (1.0 + a);
                	double tmp;
                	if (t <= -6.5e-61) {
                		tmp = t_1;
                	} else if (t <= 0.000112) {
                		tmp = (z + ((t * x) / y)) / b;
                	} 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)
                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) :: t_1
                    real(8) :: tmp
                    t_1 = x / (1.0d0 + a)
                    if (t <= (-6.5d-61)) then
                        tmp = t_1
                    else if (t <= 0.000112d0) then
                        tmp = (z + ((t * x) / y)) / b
                    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 t_1 = x / (1.0 + a);
                	double tmp;
                	if (t <= -6.5e-61) {
                		tmp = t_1;
                	} else if (t <= 0.000112) {
                		tmp = (z + ((t * x) / y)) / b;
                	} else {
                		tmp = t_1;
                	}
                	return tmp;
                }
                
                def code(x, y, z, t, a, b):
                	t_1 = x / (1.0 + a)
                	tmp = 0
                	if t <= -6.5e-61:
                		tmp = t_1
                	elif t <= 0.000112:
                		tmp = (z + ((t * x) / y)) / b
                	else:
                		tmp = t_1
                	return tmp
                
                function code(x, y, z, t, a, b)
                	t_1 = Float64(x / Float64(1.0 + a))
                	tmp = 0.0
                	if (t <= -6.5e-61)
                		tmp = t_1;
                	elseif (t <= 0.000112)
                		tmp = Float64(Float64(z + Float64(Float64(t * x) / y)) / b);
                	else
                		tmp = t_1;
                	end
                	return tmp
                end
                
                function tmp_2 = code(x, y, z, t, a, b)
                	t_1 = x / (1.0 + a);
                	tmp = 0.0;
                	if (t <= -6.5e-61)
                		tmp = t_1;
                	elseif (t <= 0.000112)
                		tmp = (z + ((t * x) / y)) / b;
                	else
                		tmp = t_1;
                	end
                	tmp_2 = tmp;
                end
                
                code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(1.0 + a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.5e-61], t$95$1, If[LessEqual[t, 0.000112], N[(N[(z + N[(N[(t * x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], t$95$1]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := \frac{x}{1 + a}\\
                \mathbf{if}\;t \leq -6.5 \cdot 10^{-61}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;t \leq 0.000112:\\
                \;\;\;\;\frac{z + \frac{t \cdot x}{y}}{b}\\
                
                \mathbf{else}:\\
                \;\;\;\;t\_1\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if t < -6.4999999999999994e-61 or 1.11999999999999998e-4 < t

                  1. Initial program 82.9%

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

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

                      \[\leadsto \frac{x}{\color{blue}{1 + a}} \]
                    2. lower-+.f6457.8

                      \[\leadsto \frac{x}{1 + \color{blue}{a}} \]
                  4. Applied rewrites57.8%

                    \[\leadsto \color{blue}{\frac{x}{1 + a}} \]

                  if -6.4999999999999994e-61 < t < 1.11999999999999998e-4

                  1. Initial program 65.9%

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

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

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

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

                      \[\leadsto \frac{x + \color{blue}{\frac{y \cdot z}{t}}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
                    5. lift-+.f64N/A

                      \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\color{blue}{\left(a + 1\right) + \frac{y \cdot b}{t}}} \]
                    6. lift-+.f64N/A

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

                      \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{\color{blue}{y \cdot b}}{t}} \]
                    8. lift-/.f64N/A

                      \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \color{blue}{\frac{y \cdot b}{t}}} \]
                    9. div-addN/A

                      \[\leadsto \color{blue}{\frac{x}{\left(a + 1\right) + \frac{y \cdot b}{t}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}} \]
                    10. +-commutativeN/A

                      \[\leadsto \frac{x}{\color{blue}{\left(1 + a\right)} + \frac{y \cdot b}{t}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
                    11. *-commutativeN/A

                      \[\leadsto \frac{x}{\left(1 + a\right) + \frac{\color{blue}{b \cdot y}}{t}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
                    12. associate-+r+N/A

                      \[\leadsto \frac{x}{\color{blue}{1 + \left(a + \frac{b \cdot y}{t}\right)}} + \frac{\frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
                    13. +-commutativeN/A

                      \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} + \frac{\frac{y \cdot z}{t}}{\color{blue}{\left(1 + a\right)} + \frac{y \cdot b}{t}} \]
                    14. *-commutativeN/A

                      \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} + \frac{\frac{y \cdot z}{t}}{\left(1 + a\right) + \frac{\color{blue}{b \cdot y}}{t}} \]
                    15. associate-+r+N/A

                      \[\leadsto \frac{x}{1 + \left(a + \frac{b \cdot y}{t}\right)} + \frac{\frac{y \cdot z}{t}}{\color{blue}{1 + \left(a + \frac{b \cdot y}{t}\right)}} \]
                  3. Applied rewrites60.5%

                    \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y}{t}, \frac{z}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}, \frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}\right)} \]
                  4. Taylor expanded in b around inf

                    \[\leadsto \color{blue}{\frac{z + \frac{t \cdot x}{y}}{b}} \]
                  5. Step-by-step derivation
                    1. lower-/.f64N/A

                      \[\leadsto \frac{z + \frac{t \cdot x}{y}}{\color{blue}{b}} \]
                    2. lower-+.f64N/A

                      \[\leadsto \frac{z + \frac{t \cdot x}{y}}{b} \]
                    3. lower-/.f64N/A

                      \[\leadsto \frac{z + \frac{t \cdot x}{y}}{b} \]
                    4. lower-*.f6463.5

                      \[\leadsto \frac{z + \frac{t \cdot x}{y}}{b} \]
                  6. Applied rewrites63.5%

                    \[\leadsto \color{blue}{\frac{z + \frac{t \cdot x}{y}}{b}} \]
                3. Recombined 2 regimes into one program.
                4. Add Preprocessing

                Alternative 12: 53.8% accurate, 1.7× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x}{1 + a}\\ \mathbf{if}\;t \leq -4.2 \cdot 10^{-61}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 4.6 \cdot 10^{-5}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                (FPCore (x y z t a b)
                 :precision binary64
                 (let* ((t_1 (/ x (+ 1.0 a))))
                   (if (<= t -4.2e-61) t_1 (if (<= t 4.6e-5) (/ z b) t_1))))
                double code(double x, double y, double z, double t, double a, double b) {
                	double t_1 = x / (1.0 + a);
                	double tmp;
                	if (t <= -4.2e-61) {
                		tmp = t_1;
                	} else if (t <= 4.6e-5) {
                		tmp = z / b;
                	} 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)
                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) :: t_1
                    real(8) :: tmp
                    t_1 = x / (1.0d0 + a)
                    if (t <= (-4.2d-61)) then
                        tmp = t_1
                    else if (t <= 4.6d-5) then
                        tmp = z / b
                    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 t_1 = x / (1.0 + a);
                	double tmp;
                	if (t <= -4.2e-61) {
                		tmp = t_1;
                	} else if (t <= 4.6e-5) {
                		tmp = z / b;
                	} else {
                		tmp = t_1;
                	}
                	return tmp;
                }
                
                def code(x, y, z, t, a, b):
                	t_1 = x / (1.0 + a)
                	tmp = 0
                	if t <= -4.2e-61:
                		tmp = t_1
                	elif t <= 4.6e-5:
                		tmp = z / b
                	else:
                		tmp = t_1
                	return tmp
                
                function code(x, y, z, t, a, b)
                	t_1 = Float64(x / Float64(1.0 + a))
                	tmp = 0.0
                	if (t <= -4.2e-61)
                		tmp = t_1;
                	elseif (t <= 4.6e-5)
                		tmp = Float64(z / b);
                	else
                		tmp = t_1;
                	end
                	return tmp
                end
                
                function tmp_2 = code(x, y, z, t, a, b)
                	t_1 = x / (1.0 + a);
                	tmp = 0.0;
                	if (t <= -4.2e-61)
                		tmp = t_1;
                	elseif (t <= 4.6e-5)
                		tmp = z / b;
                	else
                		tmp = t_1;
                	end
                	tmp_2 = tmp;
                end
                
                code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(1.0 + a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.2e-61], t$95$1, If[LessEqual[t, 4.6e-5], N[(z / b), $MachinePrecision], t$95$1]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := \frac{x}{1 + a}\\
                \mathbf{if}\;t \leq -4.2 \cdot 10^{-61}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;t \leq 4.6 \cdot 10^{-5}:\\
                \;\;\;\;\frac{z}{b}\\
                
                \mathbf{else}:\\
                \;\;\;\;t\_1\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if t < -4.1999999999999998e-61 or 4.6e-5 < t

                  1. Initial program 82.9%

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

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

                      \[\leadsto \frac{x}{\color{blue}{1 + a}} \]
                    2. lower-+.f6457.8

                      \[\leadsto \frac{x}{1 + \color{blue}{a}} \]
                  4. Applied rewrites57.8%

                    \[\leadsto \color{blue}{\frac{x}{1 + a}} \]

                  if -4.1999999999999998e-61 < t < 4.6e-5

                  1. Initial program 65.9%

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

                    \[\leadsto \color{blue}{\frac{z}{b}} \]
                  3. Step-by-step derivation
                    1. lower-/.f6453.2

                      \[\leadsto \frac{z}{\color{blue}{b}} \]
                  4. Applied rewrites53.2%

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

                Alternative 13: 40.9% accurate, 2.1× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -9.5 \cdot 10^{+85}:\\ \;\;\;\;x\\ \mathbf{elif}\;t \leq 3.7 \cdot 10^{+61}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
                (FPCore (x y z t a b)
                 :precision binary64
                 (if (<= t -9.5e+85) x (if (<= t 3.7e+61) (/ z b) x)))
                double code(double x, double y, double z, double t, double a, double b) {
                	double tmp;
                	if (t <= -9.5e+85) {
                		tmp = x;
                	} else if (t <= 3.7e+61) {
                		tmp = z / b;
                	} else {
                		tmp = x;
                	}
                	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)
                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) :: tmp
                    if (t <= (-9.5d+85)) then
                        tmp = x
                    else if (t <= 3.7d+61) then
                        tmp = z / b
                    else
                        tmp = x
                    end if
                    code = tmp
                end function
                
                public static double code(double x, double y, double z, double t, double a, double b) {
                	double tmp;
                	if (t <= -9.5e+85) {
                		tmp = x;
                	} else if (t <= 3.7e+61) {
                		tmp = z / b;
                	} else {
                		tmp = x;
                	}
                	return tmp;
                }
                
                def code(x, y, z, t, a, b):
                	tmp = 0
                	if t <= -9.5e+85:
                		tmp = x
                	elif t <= 3.7e+61:
                		tmp = z / b
                	else:
                		tmp = x
                	return tmp
                
                function code(x, y, z, t, a, b)
                	tmp = 0.0
                	if (t <= -9.5e+85)
                		tmp = x;
                	elseif (t <= 3.7e+61)
                		tmp = Float64(z / b);
                	else
                		tmp = x;
                	end
                	return tmp
                end
                
                function tmp_2 = code(x, y, z, t, a, b)
                	tmp = 0.0;
                	if (t <= -9.5e+85)
                		tmp = x;
                	elseif (t <= 3.7e+61)
                		tmp = z / b;
                	else
                		tmp = x;
                	end
                	tmp_2 = tmp;
                end
                
                code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -9.5e+85], x, If[LessEqual[t, 3.7e+61], N[(z / b), $MachinePrecision], x]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                \mathbf{if}\;t \leq -9.5 \cdot 10^{+85}:\\
                \;\;\;\;x\\
                
                \mathbf{elif}\;t \leq 3.7 \cdot 10^{+61}:\\
                \;\;\;\;\frac{z}{b}\\
                
                \mathbf{else}:\\
                \;\;\;\;x\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if t < -9.49999999999999945e85 or 3.70000000000000003e61 < t

                  1. Initial program 81.7%

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

                    \[\leadsto \color{blue}{\frac{x + \frac{y \cdot z}{t}}{1 + \frac{b \cdot y}{t}}} \]
                  3. Step-by-step derivation
                    1. lower-/.f64N/A

                      \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\color{blue}{1 + \frac{b \cdot y}{t}}} \]
                    2. +-commutativeN/A

                      \[\leadsto \frac{\frac{y \cdot z}{t} + x}{\color{blue}{1} + \frac{b \cdot y}{t}} \]
                    3. associate-/l*N/A

                      \[\leadsto \frac{y \cdot \frac{z}{t} + x}{1 + \frac{b \cdot y}{t}} \]
                    4. lower-fma.f64N/A

                      \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\color{blue}{1} + \frac{b \cdot y}{t}} \]
                    5. lower-/.f64N/A

                      \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{1 + \frac{b \cdot y}{t}} \]
                    6. +-commutativeN/A

                      \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\frac{b \cdot y}{t} + \color{blue}{1}} \]
                    7. associate-/l*N/A

                      \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{b \cdot \frac{y}{t} + 1} \]
                    8. lower-fma.f64N/A

                      \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\mathsf{fma}\left(b, \color{blue}{\frac{y}{t}}, 1\right)} \]
                    9. lower-/.f6454.3

                      \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\mathsf{fma}\left(b, \frac{y}{\color{blue}{t}}, 1\right)} \]
                  4. Applied rewrites54.3%

                    \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\mathsf{fma}\left(b, \frac{y}{t}, 1\right)}} \]
                  5. Taylor expanded in y around 0

                    \[\leadsto x \]
                  6. Step-by-step derivation
                    1. Applied rewrites31.7%

                      \[\leadsto x \]

                    if -9.49999999999999945e85 < t < 3.70000000000000003e61

                    1. Initial program 71.5%

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

                      \[\leadsto \color{blue}{\frac{z}{b}} \]
                    3. Step-by-step derivation
                      1. lower-/.f6446.3

                        \[\leadsto \frac{z}{\color{blue}{b}} \]
                    4. Applied rewrites46.3%

                      \[\leadsto \color{blue}{\frac{z}{b}} \]
                  7. Recombined 2 regimes into one program.
                  8. Add Preprocessing

                  Alternative 14: 19.8% accurate, 25.2× speedup?

                  \[\begin{array}{l} \\ x \end{array} \]
                  (FPCore (x y z t a b) :precision binary64 x)
                  double code(double x, double y, double z, double t, double a, double b) {
                  	return x;
                  }
                  
                  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)
                  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
                      code = x
                  end function
                  
                  public static double code(double x, double y, double z, double t, double a, double b) {
                  	return x;
                  }
                  
                  def code(x, y, z, t, a, b):
                  	return x
                  
                  function code(x, y, z, t, a, b)
                  	return x
                  end
                  
                  function tmp = code(x, y, z, t, a, b)
                  	tmp = x;
                  end
                  
                  code[x_, y_, z_, t_, a_, b_] := x
                  
                  \begin{array}{l}
                  
                  \\
                  x
                  \end{array}
                  
                  Derivation
                  1. Initial program 75.3%

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

                    \[\leadsto \color{blue}{\frac{x + \frac{y \cdot z}{t}}{1 + \frac{b \cdot y}{t}}} \]
                  3. Step-by-step derivation
                    1. lower-/.f64N/A

                      \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\color{blue}{1 + \frac{b \cdot y}{t}}} \]
                    2. +-commutativeN/A

                      \[\leadsto \frac{\frac{y \cdot z}{t} + x}{\color{blue}{1} + \frac{b \cdot y}{t}} \]
                    3. associate-/l*N/A

                      \[\leadsto \frac{y \cdot \frac{z}{t} + x}{1 + \frac{b \cdot y}{t}} \]
                    4. lower-fma.f64N/A

                      \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\color{blue}{1} + \frac{b \cdot y}{t}} \]
                    5. lower-/.f64N/A

                      \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{1 + \frac{b \cdot y}{t}} \]
                    6. +-commutativeN/A

                      \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\frac{b \cdot y}{t} + \color{blue}{1}} \]
                    7. associate-/l*N/A

                      \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{b \cdot \frac{y}{t} + 1} \]
                    8. lower-fma.f64N/A

                      \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\mathsf{fma}\left(b, \color{blue}{\frac{y}{t}}, 1\right)} \]
                    9. lower-/.f6446.1

                      \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\mathsf{fma}\left(b, \frac{y}{\color{blue}{t}}, 1\right)} \]
                  4. Applied rewrites46.1%

                    \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\mathsf{fma}\left(b, \frac{y}{t}, 1\right)}} \]
                  5. Taylor expanded in y around 0

                    \[\leadsto x \]
                  6. Step-by-step derivation
                    1. Applied rewrites19.8%

                      \[\leadsto x \]
                    2. Add Preprocessing

                    Reproduce

                    ?
                    herbie shell --seed 2025115 
                    (FPCore (x y z t a b)
                      :name "Diagrams.Solve.Tridiagonal:solveCyclicTriDiagonal from diagrams-solve-0.1, B"
                      :precision binary64
                      (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))