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

Percentage Accurate: 95.4% → 98.6%
Time: 11.9s
Alternatives: 24
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 24 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.6% 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 - z, y, \mathsf{fma}\left(t - 2, b, z + x\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1
         (+ (* b (- (+ t y) 2.0)) (- (- x (* z (- y 1.0))) (* a (- t 1.0))))))
   (if (<= t_1 INFINITY) t_1 (fma (- b z) y (fma (- t 2.0) b (+ z x))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (b * ((t + y) - 2.0)) + ((x - (z * (y - 1.0))) - (a * (t - 1.0)));
	double tmp;
	if (t_1 <= ((double) INFINITY)) {
		tmp = t_1;
	} else {
		tmp = fma((b - z), y, fma((t - 2.0), b, (z + x)));
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(b * Float64(Float64(t + y) - 2.0)) + Float64(Float64(x - Float64(z * Float64(y - 1.0))) - Float64(a * Float64(t - 1.0))))
	tmp = 0.0
	if (t_1 <= Inf)
		tmp = t_1;
	else
		tmp = fma(Float64(b - z), y, fma(Float64(t - 2.0), b, Float64(z + x)));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b * N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision] + N[(N[(x - N[(z * N[(y - 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(t - 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(b - z), $MachinePrecision] * y + N[(N[(t - 2.0), $MachinePrecision] * b + N[(z + x), $MachinePrecision]), $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 - z, y, \mathsf{fma}\left(t - 2, b, z + x\right)\right)\\


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

    1. Initial program 100.0%

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

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

    1. Initial program 0.0%

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

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

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

    \[\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 - z, y, \mathsf{fma}\left(t - 2, b, z + x\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 35.8% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.05 \cdot 10^{+111}:\\ \;\;\;\;\left(-a\right) \cdot t\\ \mathbf{elif}\;t \leq -0.000108:\\ \;\;\;\;\left(t - 2\right) \cdot b\\ \mathbf{elif}\;t \leq 1.1 \cdot 10^{-193}:\\ \;\;\;\;a + x\\ \mathbf{elif}\;t \leq 7.2 \cdot 10^{-17}:\\ \;\;\;\;\left(y - 2\right) \cdot b\\ \mathbf{elif}\;t \leq 1.95 \cdot 10^{+80}:\\ \;\;\;\;z + x\\ \mathbf{else}:\\ \;\;\;\;b \cdot t\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<= t -1.05e+111)
   (* (- a) t)
   (if (<= t -0.000108)
     (* (- t 2.0) b)
     (if (<= t 1.1e-193)
       (+ a x)
       (if (<= t 7.2e-17)
         (* (- y 2.0) b)
         (if (<= t 1.95e+80) (+ z x) (* b t)))))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (t <= -1.05e+111) {
		tmp = -a * t;
	} else if (t <= -0.000108) {
		tmp = (t - 2.0) * b;
	} else if (t <= 1.1e-193) {
		tmp = a + x;
	} else if (t <= 7.2e-17) {
		tmp = (y - 2.0) * b;
	} else if (t <= 1.95e+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 (t <= (-1.05d+111)) then
        tmp = -a * t
    else if (t <= (-0.000108d0)) then
        tmp = (t - 2.0d0) * b
    else if (t <= 1.1d-193) then
        tmp = a + x
    else if (t <= 7.2d-17) then
        tmp = (y - 2.0d0) * b
    else if (t <= 1.95d+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 (t <= -1.05e+111) {
		tmp = -a * t;
	} else if (t <= -0.000108) {
		tmp = (t - 2.0) * b;
	} else if (t <= 1.1e-193) {
		tmp = a + x;
	} else if (t <= 7.2e-17) {
		tmp = (y - 2.0) * b;
	} else if (t <= 1.95e+80) {
		tmp = z + x;
	} else {
		tmp = b * t;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if t <= -1.05e+111:
		tmp = -a * t
	elif t <= -0.000108:
		tmp = (t - 2.0) * b
	elif t <= 1.1e-193:
		tmp = a + x
	elif t <= 7.2e-17:
		tmp = (y - 2.0) * b
	elif t <= 1.95e+80:
		tmp = z + x
	else:
		tmp = b * t
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (t <= -1.05e+111)
		tmp = Float64(Float64(-a) * t);
	elseif (t <= -0.000108)
		tmp = Float64(Float64(t - 2.0) * b);
	elseif (t <= 1.1e-193)
		tmp = Float64(a + x);
	elseif (t <= 7.2e-17)
		tmp = Float64(Float64(y - 2.0) * b);
	elseif (t <= 1.95e+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 (t <= -1.05e+111)
		tmp = -a * t;
	elseif (t <= -0.000108)
		tmp = (t - 2.0) * b;
	elseif (t <= 1.1e-193)
		tmp = a + x;
	elseif (t <= 7.2e-17)
		tmp = (y - 2.0) * b;
	elseif (t <= 1.95e+80)
		tmp = z + x;
	else
		tmp = b * t;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -1.05e+111], N[((-a) * t), $MachinePrecision], If[LessEqual[t, -0.000108], N[(N[(t - 2.0), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[t, 1.1e-193], N[(a + x), $MachinePrecision], If[LessEqual[t, 7.2e-17], N[(N[(y - 2.0), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[t, 1.95e+80], N[(z + x), $MachinePrecision], N[(b * t), $MachinePrecision]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.05 \cdot 10^{+111}:\\
\;\;\;\;\left(-a\right) \cdot t\\

\mathbf{elif}\;t \leq -0.000108:\\
\;\;\;\;\left(t - 2\right) \cdot b\\

\mathbf{elif}\;t \leq 1.1 \cdot 10^{-193}:\\
\;\;\;\;a + x\\

\mathbf{elif}\;t \leq 7.2 \cdot 10^{-17}:\\
\;\;\;\;\left(y - 2\right) \cdot b\\

\mathbf{elif}\;t \leq 1.95 \cdot 10^{+80}:\\
\;\;\;\;z + x\\

\mathbf{else}:\\
\;\;\;\;b \cdot t\\


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if t < -1.04999999999999997e111

    1. Initial program 89.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--.f6480.2

        \[\leadsto \color{blue}{\left(b - a\right)} \cdot t \]
    5. Applied rewrites80.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 rewrites63.7%

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

      if -1.04999999999999997e111 < t < -1.08e-4

      1. Initial program 96.5%

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

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

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

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

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

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

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

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

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

        if -1.08e-4 < t < 1.09999999999999988e-193

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
          20. lower-+.f6469.1

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

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

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

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

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

              \[\leadsto a + x \]

            if 1.09999999999999988e-193 < t < 7.1999999999999999e-17

            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 b around inf

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

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

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

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

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

                \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
            5. Applied rewrites50.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 rewrites50.3%

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

              if 7.1999999999999999e-17 < t < 1.94999999999999999e80

              1. Initial program 95.5%

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

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

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

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

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

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

                    \[\leadsto z + x \]

                  if 1.94999999999999999e80 < t

                  1. Initial program 87.7%

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

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

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

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

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

                  Alternative 3: 58.1% accurate, 1.1× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(1 - y, z, x\right)\\ t_2 := \left(b - a\right) \cdot t\\ \mathbf{if}\;t \leq -4.9 \cdot 10^{+35}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq 8.4 \cdot 10^{-234}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 2.45 \cdot 10^{-12}:\\ \;\;\;\;\mathsf{fma}\left(y - 2, b, a\right)\\ \mathbf{elif}\;t \leq 2.75 \cdot 10^{+40}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                  (FPCore (x y z t a b)
                   :precision binary64
                   (let* ((t_1 (fma (- 1.0 y) z x)) (t_2 (* (- b a) t)))
                     (if (<= t -4.9e+35)
                       t_2
                       (if (<= t 8.4e-234)
                         t_1
                         (if (<= t 2.45e-12)
                           (fma (- y 2.0) b a)
                           (if (<= t 2.75e+40) t_1 t_2))))))
                  double code(double x, double y, double z, double t, double a, double b) {
                  	double t_1 = fma((1.0 - y), z, x);
                  	double t_2 = (b - a) * t;
                  	double tmp;
                  	if (t <= -4.9e+35) {
                  		tmp = t_2;
                  	} else if (t <= 8.4e-234) {
                  		tmp = t_1;
                  	} else if (t <= 2.45e-12) {
                  		tmp = fma((y - 2.0), b, a);
                  	} else if (t <= 2.75e+40) {
                  		tmp = t_1;
                  	} else {
                  		tmp = t_2;
                  	}
                  	return tmp;
                  }
                  
                  function code(x, y, z, t, a, b)
                  	t_1 = fma(Float64(1.0 - y), z, x)
                  	t_2 = Float64(Float64(b - a) * t)
                  	tmp = 0.0
                  	if (t <= -4.9e+35)
                  		tmp = t_2;
                  	elseif (t <= 8.4e-234)
                  		tmp = t_1;
                  	elseif (t <= 2.45e-12)
                  		tmp = fma(Float64(y - 2.0), b, a);
                  	elseif (t <= 2.75e+40)
                  		tmp = t_1;
                  	else
                  		tmp = t_2;
                  	end
                  	return tmp
                  end
                  
                  code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(1.0 - y), $MachinePrecision] * z + x), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -4.9e+35], t$95$2, If[LessEqual[t, 8.4e-234], t$95$1, If[LessEqual[t, 2.45e-12], N[(N[(y - 2.0), $MachinePrecision] * b + a), $MachinePrecision], If[LessEqual[t, 2.75e+40], t$95$1, t$95$2]]]]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_1 := \mathsf{fma}\left(1 - y, z, x\right)\\
                  t_2 := \left(b - a\right) \cdot t\\
                  \mathbf{if}\;t \leq -4.9 \cdot 10^{+35}:\\
                  \;\;\;\;t\_2\\
                  
                  \mathbf{elif}\;t \leq 8.4 \cdot 10^{-234}:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{elif}\;t \leq 2.45 \cdot 10^{-12}:\\
                  \;\;\;\;\mathsf{fma}\left(y - 2, b, a\right)\\
                  
                  \mathbf{elif}\;t \leq 2.75 \cdot 10^{+40}:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;t\_2\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 3 regimes
                  2. if t < -4.90000000000000025e35 or 2.74999999999999987e40 < t

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

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

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

                    if -4.90000000000000025e35 < t < 8.39999999999999965e-234 or 2.44999999999999986e-12 < t < 2.74999999999999987e40

                    1. Initial program 95.5%

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

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

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

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

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

                      if 8.39999999999999965e-234 < t < 2.44999999999999986e-12

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                        20. lower-+.f6477.3

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

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

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

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

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

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

                        Alternative 4: 55.7% accurate, 1.1× speedup?

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

                          1. Initial program 90.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 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--.f6469.9

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

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

                          if -17000 < t < -3.6000000000000001e-166

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                            20. lower-+.f6475.9

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

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

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

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

                            if -3.6000000000000001e-166 < t < 3.00000000000000012e-26

                            1. Initial program 96.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 z around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                              20. lower-+.f6470.2

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

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

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

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

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

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

                                if 3.00000000000000012e-26 < t < 2.4e40

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                                  20. lower-+.f6476.6

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

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

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

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

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

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

                                  Alternative 5: 87.9% accurate, 1.1× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    if -7.8e96 < z < 1.14999999999999997e77

                                    1. Initial program 97.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                                      20. lower-+.f6493.3

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

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

                                    if 1.14999999999999997e77 < z

                                    1. Initial program 85.1%

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

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

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

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

                                  Alternative 6: 87.7% accurate, 1.1× speedup?

                                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right)\right)\\ \mathbf{if}\;b \leq -1.12 \cdot 10^{+36}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 1.22 \cdot 10^{+91}:\\ \;\;\;\;\mathsf{fma}\left(1 - y, z, \mathsf{fma}\left(1 - t, a, x\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                  (FPCore (x y z t a b)
                                   :precision binary64
                                   (let* ((t_1 (fma (- 1.0 t) a (fma (- (+ t y) 2.0) b x))))
                                     (if (<= b -1.12e+36)
                                       t_1
                                       (if (<= b 1.22e+91) (fma (- 1.0 y) z (fma (- 1.0 t) a x)) t_1))))
                                  double code(double x, double y, double z, double t, double a, double b) {
                                  	double t_1 = fma((1.0 - t), a, fma(((t + y) - 2.0), b, x));
                                  	double tmp;
                                  	if (b <= -1.12e+36) {
                                  		tmp = t_1;
                                  	} else if (b <= 1.22e+91) {
                                  		tmp = fma((1.0 - y), z, fma((1.0 - t), a, x));
                                  	} else {
                                  		tmp = t_1;
                                  	}
                                  	return tmp;
                                  }
                                  
                                  function code(x, y, z, t, a, b)
                                  	t_1 = fma(Float64(1.0 - t), a, fma(Float64(Float64(t + y) - 2.0), b, x))
                                  	tmp = 0.0
                                  	if (b <= -1.12e+36)
                                  		tmp = t_1;
                                  	elseif (b <= 1.22e+91)
                                  		tmp = fma(Float64(1.0 - y), z, fma(Float64(1.0 - t), a, x));
                                  	else
                                  		tmp = t_1;
                                  	end
                                  	return tmp
                                  end
                                  
                                  code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(1.0 - t), $MachinePrecision] * a + N[(N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision] * b + x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.12e+36], t$95$1, If[LessEqual[b, 1.22e+91], N[(N[(1.0 - y), $MachinePrecision] * z + N[(N[(1.0 - t), $MachinePrecision] * a + x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                  
                                  \begin{array}{l}
                                  
                                  \\
                                  \begin{array}{l}
                                  t_1 := \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right)\right)\\
                                  \mathbf{if}\;b \leq -1.12 \cdot 10^{+36}:\\
                                  \;\;\;\;t\_1\\
                                  
                                  \mathbf{elif}\;b \leq 1.22 \cdot 10^{+91}:\\
                                  \;\;\;\;\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 < -1.11999999999999999e36 or 1.2199999999999999e91 < b

                                    1. Initial program 86.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 z around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                                      20. lower-+.f6491.8

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

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

                                    if -1.11999999999999999e36 < b < 1.2199999999999999e91

                                    1. Initial program 99.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  Alternative 7: 50.5% accurate, 1.1× speedup?

                                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - a\right) \cdot t\\ \mathbf{if}\;t \leq -3.4 \cdot 10^{+34}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -1.75 \cdot 10^{-17}:\\ \;\;\;\;\left(1 - y\right) \cdot z\\ \mathbf{elif}\;t \leq 1.1 \cdot 10^{-193}:\\ \;\;\;\;a + x\\ \mathbf{elif}\;t \leq 2.75 \cdot 10^{+40}:\\ \;\;\;\;\left(b - z\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                  (FPCore (x y z t a b)
                                   :precision binary64
                                   (let* ((t_1 (* (- b a) t)))
                                     (if (<= t -3.4e+34)
                                       t_1
                                       (if (<= t -1.75e-17)
                                         (* (- 1.0 y) z)
                                         (if (<= t 1.1e-193) (+ a x) (if (<= t 2.75e+40) (* (- b z) y) t_1))))))
                                  double code(double x, double y, double z, double t, double a, double b) {
                                  	double t_1 = (b - a) * t;
                                  	double tmp;
                                  	if (t <= -3.4e+34) {
                                  		tmp = t_1;
                                  	} else if (t <= -1.75e-17) {
                                  		tmp = (1.0 - y) * z;
                                  	} else if (t <= 1.1e-193) {
                                  		tmp = a + x;
                                  	} else if (t <= 2.75e+40) {
                                  		tmp = (b - z) * y;
                                  	} else {
                                  		tmp = t_1;
                                  	}
                                  	return tmp;
                                  }
                                  
                                  real(8) function code(x, y, z, t, a, b)
                                      real(8), intent (in) :: x
                                      real(8), intent (in) :: y
                                      real(8), intent (in) :: z
                                      real(8), intent (in) :: t
                                      real(8), intent (in) :: a
                                      real(8), intent (in) :: b
                                      real(8) :: t_1
                                      real(8) :: tmp
                                      t_1 = (b - a) * t
                                      if (t <= (-3.4d+34)) then
                                          tmp = t_1
                                      else if (t <= (-1.75d-17)) then
                                          tmp = (1.0d0 - y) * z
                                      else if (t <= 1.1d-193) then
                                          tmp = a + x
                                      else if (t <= 2.75d+40) then
                                          tmp = (b - z) * y
                                      else
                                          tmp = t_1
                                      end if
                                      code = tmp
                                  end function
                                  
                                  public static double code(double x, double y, double z, double t, double a, double b) {
                                  	double t_1 = (b - a) * t;
                                  	double tmp;
                                  	if (t <= -3.4e+34) {
                                  		tmp = t_1;
                                  	} else if (t <= -1.75e-17) {
                                  		tmp = (1.0 - y) * z;
                                  	} else if (t <= 1.1e-193) {
                                  		tmp = a + x;
                                  	} else if (t <= 2.75e+40) {
                                  		tmp = (b - z) * y;
                                  	} else {
                                  		tmp = t_1;
                                  	}
                                  	return tmp;
                                  }
                                  
                                  def code(x, y, z, t, a, b):
                                  	t_1 = (b - a) * t
                                  	tmp = 0
                                  	if t <= -3.4e+34:
                                  		tmp = t_1
                                  	elif t <= -1.75e-17:
                                  		tmp = (1.0 - y) * z
                                  	elif t <= 1.1e-193:
                                  		tmp = a + x
                                  	elif t <= 2.75e+40:
                                  		tmp = (b - z) * y
                                  	else:
                                  		tmp = t_1
                                  	return tmp
                                  
                                  function code(x, y, z, t, a, b)
                                  	t_1 = Float64(Float64(b - a) * t)
                                  	tmp = 0.0
                                  	if (t <= -3.4e+34)
                                  		tmp = t_1;
                                  	elseif (t <= -1.75e-17)
                                  		tmp = Float64(Float64(1.0 - y) * z);
                                  	elseif (t <= 1.1e-193)
                                  		tmp = Float64(a + x);
                                  	elseif (t <= 2.75e+40)
                                  		tmp = Float64(Float64(b - z) * y);
                                  	else
                                  		tmp = t_1;
                                  	end
                                  	return tmp
                                  end
                                  
                                  function tmp_2 = code(x, y, z, t, a, b)
                                  	t_1 = (b - a) * t;
                                  	tmp = 0.0;
                                  	if (t <= -3.4e+34)
                                  		tmp = t_1;
                                  	elseif (t <= -1.75e-17)
                                  		tmp = (1.0 - y) * z;
                                  	elseif (t <= 1.1e-193)
                                  		tmp = a + x;
                                  	elseif (t <= 2.75e+40)
                                  		tmp = (b - z) * y;
                                  	else
                                  		tmp = t_1;
                                  	end
                                  	tmp_2 = tmp;
                                  end
                                  
                                  code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -3.4e+34], t$95$1, If[LessEqual[t, -1.75e-17], N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[t, 1.1e-193], N[(a + x), $MachinePrecision], If[LessEqual[t, 2.75e+40], N[(N[(b - z), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]]]
                                  
                                  \begin{array}{l}
                                  
                                  \\
                                  \begin{array}{l}
                                  t_1 := \left(b - a\right) \cdot t\\
                                  \mathbf{if}\;t \leq -3.4 \cdot 10^{+34}:\\
                                  \;\;\;\;t\_1\\
                                  
                                  \mathbf{elif}\;t \leq -1.75 \cdot 10^{-17}:\\
                                  \;\;\;\;\left(1 - y\right) \cdot z\\
                                  
                                  \mathbf{elif}\;t \leq 1.1 \cdot 10^{-193}:\\
                                  \;\;\;\;a + x\\
                                  
                                  \mathbf{elif}\;t \leq 2.75 \cdot 10^{+40}:\\
                                  \;\;\;\;\left(b - z\right) \cdot y\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;t\_1\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 4 regimes
                                  2. if t < -3.3999999999999999e34 or 2.74999999999999987e40 < t

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

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

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

                                    if -3.3999999999999999e34 < t < -1.7500000000000001e-17

                                    1. Initial program 90.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 z around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    if -1.7500000000000001e-17 < t < 1.09999999999999988e-193

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                                      20. lower-+.f6469.8

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

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

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

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

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

                                          \[\leadsto a + x \]

                                        if 1.09999999999999988e-193 < t < 2.74999999999999987e40

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

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

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

                                      Alternative 8: 49.3% accurate, 1.1× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - a\right) \cdot t\\ \mathbf{if}\;t \leq -3.4 \cdot 10^{+34}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -1.75 \cdot 10^{-17}:\\ \;\;\;\;\left(1 - y\right) \cdot z\\ \mathbf{elif}\;t \leq 1.1 \cdot 10^{-193}:\\ \;\;\;\;a + x\\ \mathbf{elif}\;t \leq 2.4 \cdot 10^{+40}:\\ \;\;\;\;\left(y - 2\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                      (FPCore (x y z t a b)
                                       :precision binary64
                                       (let* ((t_1 (* (- b a) t)))
                                         (if (<= t -3.4e+34)
                                           t_1
                                           (if (<= t -1.75e-17)
                                             (* (- 1.0 y) z)
                                             (if (<= t 1.1e-193) (+ a x) (if (<= t 2.4e+40) (* (- y 2.0) b) t_1))))))
                                      double code(double x, double y, double z, double t, double a, double b) {
                                      	double t_1 = (b - a) * t;
                                      	double tmp;
                                      	if (t <= -3.4e+34) {
                                      		tmp = t_1;
                                      	} else if (t <= -1.75e-17) {
                                      		tmp = (1.0 - y) * z;
                                      	} else if (t <= 1.1e-193) {
                                      		tmp = a + x;
                                      	} else if (t <= 2.4e+40) {
                                      		tmp = (y - 2.0) * b;
                                      	} else {
                                      		tmp = t_1;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      real(8) function code(x, y, z, t, a, b)
                                          real(8), intent (in) :: x
                                          real(8), intent (in) :: y
                                          real(8), intent (in) :: z
                                          real(8), intent (in) :: t
                                          real(8), intent (in) :: a
                                          real(8), intent (in) :: b
                                          real(8) :: t_1
                                          real(8) :: tmp
                                          t_1 = (b - a) * t
                                          if (t <= (-3.4d+34)) then
                                              tmp = t_1
                                          else if (t <= (-1.75d-17)) then
                                              tmp = (1.0d0 - y) * z
                                          else if (t <= 1.1d-193) then
                                              tmp = a + x
                                          else if (t <= 2.4d+40) then
                                              tmp = (y - 2.0d0) * b
                                          else
                                              tmp = t_1
                                          end if
                                          code = tmp
                                      end function
                                      
                                      public static double code(double x, double y, double z, double t, double a, double b) {
                                      	double t_1 = (b - a) * t;
                                      	double tmp;
                                      	if (t <= -3.4e+34) {
                                      		tmp = t_1;
                                      	} else if (t <= -1.75e-17) {
                                      		tmp = (1.0 - y) * z;
                                      	} else if (t <= 1.1e-193) {
                                      		tmp = a + x;
                                      	} else if (t <= 2.4e+40) {
                                      		tmp = (y - 2.0) * b;
                                      	} else {
                                      		tmp = t_1;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      def code(x, y, z, t, a, b):
                                      	t_1 = (b - a) * t
                                      	tmp = 0
                                      	if t <= -3.4e+34:
                                      		tmp = t_1
                                      	elif t <= -1.75e-17:
                                      		tmp = (1.0 - y) * z
                                      	elif t <= 1.1e-193:
                                      		tmp = a + x
                                      	elif t <= 2.4e+40:
                                      		tmp = (y - 2.0) * b
                                      	else:
                                      		tmp = t_1
                                      	return tmp
                                      
                                      function code(x, y, z, t, a, b)
                                      	t_1 = Float64(Float64(b - a) * t)
                                      	tmp = 0.0
                                      	if (t <= -3.4e+34)
                                      		tmp = t_1;
                                      	elseif (t <= -1.75e-17)
                                      		tmp = Float64(Float64(1.0 - y) * z);
                                      	elseif (t <= 1.1e-193)
                                      		tmp = Float64(a + x);
                                      	elseif (t <= 2.4e+40)
                                      		tmp = Float64(Float64(y - 2.0) * b);
                                      	else
                                      		tmp = t_1;
                                      	end
                                      	return tmp
                                      end
                                      
                                      function tmp_2 = code(x, y, z, t, a, b)
                                      	t_1 = (b - a) * t;
                                      	tmp = 0.0;
                                      	if (t <= -3.4e+34)
                                      		tmp = t_1;
                                      	elseif (t <= -1.75e-17)
                                      		tmp = (1.0 - y) * z;
                                      	elseif (t <= 1.1e-193)
                                      		tmp = a + x;
                                      	elseif (t <= 2.4e+40)
                                      		tmp = (y - 2.0) * b;
                                      	else
                                      		tmp = t_1;
                                      	end
                                      	tmp_2 = tmp;
                                      end
                                      
                                      code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -3.4e+34], t$95$1, If[LessEqual[t, -1.75e-17], N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[t, 1.1e-193], N[(a + x), $MachinePrecision], If[LessEqual[t, 2.4e+40], N[(N[(y - 2.0), $MachinePrecision] * b), $MachinePrecision], t$95$1]]]]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      t_1 := \left(b - a\right) \cdot t\\
                                      \mathbf{if}\;t \leq -3.4 \cdot 10^{+34}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      \mathbf{elif}\;t \leq -1.75 \cdot 10^{-17}:\\
                                      \;\;\;\;\left(1 - y\right) \cdot z\\
                                      
                                      \mathbf{elif}\;t \leq 1.1 \cdot 10^{-193}:\\
                                      \;\;\;\;a + x\\
                                      
                                      \mathbf{elif}\;t \leq 2.4 \cdot 10^{+40}:\\
                                      \;\;\;\;\left(y - 2\right) \cdot b\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 4 regimes
                                      2. if t < -3.3999999999999999e34 or 2.4e40 < t

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

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

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

                                        if -3.3999999999999999e34 < t < -1.7500000000000001e-17

                                        1. Initial program 90.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 z around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        if -1.7500000000000001e-17 < t < 1.09999999999999988e-193

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                                          20. lower-+.f6469.8

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

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

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

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

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

                                              \[\leadsto a + x \]

                                            if 1.09999999999999988e-193 < t < 2.4e40

                                            1. Initial program 96.1%

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

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

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

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

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

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

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

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

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

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

                                            Alternative 9: 40.4% accurate, 1.1× speedup?

                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(t - 2\right) \cdot b\\ \mathbf{if}\;b \leq -6.6 \cdot 10^{+201}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq -1.4 \cdot 10^{+34}:\\ \;\;\;\;\left(y - 2\right) \cdot b\\ \mathbf{elif}\;b \leq 4.2 \cdot 10^{-90}:\\ \;\;\;\;\left(1 - t\right) \cdot a\\ \mathbf{elif}\;b \leq 1.35 \cdot 10^{+96}:\\ \;\;\;\;\left(1 - y\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                            (FPCore (x y z t a b)
                                             :precision binary64
                                             (let* ((t_1 (* (- t 2.0) b)))
                                               (if (<= b -6.6e+201)
                                                 t_1
                                                 (if (<= b -1.4e+34)
                                                   (* (- y 2.0) b)
                                                   (if (<= b 4.2e-90)
                                                     (* (- 1.0 t) a)
                                                     (if (<= b 1.35e+96) (* (- 1.0 y) z) t_1))))))
                                            double code(double x, double y, double z, double t, double a, double b) {
                                            	double t_1 = (t - 2.0) * b;
                                            	double tmp;
                                            	if (b <= -6.6e+201) {
                                            		tmp = t_1;
                                            	} else if (b <= -1.4e+34) {
                                            		tmp = (y - 2.0) * b;
                                            	} else if (b <= 4.2e-90) {
                                            		tmp = (1.0 - t) * a;
                                            	} else if (b <= 1.35e+96) {
                                            		tmp = (1.0 - y) * z;
                                            	} else {
                                            		tmp = t_1;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            real(8) function code(x, y, z, t, a, b)
                                                real(8), intent (in) :: x
                                                real(8), intent (in) :: y
                                                real(8), intent (in) :: z
                                                real(8), intent (in) :: t
                                                real(8), intent (in) :: a
                                                real(8), intent (in) :: b
                                                real(8) :: t_1
                                                real(8) :: tmp
                                                t_1 = (t - 2.0d0) * b
                                                if (b <= (-6.6d+201)) then
                                                    tmp = t_1
                                                else if (b <= (-1.4d+34)) then
                                                    tmp = (y - 2.0d0) * b
                                                else if (b <= 4.2d-90) then
                                                    tmp = (1.0d0 - t) * a
                                                else if (b <= 1.35d+96) then
                                                    tmp = (1.0d0 - y) * z
                                                else
                                                    tmp = t_1
                                                end if
                                                code = tmp
                                            end function
                                            
                                            public static double code(double x, double y, double z, double t, double a, double b) {
                                            	double t_1 = (t - 2.0) * b;
                                            	double tmp;
                                            	if (b <= -6.6e+201) {
                                            		tmp = t_1;
                                            	} else if (b <= -1.4e+34) {
                                            		tmp = (y - 2.0) * b;
                                            	} else if (b <= 4.2e-90) {
                                            		tmp = (1.0 - t) * a;
                                            	} else if (b <= 1.35e+96) {
                                            		tmp = (1.0 - y) * z;
                                            	} else {
                                            		tmp = t_1;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            def code(x, y, z, t, a, b):
                                            	t_1 = (t - 2.0) * b
                                            	tmp = 0
                                            	if b <= -6.6e+201:
                                            		tmp = t_1
                                            	elif b <= -1.4e+34:
                                            		tmp = (y - 2.0) * b
                                            	elif b <= 4.2e-90:
                                            		tmp = (1.0 - t) * a
                                            	elif b <= 1.35e+96:
                                            		tmp = (1.0 - y) * z
                                            	else:
                                            		tmp = t_1
                                            	return tmp
                                            
                                            function code(x, y, z, t, a, b)
                                            	t_1 = Float64(Float64(t - 2.0) * b)
                                            	tmp = 0.0
                                            	if (b <= -6.6e+201)
                                            		tmp = t_1;
                                            	elseif (b <= -1.4e+34)
                                            		tmp = Float64(Float64(y - 2.0) * b);
                                            	elseif (b <= 4.2e-90)
                                            		tmp = Float64(Float64(1.0 - t) * a);
                                            	elseif (b <= 1.35e+96)
                                            		tmp = Float64(Float64(1.0 - y) * z);
                                            	else
                                            		tmp = t_1;
                                            	end
                                            	return tmp
                                            end
                                            
                                            function tmp_2 = code(x, y, z, t, a, b)
                                            	t_1 = (t - 2.0) * b;
                                            	tmp = 0.0;
                                            	if (b <= -6.6e+201)
                                            		tmp = t_1;
                                            	elseif (b <= -1.4e+34)
                                            		tmp = (y - 2.0) * b;
                                            	elseif (b <= 4.2e-90)
                                            		tmp = (1.0 - t) * a;
                                            	elseif (b <= 1.35e+96)
                                            		tmp = (1.0 - y) * z;
                                            	else
                                            		tmp = t_1;
                                            	end
                                            	tmp_2 = tmp;
                                            end
                                            
                                            code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - 2.0), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[b, -6.6e+201], t$95$1, If[LessEqual[b, -1.4e+34], N[(N[(y - 2.0), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[b, 4.2e-90], N[(N[(1.0 - t), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[b, 1.35e+96], N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            \begin{array}{l}
                                            t_1 := \left(t - 2\right) \cdot b\\
                                            \mathbf{if}\;b \leq -6.6 \cdot 10^{+201}:\\
                                            \;\;\;\;t\_1\\
                                            
                                            \mathbf{elif}\;b \leq -1.4 \cdot 10^{+34}:\\
                                            \;\;\;\;\left(y - 2\right) \cdot b\\
                                            
                                            \mathbf{elif}\;b \leq 4.2 \cdot 10^{-90}:\\
                                            \;\;\;\;\left(1 - t\right) \cdot a\\
                                            
                                            \mathbf{elif}\;b \leq 1.35 \cdot 10^{+96}:\\
                                            \;\;\;\;\left(1 - y\right) \cdot z\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;t\_1\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            
                                            Derivation
                                            1. Split input into 4 regimes
                                            2. if b < -6.6e201 or 1.35000000000000011e96 < b

                                              1. Initial program 78.5%

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

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

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

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

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

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

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

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

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

                                                if -6.6e201 < b < -1.40000000000000004e34

                                                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 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-+.f6462.1

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

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

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

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

                                                  if -1.40000000000000004e34 < b < 4.1999999999999998e-90

                                                  1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                  if 4.1999999999999998e-90 < b < 1.35000000000000011e96

                                                  1. Initial program 97.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                    \[\leadsto \color{blue}{\left(1 - y\right) \cdot z} \]
                                                8. Recombined 4 regimes into one program.
                                                9. Add Preprocessing

                                                Alternative 10: 39.8% accurate, 1.1× speedup?

                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(t - 2\right) \cdot b\\ \mathbf{if}\;b \leq -6.6 \cdot 10^{+201}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq -1.4 \cdot 10^{+34}:\\ \;\;\;\;\left(y - 2\right) \cdot b\\ \mathbf{elif}\;b \leq 1.6 \cdot 10^{-79}:\\ \;\;\;\;\left(1 - t\right) \cdot a\\ \mathbf{elif}\;b \leq 1.7 \cdot 10^{+94}:\\ \;\;\;\;z + x\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                (FPCore (x y z t a b)
                                                 :precision binary64
                                                 (let* ((t_1 (* (- t 2.0) b)))
                                                   (if (<= b -6.6e+201)
                                                     t_1
                                                     (if (<= b -1.4e+34)
                                                       (* (- y 2.0) b)
                                                       (if (<= b 1.6e-79) (* (- 1.0 t) a) (if (<= b 1.7e+94) (+ z x) t_1))))))
                                                double code(double x, double y, double z, double t, double a, double b) {
                                                	double t_1 = (t - 2.0) * b;
                                                	double tmp;
                                                	if (b <= -6.6e+201) {
                                                		tmp = t_1;
                                                	} else if (b <= -1.4e+34) {
                                                		tmp = (y - 2.0) * b;
                                                	} else if (b <= 1.6e-79) {
                                                		tmp = (1.0 - t) * a;
                                                	} else if (b <= 1.7e+94) {
                                                		tmp = z + x;
                                                	} else {
                                                		tmp = t_1;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                real(8) function code(x, y, z, t, a, b)
                                                    real(8), intent (in) :: x
                                                    real(8), intent (in) :: y
                                                    real(8), intent (in) :: z
                                                    real(8), intent (in) :: t
                                                    real(8), intent (in) :: a
                                                    real(8), intent (in) :: b
                                                    real(8) :: t_1
                                                    real(8) :: tmp
                                                    t_1 = (t - 2.0d0) * b
                                                    if (b <= (-6.6d+201)) then
                                                        tmp = t_1
                                                    else if (b <= (-1.4d+34)) then
                                                        tmp = (y - 2.0d0) * b
                                                    else if (b <= 1.6d-79) then
                                                        tmp = (1.0d0 - t) * a
                                                    else if (b <= 1.7d+94) then
                                                        tmp = z + x
                                                    else
                                                        tmp = t_1
                                                    end if
                                                    code = tmp
                                                end function
                                                
                                                public static double code(double x, double y, double z, double t, double a, double b) {
                                                	double t_1 = (t - 2.0) * b;
                                                	double tmp;
                                                	if (b <= -6.6e+201) {
                                                		tmp = t_1;
                                                	} else if (b <= -1.4e+34) {
                                                		tmp = (y - 2.0) * b;
                                                	} else if (b <= 1.6e-79) {
                                                		tmp = (1.0 - t) * a;
                                                	} else if (b <= 1.7e+94) {
                                                		tmp = z + x;
                                                	} else {
                                                		tmp = t_1;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                def code(x, y, z, t, a, b):
                                                	t_1 = (t - 2.0) * b
                                                	tmp = 0
                                                	if b <= -6.6e+201:
                                                		tmp = t_1
                                                	elif b <= -1.4e+34:
                                                		tmp = (y - 2.0) * b
                                                	elif b <= 1.6e-79:
                                                		tmp = (1.0 - t) * a
                                                	elif b <= 1.7e+94:
                                                		tmp = z + x
                                                	else:
                                                		tmp = t_1
                                                	return tmp
                                                
                                                function code(x, y, z, t, a, b)
                                                	t_1 = Float64(Float64(t - 2.0) * b)
                                                	tmp = 0.0
                                                	if (b <= -6.6e+201)
                                                		tmp = t_1;
                                                	elseif (b <= -1.4e+34)
                                                		tmp = Float64(Float64(y - 2.0) * b);
                                                	elseif (b <= 1.6e-79)
                                                		tmp = Float64(Float64(1.0 - t) * a);
                                                	elseif (b <= 1.7e+94)
                                                		tmp = Float64(z + x);
                                                	else
                                                		tmp = t_1;
                                                	end
                                                	return tmp
                                                end
                                                
                                                function tmp_2 = code(x, y, z, t, a, b)
                                                	t_1 = (t - 2.0) * b;
                                                	tmp = 0.0;
                                                	if (b <= -6.6e+201)
                                                		tmp = t_1;
                                                	elseif (b <= -1.4e+34)
                                                		tmp = (y - 2.0) * b;
                                                	elseif (b <= 1.6e-79)
                                                		tmp = (1.0 - t) * a;
                                                	elseif (b <= 1.7e+94)
                                                		tmp = z + x;
                                                	else
                                                		tmp = t_1;
                                                	end
                                                	tmp_2 = tmp;
                                                end
                                                
                                                code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - 2.0), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[b, -6.6e+201], t$95$1, If[LessEqual[b, -1.4e+34], N[(N[(y - 2.0), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[b, 1.6e-79], N[(N[(1.0 - t), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[b, 1.7e+94], N[(z + x), $MachinePrecision], t$95$1]]]]]
                                                
                                                \begin{array}{l}
                                                
                                                \\
                                                \begin{array}{l}
                                                t_1 := \left(t - 2\right) \cdot b\\
                                                \mathbf{if}\;b \leq -6.6 \cdot 10^{+201}:\\
                                                \;\;\;\;t\_1\\
                                                
                                                \mathbf{elif}\;b \leq -1.4 \cdot 10^{+34}:\\
                                                \;\;\;\;\left(y - 2\right) \cdot b\\
                                                
                                                \mathbf{elif}\;b \leq 1.6 \cdot 10^{-79}:\\
                                                \;\;\;\;\left(1 - t\right) \cdot a\\
                                                
                                                \mathbf{elif}\;b \leq 1.7 \cdot 10^{+94}:\\
                                                \;\;\;\;z + x\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;t\_1\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 4 regimes
                                                2. if b < -6.6e201 or 1.7000000000000001e94 < b

                                                  1. Initial program 78.5%

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

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

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

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

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

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

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

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

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

                                                    if -6.6e201 < b < -1.40000000000000004e34

                                                    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 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-+.f6462.1

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

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

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

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

                                                      if -1.40000000000000004e34 < b < 1.59999999999999994e-79

                                                      1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                      if 1.59999999999999994e-79 < b < 1.7000000000000001e94

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

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

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

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

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

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

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

                                                        Alternative 11: 35.6% accurate, 1.2× speedup?

                                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(-y\right) \cdot z\\ \mathbf{if}\;y \leq -1.75 \cdot 10^{+155}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -4 \cdot 10^{-12}:\\ \;\;\;\;b \cdot t\\ \mathbf{elif}\;y \leq 1.75 \cdot 10^{+44}:\\ \;\;\;\;z + x\\ \mathbf{elif}\;y \leq 4.1 \cdot 10^{+157}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;b \cdot y\\ \end{array} \end{array} \]
                                                        (FPCore (x y z t a b)
                                                         :precision binary64
                                                         (let* ((t_1 (* (- y) z)))
                                                           (if (<= y -1.75e+155)
                                                             t_1
                                                             (if (<= y -4e-12)
                                                               (* b t)
                                                               (if (<= y 1.75e+44) (+ z x) (if (<= y 4.1e+157) t_1 (* b y)))))))
                                                        double code(double x, double y, double z, double t, double a, double b) {
                                                        	double t_1 = -y * z;
                                                        	double tmp;
                                                        	if (y <= -1.75e+155) {
                                                        		tmp = t_1;
                                                        	} else if (y <= -4e-12) {
                                                        		tmp = b * t;
                                                        	} else if (y <= 1.75e+44) {
                                                        		tmp = z + x;
                                                        	} else if (y <= 4.1e+157) {
                                                        		tmp = t_1;
                                                        	} else {
                                                        		tmp = b * y;
                                                        	}
                                                        	return tmp;
                                                        }
                                                        
                                                        real(8) function code(x, y, z, t, a, b)
                                                            real(8), intent (in) :: x
                                                            real(8), intent (in) :: y
                                                            real(8), intent (in) :: z
                                                            real(8), intent (in) :: t
                                                            real(8), intent (in) :: a
                                                            real(8), intent (in) :: b
                                                            real(8) :: t_1
                                                            real(8) :: tmp
                                                            t_1 = -y * z
                                                            if (y <= (-1.75d+155)) then
                                                                tmp = t_1
                                                            else if (y <= (-4d-12)) then
                                                                tmp = b * t
                                                            else if (y <= 1.75d+44) then
                                                                tmp = z + x
                                                            else if (y <= 4.1d+157) then
                                                                tmp = t_1
                                                            else
                                                                tmp = b * y
                                                            end if
                                                            code = tmp
                                                        end function
                                                        
                                                        public static double code(double x, double y, double z, double t, double a, double b) {
                                                        	double t_1 = -y * z;
                                                        	double tmp;
                                                        	if (y <= -1.75e+155) {
                                                        		tmp = t_1;
                                                        	} else if (y <= -4e-12) {
                                                        		tmp = b * t;
                                                        	} else if (y <= 1.75e+44) {
                                                        		tmp = z + x;
                                                        	} else if (y <= 4.1e+157) {
                                                        		tmp = t_1;
                                                        	} else {
                                                        		tmp = b * y;
                                                        	}
                                                        	return tmp;
                                                        }
                                                        
                                                        def code(x, y, z, t, a, b):
                                                        	t_1 = -y * z
                                                        	tmp = 0
                                                        	if y <= -1.75e+155:
                                                        		tmp = t_1
                                                        	elif y <= -4e-12:
                                                        		tmp = b * t
                                                        	elif y <= 1.75e+44:
                                                        		tmp = z + x
                                                        	elif y <= 4.1e+157:
                                                        		tmp = t_1
                                                        	else:
                                                        		tmp = b * y
                                                        	return tmp
                                                        
                                                        function code(x, y, z, t, a, b)
                                                        	t_1 = Float64(Float64(-y) * z)
                                                        	tmp = 0.0
                                                        	if (y <= -1.75e+155)
                                                        		tmp = t_1;
                                                        	elseif (y <= -4e-12)
                                                        		tmp = Float64(b * t);
                                                        	elseif (y <= 1.75e+44)
                                                        		tmp = Float64(z + x);
                                                        	elseif (y <= 4.1e+157)
                                                        		tmp = t_1;
                                                        	else
                                                        		tmp = Float64(b * y);
                                                        	end
                                                        	return tmp
                                                        end
                                                        
                                                        function tmp_2 = code(x, y, z, t, a, b)
                                                        	t_1 = -y * z;
                                                        	tmp = 0.0;
                                                        	if (y <= -1.75e+155)
                                                        		tmp = t_1;
                                                        	elseif (y <= -4e-12)
                                                        		tmp = b * t;
                                                        	elseif (y <= 1.75e+44)
                                                        		tmp = z + x;
                                                        	elseif (y <= 4.1e+157)
                                                        		tmp = t_1;
                                                        	else
                                                        		tmp = b * y;
                                                        	end
                                                        	tmp_2 = tmp;
                                                        end
                                                        
                                                        code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[((-y) * z), $MachinePrecision]}, If[LessEqual[y, -1.75e+155], t$95$1, If[LessEqual[y, -4e-12], N[(b * t), $MachinePrecision], If[LessEqual[y, 1.75e+44], N[(z + x), $MachinePrecision], If[LessEqual[y, 4.1e+157], t$95$1, N[(b * y), $MachinePrecision]]]]]]
                                                        
                                                        \begin{array}{l}
                                                        
                                                        \\
                                                        \begin{array}{l}
                                                        t_1 := \left(-y\right) \cdot z\\
                                                        \mathbf{if}\;y \leq -1.75 \cdot 10^{+155}:\\
                                                        \;\;\;\;t\_1\\
                                                        
                                                        \mathbf{elif}\;y \leq -4 \cdot 10^{-12}:\\
                                                        \;\;\;\;b \cdot t\\
                                                        
                                                        \mathbf{elif}\;y \leq 1.75 \cdot 10^{+44}:\\
                                                        \;\;\;\;z + x\\
                                                        
                                                        \mathbf{elif}\;y \leq 4.1 \cdot 10^{+157}:\\
                                                        \;\;\;\;t\_1\\
                                                        
                                                        \mathbf{else}:\\
                                                        \;\;\;\;b \cdot y\\
                                                        
                                                        
                                                        \end{array}
                                                        \end{array}
                                                        
                                                        Derivation
                                                        1. Split input into 4 regimes
                                                        2. if y < -1.74999999999999992e155 or 1.75e44 < y < 4.10000000000000016e157

                                                          1. Initial program 88.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                            if -1.74999999999999992e155 < y < -3.99999999999999992e-12

                                                            1. Initial program 92.0%

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

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

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

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

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

                                                              if -3.99999999999999992e-12 < y < 1.75e44

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

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

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

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

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

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

                                                                    \[\leadsto z + x \]

                                                                  if 4.10000000000000016e157 < y

                                                                  1. Initial program 89.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 z around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                      \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                                                                    20. lower-+.f6484.8

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

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

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

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

                                                                  Alternative 12: 67.2% accurate, 1.2× speedup?

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

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

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

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

                                                                    if -4.90000000000000025e35 < t < 9.80000000000000019e-204

                                                                    1. Initial program 96.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                      if 9.80000000000000019e-204 < t < 2.4e40

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                          \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                                                                        20. lower-+.f6475.9

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

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

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

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

                                                                      Alternative 13: 81.1% accurate, 1.2× speedup?

                                                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -1.5 \cdot 10^{+37}:\\ \;\;\;\;\mathsf{fma}\left(y, b, \left(t - 2\right) \cdot b\right)\\ \mathbf{elif}\;b \leq 1.15 \cdot 10^{+141}:\\ \;\;\;\;\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} \end{array} \]
                                                                      (FPCore (x y z t a b)
                                                                       :precision binary64
                                                                       (if (<= b -1.5e+37)
                                                                         (fma y b (* (- t 2.0) b))
                                                                         (if (<= b 1.15e+141)
                                                                           (fma (- 1.0 y) z (fma (- 1.0 t) a x))
                                                                           (* b (- (+ t y) 2.0)))))
                                                                      double code(double x, double y, double z, double t, double a, double b) {
                                                                      	double tmp;
                                                                      	if (b <= -1.5e+37) {
                                                                      		tmp = fma(y, b, ((t - 2.0) * b));
                                                                      	} else if (b <= 1.15e+141) {
                                                                      		tmp = fma((1.0 - y), z, fma((1.0 - t), a, x));
                                                                      	} else {
                                                                      		tmp = b * ((t + y) - 2.0);
                                                                      	}
                                                                      	return tmp;
                                                                      }
                                                                      
                                                                      function code(x, y, z, t, a, b)
                                                                      	tmp = 0.0
                                                                      	if (b <= -1.5e+37)
                                                                      		tmp = fma(y, b, Float64(Float64(t - 2.0) * b));
                                                                      	elseif (b <= 1.15e+141)
                                                                      		tmp = fma(Float64(1.0 - y), z, fma(Float64(1.0 - t), a, x));
                                                                      	else
                                                                      		tmp = Float64(b * Float64(Float64(t + y) - 2.0));
                                                                      	end
                                                                      	return tmp
                                                                      end
                                                                      
                                                                      code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.5e+37], N[(y * b + N[(N[(t - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.15e+141], N[(N[(1.0 - y), $MachinePrecision] * z + N[(N[(1.0 - t), $MachinePrecision] * a + x), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]]]
                                                                      
                                                                      \begin{array}{l}
                                                                      
                                                                      \\
                                                                      \begin{array}{l}
                                                                      \mathbf{if}\;b \leq -1.5 \cdot 10^{+37}:\\
                                                                      \;\;\;\;\mathsf{fma}\left(y, b, \left(t - 2\right) \cdot b\right)\\
                                                                      
                                                                      \mathbf{elif}\;b \leq 1.15 \cdot 10^{+141}:\\
                                                                      \;\;\;\;\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}
                                                                      \end{array}
                                                                      
                                                                      Derivation
                                                                      1. Split input into 3 regimes
                                                                      2. if b < -1.50000000000000011e37

                                                                        1. Initial program 86.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-+.f6471.8

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

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

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

                                                                          if -1.50000000000000011e37 < b < 1.1500000000000001e141

                                                                          1. Initial program 99.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                          if 1.1500000000000001e141 < b

                                                                          1. Initial program 78.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-+.f6482.4

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

                                                                            \[\leadsto \color{blue}{\left(\left(y + t\right) - 2\right) \cdot b} \]
                                                                        7. Recombined 3 regimes into one program.
                                                                        8. Final simplification82.8%

                                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.5 \cdot 10^{+37}:\\ \;\;\;\;\mathsf{fma}\left(y, b, \left(t - 2\right) \cdot b\right)\\ \mathbf{elif}\;b \leq 1.15 \cdot 10^{+141}:\\ \;\;\;\;\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} \]
                                                                        9. Add Preprocessing

                                                                        Alternative 14: 33.6% accurate, 1.2× speedup?

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

                                                                          1. Initial program 78.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 a around 0

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

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

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

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

                                                                            if -6.6e201 < b < -1.9e19

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                                                                              20. lower-+.f6485.3

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

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

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

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

                                                                              if -1.9e19 < b < 1.8000000000000001e-154

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                  \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                                                                                20. lower-+.f6476.3

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

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

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

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

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

                                                                                    \[\leadsto a + x \]

                                                                                  if 1.8000000000000001e-154 < b < 3.3e94

                                                                                  1. Initial program 98.2%

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

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

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

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

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

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

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

                                                                                    Alternative 15: 61.8% 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 -4.4 \cdot 10^{+18}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 4.2 \cdot 10^{-90}:\\ \;\;\;\;\mathsf{fma}\left(1 - t, a, x\right)\\ \mathbf{elif}\;b \leq 1.7 \cdot 10^{+94}:\\ \;\;\;\;\mathsf{fma}\left(1 - y, z, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                    (FPCore (x y z t a b)
                                                                                     :precision binary64
                                                                                     (let* ((t_1 (* b (- (+ t y) 2.0))))
                                                                                       (if (<= b -4.4e+18)
                                                                                         t_1
                                                                                         (if (<= b 4.2e-90)
                                                                                           (fma (- 1.0 t) a x)
                                                                                           (if (<= b 1.7e+94) (fma (- 1.0 y) 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 <= -4.4e+18) {
                                                                                    		tmp = t_1;
                                                                                    	} else if (b <= 4.2e-90) {
                                                                                    		tmp = fma((1.0 - t), a, x);
                                                                                    	} else if (b <= 1.7e+94) {
                                                                                    		tmp = fma((1.0 - y), 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 <= -4.4e+18)
                                                                                    		tmp = t_1;
                                                                                    	elseif (b <= 4.2e-90)
                                                                                    		tmp = fma(Float64(1.0 - t), a, x);
                                                                                    	elseif (b <= 1.7e+94)
                                                                                    		tmp = fma(Float64(1.0 - y), 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, -4.4e+18], t$95$1, If[LessEqual[b, 4.2e-90], N[(N[(1.0 - t), $MachinePrecision] * a + x), $MachinePrecision], If[LessEqual[b, 1.7e+94], N[(N[(1.0 - y), $MachinePrecision] * z + 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 -4.4 \cdot 10^{+18}:\\
                                                                                    \;\;\;\;t\_1\\
                                                                                    
                                                                                    \mathbf{elif}\;b \leq 4.2 \cdot 10^{-90}:\\
                                                                                    \;\;\;\;\mathsf{fma}\left(1 - t, a, x\right)\\
                                                                                    
                                                                                    \mathbf{elif}\;b \leq 1.7 \cdot 10^{+94}:\\
                                                                                    \;\;\;\;\mathsf{fma}\left(1 - y, z, x\right)\\
                                                                                    
                                                                                    \mathbf{else}:\\
                                                                                    \;\;\;\;t\_1\\
                                                                                    
                                                                                    
                                                                                    \end{array}
                                                                                    \end{array}
                                                                                    
                                                                                    Derivation
                                                                                    1. Split input into 3 regimes
                                                                                    2. if b < -4.4e18 or 1.7000000000000001e94 < 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-+.f6470.5

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

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

                                                                                      if -4.4e18 < b < 4.1999999999999998e-90

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                          \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                                                                                        20. lower-+.f6475.3

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

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

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

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

                                                                                        if 4.1999999999999998e-90 < b < 1.7000000000000001e94

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

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

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

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

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

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

                                                                                        Alternative 16: 57.1% accurate, 1.3× speedup?

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

                                                                                          1. Initial program 90.6%

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

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

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

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

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

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

                                                                                          if -1.15e14 < t < 8.50000000000000023e-195

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                              if 8.50000000000000023e-195 < t < 2.4e40

                                                                                              1. Initial program 96.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 z around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                  \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                                                                                                20. lower-+.f6475.4

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

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

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

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

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

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

                                                                                                Alternative 17: 57.7% accurate, 1.3× speedup?

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

                                                                                                  1. Initial program 90.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 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--.f6469.6

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

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

                                                                                                  if -10 < t < 3.00000000000000012e-26

                                                                                                  1. Initial program 97.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                      \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                                                                                                    20. lower-+.f6471.5

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

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

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

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

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

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

                                                                                                      if 3.00000000000000012e-26 < t < 2.4e40

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                          \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                                                                                                        20. lower-+.f6476.6

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

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

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

                                                                                                          \[\leadsto \mathsf{fma}\left(y - 2, \color{blue}{b}, a + x\right) \]
                                                                                                        2. Taylor expanded in a around 0

                                                                                                          \[\leadsto x + b \cdot \color{blue}{\left(y - 2\right)} \]
                                                                                                        3. Step-by-step derivation
                                                                                                          1. Applied rewrites65.4%

                                                                                                            \[\leadsto \mathsf{fma}\left(y - 2, b, x\right) \]
                                                                                                        4. Recombined 3 regimes into one program.
                                                                                                        5. Add Preprocessing

                                                                                                        Alternative 18: 66.6% accurate, 1.5× speedup?

                                                                                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - a\right) \cdot t\\ \mathbf{if}\;t \leq -35:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 2.4 \cdot 10^{+40}:\\ \;\;\;\;\mathsf{fma}\left(y - 2, b, a + x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                        (FPCore (x y z t a b)
                                                                                                         :precision binary64
                                                                                                         (let* ((t_1 (* (- b a) t)))
                                                                                                           (if (<= t -35.0) t_1 (if (<= t 2.4e+40) (fma (- y 2.0) b (+ a x)) t_1))))
                                                                                                        double code(double x, double y, double z, double t, double a, double b) {
                                                                                                        	double t_1 = (b - a) * t;
                                                                                                        	double tmp;
                                                                                                        	if (t <= -35.0) {
                                                                                                        		tmp = t_1;
                                                                                                        	} else if (t <= 2.4e+40) {
                                                                                                        		tmp = fma((y - 2.0), b, (a + x));
                                                                                                        	} else {
                                                                                                        		tmp = t_1;
                                                                                                        	}
                                                                                                        	return tmp;
                                                                                                        }
                                                                                                        
                                                                                                        function code(x, y, z, t, a, b)
                                                                                                        	t_1 = Float64(Float64(b - a) * t)
                                                                                                        	tmp = 0.0
                                                                                                        	if (t <= -35.0)
                                                                                                        		tmp = t_1;
                                                                                                        	elseif (t <= 2.4e+40)
                                                                                                        		tmp = fma(Float64(y - 2.0), b, Float64(a + x));
                                                                                                        	else
                                                                                                        		tmp = t_1;
                                                                                                        	end
                                                                                                        	return tmp
                                                                                                        end
                                                                                                        
                                                                                                        code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -35.0], t$95$1, If[LessEqual[t, 2.4e+40], N[(N[(y - 2.0), $MachinePrecision] * b + N[(a + x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                                                                                        
                                                                                                        \begin{array}{l}
                                                                                                        
                                                                                                        \\
                                                                                                        \begin{array}{l}
                                                                                                        t_1 := \left(b - a\right) \cdot t\\
                                                                                                        \mathbf{if}\;t \leq -35:\\
                                                                                                        \;\;\;\;t\_1\\
                                                                                                        
                                                                                                        \mathbf{elif}\;t \leq 2.4 \cdot 10^{+40}:\\
                                                                                                        \;\;\;\;\mathsf{fma}\left(y - 2, b, a + x\right)\\
                                                                                                        
                                                                                                        \mathbf{else}:\\
                                                                                                        \;\;\;\;t\_1\\
                                                                                                        
                                                                                                        
                                                                                                        \end{array}
                                                                                                        \end{array}
                                                                                                        
                                                                                                        Derivation
                                                                                                        1. Split input into 2 regimes
                                                                                                        2. if t < -35 or 2.4e40 < t

                                                                                                          1. Initial program 90.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 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--.f6469.6

                                                                                                              \[\leadsto \color{blue}{\left(b - a\right)} \cdot t \]
                                                                                                          5. Applied rewrites69.6%

                                                                                                            \[\leadsto \color{blue}{\left(b - a\right) \cdot t} \]

                                                                                                          if -35 < t < 2.4e40

                                                                                                          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 z around 0

                                                                                                            \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]
                                                                                                          4. Step-by-step derivation
                                                                                                            1. sub-negN/A

                                                                                                              \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) + \left(\mathsf{neg}\left(a \cdot \left(t - 1\right)\right)\right)} \]
                                                                                                            2. +-commutativeN/A

                                                                                                              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a \cdot \left(t - 1\right)\right)\right) + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                                                                                            3. *-commutativeN/A

                                                                                                              \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(t - 1\right) \cdot a}\right)\right) + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                            4. distribute-lft-neg-inN/A

                                                                                                              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(t - 1\right)\right)\right) \cdot a} + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                            5. mul-1-negN/A

                                                                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(t - 1\right)\right)} \cdot a + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                            6. lower-fma.f64N/A

                                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(t - 1\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                                                                                            7. mul-1-negN/A

                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(\left(t - 1\right)\right)}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                            8. sub-negN/A

                                                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                            9. metadata-evalN/A

                                                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\left(t + \color{blue}{-1}\right)\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                            10. +-commutativeN/A

                                                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(-1 + t\right)}\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                            11. distribute-neg-inN/A

                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(-1\right)\right) + \left(\mathsf{neg}\left(t\right)\right)}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                            12. metadata-evalN/A

                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{1} + \left(\mathsf{neg}\left(t\right)\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                            13. sub-negN/A

                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{1 - t}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                            14. lower--.f64N/A

                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{1 - t}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                            15. +-commutativeN/A

                                                                                                              \[\leadsto \mathsf{fma}\left(1 - t, a, \color{blue}{b \cdot \left(\left(t + y\right) - 2\right) + x}\right) \]
                                                                                                            16. *-commutativeN/A

                                                                                                              \[\leadsto \mathsf{fma}\left(1 - t, a, \color{blue}{\left(\left(t + y\right) - 2\right) \cdot b} + x\right) \]
                                                                                                            17. lower-fma.f64N/A

                                                                                                              \[\leadsto \mathsf{fma}\left(1 - t, a, \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right)}\right) \]
                                                                                                            18. lower--.f64N/A

                                                                                                              \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(t + y\right) - 2}, b, x\right)\right) \]
                                                                                                            19. +-commutativeN/A

                                                                                                              \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                                                                                                            20. lower-+.f6472.2

                                                                                                              \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                                                                                                          5. Applied rewrites72.2%

                                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right)\right)} \]
                                                                                                          6. Taylor expanded in t around 0

                                                                                                            \[\leadsto a + \color{blue}{\left(x + b \cdot \left(y - 2\right)\right)} \]
                                                                                                          7. Step-by-step derivation
                                                                                                            1. Applied rewrites70.1%

                                                                                                              \[\leadsto \mathsf{fma}\left(y - 2, \color{blue}{b}, a + x\right) \]
                                                                                                          8. Recombined 2 regimes into one program.
                                                                                                          9. Add Preprocessing

                                                                                                          Alternative 19: 36.2% accurate, 1.5× speedup?

                                                                                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.05 \cdot 10^{+111}:\\ \;\;\;\;\left(-a\right) \cdot t\\ \mathbf{elif}\;t \leq -0.000108:\\ \;\;\;\;\left(t - 2\right) \cdot b\\ \mathbf{elif}\;t \leq 1.95 \cdot 10^{+80}:\\ \;\;\;\;a + x\\ \mathbf{else}:\\ \;\;\;\;b \cdot t\\ \end{array} \end{array} \]
                                                                                                          (FPCore (x y z t a b)
                                                                                                           :precision binary64
                                                                                                           (if (<= t -1.05e+111)
                                                                                                             (* (- a) t)
                                                                                                             (if (<= t -0.000108) (* (- t 2.0) b) (if (<= t 1.95e+80) (+ a x) (* b t)))))
                                                                                                          double code(double x, double y, double z, double t, double a, double b) {
                                                                                                          	double tmp;
                                                                                                          	if (t <= -1.05e+111) {
                                                                                                          		tmp = -a * t;
                                                                                                          	} else if (t <= -0.000108) {
                                                                                                          		tmp = (t - 2.0) * b;
                                                                                                          	} else if (t <= 1.95e+80) {
                                                                                                          		tmp = a + 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 (t <= (-1.05d+111)) then
                                                                                                                  tmp = -a * t
                                                                                                              else if (t <= (-0.000108d0)) then
                                                                                                                  tmp = (t - 2.0d0) * b
                                                                                                              else if (t <= 1.95d+80) then
                                                                                                                  tmp = a + 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 (t <= -1.05e+111) {
                                                                                                          		tmp = -a * t;
                                                                                                          	} else if (t <= -0.000108) {
                                                                                                          		tmp = (t - 2.0) * b;
                                                                                                          	} else if (t <= 1.95e+80) {
                                                                                                          		tmp = a + x;
                                                                                                          	} else {
                                                                                                          		tmp = b * t;
                                                                                                          	}
                                                                                                          	return tmp;
                                                                                                          }
                                                                                                          
                                                                                                          def code(x, y, z, t, a, b):
                                                                                                          	tmp = 0
                                                                                                          	if t <= -1.05e+111:
                                                                                                          		tmp = -a * t
                                                                                                          	elif t <= -0.000108:
                                                                                                          		tmp = (t - 2.0) * b
                                                                                                          	elif t <= 1.95e+80:
                                                                                                          		tmp = a + x
                                                                                                          	else:
                                                                                                          		tmp = b * t
                                                                                                          	return tmp
                                                                                                          
                                                                                                          function code(x, y, z, t, a, b)
                                                                                                          	tmp = 0.0
                                                                                                          	if (t <= -1.05e+111)
                                                                                                          		tmp = Float64(Float64(-a) * t);
                                                                                                          	elseif (t <= -0.000108)
                                                                                                          		tmp = Float64(Float64(t - 2.0) * b);
                                                                                                          	elseif (t <= 1.95e+80)
                                                                                                          		tmp = Float64(a + x);
                                                                                                          	else
                                                                                                          		tmp = Float64(b * t);
                                                                                                          	end
                                                                                                          	return tmp
                                                                                                          end
                                                                                                          
                                                                                                          function tmp_2 = code(x, y, z, t, a, b)
                                                                                                          	tmp = 0.0;
                                                                                                          	if (t <= -1.05e+111)
                                                                                                          		tmp = -a * t;
                                                                                                          	elseif (t <= -0.000108)
                                                                                                          		tmp = (t - 2.0) * b;
                                                                                                          	elseif (t <= 1.95e+80)
                                                                                                          		tmp = a + x;
                                                                                                          	else
                                                                                                          		tmp = b * t;
                                                                                                          	end
                                                                                                          	tmp_2 = tmp;
                                                                                                          end
                                                                                                          
                                                                                                          code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -1.05e+111], N[((-a) * t), $MachinePrecision], If[LessEqual[t, -0.000108], N[(N[(t - 2.0), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[t, 1.95e+80], N[(a + x), $MachinePrecision], N[(b * t), $MachinePrecision]]]]
                                                                                                          
                                                                                                          \begin{array}{l}
                                                                                                          
                                                                                                          \\
                                                                                                          \begin{array}{l}
                                                                                                          \mathbf{if}\;t \leq -1.05 \cdot 10^{+111}:\\
                                                                                                          \;\;\;\;\left(-a\right) \cdot t\\
                                                                                                          
                                                                                                          \mathbf{elif}\;t \leq -0.000108:\\
                                                                                                          \;\;\;\;\left(t - 2\right) \cdot b\\
                                                                                                          
                                                                                                          \mathbf{elif}\;t \leq 1.95 \cdot 10^{+80}:\\
                                                                                                          \;\;\;\;a + x\\
                                                                                                          
                                                                                                          \mathbf{else}:\\
                                                                                                          \;\;\;\;b \cdot t\\
                                                                                                          
                                                                                                          
                                                                                                          \end{array}
                                                                                                          \end{array}
                                                                                                          
                                                                                                          Derivation
                                                                                                          1. Split input into 4 regimes
                                                                                                          2. if t < -1.04999999999999997e111

                                                                                                            1. Initial program 89.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--.f6480.2

                                                                                                                \[\leadsto \color{blue}{\left(b - a\right)} \cdot t \]
                                                                                                            5. Applied rewrites80.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 rewrites63.7%

                                                                                                                \[\leadsto \left(-a\right) \cdot t \]

                                                                                                              if -1.04999999999999997e111 < t < -1.08e-4

                                                                                                              1. Initial program 96.5%

                                                                                                                \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                                                                                              2. Add Preprocessing
                                                                                                              3. Taylor expanded in b around inf

                                                                                                                \[\leadsto \color{blue}{b \cdot \left(\left(t + y\right) - 2\right)} \]
                                                                                                              4. Step-by-step derivation
                                                                                                                1. *-commutativeN/A

                                                                                                                  \[\leadsto \color{blue}{\left(\left(t + y\right) - 2\right) \cdot b} \]
                                                                                                                2. lower-*.f64N/A

                                                                                                                  \[\leadsto \color{blue}{\left(\left(t + y\right) - 2\right) \cdot b} \]
                                                                                                                3. lower--.f64N/A

                                                                                                                  \[\leadsto \color{blue}{\left(\left(t + y\right) - 2\right)} \cdot b \]
                                                                                                                4. +-commutativeN/A

                                                                                                                  \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                                                                                                                5. lower-+.f6446.7

                                                                                                                  \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                                                                                                              5. Applied rewrites46.7%

                                                                                                                \[\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 rewrites37.1%

                                                                                                                  \[\leadsto \left(t - 2\right) \cdot b \]

                                                                                                                if -1.08e-4 < t < 1.94999999999999999e80

                                                                                                                1. Initial program 96.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 z around 0

                                                                                                                  \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]
                                                                                                                4. Step-by-step derivation
                                                                                                                  1. sub-negN/A

                                                                                                                    \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) + \left(\mathsf{neg}\left(a \cdot \left(t - 1\right)\right)\right)} \]
                                                                                                                  2. +-commutativeN/A

                                                                                                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a \cdot \left(t - 1\right)\right)\right) + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                                                                                                  3. *-commutativeN/A

                                                                                                                    \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(t - 1\right) \cdot a}\right)\right) + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                  4. distribute-lft-neg-inN/A

                                                                                                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(t - 1\right)\right)\right) \cdot a} + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                  5. mul-1-negN/A

                                                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(t - 1\right)\right)} \cdot a + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                  6. lower-fma.f64N/A

                                                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(t - 1\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                                                                                                  7. mul-1-negN/A

                                                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(\left(t - 1\right)\right)}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                  8. sub-negN/A

                                                                                                                    \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                  9. metadata-evalN/A

                                                                                                                    \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\left(t + \color{blue}{-1}\right)\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                  10. +-commutativeN/A

                                                                                                                    \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(-1 + t\right)}\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                  11. distribute-neg-inN/A

                                                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(-1\right)\right) + \left(\mathsf{neg}\left(t\right)\right)}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                  12. metadata-evalN/A

                                                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{1} + \left(\mathsf{neg}\left(t\right)\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                  13. sub-negN/A

                                                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{1 - t}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                  14. lower--.f64N/A

                                                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{1 - t}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                  15. +-commutativeN/A

                                                                                                                    \[\leadsto \mathsf{fma}\left(1 - t, a, \color{blue}{b \cdot \left(\left(t + y\right) - 2\right) + x}\right) \]
                                                                                                                  16. *-commutativeN/A

                                                                                                                    \[\leadsto \mathsf{fma}\left(1 - t, a, \color{blue}{\left(\left(t + y\right) - 2\right) \cdot b} + x\right) \]
                                                                                                                  17. lower-fma.f64N/A

                                                                                                                    \[\leadsto \mathsf{fma}\left(1 - t, a, \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right)}\right) \]
                                                                                                                  18. lower--.f64N/A

                                                                                                                    \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(t + y\right) - 2}, b, x\right)\right) \]
                                                                                                                  19. +-commutativeN/A

                                                                                                                    \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                                                                                                                  20. lower-+.f6472.9

                                                                                                                    \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                                                                                                                5. Applied rewrites72.9%

                                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right)\right)} \]
                                                                                                                6. Taylor expanded in t around 0

                                                                                                                  \[\leadsto a + \color{blue}{\left(x + b \cdot \left(y - 2\right)\right)} \]
                                                                                                                7. Step-by-step derivation
                                                                                                                  1. Applied rewrites68.1%

                                                                                                                    \[\leadsto \mathsf{fma}\left(y - 2, \color{blue}{b}, a + x\right) \]
                                                                                                                  2. Taylor expanded in b around 0

                                                                                                                    \[\leadsto a + x \]
                                                                                                                  3. Step-by-step derivation
                                                                                                                    1. Applied rewrites38.9%

                                                                                                                      \[\leadsto a + x \]

                                                                                                                    if 1.94999999999999999e80 < t

                                                                                                                    1. Initial program 87.7%

                                                                                                                      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                                                                                                    2. Add Preprocessing
                                                                                                                    3. Taylor expanded in a around 0

                                                                                                                      \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - z \cdot \left(y - 1\right)} \]
                                                                                                                    4. Applied rewrites73.1%

                                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(b - z, y, \mathsf{fma}\left(t - 2, b, z + x\right)\right)} \]
                                                                                                                    5. Taylor expanded in t around inf

                                                                                                                      \[\leadsto b \cdot \color{blue}{t} \]
                                                                                                                    6. Step-by-step derivation
                                                                                                                      1. Applied rewrites45.3%

                                                                                                                        \[\leadsto b \cdot \color{blue}{t} \]
                                                                                                                    7. Recombined 4 regimes into one program.
                                                                                                                    8. Add Preprocessing

                                                                                                                    Alternative 20: 36.2% accurate, 1.5× speedup?

                                                                                                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.05 \cdot 10^{+111}:\\ \;\;\;\;\left(-a\right) \cdot t\\ \mathbf{elif}\;t \leq -16200:\\ \;\;\;\;b \cdot t\\ \mathbf{elif}\;t \leq 1.95 \cdot 10^{+80}:\\ \;\;\;\;a + x\\ \mathbf{else}:\\ \;\;\;\;b \cdot t\\ \end{array} \end{array} \]
                                                                                                                    (FPCore (x y z t a b)
                                                                                                                     :precision binary64
                                                                                                                     (if (<= t -1.05e+111)
                                                                                                                       (* (- a) t)
                                                                                                                       (if (<= t -16200.0) (* b t) (if (<= t 1.95e+80) (+ a x) (* b t)))))
                                                                                                                    double code(double x, double y, double z, double t, double a, double b) {
                                                                                                                    	double tmp;
                                                                                                                    	if (t <= -1.05e+111) {
                                                                                                                    		tmp = -a * t;
                                                                                                                    	} else if (t <= -16200.0) {
                                                                                                                    		tmp = b * t;
                                                                                                                    	} else if (t <= 1.95e+80) {
                                                                                                                    		tmp = a + 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 (t <= (-1.05d+111)) then
                                                                                                                            tmp = -a * t
                                                                                                                        else if (t <= (-16200.0d0)) then
                                                                                                                            tmp = b * t
                                                                                                                        else if (t <= 1.95d+80) then
                                                                                                                            tmp = a + 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 (t <= -1.05e+111) {
                                                                                                                    		tmp = -a * t;
                                                                                                                    	} else if (t <= -16200.0) {
                                                                                                                    		tmp = b * t;
                                                                                                                    	} else if (t <= 1.95e+80) {
                                                                                                                    		tmp = a + x;
                                                                                                                    	} else {
                                                                                                                    		tmp = b * t;
                                                                                                                    	}
                                                                                                                    	return tmp;
                                                                                                                    }
                                                                                                                    
                                                                                                                    def code(x, y, z, t, a, b):
                                                                                                                    	tmp = 0
                                                                                                                    	if t <= -1.05e+111:
                                                                                                                    		tmp = -a * t
                                                                                                                    	elif t <= -16200.0:
                                                                                                                    		tmp = b * t
                                                                                                                    	elif t <= 1.95e+80:
                                                                                                                    		tmp = a + x
                                                                                                                    	else:
                                                                                                                    		tmp = b * t
                                                                                                                    	return tmp
                                                                                                                    
                                                                                                                    function code(x, y, z, t, a, b)
                                                                                                                    	tmp = 0.0
                                                                                                                    	if (t <= -1.05e+111)
                                                                                                                    		tmp = Float64(Float64(-a) * t);
                                                                                                                    	elseif (t <= -16200.0)
                                                                                                                    		tmp = Float64(b * t);
                                                                                                                    	elseif (t <= 1.95e+80)
                                                                                                                    		tmp = Float64(a + x);
                                                                                                                    	else
                                                                                                                    		tmp = Float64(b * t);
                                                                                                                    	end
                                                                                                                    	return tmp
                                                                                                                    end
                                                                                                                    
                                                                                                                    function tmp_2 = code(x, y, z, t, a, b)
                                                                                                                    	tmp = 0.0;
                                                                                                                    	if (t <= -1.05e+111)
                                                                                                                    		tmp = -a * t;
                                                                                                                    	elseif (t <= -16200.0)
                                                                                                                    		tmp = b * t;
                                                                                                                    	elseif (t <= 1.95e+80)
                                                                                                                    		tmp = a + x;
                                                                                                                    	else
                                                                                                                    		tmp = b * t;
                                                                                                                    	end
                                                                                                                    	tmp_2 = tmp;
                                                                                                                    end
                                                                                                                    
                                                                                                                    code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -1.05e+111], N[((-a) * t), $MachinePrecision], If[LessEqual[t, -16200.0], N[(b * t), $MachinePrecision], If[LessEqual[t, 1.95e+80], N[(a + x), $MachinePrecision], N[(b * t), $MachinePrecision]]]]
                                                                                                                    
                                                                                                                    \begin{array}{l}
                                                                                                                    
                                                                                                                    \\
                                                                                                                    \begin{array}{l}
                                                                                                                    \mathbf{if}\;t \leq -1.05 \cdot 10^{+111}:\\
                                                                                                                    \;\;\;\;\left(-a\right) \cdot t\\
                                                                                                                    
                                                                                                                    \mathbf{elif}\;t \leq -16200:\\
                                                                                                                    \;\;\;\;b \cdot t\\
                                                                                                                    
                                                                                                                    \mathbf{elif}\;t \leq 1.95 \cdot 10^{+80}:\\
                                                                                                                    \;\;\;\;a + x\\
                                                                                                                    
                                                                                                                    \mathbf{else}:\\
                                                                                                                    \;\;\;\;b \cdot t\\
                                                                                                                    
                                                                                                                    
                                                                                                                    \end{array}
                                                                                                                    \end{array}
                                                                                                                    
                                                                                                                    Derivation
                                                                                                                    1. Split input into 3 regimes
                                                                                                                    2. if t < -1.04999999999999997e111

                                                                                                                      1. Initial program 89.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--.f6480.2

                                                                                                                          \[\leadsto \color{blue}{\left(b - a\right)} \cdot t \]
                                                                                                                      5. Applied rewrites80.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 rewrites63.7%

                                                                                                                          \[\leadsto \left(-a\right) \cdot t \]

                                                                                                                        if -1.04999999999999997e111 < t < -16200 or 1.94999999999999999e80 < t

                                                                                                                        1. Initial program 90.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 a around 0

                                                                                                                          \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - z \cdot \left(y - 1\right)} \]
                                                                                                                        4. Applied rewrites76.3%

                                                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(b - z, y, \mathsf{fma}\left(t - 2, b, z + x\right)\right)} \]
                                                                                                                        5. Taylor expanded in t around inf

                                                                                                                          \[\leadsto b \cdot \color{blue}{t} \]
                                                                                                                        6. Step-by-step derivation
                                                                                                                          1. Applied rewrites42.8%

                                                                                                                            \[\leadsto b \cdot \color{blue}{t} \]

                                                                                                                          if -16200 < t < 1.94999999999999999e80

                                                                                                                          1. Initial program 97.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 z around 0

                                                                                                                            \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]
                                                                                                                          4. Step-by-step derivation
                                                                                                                            1. sub-negN/A

                                                                                                                              \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) + \left(\mathsf{neg}\left(a \cdot \left(t - 1\right)\right)\right)} \]
                                                                                                                            2. +-commutativeN/A

                                                                                                                              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a \cdot \left(t - 1\right)\right)\right) + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                                                                                                            3. *-commutativeN/A

                                                                                                                              \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(t - 1\right) \cdot a}\right)\right) + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                            4. distribute-lft-neg-inN/A

                                                                                                                              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(t - 1\right)\right)\right) \cdot a} + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                            5. mul-1-negN/A

                                                                                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(t - 1\right)\right)} \cdot a + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                            6. lower-fma.f64N/A

                                                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(t - 1\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                                                                                                            7. mul-1-negN/A

                                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(\left(t - 1\right)\right)}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                            8. sub-negN/A

                                                                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                            9. metadata-evalN/A

                                                                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\left(t + \color{blue}{-1}\right)\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                            10. +-commutativeN/A

                                                                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(-1 + t\right)}\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                            11. distribute-neg-inN/A

                                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(-1\right)\right) + \left(\mathsf{neg}\left(t\right)\right)}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                            12. metadata-evalN/A

                                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{1} + \left(\mathsf{neg}\left(t\right)\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                            13. sub-negN/A

                                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{1 - t}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                            14. lower--.f64N/A

                                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{1 - t}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                            15. +-commutativeN/A

                                                                                                                              \[\leadsto \mathsf{fma}\left(1 - t, a, \color{blue}{b \cdot \left(\left(t + y\right) - 2\right) + x}\right) \]
                                                                                                                            16. *-commutativeN/A

                                                                                                                              \[\leadsto \mathsf{fma}\left(1 - t, a, \color{blue}{\left(\left(t + y\right) - 2\right) \cdot b} + x\right) \]
                                                                                                                            17. lower-fma.f64N/A

                                                                                                                              \[\leadsto \mathsf{fma}\left(1 - t, a, \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right)}\right) \]
                                                                                                                            18. lower--.f64N/A

                                                                                                                              \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(t + y\right) - 2}, b, x\right)\right) \]
                                                                                                                            19. +-commutativeN/A

                                                                                                                              \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                                                                                                                            20. lower-+.f6473.6

                                                                                                                              \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                                                                                                                          5. Applied rewrites73.6%

                                                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right)\right)} \]
                                                                                                                          6. Taylor expanded in t around 0

                                                                                                                            \[\leadsto a + \color{blue}{\left(x + b \cdot \left(y - 2\right)\right)} \]
                                                                                                                          7. Step-by-step derivation
                                                                                                                            1. Applied rewrites67.2%

                                                                                                                              \[\leadsto \mathsf{fma}\left(y - 2, \color{blue}{b}, a + x\right) \]
                                                                                                                            2. Taylor expanded in b around 0

                                                                                                                              \[\leadsto a + x \]
                                                                                                                            3. Step-by-step derivation
                                                                                                                              1. Applied rewrites38.4%

                                                                                                                                \[\leadsto a + x \]
                                                                                                                            4. Recombined 3 regimes into one program.
                                                                                                                            5. Add Preprocessing

                                                                                                                            Alternative 21: 57.0% accurate, 1.7× speedup?

                                                                                                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - a\right) \cdot t\\ \mathbf{if}\;t \leq -10:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 2.4 \cdot 10^{+40}:\\ \;\;\;\;\mathsf{fma}\left(y - 2, b, a\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                                            (FPCore (x y z t a b)
                                                                                                                             :precision binary64
                                                                                                                             (let* ((t_1 (* (- b a) t)))
                                                                                                                               (if (<= t -10.0) t_1 (if (<= t 2.4e+40) (fma (- y 2.0) b 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 <= -10.0) {
                                                                                                                            		tmp = t_1;
                                                                                                                            	} else if (t <= 2.4e+40) {
                                                                                                                            		tmp = fma((y - 2.0), b, 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 <= -10.0)
                                                                                                                            		tmp = t_1;
                                                                                                                            	elseif (t <= 2.4e+40)
                                                                                                                            		tmp = fma(Float64(y - 2.0), b, 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), $MachinePrecision]}, If[LessEqual[t, -10.0], t$95$1, If[LessEqual[t, 2.4e+40], N[(N[(y - 2.0), $MachinePrecision] * b + a), $MachinePrecision], t$95$1]]]
                                                                                                                            
                                                                                                                            \begin{array}{l}
                                                                                                                            
                                                                                                                            \\
                                                                                                                            \begin{array}{l}
                                                                                                                            t_1 := \left(b - a\right) \cdot t\\
                                                                                                                            \mathbf{if}\;t \leq -10:\\
                                                                                                                            \;\;\;\;t\_1\\
                                                                                                                            
                                                                                                                            \mathbf{elif}\;t \leq 2.4 \cdot 10^{+40}:\\
                                                                                                                            \;\;\;\;\mathsf{fma}\left(y - 2, b, a\right)\\
                                                                                                                            
                                                                                                                            \mathbf{else}:\\
                                                                                                                            \;\;\;\;t\_1\\
                                                                                                                            
                                                                                                                            
                                                                                                                            \end{array}
                                                                                                                            \end{array}
                                                                                                                            
                                                                                                                            Derivation
                                                                                                                            1. Split input into 2 regimes
                                                                                                                            2. if t < -10 or 2.4e40 < t

                                                                                                                              1. Initial program 90.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 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--.f6469.6

                                                                                                                                  \[\leadsto \color{blue}{\left(b - a\right)} \cdot t \]
                                                                                                                              5. Applied rewrites69.6%

                                                                                                                                \[\leadsto \color{blue}{\left(b - a\right) \cdot t} \]

                                                                                                                              if -10 < t < 2.4e40

                                                                                                                              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 z around 0

                                                                                                                                \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]
                                                                                                                              4. Step-by-step derivation
                                                                                                                                1. sub-negN/A

                                                                                                                                  \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) + \left(\mathsf{neg}\left(a \cdot \left(t - 1\right)\right)\right)} \]
                                                                                                                                2. +-commutativeN/A

                                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a \cdot \left(t - 1\right)\right)\right) + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                                                                                                                3. *-commutativeN/A

                                                                                                                                  \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(t - 1\right) \cdot a}\right)\right) + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                4. distribute-lft-neg-inN/A

                                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(t - 1\right)\right)\right) \cdot a} + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                5. mul-1-negN/A

                                                                                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(t - 1\right)\right)} \cdot a + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                6. lower-fma.f64N/A

                                                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(t - 1\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                                                                                                                7. mul-1-negN/A

                                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(\left(t - 1\right)\right)}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                8. sub-negN/A

                                                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                9. metadata-evalN/A

                                                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\left(t + \color{blue}{-1}\right)\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                10. +-commutativeN/A

                                                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(-1 + t\right)}\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                11. distribute-neg-inN/A

                                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(-1\right)\right) + \left(\mathsf{neg}\left(t\right)\right)}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                12. metadata-evalN/A

                                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{1} + \left(\mathsf{neg}\left(t\right)\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                13. sub-negN/A

                                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{1 - t}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                14. lower--.f64N/A

                                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{1 - t}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                15. +-commutativeN/A

                                                                                                                                  \[\leadsto \mathsf{fma}\left(1 - t, a, \color{blue}{b \cdot \left(\left(t + y\right) - 2\right) + x}\right) \]
                                                                                                                                16. *-commutativeN/A

                                                                                                                                  \[\leadsto \mathsf{fma}\left(1 - t, a, \color{blue}{\left(\left(t + y\right) - 2\right) \cdot b} + x\right) \]
                                                                                                                                17. lower-fma.f64N/A

                                                                                                                                  \[\leadsto \mathsf{fma}\left(1 - t, a, \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right)}\right) \]
                                                                                                                                18. lower--.f64N/A

                                                                                                                                  \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(t + y\right) - 2}, b, x\right)\right) \]
                                                                                                                                19. +-commutativeN/A

                                                                                                                                  \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                                                                                                                                20. lower-+.f6472.2

                                                                                                                                  \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                                                                                                                              5. Applied rewrites72.2%

                                                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right)\right)} \]
                                                                                                                              6. Taylor expanded in t around 0

                                                                                                                                \[\leadsto a + \color{blue}{\left(x + b \cdot \left(y - 2\right)\right)} \]
                                                                                                                              7. Step-by-step derivation
                                                                                                                                1. Applied rewrites70.1%

                                                                                                                                  \[\leadsto \mathsf{fma}\left(y - 2, \color{blue}{b}, a + x\right) \]
                                                                                                                                2. Taylor expanded in x around 0

                                                                                                                                  \[\leadsto a + b \cdot \color{blue}{\left(y - 2\right)} \]
                                                                                                                                3. Step-by-step derivation
                                                                                                                                  1. Applied rewrites50.7%

                                                                                                                                    \[\leadsto \mathsf{fma}\left(y - 2, b, a\right) \]
                                                                                                                                4. Recombined 2 regimes into one program.
                                                                                                                                5. Add Preprocessing

                                                                                                                                Alternative 22: 35.7% accurate, 2.1× speedup?

                                                                                                                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -7:\\ \;\;\;\;b \cdot y\\ \mathbf{elif}\;y \leq 4100000:\\ \;\;\;\;z + x\\ \mathbf{else}:\\ \;\;\;\;b \cdot y\\ \end{array} \end{array} \]
                                                                                                                                (FPCore (x y z t a b)
                                                                                                                                 :precision binary64
                                                                                                                                 (if (<= y -7.0) (* b y) (if (<= y 4100000.0) (+ z x) (* b y))))
                                                                                                                                double code(double x, double y, double z, double t, double a, double b) {
                                                                                                                                	double tmp;
                                                                                                                                	if (y <= -7.0) {
                                                                                                                                		tmp = b * y;
                                                                                                                                	} else if (y <= 4100000.0) {
                                                                                                                                		tmp = z + x;
                                                                                                                                	} else {
                                                                                                                                		tmp = b * y;
                                                                                                                                	}
                                                                                                                                	return tmp;
                                                                                                                                }
                                                                                                                                
                                                                                                                                real(8) function code(x, y, z, t, a, b)
                                                                                                                                    real(8), intent (in) :: x
                                                                                                                                    real(8), intent (in) :: y
                                                                                                                                    real(8), intent (in) :: z
                                                                                                                                    real(8), intent (in) :: t
                                                                                                                                    real(8), intent (in) :: a
                                                                                                                                    real(8), intent (in) :: b
                                                                                                                                    real(8) :: tmp
                                                                                                                                    if (y <= (-7.0d0)) then
                                                                                                                                        tmp = b * y
                                                                                                                                    else if (y <= 4100000.0d0) then
                                                                                                                                        tmp = z + x
                                                                                                                                    else
                                                                                                                                        tmp = b * y
                                                                                                                                    end if
                                                                                                                                    code = tmp
                                                                                                                                end function
                                                                                                                                
                                                                                                                                public static double code(double x, double y, double z, double t, double a, double b) {
                                                                                                                                	double tmp;
                                                                                                                                	if (y <= -7.0) {
                                                                                                                                		tmp = b * y;
                                                                                                                                	} else if (y <= 4100000.0) {
                                                                                                                                		tmp = z + x;
                                                                                                                                	} else {
                                                                                                                                		tmp = b * y;
                                                                                                                                	}
                                                                                                                                	return tmp;
                                                                                                                                }
                                                                                                                                
                                                                                                                                def code(x, y, z, t, a, b):
                                                                                                                                	tmp = 0
                                                                                                                                	if y <= -7.0:
                                                                                                                                		tmp = b * y
                                                                                                                                	elif y <= 4100000.0:
                                                                                                                                		tmp = z + x
                                                                                                                                	else:
                                                                                                                                		tmp = b * y
                                                                                                                                	return tmp
                                                                                                                                
                                                                                                                                function code(x, y, z, t, a, b)
                                                                                                                                	tmp = 0.0
                                                                                                                                	if (y <= -7.0)
                                                                                                                                		tmp = Float64(b * y);
                                                                                                                                	elseif (y <= 4100000.0)
                                                                                                                                		tmp = Float64(z + x);
                                                                                                                                	else
                                                                                                                                		tmp = Float64(b * y);
                                                                                                                                	end
                                                                                                                                	return tmp
                                                                                                                                end
                                                                                                                                
                                                                                                                                function tmp_2 = code(x, y, z, t, a, b)
                                                                                                                                	tmp = 0.0;
                                                                                                                                	if (y <= -7.0)
                                                                                                                                		tmp = b * y;
                                                                                                                                	elseif (y <= 4100000.0)
                                                                                                                                		tmp = z + x;
                                                                                                                                	else
                                                                                                                                		tmp = b * y;
                                                                                                                                	end
                                                                                                                                	tmp_2 = tmp;
                                                                                                                                end
                                                                                                                                
                                                                                                                                code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -7.0], N[(b * y), $MachinePrecision], If[LessEqual[y, 4100000.0], N[(z + x), $MachinePrecision], N[(b * y), $MachinePrecision]]]
                                                                                                                                
                                                                                                                                \begin{array}{l}
                                                                                                                                
                                                                                                                                \\
                                                                                                                                \begin{array}{l}
                                                                                                                                \mathbf{if}\;y \leq -7:\\
                                                                                                                                \;\;\;\;b \cdot y\\
                                                                                                                                
                                                                                                                                \mathbf{elif}\;y \leq 4100000:\\
                                                                                                                                \;\;\;\;z + x\\
                                                                                                                                
                                                                                                                                \mathbf{else}:\\
                                                                                                                                \;\;\;\;b \cdot y\\
                                                                                                                                
                                                                                                                                
                                                                                                                                \end{array}
                                                                                                                                \end{array}
                                                                                                                                
                                                                                                                                Derivation
                                                                                                                                1. Split input into 2 regimes
                                                                                                                                2. if y < -7 or 4.1e6 < y

                                                                                                                                  1. Initial program 90.6%

                                                                                                                                    \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                                                                                                                  2. Add Preprocessing
                                                                                                                                  3. Taylor expanded in z around 0

                                                                                                                                    \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]
                                                                                                                                  4. Step-by-step derivation
                                                                                                                                    1. sub-negN/A

                                                                                                                                      \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) + \left(\mathsf{neg}\left(a \cdot \left(t - 1\right)\right)\right)} \]
                                                                                                                                    2. +-commutativeN/A

                                                                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a \cdot \left(t - 1\right)\right)\right) + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                                                                                                                    3. *-commutativeN/A

                                                                                                                                      \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(t - 1\right) \cdot a}\right)\right) + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                    4. distribute-lft-neg-inN/A

                                                                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(t - 1\right)\right)\right) \cdot a} + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                    5. mul-1-negN/A

                                                                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(t - 1\right)\right)} \cdot a + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                    6. lower-fma.f64N/A

                                                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(t - 1\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                                                                                                                    7. mul-1-negN/A

                                                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(\left(t - 1\right)\right)}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                    8. sub-negN/A

                                                                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                    9. metadata-evalN/A

                                                                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\left(t + \color{blue}{-1}\right)\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                    10. +-commutativeN/A

                                                                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(-1 + t\right)}\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                    11. distribute-neg-inN/A

                                                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(-1\right)\right) + \left(\mathsf{neg}\left(t\right)\right)}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                    12. metadata-evalN/A

                                                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{1} + \left(\mathsf{neg}\left(t\right)\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                    13. sub-negN/A

                                                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{1 - t}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                    14. lower--.f64N/A

                                                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{1 - t}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                    15. +-commutativeN/A

                                                                                                                                      \[\leadsto \mathsf{fma}\left(1 - t, a, \color{blue}{b \cdot \left(\left(t + y\right) - 2\right) + x}\right) \]
                                                                                                                                    16. *-commutativeN/A

                                                                                                                                      \[\leadsto \mathsf{fma}\left(1 - t, a, \color{blue}{\left(\left(t + y\right) - 2\right) \cdot b} + x\right) \]
                                                                                                                                    17. lower-fma.f64N/A

                                                                                                                                      \[\leadsto \mathsf{fma}\left(1 - t, a, \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right)}\right) \]
                                                                                                                                    18. lower--.f64N/A

                                                                                                                                      \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(t + y\right) - 2}, b, x\right)\right) \]
                                                                                                                                    19. +-commutativeN/A

                                                                                                                                      \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                                                                                                                                    20. lower-+.f6477.5

                                                                                                                                      \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                                                                                                                                  5. Applied rewrites77.5%

                                                                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right)\right)} \]
                                                                                                                                  6. Taylor expanded in y around inf

                                                                                                                                    \[\leadsto b \cdot \color{blue}{y} \]
                                                                                                                                  7. Step-by-step derivation
                                                                                                                                    1. Applied rewrites33.5%

                                                                                                                                      \[\leadsto b \cdot \color{blue}{y} \]

                                                                                                                                    if -7 < y < 4.1e6

                                                                                                                                    1. Initial program 96.9%

                                                                                                                                      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                                                                                                                    2. Add Preprocessing
                                                                                                                                    3. Taylor expanded in a around 0

                                                                                                                                      \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - z \cdot \left(y - 1\right)} \]
                                                                                                                                    4. Applied rewrites66.2%

                                                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(b - z, y, \mathsf{fma}\left(t - 2, b, z + x\right)\right)} \]
                                                                                                                                    5. Taylor expanded in b around 0

                                                                                                                                      \[\leadsto x + \color{blue}{\left(z + -1 \cdot \left(y \cdot z\right)\right)} \]
                                                                                                                                    6. Step-by-step derivation
                                                                                                                                      1. Applied rewrites40.2%

                                                                                                                                        \[\leadsto \mathsf{fma}\left(1 - y, \color{blue}{z}, x\right) \]
                                                                                                                                      2. Taylor expanded in y around 0

                                                                                                                                        \[\leadsto x + z \]
                                                                                                                                      3. Step-by-step derivation
                                                                                                                                        1. Applied rewrites40.2%

                                                                                                                                          \[\leadsto z + x \]
                                                                                                                                      4. Recombined 2 regimes into one program.
                                                                                                                                      5. Add Preprocessing

                                                                                                                                      Alternative 23: 31.6% accurate, 2.3× speedup?

                                                                                                                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -1.95 \cdot 10^{+24}:\\ \;\;\;\;a + x\\ \mathbf{elif}\;a \leq 2.2 \cdot 10^{+75}:\\ \;\;\;\;z + x\\ \mathbf{else}:\\ \;\;\;\;a + x\\ \end{array} \end{array} \]
                                                                                                                                      (FPCore (x y z t a b)
                                                                                                                                       :precision binary64
                                                                                                                                       (if (<= a -1.95e+24) (+ a x) (if (<= a 2.2e+75) (+ z x) (+ a x))))
                                                                                                                                      double code(double x, double y, double z, double t, double a, double b) {
                                                                                                                                      	double tmp;
                                                                                                                                      	if (a <= -1.95e+24) {
                                                                                                                                      		tmp = a + x;
                                                                                                                                      	} else if (a <= 2.2e+75) {
                                                                                                                                      		tmp = z + x;
                                                                                                                                      	} else {
                                                                                                                                      		tmp = a + x;
                                                                                                                                      	}
                                                                                                                                      	return tmp;
                                                                                                                                      }
                                                                                                                                      
                                                                                                                                      real(8) function code(x, y, z, t, a, b)
                                                                                                                                          real(8), intent (in) :: x
                                                                                                                                          real(8), intent (in) :: y
                                                                                                                                          real(8), intent (in) :: z
                                                                                                                                          real(8), intent (in) :: t
                                                                                                                                          real(8), intent (in) :: a
                                                                                                                                          real(8), intent (in) :: b
                                                                                                                                          real(8) :: tmp
                                                                                                                                          if (a <= (-1.95d+24)) then
                                                                                                                                              tmp = a + x
                                                                                                                                          else if (a <= 2.2d+75) then
                                                                                                                                              tmp = z + x
                                                                                                                                          else
                                                                                                                                              tmp = a + x
                                                                                                                                          end if
                                                                                                                                          code = tmp
                                                                                                                                      end function
                                                                                                                                      
                                                                                                                                      public static double code(double x, double y, double z, double t, double a, double b) {
                                                                                                                                      	double tmp;
                                                                                                                                      	if (a <= -1.95e+24) {
                                                                                                                                      		tmp = a + x;
                                                                                                                                      	} else if (a <= 2.2e+75) {
                                                                                                                                      		tmp = z + x;
                                                                                                                                      	} else {
                                                                                                                                      		tmp = a + x;
                                                                                                                                      	}
                                                                                                                                      	return tmp;
                                                                                                                                      }
                                                                                                                                      
                                                                                                                                      def code(x, y, z, t, a, b):
                                                                                                                                      	tmp = 0
                                                                                                                                      	if a <= -1.95e+24:
                                                                                                                                      		tmp = a + x
                                                                                                                                      	elif a <= 2.2e+75:
                                                                                                                                      		tmp = z + x
                                                                                                                                      	else:
                                                                                                                                      		tmp = a + x
                                                                                                                                      	return tmp
                                                                                                                                      
                                                                                                                                      function code(x, y, z, t, a, b)
                                                                                                                                      	tmp = 0.0
                                                                                                                                      	if (a <= -1.95e+24)
                                                                                                                                      		tmp = Float64(a + x);
                                                                                                                                      	elseif (a <= 2.2e+75)
                                                                                                                                      		tmp = Float64(z + x);
                                                                                                                                      	else
                                                                                                                                      		tmp = Float64(a + x);
                                                                                                                                      	end
                                                                                                                                      	return tmp
                                                                                                                                      end
                                                                                                                                      
                                                                                                                                      function tmp_2 = code(x, y, z, t, a, b)
                                                                                                                                      	tmp = 0.0;
                                                                                                                                      	if (a <= -1.95e+24)
                                                                                                                                      		tmp = a + x;
                                                                                                                                      	elseif (a <= 2.2e+75)
                                                                                                                                      		tmp = z + x;
                                                                                                                                      	else
                                                                                                                                      		tmp = a + x;
                                                                                                                                      	end
                                                                                                                                      	tmp_2 = tmp;
                                                                                                                                      end
                                                                                                                                      
                                                                                                                                      code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -1.95e+24], N[(a + x), $MachinePrecision], If[LessEqual[a, 2.2e+75], N[(z + x), $MachinePrecision], N[(a + x), $MachinePrecision]]]
                                                                                                                                      
                                                                                                                                      \begin{array}{l}
                                                                                                                                      
                                                                                                                                      \\
                                                                                                                                      \begin{array}{l}
                                                                                                                                      \mathbf{if}\;a \leq -1.95 \cdot 10^{+24}:\\
                                                                                                                                      \;\;\;\;a + x\\
                                                                                                                                      
                                                                                                                                      \mathbf{elif}\;a \leq 2.2 \cdot 10^{+75}:\\
                                                                                                                                      \;\;\;\;z + x\\
                                                                                                                                      
                                                                                                                                      \mathbf{else}:\\
                                                                                                                                      \;\;\;\;a + x\\
                                                                                                                                      
                                                                                                                                      
                                                                                                                                      \end{array}
                                                                                                                                      \end{array}
                                                                                                                                      
                                                                                                                                      Derivation
                                                                                                                                      1. Split input into 2 regimes
                                                                                                                                      2. if a < -1.9499999999999999e24 or 2.20000000000000012e75 < a

                                                                                                                                        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 z around 0

                                                                                                                                          \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]
                                                                                                                                        4. Step-by-step derivation
                                                                                                                                          1. sub-negN/A

                                                                                                                                            \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) + \left(\mathsf{neg}\left(a \cdot \left(t - 1\right)\right)\right)} \]
                                                                                                                                          2. +-commutativeN/A

                                                                                                                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a \cdot \left(t - 1\right)\right)\right) + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                                                                                                                          3. *-commutativeN/A

                                                                                                                                            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(t - 1\right) \cdot a}\right)\right) + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                          4. distribute-lft-neg-inN/A

                                                                                                                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(t - 1\right)\right)\right) \cdot a} + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                          5. mul-1-negN/A

                                                                                                                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(t - 1\right)\right)} \cdot a + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                          6. lower-fma.f64N/A

                                                                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(t - 1\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                                                                                                                          7. mul-1-negN/A

                                                                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(\left(t - 1\right)\right)}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                          8. sub-negN/A

                                                                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                          9. metadata-evalN/A

                                                                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\left(t + \color{blue}{-1}\right)\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                          10. +-commutativeN/A

                                                                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(-1 + t\right)}\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                          11. distribute-neg-inN/A

                                                                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(-1\right)\right) + \left(\mathsf{neg}\left(t\right)\right)}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                          12. metadata-evalN/A

                                                                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{1} + \left(\mathsf{neg}\left(t\right)\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                          13. sub-negN/A

                                                                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{1 - t}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                          14. lower--.f64N/A

                                                                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{1 - t}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                          15. +-commutativeN/A

                                                                                                                                            \[\leadsto \mathsf{fma}\left(1 - t, a, \color{blue}{b \cdot \left(\left(t + y\right) - 2\right) + x}\right) \]
                                                                                                                                          16. *-commutativeN/A

                                                                                                                                            \[\leadsto \mathsf{fma}\left(1 - t, a, \color{blue}{\left(\left(t + y\right) - 2\right) \cdot b} + x\right) \]
                                                                                                                                          17. lower-fma.f64N/A

                                                                                                                                            \[\leadsto \mathsf{fma}\left(1 - t, a, \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right)}\right) \]
                                                                                                                                          18. lower--.f64N/A

                                                                                                                                            \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(t + y\right) - 2}, b, x\right)\right) \]
                                                                                                                                          19. +-commutativeN/A

                                                                                                                                            \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                                                                                                                                          20. lower-+.f6486.5

                                                                                                                                            \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                                                                                                                                        5. Applied rewrites86.5%

                                                                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right)\right)} \]
                                                                                                                                        6. Taylor expanded in t around 0

                                                                                                                                          \[\leadsto a + \color{blue}{\left(x + b \cdot \left(y - 2\right)\right)} \]
                                                                                                                                        7. Step-by-step derivation
                                                                                                                                          1. Applied rewrites47.4%

                                                                                                                                            \[\leadsto \mathsf{fma}\left(y - 2, \color{blue}{b}, a + x\right) \]
                                                                                                                                          2. Taylor expanded in b around 0

                                                                                                                                            \[\leadsto a + x \]
                                                                                                                                          3. Step-by-step derivation
                                                                                                                                            1. Applied rewrites29.9%

                                                                                                                                              \[\leadsto a + x \]

                                                                                                                                            if -1.9499999999999999e24 < a < 2.20000000000000012e75

                                                                                                                                            1. Initial program 95.7%

                                                                                                                                              \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                                                                                                                            2. Add Preprocessing
                                                                                                                                            3. Taylor expanded in a around 0

                                                                                                                                              \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - z \cdot \left(y - 1\right)} \]
                                                                                                                                            4. Applied rewrites90.5%

                                                                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(b - z, y, \mathsf{fma}\left(t - 2, b, z + x\right)\right)} \]
                                                                                                                                            5. Taylor expanded in b around 0

                                                                                                                                              \[\leadsto x + \color{blue}{\left(z + -1 \cdot \left(y \cdot z\right)\right)} \]
                                                                                                                                            6. Step-by-step derivation
                                                                                                                                              1. Applied rewrites49.3%

                                                                                                                                                \[\leadsto \mathsf{fma}\left(1 - y, \color{blue}{z}, x\right) \]
                                                                                                                                              2. Taylor expanded in y around 0

                                                                                                                                                \[\leadsto x + z \]
                                                                                                                                              3. Step-by-step derivation
                                                                                                                                                1. Applied rewrites34.2%

                                                                                                                                                  \[\leadsto z + x \]
                                                                                                                                              4. Recombined 2 regimes into one program.
                                                                                                                                              5. Add Preprocessing

                                                                                                                                              Alternative 24: 25.3% accurate, 9.3× speedup?

                                                                                                                                              \[\begin{array}{l} \\ a + x \end{array} \]
                                                                                                                                              (FPCore (x y z t a b) :precision binary64 (+ a x))
                                                                                                                                              double code(double x, double y, double z, double t, double a, double b) {
                                                                                                                                              	return a + x;
                                                                                                                                              }
                                                                                                                                              
                                                                                                                                              real(8) function code(x, y, z, t, a, b)
                                                                                                                                                  real(8), intent (in) :: x
                                                                                                                                                  real(8), intent (in) :: y
                                                                                                                                                  real(8), intent (in) :: z
                                                                                                                                                  real(8), intent (in) :: t
                                                                                                                                                  real(8), intent (in) :: a
                                                                                                                                                  real(8), intent (in) :: b
                                                                                                                                                  code = a + x
                                                                                                                                              end function
                                                                                                                                              
                                                                                                                                              public static double code(double x, double y, double z, double t, double a, double b) {
                                                                                                                                              	return a + x;
                                                                                                                                              }
                                                                                                                                              
                                                                                                                                              def code(x, y, z, t, a, b):
                                                                                                                                              	return a + x
                                                                                                                                              
                                                                                                                                              function code(x, y, z, t, a, b)
                                                                                                                                              	return Float64(a + x)
                                                                                                                                              end
                                                                                                                                              
                                                                                                                                              function tmp = code(x, y, z, t, a, b)
                                                                                                                                              	tmp = a + x;
                                                                                                                                              end
                                                                                                                                              
                                                                                                                                              code[x_, y_, z_, t_, a_, b_] := N[(a + x), $MachinePrecision]
                                                                                                                                              
                                                                                                                                              \begin{array}{l}
                                                                                                                                              
                                                                                                                                              \\
                                                                                                                                              a + x
                                                                                                                                              \end{array}
                                                                                                                                              
                                                                                                                                              Derivation
                                                                                                                                              1. Initial program 93.7%

                                                                                                                                                \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                                                                                                                              2. Add Preprocessing
                                                                                                                                              3. Taylor expanded in z around 0

                                                                                                                                                \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - a \cdot \left(t - 1\right)} \]
                                                                                                                                              4. Step-by-step derivation
                                                                                                                                                1. sub-negN/A

                                                                                                                                                  \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) + \left(\mathsf{neg}\left(a \cdot \left(t - 1\right)\right)\right)} \]
                                                                                                                                                2. +-commutativeN/A

                                                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a \cdot \left(t - 1\right)\right)\right) + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                                                                                                                                3. *-commutativeN/A

                                                                                                                                                  \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(t - 1\right) \cdot a}\right)\right) + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                                4. distribute-lft-neg-inN/A

                                                                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(t - 1\right)\right)\right) \cdot a} + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                                5. mul-1-negN/A

                                                                                                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(t - 1\right)\right)} \cdot a + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                                6. lower-fma.f64N/A

                                                                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(t - 1\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                                                                                                                                7. mul-1-negN/A

                                                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(\left(t - 1\right)\right)}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                                8. sub-negN/A

                                                                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(t + \left(\mathsf{neg}\left(1\right)\right)\right)}\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                                9. metadata-evalN/A

                                                                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\left(t + \color{blue}{-1}\right)\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                                10. +-commutativeN/A

                                                                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(-1 + t\right)}\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                                11. distribute-neg-inN/A

                                                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(-1\right)\right) + \left(\mathsf{neg}\left(t\right)\right)}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                                12. metadata-evalN/A

                                                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{1} + \left(\mathsf{neg}\left(t\right)\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                                13. sub-negN/A

                                                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{1 - t}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                                14. lower--.f64N/A

                                                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{1 - t}, a, x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                                15. +-commutativeN/A

                                                                                                                                                  \[\leadsto \mathsf{fma}\left(1 - t, a, \color{blue}{b \cdot \left(\left(t + y\right) - 2\right) + x}\right) \]
                                                                                                                                                16. *-commutativeN/A

                                                                                                                                                  \[\leadsto \mathsf{fma}\left(1 - t, a, \color{blue}{\left(\left(t + y\right) - 2\right) \cdot b} + x\right) \]
                                                                                                                                                17. lower-fma.f64N/A

                                                                                                                                                  \[\leadsto \mathsf{fma}\left(1 - t, a, \color{blue}{\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right)}\right) \]
                                                                                                                                                18. lower--.f64N/A

                                                                                                                                                  \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(t + y\right) - 2}, b, x\right)\right) \]
                                                                                                                                                19. +-commutativeN/A

                                                                                                                                                  \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                                                                                                                                                20. lower-+.f6478.6

                                                                                                                                                  \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(y + t\right)} - 2, b, x\right)\right) \]
                                                                                                                                              5. Applied rewrites78.6%

                                                                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right)\right)} \]
                                                                                                                                              6. Taylor expanded in t around 0

                                                                                                                                                \[\leadsto a + \color{blue}{\left(x + b \cdot \left(y - 2\right)\right)} \]
                                                                                                                                              7. Step-by-step derivation
                                                                                                                                                1. Applied rewrites43.7%

                                                                                                                                                  \[\leadsto \mathsf{fma}\left(y - 2, \color{blue}{b}, a + x\right) \]
                                                                                                                                                2. Taylor expanded in b around 0

                                                                                                                                                  \[\leadsto a + x \]
                                                                                                                                                3. Step-by-step derivation
                                                                                                                                                  1. Applied rewrites24.2%

                                                                                                                                                    \[\leadsto a + x \]
                                                                                                                                                  2. Add Preprocessing

                                                                                                                                                  Reproduce

                                                                                                                                                  ?
                                                                                                                                                  herbie shell --seed 2024277 
                                                                                                                                                  (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)))