Statistics.Distribution.Beta:$centropy from math-functions-0.1.5.2

Percentage Accurate: 95.5% → 97.5%
Time: 11.4s
Alternatives: 23
Speedup: 0.5×

Specification

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

\\
\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b
\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 23 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: 95.5% accurate, 1.0× speedup?

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

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

Alternative 1: 97.5% accurate, 0.5× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y #s(literal 1 binary64)) z)) (*.f64 (-.f64 t #s(literal 1 binary64)) a)) (*.f64 (-.f64 (+.f64 y t) #s(literal 2 binary64)) b)) < +inf.0

    1. Initial program 100.0%

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

    if +inf.0 < (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y #s(literal 1 binary64)) z)) (*.f64 (-.f64 t #s(literal 1 binary64)) a)) (*.f64 (-.f64 (+.f64 y t) #s(literal 2 binary64)) b))

    1. Initial program 0.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 45.1% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - z\right) \cdot y\\ t_2 := \left(t - 2\right) \cdot b\\ \mathbf{if}\;y \leq -2 \cdot 10^{+174}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -5.3 \cdot 10^{-134}:\\ \;\;\;\;\left(1 - t\right) \cdot a\\ \mathbf{elif}\;y \leq -5.5 \cdot 10^{-198}:\\ \;\;\;\;z + x\\ \mathbf{elif}\;y \leq 4.3 \cdot 10^{-165}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;y \leq 1.3 \cdot 10^{-33}:\\ \;\;\;\;z + x\\ \mathbf{elif}\;y \leq 9.6 \cdot 10^{+27}:\\ \;\;\;\;t\_2\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (* (- b z) y)) (t_2 (* (- t 2.0) b)))
   (if (<= y -2e+174)
     t_1
     (if (<= y -5.3e-134)
       (* (- 1.0 t) a)
       (if (<= y -5.5e-198)
         (+ z x)
         (if (<= y 4.3e-165)
           t_2
           (if (<= y 1.3e-33) (+ z x) (if (<= y 9.6e+27) t_2 t_1))))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (b - z) * y;
	double t_2 = (t - 2.0) * b;
	double tmp;
	if (y <= -2e+174) {
		tmp = t_1;
	} else if (y <= -5.3e-134) {
		tmp = (1.0 - t) * a;
	} else if (y <= -5.5e-198) {
		tmp = z + x;
	} else if (y <= 4.3e-165) {
		tmp = t_2;
	} else if (y <= 1.3e-33) {
		tmp = z + x;
	} else if (y <= 9.6e+27) {
		tmp = t_2;
	} 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) :: t_2
    real(8) :: tmp
    t_1 = (b - z) * y
    t_2 = (t - 2.0d0) * b
    if (y <= (-2d+174)) then
        tmp = t_1
    else if (y <= (-5.3d-134)) then
        tmp = (1.0d0 - t) * a
    else if (y <= (-5.5d-198)) then
        tmp = z + x
    else if (y <= 4.3d-165) then
        tmp = t_2
    else if (y <= 1.3d-33) then
        tmp = z + x
    else if (y <= 9.6d+27) then
        tmp = t_2
    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 = (b - z) * y;
	double t_2 = (t - 2.0) * b;
	double tmp;
	if (y <= -2e+174) {
		tmp = t_1;
	} else if (y <= -5.3e-134) {
		tmp = (1.0 - t) * a;
	} else if (y <= -5.5e-198) {
		tmp = z + x;
	} else if (y <= 4.3e-165) {
		tmp = t_2;
	} else if (y <= 1.3e-33) {
		tmp = z + x;
	} else if (y <= 9.6e+27) {
		tmp = t_2;
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = (b - z) * y
	t_2 = (t - 2.0) * b
	tmp = 0
	if y <= -2e+174:
		tmp = t_1
	elif y <= -5.3e-134:
		tmp = (1.0 - t) * a
	elif y <= -5.5e-198:
		tmp = z + x
	elif y <= 4.3e-165:
		tmp = t_2
	elif y <= 1.3e-33:
		tmp = z + x
	elif y <= 9.6e+27:
		tmp = t_2
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(b - z) * y)
	t_2 = Float64(Float64(t - 2.0) * b)
	tmp = 0.0
	if (y <= -2e+174)
		tmp = t_1;
	elseif (y <= -5.3e-134)
		tmp = Float64(Float64(1.0 - t) * a);
	elseif (y <= -5.5e-198)
		tmp = Float64(z + x);
	elseif (y <= 4.3e-165)
		tmp = t_2;
	elseif (y <= 1.3e-33)
		tmp = Float64(z + x);
	elseif (y <= 9.6e+27)
		tmp = t_2;
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = (b - z) * y;
	t_2 = (t - 2.0) * b;
	tmp = 0.0;
	if (y <= -2e+174)
		tmp = t_1;
	elseif (y <= -5.3e-134)
		tmp = (1.0 - t) * a;
	elseif (y <= -5.5e-198)
		tmp = z + x;
	elseif (y <= 4.3e-165)
		tmp = t_2;
	elseif (y <= 1.3e-33)
		tmp = z + x;
	elseif (y <= 9.6e+27)
		tmp = t_2;
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - z), $MachinePrecision] * y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t - 2.0), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[y, -2e+174], t$95$1, If[LessEqual[y, -5.3e-134], N[(N[(1.0 - t), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y, -5.5e-198], N[(z + x), $MachinePrecision], If[LessEqual[y, 4.3e-165], t$95$2, If[LessEqual[y, 1.3e-33], N[(z + x), $MachinePrecision], If[LessEqual[y, 9.6e+27], t$95$2, t$95$1]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;y \leq -5.3 \cdot 10^{-134}:\\
\;\;\;\;\left(1 - t\right) \cdot a\\

\mathbf{elif}\;y \leq -5.5 \cdot 10^{-198}:\\
\;\;\;\;z + x\\

\mathbf{elif}\;y \leq 4.3 \cdot 10^{-165}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;y \leq 1.3 \cdot 10^{-33}:\\
\;\;\;\;z + x\\

\mathbf{elif}\;y \leq 9.6 \cdot 10^{+27}:\\
\;\;\;\;t\_2\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -2.00000000000000014e174 or 9.59999999999999991e27 < y

    1. Initial program 91.8%

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

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

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

        \[\leadsto \color{blue}{\left(b - z\right) \cdot y} \]
      3. lower--.f6476.0

        \[\leadsto \color{blue}{\left(b - z\right)} \cdot y \]
    5. Applied rewrites76.0%

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

    if -2.00000000000000014e174 < y < -5.30000000000000003e-134

    1. Initial program 93.7%

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

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

        \[\leadsto \color{blue}{\left(1 - t\right) \cdot a} \]
      2. sub-negN/A

        \[\leadsto \color{blue}{\left(1 + \left(\mathsf{neg}\left(t\right)\right)\right)} \cdot a \]
      3. metadata-evalN/A

        \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} + \left(\mathsf{neg}\left(t\right)\right)\right) \cdot a \]
      4. distribute-neg-inN/A

        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(-1 + t\right)\right)\right)} \cdot a \]
      5. +-commutativeN/A

        \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(t + -1\right)}\right)\right) \cdot a \]
      6. metadata-evalN/A

        \[\leadsto \left(\mathsf{neg}\left(\left(t + \color{blue}{\left(\mathsf{neg}\left(1\right)\right)}\right)\right)\right) \cdot a \]
      7. sub-negN/A

        \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(t - 1\right)}\right)\right) \cdot a \]
      8. mul-1-negN/A

        \[\leadsto \color{blue}{\left(-1 \cdot \left(t - 1\right)\right)} \cdot a \]
      9. lower-*.f64N/A

        \[\leadsto \color{blue}{\left(-1 \cdot \left(t - 1\right)\right) \cdot a} \]
      10. mul-1-negN/A

        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(t - 1\right)\right)\right)} \cdot a \]
      11. sub-negN/A

        \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}\right)\right) \cdot a \]
      12. metadata-evalN/A

        \[\leadsto \left(\mathsf{neg}\left(\left(t + \color{blue}{-1}\right)\right)\right) \cdot a \]
      13. +-commutativeN/A

        \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(-1 + t\right)}\right)\right) \cdot a \]
      14. distribute-neg-inN/A

        \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(-1\right)\right) + \left(\mathsf{neg}\left(t\right)\right)\right)} \cdot a \]
      15. metadata-evalN/A

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

        \[\leadsto \color{blue}{\left(1 - t\right)} \cdot a \]
      17. lower--.f6447.1

        \[\leadsto \color{blue}{\left(1 - t\right)} \cdot a \]
    5. Applied rewrites47.1%

      \[\leadsto \color{blue}{\left(1 - t\right) \cdot a} \]

    if -5.30000000000000003e-134 < y < -5.5000000000000001e-198 or 4.30000000000000007e-165 < y < 1.29999999999999997e-33

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto x + z \]
      3. Step-by-step derivation
        1. Applied rewrites59.6%

          \[\leadsto z + x \]

        if -5.5000000000000001e-198 < y < 4.30000000000000007e-165 or 1.29999999999999997e-33 < y < 9.59999999999999991e27

        1. Initial program 100.0%

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

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

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

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

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

            \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
          5. lower-+.f6459.3

            \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
        5. Applied rewrites59.3%

          \[\leadsto \color{blue}{\left(\left(y + t\right) - 2\right) \cdot b} \]
        6. Taylor expanded in y around 0

          \[\leadsto \left(t - 2\right) \cdot b \]
        7. Step-by-step derivation
          1. Applied rewrites55.7%

            \[\leadsto \left(t - 2\right) \cdot b \]
        8. Recombined 4 regimes into one program.
        9. Add Preprocessing

        Alternative 3: 34.0% accurate, 0.8× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(t - 2\right) \cdot b\\ \mathbf{if}\;y \leq -2.4 \cdot 10^{+209}:\\ \;\;\;\;\left(-y\right) \cdot z\\ \mathbf{elif}\;y \leq -2 \cdot 10^{+174}:\\ \;\;\;\;b \cdot y\\ \mathbf{elif}\;y \leq -1.02 \cdot 10^{-48}:\\ \;\;\;\;a + x\\ \mathbf{elif}\;y \leq 4.3 \cdot 10^{-165}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 1.3 \cdot 10^{-33}:\\ \;\;\;\;z + x\\ \mathbf{elif}\;y \leq 9.6 \cdot 10^{+27}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;b \cdot y\\ \end{array} \end{array} \]
        (FPCore (x y z t a b)
         :precision binary64
         (let* ((t_1 (* (- t 2.0) b)))
           (if (<= y -2.4e+209)
             (* (- y) z)
             (if (<= y -2e+174)
               (* b y)
               (if (<= y -1.02e-48)
                 (+ a x)
                 (if (<= y 4.3e-165)
                   t_1
                   (if (<= y 1.3e-33) (+ z x) (if (<= y 9.6e+27) t_1 (* b y)))))))))
        double code(double x, double y, double z, double t, double a, double b) {
        	double t_1 = (t - 2.0) * b;
        	double tmp;
        	if (y <= -2.4e+209) {
        		tmp = -y * z;
        	} else if (y <= -2e+174) {
        		tmp = b * y;
        	} else if (y <= -1.02e-48) {
        		tmp = a + x;
        	} else if (y <= 4.3e-165) {
        		tmp = t_1;
        	} else if (y <= 1.3e-33) {
        		tmp = z + x;
        	} else if (y <= 9.6e+27) {
        		tmp = t_1;
        	} else {
        		tmp = b * y;
        	}
        	return tmp;
        }
        
        real(8) function code(x, y, z, t, a, b)
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            real(8), intent (in) :: z
            real(8), intent (in) :: t
            real(8), intent (in) :: a
            real(8), intent (in) :: b
            real(8) :: t_1
            real(8) :: tmp
            t_1 = (t - 2.0d0) * b
            if (y <= (-2.4d+209)) then
                tmp = -y * z
            else if (y <= (-2d+174)) then
                tmp = b * y
            else if (y <= (-1.02d-48)) then
                tmp = a + x
            else if (y <= 4.3d-165) then
                tmp = t_1
            else if (y <= 1.3d-33) then
                tmp = z + x
            else if (y <= 9.6d+27) then
                tmp = t_1
            else
                tmp = b * y
            end if
            code = tmp
        end function
        
        public static double code(double x, double y, double z, double t, double a, double b) {
        	double t_1 = (t - 2.0) * b;
        	double tmp;
        	if (y <= -2.4e+209) {
        		tmp = -y * z;
        	} else if (y <= -2e+174) {
        		tmp = b * y;
        	} else if (y <= -1.02e-48) {
        		tmp = a + x;
        	} else if (y <= 4.3e-165) {
        		tmp = t_1;
        	} else if (y <= 1.3e-33) {
        		tmp = z + x;
        	} else if (y <= 9.6e+27) {
        		tmp = t_1;
        	} else {
        		tmp = b * y;
        	}
        	return tmp;
        }
        
        def code(x, y, z, t, a, b):
        	t_1 = (t - 2.0) * b
        	tmp = 0
        	if y <= -2.4e+209:
        		tmp = -y * z
        	elif y <= -2e+174:
        		tmp = b * y
        	elif y <= -1.02e-48:
        		tmp = a + x
        	elif y <= 4.3e-165:
        		tmp = t_1
        	elif y <= 1.3e-33:
        		tmp = z + x
        	elif y <= 9.6e+27:
        		tmp = t_1
        	else:
        		tmp = b * y
        	return tmp
        
        function code(x, y, z, t, a, b)
        	t_1 = Float64(Float64(t - 2.0) * b)
        	tmp = 0.0
        	if (y <= -2.4e+209)
        		tmp = Float64(Float64(-y) * z);
        	elseif (y <= -2e+174)
        		tmp = Float64(b * y);
        	elseif (y <= -1.02e-48)
        		tmp = Float64(a + x);
        	elseif (y <= 4.3e-165)
        		tmp = t_1;
        	elseif (y <= 1.3e-33)
        		tmp = Float64(z + x);
        	elseif (y <= 9.6e+27)
        		tmp = t_1;
        	else
        		tmp = Float64(b * y);
        	end
        	return tmp
        end
        
        function tmp_2 = code(x, y, z, t, a, b)
        	t_1 = (t - 2.0) * b;
        	tmp = 0.0;
        	if (y <= -2.4e+209)
        		tmp = -y * z;
        	elseif (y <= -2e+174)
        		tmp = b * y;
        	elseif (y <= -1.02e-48)
        		tmp = a + x;
        	elseif (y <= 4.3e-165)
        		tmp = t_1;
        	elseif (y <= 1.3e-33)
        		tmp = z + x;
        	elseif (y <= 9.6e+27)
        		tmp = t_1;
        	else
        		tmp = b * y;
        	end
        	tmp_2 = tmp;
        end
        
        code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - 2.0), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[y, -2.4e+209], N[((-y) * z), $MachinePrecision], If[LessEqual[y, -2e+174], N[(b * y), $MachinePrecision], If[LessEqual[y, -1.02e-48], N[(a + x), $MachinePrecision], If[LessEqual[y, 4.3e-165], t$95$1, If[LessEqual[y, 1.3e-33], N[(z + x), $MachinePrecision], If[LessEqual[y, 9.6e+27], t$95$1, N[(b * y), $MachinePrecision]]]]]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := \left(t - 2\right) \cdot b\\
        \mathbf{if}\;y \leq -2.4 \cdot 10^{+209}:\\
        \;\;\;\;\left(-y\right) \cdot z\\
        
        \mathbf{elif}\;y \leq -2 \cdot 10^{+174}:\\
        \;\;\;\;b \cdot y\\
        
        \mathbf{elif}\;y \leq -1.02 \cdot 10^{-48}:\\
        \;\;\;\;a + x\\
        
        \mathbf{elif}\;y \leq 4.3 \cdot 10^{-165}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;y \leq 1.3 \cdot 10^{-33}:\\
        \;\;\;\;z + x\\
        
        \mathbf{elif}\;y \leq 9.6 \cdot 10^{+27}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{else}:\\
        \;\;\;\;b \cdot y\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 5 regimes
        2. if y < -2.39999999999999996e209

          1. Initial program 88.2%

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

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

              \[\leadsto \color{blue}{\left(1 - y\right) \cdot z} \]
            2. sub-negN/A

              \[\leadsto \color{blue}{\left(1 + \left(\mathsf{neg}\left(y\right)\right)\right)} \cdot z \]
            3. metadata-evalN/A

              \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} + \left(\mathsf{neg}\left(y\right)\right)\right) \cdot z \]
            4. distribute-neg-inN/A

              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(-1 + y\right)\right)\right)} \cdot z \]
            5. +-commutativeN/A

              \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y + -1\right)}\right)\right) \cdot z \]
            6. metadata-evalN/A

              \[\leadsto \left(\mathsf{neg}\left(\left(y + \color{blue}{\left(\mathsf{neg}\left(1\right)\right)}\right)\right)\right) \cdot z \]
            7. sub-negN/A

              \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - 1\right)}\right)\right) \cdot z \]
            8. mul-1-negN/A

              \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z \]
            9. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right) \cdot z} \]
            10. sub-negN/A

              \[\leadsto \left(-1 \cdot \color{blue}{\left(y + \left(\mathsf{neg}\left(1\right)\right)\right)}\right) \cdot z \]
            11. metadata-evalN/A

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

              \[\leadsto \left(-1 \cdot \color{blue}{\left(-1 + y\right)}\right) \cdot z \]
            13. distribute-lft-inN/A

              \[\leadsto \color{blue}{\left(-1 \cdot -1 + -1 \cdot y\right)} \cdot z \]
            14. metadata-evalN/A

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

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

              \[\leadsto \color{blue}{\left(1 - y\right)} \cdot z \]
            17. lower--.f6460.4

              \[\leadsto \color{blue}{\left(1 - y\right)} \cdot z \]
          5. Applied rewrites60.4%

            \[\leadsto \color{blue}{\left(1 - y\right) \cdot z} \]
          6. Taylor expanded in y around inf

            \[\leadsto \left(-1 \cdot y\right) \cdot z \]
          7. Step-by-step derivation
            1. Applied rewrites60.4%

              \[\leadsto \left(-y\right) \cdot z \]

            if -2.39999999999999996e209 < y < -2.00000000000000014e174 or 9.59999999999999991e27 < y

            1. Initial program 92.5%

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

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

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

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

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

                \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
              5. lower-+.f6452.0

                \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
            5. Applied rewrites52.0%

              \[\leadsto \color{blue}{\left(\left(y + t\right) - 2\right) \cdot b} \]
            6. Taylor expanded in y around inf

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

                \[\leadsto b \cdot \color{blue}{y} \]

              if -2.00000000000000014e174 < y < -1.02000000000000005e-48

              1. Initial program 93.3%

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

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

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

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

                  \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(z \cdot \left(y - 1\right) + -1 \cdot a\right)}\right)\right) + \left(x + b \cdot \left(y - 2\right)\right) \]
                4. distribute-neg-inN/A

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

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

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

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

                  \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - 1\right) \cdot z}\right)\right) + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                9. distribute-lft-neg-inN/A

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

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

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

                  \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(y + \left(\mathsf{neg}\left(1\right)\right)\right)}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                13. metadata-evalN/A

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

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

                  \[\leadsto \mathsf{fma}\left(\color{blue}{-1 \cdot -1 + -1 \cdot y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                16. metadata-evalN/A

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

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

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

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

                  \[\leadsto \mathsf{fma}\left(1 - y, z, \color{blue}{a + \left(x + b \cdot \left(y - 2\right)\right)}\right) \]
              5. Applied rewrites57.9%

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

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

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

                  \[\leadsto a + x \]
                3. Step-by-step derivation
                  1. Applied rewrites33.3%

                    \[\leadsto a + x \]

                  if -1.02000000000000005e-48 < y < 4.30000000000000007e-165 or 1.29999999999999997e-33 < y < 9.59999999999999991e27

                  1. Initial program 98.9%

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

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

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

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

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

                      \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                    5. lower-+.f6450.6

                      \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                  5. Applied rewrites50.6%

                    \[\leadsto \color{blue}{\left(\left(y + t\right) - 2\right) \cdot b} \]
                  6. Taylor expanded in y around 0

                    \[\leadsto \left(t - 2\right) \cdot b \]
                  7. Step-by-step derivation
                    1. Applied rewrites48.3%

                      \[\leadsto \left(t - 2\right) \cdot b \]

                    if 4.30000000000000007e-165 < y < 1.29999999999999997e-33

                    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto x + z \]
                      3. Step-by-step derivation
                        1. Applied rewrites58.7%

                          \[\leadsto z + x \]
                      4. Recombined 5 regimes into one program.
                      5. Add Preprocessing

                      Alternative 4: 82.6% accurate, 1.0× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(1 - y, z, \mathsf{fma}\left(1 - t, a, x\right)\right)\\ \mathbf{if}\;t \leq -1.8 \cdot 10^{+30}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 2.95 \cdot 10^{+35}:\\ \;\;\;\;\mathsf{fma}\left(1 - y, z, \mathsf{fma}\left(y - 2, b, x\right) + a\right)\\ \mathbf{elif}\;t \leq 5.1 \cdot 10^{+182}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\left(b - a\right) \cdot t\\ \end{array} \end{array} \]
                      (FPCore (x y z t a b)
                       :precision binary64
                       (let* ((t_1 (fma (- 1.0 y) z (fma (- 1.0 t) a x))))
                         (if (<= t -1.8e+30)
                           t_1
                           (if (<= t 2.95e+35)
                             (fma (- 1.0 y) z (+ (fma (- y 2.0) b x) a))
                             (if (<= t 5.1e+182) t_1 (* (- b a) t))))))
                      double code(double x, double y, double z, double t, double a, double b) {
                      	double t_1 = fma((1.0 - y), z, fma((1.0 - t), a, x));
                      	double tmp;
                      	if (t <= -1.8e+30) {
                      		tmp = t_1;
                      	} else if (t <= 2.95e+35) {
                      		tmp = fma((1.0 - y), z, (fma((y - 2.0), b, x) + a));
                      	} else if (t <= 5.1e+182) {
                      		tmp = t_1;
                      	} else {
                      		tmp = (b - a) * t;
                      	}
                      	return tmp;
                      }
                      
                      function code(x, y, z, t, a, b)
                      	t_1 = fma(Float64(1.0 - y), z, fma(Float64(1.0 - t), a, x))
                      	tmp = 0.0
                      	if (t <= -1.8e+30)
                      		tmp = t_1;
                      	elseif (t <= 2.95e+35)
                      		tmp = fma(Float64(1.0 - y), z, Float64(fma(Float64(y - 2.0), b, x) + a));
                      	elseif (t <= 5.1e+182)
                      		tmp = t_1;
                      	else
                      		tmp = Float64(Float64(b - a) * t);
                      	end
                      	return tmp
                      end
                      
                      code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(1.0 - y), $MachinePrecision] * z + N[(N[(1.0 - t), $MachinePrecision] * a + x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.8e+30], t$95$1, If[LessEqual[t, 2.95e+35], N[(N[(1.0 - y), $MachinePrecision] * z + N[(N[(N[(y - 2.0), $MachinePrecision] * b + x), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.1e+182], t$95$1, N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision]]]]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      t_1 := \mathsf{fma}\left(1 - y, z, \mathsf{fma}\left(1 - t, a, x\right)\right)\\
                      \mathbf{if}\;t \leq -1.8 \cdot 10^{+30}:\\
                      \;\;\;\;t\_1\\
                      
                      \mathbf{elif}\;t \leq 2.95 \cdot 10^{+35}:\\
                      \;\;\;\;\mathsf{fma}\left(1 - y, z, \mathsf{fma}\left(y - 2, b, x\right) + a\right)\\
                      
                      \mathbf{elif}\;t \leq 5.1 \cdot 10^{+182}:\\
                      \;\;\;\;t\_1\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;\left(b - a\right) \cdot t\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 3 regimes
                      2. if t < -1.8000000000000001e30 or 2.94999999999999993e35 < t < 5.10000000000000009e182

                        1. Initial program 88.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \mathsf{fma}\left(1 - y, z, \color{blue}{\left(\mathsf{neg}\left(a \cdot \left(t - 1\right)\right)\right) + x}\right) \]
                        5. Applied rewrites73.7%

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

                        if -1.8000000000000001e30 < t < 2.94999999999999993e35

                        1. Initial program 98.6%

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

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

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

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

                            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(z \cdot \left(y - 1\right) + -1 \cdot a\right)}\right)\right) + \left(x + b \cdot \left(y - 2\right)\right) \]
                          4. distribute-neg-inN/A

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

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

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

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

                            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - 1\right) \cdot z}\right)\right) + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                          9. distribute-lft-neg-inN/A

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

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

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

                            \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(y + \left(\mathsf{neg}\left(1\right)\right)\right)}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                          13. metadata-evalN/A

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

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

                            \[\leadsto \mathsf{fma}\left(\color{blue}{-1 \cdot -1 + -1 \cdot y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                          16. metadata-evalN/A

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

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

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

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

                            \[\leadsto \mathsf{fma}\left(1 - y, z, \color{blue}{a + \left(x + b \cdot \left(y - 2\right)\right)}\right) \]
                        5. Applied rewrites97.3%

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

                        if 5.10000000000000009e182 < t

                        1. Initial program 100.0%

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

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

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

                            \[\leadsto \color{blue}{\left(b - a\right) \cdot t} \]
                          3. lower--.f6490.5

                            \[\leadsto \color{blue}{\left(b - a\right)} \cdot t \]
                        5. Applied rewrites90.5%

                          \[\leadsto \color{blue}{\left(b - a\right) \cdot t} \]
                      3. Recombined 3 regimes into one program.
                      4. Final simplification88.5%

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

                      Alternative 5: 61.2% accurate, 1.0× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(\left(t + y\right) - 2\right)\\ \mathbf{if}\;b \leq -1.15 \cdot 10^{+32}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq -1.08 \cdot 10^{-16}:\\ \;\;\;\;\mathsf{fma}\left(1 - t, a, z\right)\\ \mathbf{elif}\;b \leq -9 \cdot 10^{-184}:\\ \;\;\;\;\mathsf{fma}\left(1 - y, z, x\right)\\ \mathbf{elif}\;b \leq 4.25 \cdot 10^{+133}:\\ \;\;\;\;\mathsf{fma}\left(1 - t, a, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                      (FPCore (x y z t a b)
                       :precision binary64
                       (let* ((t_1 (* b (- (+ t y) 2.0))))
                         (if (<= b -1.15e+32)
                           t_1
                           (if (<= b -1.08e-16)
                             (fma (- 1.0 t) a z)
                             (if (<= b -9e-184)
                               (fma (- 1.0 y) z x)
                               (if (<= b 4.25e+133) (fma (- 1.0 t) a x) t_1))))))
                      double code(double x, double y, double z, double t, double a, double b) {
                      	double t_1 = b * ((t + y) - 2.0);
                      	double tmp;
                      	if (b <= -1.15e+32) {
                      		tmp = t_1;
                      	} else if (b <= -1.08e-16) {
                      		tmp = fma((1.0 - t), a, z);
                      	} else if (b <= -9e-184) {
                      		tmp = fma((1.0 - y), z, x);
                      	} else if (b <= 4.25e+133) {
                      		tmp = fma((1.0 - t), a, x);
                      	} else {
                      		tmp = t_1;
                      	}
                      	return tmp;
                      }
                      
                      function code(x, y, z, t, a, b)
                      	t_1 = Float64(b * Float64(Float64(t + y) - 2.0))
                      	tmp = 0.0
                      	if (b <= -1.15e+32)
                      		tmp = t_1;
                      	elseif (b <= -1.08e-16)
                      		tmp = fma(Float64(1.0 - t), a, z);
                      	elseif (b <= -9e-184)
                      		tmp = fma(Float64(1.0 - y), z, x);
                      	elseif (b <= 4.25e+133)
                      		tmp = fma(Float64(1.0 - t), a, x);
                      	else
                      		tmp = t_1;
                      	end
                      	return tmp
                      end
                      
                      code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.15e+32], t$95$1, If[LessEqual[b, -1.08e-16], N[(N[(1.0 - t), $MachinePrecision] * a + z), $MachinePrecision], If[LessEqual[b, -9e-184], N[(N[(1.0 - y), $MachinePrecision] * z + x), $MachinePrecision], If[LessEqual[b, 4.25e+133], N[(N[(1.0 - t), $MachinePrecision] * a + x), $MachinePrecision], t$95$1]]]]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      t_1 := b \cdot \left(\left(t + y\right) - 2\right)\\
                      \mathbf{if}\;b \leq -1.15 \cdot 10^{+32}:\\
                      \;\;\;\;t\_1\\
                      
                      \mathbf{elif}\;b \leq -1.08 \cdot 10^{-16}:\\
                      \;\;\;\;\mathsf{fma}\left(1 - t, a, z\right)\\
                      
                      \mathbf{elif}\;b \leq -9 \cdot 10^{-184}:\\
                      \;\;\;\;\mathsf{fma}\left(1 - y, z, x\right)\\
                      
                      \mathbf{elif}\;b \leq 4.25 \cdot 10^{+133}:\\
                      \;\;\;\;\mathsf{fma}\left(1 - t, a, x\right)\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;t\_1\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 4 regimes
                      2. if b < -1.15e32 or 4.25000000000000022e133 < b

                        1. Initial program 93.1%

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

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

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

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

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

                            \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                          5. lower-+.f6482.0

                            \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                        5. Applied rewrites82.0%

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

                        if -1.15e32 < b < -1.08e-16

                        1. Initial program 90.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \mathsf{fma}\left(1 - y, z, \color{blue}{\left(\mathsf{neg}\left(a \cdot \left(t - 1\right)\right)\right) + x}\right) \]
                        5. Applied rewrites90.9%

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

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

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

                            \[\leadsto z + a \cdot \color{blue}{\left(1 - t\right)} \]
                          3. Step-by-step derivation
                            1. Applied rewrites76.1%

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

                            if -1.08e-16 < b < -9.0000000000000003e-184

                            1. Initial program 100.0%

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

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

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

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

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

                              if -9.0000000000000003e-184 < b < 4.25000000000000022e133

                              1. Initial program 96.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \mathsf{fma}\left(1 - t, \color{blue}{a}, x\right) \]
                              8. Recombined 4 regimes into one program.
                              9. Final simplification70.0%

                                \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.15 \cdot 10^{+32}:\\ \;\;\;\;b \cdot \left(\left(t + y\right) - 2\right)\\ \mathbf{elif}\;b \leq -1.08 \cdot 10^{-16}:\\ \;\;\;\;\mathsf{fma}\left(1 - t, a, z\right)\\ \mathbf{elif}\;b \leq -9 \cdot 10^{-184}:\\ \;\;\;\;\mathsf{fma}\left(1 - y, z, x\right)\\ \mathbf{elif}\;b \leq 4.25 \cdot 10^{+133}:\\ \;\;\;\;\mathsf{fma}\left(1 - t, a, x\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(\left(t + y\right) - 2\right)\\ \end{array} \]
                              10. Add Preprocessing

                              Alternative 6: 56.7% accurate, 1.1× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(1 - y, z, x\right)\\ t_2 := \left(b - a\right) \cdot t\\ \mathbf{if}\;t \leq -8.6 \cdot 10^{+61}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq -2.4 \cdot 10^{-53}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 5.5 \cdot 10^{-20}:\\ \;\;\;\;\mathsf{fma}\left(y - 2, b, a\right)\\ \mathbf{elif}\;t \leq 2.6 \cdot 10^{+176}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                              (FPCore (x y z t a b)
                               :precision binary64
                               (let* ((t_1 (fma (- 1.0 y) z x)) (t_2 (* (- b a) t)))
                                 (if (<= t -8.6e+61)
                                   t_2
                                   (if (<= t -2.4e-53)
                                     t_1
                                     (if (<= t 5.5e-20) (fma (- y 2.0) b a) (if (<= t 2.6e+176) t_1 t_2))))))
                              double code(double x, double y, double z, double t, double a, double b) {
                              	double t_1 = fma((1.0 - y), z, x);
                              	double t_2 = (b - a) * t;
                              	double tmp;
                              	if (t <= -8.6e+61) {
                              		tmp = t_2;
                              	} else if (t <= -2.4e-53) {
                              		tmp = t_1;
                              	} else if (t <= 5.5e-20) {
                              		tmp = fma((y - 2.0), b, a);
                              	} else if (t <= 2.6e+176) {
                              		tmp = t_1;
                              	} else {
                              		tmp = t_2;
                              	}
                              	return tmp;
                              }
                              
                              function code(x, y, z, t, a, b)
                              	t_1 = fma(Float64(1.0 - y), z, x)
                              	t_2 = Float64(Float64(b - a) * t)
                              	tmp = 0.0
                              	if (t <= -8.6e+61)
                              		tmp = t_2;
                              	elseif (t <= -2.4e-53)
                              		tmp = t_1;
                              	elseif (t <= 5.5e-20)
                              		tmp = fma(Float64(y - 2.0), b, a);
                              	elseif (t <= 2.6e+176)
                              		tmp = t_1;
                              	else
                              		tmp = t_2;
                              	end
                              	return tmp
                              end
                              
                              code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(1.0 - y), $MachinePrecision] * z + x), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -8.6e+61], t$95$2, If[LessEqual[t, -2.4e-53], t$95$1, If[LessEqual[t, 5.5e-20], N[(N[(y - 2.0), $MachinePrecision] * b + a), $MachinePrecision], If[LessEqual[t, 2.6e+176], t$95$1, t$95$2]]]]]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              t_1 := \mathsf{fma}\left(1 - y, z, x\right)\\
                              t_2 := \left(b - a\right) \cdot t\\
                              \mathbf{if}\;t \leq -8.6 \cdot 10^{+61}:\\
                              \;\;\;\;t\_2\\
                              
                              \mathbf{elif}\;t \leq -2.4 \cdot 10^{-53}:\\
                              \;\;\;\;t\_1\\
                              
                              \mathbf{elif}\;t \leq 5.5 \cdot 10^{-20}:\\
                              \;\;\;\;\mathsf{fma}\left(y - 2, b, a\right)\\
                              
                              \mathbf{elif}\;t \leq 2.6 \cdot 10^{+176}:\\
                              \;\;\;\;t\_1\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;t\_2\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 3 regimes
                              2. if t < -8.6000000000000003e61 or 2.59999999999999991e176 < t

                                1. Initial program 90.9%

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

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

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

                                    \[\leadsto \color{blue}{\left(b - a\right) \cdot t} \]
                                  3. lower--.f6475.7

                                    \[\leadsto \color{blue}{\left(b - a\right)} \cdot t \]
                                5. Applied rewrites75.7%

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

                                if -8.6000000000000003e61 < t < -2.40000000000000007e-53 or 5.4999999999999996e-20 < t < 2.59999999999999991e176

                                1. Initial program 94.7%

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

                                  \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - z \cdot \left(y - 1\right)} \]
                                4. Applied rewrites84.7%

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

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

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

                                  if -2.40000000000000007e-53 < t < 5.4999999999999996e-20

                                  1. Initial program 98.4%

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

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

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

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

                                      \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(z \cdot \left(y - 1\right) + -1 \cdot a\right)}\right)\right) + \left(x + b \cdot \left(y - 2\right)\right) \]
                                    4. distribute-neg-inN/A

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

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

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

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

                                      \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - 1\right) \cdot z}\right)\right) + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                    9. distribute-lft-neg-inN/A

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

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

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

                                      \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(y + \left(\mathsf{neg}\left(1\right)\right)\right)}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                    13. metadata-evalN/A

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

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

                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-1 \cdot -1 + -1 \cdot y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                    16. metadata-evalN/A

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

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

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

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

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

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

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

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

                                      \[\leadsto a + b \cdot \color{blue}{\left(y - 2\right)} \]
                                    3. Step-by-step derivation
                                      1. Applied rewrites66.6%

                                        \[\leadsto \mathsf{fma}\left(y - 2, b, a\right) \]
                                    4. Recombined 3 regimes into one program.
                                    5. Add Preprocessing

                                    Alternative 7: 56.9% accurate, 1.1× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - a\right) \cdot t\\ \mathbf{if}\;t \leq -1.12 \cdot 10^{+74}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -3.15 \cdot 10^{-53}:\\ \;\;\;\;\mathsf{fma}\left(1 - t, a, x\right)\\ \mathbf{elif}\;t \leq 6.2 \cdot 10^{-52}:\\ \;\;\;\;\mathsf{fma}\left(y - 2, b, a\right)\\ \mathbf{elif}\;t \leq 4.9 \cdot 10^{+73}:\\ \;\;\;\;\mathsf{fma}\left(y - 2, b, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                    (FPCore (x y z t a b)
                                     :precision binary64
                                     (let* ((t_1 (* (- b a) t)))
                                       (if (<= t -1.12e+74)
                                         t_1
                                         (if (<= t -3.15e-53)
                                           (fma (- 1.0 t) a x)
                                           (if (<= t 6.2e-52)
                                             (fma (- y 2.0) b a)
                                             (if (<= t 4.9e+73) (fma (- y 2.0) b x) t_1))))))
                                    double code(double x, double y, double z, double t, double a, double b) {
                                    	double t_1 = (b - a) * t;
                                    	double tmp;
                                    	if (t <= -1.12e+74) {
                                    		tmp = t_1;
                                    	} else if (t <= -3.15e-53) {
                                    		tmp = fma((1.0 - t), a, x);
                                    	} else if (t <= 6.2e-52) {
                                    		tmp = fma((y - 2.0), b, a);
                                    	} else if (t <= 4.9e+73) {
                                    		tmp = fma((y - 2.0), b, x);
                                    	} else {
                                    		tmp = t_1;
                                    	}
                                    	return tmp;
                                    }
                                    
                                    function code(x, y, z, t, a, b)
                                    	t_1 = Float64(Float64(b - a) * t)
                                    	tmp = 0.0
                                    	if (t <= -1.12e+74)
                                    		tmp = t_1;
                                    	elseif (t <= -3.15e-53)
                                    		tmp = fma(Float64(1.0 - t), a, x);
                                    	elseif (t <= 6.2e-52)
                                    		tmp = fma(Float64(y - 2.0), b, a);
                                    	elseif (t <= 4.9e+73)
                                    		tmp = fma(Float64(y - 2.0), b, x);
                                    	else
                                    		tmp = t_1;
                                    	end
                                    	return tmp
                                    end
                                    
                                    code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -1.12e+74], t$95$1, If[LessEqual[t, -3.15e-53], N[(N[(1.0 - t), $MachinePrecision] * a + x), $MachinePrecision], If[LessEqual[t, 6.2e-52], N[(N[(y - 2.0), $MachinePrecision] * b + a), $MachinePrecision], If[LessEqual[t, 4.9e+73], N[(N[(y - 2.0), $MachinePrecision] * b + x), $MachinePrecision], t$95$1]]]]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    t_1 := \left(b - a\right) \cdot t\\
                                    \mathbf{if}\;t \leq -1.12 \cdot 10^{+74}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    \mathbf{elif}\;t \leq -3.15 \cdot 10^{-53}:\\
                                    \;\;\;\;\mathsf{fma}\left(1 - t, a, x\right)\\
                                    
                                    \mathbf{elif}\;t \leq 6.2 \cdot 10^{-52}:\\
                                    \;\;\;\;\mathsf{fma}\left(y - 2, b, a\right)\\
                                    
                                    \mathbf{elif}\;t \leq 4.9 \cdot 10^{+73}:\\
                                    \;\;\;\;\mathsf{fma}\left(y - 2, b, x\right)\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 4 regimes
                                    2. if t < -1.12000000000000003e74 or 4.8999999999999999e73 < t

                                      1. Initial program 90.7%

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

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

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

                                          \[\leadsto \color{blue}{\left(b - a\right) \cdot t} \]
                                        3. lower--.f6468.9

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

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

                                      if -1.12000000000000003e74 < t < -3.14999999999999989e-53

                                      1. Initial program 94.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        if -3.14999999999999989e-53 < t < 6.1999999999999998e-52

                                        1. Initial program 98.2%

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

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

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

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

                                            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(z \cdot \left(y - 1\right) + -1 \cdot a\right)}\right)\right) + \left(x + b \cdot \left(y - 2\right)\right) \]
                                          4. distribute-neg-inN/A

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

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

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

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

                                            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - 1\right) \cdot z}\right)\right) + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                          9. distribute-lft-neg-inN/A

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

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

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

                                            \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(y + \left(\mathsf{neg}\left(1\right)\right)\right)}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                          13. metadata-evalN/A

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

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

                                            \[\leadsto \mathsf{fma}\left(\color{blue}{-1 \cdot -1 + -1 \cdot y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                          16. metadata-evalN/A

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

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

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

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

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

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

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

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

                                            \[\leadsto a + b \cdot \color{blue}{\left(y - 2\right)} \]
                                          3. Step-by-step derivation
                                            1. Applied rewrites65.7%

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

                                            if 6.1999999999999998e-52 < t < 4.8999999999999999e73

                                            1. Initial program 100.0%

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

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

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

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

                                                \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(z \cdot \left(y - 1\right) + -1 \cdot a\right)}\right)\right) + \left(x + b \cdot \left(y - 2\right)\right) \]
                                              4. distribute-neg-inN/A

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

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

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

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

                                                \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - 1\right) \cdot z}\right)\right) + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                              9. distribute-lft-neg-inN/A

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

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

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

                                                \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(y + \left(\mathsf{neg}\left(1\right)\right)\right)}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                              13. metadata-evalN/A

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

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

                                                \[\leadsto \mathsf{fma}\left(\color{blue}{-1 \cdot -1 + -1 \cdot y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                              16. metadata-evalN/A

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

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

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

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

                                                \[\leadsto \mathsf{fma}\left(1 - y, z, \color{blue}{a + \left(x + b \cdot \left(y - 2\right)\right)}\right) \]
                                            5. Applied rewrites85.3%

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

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

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

                                                \[\leadsto x + b \cdot \color{blue}{\left(y - 2\right)} \]
                                              3. Step-by-step derivation
                                                1. Applied rewrites67.3%

                                                  \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) \]
                                              4. Recombined 4 regimes into one program.
                                              5. Add Preprocessing

                                              Alternative 8: 57.6% accurate, 1.1× speedup?

                                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y - 2, b, x\right)\\ t_2 := \left(b - a\right) \cdot t\\ \mathbf{if}\;t \leq -1.15 \cdot 10^{+30}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq -3.4 \cdot 10^{-117}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 6.2 \cdot 10^{-52}:\\ \;\;\;\;\mathsf{fma}\left(y - 2, b, a\right)\\ \mathbf{elif}\;t \leq 4.9 \cdot 10^{+73}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                                              (FPCore (x y z t a b)
                                               :precision binary64
                                               (let* ((t_1 (fma (- y 2.0) b x)) (t_2 (* (- b a) t)))
                                                 (if (<= t -1.15e+30)
                                                   t_2
                                                   (if (<= t -3.4e-117)
                                                     t_1
                                                     (if (<= t 6.2e-52) (fma (- y 2.0) b a) (if (<= t 4.9e+73) t_1 t_2))))))
                                              double code(double x, double y, double z, double t, double a, double b) {
                                              	double t_1 = fma((y - 2.0), b, x);
                                              	double t_2 = (b - a) * t;
                                              	double tmp;
                                              	if (t <= -1.15e+30) {
                                              		tmp = t_2;
                                              	} else if (t <= -3.4e-117) {
                                              		tmp = t_1;
                                              	} else if (t <= 6.2e-52) {
                                              		tmp = fma((y - 2.0), b, a);
                                              	} else if (t <= 4.9e+73) {
                                              		tmp = t_1;
                                              	} else {
                                              		tmp = t_2;
                                              	}
                                              	return tmp;
                                              }
                                              
                                              function code(x, y, z, t, a, b)
                                              	t_1 = fma(Float64(y - 2.0), b, x)
                                              	t_2 = Float64(Float64(b - a) * t)
                                              	tmp = 0.0
                                              	if (t <= -1.15e+30)
                                              		tmp = t_2;
                                              	elseif (t <= -3.4e-117)
                                              		tmp = t_1;
                                              	elseif (t <= 6.2e-52)
                                              		tmp = fma(Float64(y - 2.0), b, a);
                                              	elseif (t <= 4.9e+73)
                                              		tmp = t_1;
                                              	else
                                              		tmp = t_2;
                                              	end
                                              	return tmp
                                              end
                                              
                                              code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y - 2.0), $MachinePrecision] * b + x), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -1.15e+30], t$95$2, If[LessEqual[t, -3.4e-117], t$95$1, If[LessEqual[t, 6.2e-52], N[(N[(y - 2.0), $MachinePrecision] * b + a), $MachinePrecision], If[LessEqual[t, 4.9e+73], t$95$1, t$95$2]]]]]]
                                              
                                              \begin{array}{l}
                                              
                                              \\
                                              \begin{array}{l}
                                              t_1 := \mathsf{fma}\left(y - 2, b, x\right)\\
                                              t_2 := \left(b - a\right) \cdot t\\
                                              \mathbf{if}\;t \leq -1.15 \cdot 10^{+30}:\\
                                              \;\;\;\;t\_2\\
                                              
                                              \mathbf{elif}\;t \leq -3.4 \cdot 10^{-117}:\\
                                              \;\;\;\;t\_1\\
                                              
                                              \mathbf{elif}\;t \leq 6.2 \cdot 10^{-52}:\\
                                              \;\;\;\;\mathsf{fma}\left(y - 2, b, a\right)\\
                                              
                                              \mathbf{elif}\;t \leq 4.9 \cdot 10^{+73}:\\
                                              \;\;\;\;t\_1\\
                                              
                                              \mathbf{else}:\\
                                              \;\;\;\;t\_2\\
                                              
                                              
                                              \end{array}
                                              \end{array}
                                              
                                              Derivation
                                              1. Split input into 3 regimes
                                              2. if t < -1.15e30 or 4.8999999999999999e73 < t

                                                1. Initial program 90.7%

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

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

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

                                                    \[\leadsto \color{blue}{\left(b - a\right) \cdot t} \]
                                                  3. lower--.f6467.2

                                                    \[\leadsto \color{blue}{\left(b - a\right)} \cdot t \]
                                                5. Applied rewrites67.2%

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

                                                if -1.15e30 < t < -3.40000000000000035e-117 or 6.1999999999999998e-52 < t < 4.8999999999999999e73

                                                1. Initial program 98.0%

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

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

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

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

                                                    \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(z \cdot \left(y - 1\right) + -1 \cdot a\right)}\right)\right) + \left(x + b \cdot \left(y - 2\right)\right) \]
                                                  4. distribute-neg-inN/A

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

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

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

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

                                                    \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - 1\right) \cdot z}\right)\right) + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                  9. distribute-lft-neg-inN/A

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

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

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

                                                    \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(y + \left(\mathsf{neg}\left(1\right)\right)\right)}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                  13. metadata-evalN/A

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

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

                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{-1 \cdot -1 + -1 \cdot y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                  16. metadata-evalN/A

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

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

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

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

                                                    \[\leadsto \mathsf{fma}\left(1 - y, z, \color{blue}{a + \left(x + b \cdot \left(y - 2\right)\right)}\right) \]
                                                5. Applied rewrites92.0%

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

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

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

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

                                                      \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) \]

                                                    if -3.40000000000000035e-117 < t < 6.1999999999999998e-52

                                                    1. Initial program 99.0%

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

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

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

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

                                                        \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(z \cdot \left(y - 1\right) + -1 \cdot a\right)}\right)\right) + \left(x + b \cdot \left(y - 2\right)\right) \]
                                                      4. distribute-neg-inN/A

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

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

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

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

                                                        \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - 1\right) \cdot z}\right)\right) + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                      9. distribute-lft-neg-inN/A

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

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

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

                                                        \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(y + \left(\mathsf{neg}\left(1\right)\right)\right)}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                      13. metadata-evalN/A

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

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

                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{-1 \cdot -1 + -1 \cdot y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                      16. metadata-evalN/A

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

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

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

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

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

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

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

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

                                                        \[\leadsto a + b \cdot \color{blue}{\left(y - 2\right)} \]
                                                      3. Step-by-step derivation
                                                        1. Applied rewrites66.7%

                                                          \[\leadsto \mathsf{fma}\left(y - 2, b, a\right) \]
                                                      4. Recombined 3 regimes into one program.
                                                      5. Add Preprocessing

                                                      Alternative 9: 85.9% accurate, 1.1× speedup?

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

                                                        1. Initial program 93.1%

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

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

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

                                                        if -5.8000000000000001e31 < b < 3.39999999999999989e-135

                                                        1. Initial program 98.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                            \[\leadsto \mathsf{fma}\left(1 - y, z, \color{blue}{\left(\mathsf{neg}\left(a \cdot \left(t - 1\right)\right)\right) + x}\right) \]
                                                        5. Applied rewrites93.2%

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

                                                      Alternative 10: 56.1% accurate, 1.1× speedup?

                                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - z\right) \cdot y\\ t_2 := \left(b - a\right) \cdot t\\ \mathbf{if}\;t \leq -1.22 \cdot 10^{+61}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq -6.5 \cdot 10^{-62}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 1.18 \cdot 10^{-26}:\\ \;\;\;\;\mathsf{fma}\left(y - 2, b, a\right)\\ \mathbf{elif}\;t \leq 2 \cdot 10^{+97}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                                                      (FPCore (x y z t a b)
                                                       :precision binary64
                                                       (let* ((t_1 (* (- b z) y)) (t_2 (* (- b a) t)))
                                                         (if (<= t -1.22e+61)
                                                           t_2
                                                           (if (<= t -6.5e-62)
                                                             t_1
                                                             (if (<= t 1.18e-26) (fma (- y 2.0) b a) (if (<= t 2e+97) t_1 t_2))))))
                                                      double code(double x, double y, double z, double t, double a, double b) {
                                                      	double t_1 = (b - z) * y;
                                                      	double t_2 = (b - a) * t;
                                                      	double tmp;
                                                      	if (t <= -1.22e+61) {
                                                      		tmp = t_2;
                                                      	} else if (t <= -6.5e-62) {
                                                      		tmp = t_1;
                                                      	} else if (t <= 1.18e-26) {
                                                      		tmp = fma((y - 2.0), b, a);
                                                      	} else if (t <= 2e+97) {
                                                      		tmp = t_1;
                                                      	} else {
                                                      		tmp = t_2;
                                                      	}
                                                      	return tmp;
                                                      }
                                                      
                                                      function code(x, y, z, t, a, b)
                                                      	t_1 = Float64(Float64(b - z) * y)
                                                      	t_2 = Float64(Float64(b - a) * t)
                                                      	tmp = 0.0
                                                      	if (t <= -1.22e+61)
                                                      		tmp = t_2;
                                                      	elseif (t <= -6.5e-62)
                                                      		tmp = t_1;
                                                      	elseif (t <= 1.18e-26)
                                                      		tmp = fma(Float64(y - 2.0), b, a);
                                                      	elseif (t <= 2e+97)
                                                      		tmp = t_1;
                                                      	else
                                                      		tmp = t_2;
                                                      	end
                                                      	return tmp
                                                      end
                                                      
                                                      code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - z), $MachinePrecision] * y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -1.22e+61], t$95$2, If[LessEqual[t, -6.5e-62], t$95$1, If[LessEqual[t, 1.18e-26], N[(N[(y - 2.0), $MachinePrecision] * b + a), $MachinePrecision], If[LessEqual[t, 2e+97], t$95$1, t$95$2]]]]]]
                                                      
                                                      \begin{array}{l}
                                                      
                                                      \\
                                                      \begin{array}{l}
                                                      t_1 := \left(b - z\right) \cdot y\\
                                                      t_2 := \left(b - a\right) \cdot t\\
                                                      \mathbf{if}\;t \leq -1.22 \cdot 10^{+61}:\\
                                                      \;\;\;\;t\_2\\
                                                      
                                                      \mathbf{elif}\;t \leq -6.5 \cdot 10^{-62}:\\
                                                      \;\;\;\;t\_1\\
                                                      
                                                      \mathbf{elif}\;t \leq 1.18 \cdot 10^{-26}:\\
                                                      \;\;\;\;\mathsf{fma}\left(y - 2, b, a\right)\\
                                                      
                                                      \mathbf{elif}\;t \leq 2 \cdot 10^{+97}:\\
                                                      \;\;\;\;t\_1\\
                                                      
                                                      \mathbf{else}:\\
                                                      \;\;\;\;t\_2\\
                                                      
                                                      
                                                      \end{array}
                                                      \end{array}
                                                      
                                                      Derivation
                                                      1. Split input into 3 regimes
                                                      2. if t < -1.22e61 or 2.0000000000000001e97 < t

                                                        1. Initial program 90.6%

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

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

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

                                                            \[\leadsto \color{blue}{\left(b - a\right) \cdot t} \]
                                                          3. lower--.f6470.4

                                                            \[\leadsto \color{blue}{\left(b - a\right)} \cdot t \]
                                                        5. Applied rewrites70.4%

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

                                                        if -1.22e61 < t < -6.50000000000000026e-62 or 1.17999999999999996e-26 < t < 2.0000000000000001e97

                                                        1. Initial program 95.6%

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

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

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

                                                            \[\leadsto \color{blue}{\left(b - z\right) \cdot y} \]
                                                          3. lower--.f6455.1

                                                            \[\leadsto \color{blue}{\left(b - z\right)} \cdot y \]
                                                        5. Applied rewrites55.1%

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

                                                        if -6.50000000000000026e-62 < t < 1.17999999999999996e-26

                                                        1. Initial program 99.1%

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

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

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

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

                                                            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(z \cdot \left(y - 1\right) + -1 \cdot a\right)}\right)\right) + \left(x + b \cdot \left(y - 2\right)\right) \]
                                                          4. distribute-neg-inN/A

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

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

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

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

                                                            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - 1\right) \cdot z}\right)\right) + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                          9. distribute-lft-neg-inN/A

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

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

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

                                                            \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(y + \left(\mathsf{neg}\left(1\right)\right)\right)}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                          13. metadata-evalN/A

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

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

                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{-1 \cdot -1 + -1 \cdot y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                          16. metadata-evalN/A

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

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

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

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

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

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

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

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

                                                            \[\leadsto a + b \cdot \color{blue}{\left(y - 2\right)} \]
                                                          3. Step-by-step derivation
                                                            1. Applied rewrites66.3%

                                                              \[\leadsto \mathsf{fma}\left(y - 2, b, a\right) \]
                                                          4. Recombined 3 regimes into one program.
                                                          5. Add Preprocessing

                                                          Alternative 11: 66.8% accurate, 1.1× speedup?

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

                                                            1. Initial program 92.3%

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

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

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

                                                                \[\leadsto \color{blue}{\left(b - z\right) \cdot y} \]
                                                              3. lower--.f6481.2

                                                                \[\leadsto \color{blue}{\left(b - z\right)} \cdot y \]
                                                            5. Applied rewrites81.2%

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

                                                            if -2.00000000000000014e174 < y < -2.7999999999999999e-129

                                                            1. Initial program 93.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                              if -2.7999999999999999e-129 < y < 31000

                                                              1. Initial program 100.0%

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

                                                                \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - z \cdot \left(y - 1\right)} \]
                                                              4. Applied rewrites80.5%

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

                                                                \[\leadsto x + \color{blue}{\left(z + b \cdot \left(t - 2\right)\right)} \]
                                                              6. Step-by-step derivation
                                                                1. Applied rewrites78.5%

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

                                                                if 31000 < y

                                                                1. Initial program 91.9%

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

                                                                  \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - z \cdot \left(y - 1\right)} \]
                                                                4. Applied rewrites85.4%

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

                                                                  \[\leadsto \mathsf{fma}\left(b - z, y, b \cdot t\right) \]
                                                                6. Step-by-step derivation
                                                                  1. Applied rewrites75.9%

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

                                                                Alternative 12: 81.1% accurate, 1.2× speedup?

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

                                                                  1. Initial program 94.0%

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

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

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

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

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

                                                                      \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                                                                    5. lower-+.f6489.3

                                                                      \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                                                                  5. Applied rewrites89.3%

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

                                                                  if -8.0000000000000001e115 < b < 2.0500000000000002e134

                                                                  1. Initial program 95.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                Alternative 13: 33.1% accurate, 1.2× speedup?

                                                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -2.4 \cdot 10^{+209}:\\ \;\;\;\;\left(-y\right) \cdot z\\ \mathbf{elif}\;y \leq -2 \cdot 10^{+174}:\\ \;\;\;\;b \cdot y\\ \mathbf{elif}\;y \leq -6 \cdot 10^{-128}:\\ \;\;\;\;\left(-a\right) \cdot t\\ \mathbf{elif}\;y \leq 34000000:\\ \;\;\;\;z + x\\ \mathbf{else}:\\ \;\;\;\;b \cdot y\\ \end{array} \end{array} \]
                                                                (FPCore (x y z t a b)
                                                                 :precision binary64
                                                                 (if (<= y -2.4e+209)
                                                                   (* (- y) z)
                                                                   (if (<= y -2e+174)
                                                                     (* b y)
                                                                     (if (<= y -6e-128) (* (- a) t) (if (<= y 34000000.0) (+ z x) (* b y))))))
                                                                double code(double x, double y, double z, double t, double a, double b) {
                                                                	double tmp;
                                                                	if (y <= -2.4e+209) {
                                                                		tmp = -y * z;
                                                                	} else if (y <= -2e+174) {
                                                                		tmp = b * y;
                                                                	} else if (y <= -6e-128) {
                                                                		tmp = -a * t;
                                                                	} else if (y <= 34000000.0) {
                                                                		tmp = z + x;
                                                                	} else {
                                                                		tmp = b * y;
                                                                	}
                                                                	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 (y <= (-2.4d+209)) then
                                                                        tmp = -y * z
                                                                    else if (y <= (-2d+174)) then
                                                                        tmp = b * y
                                                                    else if (y <= (-6d-128)) then
                                                                        tmp = -a * t
                                                                    else if (y <= 34000000.0d0) then
                                                                        tmp = z + x
                                                                    else
                                                                        tmp = b * y
                                                                    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 (y <= -2.4e+209) {
                                                                		tmp = -y * z;
                                                                	} else if (y <= -2e+174) {
                                                                		tmp = b * y;
                                                                	} else if (y <= -6e-128) {
                                                                		tmp = -a * t;
                                                                	} else if (y <= 34000000.0) {
                                                                		tmp = z + x;
                                                                	} else {
                                                                		tmp = b * y;
                                                                	}
                                                                	return tmp;
                                                                }
                                                                
                                                                def code(x, y, z, t, a, b):
                                                                	tmp = 0
                                                                	if y <= -2.4e+209:
                                                                		tmp = -y * z
                                                                	elif y <= -2e+174:
                                                                		tmp = b * y
                                                                	elif y <= -6e-128:
                                                                		tmp = -a * t
                                                                	elif y <= 34000000.0:
                                                                		tmp = z + x
                                                                	else:
                                                                		tmp = b * y
                                                                	return tmp
                                                                
                                                                function code(x, y, z, t, a, b)
                                                                	tmp = 0.0
                                                                	if (y <= -2.4e+209)
                                                                		tmp = Float64(Float64(-y) * z);
                                                                	elseif (y <= -2e+174)
                                                                		tmp = Float64(b * y);
                                                                	elseif (y <= -6e-128)
                                                                		tmp = Float64(Float64(-a) * t);
                                                                	elseif (y <= 34000000.0)
                                                                		tmp = Float64(z + x);
                                                                	else
                                                                		tmp = Float64(b * y);
                                                                	end
                                                                	return tmp
                                                                end
                                                                
                                                                function tmp_2 = code(x, y, z, t, a, b)
                                                                	tmp = 0.0;
                                                                	if (y <= -2.4e+209)
                                                                		tmp = -y * z;
                                                                	elseif (y <= -2e+174)
                                                                		tmp = b * y;
                                                                	elseif (y <= -6e-128)
                                                                		tmp = -a * t;
                                                                	elseif (y <= 34000000.0)
                                                                		tmp = z + x;
                                                                	else
                                                                		tmp = b * y;
                                                                	end
                                                                	tmp_2 = tmp;
                                                                end
                                                                
                                                                code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -2.4e+209], N[((-y) * z), $MachinePrecision], If[LessEqual[y, -2e+174], N[(b * y), $MachinePrecision], If[LessEqual[y, -6e-128], N[((-a) * t), $MachinePrecision], If[LessEqual[y, 34000000.0], N[(z + x), $MachinePrecision], N[(b * y), $MachinePrecision]]]]]
                                                                
                                                                \begin{array}{l}
                                                                
                                                                \\
                                                                \begin{array}{l}
                                                                \mathbf{if}\;y \leq -2.4 \cdot 10^{+209}:\\
                                                                \;\;\;\;\left(-y\right) \cdot z\\
                                                                
                                                                \mathbf{elif}\;y \leq -2 \cdot 10^{+174}:\\
                                                                \;\;\;\;b \cdot y\\
                                                                
                                                                \mathbf{elif}\;y \leq -6 \cdot 10^{-128}:\\
                                                                \;\;\;\;\left(-a\right) \cdot t\\
                                                                
                                                                \mathbf{elif}\;y \leq 34000000:\\
                                                                \;\;\;\;z + x\\
                                                                
                                                                \mathbf{else}:\\
                                                                \;\;\;\;b \cdot y\\
                                                                
                                                                
                                                                \end{array}
                                                                \end{array}
                                                                
                                                                Derivation
                                                                1. Split input into 4 regimes
                                                                2. if y < -2.39999999999999996e209

                                                                  1. Initial program 88.2%

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

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

                                                                      \[\leadsto \color{blue}{\left(1 - y\right) \cdot z} \]
                                                                    2. sub-negN/A

                                                                      \[\leadsto \color{blue}{\left(1 + \left(\mathsf{neg}\left(y\right)\right)\right)} \cdot z \]
                                                                    3. metadata-evalN/A

                                                                      \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} + \left(\mathsf{neg}\left(y\right)\right)\right) \cdot z \]
                                                                    4. distribute-neg-inN/A

                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(-1 + y\right)\right)\right)} \cdot z \]
                                                                    5. +-commutativeN/A

                                                                      \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y + -1\right)}\right)\right) \cdot z \]
                                                                    6. metadata-evalN/A

                                                                      \[\leadsto \left(\mathsf{neg}\left(\left(y + \color{blue}{\left(\mathsf{neg}\left(1\right)\right)}\right)\right)\right) \cdot z \]
                                                                    7. sub-negN/A

                                                                      \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - 1\right)}\right)\right) \cdot z \]
                                                                    8. mul-1-negN/A

                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z \]
                                                                    9. lower-*.f64N/A

                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right) \cdot z} \]
                                                                    10. sub-negN/A

                                                                      \[\leadsto \left(-1 \cdot \color{blue}{\left(y + \left(\mathsf{neg}\left(1\right)\right)\right)}\right) \cdot z \]
                                                                    11. metadata-evalN/A

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

                                                                      \[\leadsto \left(-1 \cdot \color{blue}{\left(-1 + y\right)}\right) \cdot z \]
                                                                    13. distribute-lft-inN/A

                                                                      \[\leadsto \color{blue}{\left(-1 \cdot -1 + -1 \cdot y\right)} \cdot z \]
                                                                    14. metadata-evalN/A

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

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

                                                                      \[\leadsto \color{blue}{\left(1 - y\right)} \cdot z \]
                                                                    17. lower--.f6460.4

                                                                      \[\leadsto \color{blue}{\left(1 - y\right)} \cdot z \]
                                                                  5. Applied rewrites60.4%

                                                                    \[\leadsto \color{blue}{\left(1 - y\right) \cdot z} \]
                                                                  6. Taylor expanded in y around inf

                                                                    \[\leadsto \left(-1 \cdot y\right) \cdot z \]
                                                                  7. Step-by-step derivation
                                                                    1. Applied rewrites60.4%

                                                                      \[\leadsto \left(-y\right) \cdot z \]

                                                                    if -2.39999999999999996e209 < y < -2.00000000000000014e174 or 3.4e7 < y

                                                                    1. Initial program 92.8%

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

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

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

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

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

                                                                        \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                                                                      5. lower-+.f6452.5

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

                                                                      \[\leadsto \color{blue}{\left(\left(y + t\right) - 2\right) \cdot b} \]
                                                                    6. Taylor expanded in y around inf

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

                                                                        \[\leadsto b \cdot \color{blue}{y} \]

                                                                      if -2.00000000000000014e174 < y < -5.99999999999999956e-128

                                                                      1. Initial program 93.4%

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

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

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

                                                                          \[\leadsto \color{blue}{\left(b - a\right) \cdot t} \]
                                                                        3. lower--.f6446.6

                                                                          \[\leadsto \color{blue}{\left(b - a\right)} \cdot t \]
                                                                      5. Applied rewrites46.6%

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

                                                                        \[\leadsto \left(-1 \cdot a\right) \cdot t \]
                                                                      7. Step-by-step derivation
                                                                        1. Applied rewrites33.6%

                                                                          \[\leadsto \left(-a\right) \cdot t \]

                                                                        if -5.99999999999999956e-128 < y < 3.4e7

                                                                        1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                            \[\leadsto \mathsf{fma}\left(1 - y, z, \color{blue}{\left(\mathsf{neg}\left(a \cdot \left(t - 1\right)\right)\right) + x}\right) \]
                                                                        5. Applied rewrites58.2%

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

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

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

                                                                            \[\leadsto x + z \]
                                                                          3. Step-by-step derivation
                                                                            1. Applied rewrites37.0%

                                                                              \[\leadsto z + x \]
                                                                          4. Recombined 4 regimes into one program.
                                                                          5. Add Preprocessing

                                                                          Alternative 14: 35.8% accurate, 1.2× speedup?

                                                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -2.4 \cdot 10^{+209}:\\ \;\;\;\;\left(-y\right) \cdot z\\ \mathbf{elif}\;y \leq -2 \cdot 10^{+174}:\\ \;\;\;\;b \cdot y\\ \mathbf{elif}\;y \leq -4.5 \cdot 10^{-62}:\\ \;\;\;\;a + x\\ \mathbf{elif}\;y \leq 34000000:\\ \;\;\;\;z + x\\ \mathbf{else}:\\ \;\;\;\;b \cdot y\\ \end{array} \end{array} \]
                                                                          (FPCore (x y z t a b)
                                                                           :precision binary64
                                                                           (if (<= y -2.4e+209)
                                                                             (* (- y) z)
                                                                             (if (<= y -2e+174)
                                                                               (* b y)
                                                                               (if (<= y -4.5e-62) (+ a x) (if (<= y 34000000.0) (+ z x) (* b y))))))
                                                                          double code(double x, double y, double z, double t, double a, double b) {
                                                                          	double tmp;
                                                                          	if (y <= -2.4e+209) {
                                                                          		tmp = -y * z;
                                                                          	} else if (y <= -2e+174) {
                                                                          		tmp = b * y;
                                                                          	} else if (y <= -4.5e-62) {
                                                                          		tmp = a + x;
                                                                          	} else if (y <= 34000000.0) {
                                                                          		tmp = z + x;
                                                                          	} else {
                                                                          		tmp = b * y;
                                                                          	}
                                                                          	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 (y <= (-2.4d+209)) then
                                                                                  tmp = -y * z
                                                                              else if (y <= (-2d+174)) then
                                                                                  tmp = b * y
                                                                              else if (y <= (-4.5d-62)) then
                                                                                  tmp = a + x
                                                                              else if (y <= 34000000.0d0) then
                                                                                  tmp = z + x
                                                                              else
                                                                                  tmp = b * y
                                                                              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 (y <= -2.4e+209) {
                                                                          		tmp = -y * z;
                                                                          	} else if (y <= -2e+174) {
                                                                          		tmp = b * y;
                                                                          	} else if (y <= -4.5e-62) {
                                                                          		tmp = a + x;
                                                                          	} else if (y <= 34000000.0) {
                                                                          		tmp = z + x;
                                                                          	} else {
                                                                          		tmp = b * y;
                                                                          	}
                                                                          	return tmp;
                                                                          }
                                                                          
                                                                          def code(x, y, z, t, a, b):
                                                                          	tmp = 0
                                                                          	if y <= -2.4e+209:
                                                                          		tmp = -y * z
                                                                          	elif y <= -2e+174:
                                                                          		tmp = b * y
                                                                          	elif y <= -4.5e-62:
                                                                          		tmp = a + x
                                                                          	elif y <= 34000000.0:
                                                                          		tmp = z + x
                                                                          	else:
                                                                          		tmp = b * y
                                                                          	return tmp
                                                                          
                                                                          function code(x, y, z, t, a, b)
                                                                          	tmp = 0.0
                                                                          	if (y <= -2.4e+209)
                                                                          		tmp = Float64(Float64(-y) * z);
                                                                          	elseif (y <= -2e+174)
                                                                          		tmp = Float64(b * y);
                                                                          	elseif (y <= -4.5e-62)
                                                                          		tmp = Float64(a + x);
                                                                          	elseif (y <= 34000000.0)
                                                                          		tmp = Float64(z + x);
                                                                          	else
                                                                          		tmp = Float64(b * y);
                                                                          	end
                                                                          	return tmp
                                                                          end
                                                                          
                                                                          function tmp_2 = code(x, y, z, t, a, b)
                                                                          	tmp = 0.0;
                                                                          	if (y <= -2.4e+209)
                                                                          		tmp = -y * z;
                                                                          	elseif (y <= -2e+174)
                                                                          		tmp = b * y;
                                                                          	elseif (y <= -4.5e-62)
                                                                          		tmp = a + x;
                                                                          	elseif (y <= 34000000.0)
                                                                          		tmp = z + x;
                                                                          	else
                                                                          		tmp = b * y;
                                                                          	end
                                                                          	tmp_2 = tmp;
                                                                          end
                                                                          
                                                                          code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -2.4e+209], N[((-y) * z), $MachinePrecision], If[LessEqual[y, -2e+174], N[(b * y), $MachinePrecision], If[LessEqual[y, -4.5e-62], N[(a + x), $MachinePrecision], If[LessEqual[y, 34000000.0], N[(z + x), $MachinePrecision], N[(b * y), $MachinePrecision]]]]]
                                                                          
                                                                          \begin{array}{l}
                                                                          
                                                                          \\
                                                                          \begin{array}{l}
                                                                          \mathbf{if}\;y \leq -2.4 \cdot 10^{+209}:\\
                                                                          \;\;\;\;\left(-y\right) \cdot z\\
                                                                          
                                                                          \mathbf{elif}\;y \leq -2 \cdot 10^{+174}:\\
                                                                          \;\;\;\;b \cdot y\\
                                                                          
                                                                          \mathbf{elif}\;y \leq -4.5 \cdot 10^{-62}:\\
                                                                          \;\;\;\;a + x\\
                                                                          
                                                                          \mathbf{elif}\;y \leq 34000000:\\
                                                                          \;\;\;\;z + x\\
                                                                          
                                                                          \mathbf{else}:\\
                                                                          \;\;\;\;b \cdot y\\
                                                                          
                                                                          
                                                                          \end{array}
                                                                          \end{array}
                                                                          
                                                                          Derivation
                                                                          1. Split input into 4 regimes
                                                                          2. if y < -2.39999999999999996e209

                                                                            1. Initial program 88.2%

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

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

                                                                                \[\leadsto \color{blue}{\left(1 - y\right) \cdot z} \]
                                                                              2. sub-negN/A

                                                                                \[\leadsto \color{blue}{\left(1 + \left(\mathsf{neg}\left(y\right)\right)\right)} \cdot z \]
                                                                              3. metadata-evalN/A

                                                                                \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} + \left(\mathsf{neg}\left(y\right)\right)\right) \cdot z \]
                                                                              4. distribute-neg-inN/A

                                                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(-1 + y\right)\right)\right)} \cdot z \]
                                                                              5. +-commutativeN/A

                                                                                \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y + -1\right)}\right)\right) \cdot z \]
                                                                              6. metadata-evalN/A

                                                                                \[\leadsto \left(\mathsf{neg}\left(\left(y + \color{blue}{\left(\mathsf{neg}\left(1\right)\right)}\right)\right)\right) \cdot z \]
                                                                              7. sub-negN/A

                                                                                \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - 1\right)}\right)\right) \cdot z \]
                                                                              8. mul-1-negN/A

                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z \]
                                                                              9. lower-*.f64N/A

                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right) \cdot z} \]
                                                                              10. sub-negN/A

                                                                                \[\leadsto \left(-1 \cdot \color{blue}{\left(y + \left(\mathsf{neg}\left(1\right)\right)\right)}\right) \cdot z \]
                                                                              11. metadata-evalN/A

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

                                                                                \[\leadsto \left(-1 \cdot \color{blue}{\left(-1 + y\right)}\right) \cdot z \]
                                                                              13. distribute-lft-inN/A

                                                                                \[\leadsto \color{blue}{\left(-1 \cdot -1 + -1 \cdot y\right)} \cdot z \]
                                                                              14. metadata-evalN/A

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

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

                                                                                \[\leadsto \color{blue}{\left(1 - y\right)} \cdot z \]
                                                                              17. lower--.f6460.4

                                                                                \[\leadsto \color{blue}{\left(1 - y\right)} \cdot z \]
                                                                            5. Applied rewrites60.4%

                                                                              \[\leadsto \color{blue}{\left(1 - y\right) \cdot z} \]
                                                                            6. Taylor expanded in y around inf

                                                                              \[\leadsto \left(-1 \cdot y\right) \cdot z \]
                                                                            7. Step-by-step derivation
                                                                              1. Applied rewrites60.4%

                                                                                \[\leadsto \left(-y\right) \cdot z \]

                                                                              if -2.39999999999999996e209 < y < -2.00000000000000014e174 or 3.4e7 < y

                                                                              1. Initial program 92.8%

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

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

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

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

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

                                                                                  \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                                                                                5. lower-+.f6452.5

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

                                                                                \[\leadsto \color{blue}{\left(\left(y + t\right) - 2\right) \cdot b} \]
                                                                              6. Taylor expanded in y around inf

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

                                                                                  \[\leadsto b \cdot \color{blue}{y} \]

                                                                                if -2.00000000000000014e174 < y < -4.50000000000000018e-62

                                                                                1. Initial program 93.6%

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

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

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

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

                                                                                    \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(z \cdot \left(y - 1\right) + -1 \cdot a\right)}\right)\right) + \left(x + b \cdot \left(y - 2\right)\right) \]
                                                                                  4. distribute-neg-inN/A

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

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

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

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

                                                                                    \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - 1\right) \cdot z}\right)\right) + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                  9. distribute-lft-neg-inN/A

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

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

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

                                                                                    \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(y + \left(\mathsf{neg}\left(1\right)\right)\right)}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                  13. metadata-evalN/A

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

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

                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{-1 \cdot -1 + -1 \cdot y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                  16. metadata-evalN/A

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

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

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

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

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

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

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

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

                                                                                    \[\leadsto a + x \]
                                                                                  3. Step-by-step derivation
                                                                                    1. Applied rewrites32.0%

                                                                                      \[\leadsto a + x \]

                                                                                    if -4.50000000000000018e-62 < y < 3.4e7

                                                                                    1. Initial program 99.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                        \[\leadsto \mathsf{fma}\left(1 - y, z, \color{blue}{\left(\mathsf{neg}\left(a \cdot \left(t - 1\right)\right)\right) + x}\right) \]
                                                                                    5. Applied rewrites60.0%

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

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

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

                                                                                        \[\leadsto x + z \]
                                                                                      3. Step-by-step derivation
                                                                                        1. Applied rewrites35.2%

                                                                                          \[\leadsto z + x \]
                                                                                      4. Recombined 4 regimes into one program.
                                                                                      5. Add Preprocessing

                                                                                      Alternative 15: 38.3% accurate, 1.4× speedup?

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

                                                                                        1. Initial program 87.7%

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

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

                                                                                            \[\leadsto \color{blue}{\left(1 - t\right) \cdot a} \]
                                                                                          2. sub-negN/A

                                                                                            \[\leadsto \color{blue}{\left(1 + \left(\mathsf{neg}\left(t\right)\right)\right)} \cdot a \]
                                                                                          3. metadata-evalN/A

                                                                                            \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} + \left(\mathsf{neg}\left(t\right)\right)\right) \cdot a \]
                                                                                          4. distribute-neg-inN/A

                                                                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(-1 + t\right)\right)\right)} \cdot a \]
                                                                                          5. +-commutativeN/A

                                                                                            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(t + -1\right)}\right)\right) \cdot a \]
                                                                                          6. metadata-evalN/A

                                                                                            \[\leadsto \left(\mathsf{neg}\left(\left(t + \color{blue}{\left(\mathsf{neg}\left(1\right)\right)}\right)\right)\right) \cdot a \]
                                                                                          7. sub-negN/A

                                                                                            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(t - 1\right)}\right)\right) \cdot a \]
                                                                                          8. mul-1-negN/A

                                                                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(t - 1\right)\right)} \cdot a \]
                                                                                          9. lower-*.f64N/A

                                                                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(t - 1\right)\right) \cdot a} \]
                                                                                          10. mul-1-negN/A

                                                                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(t - 1\right)\right)\right)} \cdot a \]
                                                                                          11. sub-negN/A

                                                                                            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}\right)\right) \cdot a \]
                                                                                          12. metadata-evalN/A

                                                                                            \[\leadsto \left(\mathsf{neg}\left(\left(t + \color{blue}{-1}\right)\right)\right) \cdot a \]
                                                                                          13. +-commutativeN/A

                                                                                            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(-1 + t\right)}\right)\right) \cdot a \]
                                                                                          14. distribute-neg-inN/A

                                                                                            \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(-1\right)\right) + \left(\mathsf{neg}\left(t\right)\right)\right)} \cdot a \]
                                                                                          15. metadata-evalN/A

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

                                                                                            \[\leadsto \color{blue}{\left(1 - t\right)} \cdot a \]
                                                                                          17. lower--.f6480.0

                                                                                            \[\leadsto \color{blue}{\left(1 - t\right)} \cdot a \]
                                                                                        5. Applied rewrites80.0%

                                                                                          \[\leadsto \color{blue}{\left(1 - t\right) \cdot a} \]

                                                                                        if -9.5000000000000004e129 < a < 1.4000000000000001e-202

                                                                                        1. Initial program 99.2%

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

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

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

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

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

                                                                                            \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                                                                                          5. lower-+.f6455.5

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

                                                                                          \[\leadsto \color{blue}{\left(\left(y + t\right) - 2\right) \cdot b} \]
                                                                                        6. Taylor expanded in t around 0

                                                                                          \[\leadsto \left(y - 2\right) \cdot b \]
                                                                                        7. Step-by-step derivation
                                                                                          1. Applied rewrites43.1%

                                                                                            \[\leadsto \left(y - 2\right) \cdot b \]

                                                                                          if 1.4000000000000001e-202 < a < 1.39999999999999999e94

                                                                                          1. Initial program 95.5%

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

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

                                                                                              \[\leadsto \color{blue}{\left(1 - y\right) \cdot z} \]
                                                                                            2. sub-negN/A

                                                                                              \[\leadsto \color{blue}{\left(1 + \left(\mathsf{neg}\left(y\right)\right)\right)} \cdot z \]
                                                                                            3. metadata-evalN/A

                                                                                              \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} + \left(\mathsf{neg}\left(y\right)\right)\right) \cdot z \]
                                                                                            4. distribute-neg-inN/A

                                                                                              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(-1 + y\right)\right)\right)} \cdot z \]
                                                                                            5. +-commutativeN/A

                                                                                              \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y + -1\right)}\right)\right) \cdot z \]
                                                                                            6. metadata-evalN/A

                                                                                              \[\leadsto \left(\mathsf{neg}\left(\left(y + \color{blue}{\left(\mathsf{neg}\left(1\right)\right)}\right)\right)\right) \cdot z \]
                                                                                            7. sub-negN/A

                                                                                              \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - 1\right)}\right)\right) \cdot z \]
                                                                                            8. mul-1-negN/A

                                                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z \]
                                                                                            9. lower-*.f64N/A

                                                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right) \cdot z} \]
                                                                                            10. sub-negN/A

                                                                                              \[\leadsto \left(-1 \cdot \color{blue}{\left(y + \left(\mathsf{neg}\left(1\right)\right)\right)}\right) \cdot z \]
                                                                                            11. metadata-evalN/A

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

                                                                                              \[\leadsto \left(-1 \cdot \color{blue}{\left(-1 + y\right)}\right) \cdot z \]
                                                                                            13. distribute-lft-inN/A

                                                                                              \[\leadsto \color{blue}{\left(-1 \cdot -1 + -1 \cdot y\right)} \cdot z \]
                                                                                            14. metadata-evalN/A

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

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

                                                                                              \[\leadsto \color{blue}{\left(1 - y\right)} \cdot z \]
                                                                                            17. lower--.f6441.8

                                                                                              \[\leadsto \color{blue}{\left(1 - y\right)} \cdot z \]
                                                                                          5. Applied rewrites41.8%

                                                                                            \[\leadsto \color{blue}{\left(1 - y\right) \cdot z} \]
                                                                                        8. Recombined 3 regimes into one program.
                                                                                        9. Add Preprocessing

                                                                                        Alternative 16: 37.7% accurate, 1.4× speedup?

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

                                                                                          1. Initial program 90.2%

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

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

                                                                                              \[\leadsto \color{blue}{\left(1 - t\right) \cdot a} \]
                                                                                            2. sub-negN/A

                                                                                              \[\leadsto \color{blue}{\left(1 + \left(\mathsf{neg}\left(t\right)\right)\right)} \cdot a \]
                                                                                            3. metadata-evalN/A

                                                                                              \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} + \left(\mathsf{neg}\left(t\right)\right)\right) \cdot a \]
                                                                                            4. distribute-neg-inN/A

                                                                                              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(-1 + t\right)\right)\right)} \cdot a \]
                                                                                            5. +-commutativeN/A

                                                                                              \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(t + -1\right)}\right)\right) \cdot a \]
                                                                                            6. metadata-evalN/A

                                                                                              \[\leadsto \left(\mathsf{neg}\left(\left(t + \color{blue}{\left(\mathsf{neg}\left(1\right)\right)}\right)\right)\right) \cdot a \]
                                                                                            7. sub-negN/A

                                                                                              \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(t - 1\right)}\right)\right) \cdot a \]
                                                                                            8. mul-1-negN/A

                                                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(t - 1\right)\right)} \cdot a \]
                                                                                            9. lower-*.f64N/A

                                                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(t - 1\right)\right) \cdot a} \]
                                                                                            10. mul-1-negN/A

                                                                                              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(t - 1\right)\right)\right)} \cdot a \]
                                                                                            11. sub-negN/A

                                                                                              \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}\right)\right) \cdot a \]
                                                                                            12. metadata-evalN/A

                                                                                              \[\leadsto \left(\mathsf{neg}\left(\left(t + \color{blue}{-1}\right)\right)\right) \cdot a \]
                                                                                            13. +-commutativeN/A

                                                                                              \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(-1 + t\right)}\right)\right) \cdot a \]
                                                                                            14. distribute-neg-inN/A

                                                                                              \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(-1\right)\right) + \left(\mathsf{neg}\left(t\right)\right)\right)} \cdot a \]
                                                                                            15. metadata-evalN/A

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

                                                                                              \[\leadsto \color{blue}{\left(1 - t\right)} \cdot a \]
                                                                                            17. lower--.f6468.8

                                                                                              \[\leadsto \color{blue}{\left(1 - t\right)} \cdot a \]
                                                                                          5. Applied rewrites68.8%

                                                                                            \[\leadsto \color{blue}{\left(1 - t\right) \cdot a} \]

                                                                                          if -9.5000000000000004e129 < a < 3.6999999999999999e-179

                                                                                          1. Initial program 98.5%

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

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

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

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

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

                                                                                              \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                                                                                            5. lower-+.f6454.1

                                                                                              \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                                                                                          5. Applied rewrites54.1%

                                                                                            \[\leadsto \color{blue}{\left(\left(y + t\right) - 2\right) \cdot b} \]
                                                                                          6. Taylor expanded in t around 0

                                                                                            \[\leadsto \left(y - 2\right) \cdot b \]
                                                                                          7. Step-by-step derivation
                                                                                            1. Applied rewrites42.4%

                                                                                              \[\leadsto \left(y - 2\right) \cdot b \]

                                                                                            if 3.6999999999999999e-179 < a < 7.2e5

                                                                                            1. Initial program 95.3%

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

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

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

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

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

                                                                                                \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                                                                                              5. lower-+.f6447.9

                                                                                                \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                                                                                            5. Applied rewrites47.9%

                                                                                              \[\leadsto \color{blue}{\left(\left(y + t\right) - 2\right) \cdot b} \]
                                                                                            6. Taylor expanded in y around 0

                                                                                              \[\leadsto \left(t - 2\right) \cdot b \]
                                                                                            7. Step-by-step derivation
                                                                                              1. Applied rewrites39.3%

                                                                                                \[\leadsto \left(t - 2\right) \cdot b \]
                                                                                            8. Recombined 3 regimes into one program.
                                                                                            9. Add Preprocessing

                                                                                            Alternative 17: 33.5% accurate, 1.4× speedup?

                                                                                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.02 \cdot 10^{+183}:\\ \;\;\;\;\left(-a\right) \cdot t\\ \mathbf{elif}\;t \leq -2.45 \cdot 10^{-43}:\\ \;\;\;\;z + x\\ \mathbf{elif}\;t \leq 2.5 \cdot 10^{+40}:\\ \;\;\;\;\left(y - 2\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;b \cdot t\\ \end{array} \end{array} \]
                                                                                            (FPCore (x y z t a b)
                                                                                             :precision binary64
                                                                                             (if (<= t -1.02e+183)
                                                                                               (* (- a) t)
                                                                                               (if (<= t -2.45e-43) (+ z x) (if (<= t 2.5e+40) (* (- y 2.0) b) (* b t)))))
                                                                                            double code(double x, double y, double z, double t, double a, double b) {
                                                                                            	double tmp;
                                                                                            	if (t <= -1.02e+183) {
                                                                                            		tmp = -a * t;
                                                                                            	} else if (t <= -2.45e-43) {
                                                                                            		tmp = z + x;
                                                                                            	} else if (t <= 2.5e+40) {
                                                                                            		tmp = (y - 2.0) * b;
                                                                                            	} else {
                                                                                            		tmp = b * t;
                                                                                            	}
                                                                                            	return tmp;
                                                                                            }
                                                                                            
                                                                                            real(8) function code(x, y, z, t, a, b)
                                                                                                real(8), intent (in) :: x
                                                                                                real(8), intent (in) :: y
                                                                                                real(8), intent (in) :: z
                                                                                                real(8), intent (in) :: t
                                                                                                real(8), intent (in) :: a
                                                                                                real(8), intent (in) :: b
                                                                                                real(8) :: tmp
                                                                                                if (t <= (-1.02d+183)) then
                                                                                                    tmp = -a * t
                                                                                                else if (t <= (-2.45d-43)) then
                                                                                                    tmp = z + x
                                                                                                else if (t <= 2.5d+40) then
                                                                                                    tmp = (y - 2.0d0) * b
                                                                                                else
                                                                                                    tmp = b * t
                                                                                                end if
                                                                                                code = tmp
                                                                                            end function
                                                                                            
                                                                                            public static double code(double x, double y, double z, double t, double a, double b) {
                                                                                            	double tmp;
                                                                                            	if (t <= -1.02e+183) {
                                                                                            		tmp = -a * t;
                                                                                            	} else if (t <= -2.45e-43) {
                                                                                            		tmp = z + x;
                                                                                            	} else if (t <= 2.5e+40) {
                                                                                            		tmp = (y - 2.0) * b;
                                                                                            	} else {
                                                                                            		tmp = b * t;
                                                                                            	}
                                                                                            	return tmp;
                                                                                            }
                                                                                            
                                                                                            def code(x, y, z, t, a, b):
                                                                                            	tmp = 0
                                                                                            	if t <= -1.02e+183:
                                                                                            		tmp = -a * t
                                                                                            	elif t <= -2.45e-43:
                                                                                            		tmp = z + x
                                                                                            	elif t <= 2.5e+40:
                                                                                            		tmp = (y - 2.0) * b
                                                                                            	else:
                                                                                            		tmp = b * t
                                                                                            	return tmp
                                                                                            
                                                                                            function code(x, y, z, t, a, b)
                                                                                            	tmp = 0.0
                                                                                            	if (t <= -1.02e+183)
                                                                                            		tmp = Float64(Float64(-a) * t);
                                                                                            	elseif (t <= -2.45e-43)
                                                                                            		tmp = Float64(z + x);
                                                                                            	elseif (t <= 2.5e+40)
                                                                                            		tmp = Float64(Float64(y - 2.0) * b);
                                                                                            	else
                                                                                            		tmp = Float64(b * t);
                                                                                            	end
                                                                                            	return tmp
                                                                                            end
                                                                                            
                                                                                            function tmp_2 = code(x, y, z, t, a, b)
                                                                                            	tmp = 0.0;
                                                                                            	if (t <= -1.02e+183)
                                                                                            		tmp = -a * t;
                                                                                            	elseif (t <= -2.45e-43)
                                                                                            		tmp = z + x;
                                                                                            	elseif (t <= 2.5e+40)
                                                                                            		tmp = (y - 2.0) * b;
                                                                                            	else
                                                                                            		tmp = b * t;
                                                                                            	end
                                                                                            	tmp_2 = tmp;
                                                                                            end
                                                                                            
                                                                                            code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -1.02e+183], N[((-a) * t), $MachinePrecision], If[LessEqual[t, -2.45e-43], N[(z + x), $MachinePrecision], If[LessEqual[t, 2.5e+40], N[(N[(y - 2.0), $MachinePrecision] * b), $MachinePrecision], N[(b * t), $MachinePrecision]]]]
                                                                                            
                                                                                            \begin{array}{l}
                                                                                            
                                                                                            \\
                                                                                            \begin{array}{l}
                                                                                            \mathbf{if}\;t \leq -1.02 \cdot 10^{+183}:\\
                                                                                            \;\;\;\;\left(-a\right) \cdot t\\
                                                                                            
                                                                                            \mathbf{elif}\;t \leq -2.45 \cdot 10^{-43}:\\
                                                                                            \;\;\;\;z + x\\
                                                                                            
                                                                                            \mathbf{elif}\;t \leq 2.5 \cdot 10^{+40}:\\
                                                                                            \;\;\;\;\left(y - 2\right) \cdot b\\
                                                                                            
                                                                                            \mathbf{else}:\\
                                                                                            \;\;\;\;b \cdot t\\
                                                                                            
                                                                                            
                                                                                            \end{array}
                                                                                            \end{array}
                                                                                            
                                                                                            Derivation
                                                                                            1. Split input into 4 regimes
                                                                                            2. if t < -1.02000000000000002e183

                                                                                              1. Initial program 79.2%

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

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

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

                                                                                                  \[\leadsto \color{blue}{\left(b - a\right) \cdot t} \]
                                                                                                3. lower--.f6492.1

                                                                                                  \[\leadsto \color{blue}{\left(b - a\right)} \cdot t \]
                                                                                              5. Applied rewrites92.1%

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

                                                                                                \[\leadsto \left(-1 \cdot a\right) \cdot t \]
                                                                                              7. Step-by-step derivation
                                                                                                1. Applied rewrites80.0%

                                                                                                  \[\leadsto \left(-a\right) \cdot t \]

                                                                                                if -1.02000000000000002e183 < t < -2.44999999999999994e-43

                                                                                                1. Initial program 93.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                    \[\leadsto x + z \]
                                                                                                  3. Step-by-step derivation
                                                                                                    1. Applied rewrites35.4%

                                                                                                      \[\leadsto z + x \]

                                                                                                    if -2.44999999999999994e-43 < t < 2.50000000000000002e40

                                                                                                    1. Initial program 98.6%

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

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

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

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

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

                                                                                                        \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                                                                                                      5. lower-+.f6447.2

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

                                                                                                      \[\leadsto \color{blue}{\left(\left(y + t\right) - 2\right) \cdot b} \]
                                                                                                    6. Taylor expanded in t around 0

                                                                                                      \[\leadsto \left(y - 2\right) \cdot b \]
                                                                                                    7. Step-by-step derivation
                                                                                                      1. Applied rewrites46.5%

                                                                                                        \[\leadsto \left(y - 2\right) \cdot b \]

                                                                                                      if 2.50000000000000002e40 < t

                                                                                                      1. Initial program 96.0%

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

                                                                                                        \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - z \cdot \left(y - 1\right)} \]
                                                                                                      4. Applied rewrites69.4%

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

                                                                                                        \[\leadsto b \cdot \color{blue}{t} \]
                                                                                                      6. Step-by-step derivation
                                                                                                        1. Applied rewrites39.3%

                                                                                                          \[\leadsto b \cdot \color{blue}{t} \]
                                                                                                      7. Recombined 4 regimes into one program.
                                                                                                      8. Add Preprocessing

                                                                                                      Alternative 18: 68.4% accurate, 1.5× speedup?

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

                                                                                                        1. Initial program 93.1%

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

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

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

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

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

                                                                                                            \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                                                                                                          5. lower-+.f6482.0

                                                                                                            \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                                                                                                        5. Applied rewrites82.0%

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

                                                                                                        if -3.5000000000000001e33 < b < 4.25000000000000022e133

                                                                                                        1. Initial program 96.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                            \[\leadsto \mathsf{fma}\left(1 - y, z, \color{blue}{\left(\mathsf{neg}\left(a \cdot \left(t - 1\right)\right)\right) + x}\right) \]
                                                                                                        5. Applied rewrites85.2%

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

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

                                                                                                            \[\leadsto \mathsf{fma}\left(1 - t, \color{blue}{a}, z + x\right) \]
                                                                                                        8. Recombined 2 regimes into one program.
                                                                                                        9. Final simplification72.8%

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

                                                                                                        Alternative 19: 66.9% accurate, 1.5× speedup?

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

                                                                                                          1. Initial program 90.7%

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

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

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

                                                                                                              \[\leadsto \color{blue}{\left(b - a\right) \cdot t} \]
                                                                                                            3. lower--.f6467.2

                                                                                                              \[\leadsto \color{blue}{\left(b - a\right)} \cdot t \]
                                                                                                          5. Applied rewrites67.2%

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

                                                                                                          if -1.15e30 < t < 4.8999999999999999e73

                                                                                                          1. Initial program 98.7%

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

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

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

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

                                                                                                              \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(z \cdot \left(y - 1\right) + -1 \cdot a\right)}\right)\right) + \left(x + b \cdot \left(y - 2\right)\right) \]
                                                                                                            4. distribute-neg-inN/A

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

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

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

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

                                                                                                              \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - 1\right) \cdot z}\right)\right) + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                            9. distribute-lft-neg-inN/A

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

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

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

                                                                                                              \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(y + \left(\mathsf{neg}\left(1\right)\right)\right)}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                            13. metadata-evalN/A

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

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

                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{-1 \cdot -1 + -1 \cdot y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                            16. metadata-evalN/A

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

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

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

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

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

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

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

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

                                                                                                          Alternative 20: 35.8% accurate, 1.5× speedup?

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

                                                                                                            1. Initial program 92.0%

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

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

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

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

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

                                                                                                                \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                                                                                                              5. lower-+.f6449.8

                                                                                                                \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                                                                                                            5. Applied rewrites49.8%

                                                                                                              \[\leadsto \color{blue}{\left(\left(y + t\right) - 2\right) \cdot b} \]
                                                                                                            6. Taylor expanded in y around inf

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

                                                                                                                \[\leadsto b \cdot \color{blue}{y} \]

                                                                                                              if -2.00000000000000014e174 < y < -5.60000000000000008e-64

                                                                                                              1. Initial program 93.8%

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

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

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

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

                                                                                                                  \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(z \cdot \left(y - 1\right) + -1 \cdot a\right)}\right)\right) + \left(x + b \cdot \left(y - 2\right)\right) \]
                                                                                                                4. distribute-neg-inN/A

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

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

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

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

                                                                                                                  \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - 1\right) \cdot z}\right)\right) + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                                9. distribute-lft-neg-inN/A

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

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

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

                                                                                                                  \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(y + \left(\mathsf{neg}\left(1\right)\right)\right)}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                                13. metadata-evalN/A

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

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

                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{-1 \cdot -1 + -1 \cdot y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                                16. metadata-evalN/A

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

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

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

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

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

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

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

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

                                                                                                                  \[\leadsto a + x \]
                                                                                                                3. Step-by-step derivation
                                                                                                                  1. Applied rewrites31.5%

                                                                                                                    \[\leadsto a + x \]

                                                                                                                  if -5.60000000000000008e-64 < y < 3.4e7

                                                                                                                  1. Initial program 99.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                                      \[\leadsto x + z \]
                                                                                                                    3. Step-by-step derivation
                                                                                                                      1. Applied rewrites35.5%

                                                                                                                        \[\leadsto z + x \]
                                                                                                                    4. Recombined 3 regimes into one program.
                                                                                                                    5. Add Preprocessing

                                                                                                                    Alternative 21: 48.1% accurate, 1.8× speedup?

                                                                                                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - a\right) \cdot t\\ \mathbf{if}\;t \leq -3.15 \cdot 10^{+28}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 3.6 \cdot 10^{+37}:\\ \;\;\;\;\left(y - 2\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                                    (FPCore (x y z t a b)
                                                                                                                     :precision binary64
                                                                                                                     (let* ((t_1 (* (- b a) t)))
                                                                                                                       (if (<= t -3.15e+28) t_1 (if (<= t 3.6e+37) (* (- y 2.0) b) t_1))))
                                                                                                                    double code(double x, double y, double z, double t, double a, double b) {
                                                                                                                    	double t_1 = (b - a) * t;
                                                                                                                    	double tmp;
                                                                                                                    	if (t <= -3.15e+28) {
                                                                                                                    		tmp = t_1;
                                                                                                                    	} else if (t <= 3.6e+37) {
                                                                                                                    		tmp = (y - 2.0) * b;
                                                                                                                    	} else {
                                                                                                                    		tmp = t_1;
                                                                                                                    	}
                                                                                                                    	return tmp;
                                                                                                                    }
                                                                                                                    
                                                                                                                    real(8) function code(x, y, z, t, a, b)
                                                                                                                        real(8), intent (in) :: x
                                                                                                                        real(8), intent (in) :: y
                                                                                                                        real(8), intent (in) :: z
                                                                                                                        real(8), intent (in) :: t
                                                                                                                        real(8), intent (in) :: a
                                                                                                                        real(8), intent (in) :: b
                                                                                                                        real(8) :: t_1
                                                                                                                        real(8) :: tmp
                                                                                                                        t_1 = (b - a) * t
                                                                                                                        if (t <= (-3.15d+28)) then
                                                                                                                            tmp = t_1
                                                                                                                        else if (t <= 3.6d+37) then
                                                                                                                            tmp = (y - 2.0d0) * b
                                                                                                                        else
                                                                                                                            tmp = t_1
                                                                                                                        end if
                                                                                                                        code = tmp
                                                                                                                    end function
                                                                                                                    
                                                                                                                    public static double code(double x, double y, double z, double t, double a, double b) {
                                                                                                                    	double t_1 = (b - a) * t;
                                                                                                                    	double tmp;
                                                                                                                    	if (t <= -3.15e+28) {
                                                                                                                    		tmp = t_1;
                                                                                                                    	} else if (t <= 3.6e+37) {
                                                                                                                    		tmp = (y - 2.0) * b;
                                                                                                                    	} else {
                                                                                                                    		tmp = t_1;
                                                                                                                    	}
                                                                                                                    	return tmp;
                                                                                                                    }
                                                                                                                    
                                                                                                                    def code(x, y, z, t, a, b):
                                                                                                                    	t_1 = (b - a) * t
                                                                                                                    	tmp = 0
                                                                                                                    	if t <= -3.15e+28:
                                                                                                                    		tmp = t_1
                                                                                                                    	elif t <= 3.6e+37:
                                                                                                                    		tmp = (y - 2.0) * b
                                                                                                                    	else:
                                                                                                                    		tmp = t_1
                                                                                                                    	return tmp
                                                                                                                    
                                                                                                                    function code(x, y, z, t, a, b)
                                                                                                                    	t_1 = Float64(Float64(b - a) * t)
                                                                                                                    	tmp = 0.0
                                                                                                                    	if (t <= -3.15e+28)
                                                                                                                    		tmp = t_1;
                                                                                                                    	elseif (t <= 3.6e+37)
                                                                                                                    		tmp = Float64(Float64(y - 2.0) * b);
                                                                                                                    	else
                                                                                                                    		tmp = t_1;
                                                                                                                    	end
                                                                                                                    	return tmp
                                                                                                                    end
                                                                                                                    
                                                                                                                    function tmp_2 = code(x, y, z, t, a, b)
                                                                                                                    	t_1 = (b - a) * t;
                                                                                                                    	tmp = 0.0;
                                                                                                                    	if (t <= -3.15e+28)
                                                                                                                    		tmp = t_1;
                                                                                                                    	elseif (t <= 3.6e+37)
                                                                                                                    		tmp = (y - 2.0) * b;
                                                                                                                    	else
                                                                                                                    		tmp = t_1;
                                                                                                                    	end
                                                                                                                    	tmp_2 = tmp;
                                                                                                                    end
                                                                                                                    
                                                                                                                    code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -3.15e+28], t$95$1, If[LessEqual[t, 3.6e+37], N[(N[(y - 2.0), $MachinePrecision] * b), $MachinePrecision], t$95$1]]]
                                                                                                                    
                                                                                                                    \begin{array}{l}
                                                                                                                    
                                                                                                                    \\
                                                                                                                    \begin{array}{l}
                                                                                                                    t_1 := \left(b - a\right) \cdot t\\
                                                                                                                    \mathbf{if}\;t \leq -3.15 \cdot 10^{+28}:\\
                                                                                                                    \;\;\;\;t\_1\\
                                                                                                                    
                                                                                                                    \mathbf{elif}\;t \leq 3.6 \cdot 10^{+37}:\\
                                                                                                                    \;\;\;\;\left(y - 2\right) \cdot b\\
                                                                                                                    
                                                                                                                    \mathbf{else}:\\
                                                                                                                    \;\;\;\;t\_1\\
                                                                                                                    
                                                                                                                    
                                                                                                                    \end{array}
                                                                                                                    \end{array}
                                                                                                                    
                                                                                                                    Derivation
                                                                                                                    1. Split input into 2 regimes
                                                                                                                    2. if t < -3.1500000000000001e28 or 3.59999999999999998e37 < t

                                                                                                                      1. Initial program 90.9%

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

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

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

                                                                                                                          \[\leadsto \color{blue}{\left(b - a\right) \cdot t} \]
                                                                                                                        3. lower--.f6466.3

                                                                                                                          \[\leadsto \color{blue}{\left(b - a\right)} \cdot t \]
                                                                                                                      5. Applied rewrites66.3%

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

                                                                                                                      if -3.1500000000000001e28 < t < 3.59999999999999998e37

                                                                                                                      1. Initial program 98.6%

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

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

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

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

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

                                                                                                                          \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                                                                                                                        5. lower-+.f6445.6

                                                                                                                          \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                                                                                                                      5. Applied rewrites45.6%

                                                                                                                        \[\leadsto \color{blue}{\left(\left(y + t\right) - 2\right) \cdot b} \]
                                                                                                                      6. Taylor expanded in t around 0

                                                                                                                        \[\leadsto \left(y - 2\right) \cdot b \]
                                                                                                                      7. Step-by-step derivation
                                                                                                                        1. Applied rewrites44.9%

                                                                                                                          \[\leadsto \left(y - 2\right) \cdot b \]
                                                                                                                      8. Recombined 2 regimes into one program.
                                                                                                                      9. Add Preprocessing

                                                                                                                      Alternative 22: 31.5% accurate, 2.3× speedup?

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

                                                                                                                        1. Initial program 87.5%

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

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

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

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

                                                                                                                            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(z \cdot \left(y - 1\right) + -1 \cdot a\right)}\right)\right) + \left(x + b \cdot \left(y - 2\right)\right) \]
                                                                                                                          4. distribute-neg-inN/A

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

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

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

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

                                                                                                                            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - 1\right) \cdot z}\right)\right) + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                                          9. distribute-lft-neg-inN/A

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

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

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

                                                                                                                            \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(y + \left(\mathsf{neg}\left(1\right)\right)\right)}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                                          13. metadata-evalN/A

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

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

                                                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{-1 \cdot -1 + -1 \cdot y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                                          16. metadata-evalN/A

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

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

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

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

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

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

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

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

                                                                                                                            \[\leadsto a + x \]
                                                                                                                          3. Step-by-step derivation
                                                                                                                            1. Applied rewrites37.5%

                                                                                                                              \[\leadsto a + x \]

                                                                                                                            if -1.06e135 < a < 3.50000000000000011e102

                                                                                                                            1. Initial program 97.9%

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

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

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

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

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

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

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

                                                                                                                                \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - 1\right) \cdot z}\right)\right) + \left(x - a \cdot \left(t - 1\right)\right) \]
                                                                                                                              7. distribute-lft-neg-inN/A

                                                                                                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(y - 1\right)\right)\right) \cdot z} + \left(x - a \cdot \left(t - 1\right)\right) \]
                                                                                                                              8. mul-1-negN/A

                                                                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z + \left(x - a \cdot \left(t - 1\right)\right) \]
                                                                                                                              9. lower-fma.f64N/A

                                                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(y - 1\right), z, x - a \cdot \left(t - 1\right)\right)} \]
                                                                                                                              10. sub-negN/A

                                                                                                                                \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(y + \left(\mathsf{neg}\left(1\right)\right)\right)}, z, x - a \cdot \left(t - 1\right)\right) \]
                                                                                                                              11. metadata-evalN/A

                                                                                                                                \[\leadsto \mathsf{fma}\left(-1 \cdot \left(y + \color{blue}{-1}\right), z, x - a \cdot \left(t - 1\right)\right) \]
                                                                                                                              12. +-commutativeN/A

                                                                                                                                \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(-1 + y\right)}, z, x - a \cdot \left(t - 1\right)\right) \]
                                                                                                                              13. distribute-lft-inN/A

                                                                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{-1 \cdot -1 + -1 \cdot y}, z, x - a \cdot \left(t - 1\right)\right) \]
                                                                                                                              14. metadata-evalN/A

                                                                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{1} + -1 \cdot y, z, x - a \cdot \left(t - 1\right)\right) \]
                                                                                                                              15. neg-mul-1N/A

                                                                                                                                \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\left(\mathsf{neg}\left(y\right)\right)}, z, x - a \cdot \left(t - 1\right)\right) \]
                                                                                                                              16. sub-negN/A

                                                                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{1 - y}, z, x - a \cdot \left(t - 1\right)\right) \]
                                                                                                                              17. lower--.f64N/A

                                                                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{1 - y}, z, x - a \cdot \left(t - 1\right)\right) \]
                                                                                                                              18. sub-negN/A

                                                                                                                                \[\leadsto \mathsf{fma}\left(1 - y, z, \color{blue}{x + \left(\mathsf{neg}\left(a \cdot \left(t - 1\right)\right)\right)}\right) \]
                                                                                                                              19. +-commutativeN/A

                                                                                                                                \[\leadsto \mathsf{fma}\left(1 - y, z, \color{blue}{\left(\mathsf{neg}\left(a \cdot \left(t - 1\right)\right)\right) + x}\right) \]
                                                                                                                            5. Applied rewrites52.5%

                                                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(1 - y, z, \mathsf{fma}\left(1 - t, a, x\right)\right)} \]
                                                                                                                            6. Taylor expanded in y around 0

                                                                                                                              \[\leadsto x + \color{blue}{\left(z + a \cdot \left(1 - t\right)\right)} \]
                                                                                                                            7. Step-by-step derivation
                                                                                                                              1. Applied rewrites34.6%

                                                                                                                                \[\leadsto \mathsf{fma}\left(1 - t, \color{blue}{a}, z + x\right) \]
                                                                                                                              2. Taylor expanded in a around 0

                                                                                                                                \[\leadsto x + z \]
                                                                                                                              3. Step-by-step derivation
                                                                                                                                1. Applied rewrites27.0%

                                                                                                                                  \[\leadsto z + x \]
                                                                                                                              4. Recombined 2 regimes into one program.
                                                                                                                              5. Add Preprocessing

                                                                                                                              Alternative 23: 25.4% accurate, 9.3× speedup?

                                                                                                                              \[\begin{array}{l} \\ a + x \end{array} \]
                                                                                                                              (FPCore (x y z t a b) :precision binary64 (+ a x))
                                                                                                                              double code(double x, double y, double z, double t, double a, double b) {
                                                                                                                              	return a + x;
                                                                                                                              }
                                                                                                                              
                                                                                                                              real(8) function code(x, y, z, t, a, b)
                                                                                                                                  real(8), intent (in) :: x
                                                                                                                                  real(8), intent (in) :: y
                                                                                                                                  real(8), intent (in) :: z
                                                                                                                                  real(8), intent (in) :: t
                                                                                                                                  real(8), intent (in) :: a
                                                                                                                                  real(8), intent (in) :: b
                                                                                                                                  code = a + x
                                                                                                                              end function
                                                                                                                              
                                                                                                                              public static double code(double x, double y, double z, double t, double a, double b) {
                                                                                                                              	return a + x;
                                                                                                                              }
                                                                                                                              
                                                                                                                              def code(x, y, z, t, a, b):
                                                                                                                              	return a + x
                                                                                                                              
                                                                                                                              function code(x, y, z, t, a, b)
                                                                                                                              	return Float64(a + x)
                                                                                                                              end
                                                                                                                              
                                                                                                                              function tmp = code(x, y, z, t, a, b)
                                                                                                                              	tmp = a + x;
                                                                                                                              end
                                                                                                                              
                                                                                                                              code[x_, y_, z_, t_, a_, b_] := N[(a + x), $MachinePrecision]
                                                                                                                              
                                                                                                                              \begin{array}{l}
                                                                                                                              
                                                                                                                              \\
                                                                                                                              a + x
                                                                                                                              \end{array}
                                                                                                                              
                                                                                                                              Derivation
                                                                                                                              1. Initial program 95.3%

                                                                                                                                \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                                                                                                              2. Add Preprocessing
                                                                                                                              3. Taylor expanded in t around 0

                                                                                                                                \[\leadsto \color{blue}{\left(x + b \cdot \left(y - 2\right)\right) - \left(-1 \cdot a + z \cdot \left(y - 1\right)\right)} \]
                                                                                                                              4. Step-by-step derivation
                                                                                                                                1. sub-negN/A

                                                                                                                                  \[\leadsto \color{blue}{\left(x + b \cdot \left(y - 2\right)\right) + \left(\mathsf{neg}\left(\left(-1 \cdot a + z \cdot \left(y - 1\right)\right)\right)\right)} \]
                                                                                                                                2. +-commutativeN/A

                                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(-1 \cdot a + z \cdot \left(y - 1\right)\right)\right)\right) + \left(x + b \cdot \left(y - 2\right)\right)} \]
                                                                                                                                3. +-commutativeN/A

                                                                                                                                  \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(z \cdot \left(y - 1\right) + -1 \cdot a\right)}\right)\right) + \left(x + b \cdot \left(y - 2\right)\right) \]
                                                                                                                                4. distribute-neg-inN/A

                                                                                                                                  \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(z \cdot \left(y - 1\right)\right)\right) + \left(\mathsf{neg}\left(-1 \cdot a\right)\right)\right)} + \left(x + b \cdot \left(y - 2\right)\right) \]
                                                                                                                                5. mul-1-negN/A

                                                                                                                                  \[\leadsto \left(\left(\mathsf{neg}\left(z \cdot \left(y - 1\right)\right)\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)}\right)\right)\right) + \left(x + b \cdot \left(y - 2\right)\right) \]
                                                                                                                                6. remove-double-negN/A

                                                                                                                                  \[\leadsto \left(\left(\mathsf{neg}\left(z \cdot \left(y - 1\right)\right)\right) + \color{blue}{a}\right) + \left(x + b \cdot \left(y - 2\right)\right) \]
                                                                                                                                7. associate-+l+N/A

                                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z \cdot \left(y - 1\right)\right)\right) + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right)} \]
                                                                                                                                8. *-commutativeN/A

                                                                                                                                  \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - 1\right) \cdot z}\right)\right) + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                                                9. distribute-lft-neg-inN/A

                                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(y - 1\right)\right)\right) \cdot z} + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                                                10. mul-1-negN/A

                                                                                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                                                11. lower-fma.f64N/A

                                                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(y - 1\right), z, a + \left(x + b \cdot \left(y - 2\right)\right)\right)} \]
                                                                                                                                12. sub-negN/A

                                                                                                                                  \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(y + \left(\mathsf{neg}\left(1\right)\right)\right)}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                                                13. metadata-evalN/A

                                                                                                                                  \[\leadsto \mathsf{fma}\left(-1 \cdot \left(y + \color{blue}{-1}\right), z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                                                14. +-commutativeN/A

                                                                                                                                  \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(-1 + y\right)}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                                                15. distribute-lft-inN/A

                                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{-1 \cdot -1 + -1 \cdot y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                                                16. metadata-evalN/A

                                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{1} + -1 \cdot y, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                                                17. neg-mul-1N/A

                                                                                                                                  \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\left(\mathsf{neg}\left(y\right)\right)}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                                                18. sub-negN/A

                                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{1 - y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                                                19. lower--.f64N/A

                                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{1 - y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                                                20. lower-+.f64N/A

                                                                                                                                  \[\leadsto \mathsf{fma}\left(1 - y, z, \color{blue}{a + \left(x + b \cdot \left(y - 2\right)\right)}\right) \]
                                                                                                                              5. Applied rewrites72.1%

                                                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(1 - y, z, a + \mathsf{fma}\left(y - 2, b, x\right)\right)} \]
                                                                                                                              6. Taylor expanded in z around 0

                                                                                                                                \[\leadsto a + \color{blue}{\left(x + b \cdot \left(y - 2\right)\right)} \]
                                                                                                                              7. Step-by-step derivation
                                                                                                                                1. Applied rewrites51.8%

                                                                                                                                  \[\leadsto \mathsf{fma}\left(y - 2, \color{blue}{b}, a + x\right) \]
                                                                                                                                2. Taylor expanded in b around 0

                                                                                                                                  \[\leadsto a + x \]
                                                                                                                                3. Step-by-step derivation
                                                                                                                                  1. Applied rewrites22.8%

                                                                                                                                    \[\leadsto a + x \]
                                                                                                                                  2. Add Preprocessing

                                                                                                                                  Reproduce

                                                                                                                                  ?
                                                                                                                                  herbie shell --seed 2024254 
                                                                                                                                  (FPCore (x y z t a b)
                                                                                                                                    :name "Statistics.Distribution.Beta:$centropy from math-functions-0.1.5.2"
                                                                                                                                    :precision binary64
                                                                                                                                    (+ (- (- x (* (- y 1.0) z)) (* (- t 1.0) a)) (* (- (+ y t) 2.0) b)))