Development.Shake.Progress:decay from shake-0.15.5

Percentage Accurate: 67.8% → 93.7%
Time: 14.4s
Alternatives: 19
Speedup: 0.8×

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: 67.8% 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: 93.7% accurate, 0.1× speedup?

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

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

\mathbf{elif}\;t\_6 \leq -2 \cdot 10^{-280}:\\
\;\;\;\;t\_5\\

\mathbf{elif}\;t\_6 \leq 0:\\
\;\;\;\;t\_7 - \frac{\mathsf{fma}\left(-x, \frac{y}{b - y}, t\_3\right)}{z}\\

\mathbf{elif}\;t\_6 \leq 5 \cdot 10^{+283}:\\
\;\;\;\;t\_5\\

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

\mathbf{else}:\\
\;\;\;\;t\_7 - \frac{\mathsf{fma}\left(-y, \frac{x}{b - y}, t\_3\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 30.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. lower-/.f64N/A

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

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

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

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

    if -inf.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -1.9999999999999999e-280 or -0.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 5.0000000000000004e283

    1. Initial program 99.2%

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

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

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

        \[\leadsto \frac{\color{blue}{y \cdot x} + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \]
      4. lower-fma.f6499.2

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

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

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

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

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

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

    1. Initial program 21.6%

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

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

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

        \[\leadsto \frac{\color{blue}{y \cdot x} + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \]
      4. lower-fma.f6421.6

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

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

        \[\leadsto \frac{\mathsf{fma}\left(y, x, \color{blue}{\left(t - a\right) \cdot z}\right)}{y + z \cdot \left(b - y\right)} \]
      7. lower-*.f6421.6

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

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

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

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

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

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

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

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

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

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

    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 z around inf

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

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

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

Alternative 2: 93.4% accurate, 0.1× speedup?

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

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

\mathbf{elif}\;t\_5 \leq -2 \cdot 10^{-280}:\\
\;\;\;\;t\_4\\

\mathbf{elif}\;t\_5 \leq 0:\\
\;\;\;\;t\_7\\

\mathbf{elif}\;t\_5 \leq 5 \cdot 10^{+283}:\\
\;\;\;\;t\_4\\

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

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


\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 30.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. lower-/.f64N/A

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

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

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

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

    if -inf.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -1.9999999999999999e-280 or -0.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 5.0000000000000004e283

    1. Initial program 99.2%

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

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

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

        \[\leadsto \frac{\color{blue}{y \cdot x} + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \]
      4. lower-fma.f6499.2

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

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

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

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

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

    if -1.9999999999999999e-280 < (/.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 9.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}{\left(\frac{t}{b - y} + \frac{x \cdot y}{z \cdot \left(b - y\right)}\right) - \left(\frac{a}{b - y} + \frac{y \cdot \left(t - a\right)}{z \cdot {\left(b - y\right)}^{2}}\right)} \]
    4. Applied rewrites96.8%

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

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

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

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

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

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

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

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

Alternative 3: 87.5% accurate, 0.1× speedup?

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

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

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

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

\mathbf{elif}\;t\_5 \leq 5 \cdot 10^{+283}:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;t\_5 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(\frac{t - a}{x}, \frac{z}{t\_4}, \frac{y}{t\_4}\right) \cdot x\\

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


\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 or +inf.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y))))

    1. Initial program 9.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. lower-/.f64N/A

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

        \[\leadsto \frac{\color{blue}{t - a}}{b - y} \]
      3. lower--.f6478.8

        \[\leadsto \frac{t - a}{\color{blue}{b - y}} \]
    5. Applied rewrites78.8%

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

    if -inf.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -1.9999999999999999e-280 or -0.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 5.0000000000000004e283

    1. Initial program 99.2%

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

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

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

        \[\leadsto \frac{\color{blue}{y \cdot x} + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \]
      4. lower-fma.f6499.2

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

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

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

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

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

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

    1. Initial program 21.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 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. associate-/r*N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 4: 71.5% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t - a}{b - y}\\ t_2 := \left(t - a\right) \cdot z\\ \mathbf{if}\;z \leq -0.00066:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -1.9 \cdot 10^{-306}:\\ \;\;\;\;\frac{\mathsf{fma}\left(t, z, y \cdot x\right)}{\mathsf{fma}\left(b - y, z, y\right)}\\ \mathbf{elif}\;z \leq 3.3 \cdot 10^{-158}:\\ \;\;\;\;\frac{\mathsf{fma}\left(y, x, t\_2\right)}{y - z \cdot y}\\ \mathbf{elif}\;z \leq 1.08 \cdot 10^{-13}:\\ \;\;\;\;\frac{t\_2}{\left(b - y\right) \cdot z + y}\\ \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 (* (- t a) z)))
   (if (<= z -0.00066)
     t_1
     (if (<= z -1.9e-306)
       (/ (fma t z (* y x)) (fma (- b y) z y))
       (if (<= z 3.3e-158)
         (/ (fma y x t_2) (- y (* z y)))
         (if (<= z 1.08e-13) (/ t_2 (+ (* (- b y) z) y)) 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 = (t - a) * z;
	double tmp;
	if (z <= -0.00066) {
		tmp = t_1;
	} else if (z <= -1.9e-306) {
		tmp = fma(t, z, (y * x)) / fma((b - y), z, y);
	} else if (z <= 3.3e-158) {
		tmp = fma(y, x, t_2) / (y - (z * y));
	} else if (z <= 1.08e-13) {
		tmp = t_2 / (((b - y) * z) + y);
	} 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(t - a) * z)
	tmp = 0.0
	if (z <= -0.00066)
		tmp = t_1;
	elseif (z <= -1.9e-306)
		tmp = Float64(fma(t, z, Float64(y * x)) / fma(Float64(b - y), z, y));
	elseif (z <= 3.3e-158)
		tmp = Float64(fma(y, x, t_2) / Float64(y - Float64(z * y)));
	elseif (z <= 1.08e-13)
		tmp = Float64(t_2 / Float64(Float64(Float64(b - y) * z) + y));
	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[(t - a), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -0.00066], t$95$1, If[LessEqual[z, -1.9e-306], N[(N[(t * z + N[(y * x), $MachinePrecision]), $MachinePrecision] / N[(N[(b - y), $MachinePrecision] * z + y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.3e-158], N[(N[(y * x + t$95$2), $MachinePrecision] / N[(y - N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.08e-13], N[(t$95$2 / N[(N[(N[(b - y), $MachinePrecision] * z), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}

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

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

\mathbf{elif}\;z \leq 3.3 \cdot 10^{-158}:\\
\;\;\;\;\frac{\mathsf{fma}\left(y, x, t\_2\right)}{y - z \cdot y}\\

\mathbf{elif}\;z \leq 1.08 \cdot 10^{-13}:\\
\;\;\;\;\frac{t\_2}{\left(b - y\right) \cdot z + y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if z < -6.6e-4 or 1.0799999999999999e-13 < z

    1. Initial program 42.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 z around inf

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

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

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

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

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

    if -6.6e-4 < z < -1.9e-306

    1. Initial program 90.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 a around 0

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

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

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

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

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

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

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

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

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

    if -1.9e-306 < z < 3.3000000000000002e-158

    1. Initial program 98.4%

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

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

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

        \[\leadsto \frac{\color{blue}{y \cdot x} + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \]
      4. lower-fma.f6498.4

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

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

        \[\leadsto \frac{\mathsf{fma}\left(y, x, \color{blue}{\left(t - a\right) \cdot z}\right)}{y + z \cdot \left(b - y\right)} \]
      7. lower-*.f6498.4

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

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

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

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

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

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

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

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

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

    if 3.3000000000000002e-158 < z < 1.0799999999999999e-13

    1. Initial program 93.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 z around inf

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

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

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

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

      \[\leadsto \frac{\color{blue}{\left(t - a\right) \cdot z}}{y + z \cdot \left(b - y\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification72.7%

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

Alternative 5: 71.5% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t - a}{b - y}\\ \mathbf{if}\;z \leq -0.00066:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -1.9 \cdot 10^{-306}:\\ \;\;\;\;\frac{\mathsf{fma}\left(t, z, y \cdot x\right)}{\mathsf{fma}\left(b - y, z, y\right)}\\ \mathbf{elif}\;z \leq 3.3 \cdot 10^{-158}:\\ \;\;\;\;\frac{\mathsf{fma}\left(t - a, z, y \cdot x\right)}{y - z \cdot y}\\ \mathbf{elif}\;z \leq 1.08 \cdot 10^{-13}:\\ \;\;\;\;\frac{\left(t - a\right) \cdot z}{\left(b - y\right) \cdot z + y}\\ \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 -0.00066)
     t_1
     (if (<= z -1.9e-306)
       (/ (fma t z (* y x)) (fma (- b y) z y))
       (if (<= z 3.3e-158)
         (/ (fma (- t a) z (* y x)) (- y (* z y)))
         (if (<= z 1.08e-13) (/ (* (- t a) z) (+ (* (- b y) z) y)) 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 <= -0.00066) {
		tmp = t_1;
	} else if (z <= -1.9e-306) {
		tmp = fma(t, z, (y * x)) / fma((b - y), z, y);
	} else if (z <= 3.3e-158) {
		tmp = fma((t - a), z, (y * x)) / (y - (z * y));
	} else if (z <= 1.08e-13) {
		tmp = ((t - a) * z) / (((b - y) * z) + y);
	} 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 <= -0.00066)
		tmp = t_1;
	elseif (z <= -1.9e-306)
		tmp = Float64(fma(t, z, Float64(y * x)) / fma(Float64(b - y), z, y));
	elseif (z <= 3.3e-158)
		tmp = Float64(fma(Float64(t - a), z, Float64(y * x)) / Float64(y - Float64(z * y)));
	elseif (z <= 1.08e-13)
		tmp = Float64(Float64(Float64(t - a) * z) / Float64(Float64(Float64(b - y) * z) + y));
	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, -0.00066], t$95$1, If[LessEqual[z, -1.9e-306], N[(N[(t * z + N[(y * x), $MachinePrecision]), $MachinePrecision] / N[(N[(b - y), $MachinePrecision] * z + y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.3e-158], N[(N[(N[(t - a), $MachinePrecision] * z + N[(y * x), $MachinePrecision]), $MachinePrecision] / N[(y - N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.08e-13], N[(N[(N[(t - a), $MachinePrecision] * z), $MachinePrecision] / N[(N[(N[(b - y), $MachinePrecision] * z), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -0.00066:\\
\;\;\;\;t\_1\\

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

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

\mathbf{elif}\;z \leq 1.08 \cdot 10^{-13}:\\
\;\;\;\;\frac{\left(t - a\right) \cdot z}{\left(b - y\right) \cdot z + y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if z < -6.6e-4 or 1.0799999999999999e-13 < z

    1. Initial program 42.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 z around inf

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

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

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

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

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

    if -6.6e-4 < z < -1.9e-306

    1. Initial program 90.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 a around 0

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

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

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

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

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

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

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

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

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

    if -1.9e-306 < z < 3.3000000000000002e-158

    1. Initial program 98.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 b around 0

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\mathsf{fma}\left(t - a, z, x \cdot y\right)}{y - \color{blue}{z \cdot y}} \]
      11. lower-*.f6483.3

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

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

    if 3.3000000000000002e-158 < z < 1.0799999999999999e-13

    1. Initial program 93.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 z around inf

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

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

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

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

      \[\leadsto \frac{\color{blue}{\left(t - a\right) \cdot z}}{y + z \cdot \left(b - y\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification72.7%

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

Alternative 6: 68.1% accurate, 0.7× speedup?

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

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

\mathbf{elif}\;z \leq -1.2 \cdot 10^{-144}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq 2.4 \cdot 10^{-258}:\\
\;\;\;\;\frac{y}{\mathsf{fma}\left(b - y, z, y\right)} \cdot x\\

\mathbf{elif}\;z \leq 1.08 \cdot 10^{-13}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -185 or 1.0799999999999999e-13 < z

    1. Initial program 42.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 z around inf

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

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

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

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

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

    if -185 < z < -1.19999999999999997e-144 or 2.4000000000000002e-258 < z < 1.0799999999999999e-13

    1. Initial program 95.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 \frac{\color{blue}{z \cdot \left(t - a\right)}}{y + z \cdot \left(b - y\right)} \]
    4. Step-by-step derivation
      1. *-commutativeN/A

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

        \[\leadsto \frac{\color{blue}{\left(t - a\right) \cdot z}}{y + z \cdot \left(b - y\right)} \]
      3. lower--.f6465.2

        \[\leadsto \frac{\color{blue}{\left(t - a\right)} \cdot z}{y + z \cdot \left(b - y\right)} \]
    5. Applied rewrites65.2%

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

    if -1.19999999999999997e-144 < z < 2.4000000000000002e-258

    1. Initial program 89.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 x around inf

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

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

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

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

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

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

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

        \[\leadsto \frac{y}{\color{blue}{\mathsf{fma}\left(b - y, z, y\right)}} \cdot x \]
      8. lower--.f6472.4

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

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

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

Alternative 7: 67.5% accurate, 0.7× speedup?

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

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

\mathbf{elif}\;z \leq -1.2 \cdot 10^{-144}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;z \leq 2.4 \cdot 10^{-258}:\\
\;\;\;\;\frac{y}{t\_1} \cdot x\\

\mathbf{elif}\;z \leq 1.08 \cdot 10^{-13}:\\
\;\;\;\;t\_2\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -185 or 1.0799999999999999e-13 < z

    1. Initial program 42.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 z around inf

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

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

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

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

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

    if -185 < z < -1.19999999999999997e-144 or 2.4000000000000002e-258 < z < 1.0799999999999999e-13

    1. Initial program 95.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 x around 0

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

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

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

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

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

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

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

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

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

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

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

    if -1.19999999999999997e-144 < z < 2.4000000000000002e-258

    1. Initial program 89.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 x around inf

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

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

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

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

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

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

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

        \[\leadsto \frac{y}{\color{blue}{\mathsf{fma}\left(b - y, z, y\right)}} \cdot x \]
      8. lower--.f6472.4

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -185:\\ \;\;\;\;\frac{t - a}{b - y}\\ \mathbf{elif}\;z \leq -1.2 \cdot 10^{-144}:\\ \;\;\;\;\frac{z}{\mathsf{fma}\left(b - y, z, y\right)} \cdot \left(t - a\right)\\ \mathbf{elif}\;z \leq 2.4 \cdot 10^{-258}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(b - y, z, y\right)} \cdot x\\ \mathbf{elif}\;z \leq 1.08 \cdot 10^{-13}:\\ \;\;\;\;\frac{z}{\mathsf{fma}\left(b - y, z, y\right)} \cdot \left(t - a\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{t - a}{b - y}\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 72.1% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t - a}{b - y}\\ \mathbf{if}\;z \leq -0.00066:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 6.2 \cdot 10^{-156}:\\ \;\;\;\;\frac{\mathsf{fma}\left(t, z, y \cdot x\right)}{\mathsf{fma}\left(b - y, z, y\right)}\\ \mathbf{elif}\;z \leq 1.08 \cdot 10^{-13}:\\ \;\;\;\;\frac{\left(t - a\right) \cdot z}{\left(b - y\right) \cdot z + y}\\ \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 -0.00066)
     t_1
     (if (<= z 6.2e-156)
       (/ (fma t z (* y x)) (fma (- b y) z y))
       (if (<= z 1.08e-13) (/ (* (- t a) z) (+ (* (- b y) z) y)) 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 <= -0.00066) {
		tmp = t_1;
	} else if (z <= 6.2e-156) {
		tmp = fma(t, z, (y * x)) / fma((b - y), z, y);
	} else if (z <= 1.08e-13) {
		tmp = ((t - a) * z) / (((b - y) * z) + y);
	} 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 <= -0.00066)
		tmp = t_1;
	elseif (z <= 6.2e-156)
		tmp = Float64(fma(t, z, Float64(y * x)) / fma(Float64(b - y), z, y));
	elseif (z <= 1.08e-13)
		tmp = Float64(Float64(Float64(t - a) * z) / Float64(Float64(Float64(b - y) * z) + y));
	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, -0.00066], t$95$1, If[LessEqual[z, 6.2e-156], N[(N[(t * z + N[(y * x), $MachinePrecision]), $MachinePrecision] / N[(N[(b - y), $MachinePrecision] * z + y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.08e-13], N[(N[(N[(t - a), $MachinePrecision] * z), $MachinePrecision] / N[(N[(N[(b - y), $MachinePrecision] * z), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -0.00066:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;z \leq 1.08 \cdot 10^{-13}:\\
\;\;\;\;\frac{\left(t - a\right) \cdot z}{\left(b - y\right) \cdot z + y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -6.6e-4 or 1.0799999999999999e-13 < z

    1. Initial program 42.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 z around inf

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

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

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

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

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

    if -6.6e-4 < z < 6.1999999999999996e-156

    1. Initial program 93.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 a around 0

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

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

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

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

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

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

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

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

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

    if 6.1999999999999996e-156 < z < 1.0799999999999999e-13

    1. Initial program 93.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 z around inf

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

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

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

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

      \[\leadsto \frac{\color{blue}{\left(t - a\right) \cdot z}}{y + z \cdot \left(b - y\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification70.7%

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

Alternative 9: 85.2% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t - a}{b - y}\\ \mathbf{if}\;z \leq -7.4 \cdot 10^{+19}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.1 \cdot 10^{+70}:\\ \;\;\;\;\frac{\mathsf{fma}\left(y, x, \left(t - a\right) \cdot z\right)}{\left(b - y\right) \cdot z + y}\\ \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 -7.4e+19)
     t_1
     (if (<= z 1.1e+70) (/ (fma y x (* (- t a) z)) (+ (* (- b y) z) y)) 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 <= -7.4e+19) {
		tmp = t_1;
	} else if (z <= 1.1e+70) {
		tmp = fma(y, x, ((t - a) * z)) / (((b - y) * z) + y);
	} 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 <= -7.4e+19)
		tmp = t_1;
	elseif (z <= 1.1e+70)
		tmp = Float64(fma(y, x, Float64(Float64(t - a) * z)) / Float64(Float64(Float64(b - y) * z) + y));
	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, -7.4e+19], t$95$1, If[LessEqual[z, 1.1e+70], N[(N[(y * x + N[(N[(t - a), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(b - y), $MachinePrecision] * z), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -7.4 \cdot 10^{+19}:\\
\;\;\;\;t\_1\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -7.4e19 or 1.1e70 < z

    1. Initial program 38.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. lower-/.f64N/A

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

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

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

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

    if -7.4e19 < z < 1.1e70

    1. Initial program 89.0%

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

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

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

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

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

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

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

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

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

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

Alternative 10: 62.9% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t - a}{b - y}\\ \mathbf{if}\;z \leq -2500000000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 2.4 \cdot 10^{-258}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(b - y, z, y\right)} \cdot x\\ \mathbf{elif}\;z \leq 2.05 \cdot 10^{-110}:\\ \;\;\;\;\frac{\left(t - a\right) \cdot z}{y - z \cdot y}\\ \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 -2500000000000.0)
     t_1
     (if (<= z 2.4e-258)
       (* (/ y (fma (- b y) z y)) x)
       (if (<= z 2.05e-110) (/ (* (- t a) z) (- y (* z y))) 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 <= -2500000000000.0) {
		tmp = t_1;
	} else if (z <= 2.4e-258) {
		tmp = (y / fma((b - y), z, y)) * x;
	} else if (z <= 2.05e-110) {
		tmp = ((t - a) * z) / (y - (z * y));
	} 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 <= -2500000000000.0)
		tmp = t_1;
	elseif (z <= 2.4e-258)
		tmp = Float64(Float64(y / fma(Float64(b - y), z, y)) * x);
	elseif (z <= 2.05e-110)
		tmp = Float64(Float64(Float64(t - a) * z) / Float64(y - Float64(z * y)));
	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, -2500000000000.0], t$95$1, If[LessEqual[z, 2.4e-258], N[(N[(y / N[(N[(b - y), $MachinePrecision] * z + y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[z, 2.05e-110], N[(N[(N[(t - a), $MachinePrecision] * z), $MachinePrecision] / N[(y - N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -2500000000000:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq 2.4 \cdot 10^{-258}:\\
\;\;\;\;\frac{y}{\mathsf{fma}\left(b - y, z, y\right)} \cdot x\\

\mathbf{elif}\;z \leq 2.05 \cdot 10^{-110}:\\
\;\;\;\;\frac{\left(t - a\right) \cdot z}{y - z \cdot y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -2.5e12 or 2.04999999999999991e-110 < z

    1. Initial program 49.9%

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

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

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

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

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

    if -2.5e12 < z < 2.4000000000000002e-258

    1. Initial program 89.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 x around inf

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

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

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

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

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

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

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

        \[\leadsto \frac{y}{\color{blue}{\mathsf{fma}\left(b - y, z, y\right)}} \cdot x \]
      8. lower--.f6458.2

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

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

    if 2.4000000000000002e-258 < z < 2.04999999999999991e-110

    1. Initial program 96.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{\left(t - a\right) \cdot z}}{y - z \cdot y} \]
      3. lower--.f6454.6

        \[\leadsto \frac{\color{blue}{\left(t - a\right)} \cdot z}{y - z \cdot y} \]
    10. Applied rewrites54.6%

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

Alternative 11: 66.7% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t - a}{b - y}\\ \mathbf{if}\;z \leq -2500000000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 2.15 \cdot 10^{-105}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(b - y, z, y\right)} \cdot 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 -2500000000000.0)
     t_1
     (if (<= z 2.15e-105) (* (/ y (fma (- b y) z 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 <= -2500000000000.0) {
		tmp = t_1;
	} else if (z <= 2.15e-105) {
		tmp = (y / fma((b - y), z, 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 <= -2500000000000.0)
		tmp = t_1;
	elseif (z <= 2.15e-105)
		tmp = Float64(Float64(y / fma(Float64(b - y), z, 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, -2500000000000.0], t$95$1, If[LessEqual[z, 2.15e-105], N[(N[(y / N[(N[(b - y), $MachinePrecision] * z + 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 -2500000000000:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq 2.15 \cdot 10^{-105}:\\
\;\;\;\;\frac{y}{\mathsf{fma}\left(b - y, z, y\right)} \cdot x\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -2.5e12 or 2.14999999999999982e-105 < z

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

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

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

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

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

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

    if -2.5e12 < z < 2.14999999999999982e-105

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

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

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

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

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

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

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

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

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

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

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

Alternative 12: 59.6% accurate, 1.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x}{1 - z}\\ \mathbf{if}\;y \leq -4 \cdot 10^{+60}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 0.038:\\ \;\;\;\;\frac{t - a}{b - y}\\ \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 -4e+60) t_1 (if (<= y 0.038) (/ (- t a) (- b y)) 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 <= -4e+60) {
		tmp = t_1;
	} else if (y <= 0.038) {
		tmp = (t - a) / (b - y);
	} 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 <= (-4d+60)) then
        tmp = t_1
    else if (y <= 0.038d0) then
        tmp = (t - a) / (b - y)
    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 <= -4e+60) {
		tmp = t_1;
	} else if (y <= 0.038) {
		tmp = (t - a) / (b - y);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = x / (1.0 - z)
	tmp = 0
	if y <= -4e+60:
		tmp = t_1
	elif y <= 0.038:
		tmp = (t - a) / (b - y)
	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 <= -4e+60)
		tmp = t_1;
	elseif (y <= 0.038)
		tmp = Float64(Float64(t - a) / Float64(b - y));
	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 <= -4e+60)
		tmp = t_1;
	elseif (y <= 0.038)
		tmp = (t - a) / (b - y);
	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, -4e+60], t$95$1, If[LessEqual[y, 0.038], N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{x}{1 - z}\\
\mathbf{if}\;y \leq -4 \cdot 10^{+60}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y \leq 0.038:\\
\;\;\;\;\frac{t - a}{b - y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -3.9999999999999998e60 or 0.0379999999999999991 < y

    1. Initial program 49.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 y around inf

      \[\leadsto \color{blue}{\frac{x}{1 + -1 \cdot z}} \]
    4. Step-by-step derivation
      1. lower-/.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. lower--.f6456.4

        \[\leadsto \frac{x}{\color{blue}{1 - z}} \]
    5. Applied rewrites56.4%

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

    if -3.9999999999999998e60 < y < 0.0379999999999999991

    1. Initial program 80.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. lower-/.f64N/A

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

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

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

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

Alternative 13: 53.9% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x}{1 - z}\\ \mathbf{if}\;y \leq -1.35 \cdot 10^{+60}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 0.038:\\ \;\;\;\;\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.35e+60) t_1 (if (<= y 0.038) (/ (- 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.35e+60) {
		tmp = t_1;
	} else if (y <= 0.038) {
		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.35d+60)) then
        tmp = t_1
    else if (y <= 0.038d0) 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.35e+60) {
		tmp = t_1;
	} else if (y <= 0.038) {
		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.35e+60:
		tmp = t_1
	elif y <= 0.038:
		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.35e+60)
		tmp = t_1;
	elseif (y <= 0.038)
		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.35e+60)
		tmp = t_1;
	elseif (y <= 0.038)
		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.35e+60], t$95$1, If[LessEqual[y, 0.038], 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.35 \cdot 10^{+60}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y \leq 0.038:\\
\;\;\;\;\frac{t - a}{b}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -1.35e60 or 0.0379999999999999991 < y

    1. Initial program 49.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 y around inf

      \[\leadsto \color{blue}{\frac{x}{1 + -1 \cdot z}} \]
    4. Step-by-step derivation
      1. lower-/.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. lower--.f6456.4

        \[\leadsto \frac{x}{\color{blue}{1 - z}} \]
    5. Applied rewrites56.4%

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

    if -1.35e60 < y < 0.0379999999999999991

    1. Initial program 80.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 y around 0

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

        \[\leadsto \color{blue}{\frac{t - a}{b}} \]
      2. lower--.f6453.8

        \[\leadsto \frac{\color{blue}{t - a}}{b} \]
    5. Applied rewrites53.8%

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

Alternative 14: 41.7% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x}{1 - z}\\ \mathbf{if}\;y \leq -2000000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 0.022:\\ \;\;\;\;\frac{-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 -2000000000.0) t_1 (if (<= y 0.022) (/ (- 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 <= -2000000000.0) {
		tmp = t_1;
	} else if (y <= 0.022) {
		tmp = -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 <= (-2000000000.0d0)) then
        tmp = t_1
    else if (y <= 0.022d0) then
        tmp = -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 <= -2000000000.0) {
		tmp = t_1;
	} else if (y <= 0.022) {
		tmp = -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 <= -2000000000.0:
		tmp = t_1
	elif y <= 0.022:
		tmp = -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 <= -2000000000.0)
		tmp = t_1;
	elseif (y <= 0.022)
		tmp = Float64(Float64(-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 <= -2000000000.0)
		tmp = t_1;
	elseif (y <= 0.022)
		tmp = -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, -2000000000.0], t$95$1, If[LessEqual[y, 0.022], N[((-a) / b), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{x}{1 - z}\\
\mathbf{if}\;y \leq -2000000000:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y \leq 0.022:\\
\;\;\;\;\frac{-a}{b}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -2e9 or 0.021999999999999999 < y

    1. Initial program 50.9%

      \[\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. lower-/.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. lower--.f6454.3

        \[\leadsto \frac{x}{\color{blue}{1 - z}} \]
    5. Applied rewrites54.3%

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

    if -2e9 < y < 0.021999999999999999

    1. Initial program 80.4%

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

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

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

        \[\leadsto \frac{\color{blue}{y \cdot x} + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \]
      4. lower-fma.f6480.4

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

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

        \[\leadsto \frac{\mathsf{fma}\left(y, x, \color{blue}{\left(t - a\right) \cdot z}\right)}{y + z \cdot \left(b - y\right)} \]
      7. lower-*.f6480.4

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{z}{\mathsf{fma}\left(b - y, z, y\right)} \cdot \color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \]
      13. lower-neg.f6441.8

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

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

      \[\leadsto -1 \cdot \color{blue}{\frac{a}{b}} \]
    11. Step-by-step derivation
      1. Applied rewrites31.6%

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

    Alternative 15: 36.0% accurate, 1.5× speedup?

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

      1. Initial program 50.3%

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

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

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

          \[\leadsto \frac{\color{blue}{y \cdot x} + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \]
        4. lower-fma.f6450.4

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

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

          \[\leadsto \frac{\mathsf{fma}\left(y, x, \color{blue}{\left(t - a\right) \cdot z}\right)}{y + z \cdot \left(b - y\right)} \]
        7. lower-*.f6450.4

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \frac{z}{\mathsf{fma}\left(b - y, z, y\right)} \cdot \color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \]
        13. lower-neg.f6429.8

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

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

        \[\leadsto -1 \cdot \color{blue}{\frac{a}{b}} \]
      11. Step-by-step derivation
        1. Applied rewrites28.2%

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

        if -1.55000000000000013e-29 < z < 1.00000000000000005e-101

        1. Initial program 92.9%

          \[\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. lower-/.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. lower--.f6441.8

            \[\leadsto \frac{x}{\color{blue}{1 - z}} \]
        5. Applied rewrites41.8%

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

          \[\leadsto \frac{x}{1} \]
        7. Step-by-step derivation
          1. Applied rewrites41.8%

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

        Alternative 16: 32.1% accurate, 1.5× speedup?

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

          1. Initial program 43.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 y around inf

            \[\leadsto \color{blue}{\frac{x}{1 + -1 \cdot z}} \]
          4. Step-by-step derivation
            1. lower-/.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. lower--.f6421.4

              \[\leadsto \frac{x}{\color{blue}{1 - z}} \]
          5. Applied rewrites21.4%

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

            \[\leadsto \frac{x}{-1 \cdot \color{blue}{z}} \]
          7. Step-by-step derivation
            1. Applied rewrites20.8%

              \[\leadsto \frac{x}{-z} \]

            if -1.4000000000000001e-29 < z < 6.4e13

            1. Initial program 92.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 y around inf

              \[\leadsto \color{blue}{\frac{x}{1 + -1 \cdot z}} \]
            4. Step-by-step derivation
              1. lower-/.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. lower--.f6437.1

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

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

              \[\leadsto x + \color{blue}{z \cdot \left(x \cdot z - -1 \cdot x\right)} \]
            7. Step-by-step derivation
              1. Applied rewrites37.2%

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

            Alternative 17: 25.9% accurate, 3.0× speedup?

            \[\begin{array}{l} \\ \mathsf{fma}\left(\mathsf{fma}\left(x, z, x\right), z, x\right) \end{array} \]
            (FPCore (x y z t a b) :precision binary64 (fma (fma x z x) z x))
            double code(double x, double y, double z, double t, double a, double b) {
            	return fma(fma(x, z, x), z, x);
            }
            
            function code(x, y, z, t, a, b)
            	return fma(fma(x, z, x), z, x)
            end
            
            code[x_, y_, z_, t_, a_, b_] := N[(N[(x * z + x), $MachinePrecision] * z + x), $MachinePrecision]
            
            \begin{array}{l}
            
            \\
            \mathsf{fma}\left(\mathsf{fma}\left(x, z, x\right), z, x\right)
            \end{array}
            
            Derivation
            1. Initial program 67.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. lower-/.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. lower--.f6429.1

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

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

              \[\leadsto x + \color{blue}{z \cdot \left(x \cdot z - -1 \cdot x\right)} \]
            7. Step-by-step derivation
              1. Applied rewrites20.8%

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

              Alternative 18: 25.4% accurate, 5.6× speedup?

              \[\begin{array}{l} \\ \mathsf{fma}\left(x, z, x\right) \end{array} \]
              (FPCore (x y z t a b) :precision binary64 (fma x z x))
              double code(double x, double y, double z, double t, double a, double b) {
              	return fma(x, z, x);
              }
              
              function code(x, y, z, t, a, b)
              	return fma(x, z, x)
              end
              
              code[x_, y_, z_, t_, a_, b_] := N[(x * z + x), $MachinePrecision]
              
              \begin{array}{l}
              
              \\
              \mathsf{fma}\left(x, z, x\right)
              \end{array}
              
              Derivation
              1. Initial program 67.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. lower-/.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. lower--.f6429.1

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

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

                \[\leadsto x + \color{blue}{x \cdot z} \]
              7. Step-by-step derivation
                1. Applied rewrites20.4%

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

                Alternative 19: 3.7% accurate, 6.5× speedup?

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

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

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

                  \[\leadsto x + \color{blue}{x \cdot z} \]
                7. Step-by-step derivation
                  1. Applied rewrites20.4%

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

                    \[\leadsto x \cdot z \]
                  3. Step-by-step derivation
                    1. Applied rewrites3.8%

                      \[\leadsto x \cdot z \]
                    2. Final simplification3.8%

                      \[\leadsto z \cdot x \]
                    3. Add Preprocessing

                    Developer Target 1: 75.0% 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 2024268 
                    (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)))))