Development.Shake.Progress:decay from shake-0.15.5

Percentage Accurate: 66.1% → 88.8%
Time: 12.8s
Alternatives: 19
Speedup: 1.0×

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: 66.1% 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: 88.8% accurate, 0.2× speedup?

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

\mathbf{elif}\;z \leq 1.05 \cdot 10^{+42}:\\
\;\;\;\;\frac{\left(t - a\right) \cdot z + y \cdot x}{\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.8000000000000002e40 or 1.04999999999999998e42 < z

    1. Initial program 39.1%

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

      \[\leadsto \color{blue}{\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 rewrites93.0%

      \[\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 -7.8000000000000002e40 < z < 1.04999999999999998e42

    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. Recombined 2 regimes into one program.
  4. Final simplification91.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -7.8 \cdot 10^{+40}:\\ \;\;\;\;\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}\;z \leq 1.05 \cdot 10^{+42}:\\ \;\;\;\;\frac{\left(t - a\right) \cdot z + y \cdot x}{\left(b - y\right) \cdot z + y}\\ \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: 69.9% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(b - y, z, y\right)\\ t_2 := \frac{\left(t - a\right) \cdot z}{t\_1}\\ t_3 := \frac{t - a}{b - y}\\ \mathbf{if}\;z \leq -1.65 \cdot 10^{+23}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;z \leq -1.95 \cdot 10^{-144}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;z \leq 9.2 \cdot 10^{-183}:\\ \;\;\;\;\frac{y}{t\_1} \cdot x\\ \mathbf{elif}\;z \leq 2000000000000:\\ \;\;\;\;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 (/ (* (- t a) z) t_1))
        (t_3 (/ (- t a) (- b y))))
   (if (<= z -1.65e+23)
     t_3
     (if (<= z -1.95e-144)
       t_2
       (if (<= z 9.2e-183)
         (* (/ y t_1) x)
         (if (<= z 2000000000000.0) 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 = ((t - a) * z) / t_1;
	double t_3 = (t - a) / (b - y);
	double tmp;
	if (z <= -1.65e+23) {
		tmp = t_3;
	} else if (z <= -1.95e-144) {
		tmp = t_2;
	} else if (z <= 9.2e-183) {
		tmp = (y / t_1) * x;
	} else if (z <= 2000000000000.0) {
		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(Float64(t - a) * z) / t_1)
	t_3 = Float64(Float64(t - a) / Float64(b - y))
	tmp = 0.0
	if (z <= -1.65e+23)
		tmp = t_3;
	elseif (z <= -1.95e-144)
		tmp = t_2;
	elseif (z <= 9.2e-183)
		tmp = Float64(Float64(y / t_1) * x);
	elseif (z <= 2000000000000.0)
		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[(N[(t - a), $MachinePrecision] * z), $MachinePrecision] / t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.65e+23], t$95$3, If[LessEqual[z, -1.95e-144], t$95$2, If[LessEqual[z, 9.2e-183], N[(N[(y / t$95$1), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[z, 2000000000000.0], 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{\left(t - a\right) \cdot z}{t\_1}\\
t_3 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -1.65 \cdot 10^{+23}:\\
\;\;\;\;t\_3\\

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

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

\mathbf{elif}\;z \leq 2000000000000:\\
\;\;\;\;t\_2\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -1.65000000000000015e23 or 2e12 < z

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

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

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

    if -1.65000000000000015e23 < z < -1.95000000000000007e-144 or 9.20000000000000064e-183 < z < 2e12

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.95000000000000007e-144 < z < 9.20000000000000064e-183

    1. Initial program 88.0%

      \[\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \]
    2. Add Preprocessing
    3. Taylor expanded in x around 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--.f6464.9

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

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

Alternative 3: 69.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 -1.26 \cdot 10^{+41}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;z \leq -1.95 \cdot 10^{-144}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;z \leq 9.2 \cdot 10^{-183}:\\ \;\;\;\;\frac{y}{t\_1} \cdot x\\ \mathbf{elif}\;z \leq 3900000000000:\\ \;\;\;\;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 -1.26e+41)
     t_3
     (if (<= z -1.95e-144)
       t_2
       (if (<= z 9.2e-183)
         (* (/ y t_1) x)
         (if (<= z 3900000000000.0) 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 <= -1.26e+41) {
		tmp = t_3;
	} else if (z <= -1.95e-144) {
		tmp = t_2;
	} else if (z <= 9.2e-183) {
		tmp = (y / t_1) * x;
	} else if (z <= 3900000000000.0) {
		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 <= -1.26e+41)
		tmp = t_3;
	elseif (z <= -1.95e-144)
		tmp = t_2;
	elseif (z <= 9.2e-183)
		tmp = Float64(Float64(y / t_1) * x);
	elseif (z <= 3900000000000.0)
		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, -1.26e+41], t$95$3, If[LessEqual[z, -1.95e-144], t$95$2, If[LessEqual[z, 9.2e-183], N[(N[(y / t$95$1), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[z, 3900000000000.0], 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 -1.26 \cdot 10^{+41}:\\
\;\;\;\;t\_3\\

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

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

\mathbf{elif}\;z \leq 3900000000000:\\
\;\;\;\;t\_2\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -1.26000000000000001e41 or 3.9e12 < z

    1. Initial program 41.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--.f6483.6

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

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

    if -1.26000000000000001e41 < z < -1.95000000000000007e-144 or 9.20000000000000064e-183 < z < 3.9e12

    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 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--.f6468.6

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

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

    if -1.95000000000000007e-144 < z < 9.20000000000000064e-183

    1. Initial program 88.0%

      \[\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \]
    2. Add Preprocessing
    3. Taylor expanded in x around 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--.f6464.9

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.26 \cdot 10^{+41}:\\ \;\;\;\;\frac{t - a}{b - y}\\ \mathbf{elif}\;z \leq -1.95 \cdot 10^{-144}:\\ \;\;\;\;\frac{z}{\mathsf{fma}\left(b - y, z, y\right)} \cdot \left(t - a\right)\\ \mathbf{elif}\;z \leq 9.2 \cdot 10^{-183}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(b - y, z, y\right)} \cdot x\\ \mathbf{elif}\;z \leq 3900000000000:\\ \;\;\;\;\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 4: 70.6% accurate, 0.7× speedup?

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -9e16 or 4.1e52 < z

    1. Initial program 39.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--.f6485.7

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

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

    if -9e16 < z < 2.95e-226

    1. Initial program 93.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--.f6420.1

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

      \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
    6. 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)}} \]
    7. 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 2.95e-226 < z < 4.1e52

    1. Initial program 85.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 t around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 5: 70.6% accurate, 0.7× speedup?

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -9e16 or 4.1e52 < z

    1. Initial program 39.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--.f6485.7

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

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

    if -9e16 < z < 2.95e-226

    1. Initial program 93.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}{\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 rewrites22.7%

      \[\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}} \]
    5. 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)}} \]
    6. 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-*.f6474.3

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

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

    if 2.95e-226 < z < 4.1e52

    1. Initial program 85.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 t around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 6: 72.4% accurate, 0.7× speedup?

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -4.5e9 or 4.1e52 < z

    1. Initial program 40.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--.f6485.1

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

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

    if -4.5e9 < z < 1.89999999999999991e-226

    1. Initial program 93.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 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. *-commutativeN/A

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

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

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

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

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

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

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

    if 1.89999999999999991e-226 < z < 4.1e52

    1. Initial program 85.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 t around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 7: 84.5% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t - a}{b - y}\\ \mathbf{if}\;z \leq -7.2 \cdot 10^{+34}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 3.2 \cdot 10^{+55}:\\ \;\;\;\;\frac{\left(t - a\right) \cdot z + y \cdot x}{\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.2e+34)
     t_1
     (if (<= z 3.2e+55)
       (/ (+ (* (- t a) z) (* y x)) (+ (* (- 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.2e+34) {
		tmp = t_1;
	} else if (z <= 3.2e+55) {
		tmp = (((t - a) * z) + (y * x)) / (((b - y) * z) + 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 = (t - a) / (b - y)
    if (z <= (-7.2d+34)) then
        tmp = t_1
    else if (z <= 3.2d+55) then
        tmp = (((t - a) * z) + (y * x)) / (((b - y) * z) + 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 = (t - a) / (b - y);
	double tmp;
	if (z <= -7.2e+34) {
		tmp = t_1;
	} else if (z <= 3.2e+55) {
		tmp = (((t - a) * z) + (y * x)) / (((b - y) * z) + y);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = (t - a) / (b - y)
	tmp = 0
	if z <= -7.2e+34:
		tmp = t_1
	elif z <= 3.2e+55:
		tmp = (((t - a) * z) + (y * x)) / (((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.2e+34)
		tmp = t_1;
	elseif (z <= 3.2e+55)
		tmp = Float64(Float64(Float64(Float64(t - a) * z) + Float64(y * x)) / Float64(Float64(Float64(b - y) * z) + y));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = (t - a) / (b - y);
	tmp = 0.0;
	if (z <= -7.2e+34)
		tmp = t_1;
	elseif (z <= 3.2e+55)
		tmp = (((t - a) * z) + (y * x)) / (((b - y) * z) + y);
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.2e+34], t$95$1, If[LessEqual[z, 3.2e+55], N[(N[(N[(N[(t - a), $MachinePrecision] * z), $MachinePrecision] + N[(y * x), $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.2 \cdot 10^{+34}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq 3.2 \cdot 10^{+55}:\\
\;\;\;\;\frac{\left(t - a\right) \cdot z + y \cdot x}{\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.2000000000000001e34 or 3.2000000000000003e55 < z

    1. Initial program 38.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--.f6485.5

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

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

    if -7.2000000000000001e34 < z < 3.2000000000000003e55

    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. Recombined 2 regimes into one program.
  4. Final simplification88.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -7.2 \cdot 10^{+34}:\\ \;\;\;\;\frac{t - a}{b - y}\\ \mathbf{elif}\;z \leq 3.2 \cdot 10^{+55}:\\ \;\;\;\;\frac{\left(t - a\right) \cdot z + y \cdot x}{\left(b - y\right) \cdot z + y}\\ \mathbf{else}:\\ \;\;\;\;\frac{t - a}{b - y}\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 73.1% accurate, 0.8× speedup?

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

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

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

\mathbf{elif}\;z \leq 2000000000000:\\
\;\;\;\;\frac{\left(t - a\right) \cdot z}{t\_1}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -4.5e9 or 2e12 < z

    1. Initial program 44.4%

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

      \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
    4. Step-by-step derivation
      1. 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--.f6483.7

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

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

    if -4.5e9 < z < 6.59999999999999961e-130

    1. Initial program 90.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 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. *-commutativeN/A

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

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

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

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

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

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

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

    if 6.59999999999999961e-130 < z < 2e12

    1. Initial program 85.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 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--.f6432.1

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 9: 68.6% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t - a}{b - y}\\ \mathbf{if}\;z \leq -1.7 \cdot 10^{-66}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.75 \cdot 10^{-60}:\\ \;\;\;\;\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 -1.7e-66)
     t_1
     (if (<= z 1.75e-60) (* (/ 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 <= -1.7e-66) {
		tmp = t_1;
	} else if (z <= 1.75e-60) {
		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 <= -1.7e-66)
		tmp = t_1;
	elseif (z <= 1.75e-60)
		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, -1.7e-66], t$95$1, If[LessEqual[z, 1.75e-60], 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 -1.7 \cdot 10^{-66}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq 1.75 \cdot 10^{-60}:\\
\;\;\;\;\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 < -1.69999999999999999e-66 or 1.74999999999999988e-60 < z

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

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

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

    if -1.69999999999999999e-66 < z < 1.74999999999999988e-60

    1. Initial program 88.0%

      \[\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \]
    2. Add Preprocessing
    3. Taylor expanded in x around 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--.f6457.6

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

      \[\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 10: 43.1% accurate, 1.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t}{b - y}\\ \mathbf{if}\;z \leq -3.8 \cdot 10^{+185}:\\ \;\;\;\;\frac{-a}{b}\\ \mathbf{elif}\;z \leq -7 \cdot 10^{+17}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 6.5 \cdot 10^{+50}:\\ \;\;\;\;\frac{x}{1 - z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ t (- b y))))
   (if (<= z -3.8e+185)
     (/ (- a) b)
     (if (<= z -7e+17) t_1 (if (<= z 6.5e+50) (/ x (- 1.0 z)) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = t / (b - y);
	double tmp;
	if (z <= -3.8e+185) {
		tmp = -a / b;
	} else if (z <= -7e+17) {
		tmp = t_1;
	} else if (z <= 6.5e+50) {
		tmp = x / (1.0 - z);
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: t_1
    real(8) :: tmp
    t_1 = t / (b - y)
    if (z <= (-3.8d+185)) then
        tmp = -a / b
    else if (z <= (-7d+17)) then
        tmp = t_1
    else if (z <= 6.5d+50) then
        tmp = x / (1.0d0 - z)
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = t / (b - y);
	double tmp;
	if (z <= -3.8e+185) {
		tmp = -a / b;
	} else if (z <= -7e+17) {
		tmp = t_1;
	} else if (z <= 6.5e+50) {
		tmp = x / (1.0 - z);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = t / (b - y)
	tmp = 0
	if z <= -3.8e+185:
		tmp = -a / b
	elif z <= -7e+17:
		tmp = t_1
	elif z <= 6.5e+50:
		tmp = x / (1.0 - z)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(t / Float64(b - y))
	tmp = 0.0
	if (z <= -3.8e+185)
		tmp = Float64(Float64(-a) / b);
	elseif (z <= -7e+17)
		tmp = t_1;
	elseif (z <= 6.5e+50)
		tmp = Float64(x / Float64(1.0 - z));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = t / (b - y);
	tmp = 0.0;
	if (z <= -3.8e+185)
		tmp = -a / b;
	elseif (z <= -7e+17)
		tmp = t_1;
	elseif (z <= 6.5e+50)
		tmp = x / (1.0 - z);
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(t / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.8e+185], N[((-a) / b), $MachinePrecision], If[LessEqual[z, -7e+17], t$95$1, If[LessEqual[z, 6.5e+50], N[(x / N[(1.0 - z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

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

\mathbf{elif}\;z \leq -7 \cdot 10^{+17}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq 6.5 \cdot 10^{+50}:\\
\;\;\;\;\frac{x}{1 - z}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -3.7999999999999998e185

    1. Initial program 24.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 a around inf

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(-a\right) \cdot \frac{z}{\color{blue}{\mathsf{fma}\left(b - y, z, y\right)}} \]
      10. lower--.f6426.5

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

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

      \[\leadsto -1 \cdot \color{blue}{\frac{a}{b}} \]
    7. Step-by-step derivation
      1. Applied rewrites49.4%

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

      if -3.7999999999999998e185 < z < -7e17 or 6.5000000000000003e50 < z

      1. Initial program 43.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 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

        if -7e17 < z < 6.5000000000000003e50

        1. Initial program 90.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--.f6443.4

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

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

      Alternative 11: 43.5% accurate, 1.2× speedup?

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

        1. Initial program 24.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 a around inf

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

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

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

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

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

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

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

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

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

            \[\leadsto \left(-a\right) \cdot \frac{z}{\color{blue}{\mathsf{fma}\left(b - y, z, y\right)}} \]
          10. lower--.f6426.5

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

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

          \[\leadsto -1 \cdot \color{blue}{\frac{a}{b}} \]
        7. Step-by-step derivation
          1. Applied rewrites49.4%

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

          if -3.7999999999999998e185 < z < -5.00000000000000031e-10 or 1.32e-12 < z

          1. Initial program 51.1%

            \[\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \]
          2. Add Preprocessing
          3. Taylor expanded in 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

            if -5.00000000000000031e-10 < z < 1.32e-12

            1. Initial program 89.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--.f6446.5

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

              \[\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 rewrites46.5%

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

            Alternative 12: 65.0% accurate, 1.3× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t - a}{b - y}\\ \mathbf{if}\;z \leq -1.7 \cdot 10^{-66}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 3 \cdot 10^{-62}:\\ \;\;\;\;\frac{x}{1 - z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
            (FPCore (x y z t a b)
             :precision binary64
             (let* ((t_1 (/ (- t a) (- b y))))
               (if (<= z -1.7e-66) t_1 (if (<= z 3e-62) (/ x (- 1.0 z)) t_1))))
            double code(double x, double y, double z, double t, double a, double b) {
            	double t_1 = (t - a) / (b - y);
            	double tmp;
            	if (z <= -1.7e-66) {
            		tmp = t_1;
            	} else if (z <= 3e-62) {
            		tmp = x / (1.0 - z);
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            real(8) function code(x, y, z, t, a, b)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                real(8), intent (in) :: z
                real(8), intent (in) :: t
                real(8), intent (in) :: a
                real(8), intent (in) :: b
                real(8) :: t_1
                real(8) :: tmp
                t_1 = (t - a) / (b - y)
                if (z <= (-1.7d-66)) then
                    tmp = t_1
                else if (z <= 3d-62) then
                    tmp = x / (1.0d0 - z)
                else
                    tmp = t_1
                end if
                code = tmp
            end function
            
            public static double code(double x, double y, double z, double t, double a, double b) {
            	double t_1 = (t - a) / (b - y);
            	double tmp;
            	if (z <= -1.7e-66) {
            		tmp = t_1;
            	} else if (z <= 3e-62) {
            		tmp = x / (1.0 - z);
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            def code(x, y, z, t, a, b):
            	t_1 = (t - a) / (b - y)
            	tmp = 0
            	if z <= -1.7e-66:
            		tmp = t_1
            	elif z <= 3e-62:
            		tmp = x / (1.0 - z)
            	else:
            		tmp = t_1
            	return tmp
            
            function code(x, y, z, t, a, b)
            	t_1 = Float64(Float64(t - a) / Float64(b - y))
            	tmp = 0.0
            	if (z <= -1.7e-66)
            		tmp = t_1;
            	elseif (z <= 3e-62)
            		tmp = Float64(x / Float64(1.0 - z));
            	else
            		tmp = t_1;
            	end
            	return tmp
            end
            
            function tmp_2 = code(x, y, z, t, a, b)
            	t_1 = (t - a) / (b - y);
            	tmp = 0.0;
            	if (z <= -1.7e-66)
            		tmp = t_1;
            	elseif (z <= 3e-62)
            		tmp = x / (1.0 - z);
            	else
            		tmp = t_1;
            	end
            	tmp_2 = tmp;
            end
            
            code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.7e-66], t$95$1, If[LessEqual[z, 3e-62], N[(x / N[(1.0 - z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \frac{t - a}{b - y}\\
            \mathbf{if}\;z \leq -1.7 \cdot 10^{-66}:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;z \leq 3 \cdot 10^{-62}:\\
            \;\;\;\;\frac{x}{1 - z}\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_1\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if z < -1.69999999999999999e-66 or 3.0000000000000001e-62 < z

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

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

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

              if -1.69999999999999999e-66 < z < 3.0000000000000001e-62

              1. Initial program 88.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--.f6451.6

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

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

            Alternative 13: 51.5% accurate, 1.4× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x}{1 - z}\\ \mathbf{if}\;y \leq -4.2 \cdot 10^{+82}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 1.2 \cdot 10^{+139}:\\ \;\;\;\;\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 -4.2e+82) t_1 (if (<= y 1.2e+139) (/ (- 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 <= -4.2e+82) {
            		tmp = t_1;
            	} else if (y <= 1.2e+139) {
            		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 <= (-4.2d+82)) then
                    tmp = t_1
                else if (y <= 1.2d+139) 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 <= -4.2e+82) {
            		tmp = t_1;
            	} else if (y <= 1.2e+139) {
            		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 <= -4.2e+82:
            		tmp = t_1
            	elif y <= 1.2e+139:
            		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 <= -4.2e+82)
            		tmp = t_1;
            	elseif (y <= 1.2e+139)
            		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 <= -4.2e+82)
            		tmp = t_1;
            	elseif (y <= 1.2e+139)
            		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, -4.2e+82], t$95$1, If[LessEqual[y, 1.2e+139], 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 -4.2 \cdot 10^{+82}:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;y \leq 1.2 \cdot 10^{+139}:\\
            \;\;\;\;\frac{t - a}{b}\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_1\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if y < -4.2e82 or 1.20000000000000004e139 < y

              1. Initial program 42.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 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--.f6463.3

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

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

              if -4.2e82 < y < 1.20000000000000004e139

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

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

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

            Alternative 14: 36.9% accurate, 1.5× speedup?

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

              1. Initial program 54.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                if -2.8000000000000001e-61 < z < 8.5e-54

                1. Initial program 88.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--.f6456.5

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

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

                  \[\leadsto 1 \cdot x \]
                7. Step-by-step derivation
                  1. Applied rewrites50.7%

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

                Alternative 15: 37.8% accurate, 1.6× speedup?

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

                  1. Initial program 47.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 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. *-commutativeN/A

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

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

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

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

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

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

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

                    \[\leadsto \frac{t}{\color{blue}{b}} \]
                  7. Step-by-step derivation
                    1. Applied rewrites25.6%

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

                    if -5.00000000000000031e-10 < z < 1.32e-12

                    1. Initial program 89.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--.f6446.5

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

                      \[\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 rewrites46.5%

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

                    Alternative 16: 34.5% accurate, 1.6× speedup?

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

                      1. Initial program 46.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 a around inf

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto -1 \cdot \color{blue}{\frac{a}{b - y}} \]
                      7. Step-by-step derivation
                        1. Applied rewrites46.5%

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

                          \[\leadsto \frac{a}{y} \]
                        3. Step-by-step derivation
                          1. Applied rewrites20.0%

                            \[\leadsto \frac{a}{y} \]

                          if -3.50000000000000024e-8 < z < 1

                          1. Initial program 89.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--.f6446.2

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

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

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

                          Alternative 17: 26.0% 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.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--.f6430.7

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

                            \[\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 rewrites24.3%

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

                            Alternative 18: 25.7% accurate, 6.5× speedup?

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

                              \[\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \]
                            2. Add Preprocessing
                            3. Taylor expanded in x around 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--.f6431.0

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

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

                              \[\leadsto 1 \cdot x \]
                            7. Step-by-step derivation
                              1. Applied rewrites24.0%

                                \[\leadsto 1 \cdot x \]
                              2. Add Preprocessing

                              Alternative 19: 3.8% accurate, 6.5× speedup?

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

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

                                \[\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 rewrites24.3%

                                  \[\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 rewrites4.0%

                                    \[\leadsto z \cdot x \]
                                  2. Final simplification4.0%

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

                                  Developer Target 1: 73.5% 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 2024276 
                                  (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)))))