Development.Shake.Progress:decay from shake-0.15.5

Percentage Accurate: 67.7% → 89.1%
Time: 11.2s
Alternatives: 18
Speedup: 0.8×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 18 alternatives:

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

Initial Program: 67.7% 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: 89.1% 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 -35000000000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 21:\\ \;\;\;\;\frac{y \cdot x + \left(t - a\right) \cdot z}{\left(b - y\right) \cdot z + y}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1
         (-
          (/ (- t a) (- b y))
          (/
           (fma (- y) (/ x (- b y)) (* (/ y (pow (- b y) 2.0)) (- t a)))
           z))))
   (if (<= z -35000000000000.0)
     t_1
     (if (<= z 21.0) (/ (+ (* y x) (* (- t a) z)) (+ (* (- b y) z) y)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = ((t - a) / (b - y)) - (fma(-y, (x / (b - y)), ((y / pow((b - y), 2.0)) * (t - a))) / z);
	double tmp;
	if (z <= -35000000000000.0) {
		tmp = t_1;
	} else if (z <= 21.0) {
		tmp = ((y * x) + ((t - a) * z)) / (((b - y) * z) + y);
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(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 <= -35000000000000.0)
		tmp = t_1;
	elseif (z <= 21.0)
		tmp = Float64(Float64(Float64(y * x) + Float64(Float64(t - a) * z)) / Float64(Float64(Float64(b - y) * z) + y));
	else
		tmp = t_1;
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(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, -35000000000000.0], t$95$1, If[LessEqual[z, 21.0], N[(N[(N[(y * x), $MachinePrecision] + N[(N[(t - a), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(b - y), $MachinePrecision] * z), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y} - \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 -35000000000000:\\
\;\;\;\;t\_1\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -3.5e13 or 21 < 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 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 -3.5e13 < z < 21

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -35000000000000:\\ \;\;\;\;\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 21:\\ \;\;\;\;\frac{y \cdot x + \left(t - a\right) \cdot z}{\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: 81.7% accurate, 0.5× speedup?

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

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

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

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


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

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

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

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

      if -4.0000000000000001e85 < z < 2.24999999999999992e54

      1. Initial program 83.1%

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

      if 2.24999999999999992e54 < z

      1. Initial program 33.1%

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

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

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

        \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
    7. Recombined 3 regimes into one program.
    8. Final simplification81.3%

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

    Alternative 3: 71.0% accurate, 0.6× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(b - y, z, y\right)\\ t_2 := \frac{t - a}{b - y}\\ t_3 := \frac{y}{t\_1} \cdot x\\ \mathbf{if}\;z \leq -45000000000000:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;z \leq -4.2 \cdot 10^{-99}:\\ \;\;\;\;\frac{\left(t - a\right) \cdot z}{t\_1}\\ \mathbf{elif}\;z \leq -3.95 \cdot 10^{-143}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;z \leq 8.2 \cdot 10^{-289}:\\ \;\;\;\;\frac{\mathsf{fma}\left(t - a, z, y \cdot x\right)}{1 \cdot y}\\ \mathbf{elif}\;z \leq 1.8 \cdot 10^{-73}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;z \leq 31500000000000:\\ \;\;\;\;\frac{z}{t\_1} \cdot \left(t - a\right)\\ \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)))
            (t_3 (* (/ y t_1) x)))
       (if (<= z -45000000000000.0)
         t_2
         (if (<= z -4.2e-99)
           (/ (* (- t a) z) t_1)
           (if (<= z -3.95e-143)
             t_3
             (if (<= z 8.2e-289)
               (/ (fma (- t a) z (* y x)) (* 1.0 y))
               (if (<= z 1.8e-73)
                 t_3
                 (if (<= z 31500000000000.0) (* (/ z t_1) (- t a)) 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 t_3 = (y / t_1) * x;
    	double tmp;
    	if (z <= -45000000000000.0) {
    		tmp = t_2;
    	} else if (z <= -4.2e-99) {
    		tmp = ((t - a) * z) / t_1;
    	} else if (z <= -3.95e-143) {
    		tmp = t_3;
    	} else if (z <= 8.2e-289) {
    		tmp = fma((t - a), z, (y * x)) / (1.0 * y);
    	} else if (z <= 1.8e-73) {
    		tmp = t_3;
    	} else if (z <= 31500000000000.0) {
    		tmp = (z / t_1) * (t - a);
    	} 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))
    	t_3 = Float64(Float64(y / t_1) * x)
    	tmp = 0.0
    	if (z <= -45000000000000.0)
    		tmp = t_2;
    	elseif (z <= -4.2e-99)
    		tmp = Float64(Float64(Float64(t - a) * z) / t_1);
    	elseif (z <= -3.95e-143)
    		tmp = t_3;
    	elseif (z <= 8.2e-289)
    		tmp = Float64(fma(Float64(t - a), z, Float64(y * x)) / Float64(1.0 * y));
    	elseif (z <= 1.8e-73)
    		tmp = t_3;
    	elseif (z <= 31500000000000.0)
    		tmp = Float64(Float64(z / t_1) * Float64(t - a));
    	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]}, Block[{t$95$3 = N[(N[(y / t$95$1), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[z, -45000000000000.0], t$95$2, If[LessEqual[z, -4.2e-99], N[(N[(N[(t - a), $MachinePrecision] * z), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[z, -3.95e-143], t$95$3, If[LessEqual[z, 8.2e-289], N[(N[(N[(t - a), $MachinePrecision] * z + N[(y * x), $MachinePrecision]), $MachinePrecision] / N[(1.0 * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.8e-73], t$95$3, If[LessEqual[z, 31500000000000.0], N[(N[(z / t$95$1), $MachinePrecision] * N[(t - a), $MachinePrecision]), $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}\\
    t_3 := \frac{y}{t\_1} \cdot x\\
    \mathbf{if}\;z \leq -45000000000000:\\
    \;\;\;\;t\_2\\
    
    \mathbf{elif}\;z \leq -4.2 \cdot 10^{-99}:\\
    \;\;\;\;\frac{\left(t - a\right) \cdot z}{t\_1}\\
    
    \mathbf{elif}\;z \leq -3.95 \cdot 10^{-143}:\\
    \;\;\;\;t\_3\\
    
    \mathbf{elif}\;z \leq 8.2 \cdot 10^{-289}:\\
    \;\;\;\;\frac{\mathsf{fma}\left(t - a, z, y \cdot x\right)}{1 \cdot y}\\
    
    \mathbf{elif}\;z \leq 1.8 \cdot 10^{-73}:\\
    \;\;\;\;t\_3\\
    
    \mathbf{elif}\;z \leq 31500000000000:\\
    \;\;\;\;\frac{z}{t\_1} \cdot \left(t - a\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_2\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 5 regimes
    2. if z < -4.5e13 or 3.15e13 < z

      1. Initial program 43.0%

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

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

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

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

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

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

      if -4.5e13 < z < -4.19999999999999968e-99

      1. Initial program 91.8%

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

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

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

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

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

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

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

          \[\leadsto \frac{\mathsf{Rewrite=>}\left(lower-*.f64, \left(z \cdot \left(t - a\right)\right)\right)}{y + \color{blue}{z \cdot \left(b - y\right)}} \]
        3. *-commutativeN/A

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

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

          \[\leadsto \frac{\mathsf{Rewrite=>}\left(lower-*.f64, \left(z \cdot \left(t - a\right)\right)\right)}{\color{blue}{\mathsf{fma}\left(b - y, z, y\right)}} \]
      7. Applied rewrites79.9%

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

      if -4.19999999999999968e-99 < z < -3.95000000000000015e-143 or 8.1999999999999996e-289 < z < 1.8e-73

      1. Initial program 80.3%

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

        \[\leadsto \color{blue}{\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--.f6473.9

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

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

      if -3.95000000000000015e-143 < z < 8.1999999999999996e-289

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

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

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

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

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

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

          \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{t - a}, z, x \cdot y\right)}{y + -1 \cdot \left(y \cdot z\right)} \]
        6. *-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. mul-1-negN/A

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

          \[\leadsto \frac{\mathsf{fma}\left(t - a, z, y \cdot x\right)}{\color{blue}{y \cdot 1} + \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. unsub-negN/A

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

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

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

        \[\leadsto \frac{\mathsf{fma}\left(t - a, z, y \cdot x\right)}{1 \cdot y} \]
      7. Step-by-step derivation
        1. Applied rewrites87.6%

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

        if 1.8e-73 < z < 3.15e13

        1. Initial program 76.5%

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

          \[\leadsto \color{blue}{\frac{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--.f6465.7

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

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

        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -45000000000000:\\ \;\;\;\;\frac{t - a}{b - y}\\ \mathbf{elif}\;z \leq -4.2 \cdot 10^{-99}:\\ \;\;\;\;\frac{\left(t - a\right) \cdot z}{\mathsf{fma}\left(b - y, z, y\right)}\\ \mathbf{elif}\;z \leq -3.95 \cdot 10^{-143}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(b - y, z, y\right)} \cdot x\\ \mathbf{elif}\;z \leq 8.2 \cdot 10^{-289}:\\ \;\;\;\;\frac{\mathsf{fma}\left(t - a, z, y \cdot x\right)}{1 \cdot y}\\ \mathbf{elif}\;z \leq 1.8 \cdot 10^{-73}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(b - y, z, y\right)} \cdot x\\ \mathbf{elif}\;z \leq 31500000000000:\\ \;\;\;\;\frac{z}{\mathsf{fma}\left(b - y, z, y\right)} \cdot \left(t - a\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{t - a}{b - y}\\ \end{array} \]
      10. Add Preprocessing

      Alternative 4: 72.2% 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 -1.5 \cdot 10^{-11}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;z \leq 7.5 \cdot 10^{-193}:\\ \;\;\;\;\frac{\mathsf{fma}\left(t, z, y \cdot x\right)}{t\_1}\\ \mathbf{elif}\;z \leq 1.8 \cdot 10^{-73}:\\ \;\;\;\;\frac{y}{t\_1} \cdot x\\ \mathbf{elif}\;z \leq 31500000000000:\\ \;\;\;\;\frac{z}{t\_1} \cdot \left(t - a\right)\\ \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 -1.5e-11)
           t_2
           (if (<= z 7.5e-193)
             (/ (fma t z (* y x)) t_1)
             (if (<= z 1.8e-73)
               (* (/ y t_1) x)
               (if (<= z 31500000000000.0) (* (/ z t_1) (- t a)) 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 <= -1.5e-11) {
      		tmp = t_2;
      	} else if (z <= 7.5e-193) {
      		tmp = fma(t, z, (y * x)) / t_1;
      	} else if (z <= 1.8e-73) {
      		tmp = (y / t_1) * x;
      	} else if (z <= 31500000000000.0) {
      		tmp = (z / t_1) * (t - a);
      	} 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 <= -1.5e-11)
      		tmp = t_2;
      	elseif (z <= 7.5e-193)
      		tmp = Float64(fma(t, z, Float64(y * x)) / t_1);
      	elseif (z <= 1.8e-73)
      		tmp = Float64(Float64(y / t_1) * x);
      	elseif (z <= 31500000000000.0)
      		tmp = Float64(Float64(z / t_1) * Float64(t - a));
      	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, -1.5e-11], t$95$2, If[LessEqual[z, 7.5e-193], N[(N[(t * z + N[(y * x), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[z, 1.8e-73], N[(N[(y / t$95$1), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[z, 31500000000000.0], N[(N[(z / t$95$1), $MachinePrecision] * N[(t - a), $MachinePrecision]), $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 -1.5 \cdot 10^{-11}:\\
      \;\;\;\;t\_2\\
      
      \mathbf{elif}\;z \leq 7.5 \cdot 10^{-193}:\\
      \;\;\;\;\frac{\mathsf{fma}\left(t, z, y \cdot x\right)}{t\_1}\\
      
      \mathbf{elif}\;z \leq 1.8 \cdot 10^{-73}:\\
      \;\;\;\;\frac{y}{t\_1} \cdot x\\
      
      \mathbf{elif}\;z \leq 31500000000000:\\
      \;\;\;\;\frac{z}{t\_1} \cdot \left(t - a\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_2\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 4 regimes
      2. if z < -1.5e-11 or 3.15e13 < z

        1. Initial program 45.1%

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

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

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

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

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

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

        if -1.5e-11 < z < 7.4999999999999998e-193

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

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

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

        if 7.4999999999999998e-193 < z < 1.8e-73

        1. Initial program 76.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 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--.f6474.1

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

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

        if 1.8e-73 < z < 3.15e13

        1. Initial program 76.5%

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

          \[\leadsto \color{blue}{\frac{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--.f6465.7

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

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

        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.5 \cdot 10^{-11}:\\ \;\;\;\;\frac{t - a}{b - y}\\ \mathbf{elif}\;z \leq 7.5 \cdot 10^{-193}:\\ \;\;\;\;\frac{\mathsf{fma}\left(t, z, y \cdot x\right)}{\mathsf{fma}\left(b - y, z, y\right)}\\ \mathbf{elif}\;z \leq 1.8 \cdot 10^{-73}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(b - y, z, y\right)} \cdot x\\ \mathbf{elif}\;z \leq 31500000000000:\\ \;\;\;\;\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 5: 70.7% 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 -45000000000000:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;z \leq -4.2 \cdot 10^{-99}:\\ \;\;\;\;\frac{\left(t - a\right) \cdot z}{t\_1}\\ \mathbf{elif}\;z \leq 1.8 \cdot 10^{-73}:\\ \;\;\;\;\frac{y}{t\_1} \cdot x\\ \mathbf{elif}\;z \leq 31500000000000:\\ \;\;\;\;\frac{z}{t\_1} \cdot \left(t - a\right)\\ \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 -45000000000000.0)
           t_2
           (if (<= z -4.2e-99)
             (/ (* (- t a) z) t_1)
             (if (<= z 1.8e-73)
               (* (/ y t_1) x)
               (if (<= z 31500000000000.0) (* (/ z t_1) (- t a)) 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 <= -45000000000000.0) {
      		tmp = t_2;
      	} else if (z <= -4.2e-99) {
      		tmp = ((t - a) * z) / t_1;
      	} else if (z <= 1.8e-73) {
      		tmp = (y / t_1) * x;
      	} else if (z <= 31500000000000.0) {
      		tmp = (z / t_1) * (t - a);
      	} 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 <= -45000000000000.0)
      		tmp = t_2;
      	elseif (z <= -4.2e-99)
      		tmp = Float64(Float64(Float64(t - a) * z) / t_1);
      	elseif (z <= 1.8e-73)
      		tmp = Float64(Float64(y / t_1) * x);
      	elseif (z <= 31500000000000.0)
      		tmp = Float64(Float64(z / t_1) * Float64(t - a));
      	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, -45000000000000.0], t$95$2, If[LessEqual[z, -4.2e-99], N[(N[(N[(t - a), $MachinePrecision] * z), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[z, 1.8e-73], N[(N[(y / t$95$1), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[z, 31500000000000.0], N[(N[(z / t$95$1), $MachinePrecision] * N[(t - a), $MachinePrecision]), $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 -45000000000000:\\
      \;\;\;\;t\_2\\
      
      \mathbf{elif}\;z \leq -4.2 \cdot 10^{-99}:\\
      \;\;\;\;\frac{\left(t - a\right) \cdot z}{t\_1}\\
      
      \mathbf{elif}\;z \leq 1.8 \cdot 10^{-73}:\\
      \;\;\;\;\frac{y}{t\_1} \cdot x\\
      
      \mathbf{elif}\;z \leq 31500000000000:\\
      \;\;\;\;\frac{z}{t\_1} \cdot \left(t - a\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_2\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 4 regimes
      2. if z < -4.5e13 or 3.15e13 < z

        1. Initial program 43.0%

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

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

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

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

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

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

        if -4.5e13 < z < -4.19999999999999968e-99

        1. Initial program 91.8%

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

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

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

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

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

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

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

            \[\leadsto \frac{\mathsf{Rewrite=>}\left(lower-*.f64, \left(z \cdot \left(t - a\right)\right)\right)}{y + \color{blue}{z \cdot \left(b - y\right)}} \]
          3. *-commutativeN/A

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

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

            \[\leadsto \frac{\mathsf{Rewrite=>}\left(lower-*.f64, \left(z \cdot \left(t - a\right)\right)\right)}{\color{blue}{\mathsf{fma}\left(b - y, z, y\right)}} \]
        7. Applied rewrites79.9%

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

        if -4.19999999999999968e-99 < z < 1.8e-73

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

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

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

        if 1.8e-73 < z < 3.15e13

        1. Initial program 76.5%

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

          \[\leadsto \color{blue}{\frac{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--.f6465.7

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

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

        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -45000000000000:\\ \;\;\;\;\frac{t - a}{b - y}\\ \mathbf{elif}\;z \leq -4.2 \cdot 10^{-99}:\\ \;\;\;\;\frac{\left(t - a\right) \cdot z}{\mathsf{fma}\left(b - y, z, y\right)}\\ \mathbf{elif}\;z \leq 1.8 \cdot 10^{-73}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(b - y, z, y\right)} \cdot x\\ \mathbf{elif}\;z \leq 31500000000000:\\ \;\;\;\;\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 6: 70.6% 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.3 \cdot 10^{+16}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;z \leq -4.2 \cdot 10^{-99}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;z \leq 1.8 \cdot 10^{-73}:\\ \;\;\;\;\frac{y}{t\_1} \cdot x\\ \mathbf{elif}\;z \leq 31500000000000:\\ \;\;\;\;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.3e+16)
           t_3
           (if (<= z -4.2e-99)
             t_2
             (if (<= z 1.8e-73)
               (* (/ y t_1) x)
               (if (<= z 31500000000000.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.3e+16) {
      		tmp = t_3;
      	} else if (z <= -4.2e-99) {
      		tmp = t_2;
      	} else if (z <= 1.8e-73) {
      		tmp = (y / t_1) * x;
      	} else if (z <= 31500000000000.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.3e+16)
      		tmp = t_3;
      	elseif (z <= -4.2e-99)
      		tmp = t_2;
      	elseif (z <= 1.8e-73)
      		tmp = Float64(Float64(y / t_1) * x);
      	elseif (z <= 31500000000000.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.3e+16], t$95$3, If[LessEqual[z, -4.2e-99], t$95$2, If[LessEqual[z, 1.8e-73], N[(N[(y / t$95$1), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[z, 31500000000000.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.3 \cdot 10^{+16}:\\
      \;\;\;\;t\_3\\
      
      \mathbf{elif}\;z \leq -4.2 \cdot 10^{-99}:\\
      \;\;\;\;t\_2\\
      
      \mathbf{elif}\;z \leq 1.8 \cdot 10^{-73}:\\
      \;\;\;\;\frac{y}{t\_1} \cdot x\\
      
      \mathbf{elif}\;z \leq 31500000000000:\\
      \;\;\;\;t\_2\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_3\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if z < -1.3e16 or 3.15e13 < z

        1. Initial program 43.7%

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

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

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

        if -1.3e16 < z < -4.19999999999999968e-99 or 1.8e-73 < z < 3.15e13

        1. Initial program 81.2%

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

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

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

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

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

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

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

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

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

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

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

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

        if -4.19999999999999968e-99 < z < 1.8e-73

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

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

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

        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.3 \cdot 10^{+16}:\\ \;\;\;\;\frac{t - a}{b - y}\\ \mathbf{elif}\;z \leq -4.2 \cdot 10^{-99}:\\ \;\;\;\;\frac{z}{\mathsf{fma}\left(b - y, z, y\right)} \cdot \left(t - a\right)\\ \mathbf{elif}\;z \leq 1.8 \cdot 10^{-73}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(b - y, z, y\right)} \cdot x\\ \mathbf{elif}\;z \leq 31500000000000:\\ \;\;\;\;\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 7: 72.9% 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 -1.5 \cdot 10^{-11}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;z \leq 4.2 \cdot 10^{-197}:\\ \;\;\;\;\frac{\mathsf{fma}\left(t, z, y \cdot x\right)}{t\_1}\\ \mathbf{elif}\;z \leq 2.4 \cdot 10^{+50}:\\ \;\;\;\;\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 -1.5e-11)
           t_2
           (if (<= z 4.2e-197)
             (/ (fma t z (* y x)) t_1)
             (if (<= z 2.4e+50) (/ (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 <= -1.5e-11) {
      		tmp = t_2;
      	} else if (z <= 4.2e-197) {
      		tmp = fma(t, z, (y * x)) / t_1;
      	} else if (z <= 2.4e+50) {
      		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 <= -1.5e-11)
      		tmp = t_2;
      	elseif (z <= 4.2e-197)
      		tmp = Float64(fma(t, z, Float64(y * x)) / t_1);
      	elseif (z <= 2.4e+50)
      		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, -1.5e-11], t$95$2, If[LessEqual[z, 4.2e-197], N[(N[(t * z + N[(y * x), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[z, 2.4e+50], 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 -1.5 \cdot 10^{-11}:\\
      \;\;\;\;t\_2\\
      
      \mathbf{elif}\;z \leq 4.2 \cdot 10^{-197}:\\
      \;\;\;\;\frac{\mathsf{fma}\left(t, z, y \cdot x\right)}{t\_1}\\
      
      \mathbf{elif}\;z \leq 2.4 \cdot 10^{+50}:\\
      \;\;\;\;\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 < -1.5e-11 or 2.4000000000000002e50 < z

        1. Initial program 43.1%

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

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

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

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

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

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

        if -1.5e-11 < z < 4.2e-197

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

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

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

        if 4.2e-197 < z < 2.4000000000000002e50

        1. Initial program 77.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 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--.f6465.4

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

          \[\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 8: 85.1% accurate, 0.8× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t - a}{b - y}\\ \mathbf{if}\;z \leq -6.8 \cdot 10^{+44}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 2.25 \cdot 10^{+54}:\\ \;\;\;\;\frac{y \cdot x + \left(t - a\right) \cdot z}{\left(b - y\right) \cdot z + y}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
      (FPCore (x y z t a b)
       :precision binary64
       (let* ((t_1 (/ (- t a) (- b y))))
         (if (<= z -6.8e+44)
           t_1
           (if (<= z 2.25e+54)
             (/ (+ (* y x) (* (- t a) z)) (+ (* (- b y) z) y))
             t_1))))
      double code(double x, double y, double z, double t, double a, double b) {
      	double t_1 = (t - a) / (b - y);
      	double tmp;
      	if (z <= -6.8e+44) {
      		tmp = t_1;
      	} else if (z <= 2.25e+54) {
      		tmp = ((y * x) + ((t - a) * z)) / (((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 <= (-6.8d+44)) then
              tmp = t_1
          else if (z <= 2.25d+54) then
              tmp = ((y * x) + ((t - a) * z)) / (((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 <= -6.8e+44) {
      		tmp = t_1;
      	} else if (z <= 2.25e+54) {
      		tmp = ((y * x) + ((t - a) * z)) / (((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 <= -6.8e+44:
      		tmp = t_1
      	elif z <= 2.25e+54:
      		tmp = ((y * x) + ((t - a) * z)) / (((b - y) * z) + y)
      	else:
      		tmp = t_1
      	return tmp
      
      function code(x, y, z, t, a, b)
      	t_1 = Float64(Float64(t - a) / Float64(b - y))
      	tmp = 0.0
      	if (z <= -6.8e+44)
      		tmp = t_1;
      	elseif (z <= 2.25e+54)
      		tmp = Float64(Float64(Float64(y * x) + Float64(Float64(t - a) * z)) / 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 <= -6.8e+44)
      		tmp = t_1;
      	elseif (z <= 2.25e+54)
      		tmp = ((y * x) + ((t - a) * z)) / (((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, -6.8e+44], t$95$1, If[LessEqual[z, 2.25e+54], N[(N[(N[(y * x), $MachinePrecision] + N[(N[(t - a), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(b - y), $MachinePrecision] * z), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \frac{t - a}{b - y}\\
      \mathbf{if}\;z \leq -6.8 \cdot 10^{+44}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;z \leq 2.25 \cdot 10^{+54}:\\
      \;\;\;\;\frac{y \cdot x + \left(t - a\right) \cdot z}{\left(b - y\right) \cdot z + y}\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if z < -6.8e44 or 2.24999999999999992e54 < z

        1. Initial program 37.5%

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

          \[\leadsto \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--.f6474.9

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

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

        if -6.8e44 < z < 2.24999999999999992e54

        1. Initial program 84.5%

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

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

      Alternative 9: 67.4% accurate, 1.0× speedup?

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

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

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

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

        if -5.0999999999999999e-99 < z < 1.15e21

        1. Initial program 82.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 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.8

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

          \[\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: 32.9% accurate, 1.3× speedup?

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

        1. Initial program 47.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--.f6428.3

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

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

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

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

          if -6.5e5 < z < -5.79999999999999975e-126 or 2.7999999999999999e-8 < z

          1. Initial program 56.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 t around inf

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

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

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

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

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

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

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

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

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

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

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

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

            if -5.79999999999999975e-126 < z < 2.7999999999999999e-8

            1. Initial program 84.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--.f6453.6

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

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

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

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

            Alternative 11: 63.5% accurate, 1.3× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t - a}{b - y}\\ \mathbf{if}\;z \leq -3.3 \cdot 10^{-128}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 8 \cdot 10^{-46}:\\ \;\;\;\;\frac{x}{1}\\ \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 -3.3e-128) t_1 (if (<= z 8e-46) (/ x 1.0) 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 <= -3.3e-128) {
            		tmp = t_1;
            	} else if (z <= 8e-46) {
            		tmp = x / 1.0;
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            real(8) function code(x, y, z, t, a, b)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                real(8), intent (in) :: z
                real(8), intent (in) :: t
                real(8), intent (in) :: a
                real(8), intent (in) :: b
                real(8) :: t_1
                real(8) :: tmp
                t_1 = (t - a) / (b - y)
                if (z <= (-3.3d-128)) then
                    tmp = t_1
                else if (z <= 8d-46) then
                    tmp = x / 1.0d0
                else
                    tmp = t_1
                end if
                code = tmp
            end function
            
            public static double code(double x, double y, double z, double t, double a, double b) {
            	double t_1 = (t - a) / (b - y);
            	double tmp;
            	if (z <= -3.3e-128) {
            		tmp = t_1;
            	} else if (z <= 8e-46) {
            		tmp = x / 1.0;
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            def code(x, y, z, t, a, b):
            	t_1 = (t - a) / (b - y)
            	tmp = 0
            	if z <= -3.3e-128:
            		tmp = t_1
            	elif z <= 8e-46:
            		tmp = x / 1.0
            	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 <= -3.3e-128)
            		tmp = t_1;
            	elseif (z <= 8e-46)
            		tmp = Float64(x / 1.0);
            	else
            		tmp = t_1;
            	end
            	return tmp
            end
            
            function tmp_2 = code(x, y, z, t, a, b)
            	t_1 = (t - a) / (b - y);
            	tmp = 0.0;
            	if (z <= -3.3e-128)
            		tmp = t_1;
            	elseif (z <= 8e-46)
            		tmp = x / 1.0;
            	else
            		tmp = t_1;
            	end
            	tmp_2 = tmp;
            end
            
            code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.3e-128], t$95$1, If[LessEqual[z, 8e-46], N[(x / 1.0), $MachinePrecision], t$95$1]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \frac{t - a}{b - y}\\
            \mathbf{if}\;z \leq -3.3 \cdot 10^{-128}:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;z \leq 8 \cdot 10^{-46}:\\
            \;\;\;\;\frac{x}{1}\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_1\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if z < -3.3e-128 or 8.00000000000000018e-46 < z

              1. Initial program 53.9%

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

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

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

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

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

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

              if -3.3e-128 < z < 8.00000000000000018e-46

              1. Initial program 84.1%

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

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

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

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

                  \[\leadsto \frac{x}{\color{blue}{1 - z}} \]
                4. lower--.f6456.1

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

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

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

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

              Alternative 12: 54.2% accurate, 1.4× speedup?

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

                1. Initial program 50.3%

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

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

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

                if -1.1499999999999999e85 < y < 7.79999999999999996e-22

                1. Initial program 80.2%

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

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

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

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

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

              Alternative 13: 43.6% accurate, 1.4× speedup?

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

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

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

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

                if -2.99999999999999991e35 < y < 5.20000000000000006e-17

                1. Initial program 80.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 t around inf

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

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

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

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

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

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

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

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

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

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

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

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

                Alternative 14: 43.1% accurate, 1.4× speedup?

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

                  1. Initial program 52.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 t around inf

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

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

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

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

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

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

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

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

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

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

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

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

                    if -5.59999999999999983e-126 < z < 0.0134999999999999998

                    1. Initial program 84.4%

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

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

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

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

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

                    Alternative 15: 35.3% accurate, 1.6× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        if -5.79999999999999975e-126 < z < 2.7999999999999999e-8

                        1. Initial program 84.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--.f6453.6

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

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

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

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

                        Alternative 16: 35.3% accurate, 1.6× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -5.8 \cdot 10^{-126}:\\ \;\;\;\;\frac{t}{b}\\ \mathbf{elif}\;z \leq 2.4 \cdot 10^{-8}:\\ \;\;\;\;\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 -5.8e-126) (/ t b) (if (<= z 2.4e-8) (fma x z x) (/ t b))))
                        double code(double x, double y, double z, double t, double a, double b) {
                        	double tmp;
                        	if (z <= -5.8e-126) {
                        		tmp = t / b;
                        	} else if (z <= 2.4e-8) {
                        		tmp = fma(x, z, x);
                        	} else {
                        		tmp = t / b;
                        	}
                        	return tmp;
                        }
                        
                        function code(x, y, z, t, a, b)
                        	tmp = 0.0
                        	if (z <= -5.8e-126)
                        		tmp = Float64(t / b);
                        	elseif (z <= 2.4e-8)
                        		tmp = fma(x, z, x);
                        	else
                        		tmp = Float64(t / b);
                        	end
                        	return tmp
                        end
                        
                        code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -5.8e-126], N[(t / b), $MachinePrecision], If[LessEqual[z, 2.4e-8], N[(x * z + x), $MachinePrecision], N[(t / b), $MachinePrecision]]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        \mathbf{if}\;z \leq -5.8 \cdot 10^{-126}:\\
                        \;\;\;\;\frac{t}{b}\\
                        
                        \mathbf{elif}\;z \leq 2.4 \cdot 10^{-8}:\\
                        \;\;\;\;\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.79999999999999975e-126 or 2.39999999999999998e-8 < z

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

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

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

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

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

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

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

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

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

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

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

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

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

                            if -5.79999999999999975e-126 < z < 2.39999999999999998e-8

                            1. Initial program 84.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--.f6453.6

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

                              \[\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 rewrites53.6%

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

                            Alternative 17: 25.6% 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 65.8%

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

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

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

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

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

                              Alternative 18: 3.9% 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 65.8%

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

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

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

                                \[\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 rewrites25.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 rewrites3.7%

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

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

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

                                  Reproduce

                                  ?
                                  herbie shell --seed 2024294 
                                  (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)))))