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

Percentage Accurate: 60.2% → 89.8%
Time: 10.8s
Alternatives: 10
Speedup: 1.4×

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 10 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.2% 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: 89.8% accurate, 0.3× speedup?

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

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

\mathbf{elif}\;t\_3 \leq 5 \cdot 10^{+265}:\\
\;\;\;\;\frac{\mathsf{fma}\left(x + y, z, t\_1 - y \cdot b\right)}{t\_2}\\

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{z - b}{y + t}, a\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)) < -inf.0

    1. Initial program 6.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. lower-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. lower-+.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. lower-/.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. lower-+.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. lower-+.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. Applied rewrites50.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 y around inf

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

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

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

      1. Initial program 99.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. Step-by-step derivation
        1. lift--.f64N/A

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

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

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

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

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

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

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

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

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

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

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

      1. Initial program 6.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. lower-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. lower-+.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. lower-/.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. lower-+.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. lower-+.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. Applied rewrites33.3%

        \[\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 a + \color{blue}{\frac{y \cdot \left(z - b\right)}{t + y}} \]
      7. Step-by-step derivation
        1. Applied rewrites78.6%

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

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

      Alternative 2: 74.9% accurate, 0.9× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := z - y \cdot \frac{b - a}{x}\\ \mathbf{if}\;x \leq -1.75 \cdot 10^{+208}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq -9.6 \cdot 10^{-21}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t}{x + t}, x \cdot \frac{z}{x + t}\right)\\ \mathbf{elif}\;x \leq 2.8 \cdot 10^{+146}:\\ \;\;\;\;\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 (- z (* y (/ (- b a) x)))))
         (if (<= x -1.75e+208)
           t_1
           (if (<= x -9.6e-21)
             (fma a (/ t (+ x t)) (* x (/ z (+ x t))))
             (if (<= x 2.8e+146) (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 = z - (y * ((b - a) / x));
      	double tmp;
      	if (x <= -1.75e+208) {
      		tmp = t_1;
      	} else if (x <= -9.6e-21) {
      		tmp = fma(a, (t / (x + t)), (x * (z / (x + t))));
      	} else if (x <= 2.8e+146) {
      		tmp = fma(y, ((z - b) / (y + t)), a);
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a, b)
      	t_1 = Float64(z - Float64(y * Float64(Float64(b - a) / x)))
      	tmp = 0.0
      	if (x <= -1.75e+208)
      		tmp = t_1;
      	elseif (x <= -9.6e-21)
      		tmp = fma(a, Float64(t / Float64(x + t)), Float64(x * Float64(z / Float64(x + t))));
      	elseif (x <= 2.8e+146)
      		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[(z - N[(y * N[(N[(b - a), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.75e+208], t$95$1, If[LessEqual[x, -9.6e-21], N[(a * N[(t / N[(x + t), $MachinePrecision]), $MachinePrecision] + N[(x * N[(z / N[(x + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.8e+146], 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 := z - y \cdot \frac{b - a}{x}\\
      \mathbf{if}\;x \leq -1.75 \cdot 10^{+208}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;x \leq -9.6 \cdot 10^{-21}:\\
      \;\;\;\;\mathsf{fma}\left(a, \frac{t}{x + t}, x \cdot \frac{z}{x + t}\right)\\
      
      \mathbf{elif}\;x \leq 2.8 \cdot 10^{+146}:\\
      \;\;\;\;\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 < -1.75000000000000008e208 or 2.8000000000000001e146 < x

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

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

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

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

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

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

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

          \[\leadsto z - \frac{y \cdot \left(b - a\right)}{\color{blue}{x}} \]
        7. Step-by-step derivation
          1. Applied rewrites85.2%

            \[\leadsto z - y \cdot \color{blue}{\frac{b - a}{x}} \]

          if -1.75000000000000008e208 < x < -9.5999999999999997e-21

          1. Initial program 60.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. lower-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. lower-+.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. lower-/.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. lower-+.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. lower-+.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. Applied rewrites80.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 y around 0

            \[\leadsto \frac{a \cdot t}{t + x} + \color{blue}{\frac{x \cdot z}{t + x}} \]
          7. Step-by-step derivation
            1. Applied rewrites76.3%

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

            if -9.5999999999999997e-21 < x < 2.8000000000000001e146

            1. Initial program 61.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. lower-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. lower-+.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. lower-/.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. lower-+.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. lower-+.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. Applied rewrites71.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 0

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

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

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

            Alternative 3: 74.2% accurate, 1.2× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := z - y \cdot \frac{b - a}{x}\\ \mathbf{if}\;x \leq -2.8 \cdot 10^{+186}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 2.8 \cdot 10^{+146}:\\ \;\;\;\;\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 (- z (* y (/ (- b a) x)))))
               (if (<= x -2.8e+186)
                 t_1
                 (if (<= x 2.8e+146) (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 = z - (y * ((b - a) / x));
            	double tmp;
            	if (x <= -2.8e+186) {
            		tmp = t_1;
            	} else if (x <= 2.8e+146) {
            		tmp = fma(y, ((z - b) / (y + t)), a);
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a, b)
            	t_1 = Float64(z - Float64(y * Float64(Float64(b - a) / x)))
            	tmp = 0.0
            	if (x <= -2.8e+186)
            		tmp = t_1;
            	elseif (x <= 2.8e+146)
            		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[(z - N[(y * N[(N[(b - a), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.8e+186], t$95$1, If[LessEqual[x, 2.8e+146], 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 := z - y \cdot \frac{b - a}{x}\\
            \mathbf{if}\;x \leq -2.8 \cdot 10^{+186}:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;x \leq 2.8 \cdot 10^{+146}:\\
            \;\;\;\;\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 < -2.80000000000000018e186 or 2.8000000000000001e146 < x

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

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

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

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

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

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

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

                \[\leadsto z - \frac{y \cdot \left(b - a\right)}{\color{blue}{x}} \]
              7. Step-by-step derivation
                1. Applied rewrites83.6%

                  \[\leadsto z - y \cdot \color{blue}{\frac{b - a}{x}} \]

                if -2.80000000000000018e186 < x < 2.8000000000000001e146

                1. Initial program 60.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 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. lower-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. lower-+.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. lower-/.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. lower-+.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. lower-+.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. Applied rewrites73.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 a + \color{blue}{\frac{y \cdot \left(z - b\right)}{t + y}} \]
                7. Step-by-step derivation
                  1. Applied rewrites80.1%

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

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

                Alternative 4: 62.3% accurate, 1.3× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-b, \frac{y}{y + t}, a\right)\\ \mathbf{if}\;t \leq -2.2 \cdot 10^{+125}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 9000000000:\\ \;\;\;\;\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 (- b) (/ y (+ y t)) a)))
                   (if (<= t -2.2e+125) t_1 (if (<= t 9000000000.0) (- (+ z a) b) t_1))))
                double code(double x, double y, double z, double t, double a, double b) {
                	double t_1 = fma(-b, (y / (y + t)), a);
                	double tmp;
                	if (t <= -2.2e+125) {
                		tmp = t_1;
                	} else if (t <= 9000000000.0) {
                		tmp = (z + a) - b;
                	} else {
                		tmp = t_1;
                	}
                	return tmp;
                }
                
                function code(x, y, z, t, a, b)
                	t_1 = fma(Float64(-b), Float64(y / Float64(y + t)), a)
                	tmp = 0.0
                	if (t <= -2.2e+125)
                		tmp = t_1;
                	elseif (t <= 9000000000.0)
                		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[((-b) * N[(y / N[(y + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]}, If[LessEqual[t, -2.2e+125], t$95$1, If[LessEqual[t, 9000000000.0], N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision], t$95$1]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := \mathsf{fma}\left(-b, \frac{y}{y + t}, a\right)\\
                \mathbf{if}\;t \leq -2.2 \cdot 10^{+125}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;t \leq 9000000000:\\
                \;\;\;\;\left(z + a\right) - b\\
                
                \mathbf{else}:\\
                \;\;\;\;t\_1\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if t < -2.19999999999999991e125 or 9e9 < t

                  1. Initial program 49.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 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. lower-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. lower-+.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. lower-/.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. lower-+.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. lower-+.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. Applied rewrites72.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 0

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

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

                      \[\leadsto a + -1 \cdot \color{blue}{\frac{b \cdot y}{t + y}} \]
                    3. Step-by-step derivation
                      1. Applied rewrites77.1%

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

                      if -2.19999999999999991e125 < t < 9e9

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

                          \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                        2. lower-+.f6470.9

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

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

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

                    Alternative 5: 63.3% accurate, 1.4× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y, \frac{z - b}{t}, a\right)\\ \mathbf{if}\;t \leq -2.9 \cdot 10^{+173}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 9.2 \cdot 10^{+117}:\\ \;\;\;\;\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 (/ (- z b) t) a)))
                       (if (<= t -2.9e+173) t_1 (if (<= t 9.2e+117) (- (+ z a) b) t_1))))
                    double code(double x, double y, double z, double t, double a, double b) {
                    	double t_1 = fma(y, ((z - b) / t), a);
                    	double tmp;
                    	if (t <= -2.9e+173) {
                    		tmp = t_1;
                    	} else if (t <= 9.2e+117) {
                    		tmp = (z + a) - b;
                    	} else {
                    		tmp = t_1;
                    	}
                    	return tmp;
                    }
                    
                    function code(x, y, z, t, a, b)
                    	t_1 = fma(y, Float64(Float64(z - b) / t), a)
                    	tmp = 0.0
                    	if (t <= -2.9e+173)
                    		tmp = t_1;
                    	elseif (t <= 9.2e+117)
                    		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[(y * N[(N[(z - b), $MachinePrecision] / t), $MachinePrecision] + a), $MachinePrecision]}, If[LessEqual[t, -2.9e+173], t$95$1, If[LessEqual[t, 9.2e+117], N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision], t$95$1]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    t_1 := \mathsf{fma}\left(y, \frac{z - b}{t}, a\right)\\
                    \mathbf{if}\;t \leq -2.9 \cdot 10^{+173}:\\
                    \;\;\;\;t\_1\\
                    
                    \mathbf{elif}\;t \leq 9.2 \cdot 10^{+117}:\\
                    \;\;\;\;\left(z + a\right) - b\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;t\_1\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 2 regimes
                    2. if t < -2.90000000000000007e173 or 9.19999999999999951e117 < t

                      1. Initial program 40.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. lower-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. lower-+.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. lower-/.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. lower-+.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. lower-+.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. Applied rewrites70.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 0

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

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

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

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

                          if -2.90000000000000007e173 < t < 9.19999999999999951e117

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

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

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

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

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

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

                        Alternative 6: 60.2% accurate, 2.4× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(z + a\right) - b\\ \mathbf{if}\;y \leq -2.6 \cdot 10^{+29}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 8.2 \cdot 10^{+32}:\\ \;\;\;\;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 -2.6e+29) t_1 (if (<= y 8.2e+32) (+ 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 <= -2.6e+29) {
                        		tmp = t_1;
                        	} else if (y <= 8.2e+32) {
                        		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 <= (-2.6d+29)) then
                                tmp = t_1
                            else if (y <= 8.2d+32) 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 <= -2.6e+29) {
                        		tmp = t_1;
                        	} else if (y <= 8.2e+32) {
                        		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 <= -2.6e+29:
                        		tmp = t_1
                        	elif y <= 8.2e+32:
                        		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 <= -2.6e+29)
                        		tmp = t_1;
                        	elseif (y <= 8.2e+32)
                        		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 <= -2.6e+29)
                        		tmp = t_1;
                        	elseif (y <= 8.2e+32)
                        		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, -2.6e+29], t$95$1, If[LessEqual[y, 8.2e+32], N[(z + a), $MachinePrecision], t$95$1]]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        t_1 := \left(z + a\right) - b\\
                        \mathbf{if}\;y \leq -2.6 \cdot 10^{+29}:\\
                        \;\;\;\;t\_1\\
                        
                        \mathbf{elif}\;y \leq 8.2 \cdot 10^{+32}:\\
                        \;\;\;\;z + a\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;t\_1\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 2 regimes
                        2. if y < -2.6e29 or 8.19999999999999961e32 < y

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

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

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

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

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

                          if -2.6e29 < y < 8.19999999999999961e32

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

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

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

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

                            \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                          6. Taylor expanded in b around 0

                            \[\leadsto a + \color{blue}{z} \]
                          7. Step-by-step derivation
                            1. Applied rewrites59.6%

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

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

                          Alternative 7: 53.1% accurate, 2.8× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -1.28 \cdot 10^{+147}:\\ \;\;\;\;a - b\\ \mathbf{elif}\;b \leq 2.6 \cdot 10^{+150}:\\ \;\;\;\;z + a\\ \mathbf{else}:\\ \;\;\;\;z - b\\ \end{array} \end{array} \]
                          (FPCore (x y z t a b)
                           :precision binary64
                           (if (<= b -1.28e+147) (- a b) (if (<= b 2.6e+150) (+ z a) (- z b))))
                          double code(double x, double y, double z, double t, double a, double b) {
                          	double tmp;
                          	if (b <= -1.28e+147) {
                          		tmp = a - b;
                          	} else if (b <= 2.6e+150) {
                          		tmp = z + a;
                          	} else {
                          		tmp = z - b;
                          	}
                          	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 (b <= (-1.28d+147)) then
                                  tmp = a - b
                              else if (b <= 2.6d+150) then
                                  tmp = z + a
                              else
                                  tmp = z - b
                              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 (b <= -1.28e+147) {
                          		tmp = a - b;
                          	} else if (b <= 2.6e+150) {
                          		tmp = z + a;
                          	} else {
                          		tmp = z - b;
                          	}
                          	return tmp;
                          }
                          
                          def code(x, y, z, t, a, b):
                          	tmp = 0
                          	if b <= -1.28e+147:
                          		tmp = a - b
                          	elif b <= 2.6e+150:
                          		tmp = z + a
                          	else:
                          		tmp = z - b
                          	return tmp
                          
                          function code(x, y, z, t, a, b)
                          	tmp = 0.0
                          	if (b <= -1.28e+147)
                          		tmp = Float64(a - b);
                          	elseif (b <= 2.6e+150)
                          		tmp = Float64(z + a);
                          	else
                          		tmp = Float64(z - b);
                          	end
                          	return tmp
                          end
                          
                          function tmp_2 = code(x, y, z, t, a, b)
                          	tmp = 0.0;
                          	if (b <= -1.28e+147)
                          		tmp = a - b;
                          	elseif (b <= 2.6e+150)
                          		tmp = z + a;
                          	else
                          		tmp = z - b;
                          	end
                          	tmp_2 = tmp;
                          end
                          
                          code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.28e+147], N[(a - b), $MachinePrecision], If[LessEqual[b, 2.6e+150], N[(z + a), $MachinePrecision], N[(z - b), $MachinePrecision]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          \mathbf{if}\;b \leq -1.28 \cdot 10^{+147}:\\
                          \;\;\;\;a - b\\
                          
                          \mathbf{elif}\;b \leq 2.6 \cdot 10^{+150}:\\
                          \;\;\;\;z + a\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;z - b\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 3 regimes
                          2. if b < -1.28e147

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

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

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

                              \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                            6. Taylor expanded in z around 0

                              \[\leadsto a - \color{blue}{b} \]
                            7. Step-by-step derivation
                              1. Applied rewrites44.3%

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

                              if -1.28e147 < b < 2.60000000000000006e150

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

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

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

                                \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                              6. Taylor expanded in b around 0

                                \[\leadsto a + \color{blue}{z} \]
                              7. Step-by-step derivation
                                1. Applied rewrites67.0%

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

                                if 2.60000000000000006e150 < b

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

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

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

                                  \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                                6. Taylor expanded in a around 0

                                  \[\leadsto z - \color{blue}{b} \]
                                7. Step-by-step derivation
                                  1. Applied rewrites47.1%

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

                                  \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.28 \cdot 10^{+147}:\\ \;\;\;\;a - b\\ \mathbf{elif}\;b \leq 2.6 \cdot 10^{+150}:\\ \;\;\;\;z + a\\ \mathbf{else}:\\ \;\;\;\;z - b\\ \end{array} \]
                                10. Add Preprocessing

                                Alternative 8: 53.2% accurate, 2.8× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -1.28 \cdot 10^{+147}:\\ \;\;\;\;a - b\\ \mathbf{elif}\;b \leq 2.62 \cdot 10^{+213}:\\ \;\;\;\;z + a\\ \mathbf{else}:\\ \;\;\;\;a - b\\ \end{array} \end{array} \]
                                (FPCore (x y z t a b)
                                 :precision binary64
                                 (if (<= b -1.28e+147) (- a b) (if (<= b 2.62e+213) (+ z a) (- a b))))
                                double code(double x, double y, double z, double t, double a, double b) {
                                	double tmp;
                                	if (b <= -1.28e+147) {
                                		tmp = a - b;
                                	} else if (b <= 2.62e+213) {
                                		tmp = z + a;
                                	} else {
                                		tmp = a - b;
                                	}
                                	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 (b <= (-1.28d+147)) then
                                        tmp = a - b
                                    else if (b <= 2.62d+213) then
                                        tmp = z + a
                                    else
                                        tmp = a - b
                                    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 (b <= -1.28e+147) {
                                		tmp = a - b;
                                	} else if (b <= 2.62e+213) {
                                		tmp = z + a;
                                	} else {
                                		tmp = a - b;
                                	}
                                	return tmp;
                                }
                                
                                def code(x, y, z, t, a, b):
                                	tmp = 0
                                	if b <= -1.28e+147:
                                		tmp = a - b
                                	elif b <= 2.62e+213:
                                		tmp = z + a
                                	else:
                                		tmp = a - b
                                	return tmp
                                
                                function code(x, y, z, t, a, b)
                                	tmp = 0.0
                                	if (b <= -1.28e+147)
                                		tmp = Float64(a - b);
                                	elseif (b <= 2.62e+213)
                                		tmp = Float64(z + a);
                                	else
                                		tmp = Float64(a - b);
                                	end
                                	return tmp
                                end
                                
                                function tmp_2 = code(x, y, z, t, a, b)
                                	tmp = 0.0;
                                	if (b <= -1.28e+147)
                                		tmp = a - b;
                                	elseif (b <= 2.62e+213)
                                		tmp = z + a;
                                	else
                                		tmp = a - b;
                                	end
                                	tmp_2 = tmp;
                                end
                                
                                code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.28e+147], N[(a - b), $MachinePrecision], If[LessEqual[b, 2.62e+213], N[(z + a), $MachinePrecision], N[(a - b), $MachinePrecision]]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                \mathbf{if}\;b \leq -1.28 \cdot 10^{+147}:\\
                                \;\;\;\;a - b\\
                                
                                \mathbf{elif}\;b \leq 2.62 \cdot 10^{+213}:\\
                                \;\;\;\;z + a\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;a - b\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 2 regimes
                                2. if b < -1.28e147 or 2.6199999999999999e213 < b

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

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

                                      \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                                    2. lower-+.f6441.8

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

                                    \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                                  6. Taylor expanded in z around 0

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

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

                                    if -1.28e147 < b < 2.6199999999999999e213

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

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

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

                                      \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                                    6. Taylor expanded in b around 0

                                      \[\leadsto a + \color{blue}{z} \]
                                    7. Step-by-step derivation
                                      1. Applied rewrites65.6%

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

                                      \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.28 \cdot 10^{+147}:\\ \;\;\;\;a - b\\ \mathbf{elif}\;b \leq 2.62 \cdot 10^{+213}:\\ \;\;\;\;z + a\\ \mathbf{else}:\\ \;\;\;\;a - b\\ \end{array} \]
                                    10. Add Preprocessing

                                    Alternative 9: 52.5% accurate, 4.5× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq 5 \cdot 10^{+213}:\\ \;\;\;\;z + a\\ \mathbf{else}:\\ \;\;\;\;-b\\ \end{array} \end{array} \]
                                    (FPCore (x y z t a b) :precision binary64 (if (<= b 5e+213) (+ z a) (- b)))
                                    double code(double x, double y, double z, double t, double a, double b) {
                                    	double tmp;
                                    	if (b <= 5e+213) {
                                    		tmp = z + a;
                                    	} else {
                                    		tmp = -b;
                                    	}
                                    	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 (b <= 5d+213) then
                                            tmp = z + a
                                        else
                                            tmp = -b
                                        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 (b <= 5e+213) {
                                    		tmp = z + a;
                                    	} else {
                                    		tmp = -b;
                                    	}
                                    	return tmp;
                                    }
                                    
                                    def code(x, y, z, t, a, b):
                                    	tmp = 0
                                    	if b <= 5e+213:
                                    		tmp = z + a
                                    	else:
                                    		tmp = -b
                                    	return tmp
                                    
                                    function code(x, y, z, t, a, b)
                                    	tmp = 0.0
                                    	if (b <= 5e+213)
                                    		tmp = Float64(z + a);
                                    	else
                                    		tmp = Float64(-b);
                                    	end
                                    	return tmp
                                    end
                                    
                                    function tmp_2 = code(x, y, z, t, a, b)
                                    	tmp = 0.0;
                                    	if (b <= 5e+213)
                                    		tmp = z + a;
                                    	else
                                    		tmp = -b;
                                    	end
                                    	tmp_2 = tmp;
                                    end
                                    
                                    code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 5e+213], N[(z + a), $MachinePrecision], (-b)]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    \mathbf{if}\;b \leq 5 \cdot 10^{+213}:\\
                                    \;\;\;\;z + a\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;-b\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 2 regimes
                                    2. if b < 4.9999999999999998e213

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

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

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

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

                                        \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                                      6. Taylor expanded in b around 0

                                        \[\leadsto a + \color{blue}{z} \]
                                      7. Step-by-step derivation
                                        1. Applied rewrites59.7%

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

                                        if 4.9999999999999998e213 < b

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

                                            \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                                          2. lower-+.f6444.6

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

                                          \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                                        6. Taylor expanded in b around inf

                                          \[\leadsto -1 \cdot \color{blue}{b} \]
                                        7. Step-by-step derivation
                                          1. Applied rewrites41.8%

                                            \[\leadsto -b \]
                                        8. Recombined 2 regimes into one program.
                                        9. Final simplification58.5%

                                          \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq 5 \cdot 10^{+213}:\\ \;\;\;\;z + a\\ \mathbf{else}:\\ \;\;\;\;-b\\ \end{array} \]
                                        10. Add Preprocessing

                                        Alternative 10: 13.3% accurate, 15.0× speedup?

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

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

                                            \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                                          2. lower-+.f6461.8

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

                                          \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                                        6. Taylor expanded in b around inf

                                          \[\leadsto -1 \cdot \color{blue}{b} \]
                                        7. Step-by-step derivation
                                          1. Applied rewrites14.0%

                                            \[\leadsto -b \]
                                          2. Add Preprocessing

                                          Developer Target 1: 82.2% 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 2024232 
                                          (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)))