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

Percentage Accurate: 95.4% → 98.5%
Time: 11.9s
Alternatives: 21
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 21 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.4% 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: 98.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(b - a, t, \left(1 - y\right) \cdot z\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 (- b a) t (* (- 1.0 y) z)))))
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((b - a), t, ((1.0 - y) * z));
	}
	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(b - a), t, Float64(Float64(1.0 - y) * z));
	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[(b - a), $MachinePrecision] * t + N[(N[(1.0 - y), $MachinePrecision] * z), $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(b - a, t, \left(1 - y\right) \cdot z\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 x around 0

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

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

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

        \[\leadsto \mathsf{fma}\left(b - a, t, \left(1 - y\right) \cdot z\right) \]
    7. Recombined 2 regimes into one program.
    8. Final simplification98.0%

      \[\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(b - a, t, \left(1 - y\right) \cdot z\right)\\ \end{array} \]
    9. Add Preprocessing

    Alternative 2: 44.3% accurate, 0.4× 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 -1.2 \cdot 10^{+307}:\\ \;\;\;\;\left(-z\right) \cdot y\\ \mathbf{elif}\;t\_1 \leq 10^{+298}:\\ \;\;\;\;\left(z + x\right) + a\\ \mathbf{else}:\\ \;\;\;\;\left(-a\right) \cdot t\\ \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 -1.2e+307)
         (* (- z) y)
         (if (<= t_1 1e+298) (+ (+ z x) a) (* (- a) t)))))
    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 <= -1.2e+307) {
    		tmp = -z * y;
    	} else if (t_1 <= 1e+298) {
    		tmp = (z + x) + a;
    	} else {
    		tmp = -a * 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) :: t_1
        real(8) :: tmp
        t_1 = (b * ((t + y) - 2.0d0)) + ((x - (z * (y - 1.0d0))) - (a * (t - 1.0d0)))
        if (t_1 <= (-1.2d+307)) then
            tmp = -z * y
        else if (t_1 <= 1d+298) then
            tmp = (z + x) + a
        else
            tmp = -a * t
        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 * ((t + y) - 2.0)) + ((x - (z * (y - 1.0))) - (a * (t - 1.0)));
    	double tmp;
    	if (t_1 <= -1.2e+307) {
    		tmp = -z * y;
    	} else if (t_1 <= 1e+298) {
    		tmp = (z + x) + a;
    	} else {
    		tmp = -a * t;
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a, b):
    	t_1 = (b * ((t + y) - 2.0)) + ((x - (z * (y - 1.0))) - (a * (t - 1.0)))
    	tmp = 0
    	if t_1 <= -1.2e+307:
    		tmp = -z * y
    	elif t_1 <= 1e+298:
    		tmp = (z + x) + a
    	else:
    		tmp = -a * t
    	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 <= -1.2e+307)
    		tmp = Float64(Float64(-z) * y);
    	elseif (t_1 <= 1e+298)
    		tmp = Float64(Float64(z + x) + a);
    	else
    		tmp = Float64(Float64(-a) * t);
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t, a, b)
    	t_1 = (b * ((t + y) - 2.0)) + ((x - (z * (y - 1.0))) - (a * (t - 1.0)));
    	tmp = 0.0;
    	if (t_1 <= -1.2e+307)
    		tmp = -z * y;
    	elseif (t_1 <= 1e+298)
    		tmp = (z + x) + a;
    	else
    		tmp = -a * t;
    	end
    	tmp_2 = 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, -1.2e+307], N[((-z) * y), $MachinePrecision], If[LessEqual[t$95$1, 1e+298], N[(N[(z + x), $MachinePrecision] + a), $MachinePrecision], N[((-a) * t), $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 -1.2 \cdot 10^{+307}:\\
    \;\;\;\;\left(-z\right) \cdot y\\
    
    \mathbf{elif}\;t\_1 \leq 10^{+298}:\\
    \;\;\;\;\left(z + x\right) + a\\
    
    \mathbf{else}:\\
    \;\;\;\;\left(-a\right) \cdot t\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 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)) < -1.20000000000000008e307

      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 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--.f6454.1

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

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

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

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

        if -1.20000000000000008e307 < (+.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)) < 9.9999999999999996e297

        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. mul-1-negN/A

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(\color{blue}{\left(0 - -1\right) - y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
          18. metadata-evalN/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) \]
          21. +-commutativeN/A

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

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

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

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

            \[\leadsto \left(x + z\right) + a \]
          3. Step-by-step derivation
            1. Applied rewrites55.5%

              \[\leadsto \left(z + x\right) + a \]

            if 9.9999999999999996e297 < (+.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 69.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--.f6454.2

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

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

                \[\leadsto \left(-a\right) \cdot t \]
            8. Recombined 3 regimes into one program.
            9. Final simplification48.9%

              \[\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 -1.2 \cdot 10^{+307}:\\ \;\;\;\;\left(-z\right) \cdot y\\ \mathbf{elif}\;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 10^{+298}:\\ \;\;\;\;\left(z + x\right) + a\\ \mathbf{else}:\\ \;\;\;\;\left(-a\right) \cdot t\\ \end{array} \]
            10. Add Preprocessing

            Alternative 3: 43.5% accurate, 0.4× 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)\\ t_2 := \left(-a\right) \cdot t\\ \mathbf{if}\;t\_1 \leq -3 \cdot 10^{+300}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_1 \leq 10^{+298}:\\ \;\;\;\;\left(z + x\right) + a\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \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)))))
                    (t_2 (* (- a) t)))
               (if (<= t_1 -3e+300) t_2 (if (<= t_1 1e+298) (+ (+ z x) a) t_2))))
            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 t_2 = -a * t;
            	double tmp;
            	if (t_1 <= -3e+300) {
            		tmp = t_2;
            	} else if (t_1 <= 1e+298) {
            		tmp = (z + x) + a;
            	} else {
            		tmp = t_2;
            	}
            	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 * ((t + y) - 2.0d0)) + ((x - (z * (y - 1.0d0))) - (a * (t - 1.0d0)))
                t_2 = -a * t
                if (t_1 <= (-3d+300)) then
                    tmp = t_2
                else if (t_1 <= 1d+298) then
                    tmp = (z + x) + a
                else
                    tmp = t_2
                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 * ((t + y) - 2.0)) + ((x - (z * (y - 1.0))) - (a * (t - 1.0)));
            	double t_2 = -a * t;
            	double tmp;
            	if (t_1 <= -3e+300) {
            		tmp = t_2;
            	} else if (t_1 <= 1e+298) {
            		tmp = (z + x) + a;
            	} else {
            		tmp = t_2;
            	}
            	return tmp;
            }
            
            def code(x, y, z, t, a, b):
            	t_1 = (b * ((t + y) - 2.0)) + ((x - (z * (y - 1.0))) - (a * (t - 1.0)))
            	t_2 = -a * t
            	tmp = 0
            	if t_1 <= -3e+300:
            		tmp = t_2
            	elif t_1 <= 1e+298:
            		tmp = (z + x) + a
            	else:
            		tmp = t_2
            	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))))
            	t_2 = Float64(Float64(-a) * t)
            	tmp = 0.0
            	if (t_1 <= -3e+300)
            		tmp = t_2;
            	elseif (t_1 <= 1e+298)
            		tmp = Float64(Float64(z + x) + a);
            	else
            		tmp = t_2;
            	end
            	return tmp
            end
            
            function tmp_2 = code(x, y, z, t, a, b)
            	t_1 = (b * ((t + y) - 2.0)) + ((x - (z * (y - 1.0))) - (a * (t - 1.0)));
            	t_2 = -a * t;
            	tmp = 0.0;
            	if (t_1 <= -3e+300)
            		tmp = t_2;
            	elseif (t_1 <= 1e+298)
            		tmp = (z + x) + a;
            	else
            		tmp = t_2;
            	end
            	tmp_2 = 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]}, Block[{t$95$2 = N[((-a) * t), $MachinePrecision]}, If[LessEqual[t$95$1, -3e+300], t$95$2, If[LessEqual[t$95$1, 1e+298], N[(N[(z + x), $MachinePrecision] + a), $MachinePrecision], t$95$2]]]]
            
            \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)\\
            t_2 := \left(-a\right) \cdot t\\
            \mathbf{if}\;t\_1 \leq -3 \cdot 10^{+300}:\\
            \;\;\;\;t\_2\\
            
            \mathbf{elif}\;t\_1 \leq 10^{+298}:\\
            \;\;\;\;\left(z + x\right) + a\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_2\\
            
            
            \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)) < -3.00000000000000016e300 or 9.9999999999999996e297 < (+.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 85.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 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--.f6451.9

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

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

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

                if -3.00000000000000016e300 < (+.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)) < 9.9999999999999996e297

                1. Initial program 99.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 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. mul-1-negN/A

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

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

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

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

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

                    \[\leadsto \mathsf{fma}\left(\color{blue}{\left(0 - -1\right) - y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                  18. metadata-evalN/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) \]
                  21. +-commutativeN/A

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

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

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

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

                    \[\leadsto \left(x + z\right) + a \]
                  3. Step-by-step derivation
                    1. Applied rewrites56.9%

                      \[\leadsto \left(z + x\right) + a \]
                  4. Recombined 2 regimes into one program.
                  5. Final simplification48.5%

                    \[\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 -3 \cdot 10^{+300}:\\ \;\;\;\;\left(-a\right) \cdot t\\ \mathbf{elif}\;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 10^{+298}:\\ \;\;\;\;\left(z + x\right) + a\\ \mathbf{else}:\\ \;\;\;\;\left(-a\right) \cdot t\\ \end{array} \]
                  6. Add Preprocessing

                  Alternative 4: 74.4% accurate, 0.9× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y - 2, b, a + x\right)\\ t_2 := \mathsf{fma}\left(b - a, t, \left(1 - y\right) \cdot z\right)\\ \mathbf{if}\;t \leq -2.25 \cdot 10^{+21}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq -7.5 \cdot 10^{-233}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 1.66 \cdot 10^{-239}:\\ \;\;\;\;\mathsf{fma}\left(1 - y, z, a + x\right)\\ \mathbf{elif}\;t \leq 2.3 \cdot 10^{+17}:\\ \;\;\;\;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 (+ a x))) (t_2 (fma (- b a) t (* (- 1.0 y) z))))
                     (if (<= t -2.25e+21)
                       t_2
                       (if (<= t -7.5e-233)
                         t_1
                         (if (<= t 1.66e-239)
                           (fma (- 1.0 y) z (+ a x))
                           (if (<= t 2.3e+17) 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, (a + x));
                  	double t_2 = fma((b - a), t, ((1.0 - y) * z));
                  	double tmp;
                  	if (t <= -2.25e+21) {
                  		tmp = t_2;
                  	} else if (t <= -7.5e-233) {
                  		tmp = t_1;
                  	} else if (t <= 1.66e-239) {
                  		tmp = fma((1.0 - y), z, (a + x));
                  	} else if (t <= 2.3e+17) {
                  		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, Float64(a + x))
                  	t_2 = fma(Float64(b - a), t, Float64(Float64(1.0 - y) * z))
                  	tmp = 0.0
                  	if (t <= -2.25e+21)
                  		tmp = t_2;
                  	elseif (t <= -7.5e-233)
                  		tmp = t_1;
                  	elseif (t <= 1.66e-239)
                  		tmp = fma(Float64(1.0 - y), z, Float64(a + x));
                  	elseif (t <= 2.3e+17)
                  		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 + N[(a + x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b - a), $MachinePrecision] * t + N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.25e+21], t$95$2, If[LessEqual[t, -7.5e-233], t$95$1, If[LessEqual[t, 1.66e-239], N[(N[(1.0 - y), $MachinePrecision] * z + N[(a + x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.3e+17], t$95$1, t$95$2]]]]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_1 := \mathsf{fma}\left(y - 2, b, a + x\right)\\
                  t_2 := \mathsf{fma}\left(b - a, t, \left(1 - y\right) \cdot z\right)\\
                  \mathbf{if}\;t \leq -2.25 \cdot 10^{+21}:\\
                  \;\;\;\;t\_2\\
                  
                  \mathbf{elif}\;t \leq -7.5 \cdot 10^{-233}:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{elif}\;t \leq 1.66 \cdot 10^{-239}:\\
                  \;\;\;\;\mathsf{fma}\left(1 - y, z, a + x\right)\\
                  
                  \mathbf{elif}\;t \leq 2.3 \cdot 10^{+17}:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;t\_2\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 3 regimes
                  2. if t < -2.25e21 or 2.3e17 < t

                    1. Initial program 91.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 x around 0

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

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

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

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

                      if -2.25e21 < t < -7.49999999999999974e-233 or 1.6599999999999999e-239 < t < 2.3e17

                      1. Initial program 97.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. mul-1-negN/A

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

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

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

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

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

                          \[\leadsto \mathsf{fma}\left(\color{blue}{\left(0 - -1\right) - y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                        18. metadata-evalN/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) \]
                        21. +-commutativeN/A

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

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

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

                        if -7.49999999999999974e-233 < t < 1.6599999999999999e-239

                        1. Initial program 94.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. mul-1-negN/A

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

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

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

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

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

                            \[\leadsto \mathsf{fma}\left(\color{blue}{\left(0 - -1\right) - y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                          18. metadata-evalN/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) \]
                          21. +-commutativeN/A

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

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

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

                            \[\leadsto \mathsf{fma}\left(1 - y, z, a + x\right) \]
                        8. Recombined 3 regimes into one program.
                        9. Add Preprocessing

                        Alternative 5: 59.2% accurate, 1.1× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(1 - t, a, x\right)\\ t_2 := \left(b - z\right) \cdot y\\ \mathbf{if}\;y \leq -2 \cdot 10^{+68}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;y \leq -2.3 \cdot 10^{-210}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 2.5 \cdot 10^{-96}:\\ \;\;\;\;\mathsf{fma}\left(-2, b, z + x\right)\\ \mathbf{elif}\;y \leq 4.2 \cdot 10^{+44}:\\ \;\;\;\;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 t) a x)) (t_2 (* (- b z) y)))
                           (if (<= y -2e+68)
                             t_2
                             (if (<= y -2.3e-210)
                               t_1
                               (if (<= y 2.5e-96) (fma -2.0 b (+ z x)) (if (<= y 4.2e+44) t_1 t_2))))))
                        double code(double x, double y, double z, double t, double a, double b) {
                        	double t_1 = fma((1.0 - t), a, x);
                        	double t_2 = (b - z) * y;
                        	double tmp;
                        	if (y <= -2e+68) {
                        		tmp = t_2;
                        	} else if (y <= -2.3e-210) {
                        		tmp = t_1;
                        	} else if (y <= 2.5e-96) {
                        		tmp = fma(-2.0, b, (z + x));
                        	} else if (y <= 4.2e+44) {
                        		tmp = t_1;
                        	} else {
                        		tmp = t_2;
                        	}
                        	return tmp;
                        }
                        
                        function code(x, y, z, t, a, b)
                        	t_1 = fma(Float64(1.0 - t), a, x)
                        	t_2 = Float64(Float64(b - z) * y)
                        	tmp = 0.0
                        	if (y <= -2e+68)
                        		tmp = t_2;
                        	elseif (y <= -2.3e-210)
                        		tmp = t_1;
                        	elseif (y <= 2.5e-96)
                        		tmp = fma(-2.0, b, Float64(z + x));
                        	elseif (y <= 4.2e+44)
                        		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 - t), $MachinePrecision] * a + x), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b - z), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -2e+68], t$95$2, If[LessEqual[y, -2.3e-210], t$95$1, If[LessEqual[y, 2.5e-96], N[(-2.0 * b + N[(z + x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.2e+44], t$95$1, t$95$2]]]]]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        t_1 := \mathsf{fma}\left(1 - t, a, x\right)\\
                        t_2 := \left(b - z\right) \cdot y\\
                        \mathbf{if}\;y \leq -2 \cdot 10^{+68}:\\
                        \;\;\;\;t\_2\\
                        
                        \mathbf{elif}\;y \leq -2.3 \cdot 10^{-210}:\\
                        \;\;\;\;t\_1\\
                        
                        \mathbf{elif}\;y \leq 2.5 \cdot 10^{-96}:\\
                        \;\;\;\;\mathsf{fma}\left(-2, b, z + x\right)\\
                        
                        \mathbf{elif}\;y \leq 4.2 \cdot 10^{+44}:\\
                        \;\;\;\;t\_1\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;t\_2\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 3 regimes
                        2. if y < -1.99999999999999991e68 or 4.19999999999999974e44 < y

                          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 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--.f6475.0

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

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

                          if -1.99999999999999991e68 < y < -2.3e-210 or 2.49999999999999997e-96 < y < 4.19999999999999974e44

                          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 y around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              if -2.3e-210 < y < 2.49999999999999997e-96

                              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 y around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \mathsf{fma}\left(t - 2, b, x + z\right) \]
                              7. Step-by-step derivation
                                1. Applied rewrites77.8%

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

                                  \[\leadsto \mathsf{fma}\left(-2, b, z + x\right) \]
                                3. Step-by-step derivation
                                  1. Applied rewrites61.1%

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

                                Alternative 6: 87.9% accurate, 1.1× speedup?

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

                                  1. Initial program 91.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. mul-1-negN/A

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

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

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

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

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

                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\left(0 - -1\right) - y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                    18. metadata-evalN/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) \]
                                    21. +-commutativeN/A

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

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

                                  if -1.50000000000000005e67 < y < 3.2e17

                                  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 y around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                Alternative 7: 89.2% accurate, 1.1× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(b - a, t, \left(1 - y\right) \cdot z\right)\\ \mathbf{if}\;t \leq -6 \cdot 10^{+110}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 3.5 \cdot 10^{+21}:\\ \;\;\;\;\mathsf{fma}\left(1 - y, z, \mathsf{fma}\left(y - 2, b, x\right) + a\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                (FPCore (x y z t a b)
                                 :precision binary64
                                 (let* ((t_1 (fma (- b a) t (* (- 1.0 y) z))))
                                   (if (<= t -6e+110)
                                     t_1
                                     (if (<= t 3.5e+21) (fma (- 1.0 y) z (+ (fma (- y 2.0) b x) a)) t_1))))
                                double code(double x, double y, double z, double t, double a, double b) {
                                	double t_1 = fma((b - a), t, ((1.0 - y) * z));
                                	double tmp;
                                	if (t <= -6e+110) {
                                		tmp = t_1;
                                	} else if (t <= 3.5e+21) {
                                		tmp = fma((1.0 - y), z, (fma((y - 2.0), b, x) + a));
                                	} else {
                                		tmp = t_1;
                                	}
                                	return tmp;
                                }
                                
                                function code(x, y, z, t, a, b)
                                	t_1 = fma(Float64(b - a), t, Float64(Float64(1.0 - y) * z))
                                	tmp = 0.0
                                	if (t <= -6e+110)
                                		tmp = t_1;
                                	elseif (t <= 3.5e+21)
                                		tmp = fma(Float64(1.0 - y), z, Float64(fma(Float64(y - 2.0), b, x) + a));
                                	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 + N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6e+110], t$95$1, If[LessEqual[t, 3.5e+21], N[(N[(1.0 - y), $MachinePrecision] * z + N[(N[(N[(y - 2.0), $MachinePrecision] * b + x), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                t_1 := \mathsf{fma}\left(b - a, t, \left(1 - y\right) \cdot z\right)\\
                                \mathbf{if}\;t \leq -6 \cdot 10^{+110}:\\
                                \;\;\;\;t\_1\\
                                
                                \mathbf{elif}\;t \leq 3.5 \cdot 10^{+21}:\\
                                \;\;\;\;\mathsf{fma}\left(1 - y, z, \mathsf{fma}\left(y - 2, b, x\right) + a\right)\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;t\_1\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 2 regimes
                                2. if t < -6.00000000000000014e110 or 3.5e21 < t

                                  1. Initial program 90.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 x around 0

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

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

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

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

                                    if -6.00000000000000014e110 < t < 3.5e21

                                    1. Initial program 96.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. mul-1-negN/A

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

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

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

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

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

                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\left(0 - -1\right) - y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                      18. metadata-evalN/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) \]
                                      21. +-commutativeN/A

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

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

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

                                  Alternative 8: 69.5% 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 -9.5 \cdot 10^{+121}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq -2.45 \cdot 10^{-303}:\\ \;\;\;\;\mathsf{fma}\left(1 - t, a, z\right) + x\\ \mathbf{elif}\;b \leq 2.8 \cdot 10^{+79}:\\ \;\;\;\;\mathsf{fma}\left(1 - y, z, 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 -9.5e+121)
                                       t_1
                                       (if (<= b -2.45e-303)
                                         (+ (fma (- 1.0 t) a z) x)
                                         (if (<= b 2.8e+79) (fma (- 1.0 y) z (+ 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 <= -9.5e+121) {
                                  		tmp = t_1;
                                  	} else if (b <= -2.45e-303) {
                                  		tmp = fma((1.0 - t), a, z) + x;
                                  	} else if (b <= 2.8e+79) {
                                  		tmp = fma((1.0 - y), z, (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 <= -9.5e+121)
                                  		tmp = t_1;
                                  	elseif (b <= -2.45e-303)
                                  		tmp = Float64(fma(Float64(1.0 - t), a, z) + x);
                                  	elseif (b <= 2.8e+79)
                                  		tmp = fma(Float64(1.0 - y), z, Float64(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, -9.5e+121], t$95$1, If[LessEqual[b, -2.45e-303], N[(N[(N[(1.0 - t), $MachinePrecision] * a + z), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[b, 2.8e+79], N[(N[(1.0 - y), $MachinePrecision] * z + N[(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 -9.5 \cdot 10^{+121}:\\
                                  \;\;\;\;t\_1\\
                                  
                                  \mathbf{elif}\;b \leq -2.45 \cdot 10^{-303}:\\
                                  \;\;\;\;\mathsf{fma}\left(1 - t, a, z\right) + x\\
                                  
                                  \mathbf{elif}\;b \leq 2.8 \cdot 10^{+79}:\\
                                  \;\;\;\;\mathsf{fma}\left(1 - y, z, a + x\right)\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;t\_1\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 3 regimes
                                  2. if b < -9.49999999999999949e121 or 2.8000000000000001e79 < b

                                    1. Initial program 85.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-+.f6478.5

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

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

                                    if -9.49999999999999949e121 < b < -2.45e-303

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      if -2.45e-303 < b < 2.8000000000000001e79

                                      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. mul-1-negN/A

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

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

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

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

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

                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\left(0 - -1\right) - y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                        18. metadata-evalN/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) \]
                                        21. +-commutativeN/A

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

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

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

                                          \[\leadsto \mathsf{fma}\left(1 - y, z, a + x\right) \]
                                      8. Recombined 3 regimes into one program.
                                      9. Final simplification77.0%

                                        \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -9.5 \cdot 10^{+121}:\\ \;\;\;\;b \cdot \left(\left(t + y\right) - 2\right)\\ \mathbf{elif}\;b \leq -2.45 \cdot 10^{-303}:\\ \;\;\;\;\mathsf{fma}\left(1 - t, a, z\right) + x\\ \mathbf{elif}\;b \leq 2.8 \cdot 10^{+79}:\\ \;\;\;\;\mathsf{fma}\left(1 - y, z, a + x\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(\left(t + y\right) - 2\right)\\ \end{array} \]
                                      10. Add Preprocessing

                                      Alternative 9: 82.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 -9.5 \cdot 10^{+121}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 9.8 \cdot 10^{+79}:\\ \;\;\;\;\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 -9.5e+121)
                                           t_1
                                           (if (<= b 9.8e+79) (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 <= -9.5e+121) {
                                      		tmp = t_1;
                                      	} else if (b <= 9.8e+79) {
                                      		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 <= -9.5e+121)
                                      		tmp = t_1;
                                      	elseif (b <= 9.8e+79)
                                      		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, -9.5e+121], t$95$1, If[LessEqual[b, 9.8e+79], 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 -9.5 \cdot 10^{+121}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      \mathbf{elif}\;b \leq 9.8 \cdot 10^{+79}:\\
                                      \;\;\;\;\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 < -9.49999999999999949e121 or 9.7999999999999997e79 < b

                                        1. Initial program 85.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-+.f6478.5

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

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

                                        if -9.49999999999999949e121 < b < 9.7999999999999997e79

                                        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 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. mul-1-negN/A

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

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

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

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

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

                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\left(0 - -1\right) - y}, z, x - a \cdot \left(t - 1\right)\right) \]
                                          16. metadata-evalN/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) \]
                                          20. *-commutativeN/A

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

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

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

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

                                        \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -9.5 \cdot 10^{+121}:\\ \;\;\;\;b \cdot \left(\left(t + y\right) - 2\right)\\ \mathbf{elif}\;b \leq 9.8 \cdot 10^{+79}:\\ \;\;\;\;\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 10: 64.0% accurate, 1.3× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - z\right) \cdot y\\ \mathbf{if}\;y \leq -7.5 \cdot 10^{+20}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 2.9 \cdot 10^{-96}:\\ \;\;\;\;\left(\mathsf{fma}\left(-2, b, z\right) + x\right) + a\\ \mathbf{elif}\;y \leq 4.2 \cdot 10^{+44}:\\ \;\;\;\;\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 z) y)))
                                         (if (<= y -7.5e+20)
                                           t_1
                                           (if (<= y 2.9e-96)
                                             (+ (+ (fma -2.0 b z) x) a)
                                             (if (<= y 4.2e+44) (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 - z) * y;
                                      	double tmp;
                                      	if (y <= -7.5e+20) {
                                      		tmp = t_1;
                                      	} else if (y <= 2.9e-96) {
                                      		tmp = (fma(-2.0, b, z) + x) + a;
                                      	} else if (y <= 4.2e+44) {
                                      		tmp = fma((1.0 - t), a, x);
                                      	} else {
                                      		tmp = t_1;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      function code(x, y, z, t, a, b)
                                      	t_1 = Float64(Float64(b - z) * y)
                                      	tmp = 0.0
                                      	if (y <= -7.5e+20)
                                      		tmp = t_1;
                                      	elseif (y <= 2.9e-96)
                                      		tmp = Float64(Float64(fma(-2.0, b, z) + x) + a);
                                      	elseif (y <= 4.2e+44)
                                      		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[(N[(b - z), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -7.5e+20], t$95$1, If[LessEqual[y, 2.9e-96], N[(N[(N[(-2.0 * b + z), $MachinePrecision] + x), $MachinePrecision] + a), $MachinePrecision], If[LessEqual[y, 4.2e+44], N[(N[(1.0 - t), $MachinePrecision] * a + x), $MachinePrecision], t$95$1]]]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      t_1 := \left(b - z\right) \cdot y\\
                                      \mathbf{if}\;y \leq -7.5 \cdot 10^{+20}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      \mathbf{elif}\;y \leq 2.9 \cdot 10^{-96}:\\
                                      \;\;\;\;\left(\mathsf{fma}\left(-2, b, z\right) + x\right) + a\\
                                      
                                      \mathbf{elif}\;y \leq 4.2 \cdot 10^{+44}:\\
                                      \;\;\;\;\mathsf{fma}\left(1 - t, a, x\right)\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 3 regimes
                                      2. if y < -7.5e20 or 4.19999999999999974e44 < y

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

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

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

                                        if -7.5e20 < y < 2.89999999999999994e-96

                                        1. Initial program 96.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. mul-1-negN/A

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

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

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

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

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

                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\left(0 - -1\right) - y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                          18. metadata-evalN/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) \]
                                          21. +-commutativeN/A

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

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

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

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

                                          if 2.89999999999999994e-96 < y < 4.19999999999999974e44

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            Alternative 11: 56.6% accurate, 1.4× speedup?

                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - z\right) \cdot y\\ \mathbf{if}\;y \leq -7.5 \cdot 10^{+20}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 4.2 \cdot 10^{-115}:\\ \;\;\;\;\left(z + x\right) + a\\ \mathbf{elif}\;y \leq 3.1 \cdot 10^{+17}:\\ \;\;\;\;\left(b - a\right) \cdot t\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                            (FPCore (x y z t a b)
                                             :precision binary64
                                             (let* ((t_1 (* (- b z) y)))
                                               (if (<= y -7.5e+20)
                                                 t_1
                                                 (if (<= y 4.2e-115)
                                                   (+ (+ z x) a)
                                                   (if (<= y 3.1e+17) (* (- b a) t) t_1)))))
                                            double code(double x, double y, double z, double t, double a, double b) {
                                            	double t_1 = (b - z) * y;
                                            	double tmp;
                                            	if (y <= -7.5e+20) {
                                            		tmp = t_1;
                                            	} else if (y <= 4.2e-115) {
                                            		tmp = (z + x) + a;
                                            	} else if (y <= 3.1e+17) {
                                            		tmp = (b - a) * t;
                                            	} 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 - z) * y
                                                if (y <= (-7.5d+20)) then
                                                    tmp = t_1
                                                else if (y <= 4.2d-115) then
                                                    tmp = (z + x) + a
                                                else if (y <= 3.1d+17) then
                                                    tmp = (b - a) * t
                                                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 tmp;
                                            	if (y <= -7.5e+20) {
                                            		tmp = t_1;
                                            	} else if (y <= 4.2e-115) {
                                            		tmp = (z + x) + a;
                                            	} else if (y <= 3.1e+17) {
                                            		tmp = (b - a) * t;
                                            	} else {
                                            		tmp = t_1;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            def code(x, y, z, t, a, b):
                                            	t_1 = (b - z) * y
                                            	tmp = 0
                                            	if y <= -7.5e+20:
                                            		tmp = t_1
                                            	elif y <= 4.2e-115:
                                            		tmp = (z + x) + a
                                            	elif y <= 3.1e+17:
                                            		tmp = (b - a) * t
                                            	else:
                                            		tmp = t_1
                                            	return tmp
                                            
                                            function code(x, y, z, t, a, b)
                                            	t_1 = Float64(Float64(b - z) * y)
                                            	tmp = 0.0
                                            	if (y <= -7.5e+20)
                                            		tmp = t_1;
                                            	elseif (y <= 4.2e-115)
                                            		tmp = Float64(Float64(z + x) + a);
                                            	elseif (y <= 3.1e+17)
                                            		tmp = Float64(Float64(b - a) * t);
                                            	else
                                            		tmp = t_1;
                                            	end
                                            	return tmp
                                            end
                                            
                                            function tmp_2 = code(x, y, z, t, a, b)
                                            	t_1 = (b - z) * y;
                                            	tmp = 0.0;
                                            	if (y <= -7.5e+20)
                                            		tmp = t_1;
                                            	elseif (y <= 4.2e-115)
                                            		tmp = (z + x) + a;
                                            	elseif (y <= 3.1e+17)
                                            		tmp = (b - a) * t;
                                            	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]}, If[LessEqual[y, -7.5e+20], t$95$1, If[LessEqual[y, 4.2e-115], N[(N[(z + x), $MachinePrecision] + a), $MachinePrecision], If[LessEqual[y, 3.1e+17], N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            \begin{array}{l}
                                            t_1 := \left(b - z\right) \cdot y\\
                                            \mathbf{if}\;y \leq -7.5 \cdot 10^{+20}:\\
                                            \;\;\;\;t\_1\\
                                            
                                            \mathbf{elif}\;y \leq 4.2 \cdot 10^{-115}:\\
                                            \;\;\;\;\left(z + x\right) + a\\
                                            
                                            \mathbf{elif}\;y \leq 3.1 \cdot 10^{+17}:\\
                                            \;\;\;\;\left(b - a\right) \cdot t\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;t\_1\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            
                                            Derivation
                                            1. Split input into 3 regimes
                                            2. if y < -7.5e20 or 3.1e17 < y

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

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

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

                                              if -7.5e20 < y < 4.20000000000000003e-115

                                              1. Initial program 97.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. mul-1-negN/A

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

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

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

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

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

                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\left(0 - -1\right) - y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                18. metadata-evalN/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) \]
                                                21. +-commutativeN/A

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

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

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

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

                                                  \[\leadsto \left(x + z\right) + a \]
                                                3. Step-by-step derivation
                                                  1. Applied rewrites52.4%

                                                    \[\leadsto \left(z + x\right) + a \]

                                                  if 4.20000000000000003e-115 < y < 3.1e17

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

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

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

                                                Alternative 12: 56.3% accurate, 1.4× speedup?

                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - a\right) \cdot t\\ \mathbf{if}\;t \leq -7.2 \cdot 10^{+87}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -2.15 \cdot 10^{+63}:\\ \;\;\;\;\left(y - 2\right) \cdot b\\ \mathbf{elif}\;t \leq 3.1 \cdot 10^{+17}:\\ \;\;\;\;\left(z + x\right) + a\\ \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 -7.2e+87)
                                                     t_1
                                                     (if (<= t -2.15e+63)
                                                       (* (- y 2.0) b)
                                                       (if (<= t 3.1e+17) (+ (+ z x) a) 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 <= -7.2e+87) {
                                                		tmp = t_1;
                                                	} else if (t <= -2.15e+63) {
                                                		tmp = (y - 2.0) * b;
                                                	} else if (t <= 3.1e+17) {
                                                		tmp = (z + x) + a;
                                                	} else {
                                                		tmp = t_1;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                real(8) function code(x, y, z, t, a, b)
                                                    real(8), intent (in) :: x
                                                    real(8), intent (in) :: y
                                                    real(8), intent (in) :: z
                                                    real(8), intent (in) :: t
                                                    real(8), intent (in) :: a
                                                    real(8), intent (in) :: b
                                                    real(8) :: t_1
                                                    real(8) :: tmp
                                                    t_1 = (b - a) * t
                                                    if (t <= (-7.2d+87)) then
                                                        tmp = t_1
                                                    else if (t <= (-2.15d+63)) then
                                                        tmp = (y - 2.0d0) * b
                                                    else if (t <= 3.1d+17) then
                                                        tmp = (z + x) + a
                                                    else
                                                        tmp = t_1
                                                    end if
                                                    code = tmp
                                                end function
                                                
                                                public static double code(double x, double y, double z, double t, double a, double b) {
                                                	double t_1 = (b - a) * t;
                                                	double tmp;
                                                	if (t <= -7.2e+87) {
                                                		tmp = t_1;
                                                	} else if (t <= -2.15e+63) {
                                                		tmp = (y - 2.0) * b;
                                                	} else if (t <= 3.1e+17) {
                                                		tmp = (z + x) + a;
                                                	} else {
                                                		tmp = t_1;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                def code(x, y, z, t, a, b):
                                                	t_1 = (b - a) * t
                                                	tmp = 0
                                                	if t <= -7.2e+87:
                                                		tmp = t_1
                                                	elif t <= -2.15e+63:
                                                		tmp = (y - 2.0) * b
                                                	elif t <= 3.1e+17:
                                                		tmp = (z + x) + a
                                                	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 <= -7.2e+87)
                                                		tmp = t_1;
                                                	elseif (t <= -2.15e+63)
                                                		tmp = Float64(Float64(y - 2.0) * b);
                                                	elseif (t <= 3.1e+17)
                                                		tmp = Float64(Float64(z + x) + a);
                                                	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 <= -7.2e+87)
                                                		tmp = t_1;
                                                	elseif (t <= -2.15e+63)
                                                		tmp = (y - 2.0) * b;
                                                	elseif (t <= 3.1e+17)
                                                		tmp = (z + x) + a;
                                                	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, -7.2e+87], t$95$1, If[LessEqual[t, -2.15e+63], N[(N[(y - 2.0), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[t, 3.1e+17], N[(N[(z + x), $MachinePrecision] + a), $MachinePrecision], t$95$1]]]]
                                                
                                                \begin{array}{l}
                                                
                                                \\
                                                \begin{array}{l}
                                                t_1 := \left(b - a\right) \cdot t\\
                                                \mathbf{if}\;t \leq -7.2 \cdot 10^{+87}:\\
                                                \;\;\;\;t\_1\\
                                                
                                                \mathbf{elif}\;t \leq -2.15 \cdot 10^{+63}:\\
                                                \;\;\;\;\left(y - 2\right) \cdot b\\
                                                
                                                \mathbf{elif}\;t \leq 3.1 \cdot 10^{+17}:\\
                                                \;\;\;\;\left(z + x\right) + a\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;t\_1\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 3 regimes
                                                2. if t < -7.19999999999999988e87 or 3.1e17 < t

                                                  1. Initial program 91.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--.f6467.3

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

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

                                                  if -7.19999999999999988e87 < t < -2.15e63

                                                  1. Initial program 88.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-+.f6468.3

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

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

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

                                                    if -2.15e63 < t < 3.1e17

                                                    1. Initial program 96.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. mul-1-negN/A

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

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

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

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

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

                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\left(0 - -1\right) - y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                      18. metadata-evalN/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) \]
                                                      21. +-commutativeN/A

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

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

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

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

                                                        \[\leadsto \left(x + z\right) + a \]
                                                      3. Step-by-step derivation
                                                        1. Applied rewrites49.4%

                                                          \[\leadsto \left(z + x\right) + a \]
                                                      4. Recombined 3 regimes into one program.
                                                      5. Add Preprocessing

                                                      Alternative 13: 69.6% 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 -9.5 \cdot 10^{+121}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 7.5 \cdot 10^{+79}:\\ \;\;\;\;\mathsf{fma}\left(1 - t, a, z\right) + x\\ \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 -9.5e+121)
                                                           t_1
                                                           (if (<= b 7.5e+79) (+ (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 <= -9.5e+121) {
                                                      		tmp = t_1;
                                                      	} else if (b <= 7.5e+79) {
                                                      		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 <= -9.5e+121)
                                                      		tmp = t_1;
                                                      	elseif (b <= 7.5e+79)
                                                      		tmp = Float64(fma(Float64(1.0 - t), a, 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, -9.5e+121], t$95$1, If[LessEqual[b, 7.5e+79], N[(N[(N[(1.0 - t), $MachinePrecision] * a + z), $MachinePrecision] + 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 -9.5 \cdot 10^{+121}:\\
                                                      \;\;\;\;t\_1\\
                                                      
                                                      \mathbf{elif}\;b \leq 7.5 \cdot 10^{+79}:\\
                                                      \;\;\;\;\mathsf{fma}\left(1 - t, a, z\right) + x\\
                                                      
                                                      \mathbf{else}:\\
                                                      \;\;\;\;t\_1\\
                                                      
                                                      
                                                      \end{array}
                                                      \end{array}
                                                      
                                                      Derivation
                                                      1. Split input into 2 regimes
                                                      2. if b < -9.49999999999999949e121 or 7.49999999999999967e79 < b

                                                        1. Initial program 85.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-+.f6478.5

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

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

                                                        if -9.49999999999999949e121 < b < 7.49999999999999967e79

                                                        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 y around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                        Alternative 14: 62.1% 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 -1.25 \cdot 10^{+46}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 1.5 \cdot 10^{+14}:\\ \;\;\;\;\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.25e+46) t_1 (if (<= b 1.5e+14) (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.25e+46) {
                                                        		tmp = t_1;
                                                        	} else if (b <= 1.5e+14) {
                                                        		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.25e+46)
                                                        		tmp = t_1;
                                                        	elseif (b <= 1.5e+14)
                                                        		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.25e+46], t$95$1, If[LessEqual[b, 1.5e+14], 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.25 \cdot 10^{+46}:\\
                                                        \;\;\;\;t\_1\\
                                                        
                                                        \mathbf{elif}\;b \leq 1.5 \cdot 10^{+14}:\\
                                                        \;\;\;\;\mathsf{fma}\left(1 - t, a, x\right)\\
                                                        
                                                        \mathbf{else}:\\
                                                        \;\;\;\;t\_1\\
                                                        
                                                        
                                                        \end{array}
                                                        \end{array}
                                                        
                                                        Derivation
                                                        1. Split input into 2 regimes
                                                        2. if b < -1.2500000000000001e46 or 1.5e14 < b

                                                          1. Initial program 88.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 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-+.f6470.1

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

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

                                                          if -1.2500000000000001e46 < b < 1.5e14

                                                          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 y around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                \[\leadsto \mathsf{fma}\left(1 - t, a, x\right) \]
                                                            4. Recombined 2 regimes into one program.
                                                            5. Final simplification63.5%

                                                              \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.25 \cdot 10^{+46}:\\ \;\;\;\;b \cdot \left(\left(t + y\right) - 2\right)\\ \mathbf{elif}\;b \leq 1.5 \cdot 10^{+14}:\\ \;\;\;\;\mathsf{fma}\left(1 - t, a, x\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(\left(t + y\right) - 2\right)\\ \end{array} \]
                                                            6. Add Preprocessing

                                                            Alternative 15: 58.6% accurate, 1.7× speedup?

                                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - z\right) \cdot y\\ \mathbf{if}\;y \leq -2 \cdot 10^{+68}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 4.2 \cdot 10^{+44}:\\ \;\;\;\;\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 z) y)))
                                                               (if (<= y -2e+68) t_1 (if (<= y 4.2e+44) (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 - z) * y;
                                                            	double tmp;
                                                            	if (y <= -2e+68) {
                                                            		tmp = t_1;
                                                            	} else if (y <= 4.2e+44) {
                                                            		tmp = fma((1.0 - t), a, x);
                                                            	} else {
                                                            		tmp = t_1;
                                                            	}
                                                            	return tmp;
                                                            }
                                                            
                                                            function code(x, y, z, t, a, b)
                                                            	t_1 = Float64(Float64(b - z) * y)
                                                            	tmp = 0.0
                                                            	if (y <= -2e+68)
                                                            		tmp = t_1;
                                                            	elseif (y <= 4.2e+44)
                                                            		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[(N[(b - z), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -2e+68], t$95$1, If[LessEqual[y, 4.2e+44], N[(N[(1.0 - t), $MachinePrecision] * a + x), $MachinePrecision], t$95$1]]]
                                                            
                                                            \begin{array}{l}
                                                            
                                                            \\
                                                            \begin{array}{l}
                                                            t_1 := \left(b - z\right) \cdot y\\
                                                            \mathbf{if}\;y \leq -2 \cdot 10^{+68}:\\
                                                            \;\;\;\;t\_1\\
                                                            
                                                            \mathbf{elif}\;y \leq 4.2 \cdot 10^{+44}:\\
                                                            \;\;\;\;\mathsf{fma}\left(1 - t, a, x\right)\\
                                                            
                                                            \mathbf{else}:\\
                                                            \;\;\;\;t\_1\\
                                                            
                                                            
                                                            \end{array}
                                                            \end{array}
                                                            
                                                            Derivation
                                                            1. Split input into 2 regimes
                                                            2. if y < -1.99999999999999991e68 or 4.19999999999999974e44 < y

                                                              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 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--.f6475.0

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

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

                                                              if -1.99999999999999991e68 < y < 4.19999999999999974e44

                                                              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 y around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                Alternative 16: 46.6% accurate, 1.8× speedup?

                                                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -9 \cdot 10^{+121}:\\ \;\;\;\;\left(y - 2\right) \cdot b\\ \mathbf{elif}\;b \leq 1.86 \cdot 10^{+90}:\\ \;\;\;\;\left(z + x\right) + a\\ \mathbf{else}:\\ \;\;\;\;\left(t - 2\right) \cdot b\\ \end{array} \end{array} \]
                                                                (FPCore (x y z t a b)
                                                                 :precision binary64
                                                                 (if (<= b -9e+121)
                                                                   (* (- y 2.0) b)
                                                                   (if (<= b 1.86e+90) (+ (+ z x) a) (* (- t 2.0) b))))
                                                                double code(double x, double y, double z, double t, double a, double b) {
                                                                	double tmp;
                                                                	if (b <= -9e+121) {
                                                                		tmp = (y - 2.0) * b;
                                                                	} else if (b <= 1.86e+90) {
                                                                		tmp = (z + x) + a;
                                                                	} else {
                                                                		tmp = (t - 2.0) * b;
                                                                	}
                                                                	return tmp;
                                                                }
                                                                
                                                                real(8) function code(x, y, z, t, a, b)
                                                                    real(8), intent (in) :: x
                                                                    real(8), intent (in) :: y
                                                                    real(8), intent (in) :: z
                                                                    real(8), intent (in) :: t
                                                                    real(8), intent (in) :: a
                                                                    real(8), intent (in) :: b
                                                                    real(8) :: tmp
                                                                    if (b <= (-9d+121)) then
                                                                        tmp = (y - 2.0d0) * b
                                                                    else if (b <= 1.86d+90) then
                                                                        tmp = (z + x) + a
                                                                    else
                                                                        tmp = (t - 2.0d0) * b
                                                                    end if
                                                                    code = tmp
                                                                end function
                                                                
                                                                public static double code(double x, double y, double z, double t, double a, double b) {
                                                                	double tmp;
                                                                	if (b <= -9e+121) {
                                                                		tmp = (y - 2.0) * b;
                                                                	} else if (b <= 1.86e+90) {
                                                                		tmp = (z + x) + a;
                                                                	} else {
                                                                		tmp = (t - 2.0) * b;
                                                                	}
                                                                	return tmp;
                                                                }
                                                                
                                                                def code(x, y, z, t, a, b):
                                                                	tmp = 0
                                                                	if b <= -9e+121:
                                                                		tmp = (y - 2.0) * b
                                                                	elif b <= 1.86e+90:
                                                                		tmp = (z + x) + a
                                                                	else:
                                                                		tmp = (t - 2.0) * b
                                                                	return tmp
                                                                
                                                                function code(x, y, z, t, a, b)
                                                                	tmp = 0.0
                                                                	if (b <= -9e+121)
                                                                		tmp = Float64(Float64(y - 2.0) * b);
                                                                	elseif (b <= 1.86e+90)
                                                                		tmp = Float64(Float64(z + x) + a);
                                                                	else
                                                                		tmp = Float64(Float64(t - 2.0) * b);
                                                                	end
                                                                	return tmp
                                                                end
                                                                
                                                                function tmp_2 = code(x, y, z, t, a, b)
                                                                	tmp = 0.0;
                                                                	if (b <= -9e+121)
                                                                		tmp = (y - 2.0) * b;
                                                                	elseif (b <= 1.86e+90)
                                                                		tmp = (z + x) + a;
                                                                	else
                                                                		tmp = (t - 2.0) * b;
                                                                	end
                                                                	tmp_2 = tmp;
                                                                end
                                                                
                                                                code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -9e+121], N[(N[(y - 2.0), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[b, 1.86e+90], N[(N[(z + x), $MachinePrecision] + a), $MachinePrecision], N[(N[(t - 2.0), $MachinePrecision] * b), $MachinePrecision]]]
                                                                
                                                                \begin{array}{l}
                                                                
                                                                \\
                                                                \begin{array}{l}
                                                                \mathbf{if}\;b \leq -9 \cdot 10^{+121}:\\
                                                                \;\;\;\;\left(y - 2\right) \cdot b\\
                                                                
                                                                \mathbf{elif}\;b \leq 1.86 \cdot 10^{+90}:\\
                                                                \;\;\;\;\left(z + x\right) + a\\
                                                                
                                                                \mathbf{else}:\\
                                                                \;\;\;\;\left(t - 2\right) \cdot b\\
                                                                
                                                                
                                                                \end{array}
                                                                \end{array}
                                                                
                                                                Derivation
                                                                1. Split input into 3 regimes
                                                                2. if b < -9.0000000000000007e121

                                                                  1. Initial program 80.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-+.f6481.7

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

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

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

                                                                    if -9.0000000000000007e121 < b < 1.8600000000000001e90

                                                                    1. Initial program 98.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. mul-1-negN/A

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

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

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

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

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

                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\left(0 - -1\right) - y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                      18. metadata-evalN/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) \]
                                                                      21. +-commutativeN/A

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

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

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

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

                                                                        \[\leadsto \left(x + z\right) + a \]
                                                                      3. Step-by-step derivation
                                                                        1. Applied rewrites48.6%

                                                                          \[\leadsto \left(z + x\right) + a \]

                                                                        if 1.8600000000000001e90 < b

                                                                        1. Initial program 89.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-+.f6477.0

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

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

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

                                                                        Alternative 17: 44.3% accurate, 1.8× speedup?

                                                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -1.32 \cdot 10^{+122}:\\ \;\;\;\;b \cdot y\\ \mathbf{elif}\;b \leq 1.86 \cdot 10^{+90}:\\ \;\;\;\;\left(z + x\right) + a\\ \mathbf{else}:\\ \;\;\;\;\left(t - 2\right) \cdot b\\ \end{array} \end{array} \]
                                                                        (FPCore (x y z t a b)
                                                                         :precision binary64
                                                                         (if (<= b -1.32e+122)
                                                                           (* b y)
                                                                           (if (<= b 1.86e+90) (+ (+ z x) a) (* (- t 2.0) b))))
                                                                        double code(double x, double y, double z, double t, double a, double b) {
                                                                        	double tmp;
                                                                        	if (b <= -1.32e+122) {
                                                                        		tmp = b * y;
                                                                        	} else if (b <= 1.86e+90) {
                                                                        		tmp = (z + x) + a;
                                                                        	} else {
                                                                        		tmp = (t - 2.0) * b;
                                                                        	}
                                                                        	return tmp;
                                                                        }
                                                                        
                                                                        real(8) function code(x, y, z, t, a, b)
                                                                            real(8), intent (in) :: x
                                                                            real(8), intent (in) :: y
                                                                            real(8), intent (in) :: z
                                                                            real(8), intent (in) :: t
                                                                            real(8), intent (in) :: a
                                                                            real(8), intent (in) :: b
                                                                            real(8) :: tmp
                                                                            if (b <= (-1.32d+122)) then
                                                                                tmp = b * y
                                                                            else if (b <= 1.86d+90) then
                                                                                tmp = (z + x) + a
                                                                            else
                                                                                tmp = (t - 2.0d0) * b
                                                                            end if
                                                                            code = tmp
                                                                        end function
                                                                        
                                                                        public static double code(double x, double y, double z, double t, double a, double b) {
                                                                        	double tmp;
                                                                        	if (b <= -1.32e+122) {
                                                                        		tmp = b * y;
                                                                        	} else if (b <= 1.86e+90) {
                                                                        		tmp = (z + x) + a;
                                                                        	} else {
                                                                        		tmp = (t - 2.0) * b;
                                                                        	}
                                                                        	return tmp;
                                                                        }
                                                                        
                                                                        def code(x, y, z, t, a, b):
                                                                        	tmp = 0
                                                                        	if b <= -1.32e+122:
                                                                        		tmp = b * y
                                                                        	elif b <= 1.86e+90:
                                                                        		tmp = (z + x) + a
                                                                        	else:
                                                                        		tmp = (t - 2.0) * b
                                                                        	return tmp
                                                                        
                                                                        function code(x, y, z, t, a, b)
                                                                        	tmp = 0.0
                                                                        	if (b <= -1.32e+122)
                                                                        		tmp = Float64(b * y);
                                                                        	elseif (b <= 1.86e+90)
                                                                        		tmp = Float64(Float64(z + x) + a);
                                                                        	else
                                                                        		tmp = Float64(Float64(t - 2.0) * b);
                                                                        	end
                                                                        	return tmp
                                                                        end
                                                                        
                                                                        function tmp_2 = code(x, y, z, t, a, b)
                                                                        	tmp = 0.0;
                                                                        	if (b <= -1.32e+122)
                                                                        		tmp = b * y;
                                                                        	elseif (b <= 1.86e+90)
                                                                        		tmp = (z + x) + a;
                                                                        	else
                                                                        		tmp = (t - 2.0) * b;
                                                                        	end
                                                                        	tmp_2 = tmp;
                                                                        end
                                                                        
                                                                        code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.32e+122], N[(b * y), $MachinePrecision], If[LessEqual[b, 1.86e+90], N[(N[(z + x), $MachinePrecision] + a), $MachinePrecision], N[(N[(t - 2.0), $MachinePrecision] * b), $MachinePrecision]]]
                                                                        
                                                                        \begin{array}{l}
                                                                        
                                                                        \\
                                                                        \begin{array}{l}
                                                                        \mathbf{if}\;b \leq -1.32 \cdot 10^{+122}:\\
                                                                        \;\;\;\;b \cdot y\\
                                                                        
                                                                        \mathbf{elif}\;b \leq 1.86 \cdot 10^{+90}:\\
                                                                        \;\;\;\;\left(z + x\right) + a\\
                                                                        
                                                                        \mathbf{else}:\\
                                                                        \;\;\;\;\left(t - 2\right) \cdot b\\
                                                                        
                                                                        
                                                                        \end{array}
                                                                        \end{array}
                                                                        
                                                                        Derivation
                                                                        1. Split input into 3 regimes
                                                                        2. if b < -1.31999999999999992e122

                                                                          1. Initial program 80.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-+.f6481.7

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

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

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

                                                                            if -1.31999999999999992e122 < b < 1.8600000000000001e90

                                                                            1. Initial program 98.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. mul-1-negN/A

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

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

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

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

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

                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\left(0 - -1\right) - y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                              18. metadata-evalN/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) \]
                                                                              21. +-commutativeN/A

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

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

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

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

                                                                                \[\leadsto \left(x + z\right) + a \]
                                                                              3. Step-by-step derivation
                                                                                1. Applied rewrites48.6%

                                                                                  \[\leadsto \left(z + x\right) + a \]

                                                                                if 1.8600000000000001e90 < b

                                                                                1. Initial program 89.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-+.f6477.0

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

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

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

                                                                                Alternative 18: 41.8% accurate, 1.9× speedup?

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

                                                                                  1. Initial program 80.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-+.f6481.7

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

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

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

                                                                                    if -1.31999999999999992e122 < b < 2.4500000000000001e92

                                                                                    1. Initial program 98.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. mul-1-negN/A

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

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

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

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

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

                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\left(0 - -1\right) - y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                      18. metadata-evalN/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) \]
                                                                                      21. +-commutativeN/A

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

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

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

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

                                                                                        \[\leadsto \left(x + z\right) + a \]
                                                                                      3. Step-by-step derivation
                                                                                        1. Applied rewrites48.6%

                                                                                          \[\leadsto \left(z + x\right) + a \]

                                                                                        if 2.4500000000000001e92 < b

                                                                                        1. Initial program 89.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-+.f6477.0

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

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

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

                                                                                            \[\leadsto b \cdot \color{blue}{t} \]
                                                                                        8. Recombined 3 regimes into one program.
                                                                                        9. Add Preprocessing

                                                                                        Alternative 19: 33.9% accurate, 2.1× speedup?

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

                                                                                          1. Initial program 80.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-+.f6481.7

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

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

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

                                                                                            if -1.15e122 < b < 3.69999999999999996e80

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                  \[\leadsto z + x \]

                                                                                                if 3.69999999999999996e80 < b

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

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

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

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

                                                                                                    \[\leadsto b \cdot \color{blue}{t} \]
                                                                                                8. Recombined 3 regimes into one program.
                                                                                                9. Add Preprocessing

                                                                                                Alternative 20: 34.0% accurate, 2.1× speedup?

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

                                                                                                  1. Initial program 86.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 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-+.f6476.0

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

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

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

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

                                                                                                    if -1.4599999999999999e80 < b < 3.69999999999999996e80

                                                                                                    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 y around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                      Alternative 21: 25.6% accurate, 9.3× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                          Reproduce

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