Development.Shake.Progress:decay from shake-0.15.5

Percentage Accurate: 65.9% → 95.2%
Time: 13.0s
Alternatives: 19
Speedup: 1.3×

Specification

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

\\
\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}
\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 19 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: 65.9% accurate, 1.0× speedup?

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

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

Alternative 1: 95.2% accurate, 0.1× speedup?

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

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

\mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-243}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;\frac{\frac{x \cdot y}{b - y} + \frac{y \cdot \left(t - a\right)}{\left(b - y\right) \cdot \left(y - b\right)}}{z} + t\_4\\

\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+284}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(z, \frac{t - a}{\mathsf{fma}\left(z, b - y, y\right)}, t\_3\right)\\

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


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

    1. Initial program 25.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -inf.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -5e-243 or 0.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 2.00000000000000016e284

    1. Initial program 99.7%

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

    if -5e-243 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 0.0

    1. Initial program 19.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 2.00000000000000016e284 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < +inf.0

    1. Initial program 17.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if +inf.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y))))

    1. Initial program 0.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(z, \frac{t - a}{\mathsf{fma}\left(z, b - y, y\right)}, \frac{x}{\color{blue}{1 - z}}\right) \]
      4. --lowering--.f6423.0

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

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

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

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

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

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

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

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

Alternative 2: 93.5% accurate, 0.1× speedup?

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

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

\mathbf{elif}\;t\_3 \leq -1 \cdot 10^{-280}:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;t\_3 \leq 0:\\
\;\;\;\;t\_4\\

\mathbf{elif}\;t\_3 \leq 2 \cdot 10^{+284}:\\
\;\;\;\;t\_3\\

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

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


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

    1. Initial program 25.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -inf.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -9.9999999999999996e-281 or 0.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 2.00000000000000016e284

    1. Initial program 99.7%

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

    if -9.9999999999999996e-281 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 0.0 or +inf.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y))))

    1. Initial program 8.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 2.00000000000000016e284 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < +inf.0

    1. Initial program 17.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 3: 92.5% accurate, 0.1× speedup?

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

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

\mathbf{elif}\;t\_3 \leq -5 \cdot 10^{-243}:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;t\_3 \leq 0:\\
\;\;\;\;t\_4\\

\mathbf{elif}\;t\_3 \leq 2 \cdot 10^{+284}:\\
\;\;\;\;t\_3\\

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

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


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

    1. Initial program 25.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -inf.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -5e-243 or 0.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 2.00000000000000016e284

    1. Initial program 99.7%

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

    if -5e-243 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 0.0 or +inf.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y))))

    1. Initial program 10.1%

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

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

        \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
      2. --lowering--.f64N/A

        \[\leadsto \frac{\color{blue}{t - a}}{b - y} \]
      3. --lowering--.f6472.3

        \[\leadsto \frac{t - a}{\color{blue}{b - y}} \]
    5. Simplified72.3%

      \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]

    if 2.00000000000000016e284 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < +inf.0

    1. Initial program 17.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 4: 91.9% accurate, 0.1× speedup?

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

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

\mathbf{elif}\;t\_3 \leq -5 \cdot 10^{-243}:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;t\_3 \leq 0:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t\_3 \leq 2 \cdot 10^{+284}:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;t\_3 \leq \infty:\\
\;\;\;\;t\_4\\

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


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

    1. Initial program 21.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -inf.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -5e-243 or 0.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 2.00000000000000016e284

    1. Initial program 99.7%

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

    if -5e-243 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 0.0 or +inf.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y))))

    1. Initial program 10.1%

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

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

        \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
      2. --lowering--.f64N/A

        \[\leadsto \frac{\color{blue}{t - a}}{b - y} \]
      3. --lowering--.f6472.3

        \[\leadsto \frac{t - a}{\color{blue}{b - y}} \]
    5. Simplified72.3%

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

Alternative 5: 89.6% accurate, 0.2× speedup?

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

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

\mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-243}:\\
\;\;\;\;t\_2\\

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

\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+137}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(t - a, \frac{z}{t\_3}, x\right)\\

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


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

    1. Initial program 25.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -inf.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -5e-243 or 0.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 5.0000000000000002e137

      1. Initial program 99.7%

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

      if -5e-243 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 0.0 or +inf.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y))))

      1. Initial program 10.1%

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

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

          \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
        2. --lowering--.f64N/A

          \[\leadsto \frac{\color{blue}{t - a}}{b - y} \]
        3. --lowering--.f6472.3

          \[\leadsto \frac{t - a}{\color{blue}{b - y}} \]
      5. Simplified72.3%

        \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]

      if 5.0000000000000002e137 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < +inf.0

      1. Initial program 46.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 6: 80.1% accurate, 0.8× speedup?

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

        1. Initial program 41.4%

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

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

            \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
          2. --lowering--.f64N/A

            \[\leadsto \frac{\color{blue}{t - a}}{b - y} \]
          3. --lowering--.f6476.3

            \[\leadsto \frac{t - a}{\color{blue}{b - y}} \]
        5. Simplified76.3%

          \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]

        if -2.8999999999999999e-24 < z < 2.6e12

        1. Initial program 84.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        Alternative 7: 79.0% accurate, 0.9× speedup?

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

          1. Initial program 41.4%

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

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

              \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
            2. --lowering--.f64N/A

              \[\leadsto \frac{\color{blue}{t - a}}{b - y} \]
            3. --lowering--.f6476.3

              \[\leadsto \frac{t - a}{\color{blue}{b - y}} \]
          5. Simplified76.3%

            \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]

          if -2.8999999999999999e-24 < z < 1.9e12

          1. Initial program 84.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 8: 76.5% accurate, 0.9× speedup?

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

            1. Initial program 41.4%

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

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

                \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
              2. --lowering--.f64N/A

                \[\leadsto \frac{\color{blue}{t - a}}{b - y} \]
              3. --lowering--.f6476.3

                \[\leadsto \frac{t - a}{\color{blue}{b - y}} \]
            5. Simplified76.3%

              \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]

            if -2.8999999999999999e-24 < z < 9e12

            1. Initial program 84.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            Alternative 9: 76.4% accurate, 1.0× speedup?

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

              1. Initial program 41.8%

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

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

                  \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
                2. --lowering--.f64N/A

                  \[\leadsto \frac{\color{blue}{t - a}}{b - y} \]
                3. --lowering--.f6476.4

                  \[\leadsto \frac{t - a}{\color{blue}{b - y}} \]
              5. Simplified76.4%

                \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]

              if -2.8999999999999999e-24 < z < 0.71999999999999997

              1. Initial program 83.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                Alternative 10: 72.3% accurate, 1.2× speedup?

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

                  1. Initial program 42.0%

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

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

                      \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
                    2. --lowering--.f64N/A

                      \[\leadsto \frac{\color{blue}{t - a}}{b - y} \]
                    3. --lowering--.f6476.0

                      \[\leadsto \frac{t - a}{\color{blue}{b - y}} \]
                  5. Simplified76.0%

                    \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]

                  if -2.50000000000000017e-38 < z < 0.37

                  1. Initial program 84.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                Alternative 11: 67.9% accurate, 1.3× speedup?

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

                  1. Initial program 47.2%

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

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

                      \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
                    2. --lowering--.f64N/A

                      \[\leadsto \frac{\color{blue}{t - a}}{b - y} \]
                    3. --lowering--.f6470.0

                      \[\leadsto \frac{t - a}{\color{blue}{b - y}} \]
                  5. Simplified70.0%

                    \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]

                  if -2.49999999999999999e-56 < z < 9.60000000000000077e-75

                  1. Initial program 85.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                Alternative 12: 64.9% accurate, 1.3× speedup?

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

                  1. Initial program 47.2%

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

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

                      \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
                    2. --lowering--.f64N/A

                      \[\leadsto \frac{\color{blue}{t - a}}{b - y} \]
                    3. --lowering--.f6470.0

                      \[\leadsto \frac{t - a}{\color{blue}{b - y}} \]
                  5. Simplified70.0%

                    \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]

                  if -1.79999999999999989e-56 < z < 4.7999999999999998e-74

                  1. Initial program 85.6%

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

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

                      \[\leadsto \color{blue}{x} \]
                  5. Recombined 2 regimes into one program.
                  6. Add Preprocessing

                  Alternative 13: 54.2% accurate, 1.4× speedup?

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

                    1. Initial program 44.8%

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

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

                        \[\leadsto \color{blue}{\frac{x}{1 + -1 \cdot z}} \]
                      2. mul-1-negN/A

                        \[\leadsto \frac{x}{1 + \color{blue}{\left(\mathsf{neg}\left(z\right)\right)}} \]
                      3. unsub-negN/A

                        \[\leadsto \frac{x}{\color{blue}{1 - z}} \]
                      4. --lowering--.f6453.9

                        \[\leadsto \frac{x}{\color{blue}{1 - z}} \]
                    5. Simplified53.9%

                      \[\leadsto \color{blue}{\frac{x}{1 - z}} \]

                    if -1.69999999999999992e25 < y < 4.49999999999999979e47

                    1. Initial program 76.6%

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

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

                        \[\leadsto \color{blue}{\frac{t - a}{b}} \]
                      2. --lowering--.f6456.9

                        \[\leadsto \frac{\color{blue}{t - a}}{b} \]
                    5. Simplified56.9%

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

                  Alternative 14: 41.2% accurate, 1.4× speedup?

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

                    1. Initial program 57.8%

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

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

                        \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
                      2. --lowering--.f64N/A

                        \[\leadsto \frac{\color{blue}{t - a}}{b - y} \]
                      3. --lowering--.f6463.1

                        \[\leadsto \frac{t - a}{\color{blue}{b - y}} \]
                    5. Simplified63.1%

                      \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
                    6. Taylor expanded in t around inf

                      \[\leadsto \frac{\color{blue}{t}}{b - y} \]
                    7. Step-by-step derivation
                      1. Simplified56.0%

                        \[\leadsto \frac{\color{blue}{t}}{b - y} \]

                      if -2.3000000000000001e109 < t < 2.45000000000000015e91

                      1. Initial program 62.6%

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

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

                          \[\leadsto \color{blue}{\frac{x}{1 + -1 \cdot z}} \]
                        2. mul-1-negN/A

                          \[\leadsto \frac{x}{1 + \color{blue}{\left(\mathsf{neg}\left(z\right)\right)}} \]
                        3. unsub-negN/A

                          \[\leadsto \frac{x}{\color{blue}{1 - z}} \]
                        4. --lowering--.f6443.2

                          \[\leadsto \frac{x}{\color{blue}{1 - z}} \]
                      5. Simplified43.2%

                        \[\leadsto \color{blue}{\frac{x}{1 - z}} \]
                    8. Recombined 2 regimes into one program.
                    9. Add Preprocessing

                    Alternative 15: 45.1% accurate, 1.4× speedup?

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

                      1. Initial program 41.4%

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

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

                          \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
                        2. --lowering--.f64N/A

                          \[\leadsto \frac{\color{blue}{t - a}}{b - y} \]
                        3. --lowering--.f6476.2

                          \[\leadsto \frac{t - a}{\color{blue}{b - y}} \]
                      5. Simplified76.2%

                        \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
                      6. Taylor expanded in t around inf

                        \[\leadsto \frac{\color{blue}{t}}{b - y} \]
                      7. Step-by-step derivation
                        1. Simplified38.3%

                          \[\leadsto \frac{\color{blue}{t}}{b - y} \]

                        if -4.1000000000000002e-14 < z < 0.225000000000000006

                        1. Initial program 84.0%

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

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

                            \[\leadsto \color{blue}{x} \]
                        5. Recombined 2 regimes into one program.
                        6. Add Preprocessing

                        Alternative 16: 37.0% accurate, 1.4× speedup?

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

                          1. Initial program 43.7%

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

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

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

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

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

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

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

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

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

                            \[\leadsto \color{blue}{\frac{t}{b}} \]
                          7. Step-by-step derivation
                            1. /-lowering-/.f6427.9

                              \[\leadsto \color{blue}{\frac{t}{b}} \]
                          8. Simplified27.9%

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

                          if -1.04999999999999997e-8 < z < 1.9e12

                          1. Initial program 84.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \mathsf{fma}\left(z, \color{blue}{x}, x\right) \]
                          7. Step-by-step derivation
                            1. Simplified51.8%

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

                            if 1.9e12 < z

                            1. Initial program 37.7%

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

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

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

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

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

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

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

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

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

                              \[\leadsto \color{blue}{-1 \cdot \frac{a}{b}} \]
                            7. Step-by-step derivation
                              1. mul-1-negN/A

                                \[\leadsto \color{blue}{\mathsf{neg}\left(\frac{a}{b}\right)} \]
                              2. distribute-neg-frac2N/A

                                \[\leadsto \color{blue}{\frac{a}{\mathsf{neg}\left(b\right)}} \]
                              3. mul-1-negN/A

                                \[\leadsto \frac{a}{\color{blue}{-1 \cdot b}} \]
                              4. /-lowering-/.f64N/A

                                \[\leadsto \color{blue}{\frac{a}{-1 \cdot b}} \]
                              5. mul-1-negN/A

                                \[\leadsto \frac{a}{\color{blue}{\mathsf{neg}\left(b\right)}} \]
                              6. neg-lowering-neg.f6432.4

                                \[\leadsto \frac{a}{\color{blue}{-b}} \]
                            8. Simplified32.4%

                              \[\leadsto \color{blue}{\frac{a}{-b}} \]
                          8. Recombined 3 regimes into one program.
                          9. Final simplification40.2%

                            \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.05 \cdot 10^{-8}:\\ \;\;\;\;\frac{t}{b}\\ \mathbf{elif}\;z \leq 1900000000000:\\ \;\;\;\;\mathsf{fma}\left(z, x, x\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{a}{0 - b}\\ \end{array} \]
                          10. Add Preprocessing

                          Alternative 17: 36.6% accurate, 1.6× speedup?

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

                            1. Initial program 41.0%

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

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

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

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

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

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

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

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

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

                              \[\leadsto \color{blue}{\frac{t}{b}} \]
                            7. Step-by-step derivation
                              1. /-lowering-/.f6426.7

                                \[\leadsto \color{blue}{\frac{t}{b}} \]
                            8. Simplified26.7%

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

                            if -2.1e-18 < z < 1.9e12

                            1. Initial program 84.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \mathsf{fma}\left(z, \color{blue}{x}, x\right) \]
                            7. Step-by-step derivation
                              1. Simplified51.8%

                                \[\leadsto \mathsf{fma}\left(z, \color{blue}{x}, x\right) \]
                            8. Recombined 2 regimes into one program.
                            9. Add Preprocessing

                            Alternative 18: 25.6% accurate, 5.6× speedup?

                            \[\begin{array}{l} \\ \mathsf{fma}\left(z, x, x\right) \end{array} \]
                            (FPCore (x y z t a b) :precision binary64 (fma z x x))
                            double code(double x, double y, double z, double t, double a, double b) {
                            	return fma(z, x, x);
                            }
                            
                            function code(x, y, z, t, a, b)
                            	return fma(z, x, x)
                            end
                            
                            code[x_, y_, z_, t_, a_, b_] := N[(z * x + x), $MachinePrecision]
                            
                            \begin{array}{l}
                            
                            \\
                            \mathsf{fma}\left(z, x, x\right)
                            \end{array}
                            
                            Derivation
                            1. Initial program 61.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \mathsf{fma}\left(z, \color{blue}{x}, x\right) \]
                            7. Step-by-step derivation
                              1. Simplified26.5%

                                \[\leadsto \mathsf{fma}\left(z, \color{blue}{x}, x\right) \]
                              2. Add Preprocessing

                              Alternative 19: 25.4% accurate, 39.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 61.2%

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

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

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

                                Developer Target 1: 73.7% accurate, 0.6× speedup?

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

                                Reproduce

                                ?
                                herbie shell --seed 2024195 
                                (FPCore (x y z t a b)
                                  :name "Development.Shake.Progress:decay from shake-0.15.5"
                                  :precision binary64
                                
                                  :alt
                                  (! :herbie-platform default (- (/ (+ (* z t) (* y x)) (+ y (* z (- b y)))) (/ a (+ (- b y) (/ y z)))))
                                
                                  (/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))))