AI.Clustering.Hierarchical.Internal:ward from clustering-0.2.1

Percentage Accurate: 60.0% → 87.4%
Time: 12.5s
Alternatives: 12
Speedup: 1.5×

Specification

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

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

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

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

Alternative 1: 87.4% accurate, 0.3× speedup?

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

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

\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+260}:\\
\;\;\;\;t\_1\\

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


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

    1. Initial program 9.9%

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

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

        \[\leadsto \color{blue}{\left(a + z\right) - b} \]
      2. +-lowering-+.f6484.4

        \[\leadsto \color{blue}{\left(a + z\right)} - b \]
    5. Simplified84.4%

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

    if -1.99999999999999989e273 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 2.00000000000000013e260

    1. Initial program 99.6%

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

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

    1. Initial program 5.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 2: 59.9% accurate, 0.4× speedup?

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

      1. Initial program 30.4%

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

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

          \[\leadsto \color{blue}{\left(a + z\right) - b} \]
        2. +-lowering-+.f6478.2

          \[\leadsto \color{blue}{\left(a + z\right)} - b \]
      5. Simplified78.2%

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

      if -2.00000000000000004e64 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 5.00000000000000022e92

      1. Initial program 99.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(a, \frac{y}{\color{blue}{y + x}}, z\right) \]
          6. +-lowering-+.f6444.7

            \[\leadsto \mathsf{fma}\left(a, \frac{y}{\color{blue}{y + x}}, z\right) \]
        4. Simplified44.7%

          \[\leadsto \color{blue}{\mathsf{fma}\left(a, \frac{y}{y + x}, z\right)} \]
      8. Recombined 2 regimes into one program.
      9. Final simplification64.0%

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

      Alternative 3: 76.1% accurate, 1.0× speedup?

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

        1. Initial program 48.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -3.7e84 < x < -3.00000000000000003e-43

          1. Initial program 78.3%

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

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

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

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

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

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

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

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

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

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

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

          if -3.00000000000000003e-43 < x < 0.021999999999999999

          1. Initial program 65.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        Alternative 4: 79.0% accurate, 1.2× speedup?

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

          1. Initial program 52.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -5.1e19 < x < 0.0550000000000000003

            1. Initial program 66.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 5: 73.2% accurate, 1.2× speedup?

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

            1. Initial program 47.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if -2.89999999999999992e195 < x < 1.45e29

              1. Initial program 63.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if 1.45e29 < x

              1. Initial program 53.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \mathsf{fma}\left(a, \frac{y}{\color{blue}{y + x}}, z\right) \]
                  6. +-lowering-+.f6467.2

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

                  \[\leadsto \color{blue}{\mathsf{fma}\left(a, \frac{y}{y + x}, z\right)} \]
              8. Recombined 3 regimes into one program.
              9. Final simplification74.7%

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

              Alternative 6: 61.7% accurate, 1.4× speedup?

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

                1. Initial program 53.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if -9.3999999999999999e24 < x < 4.49999999999999999e62

                  1. Initial program 64.5%

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

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

                      \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                    2. +-lowering-+.f6462.7

                      \[\leadsto \color{blue}{\left(a + z\right)} - b \]
                  5. Simplified62.7%

                    \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                8. Recombined 2 regimes into one program.
                9. Final simplification64.4%

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

                Alternative 7: 60.9% accurate, 1.5× speedup?

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

                  1. Initial program 47.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if -6.80000000000000021e195 < x < 1.12e115

                      1. Initial program 63.9%

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

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

                          \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                        2. +-lowering-+.f6459.5

                          \[\leadsto \color{blue}{\left(a + z\right)} - b \]
                      5. Simplified59.5%

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

                      if 1.12e115 < x

                      1. Initial program 46.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto \mathsf{fma}\left(\color{blue}{y}, \frac{a}{x}, z\right) \]
                        6. Step-by-step derivation
                          1. Simplified68.8%

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

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

                        Alternative 8: 60.8% accurate, 1.5× speedup?

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

                          1. Initial program 52.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \mathsf{fma}\left(\color{blue}{t}, \frac{a}{x}, z\right) \]
                            6. Step-by-step derivation
                              1. Simplified68.0%

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

                              if -3.7000000000000001e200 < x < 5.90000000000000029e63

                              1. Initial program 62.7%

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

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

                                  \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                                2. +-lowering-+.f6460.0

                                  \[\leadsto \color{blue}{\left(a + z\right)} - b \]
                              5. Simplified60.0%

                                \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                            7. Recombined 2 regimes into one program.
                            8. Final simplification62.4%

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

                            Alternative 9: 59.3% accurate, 2.4× speedup?

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

                              1. Initial program 46.8%

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

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

                                  \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                                2. +-lowering-+.f6474.1

                                  \[\leadsto \color{blue}{\left(a + z\right)} - b \]
                              5. Simplified74.1%

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

                              if -6.49999999999999952e-129 < y < 2e10

                              1. Initial program 74.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \color{blue}{a + z} \]
                                3. Step-by-step derivation
                                  1. +-commutativeN/A

                                    \[\leadsto \color{blue}{z + a} \]
                                  2. +-lowering-+.f6446.5

                                    \[\leadsto \color{blue}{z + a} \]
                                4. Simplified46.5%

                                  \[\leadsto \color{blue}{z + a} \]
                              8. Recombined 2 regimes into one program.
                              9. Final simplification61.3%

                                \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -6.5 \cdot 10^{-129}:\\ \;\;\;\;\left(z + a\right) - b\\ \mathbf{elif}\;y \leq 20000000000:\\ \;\;\;\;z + a\\ \mathbf{else}:\\ \;\;\;\;\left(z + a\right) - b\\ \end{array} \]
                              10. Add Preprocessing

                              Alternative 10: 45.0% accurate, 3.5× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -4.8 \cdot 10^{+100}:\\ \;\;\;\;a\\ \mathbf{elif}\;t \leq 4.4 \cdot 10^{+70}:\\ \;\;\;\;z\\ \mathbf{else}:\\ \;\;\;\;a\\ \end{array} \end{array} \]
                              (FPCore (x y z t a b)
                               :precision binary64
                               (if (<= t -4.8e+100) a (if (<= t 4.4e+70) z a)))
                              double code(double x, double y, double z, double t, double a, double b) {
                              	double tmp;
                              	if (t <= -4.8e+100) {
                              		tmp = a;
                              	} else if (t <= 4.4e+70) {
                              		tmp = z;
                              	} else {
                              		tmp = a;
                              	}
                              	return tmp;
                              }
                              
                              real(8) function code(x, y, z, t, a, b)
                                  real(8), intent (in) :: x
                                  real(8), intent (in) :: y
                                  real(8), intent (in) :: z
                                  real(8), intent (in) :: t
                                  real(8), intent (in) :: a
                                  real(8), intent (in) :: b
                                  real(8) :: tmp
                                  if (t <= (-4.8d+100)) then
                                      tmp = a
                                  else if (t <= 4.4d+70) then
                                      tmp = z
                                  else
                                      tmp = a
                                  end if
                                  code = tmp
                              end function
                              
                              public static double code(double x, double y, double z, double t, double a, double b) {
                              	double tmp;
                              	if (t <= -4.8e+100) {
                              		tmp = a;
                              	} else if (t <= 4.4e+70) {
                              		tmp = z;
                              	} else {
                              		tmp = a;
                              	}
                              	return tmp;
                              }
                              
                              def code(x, y, z, t, a, b):
                              	tmp = 0
                              	if t <= -4.8e+100:
                              		tmp = a
                              	elif t <= 4.4e+70:
                              		tmp = z
                              	else:
                              		tmp = a
                              	return tmp
                              
                              function code(x, y, z, t, a, b)
                              	tmp = 0.0
                              	if (t <= -4.8e+100)
                              		tmp = a;
                              	elseif (t <= 4.4e+70)
                              		tmp = z;
                              	else
                              		tmp = a;
                              	end
                              	return tmp
                              end
                              
                              function tmp_2 = code(x, y, z, t, a, b)
                              	tmp = 0.0;
                              	if (t <= -4.8e+100)
                              		tmp = a;
                              	elseif (t <= 4.4e+70)
                              		tmp = z;
                              	else
                              		tmp = a;
                              	end
                              	tmp_2 = tmp;
                              end
                              
                              code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -4.8e+100], a, If[LessEqual[t, 4.4e+70], z, a]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              \mathbf{if}\;t \leq -4.8 \cdot 10^{+100}:\\
                              \;\;\;\;a\\
                              
                              \mathbf{elif}\;t \leq 4.4 \cdot 10^{+70}:\\
                              \;\;\;\;z\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;a\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 2 regimes
                              2. if t < -4.80000000000000023e100 or 4.40000000000000001e70 < t

                                1. Initial program 57.3%

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

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

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

                                  if -4.80000000000000023e100 < t < 4.40000000000000001e70

                                  1. Initial program 61.1%

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

                                    \[\leadsto \color{blue}{z} \]
                                  4. Step-by-step derivation
                                    1. Simplified45.3%

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

                                  Alternative 11: 53.0% accurate, 4.5× speedup?

                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq 4.1 \cdot 10^{+186}:\\ \;\;\;\;z + a\\ \mathbf{else}:\\ \;\;\;\;z\\ \end{array} \end{array} \]
                                  (FPCore (x y z t a b) :precision binary64 (if (<= x 4.1e+186) (+ z a) z))
                                  double code(double x, double y, double z, double t, double a, double b) {
                                  	double tmp;
                                  	if (x <= 4.1e+186) {
                                  		tmp = z + a;
                                  	} else {
                                  		tmp = z;
                                  	}
                                  	return tmp;
                                  }
                                  
                                  real(8) function code(x, y, z, t, a, b)
                                      real(8), intent (in) :: x
                                      real(8), intent (in) :: y
                                      real(8), intent (in) :: z
                                      real(8), intent (in) :: t
                                      real(8), intent (in) :: a
                                      real(8), intent (in) :: b
                                      real(8) :: tmp
                                      if (x <= 4.1d+186) then
                                          tmp = z + a
                                      else
                                          tmp = z
                                      end if
                                      code = tmp
                                  end function
                                  
                                  public static double code(double x, double y, double z, double t, double a, double b) {
                                  	double tmp;
                                  	if (x <= 4.1e+186) {
                                  		tmp = z + a;
                                  	} else {
                                  		tmp = z;
                                  	}
                                  	return tmp;
                                  }
                                  
                                  def code(x, y, z, t, a, b):
                                  	tmp = 0
                                  	if x <= 4.1e+186:
                                  		tmp = z + a
                                  	else:
                                  		tmp = z
                                  	return tmp
                                  
                                  function code(x, y, z, t, a, b)
                                  	tmp = 0.0
                                  	if (x <= 4.1e+186)
                                  		tmp = Float64(z + a);
                                  	else
                                  		tmp = z;
                                  	end
                                  	return tmp
                                  end
                                  
                                  function tmp_2 = code(x, y, z, t, a, b)
                                  	tmp = 0.0;
                                  	if (x <= 4.1e+186)
                                  		tmp = z + a;
                                  	else
                                  		tmp = z;
                                  	end
                                  	tmp_2 = tmp;
                                  end
                                  
                                  code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, 4.1e+186], N[(z + a), $MachinePrecision], z]
                                  
                                  \begin{array}{l}
                                  
                                  \\
                                  \begin{array}{l}
                                  \mathbf{if}\;x \leq 4.1 \cdot 10^{+186}:\\
                                  \;\;\;\;z + a\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;z\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 2 regimes
                                  2. if x < 4.1e186

                                    1. Initial program 61.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \color{blue}{a + z} \]
                                      3. Step-by-step derivation
                                        1. +-commutativeN/A

                                          \[\leadsto \color{blue}{z + a} \]
                                        2. +-lowering-+.f6453.6

                                          \[\leadsto \color{blue}{z + a} \]
                                      4. Simplified53.6%

                                        \[\leadsto \color{blue}{z + a} \]

                                      if 4.1e186 < x

                                      1. Initial program 40.4%

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

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

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

                                      Alternative 12: 32.7% accurate, 45.0× speedup?

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

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

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

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

                                        Developer Target 1: 82.1% accurate, 0.3× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(x + t\right) + y\\ t_2 := \left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b\\ t_3 := \frac{t\_2}{t\_1}\\ t_4 := \left(z + a\right) - b\\ \mathbf{if}\;t\_3 < -3.5813117084150564 \cdot 10^{+153}:\\ \;\;\;\;t\_4\\ \mathbf{elif}\;t\_3 < 1.2285964308315609 \cdot 10^{+82}:\\ \;\;\;\;\frac{1}{\frac{t\_1}{t\_2}}\\ \mathbf{else}:\\ \;\;\;\;t\_4\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a b)
                                         :precision binary64
                                         (let* ((t_1 (+ (+ x t) y))
                                                (t_2 (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)))
                                                (t_3 (/ t_2 t_1))
                                                (t_4 (- (+ z a) b)))
                                           (if (< t_3 -3.5813117084150564e+153)
                                             t_4
                                             (if (< t_3 1.2285964308315609e+82) (/ 1.0 (/ t_1 t_2)) t_4))))
                                        double code(double x, double y, double z, double t, double a, double b) {
                                        	double t_1 = (x + t) + y;
                                        	double t_2 = (((x + y) * z) + ((t + y) * a)) - (y * b);
                                        	double t_3 = t_2 / t_1;
                                        	double t_4 = (z + a) - b;
                                        	double tmp;
                                        	if (t_3 < -3.5813117084150564e+153) {
                                        		tmp = t_4;
                                        	} else if (t_3 < 1.2285964308315609e+82) {
                                        		tmp = 1.0 / (t_1 / t_2);
                                        	} else {
                                        		tmp = t_4;
                                        	}
                                        	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) :: t_2
                                            real(8) :: t_3
                                            real(8) :: t_4
                                            real(8) :: tmp
                                            t_1 = (x + t) + y
                                            t_2 = (((x + y) * z) + ((t + y) * a)) - (y * b)
                                            t_3 = t_2 / t_1
                                            t_4 = (z + a) - b
                                            if (t_3 < (-3.5813117084150564d+153)) then
                                                tmp = t_4
                                            else if (t_3 < 1.2285964308315609d+82) then
                                                tmp = 1.0d0 / (t_1 / t_2)
                                            else
                                                tmp = t_4
                                            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 + t) + y;
                                        	double t_2 = (((x + y) * z) + ((t + y) * a)) - (y * b);
                                        	double t_3 = t_2 / t_1;
                                        	double t_4 = (z + a) - b;
                                        	double tmp;
                                        	if (t_3 < -3.5813117084150564e+153) {
                                        		tmp = t_4;
                                        	} else if (t_3 < 1.2285964308315609e+82) {
                                        		tmp = 1.0 / (t_1 / t_2);
                                        	} else {
                                        		tmp = t_4;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        def code(x, y, z, t, a, b):
                                        	t_1 = (x + t) + y
                                        	t_2 = (((x + y) * z) + ((t + y) * a)) - (y * b)
                                        	t_3 = t_2 / t_1
                                        	t_4 = (z + a) - b
                                        	tmp = 0
                                        	if t_3 < -3.5813117084150564e+153:
                                        		tmp = t_4
                                        	elif t_3 < 1.2285964308315609e+82:
                                        		tmp = 1.0 / (t_1 / t_2)
                                        	else:
                                        		tmp = t_4
                                        	return tmp
                                        
                                        function code(x, y, z, t, a, b)
                                        	t_1 = Float64(Float64(x + t) + y)
                                        	t_2 = Float64(Float64(Float64(Float64(x + y) * z) + Float64(Float64(t + y) * a)) - Float64(y * b))
                                        	t_3 = Float64(t_2 / t_1)
                                        	t_4 = Float64(Float64(z + a) - b)
                                        	tmp = 0.0
                                        	if (t_3 < -3.5813117084150564e+153)
                                        		tmp = t_4;
                                        	elseif (t_3 < 1.2285964308315609e+82)
                                        		tmp = Float64(1.0 / Float64(t_1 / t_2));
                                        	else
                                        		tmp = t_4;
                                        	end
                                        	return tmp
                                        end
                                        
                                        function tmp_2 = code(x, y, z, t, a, b)
                                        	t_1 = (x + t) + y;
                                        	t_2 = (((x + y) * z) + ((t + y) * a)) - (y * b);
                                        	t_3 = t_2 / t_1;
                                        	t_4 = (z + a) - b;
                                        	tmp = 0.0;
                                        	if (t_3 < -3.5813117084150564e+153)
                                        		tmp = t_4;
                                        	elseif (t_3 < 1.2285964308315609e+82)
                                        		tmp = 1.0 / (t_1 / t_2);
                                        	else
                                        		tmp = t_4;
                                        	end
                                        	tmp_2 = tmp;
                                        end
                                        
                                        code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + t), $MachinePrecision] + y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(x + y), $MachinePrecision] * z), $MachinePrecision] + N[(N[(t + y), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 / t$95$1), $MachinePrecision]}, Block[{t$95$4 = N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision]}, If[Less[t$95$3, -3.5813117084150564e+153], t$95$4, If[Less[t$95$3, 1.2285964308315609e+82], N[(1.0 / N[(t$95$1 / t$95$2), $MachinePrecision]), $MachinePrecision], t$95$4]]]]]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        t_1 := \left(x + t\right) + y\\
                                        t_2 := \left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b\\
                                        t_3 := \frac{t\_2}{t\_1}\\
                                        t_4 := \left(z + a\right) - b\\
                                        \mathbf{if}\;t\_3 < -3.5813117084150564 \cdot 10^{+153}:\\
                                        \;\;\;\;t\_4\\
                                        
                                        \mathbf{elif}\;t\_3 < 1.2285964308315609 \cdot 10^{+82}:\\
                                        \;\;\;\;\frac{1}{\frac{t\_1}{t\_2}}\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;t\_4\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        

                                        Reproduce

                                        ?
                                        herbie shell --seed 2024195 
                                        (FPCore (x y z t a b)
                                          :name "AI.Clustering.Hierarchical.Internal:ward from clustering-0.2.1"
                                          :precision binary64
                                        
                                          :alt
                                          (! :herbie-platform default (if (< (/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y)) -3581311708415056400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (+ z a) b) (if (< (/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y)) 12285964308315609000000000000000000000000000000000000000000000000000000000000000000) (/ 1 (/ (+ (+ x t) y) (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)))) (- (+ z a) b))))
                                        
                                          (/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y)))