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

Percentage Accurate: 74.7% → 92.1%
Time: 13.4s
Alternatives: 15
Speedup: 0.8×

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));
}
real(8) function code(x, y, z, t, a, b)
    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}

Sampling outcomes in binary64 precision:

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 15 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: 74.7% 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));
}
real(8) function code(x, y, z, t, a, b)
    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: 92.1% accurate, 0.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\ t_2 := \frac{z}{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)} \cdot \frac{y}{t}\\ t_3 := t \cdot \left(\frac{x}{b} - \frac{\mathsf{fma}\left(z, a, z\right)}{b \cdot b}\right)\\ \mathbf{if}\;t\_1 \leq -\infty:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_1 \leq -2 \cdot 10^{-319}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_1 \leq 0:\\ \;\;\;\;\frac{z}{b} + \frac{\mathsf{fma}\left(\left(-1 - a\right) \cdot t\_3, \frac{t}{y \cdot b}, t\_3\right)}{y}\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+306}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_1 \leq \infty:\\ \;\;\;\;t\_2\\ \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)) (+ (+ a 1.0) (/ (* y b) t))))
        (t_2 (* (/ z (+ 1.0 (fma y (/ b t) a))) (/ y t)))
        (t_3 (* t (- (/ x b) (/ (fma z a z) (* b b))))))
   (if (<= t_1 (- INFINITY))
     t_2
     (if (<= t_1 -2e-319)
       t_1
       (if (<= t_1 0.0)
         (+ (/ z b) (/ (fma (* (- -1.0 a) t_3) (/ t (* y b)) t_3) y))
         (if (<= t_1 5e+306) t_1 (if (<= t_1 INFINITY) t_2 (/ z b))))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
	double t_2 = (z / (1.0 + fma(y, (b / t), a))) * (y / t);
	double t_3 = t * ((x / b) - (fma(z, a, z) / (b * b)));
	double tmp;
	if (t_1 <= -((double) INFINITY)) {
		tmp = t_2;
	} else if (t_1 <= -2e-319) {
		tmp = t_1;
	} else if (t_1 <= 0.0) {
		tmp = (z / b) + (fma(((-1.0 - a) * t_3), (t / (y * b)), t_3) / y);
	} else if (t_1 <= 5e+306) {
		tmp = t_1;
	} else if (t_1 <= ((double) INFINITY)) {
		tmp = t_2;
	} else {
		tmp = z / b;
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t)))
	t_2 = Float64(Float64(z / Float64(1.0 + fma(y, Float64(b / t), a))) * Float64(y / t))
	t_3 = Float64(t * Float64(Float64(x / b) - Float64(fma(z, a, z) / Float64(b * b))))
	tmp = 0.0
	if (t_1 <= Float64(-Inf))
		tmp = t_2;
	elseif (t_1 <= -2e-319)
		tmp = t_1;
	elseif (t_1 <= 0.0)
		tmp = Float64(Float64(z / b) + Float64(fma(Float64(Float64(-1.0 - a) * t_3), Float64(t / Float64(y * b)), t_3) / y));
	elseif (t_1 <= 5e+306)
		tmp = t_1;
	elseif (t_1 <= Inf)
		tmp = t_2;
	else
		tmp = Float64(z / b);
	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[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z / N[(1.0 + N[(y * N[(b / t), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(y / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(x / b), $MachinePrecision] - N[(N[(z * a + z), $MachinePrecision] / N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], t$95$2, If[LessEqual[t$95$1, -2e-319], t$95$1, If[LessEqual[t$95$1, 0.0], N[(N[(z / b), $MachinePrecision] + N[(N[(N[(N[(-1.0 - a), $MachinePrecision] * t$95$3), $MachinePrecision] * N[(t / N[(y * b), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+306], t$95$1, If[LessEqual[t$95$1, Infinity], t$95$2, N[(z / b), $MachinePrecision]]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;t\_1 \leq -2 \cdot 10^{-319}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;\frac{z}{b} + \frac{\mathsf{fma}\left(\left(-1 - a\right) \cdot t\_3, \frac{t}{y \cdot b}, t\_3\right)}{y}\\

\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+306}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;t\_2\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 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 or 4.99999999999999993e306 < (/.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 39.0%

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + \mathsf{fma}\left(y, \color{blue}{\frac{b}{t}}, 1\right)} \]
    4. Applied egg-rr75.9%

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

      \[\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. /-lowering-/.f64N/A

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

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

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

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

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

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

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

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

        \[\leadsto \frac{y \cdot z}{\mathsf{fma}\left(t, \color{blue}{\mathsf{fma}\left(b, \frac{y}{t}, a\right)}, t\right)} \]
      10. /-lowering-/.f6437.9

        \[\leadsto \frac{y \cdot z}{\mathsf{fma}\left(t, \mathsf{fma}\left(b, \color{blue}{\frac{y}{t}}, a\right), t\right)} \]
    7. Simplified37.9%

      \[\leadsto \color{blue}{\frac{y \cdot z}{\mathsf{fma}\left(t, \mathsf{fma}\left(b, \frac{y}{t}, a\right), t\right)}} \]
    8. Step-by-step derivation
      1. *-commutativeN/A

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{z}{a + \left(y \cdot \frac{b}{t} + 1\right)} \cdot \frac{y}{t}} \]
    9. Applied egg-rr89.4%

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

    if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -1.99998e-319 or 0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 4.99999999999999993e306

    1. Initial program 98.5%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Add Preprocessing

    if -1.99998e-319 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 0.0

    1. Initial program 45.7%

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

      \[\leadsto \color{blue}{-1 \cdot \frac{\left(-1 \cdot \frac{t \cdot x}{b} + -1 \cdot \frac{t \cdot \left(\left(1 + a\right) \cdot \left(-1 \cdot \frac{t \cdot x}{b} - -1 \cdot \frac{t \cdot \left(z \cdot \left(1 + a\right)\right)}{{b}^{2}}\right)\right)}{b \cdot y}\right) - -1 \cdot \frac{t \cdot \left(z \cdot \left(1 + a\right)\right)}{{b}^{2}}}{y} + \frac{z}{b}} \]
    4. Simplified73.3%

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

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

    1. Initial program 0.0%

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

      \[\leadsto \color{blue}{\frac{z}{b}} \]
    4. Step-by-step derivation
      1. /-lowering-/.f6495.9

        \[\leadsto \color{blue}{\frac{z}{b}} \]
    5. Simplified95.9%

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

Alternative 2: 90.4% accurate, 0.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\ t_2 := \frac{z}{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)} \cdot \frac{y}{t}\\ \mathbf{if}\;t\_1 \leq -\infty:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_1 \leq -2 \cdot 10^{-319}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_1 \leq 0:\\ \;\;\;\;\mathsf{fma}\left(t, \frac{x}{y \cdot b} - \frac{\mathsf{fma}\left(z, a, z\right)}{b \cdot \left(y \cdot b\right)}, \frac{z}{b}\right)\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+306}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_1 \leq \infty:\\ \;\;\;\;t\_2\\ \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)) (+ (+ a 1.0) (/ (* y b) t))))
        (t_2 (* (/ z (+ 1.0 (fma y (/ b t) a))) (/ y t))))
   (if (<= t_1 (- INFINITY))
     t_2
     (if (<= t_1 -2e-319)
       t_1
       (if (<= t_1 0.0)
         (fma t (- (/ x (* y b)) (/ (fma z a z) (* b (* y b)))) (/ z b))
         (if (<= t_1 5e+306) t_1 (if (<= t_1 INFINITY) t_2 (/ z b))))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
	double t_2 = (z / (1.0 + fma(y, (b / t), a))) * (y / t);
	double tmp;
	if (t_1 <= -((double) INFINITY)) {
		tmp = t_2;
	} else if (t_1 <= -2e-319) {
		tmp = t_1;
	} else if (t_1 <= 0.0) {
		tmp = fma(t, ((x / (y * b)) - (fma(z, a, z) / (b * (y * b)))), (z / b));
	} else if (t_1 <= 5e+306) {
		tmp = t_1;
	} else if (t_1 <= ((double) INFINITY)) {
		tmp = t_2;
	} else {
		tmp = z / b;
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t)))
	t_2 = Float64(Float64(z / Float64(1.0 + fma(y, Float64(b / t), a))) * Float64(y / t))
	tmp = 0.0
	if (t_1 <= Float64(-Inf))
		tmp = t_2;
	elseif (t_1 <= -2e-319)
		tmp = t_1;
	elseif (t_1 <= 0.0)
		tmp = fma(t, Float64(Float64(x / Float64(y * b)) - Float64(fma(z, a, z) / Float64(b * Float64(y * b)))), Float64(z / b));
	elseif (t_1 <= 5e+306)
		tmp = t_1;
	elseif (t_1 <= Inf)
		tmp = t_2;
	else
		tmp = Float64(z / b);
	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[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z / N[(1.0 + N[(y * N[(b / t), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(y / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], t$95$2, If[LessEqual[t$95$1, -2e-319], t$95$1, If[LessEqual[t$95$1, 0.0], N[(t * N[(N[(x / N[(y * b), $MachinePrecision]), $MachinePrecision] - N[(N[(z * a + z), $MachinePrecision] / N[(b * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z / b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+306], t$95$1, If[LessEqual[t$95$1, Infinity], t$95$2, N[(z / b), $MachinePrecision]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;t\_1 \leq -2 \cdot 10^{-319}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;\mathsf{fma}\left(t, \frac{x}{y \cdot b} - \frac{\mathsf{fma}\left(z, a, z\right)}{b \cdot \left(y \cdot b\right)}, \frac{z}{b}\right)\\

\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+306}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;t\_2\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 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 or 4.99999999999999993e306 < (/.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 39.0%

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + \mathsf{fma}\left(y, \color{blue}{\frac{b}{t}}, 1\right)} \]
    4. Applied egg-rr75.9%

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

      \[\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. /-lowering-/.f64N/A

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

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

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

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

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

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

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

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

        \[\leadsto \frac{y \cdot z}{\mathsf{fma}\left(t, \color{blue}{\mathsf{fma}\left(b, \frac{y}{t}, a\right)}, t\right)} \]
      10. /-lowering-/.f6437.9

        \[\leadsto \frac{y \cdot z}{\mathsf{fma}\left(t, \mathsf{fma}\left(b, \color{blue}{\frac{y}{t}}, a\right), t\right)} \]
    7. Simplified37.9%

      \[\leadsto \color{blue}{\frac{y \cdot z}{\mathsf{fma}\left(t, \mathsf{fma}\left(b, \frac{y}{t}, a\right), t\right)}} \]
    8. Step-by-step derivation
      1. *-commutativeN/A

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{z}{a + \left(y \cdot \frac{b}{t} + 1\right)} \cdot \frac{y}{t}} \]
    9. Applied egg-rr89.4%

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

    if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -1.99998e-319 or 0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 4.99999999999999993e306

    1. Initial program 98.5%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Add Preprocessing

    if -1.99998e-319 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 0.0

    1. Initial program 45.7%

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

      \[\leadsto \color{blue}{\left(\frac{z}{b} + \frac{t \cdot x}{b \cdot y}\right) - \frac{t \cdot \left(z \cdot \left(1 + a\right)\right)}{{b}^{2} \cdot y}} \]
    4. Step-by-step derivation
      1. sub-negN/A

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

        \[\leadsto \color{blue}{\frac{z}{b} + \left(\frac{t \cdot x}{b \cdot y} + \left(\mathsf{neg}\left(\frac{t \cdot \left(z \cdot \left(1 + a\right)\right)}{{b}^{2} \cdot y}\right)\right)\right)} \]
      3. sub-negN/A

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

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

        \[\leadsto \frac{z}{b} + \left(t \cdot \frac{x}{b \cdot y} - \color{blue}{t \cdot \frac{z \cdot \left(1 + a\right)}{{b}^{2} \cdot y}}\right) \]
      6. distribute-lft-out--N/A

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

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(t, \frac{x}{b \cdot y} - \frac{z \cdot \left(1 + a\right)}{{b}^{2} \cdot y}, \frac{z}{b}\right)} \]
    5. Simplified65.6%

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

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

    1. Initial program 0.0%

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

      \[\leadsto \color{blue}{\frac{z}{b}} \]
    4. Step-by-step derivation
      1. /-lowering-/.f6495.9

        \[\leadsto \color{blue}{\frac{z}{b}} \]
    5. Simplified95.9%

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

Alternative 3: 91.8% accurate, 0.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\ t_2 := \frac{z}{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)} \cdot \frac{y}{t}\\ \mathbf{if}\;t\_1 \leq -\infty:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_1 \leq -2 \cdot 10^{-319}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_1 \leq 0:\\ \;\;\;\;\frac{y \cdot z}{\mathsf{fma}\left(b, y, \mathsf{fma}\left(t, a, t\right)\right)}\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+306}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_1 \leq \infty:\\ \;\;\;\;t\_2\\ \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)) (+ (+ a 1.0) (/ (* y b) t))))
        (t_2 (* (/ z (+ 1.0 (fma y (/ b t) a))) (/ y t))))
   (if (<= t_1 (- INFINITY))
     t_2
     (if (<= t_1 -2e-319)
       t_1
       (if (<= t_1 0.0)
         (/ (* y z) (fma b y (fma t a t)))
         (if (<= t_1 5e+306) t_1 (if (<= t_1 INFINITY) t_2 (/ z b))))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
	double t_2 = (z / (1.0 + fma(y, (b / t), a))) * (y / t);
	double tmp;
	if (t_1 <= -((double) INFINITY)) {
		tmp = t_2;
	} else if (t_1 <= -2e-319) {
		tmp = t_1;
	} else if (t_1 <= 0.0) {
		tmp = (y * z) / fma(b, y, fma(t, a, t));
	} else if (t_1 <= 5e+306) {
		tmp = t_1;
	} else if (t_1 <= ((double) INFINITY)) {
		tmp = t_2;
	} else {
		tmp = z / b;
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t)))
	t_2 = Float64(Float64(z / Float64(1.0 + fma(y, Float64(b / t), a))) * Float64(y / t))
	tmp = 0.0
	if (t_1 <= Float64(-Inf))
		tmp = t_2;
	elseif (t_1 <= -2e-319)
		tmp = t_1;
	elseif (t_1 <= 0.0)
		tmp = Float64(Float64(y * z) / fma(b, y, fma(t, a, t)));
	elseif (t_1 <= 5e+306)
		tmp = t_1;
	elseif (t_1 <= Inf)
		tmp = t_2;
	else
		tmp = Float64(z / b);
	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[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z / N[(1.0 + N[(y * N[(b / t), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(y / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], t$95$2, If[LessEqual[t$95$1, -2e-319], t$95$1, If[LessEqual[t$95$1, 0.0], N[(N[(y * z), $MachinePrecision] / N[(b * y + N[(t * a + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+306], t$95$1, If[LessEqual[t$95$1, Infinity], t$95$2, N[(z / b), $MachinePrecision]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;t\_1 \leq -2 \cdot 10^{-319}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;\frac{y \cdot z}{\mathsf{fma}\left(b, y, \mathsf{fma}\left(t, a, t\right)\right)}\\

\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+306}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;t\_2\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 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 or 4.99999999999999993e306 < (/.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 39.0%

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + \mathsf{fma}\left(y, \color{blue}{\frac{b}{t}}, 1\right)} \]
    4. Applied egg-rr75.9%

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

      \[\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. /-lowering-/.f64N/A

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

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

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

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

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

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

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

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

        \[\leadsto \frac{y \cdot z}{\mathsf{fma}\left(t, \color{blue}{\mathsf{fma}\left(b, \frac{y}{t}, a\right)}, t\right)} \]
      10. /-lowering-/.f6437.9

        \[\leadsto \frac{y \cdot z}{\mathsf{fma}\left(t, \mathsf{fma}\left(b, \color{blue}{\frac{y}{t}}, a\right), t\right)} \]
    7. Simplified37.9%

      \[\leadsto \color{blue}{\frac{y \cdot z}{\mathsf{fma}\left(t, \mathsf{fma}\left(b, \frac{y}{t}, a\right), t\right)}} \]
    8. Step-by-step derivation
      1. *-commutativeN/A

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{z}{a + \left(y \cdot \frac{b}{t} + 1\right)} \cdot \frac{y}{t}} \]
    9. Applied egg-rr89.4%

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

    if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -1.99998e-319 or 0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 4.99999999999999993e306

    1. Initial program 98.5%

      \[\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}} \]
    2. Add Preprocessing

    if -1.99998e-319 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 0.0

    1. Initial program 45.7%

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, 1\right)}} \]
      11. /-lowering-/.f6457.6

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

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

      \[\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. /-lowering-/.f64N/A

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

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

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

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

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

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

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

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

        \[\leadsto \frac{y \cdot z}{\mathsf{fma}\left(t, \color{blue}{\mathsf{fma}\left(b, \frac{y}{t}, a\right)}, t\right)} \]
      10. /-lowering-/.f6445.7

        \[\leadsto \frac{y \cdot z}{\mathsf{fma}\left(t, \mathsf{fma}\left(b, \color{blue}{\frac{y}{t}}, a\right), t\right)} \]
    7. Simplified45.7%

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

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

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

        \[\leadsto \frac{y \cdot z}{\mathsf{fma}\left(b, y, t \cdot \color{blue}{\left(a + 1\right)}\right)} \]
      3. distribute-lft-inN/A

        \[\leadsto \frac{y \cdot z}{\mathsf{fma}\left(b, y, \color{blue}{t \cdot a + t \cdot 1}\right)} \]
      4. *-rgt-identityN/A

        \[\leadsto \frac{y \cdot z}{\mathsf{fma}\left(b, y, t \cdot a + \color{blue}{t}\right)} \]
      5. accelerator-lowering-fma.f6462.4

        \[\leadsto \frac{y \cdot z}{\mathsf{fma}\left(b, y, \color{blue}{\mathsf{fma}\left(t, a, t\right)}\right)} \]
    10. Simplified62.4%

      \[\leadsto \frac{y \cdot z}{\color{blue}{\mathsf{fma}\left(b, y, \mathsf{fma}\left(t, a, 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)))

    1. Initial program 0.0%

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

      \[\leadsto \color{blue}{\frac{z}{b}} \]
    4. Step-by-step derivation
      1. /-lowering-/.f6495.9

        \[\leadsto \color{blue}{\frac{z}{b}} \]
    5. Simplified95.9%

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

Alternative 4: 78.4% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + \mathsf{fma}\left(y, \frac{b}{t}, 1\right)}\\ \mathbf{if}\;t \leq -5 \cdot 10^{-86}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -2.1 \cdot 10^{-260}:\\ \;\;\;\;t \cdot \left(\frac{x}{y \cdot b} + \frac{z}{t \cdot b}\right)\\ \mathbf{elif}\;t \leq 1.05 \cdot 10^{-109}:\\ \;\;\;\;y \cdot \frac{z}{\mathsf{fma}\left(a, t, \mathsf{fma}\left(y, b, t\right)\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 (fma y (/ b t) 1.0)))))
   (if (<= t -5e-86)
     t_1
     (if (<= t -2.1e-260)
       (* t (+ (/ x (* y b)) (/ z (* t b))))
       (if (<= t 1.05e-109) (* y (/ z (fma a t (fma y b t)))) 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 + fma(y, (b / t), 1.0));
	double tmp;
	if (t <= -5e-86) {
		tmp = t_1;
	} else if (t <= -2.1e-260) {
		tmp = t * ((x / (y * b)) + (z / (t * b)));
	} else if (t <= 1.05e-109) {
		tmp = y * (z / fma(a, t, fma(y, b, t)));
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = Float64(fma(y, Float64(z / t), x) / Float64(a + fma(y, Float64(b / t), 1.0)))
	tmp = 0.0
	if (t <= -5e-86)
		tmp = t_1;
	elseif (t <= -2.1e-260)
		tmp = Float64(t * Float64(Float64(x / Float64(y * b)) + Float64(z / Float64(t * b))));
	elseif (t <= 1.05e-109)
		tmp = Float64(y * Float64(z / fma(a, t, fma(y, b, t))));
	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] / N[(a + N[(y * N[(b / t), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5e-86], t$95$1, If[LessEqual[t, -2.1e-260], N[(t * N[(N[(x / N[(y * b), $MachinePrecision]), $MachinePrecision] + N[(z / N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.05e-109], N[(y * N[(z / N[(a * t + N[(y * b + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

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

\mathbf{elif}\;t \leq -2.1 \cdot 10^{-260}:\\
\;\;\;\;t \cdot \left(\frac{x}{y \cdot b} + \frac{z}{t \cdot b}\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -4.9999999999999999e-86 or 1.04999999999999998e-109 < t

    1. Initial program 77.9%

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, 1\right)}} \]
      11. /-lowering-/.f6489.5

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

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

    if -4.9999999999999999e-86 < t < -2.10000000000000005e-260

    1. Initial program 63.9%

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

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

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

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

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

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

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

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

        \[\leadsto \frac{t \cdot \mathsf{fma}\left(z, \color{blue}{\frac{y}{t}}, x\right)}{b \cdot y} \]
      8. *-commutativeN/A

        \[\leadsto \frac{t \cdot \mathsf{fma}\left(z, \frac{y}{t}, x\right)}{\color{blue}{y \cdot b}} \]
      9. *-lowering-*.f6445.8

        \[\leadsto \frac{t \cdot \mathsf{fma}\left(z, \frac{y}{t}, x\right)}{\color{blue}{y \cdot b}} \]
    5. Simplified45.8%

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

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

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

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

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

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

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

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

        \[\leadsto t \cdot \left(\frac{x}{y \cdot b} + \frac{z}{\color{blue}{t \cdot b}}\right) \]
      8. *-lowering-*.f6471.6

        \[\leadsto t \cdot \left(\frac{x}{y \cdot b} + \frac{z}{\color{blue}{t \cdot b}}\right) \]
    8. Simplified71.6%

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

    if -2.10000000000000005e-260 < t < 1.04999999999999998e-109

    1. Initial program 67.1%

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, 1\right)}} \]
      11. /-lowering-/.f6454.7

        \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + \mathsf{fma}\left(y, \color{blue}{\frac{b}{t}}, 1\right)} \]
    4. Applied egg-rr54.7%

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

      \[\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. /-lowering-/.f64N/A

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

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

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

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

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

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

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

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

        \[\leadsto \frac{y \cdot z}{\mathsf{fma}\left(t, \color{blue}{\mathsf{fma}\left(b, \frac{y}{t}, a\right)}, t\right)} \]
      10. /-lowering-/.f6446.2

        \[\leadsto \frac{y \cdot z}{\mathsf{fma}\left(t, \mathsf{fma}\left(b, \color{blue}{\frac{y}{t}}, a\right), t\right)} \]
    7. Simplified46.2%

      \[\leadsto \color{blue}{\frac{y \cdot z}{\mathsf{fma}\left(t, \mathsf{fma}\left(b, \frac{y}{t}, a\right), t\right)}} \]
    8. Step-by-step derivation
      1. associate-/l*N/A

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

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

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

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

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

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

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

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

        \[\leadsto \frac{z}{\mathsf{fma}\left(t, \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, a\right)}, t\right)} \cdot y \]
      10. /-lowering-/.f6448.0

        \[\leadsto \frac{z}{\mathsf{fma}\left(t, \mathsf{fma}\left(y, \color{blue}{\frac{b}{t}}, a\right), t\right)} \cdot y \]
    9. Applied egg-rr48.0%

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

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

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

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

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

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

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

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

        \[\leadsto \frac{z}{\mathsf{fma}\left(a, t, \color{blue}{b \cdot y + t}\right)} \cdot y \]
      8. *-commutativeN/A

        \[\leadsto \frac{z}{\mathsf{fma}\left(a, t, \color{blue}{y \cdot b} + t\right)} \cdot y \]
      9. accelerator-lowering-fma.f6470.7

        \[\leadsto \frac{z}{\mathsf{fma}\left(a, t, \color{blue}{\mathsf{fma}\left(y, b, t\right)}\right)} \cdot y \]
    12. Simplified70.7%

      \[\leadsto \frac{z}{\color{blue}{\mathsf{fma}\left(a, t, \mathsf{fma}\left(y, b, t\right)\right)}} \cdot y \]
  3. Recombined 3 regimes into one program.
  4. Final simplification81.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -5 \cdot 10^{-86}:\\ \;\;\;\;\frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + \mathsf{fma}\left(y, \frac{b}{t}, 1\right)}\\ \mathbf{elif}\;t \leq -2.1 \cdot 10^{-260}:\\ \;\;\;\;t \cdot \left(\frac{x}{y \cdot b} + \frac{z}{t \cdot b}\right)\\ \mathbf{elif}\;t \leq 1.05 \cdot 10^{-109}:\\ \;\;\;\;y \cdot \frac{z}{\mathsf{fma}\left(a, t, \mathsf{fma}\left(y, b, t\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + \mathsf{fma}\left(y, \frac{b}{t}, 1\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 64.6% accurate, 0.9× speedup?

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -4.8000000000000003e198 or 4.00000000000000037e56 < b

    1. Initial program 51.4%

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

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

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

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

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

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

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

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

        \[\leadsto \frac{t \cdot \mathsf{fma}\left(z, \color{blue}{\frac{y}{t}}, x\right)}{b \cdot y} \]
      8. *-commutativeN/A

        \[\leadsto \frac{t \cdot \mathsf{fma}\left(z, \frac{y}{t}, x\right)}{\color{blue}{y \cdot b}} \]
      9. *-lowering-*.f6435.7

        \[\leadsto \frac{t \cdot \mathsf{fma}\left(z, \frac{y}{t}, x\right)}{\color{blue}{y \cdot b}} \]
    5. Simplified35.7%

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

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

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

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

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

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

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

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

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

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

        \[\leadsto z \cdot \mathsf{fma}\left(t, \frac{x}{\color{blue}{\left(y \cdot b\right)} \cdot z}, \frac{1}{b}\right) \]
      10. /-lowering-/.f6467.7

        \[\leadsto z \cdot \mathsf{fma}\left(t, \frac{x}{\left(y \cdot b\right) \cdot z}, \color{blue}{\frac{1}{b}}\right) \]
    8. Simplified67.7%

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

    if -4.8000000000000003e198 < b < -4.20000000000000009e-103

    1. Initial program 75.1%

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, 1\right)}} \]
      11. /-lowering-/.f6468.7

        \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + \mathsf{fma}\left(y, \color{blue}{\frac{b}{t}}, 1\right)} \]
    4. Applied egg-rr68.7%

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

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

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

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

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

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

    if -4.20000000000000009e-103 < b < 4.00000000000000037e56

    1. Initial program 84.8%

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{z \cdot \frac{y}{t}} + x}{1 + a} \]
      5. accelerator-lowering-fma.f64N/A

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

        \[\leadsto \frac{\mathsf{fma}\left(z, \color{blue}{\frac{y}{t}}, x\right)}{1 + a} \]
      7. +-lowering-+.f6480.7

        \[\leadsto \frac{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}{\color{blue}{1 + a}} \]
    5. Simplified80.7%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -4.8 \cdot 10^{+198}:\\ \;\;\;\;z \cdot \mathsf{fma}\left(t, \frac{x}{z \cdot \left(y \cdot b\right)}, \frac{1}{b}\right)\\ \mathbf{elif}\;b \leq -4.2 \cdot 10^{-103}:\\ \;\;\;\;\frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + \frac{y \cdot b}{t}}\\ \mathbf{elif}\;b \leq 4 \cdot 10^{+56}:\\ \;\;\;\;\frac{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}{a + 1}\\ \mathbf{else}:\\ \;\;\;\;z \cdot \mathsf{fma}\left(t, \frac{x}{z \cdot \left(y \cdot b\right)}, \frac{1}{b}\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 6: 66.5% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + 1}\\ \mathbf{if}\;t \leq -1.04 \cdot 10^{-16}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -2.2 \cdot 10^{-260}:\\ \;\;\;\;t \cdot \left(\frac{x}{y \cdot b} + \frac{z}{t \cdot b}\right)\\ \mathbf{elif}\;t \leq 1.95 \cdot 10^{-109}:\\ \;\;\;\;y \cdot \frac{z}{\mathsf{fma}\left(a, t, \mathsf{fma}\left(y, b, t\right)\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 1.0))))
   (if (<= t -1.04e-16)
     t_1
     (if (<= t -2.2e-260)
       (* t (+ (/ x (* y b)) (/ z (* t b))))
       (if (<= t 1.95e-109) (* y (/ z (fma a t (fma y b t)))) 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 + 1.0);
	double tmp;
	if (t <= -1.04e-16) {
		tmp = t_1;
	} else if (t <= -2.2e-260) {
		tmp = t * ((x / (y * b)) + (z / (t * b)));
	} else if (t <= 1.95e-109) {
		tmp = y * (z / fma(a, t, fma(y, b, t)));
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = Float64(fma(y, Float64(z / t), x) / Float64(a + 1.0))
	tmp = 0.0
	if (t <= -1.04e-16)
		tmp = t_1;
	elseif (t <= -2.2e-260)
		tmp = Float64(t * Float64(Float64(x / Float64(y * b)) + Float64(z / Float64(t * b))));
	elseif (t <= 1.95e-109)
		tmp = Float64(y * Float64(z / fma(a, t, fma(y, b, t))));
	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] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.04e-16], t$95$1, If[LessEqual[t, -2.2e-260], N[(t * N[(N[(x / N[(y * b), $MachinePrecision]), $MachinePrecision] + N[(z / N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.95e-109], N[(y * N[(z / N[(a * t + N[(y * b + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

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

\mathbf{elif}\;t \leq -2.2 \cdot 10^{-260}:\\
\;\;\;\;t \cdot \left(\frac{x}{y \cdot b} + \frac{z}{t \cdot b}\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -1.04000000000000001e-16 or 1.95000000000000011e-109 < t

    1. Initial program 77.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -1.04000000000000001e-16 < t < -2.20000000000000017e-260

      1. Initial program 67.0%

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

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

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

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

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

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

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

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

          \[\leadsto \frac{t \cdot \mathsf{fma}\left(z, \color{blue}{\frac{y}{t}}, x\right)}{b \cdot y} \]
        8. *-commutativeN/A

          \[\leadsto \frac{t \cdot \mathsf{fma}\left(z, \frac{y}{t}, x\right)}{\color{blue}{y \cdot b}} \]
        9. *-lowering-*.f6448.3

          \[\leadsto \frac{t \cdot \mathsf{fma}\left(z, \frac{y}{t}, x\right)}{\color{blue}{y \cdot b}} \]
      5. Simplified48.3%

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

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

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

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

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

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

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

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

          \[\leadsto t \cdot \left(\frac{x}{y \cdot b} + \frac{z}{\color{blue}{t \cdot b}}\right) \]
        8. *-lowering-*.f6471.9

          \[\leadsto t \cdot \left(\frac{x}{y \cdot b} + \frac{z}{\color{blue}{t \cdot b}}\right) \]
      8. Simplified71.9%

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

      if -2.20000000000000017e-260 < t < 1.95000000000000011e-109

      1. Initial program 67.1%

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, 1\right)}} \]
        11. /-lowering-/.f6454.7

          \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + \mathsf{fma}\left(y, \color{blue}{\frac{b}{t}}, 1\right)} \]
      4. Applied egg-rr54.7%

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

        \[\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. /-lowering-/.f64N/A

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

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

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

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

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

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

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

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

          \[\leadsto \frac{y \cdot z}{\mathsf{fma}\left(t, \color{blue}{\mathsf{fma}\left(b, \frac{y}{t}, a\right)}, t\right)} \]
        10. /-lowering-/.f6446.2

          \[\leadsto \frac{y \cdot z}{\mathsf{fma}\left(t, \mathsf{fma}\left(b, \color{blue}{\frac{y}{t}}, a\right), t\right)} \]
      7. Simplified46.2%

        \[\leadsto \color{blue}{\frac{y \cdot z}{\mathsf{fma}\left(t, \mathsf{fma}\left(b, \frac{y}{t}, a\right), t\right)}} \]
      8. Step-by-step derivation
        1. associate-/l*N/A

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

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

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

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

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

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

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

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

          \[\leadsto \frac{z}{\mathsf{fma}\left(t, \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, a\right)}, t\right)} \cdot y \]
        10. /-lowering-/.f6448.0

          \[\leadsto \frac{z}{\mathsf{fma}\left(t, \mathsf{fma}\left(y, \color{blue}{\frac{b}{t}}, a\right), t\right)} \cdot y \]
      9. Applied egg-rr48.0%

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

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

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

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

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

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

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

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

          \[\leadsto \frac{z}{\mathsf{fma}\left(a, t, \color{blue}{b \cdot y + t}\right)} \cdot y \]
        8. *-commutativeN/A

          \[\leadsto \frac{z}{\mathsf{fma}\left(a, t, \color{blue}{y \cdot b} + t\right)} \cdot y \]
        9. accelerator-lowering-fma.f6470.7

          \[\leadsto \frac{z}{\mathsf{fma}\left(a, t, \color{blue}{\mathsf{fma}\left(y, b, t\right)}\right)} \cdot y \]
      12. Simplified70.7%

        \[\leadsto \frac{z}{\color{blue}{\mathsf{fma}\left(a, t, \mathsf{fma}\left(y, b, t\right)\right)}} \cdot y \]
    7. Recombined 3 regimes into one program.
    8. Final simplification72.9%

      \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.04 \cdot 10^{-16}:\\ \;\;\;\;\frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + 1}\\ \mathbf{elif}\;t \leq -2.2 \cdot 10^{-260}:\\ \;\;\;\;t \cdot \left(\frac{x}{y \cdot b} + \frac{z}{t \cdot b}\right)\\ \mathbf{elif}\;t \leq 1.95 \cdot 10^{-109}:\\ \;\;\;\;y \cdot \frac{z}{\mathsf{fma}\left(a, t, \mathsf{fma}\left(y, b, t\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + 1}\\ \end{array} \]
    9. Add Preprocessing

    Alternative 7: 65.2% accurate, 1.1× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + 1}\\ \mathbf{if}\;t \leq -1.5 \cdot 10^{-16}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 6.2 \cdot 10^{-208}:\\ \;\;\;\;\frac{\mathsf{fma}\left(x, t, y \cdot z\right)}{y \cdot b}\\ \mathbf{elif}\;t \leq 4.3 \cdot 10^{-110}:\\ \;\;\;\;y \cdot \frac{z}{\mathsf{fma}\left(a, t, \mathsf{fma}\left(y, b, t\right)\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 1.0))))
       (if (<= t -1.5e-16)
         t_1
         (if (<= t 6.2e-208)
           (/ (fma x t (* y z)) (* y b))
           (if (<= t 4.3e-110) (* y (/ z (fma a t (fma y b t)))) 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 + 1.0);
    	double tmp;
    	if (t <= -1.5e-16) {
    		tmp = t_1;
    	} else if (t <= 6.2e-208) {
    		tmp = fma(x, t, (y * z)) / (y * b);
    	} else if (t <= 4.3e-110) {
    		tmp = y * (z / fma(a, t, fma(y, b, t)));
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a, b)
    	t_1 = Float64(fma(y, Float64(z / t), x) / Float64(a + 1.0))
    	tmp = 0.0
    	if (t <= -1.5e-16)
    		tmp = t_1;
    	elseif (t <= 6.2e-208)
    		tmp = Float64(fma(x, t, Float64(y * z)) / Float64(y * b));
    	elseif (t <= 4.3e-110)
    		tmp = Float64(y * Float64(z / fma(a, t, fma(y, b, t))));
    	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] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.5e-16], t$95$1, If[LessEqual[t, 6.2e-208], N[(N[(x * t + N[(y * z), $MachinePrecision]), $MachinePrecision] / N[(y * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.3e-110], N[(y * N[(z / N[(a * t + N[(y * b + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + 1}\\
    \mathbf{if}\;t \leq -1.5 \cdot 10^{-16}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;t \leq 6.2 \cdot 10^{-208}:\\
    \;\;\;\;\frac{\mathsf{fma}\left(x, t, y \cdot z\right)}{y \cdot b}\\
    
    \mathbf{elif}\;t \leq 4.3 \cdot 10^{-110}:\\
    \;\;\;\;y \cdot \frac{z}{\mathsf{fma}\left(a, t, \mathsf{fma}\left(y, b, t\right)\right)}\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if t < -1.49999999999999997e-16 or 4.30000000000000025e-110 < t

      1. Initial program 77.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if -1.49999999999999997e-16 < t < 6.1999999999999996e-208

        1. Initial program 62.0%

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

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

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

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

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

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

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

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

            \[\leadsto \frac{t \cdot \mathsf{fma}\left(z, \color{blue}{\frac{y}{t}}, x\right)}{b \cdot y} \]
          8. *-commutativeN/A

            \[\leadsto \frac{t \cdot \mathsf{fma}\left(z, \frac{y}{t}, x\right)}{\color{blue}{y \cdot b}} \]
          9. *-lowering-*.f6443.1

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

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

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

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

            \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(x, t, y \cdot z\right)}}{y \cdot b} \]
          3. *-lowering-*.f6468.0

            \[\leadsto \frac{\mathsf{fma}\left(x, t, \color{blue}{y \cdot z}\right)}{y \cdot b} \]
        8. Simplified68.0%

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

        if 6.1999999999999996e-208 < t < 4.30000000000000025e-110

        1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, 1\right)}} \]
          11. /-lowering-/.f6461.6

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

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

          \[\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. /-lowering-/.f64N/A

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

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

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

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

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

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

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

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

            \[\leadsto \frac{y \cdot z}{\mathsf{fma}\left(t, \color{blue}{\mathsf{fma}\left(b, \frac{y}{t}, a\right)}, t\right)} \]
          10. /-lowering-/.f6461.8

            \[\leadsto \frac{y \cdot z}{\mathsf{fma}\left(t, \mathsf{fma}\left(b, \color{blue}{\frac{y}{t}}, a\right), t\right)} \]
        7. Simplified61.8%

          \[\leadsto \color{blue}{\frac{y \cdot z}{\mathsf{fma}\left(t, \mathsf{fma}\left(b, \frac{y}{t}, a\right), t\right)}} \]
        8. Step-by-step derivation
          1. associate-/l*N/A

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

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

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

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

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

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

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

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

            \[\leadsto \frac{z}{\mathsf{fma}\left(t, \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, a\right)}, t\right)} \cdot y \]
          10. /-lowering-/.f6459.4

            \[\leadsto \frac{z}{\mathsf{fma}\left(t, \mathsf{fma}\left(y, \color{blue}{\frac{b}{t}}, a\right), t\right)} \cdot y \]
        9. Applied egg-rr59.4%

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

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

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

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

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

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

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

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

            \[\leadsto \frac{z}{\mathsf{fma}\left(a, t, \color{blue}{b \cdot y + t}\right)} \cdot y \]
          8. *-commutativeN/A

            \[\leadsto \frac{z}{\mathsf{fma}\left(a, t, \color{blue}{y \cdot b} + t\right)} \cdot y \]
          9. accelerator-lowering-fma.f6472.6

            \[\leadsto \frac{z}{\mathsf{fma}\left(a, t, \color{blue}{\mathsf{fma}\left(y, b, t\right)}\right)} \cdot y \]
        12. Simplified72.6%

          \[\leadsto \frac{z}{\color{blue}{\mathsf{fma}\left(a, t, \mathsf{fma}\left(y, b, t\right)\right)}} \cdot y \]
      7. Recombined 3 regimes into one program.
      8. Final simplification72.1%

        \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.5 \cdot 10^{-16}:\\ \;\;\;\;\frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + 1}\\ \mathbf{elif}\;t \leq 6.2 \cdot 10^{-208}:\\ \;\;\;\;\frac{\mathsf{fma}\left(x, t, y \cdot z\right)}{y \cdot b}\\ \mathbf{elif}\;t \leq 4.3 \cdot 10^{-110}:\\ \;\;\;\;y \cdot \frac{z}{\mathsf{fma}\left(a, t, \mathsf{fma}\left(y, b, t\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + 1}\\ \end{array} \]
      9. Add Preprocessing

      Alternative 8: 59.8% accurate, 1.2× speedup?

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

        1. Initial program 77.5%

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

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

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

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

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

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

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

            \[\leadsto \frac{x}{1 + \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, a\right)}} \]
          7. /-lowering-/.f6471.0

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

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

        if -6.9e28 < x < 1.3000000000000001e103

        1. Initial program 70.8%

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, 1\right)}} \]
          11. /-lowering-/.f6471.7

            \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + \mathsf{fma}\left(y, \color{blue}{\frac{b}{t}}, 1\right)} \]
        4. Applied egg-rr71.7%

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

          \[\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. /-lowering-/.f64N/A

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

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

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

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

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

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

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

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

            \[\leadsto \frac{y \cdot z}{\mathsf{fma}\left(t, \color{blue}{\mathsf{fma}\left(b, \frac{y}{t}, a\right)}, t\right)} \]
          10. /-lowering-/.f6447.0

            \[\leadsto \frac{y \cdot z}{\mathsf{fma}\left(t, \mathsf{fma}\left(b, \color{blue}{\frac{y}{t}}, a\right), t\right)} \]
        7. Simplified47.0%

          \[\leadsto \color{blue}{\frac{y \cdot z}{\mathsf{fma}\left(t, \mathsf{fma}\left(b, \frac{y}{t}, a\right), t\right)}} \]
        8. Step-by-step derivation
          1. associate-/l*N/A

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

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

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

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

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

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

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

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

            \[\leadsto \frac{z}{\mathsf{fma}\left(t, \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, a\right)}, t\right)} \cdot y \]
          10. /-lowering-/.f6451.7

            \[\leadsto \frac{z}{\mathsf{fma}\left(t, \mathsf{fma}\left(y, \color{blue}{\frac{b}{t}}, a\right), t\right)} \cdot y \]
        9. Applied egg-rr51.7%

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

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

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

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

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

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

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

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

            \[\leadsto \frac{z}{\mathsf{fma}\left(a, t, \color{blue}{b \cdot y + t}\right)} \cdot y \]
          8. *-commutativeN/A

            \[\leadsto \frac{z}{\mathsf{fma}\left(a, t, \color{blue}{y \cdot b} + t\right)} \cdot y \]
          9. accelerator-lowering-fma.f6463.4

            \[\leadsto \frac{z}{\mathsf{fma}\left(a, t, \color{blue}{\mathsf{fma}\left(y, b, t\right)}\right)} \cdot y \]
        12. Simplified63.4%

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

        if 1.3000000000000001e103 < x

        1. Initial program 73.1%

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

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

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

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

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

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

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

            \[\leadsto \frac{x}{1 + \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, a\right)}} \]
          7. /-lowering-/.f6477.9

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

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

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

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

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

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

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

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

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

            \[\leadsto \frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, \color{blue}{a + 1}\right)} \]
        7. Applied egg-rr77.9%

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

        \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -6.9 \cdot 10^{+28}:\\ \;\;\;\;\frac{x}{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}\\ \mathbf{elif}\;x \leq 1.3 \cdot 10^{+103}:\\ \;\;\;\;y \cdot \frac{z}{\mathsf{fma}\left(a, t, \mathsf{fma}\left(y, b, t\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, a + 1\right)}\\ \end{array} \]
      5. Add Preprocessing

      Alternative 9: 59.4% accurate, 1.2× speedup?

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

        1. Initial program 75.9%

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

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

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

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

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

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

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

            \[\leadsto \frac{x}{1 + \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, a\right)}} \]
          7. /-lowering-/.f6473.6

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

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

        if -3.49999999999999979e29 < x < 9.0000000000000004e101

        1. Initial program 70.8%

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, 1\right)}} \]
          11. /-lowering-/.f6471.7

            \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + \mathsf{fma}\left(y, \color{blue}{\frac{b}{t}}, 1\right)} \]
        4. Applied egg-rr71.7%

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

          \[\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. /-lowering-/.f64N/A

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

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

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

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

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

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

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

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

            \[\leadsto \frac{y \cdot z}{\mathsf{fma}\left(t, \color{blue}{\mathsf{fma}\left(b, \frac{y}{t}, a\right)}, t\right)} \]
          10. /-lowering-/.f6447.0

            \[\leadsto \frac{y \cdot z}{\mathsf{fma}\left(t, \mathsf{fma}\left(b, \color{blue}{\frac{y}{t}}, a\right), t\right)} \]
        7. Simplified47.0%

          \[\leadsto \color{blue}{\frac{y \cdot z}{\mathsf{fma}\left(t, \mathsf{fma}\left(b, \frac{y}{t}, a\right), t\right)}} \]
        8. Step-by-step derivation
          1. associate-/l*N/A

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

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

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

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

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

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

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

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

            \[\leadsto \frac{z}{\mathsf{fma}\left(t, \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, a\right)}, t\right)} \cdot y \]
          10. /-lowering-/.f6451.7

            \[\leadsto \frac{z}{\mathsf{fma}\left(t, \mathsf{fma}\left(y, \color{blue}{\frac{b}{t}}, a\right), t\right)} \cdot y \]
        9. Applied egg-rr51.7%

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

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

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

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

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

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

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

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

            \[\leadsto \frac{z}{\mathsf{fma}\left(a, t, \color{blue}{b \cdot y + t}\right)} \cdot y \]
          8. *-commutativeN/A

            \[\leadsto \frac{z}{\mathsf{fma}\left(a, t, \color{blue}{y \cdot b} + t\right)} \cdot y \]
          9. accelerator-lowering-fma.f6463.4

            \[\leadsto \frac{z}{\mathsf{fma}\left(a, t, \color{blue}{\mathsf{fma}\left(y, b, t\right)}\right)} \cdot y \]
        12. Simplified63.4%

          \[\leadsto \frac{z}{\color{blue}{\mathsf{fma}\left(a, t, \mathsf{fma}\left(y, b, t\right)\right)}} \cdot y \]
      3. Recombined 2 regimes into one program.
      4. Final simplification67.5%

        \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -3.5 \cdot 10^{+29}:\\ \;\;\;\;\frac{x}{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}\\ \mathbf{elif}\;x \leq 9 \cdot 10^{+101}:\\ \;\;\;\;y \cdot \frac{z}{\mathsf{fma}\left(a, t, \mathsf{fma}\left(y, b, t\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{1 + \mathsf{fma}\left(y, \frac{b}{t}, a\right)}\\ \end{array} \]
      5. Add Preprocessing

      Alternative 10: 54.1% accurate, 1.3× speedup?

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

        1. Initial program 77.3%

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

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

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

            \[\leadsto \frac{x}{\color{blue}{1 + a}} \]
        5. Simplified57.5%

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

        if -1.04000000000000001e-16 < t < 1.9500000000000001e-207

        1. Initial program 62.0%

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

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

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

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

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

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

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

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

            \[\leadsto \frac{t \cdot \mathsf{fma}\left(z, \color{blue}{\frac{y}{t}}, x\right)}{b \cdot y} \]
          8. *-commutativeN/A

            \[\leadsto \frac{t \cdot \mathsf{fma}\left(z, \frac{y}{t}, x\right)}{\color{blue}{y \cdot b}} \]
          9. *-lowering-*.f6443.1

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

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

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

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

            \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(x, t, y \cdot z\right)}}{y \cdot b} \]
          3. *-lowering-*.f6468.0

            \[\leadsto \frac{\mathsf{fma}\left(x, t, \color{blue}{y \cdot z}\right)}{y \cdot b} \]
        8. Simplified68.0%

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

        if 1.9500000000000001e-207 < t < 3.39999999999999997e-111

        1. Initial program 79.1%

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, 1\right)}} \]
          11. /-lowering-/.f6461.6

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

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

          \[\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. /-lowering-/.f64N/A

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

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

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

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

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

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

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

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

            \[\leadsto \frac{y \cdot z}{\mathsf{fma}\left(t, \color{blue}{\mathsf{fma}\left(b, \frac{y}{t}, a\right)}, t\right)} \]
          10. /-lowering-/.f6461.8

            \[\leadsto \frac{y \cdot z}{\mathsf{fma}\left(t, \mathsf{fma}\left(b, \color{blue}{\frac{y}{t}}, a\right), t\right)} \]
        7. Simplified61.8%

          \[\leadsto \color{blue}{\frac{y \cdot z}{\mathsf{fma}\left(t, \mathsf{fma}\left(b, \frac{y}{t}, a\right), t\right)}} \]
        8. Step-by-step derivation
          1. associate-/l*N/A

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

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

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

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

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

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

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

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

            \[\leadsto \frac{z}{\mathsf{fma}\left(t, \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, a\right)}, t\right)} \cdot y \]
          10. /-lowering-/.f6459.4

            \[\leadsto \frac{z}{\mathsf{fma}\left(t, \mathsf{fma}\left(y, \color{blue}{\frac{b}{t}}, a\right), t\right)} \cdot y \]
        9. Applied egg-rr59.4%

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

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

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

            \[\leadsto \frac{z}{\color{blue}{y \cdot b} + t} \cdot y \]
          3. accelerator-lowering-fma.f6454.5

            \[\leadsto \frac{z}{\color{blue}{\mathsf{fma}\left(y, b, t\right)}} \cdot y \]
        12. Simplified54.5%

          \[\leadsto \frac{z}{\color{blue}{\mathsf{fma}\left(y, b, t\right)}} \cdot y \]
      3. Recombined 3 regimes into one program.
      4. Final simplification60.3%

        \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.04 \cdot 10^{-16}:\\ \;\;\;\;\frac{x}{a + 1}\\ \mathbf{elif}\;t \leq 1.95 \cdot 10^{-207}:\\ \;\;\;\;\frac{\mathsf{fma}\left(x, t, y \cdot z\right)}{y \cdot b}\\ \mathbf{elif}\;t \leq 3.4 \cdot 10^{-111}:\\ \;\;\;\;y \cdot \frac{z}{\mathsf{fma}\left(y, b, t\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a + 1}\\ \end{array} \]
      5. Add Preprocessing

      Alternative 11: 57.6% accurate, 1.3× speedup?

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

        1. Initial program 76.5%

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

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

            \[\leadsto \color{blue}{\frac{x}{1 + a}} \]
          2. +-lowering-+.f6460.2

            \[\leadsto \frac{x}{\color{blue}{1 + a}} \]
        5. Simplified60.2%

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

        if -5.00000000000000021e35 < t < 2.1000000000000001e-89

        1. Initial program 69.0%

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, 1\right)}} \]
          11. /-lowering-/.f6457.6

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

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

          \[\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. /-lowering-/.f64N/A

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

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

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

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

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

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

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

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

            \[\leadsto \frac{y \cdot z}{\mathsf{fma}\left(t, \color{blue}{\mathsf{fma}\left(b, \frac{y}{t}, a\right)}, t\right)} \]
          10. /-lowering-/.f6444.0

            \[\leadsto \frac{y \cdot z}{\mathsf{fma}\left(t, \mathsf{fma}\left(b, \color{blue}{\frac{y}{t}}, a\right), t\right)} \]
        7. Simplified44.0%

          \[\leadsto \color{blue}{\frac{y \cdot z}{\mathsf{fma}\left(t, \mathsf{fma}\left(b, \frac{y}{t}, a\right), t\right)}} \]
        8. Step-by-step derivation
          1. associate-/l*N/A

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

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

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

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

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

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

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

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

            \[\leadsto \frac{z}{\mathsf{fma}\left(t, \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, a\right)}, t\right)} \cdot y \]
          10. /-lowering-/.f6445.8

            \[\leadsto \frac{z}{\mathsf{fma}\left(t, \mathsf{fma}\left(y, \color{blue}{\frac{b}{t}}, a\right), t\right)} \cdot y \]
        9. Applied egg-rr45.8%

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

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

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

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

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

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

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

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

            \[\leadsto \frac{z}{\mathsf{fma}\left(a, t, \color{blue}{b \cdot y + t}\right)} \cdot y \]
          8. *-commutativeN/A

            \[\leadsto \frac{z}{\mathsf{fma}\left(a, t, \color{blue}{y \cdot b} + t\right)} \cdot y \]
          9. accelerator-lowering-fma.f6463.0

            \[\leadsto \frac{z}{\mathsf{fma}\left(a, t, \color{blue}{\mathsf{fma}\left(y, b, t\right)}\right)} \cdot y \]
        12. Simplified63.0%

          \[\leadsto \frac{z}{\color{blue}{\mathsf{fma}\left(a, t, \mathsf{fma}\left(y, b, t\right)\right)}} \cdot y \]
      3. Recombined 2 regimes into one program.
      4. Final simplification61.6%

        \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -5 \cdot 10^{+35}:\\ \;\;\;\;\frac{x}{a + 1}\\ \mathbf{elif}\;t \leq 2.1 \cdot 10^{-89}:\\ \;\;\;\;y \cdot \frac{z}{\mathsf{fma}\left(a, t, \mathsf{fma}\left(y, b, t\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a + 1}\\ \end{array} \]
      5. Add Preprocessing

      Alternative 12: 56.2% accurate, 2.0× speedup?

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

        1. Initial program 78.5%

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

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

            \[\leadsto \color{blue}{\frac{x}{1 + a}} \]
          2. +-lowering-+.f6461.5

            \[\leadsto \frac{x}{\color{blue}{1 + a}} \]
        5. Simplified61.5%

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

        if -9.6e11 < t < 7.2e-41

        1. Initial program 67.5%

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

          \[\leadsto \color{blue}{\frac{z}{b}} \]
        4. Step-by-step derivation
          1. /-lowering-/.f6454.4

            \[\leadsto \color{blue}{\frac{z}{b}} \]
        5. Simplified54.4%

          \[\leadsto \color{blue}{\frac{z}{b}} \]
      3. Recombined 2 regimes into one program.
      4. Final simplification57.9%

        \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -960000000000:\\ \;\;\;\;\frac{x}{a + 1}\\ \mathbf{elif}\;t \leq 7.2 \cdot 10^{-41}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a + 1}\\ \end{array} \]
      5. Add Preprocessing

      Alternative 13: 42.7% accurate, 2.2× speedup?

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

        1. Initial program 74.5%

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

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

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

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

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

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

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

            \[\leadsto \frac{x}{1 + \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, a\right)}} \]
          7. /-lowering-/.f6461.1

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

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

          \[\leadsto \color{blue}{\frac{x}{a}} \]
        7. Step-by-step derivation
          1. /-lowering-/.f6455.0

            \[\leadsto \color{blue}{\frac{x}{a}} \]
        8. Simplified55.0%

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

        if -5.8e16 < a < 2.8e96

        1. Initial program 71.6%

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

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

            \[\leadsto \color{blue}{\frac{z}{b}} \]
        5. Simplified46.4%

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

      Alternative 14: 40.8% accurate, 2.2× speedup?

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

        1. Initial program 73.0%

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

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

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

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

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

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

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

            \[\leadsto \frac{x}{1 + \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, a\right)}} \]
          7. /-lowering-/.f6456.7

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

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

          \[\leadsto \color{blue}{\frac{x}{a}} \]
        7. Step-by-step derivation
          1. /-lowering-/.f6449.0

            \[\leadsto \color{blue}{\frac{x}{a}} \]
        8. Simplified49.0%

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

        if -1 < a < 1

        1. Initial program 72.8%

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

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

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

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

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

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

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

            \[\leadsto \frac{x}{1 + \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, a\right)}} \]
          7. /-lowering-/.f6444.3

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

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

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

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

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

            \[\leadsto \frac{x}{\color{blue}{b \cdot \frac{y}{t}} + 1} \]
          4. accelerator-lowering-fma.f64N/A

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

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

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

          \[\leadsto \color{blue}{x} \]
        10. Step-by-step derivation
          1. Simplified30.5%

            \[\leadsto \color{blue}{x} \]
        11. Recombined 2 regimes into one program.
        12. Add Preprocessing

        Alternative 15: 19.8% accurate, 53.0× 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;
        }
        
        real(8) function code(x, y, z, t, a, b)
            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 72.9%

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

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

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

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

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

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

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

            \[\leadsto \frac{x}{1 + \color{blue}{\mathsf{fma}\left(y, \frac{b}{t}, a\right)}} \]
          7. /-lowering-/.f6450.7

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

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

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

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

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

            \[\leadsto \frac{x}{\color{blue}{b \cdot \frac{y}{t}} + 1} \]
          4. accelerator-lowering-fma.f64N/A

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

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

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

          \[\leadsto \color{blue}{x} \]
        10. Step-by-step derivation
          1. Simplified16.7%

            \[\leadsto \color{blue}{x} \]
          2. Add Preprocessing

          Developer Target 1: 78.6% accurate, 0.7× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := 1 \cdot \left(\left(x + \frac{y}{t} \cdot z\right) \cdot \frac{1}{\left(a + 1\right) + \frac{y}{t} \cdot b}\right)\\ \mathbf{if}\;t < -1.3659085366310088 \cdot 10^{-271}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t < 3.036967103737246 \cdot 10^{-130}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
          (FPCore (x y z t a b)
           :precision binary64
           (let* ((t_1
                   (* 1.0 (* (+ x (* (/ y t) z)) (/ 1.0 (+ (+ a 1.0) (* (/ y t) b)))))))
             (if (< t -1.3659085366310088e-271)
               t_1
               (if (< t 3.036967103737246e-130) (/ z b) t_1))))
          double code(double x, double y, double z, double t, double a, double b) {
          	double t_1 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b))));
          	double tmp;
          	if (t < -1.3659085366310088e-271) {
          		tmp = t_1;
          	} else if (t < 3.036967103737246e-130) {
          		tmp = z / b;
          	} else {
          		tmp = t_1;
          	}
          	return tmp;
          }
          
          real(8) function code(x, y, z, t, a, b)
              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 = 1.0d0 * ((x + ((y / t) * z)) * (1.0d0 / ((a + 1.0d0) + ((y / t) * b))))
              if (t < (-1.3659085366310088d-271)) then
                  tmp = t_1
              else if (t < 3.036967103737246d-130) 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 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b))));
          	double tmp;
          	if (t < -1.3659085366310088e-271) {
          		tmp = t_1;
          	} else if (t < 3.036967103737246e-130) {
          		tmp = z / b;
          	} else {
          		tmp = t_1;
          	}
          	return tmp;
          }
          
          def code(x, y, z, t, a, b):
          	t_1 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b))))
          	tmp = 0
          	if t < -1.3659085366310088e-271:
          		tmp = t_1
          	elif t < 3.036967103737246e-130:
          		tmp = z / b
          	else:
          		tmp = t_1
          	return tmp
          
          function code(x, y, z, t, a, b)
          	t_1 = Float64(1.0 * Float64(Float64(x + Float64(Float64(y / t) * z)) * Float64(1.0 / Float64(Float64(a + 1.0) + Float64(Float64(y / t) * b)))))
          	tmp = 0.0
          	if (t < -1.3659085366310088e-271)
          		tmp = t_1;
          	elseif (t < 3.036967103737246e-130)
          		tmp = Float64(z / b);
          	else
          		tmp = t_1;
          	end
          	return tmp
          end
          
          function tmp_2 = code(x, y, z, t, a, b)
          	t_1 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b))));
          	tmp = 0.0;
          	if (t < -1.3659085366310088e-271)
          		tmp = t_1;
          	elseif (t < 3.036967103737246e-130)
          		tmp = z / b;
          	else
          		tmp = t_1;
          	end
          	tmp_2 = tmp;
          end
          
          code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(1.0 * N[(N[(x + N[(N[(y / t), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] * N[(1.0 / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y / t), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -1.3659085366310088e-271], t$95$1, If[Less[t, 3.036967103737246e-130], N[(z / b), $MachinePrecision], t$95$1]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := 1 \cdot \left(\left(x + \frac{y}{t} \cdot z\right) \cdot \frac{1}{\left(a + 1\right) + \frac{y}{t} \cdot b}\right)\\
          \mathbf{if}\;t < -1.3659085366310088 \cdot 10^{-271}:\\
          \;\;\;\;t\_1\\
          
          \mathbf{elif}\;t < 3.036967103737246 \cdot 10^{-130}:\\
          \;\;\;\;\frac{z}{b}\\
          
          \mathbf{else}:\\
          \;\;\;\;t\_1\\
          
          
          \end{array}
          \end{array}
          

          Reproduce

          ?
          herbie shell --seed 2024196 
          (FPCore (x y z t a b)
            :name "Diagrams.Solve.Tridiagonal:solveCyclicTriDiagonal from diagrams-solve-0.1, B"
            :precision binary64
          
            :alt
            (! :herbie-platform default (if (< t -1707385670788761/12500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (* 1 (* (+ x (* (/ y t) z)) (/ 1 (+ (+ a 1) (* (/ y t) b))))) (if (< t 1518483551868623/5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (/ z b) (* 1 (* (+ x (* (/ y t) z)) (/ 1 (+ (+ a 1) (* (/ y t) b))))))))
          
            (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))