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

Percentage Accurate: 75.1% → 87.9%
Time: 13.8s
Alternatives: 17
Speedup: 0.5×

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 17 alternatives:

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

Initial Program: 75.1% 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: 87.9% accurate, 0.3× speedup?

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

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

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

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t, \frac{x}{y \cdot b}, \frac{z}{b}\right)\\


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

    1. Initial program 35.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 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -5.00000000000000033e259 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 5.0000000000000003e271

      1. Initial program 89.6%

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

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

      1. Initial program 6.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 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. Simplified62.4%

        \[\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)} \]
      6. Taylor expanded in x around inf

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

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

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

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

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

    Alternative 2: 60.2% accurate, 0.2× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\ t_2 := \frac{x}{a + 1}\\ \mathbf{if}\;t\_1 \leq -\infty:\\ \;\;\;\;y \cdot \frac{z}{\mathsf{fma}\left(b, y, t\right)}\\ \mathbf{elif}\;t\_1 \leq -2 \cdot 10^{-298}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{-251}:\\ \;\;\;\;\frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, a\right)}\\ \mathbf{elif}\;t\_1 \leq 10^{+245}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_1 \leq \infty:\\ \;\;\;\;z \cdot \frac{y}{\mathsf{fma}\left(t, a, t\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{z}{b}\\ \end{array} \end{array} \]
    (FPCore (x y z t a b)
     :precision binary64
     (let* ((t_1 (/ (+ x (/ (* y z) t)) (+ (/ (* y b) t) (+ a 1.0))))
            (t_2 (/ x (+ a 1.0))))
       (if (<= t_1 (- INFINITY))
         (* y (/ z (fma b y t)))
         (if (<= t_1 -2e-298)
           t_2
           (if (<= t_1 5e-251)
             (/ x (fma b (/ y t) a))
             (if (<= t_1 1e+245)
               t_2
               (if (<= t_1 INFINITY) (* z (/ y (fma t a t))) (/ z b))))))))
    double code(double x, double y, double z, double t, double a, double b) {
    	double t_1 = (x + ((y * z) / t)) / (((y * b) / t) + (a + 1.0));
    	double t_2 = x / (a + 1.0);
    	double tmp;
    	if (t_1 <= -((double) INFINITY)) {
    		tmp = y * (z / fma(b, y, t));
    	} else if (t_1 <= -2e-298) {
    		tmp = t_2;
    	} else if (t_1 <= 5e-251) {
    		tmp = x / fma(b, (y / t), a);
    	} else if (t_1 <= 1e+245) {
    		tmp = t_2;
    	} else if (t_1 <= ((double) INFINITY)) {
    		tmp = z * (y / fma(t, a, t));
    	} 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(Float64(y * b) / t) + Float64(a + 1.0)))
    	t_2 = Float64(x / Float64(a + 1.0))
    	tmp = 0.0
    	if (t_1 <= Float64(-Inf))
    		tmp = Float64(y * Float64(z / fma(b, y, t)));
    	elseif (t_1 <= -2e-298)
    		tmp = t_2;
    	elseif (t_1 <= 5e-251)
    		tmp = Float64(x / fma(b, Float64(y / t), a));
    	elseif (t_1 <= 1e+245)
    		tmp = t_2;
    	elseif (t_1 <= Inf)
    		tmp = Float64(z * Float64(y / fma(t, a, t)));
    	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[(N[(y * b), $MachinePrecision] / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(y * N[(z / N[(b * y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -2e-298], t$95$2, If[LessEqual[t$95$1, 5e-251], N[(x / N[(b * N[(y / t), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+245], t$95$2, If[LessEqual[t$95$1, Infinity], N[(z * N[(y / N[(t * a + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z / b), $MachinePrecision]]]]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\
    t_2 := \frac{x}{a + 1}\\
    \mathbf{if}\;t\_1 \leq -\infty:\\
    \;\;\;\;y \cdot \frac{z}{\mathsf{fma}\left(b, y, t\right)}\\
    
    \mathbf{elif}\;t\_1 \leq -2 \cdot 10^{-298}:\\
    \;\;\;\;t\_2\\
    
    \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{-251}:\\
    \;\;\;\;\frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, a\right)}\\
    
    \mathbf{elif}\;t\_1 \leq 10^{+245}:\\
    \;\;\;\;t\_2\\
    
    \mathbf{elif}\;t\_1 \leq \infty:\\
    \;\;\;\;z \cdot \frac{y}{\mathsf{fma}\left(t, a, t\right)}\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{z}{b}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 5 regimes
    2. if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -inf.0

      1. Initial program 25.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 0

        \[\leadsto \color{blue}{\frac{y \cdot z}{t \cdot \left(1 + \left(a + \frac{b \cdot y}{t}\right)\right)}} \]
      4. 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{y \cdot \frac{z}{\mathsf{fma}\left(b, y, t\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.99999999999999982e-298 or 5.0000000000000003e-251 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 1.00000000000000004e245

      1. Initial program 99.1%

        \[\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.2

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

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

      if -1.99999999999999982e-298 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 5.0000000000000003e-251

      1. Initial program 54.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-/.f6461.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-rr61.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 z around 0

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

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

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

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

          \[\leadsto \frac{x}{\color{blue}{\frac{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. +-commutativeN/A

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

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

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

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

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

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

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

        if 1.00000000000000004e245 < (/.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 48.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-+.f6455.9

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

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

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

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

            \[\leadsto \frac{y \cdot z}{\color{blue}{t} + a \cdot t} \]
          3. /-lowering-/.f64N/A

            \[\leadsto \color{blue}{\frac{y \cdot z}{t + a \cdot t}} \]
          4. *-lowering-*.f64N/A

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

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

            \[\leadsto \frac{y \cdot z}{\color{blue}{t \cdot a} + t} \]
          7. accelerator-lowering-fma.f6447.1

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

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

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

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

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

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

            \[\leadsto z \cdot \frac{y}{\color{blue}{\mathsf{fma}\left(t, a, t\right)}} \]
        10. Applied egg-rr62.3%

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

            \[\leadsto \color{blue}{\frac{z}{b}} \]
        5. Simplified96.7%

          \[\leadsto \color{blue}{\frac{z}{b}} \]
      10. Recombined 5 regimes into one program.
      11. Final simplification62.9%

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

      Alternative 3: 59.1% accurate, 0.2× speedup?

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

        1. Initial program 25.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 0

          \[\leadsto \color{blue}{\frac{y \cdot z}{t \cdot \left(1 + \left(a + \frac{b \cdot y}{t}\right)\right)}} \]
        4. 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \color{blue}{y \cdot \frac{z}{\mathsf{fma}\left(b, y, t\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.99999999999999982e-298 or -0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 1.00000000000000004e245

        1. Initial program 98.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 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-+.f6456.4

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

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

        if -1.99999999999999982e-298 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -0.0 or +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 29.9%

          \[\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-/.f6473.1

            \[\leadsto \color{blue}{\frac{z}{b}} \]
        5. Simplified73.1%

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

        if 1.00000000000000004e245 < (/.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 48.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-+.f6455.9

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

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

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

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

            \[\leadsto \frac{y \cdot z}{\color{blue}{t} + a \cdot t} \]
          3. /-lowering-/.f64N/A

            \[\leadsto \color{blue}{\frac{y \cdot z}{t + a \cdot t}} \]
          4. *-lowering-*.f64N/A

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

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

            \[\leadsto \frac{y \cdot z}{\color{blue}{t \cdot a} + t} \]
          7. accelerator-lowering-fma.f6447.1

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

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

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

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

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

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

            \[\leadsto z \cdot \frac{y}{\color{blue}{\mathsf{fma}\left(t, a, t\right)}} \]
        10. Applied egg-rr62.3%

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

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

      Alternative 4: 75.4% accurate, 0.2× speedup?

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

        1. Initial program 25.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 0

          \[\leadsto \color{blue}{\frac{y \cdot z}{t \cdot \left(1 + \left(a + \frac{b \cdot y}{t}\right)\right)}} \]
        4. 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

            \[\leadsto \frac{z}{\color{blue}{\mathsf{fma}\left(t, y \cdot \frac{b}{t} + a, t\right)}} \cdot y \]
          6. 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 \]
          7. /-lowering-/.f6484.4

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

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

        1. Initial program 99.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 0

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

            \[\leadsto \frac{x + \frac{y \cdot z}{t}}{\color{blue}{1 + a}} \]
        5. Simplified82.9%

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

        if -1.99999999999999982e-298 < (/.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 52.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 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        1. Initial program 97.3%

          \[\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-+.f6484.1

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

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

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

        1. Initial program 6.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 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. Simplified62.4%

          \[\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)} \]
        6. Taylor expanded in x around inf

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

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

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

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

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

      Alternative 5: 59.6% accurate, 0.2× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\ t_2 := \frac{x}{a + 1}\\ \mathbf{if}\;t\_1 \leq -\infty:\\ \;\;\;\;y \cdot \frac{z}{\mathsf{fma}\left(b, y, t\right)}\\ \mathbf{elif}\;t\_1 \leq -2 \cdot 10^{-298}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_1 \leq 0:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;t\_1 \leq 10^{+245}:\\ \;\;\;\;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)) (+ (/ (* y b) t) (+ a 1.0))))
              (t_2 (/ x (+ a 1.0))))
         (if (<= t_1 (- INFINITY))
           (* y (/ z (fma b y t)))
           (if (<= t_1 -2e-298)
             t_2
             (if (<= t_1 0.0) (/ z b) (if (<= t_1 1e+245) 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)) / (((y * b) / t) + (a + 1.0));
      	double t_2 = x / (a + 1.0);
      	double tmp;
      	if (t_1 <= -((double) INFINITY)) {
      		tmp = y * (z / fma(b, y, t));
      	} else if (t_1 <= -2e-298) {
      		tmp = t_2;
      	} else if (t_1 <= 0.0) {
      		tmp = z / b;
      	} else if (t_1 <= 1e+245) {
      		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(Float64(y * b) / t) + Float64(a + 1.0)))
      	t_2 = Float64(x / Float64(a + 1.0))
      	tmp = 0.0
      	if (t_1 <= Float64(-Inf))
      		tmp = Float64(y * Float64(z / fma(b, y, t)));
      	elseif (t_1 <= -2e-298)
      		tmp = t_2;
      	elseif (t_1 <= 0.0)
      		tmp = Float64(z / b);
      	elseif (t_1 <= 1e+245)
      		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[(N[(y * b), $MachinePrecision] / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(y * N[(z / N[(b * y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -2e-298], t$95$2, If[LessEqual[t$95$1, 0.0], N[(z / b), $MachinePrecision], If[LessEqual[t$95$1, 1e+245], t$95$2, N[(z / b), $MachinePrecision]]]]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\
      t_2 := \frac{x}{a + 1}\\
      \mathbf{if}\;t\_1 \leq -\infty:\\
      \;\;\;\;y \cdot \frac{z}{\mathsf{fma}\left(b, y, t\right)}\\
      
      \mathbf{elif}\;t\_1 \leq -2 \cdot 10^{-298}:\\
      \;\;\;\;t\_2\\
      
      \mathbf{elif}\;t\_1 \leq 0:\\
      \;\;\;\;\frac{z}{b}\\
      
      \mathbf{elif}\;t\_1 \leq 10^{+245}:\\
      \;\;\;\;t\_2\\
      
      \mathbf{else}:\\
      \;\;\;\;\frac{z}{b}\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -inf.0

        1. Initial program 25.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 0

          \[\leadsto \color{blue}{\frac{y \cdot z}{t \cdot \left(1 + \left(a + \frac{b \cdot y}{t}\right)\right)}} \]
        4. 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \color{blue}{y \cdot \frac{z}{\mathsf{fma}\left(b, y, t\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.99999999999999982e-298 or -0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 1.00000000000000004e245

        1. Initial program 98.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 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-+.f6456.4

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

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

        if -1.99999999999999982e-298 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -0.0 or 1.00000000000000004e245 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t)))

        1. Initial program 33.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-/.f6465.5

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

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

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

      Alternative 6: 72.7% accurate, 0.3× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\ t_2 := \frac{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}{a + 1}\\ \mathbf{if}\;t\_1 \leq -2 \cdot 10^{-298}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_1 \leq 0:\\ \;\;\;\;\frac{\mathsf{fma}\left(t, \frac{x}{y}, z\right)}{b}\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+271}:\\ \;\;\;\;t\_2\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(t, \frac{x}{y \cdot b}, \frac{z}{b}\right)\\ \end{array} \end{array} \]
      (FPCore (x y z t a b)
       :precision binary64
       (let* ((t_1 (/ (+ x (/ (* y z) t)) (+ (/ (* y b) t) (+ a 1.0))))
              (t_2 (/ (fma z (/ y t) x) (+ a 1.0))))
         (if (<= t_1 -2e-298)
           t_2
           (if (<= t_1 0.0)
             (/ (fma t (/ x y) z) b)
             (if (<= t_1 5e+271) t_2 (fma t (/ x (* y b)) (/ z b)))))))
      double code(double x, double y, double z, double t, double a, double b) {
      	double t_1 = (x + ((y * z) / t)) / (((y * b) / t) + (a + 1.0));
      	double t_2 = fma(z, (y / t), x) / (a + 1.0);
      	double tmp;
      	if (t_1 <= -2e-298) {
      		tmp = t_2;
      	} else if (t_1 <= 0.0) {
      		tmp = fma(t, (x / y), z) / b;
      	} else if (t_1 <= 5e+271) {
      		tmp = t_2;
      	} else {
      		tmp = fma(t, (x / (y * b)), (z / b));
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a, b)
      	t_1 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(Float64(y * b) / t) + Float64(a + 1.0)))
      	t_2 = Float64(fma(z, Float64(y / t), x) / Float64(a + 1.0))
      	tmp = 0.0
      	if (t_1 <= -2e-298)
      		tmp = t_2;
      	elseif (t_1 <= 0.0)
      		tmp = Float64(fma(t, Float64(x / y), z) / b);
      	elseif (t_1 <= 5e+271)
      		tmp = t_2;
      	else
      		tmp = fma(t, Float64(x / Float64(y * b)), 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[(N[(y * b), $MachinePrecision] / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z * N[(y / t), $MachinePrecision] + x), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e-298], t$95$2, If[LessEqual[t$95$1, 0.0], N[(N[(t * N[(x / y), $MachinePrecision] + z), $MachinePrecision] / b), $MachinePrecision], If[LessEqual[t$95$1, 5e+271], t$95$2, N[(t * N[(x / N[(y * b), $MachinePrecision]), $MachinePrecision] + N[(z / b), $MachinePrecision]), $MachinePrecision]]]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\
      t_2 := \frac{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}{a + 1}\\
      \mathbf{if}\;t\_1 \leq -2 \cdot 10^{-298}:\\
      \;\;\;\;t\_2\\
      
      \mathbf{elif}\;t\_1 \leq 0:\\
      \;\;\;\;\frac{\mathsf{fma}\left(t, \frac{x}{y}, z\right)}{b}\\
      
      \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+271}:\\
      \;\;\;\;t\_2\\
      
      \mathbf{else}:\\
      \;\;\;\;\mathsf{fma}\left(t, \frac{x}{y \cdot b}, \frac{z}{b}\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -1.99999999999999982e-298 or -0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 5.0000000000000003e271

        1. Initial program 90.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 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-+.f6479.8

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

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

        if -1.99999999999999982e-298 < (/.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 52.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 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        1. Initial program 6.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 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. Simplified62.4%

          \[\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)} \]
        6. Taylor expanded in x around inf

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

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

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

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

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

      Alternative 7: 73.1% accurate, 0.3× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\ t_2 := \frac{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}{a + 1}\\ \mathbf{if}\;t\_1 \leq -2 \cdot 10^{-298}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_1 \leq 0:\\ \;\;\;\;\frac{\mathsf{fma}\left(t, \frac{x}{y}, z\right)}{b}\\ \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)) (+ (/ (* y b) t) (+ a 1.0))))
              (t_2 (/ (fma z (/ y t) x) (+ a 1.0))))
         (if (<= t_1 -2e-298)
           t_2
           (if (<= t_1 0.0)
             (/ (fma t (/ x y) z) b)
             (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)) / (((y * b) / t) + (a + 1.0));
      	double t_2 = fma(z, (y / t), x) / (a + 1.0);
      	double tmp;
      	if (t_1 <= -2e-298) {
      		tmp = t_2;
      	} else if (t_1 <= 0.0) {
      		tmp = fma(t, (x / y), z) / b;
      	} 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(Float64(y * b) / t) + Float64(a + 1.0)))
      	t_2 = Float64(fma(z, Float64(y / t), x) / Float64(a + 1.0))
      	tmp = 0.0
      	if (t_1 <= -2e-298)
      		tmp = t_2;
      	elseif (t_1 <= 0.0)
      		tmp = Float64(fma(t, Float64(x / y), z) / b);
      	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[(N[(y * b), $MachinePrecision] / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z * N[(y / t), $MachinePrecision] + x), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e-298], t$95$2, If[LessEqual[t$95$1, 0.0], N[(N[(t * N[(x / y), $MachinePrecision] + z), $MachinePrecision] / b), $MachinePrecision], 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}}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\
      t_2 := \frac{\mathsf{fma}\left(z, \frac{y}{t}, x\right)}{a + 1}\\
      \mathbf{if}\;t\_1 \leq -2 \cdot 10^{-298}:\\
      \;\;\;\;t\_2\\
      
      \mathbf{elif}\;t\_1 \leq 0:\\
      \;\;\;\;\frac{\mathsf{fma}\left(t, \frac{x}{y}, z\right)}{b}\\
      
      \mathbf{elif}\;t\_1 \leq \infty:\\
      \;\;\;\;t\_2\\
      
      \mathbf{else}:\\
      \;\;\;\;\frac{z}{b}\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -1.99999999999999982e-298 or -0.0 < (/.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 87.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-+.f6478.2

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

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

        if -1.99999999999999982e-298 < (/.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 52.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 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        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-/.f6496.7

            \[\leadsto \color{blue}{\frac{z}{b}} \]
        5. Simplified96.7%

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

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

      Alternative 8: 88.0% accurate, 0.3× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\ \mathbf{if}\;t\_1 \leq -\infty:\\ \;\;\;\;y \cdot \frac{z}{\mathsf{fma}\left(t, \mathsf{fma}\left(y, \frac{b}{t}, a\right), t\right)}\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+271}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(t, \frac{x}{y \cdot b}, \frac{z}{b}\right)\\ \end{array} \end{array} \]
      (FPCore (x y z t a b)
       :precision binary64
       (let* ((t_1 (/ (+ x (/ (* y z) t)) (+ (/ (* y b) t) (+ a 1.0)))))
         (if (<= t_1 (- INFINITY))
           (* y (/ z (fma t (fma y (/ b t) a) t)))
           (if (<= t_1 5e+271) t_1 (fma t (/ x (* y b)) (/ z b))))))
      double code(double x, double y, double z, double t, double a, double b) {
      	double t_1 = (x + ((y * z) / t)) / (((y * b) / t) + (a + 1.0));
      	double tmp;
      	if (t_1 <= -((double) INFINITY)) {
      		tmp = y * (z / fma(t, fma(y, (b / t), a), t));
      	} else if (t_1 <= 5e+271) {
      		tmp = t_1;
      	} else {
      		tmp = fma(t, (x / (y * b)), (z / b));
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a, b)
      	t_1 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(Float64(y * b) / t) + Float64(a + 1.0)))
      	tmp = 0.0
      	if (t_1 <= Float64(-Inf))
      		tmp = Float64(y * Float64(z / fma(t, fma(y, Float64(b / t), a), t)));
      	elseif (t_1 <= 5e+271)
      		tmp = t_1;
      	else
      		tmp = fma(t, Float64(x / Float64(y * b)), 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[(N[(y * b), $MachinePrecision] / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(y * N[(z / N[(t * N[(y * N[(b / t), $MachinePrecision] + a), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+271], t$95$1, N[(t * N[(x / N[(y * b), $MachinePrecision]), $MachinePrecision] + N[(z / b), $MachinePrecision]), $MachinePrecision]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\
      \mathbf{if}\;t\_1 \leq -\infty:\\
      \;\;\;\;y \cdot \frac{z}{\mathsf{fma}\left(t, \mathsf{fma}\left(y, \frac{b}{t}, a\right), t\right)}\\
      
      \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+271}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{else}:\\
      \;\;\;\;\mathsf{fma}\left(t, \frac{x}{y \cdot b}, \frac{z}{b}\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -inf.0

        1. Initial program 25.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 0

          \[\leadsto \color{blue}{\frac{y \cdot z}{t \cdot \left(1 + \left(a + \frac{b \cdot y}{t}\right)\right)}} \]
        4. 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

            \[\leadsto \frac{z}{\color{blue}{\mathsf{fma}\left(t, y \cdot \frac{b}{t} + a, t\right)}} \cdot y \]
          6. 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 \]
          7. /-lowering-/.f6484.4

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

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

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

        1. Initial program 89.7%

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

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

        1. Initial program 6.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 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. Simplified62.4%

          \[\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)} \]
        6. Taylor expanded in x around inf

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

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

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

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

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

      Alternative 9: 83.6% accurate, 0.5× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)} \leq \infty:\\ \;\;\;\;\frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + \mathsf{fma}\left(y, \frac{b}{t}, 1\right)}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(t, \frac{x}{y \cdot b}, \frac{z}{b}\right)\\ \end{array} \end{array} \]
      (FPCore (x y z t a b)
       :precision binary64
       (if (<= (/ (+ x (/ (* y z) t)) (+ (/ (* y b) t) (+ a 1.0))) INFINITY)
         (/ (fma y (/ z t) x) (+ a (fma y (/ b t) 1.0)))
         (fma t (/ x (* y b)) (/ z b))))
      double code(double x, double y, double z, double t, double a, double b) {
      	double tmp;
      	if (((x + ((y * z) / t)) / (((y * b) / t) + (a + 1.0))) <= ((double) INFINITY)) {
      		tmp = fma(y, (z / t), x) / (a + fma(y, (b / t), 1.0));
      	} else {
      		tmp = fma(t, (x / (y * b)), (z / b));
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a, b)
      	tmp = 0.0
      	if (Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(Float64(y * b) / t) + Float64(a + 1.0))) <= Inf)
      		tmp = Float64(fma(y, Float64(z / t), x) / Float64(a + fma(y, Float64(b / t), 1.0)));
      	else
      		tmp = fma(t, Float64(x / Float64(y * b)), Float64(z / b));
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(y * N[(z / t), $MachinePrecision] + x), $MachinePrecision] / N[(a + N[(y * N[(b / t), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(x / N[(y * b), $MachinePrecision]), $MachinePrecision] + N[(z / b), $MachinePrecision]), $MachinePrecision]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;\frac{x + \frac{y \cdot z}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)} \leq \infty:\\
      \;\;\;\;\frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + \mathsf{fma}\left(y, \frac{b}{t}, 1\right)}\\
      
      \mathbf{else}:\\
      \;\;\;\;\mathsf{fma}\left(t, \frac{x}{y \cdot b}, \frac{z}{b}\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0

        1. Initial program 81.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-/.f6480.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-rr80.9%

          \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a + \mathsf{fma}\left(y, \frac{b}{t}, 1\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}{\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. Simplified75.0%

          \[\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)} \]
        6. Taylor expanded in x around inf

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

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

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

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

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

      Alternative 10: 63.7% 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}\;t \leq -2.2 \cdot 10^{+20}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 1.65 \cdot 10^{-20}:\\ \;\;\;\;\frac{y \cdot z}{\mathsf{fma}\left(b, y, \mathsf{fma}\left(t, a, 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 (<= t -2.2e+20)
           t_1
           (if (<= t 1.65e-20) (/ (* y z) (fma b y (fma t a 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 (t <= -2.2e+20) {
      		tmp = t_1;
      	} else if (t <= 1.65e-20) {
      		tmp = (y * z) / fma(b, y, fma(t, a, 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 (t <= -2.2e+20)
      		tmp = t_1;
      	elseif (t <= 1.65e-20)
      		tmp = Float64(Float64(y * z) / fma(b, y, fma(t, a, 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[t, -2.2e+20], t$95$1, If[LessEqual[t, 1.65e-20], N[(N[(y * z), $MachinePrecision] / N[(b * y + N[(t * a + t), $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}\;t \leq -2.2 \cdot 10^{+20}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;t \leq 1.65 \cdot 10^{-20}:\\
      \;\;\;\;\frac{y \cdot z}{\mathsf{fma}\left(b, y, \mathsf{fma}\left(t, a, t\right)\right)}\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if t < -2.2e20 or 1.65e-20 < t

        1. Initial program 84.4%

          \[\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-/.f6470.6

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

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

        if -2.2e20 < t < 1.65e-20

        1. Initial program 63.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 0

          \[\leadsto \color{blue}{\frac{y \cdot z}{t \cdot \left(1 + \left(a + \frac{b \cdot y}{t}\right)\right)}} \]
        4. 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 11: 57.9% accurate, 1.3× speedup?

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

        1. Initial program 70.6%

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

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

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

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

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

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

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

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

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

        if -0.97999999999999998 < a < 225000

        1. Initial program 75.2%

          \[\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-+.f6460.2

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(z, \frac{y}{t}, x\right) \cdot \color{blue}{\left(1 - a\right)} \]
        10. Simplified60.2%

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

      Alternative 12: 58.7% accurate, 1.3× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x}{a + 1}\\ \mathbf{if}\;t \leq -4 \cdot 10^{+20}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 4.6 \cdot 10^{+65}:\\ \;\;\;\;\frac{y \cdot z}{\mathsf{fma}\left(b, y, \mathsf{fma}\left(t, a, 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 -4e+20)
           t_1
           (if (<= t 4.6e+65) (/ (* y z) (fma b y (fma t a 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 <= -4e+20) {
      		tmp = t_1;
      	} else if (t <= 4.6e+65) {
      		tmp = (y * z) / fma(b, y, fma(t, a, 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 <= -4e+20)
      		tmp = t_1;
      	elseif (t <= 4.6e+65)
      		tmp = Float64(Float64(y * z) / fma(b, y, fma(t, a, 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, -4e+20], t$95$1, If[LessEqual[t, 4.6e+65], N[(N[(y * z), $MachinePrecision] / N[(b * y + N[(t * a + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \frac{x}{a + 1}\\
      \mathbf{if}\;t \leq -4 \cdot 10^{+20}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;t \leq 4.6 \cdot 10^{+65}:\\
      \;\;\;\;\frac{y \cdot z}{\mathsf{fma}\left(b, y, \mathsf{fma}\left(t, a, t\right)\right)}\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if t < -4e20 or 4.6e65 < t

        1. Initial program 82.9%

          \[\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-+.f6468.1

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

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

        if -4e20 < t < 4.6e65

        1. Initial program 66.3%

          \[\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 0

          \[\leadsto \color{blue}{\frac{y \cdot z}{t \cdot \left(1 + \left(a + \frac{b \cdot y}{t}\right)\right)}} \]
        4. 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 13: 40.5% accurate, 1.5× speedup?

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

        1. Initial program 81.4%

          \[\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-+.f6458.3

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

          \[\leadsto \color{blue}{\frac{x}{1 + a}} \]
        6. Taylor expanded in a around inf

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

            \[\leadsto \color{blue}{\frac{x}{a}} \]
        8. Simplified42.4%

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

        if -9.2000000000000002e198 < t < -9.2e14

        1. Initial program 99.8%

          \[\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-+.f6465.8

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

          \[\leadsto \color{blue}{\frac{x}{1 + a}} \]
        6. Taylor expanded in a around 0

          \[\leadsto \color{blue}{x + -1 \cdot \left(a \cdot x\right)} \]
        7. Step-by-step derivation
          1. mul-1-negN/A

            \[\leadsto x + \color{blue}{\left(\mathsf{neg}\left(a \cdot x\right)\right)} \]
          2. unsub-negN/A

            \[\leadsto \color{blue}{x - a \cdot x} \]
          3. --lowering--.f64N/A

            \[\leadsto \color{blue}{x - a \cdot x} \]
          4. *-lowering-*.f6445.5

            \[\leadsto x - \color{blue}{a \cdot x} \]
        8. Simplified45.5%

          \[\leadsto \color{blue}{x - a \cdot x} \]

        if -9.2e14 < t < 2.40000000000000005e-16

        1. Initial program 62.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-/.f6448.0

            \[\leadsto \color{blue}{\frac{z}{b}} \]
        5. Simplified48.0%

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

        if 2.89999999999999997e85 < t

        1. Initial program 80.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \color{blue}{x} \]
        7. Step-by-step derivation
          1. Simplified42.9%

            \[\leadsto \color{blue}{x} \]
        8. Recombined 4 regimes into one program.
        9. Final simplification45.8%

          \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -9.2 \cdot 10^{+198}:\\ \;\;\;\;\frac{x}{a}\\ \mathbf{elif}\;t \leq -9.2 \cdot 10^{+14}:\\ \;\;\;\;x - x \cdot a\\ \mathbf{elif}\;t \leq 2.4 \cdot 10^{-16}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{elif}\;t \leq 2.9 \cdot 10^{+85}:\\ \;\;\;\;\frac{x}{a}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
        10. Add Preprocessing

        Alternative 14: 54.8% accurate, 1.6× speedup?

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

          1. Initial program 41.4%

            \[\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-/.f6459.4

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

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

          if -7.50000000000000028e160 < y < -6.70000000000000037e25

          1. Initial program 66.6%

            \[\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-+.f6476.0

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

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

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

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

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

              \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{z}{t}, x\right)} \]
            4. /-lowering-/.f6456.4

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

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

          if -6.70000000000000037e25 < y < 9.49999999999999959e61

          1. Initial program 92.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 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-+.f6458.2

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

            \[\leadsto \color{blue}{\frac{x}{1 + a}} \]
        3. Recombined 3 regimes into one program.
        4. Final simplification58.4%

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

        Alternative 15: 56.2% accurate, 2.0× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x}{a + 1}\\ \mathbf{if}\;t \leq -4.6 \cdot 10^{-15}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 9.5 \cdot 10^{-17}:\\ \;\;\;\;\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 -4.6e-15) t_1 (if (<= t 9.5e-17) (/ 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 <= -4.6e-15) {
        		tmp = t_1;
        	} else if (t <= 9.5e-17) {
        		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 <= (-4.6d-15)) then
                tmp = t_1
            else if (t <= 9.5d-17) 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 <= -4.6e-15) {
        		tmp = t_1;
        	} else if (t <= 9.5e-17) {
        		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 <= -4.6e-15:
        		tmp = t_1
        	elif t <= 9.5e-17:
        		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 <= -4.6e-15)
        		tmp = t_1;
        	elseif (t <= 9.5e-17)
        		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 <= -4.6e-15)
        		tmp = t_1;
        	elseif (t <= 9.5e-17)
        		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, -4.6e-15], t$95$1, If[LessEqual[t, 9.5e-17], N[(z / b), $MachinePrecision], t$95$1]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := \frac{x}{a + 1}\\
        \mathbf{if}\;t \leq -4.6 \cdot 10^{-15}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;t \leq 9.5 \cdot 10^{-17}:\\
        \;\;\;\;\frac{z}{b}\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if t < -4.59999999999999981e-15 or 9.50000000000000029e-17 < t

          1. Initial program 83.8%

            \[\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-+.f6463.3

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

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

          if -4.59999999999999981e-15 < t < 9.50000000000000029e-17

          1. Initial program 62.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 inf

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

              \[\leadsto \color{blue}{\frac{z}{b}} \]
          5. Simplified49.2%

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

          \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -4.6 \cdot 10^{-15}:\\ \;\;\;\;\frac{x}{a + 1}\\ \mathbf{elif}\;t \leq 9.5 \cdot 10^{-17}:\\ \;\;\;\;\frac{z}{b}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a + 1}\\ \end{array} \]
        5. Add Preprocessing

        Alternative 16: 42.0% accurate, 2.2× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -1900:\\ \;\;\;\;\frac{x}{a}\\ \mathbf{elif}\;a \leq 225000:\\ \;\;\;\;x - x \cdot a\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a}\\ \end{array} \end{array} \]
        (FPCore (x y z t a b)
         :precision binary64
         (if (<= a -1900.0) (/ x a) (if (<= a 225000.0) (- x (* x a)) (/ x a))))
        double code(double x, double y, double z, double t, double a, double b) {
        	double tmp;
        	if (a <= -1900.0) {
        		tmp = x / a;
        	} else if (a <= 225000.0) {
        		tmp = x - (x * a);
        	} 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 <= (-1900.0d0)) then
                tmp = x / a
            else if (a <= 225000.0d0) then
                tmp = x - (x * a)
            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 <= -1900.0) {
        		tmp = x / a;
        	} else if (a <= 225000.0) {
        		tmp = x - (x * a);
        	} else {
        		tmp = x / a;
        	}
        	return tmp;
        }
        
        def code(x, y, z, t, a, b):
        	tmp = 0
        	if a <= -1900.0:
        		tmp = x / a
        	elif a <= 225000.0:
        		tmp = x - (x * a)
        	else:
        		tmp = x / a
        	return tmp
        
        function code(x, y, z, t, a, b)
        	tmp = 0.0
        	if (a <= -1900.0)
        		tmp = Float64(x / a);
        	elseif (a <= 225000.0)
        		tmp = Float64(x - Float64(x * a));
        	else
        		tmp = Float64(x / a);
        	end
        	return tmp
        end
        
        function tmp_2 = code(x, y, z, t, a, b)
        	tmp = 0.0;
        	if (a <= -1900.0)
        		tmp = x / a;
        	elseif (a <= 225000.0)
        		tmp = x - (x * a);
        	else
        		tmp = x / a;
        	end
        	tmp_2 = tmp;
        end
        
        code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -1900.0], N[(x / a), $MachinePrecision], If[LessEqual[a, 225000.0], N[(x - N[(x * a), $MachinePrecision]), $MachinePrecision], N[(x / a), $MachinePrecision]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;a \leq -1900:\\
        \;\;\;\;\frac{x}{a}\\
        
        \mathbf{elif}\;a \leq 225000:\\
        \;\;\;\;x - x \cdot a\\
        
        \mathbf{else}:\\
        \;\;\;\;\frac{x}{a}\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if a < -1900 or 225000 < a

          1. Initial program 70.9%

            \[\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-+.f6443.3

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

            \[\leadsto \color{blue}{\frac{x}{1 + a}} \]
          6. Taylor expanded in a around inf

            \[\leadsto \color{blue}{\frac{x}{a}} \]
          7. Step-by-step derivation
            1. /-lowering-/.f6442.9

              \[\leadsto \color{blue}{\frac{x}{a}} \]
          8. Simplified42.9%

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

          if -1900 < a < 225000

          1. Initial program 74.8%

            \[\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-+.f6437.9

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

            \[\leadsto \color{blue}{\frac{x}{1 + a}} \]
          6. Taylor expanded in a around 0

            \[\leadsto \color{blue}{x + -1 \cdot \left(a \cdot x\right)} \]
          7. Step-by-step derivation
            1. mul-1-negN/A

              \[\leadsto x + \color{blue}{\left(\mathsf{neg}\left(a \cdot x\right)\right)} \]
            2. unsub-negN/A

              \[\leadsto \color{blue}{x - a \cdot x} \]
            3. --lowering--.f64N/A

              \[\leadsto \color{blue}{x - a \cdot x} \]
            4. *-lowering-*.f6437.9

              \[\leadsto x - \color{blue}{a \cdot x} \]
          8. Simplified37.9%

            \[\leadsto \color{blue}{x - a \cdot x} \]
        3. Recombined 2 regimes into one program.
        4. Final simplification40.4%

          \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1900:\\ \;\;\;\;\frac{x}{a}\\ \mathbf{elif}\;a \leq 225000:\\ \;\;\;\;x - x \cdot a\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{a}\\ \end{array} \]
        5. Add Preprocessing

        Alternative 17: 19.4% 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 a around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \color{blue}{x} \]
        7. Step-by-step derivation
          1. Simplified20.4%

            \[\leadsto \color{blue}{x} \]
          2. Add Preprocessing

          Developer Target 1: 78.9% 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 2024195 
          (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))))