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

Percentage Accurate: 95.1% → 97.6%
Time: 10.9s
Alternatives: 25
Speedup: 1.2×

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 25 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.1% accurate, 1.0× speedup?

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

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

Alternative 1: 97.6% accurate, 1.2× speedup?

\[\begin{array}{l} \\ \mathsf{fma}\left(1 - t, a, z + \mathsf{fma}\left(b - z, y, \mathsf{fma}\left(t - 2, b, x\right)\right)\right) \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (fma (- 1.0 t) a (+ z (fma (- b z) y (fma (- t 2.0) b x)))))
double code(double x, double y, double z, double t, double a, double b) {
	return fma((1.0 - t), a, (z + fma((b - z), y, fma((t - 2.0), b, x))));
}
function code(x, y, z, t, a, b)
	return fma(Float64(1.0 - t), a, Float64(z + fma(Float64(b - z), y, fma(Float64(t - 2.0), b, x))))
end
code[x_, y_, z_, t_, a_, b_] := N[(N[(1.0 - t), $MachinePrecision] * a + N[(z + N[(N[(b - z), $MachinePrecision] * y + N[(N[(t - 2.0), $MachinePrecision] * b + x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\mathsf{fma}\left(1 - t, a, z + \mathsf{fma}\left(b - z, y, \mathsf{fma}\left(t - 2, b, x\right)\right)\right)
\end{array}
Derivation
  1. Initial program 95.3%

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

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

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

Alternative 2: 34.6% accurate, 0.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_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\\ \mathbf{if}\;t\_1 \leq -\infty:\\ \;\;\;\;b \cdot t\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+302}:\\ \;\;\;\;a + x\\ \mathbf{else}:\\ \;\;\;\;\left(-a\right) \cdot t\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1
         (+ (- (- x (* (- y 1.0) z)) (* (- t 1.0) a)) (* (- (+ y t) 2.0) b))))
   (if (<= t_1 (- INFINITY))
     (* b t)
     (if (<= t_1 5e+302) (+ a x) (* (- a) t)))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
	double tmp;
	if (t_1 <= -((double) INFINITY)) {
		tmp = b * t;
	} else if (t_1 <= 5e+302) {
		tmp = a + x;
	} else {
		tmp = -a * t;
	}
	return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
	double tmp;
	if (t_1 <= -Double.POSITIVE_INFINITY) {
		tmp = b * t;
	} else if (t_1 <= 5e+302) {
		tmp = a + x;
	} else {
		tmp = -a * t;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b)
	tmp = 0
	if t_1 <= -math.inf:
		tmp = b * t
	elif t_1 <= 5e+302:
		tmp = a + x
	else:
		tmp = -a * t
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(Float64(x - Float64(Float64(y - 1.0) * z)) - Float64(Float64(t - 1.0) * a)) + Float64(Float64(Float64(y + t) - 2.0) * b))
	tmp = 0.0
	if (t_1 <= Float64(-Inf))
		tmp = Float64(b * t);
	elseif (t_1 <= 5e+302)
		tmp = Float64(a + x);
	else
		tmp = Float64(Float64(-a) * t);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
	tmp = 0.0;
	if (t_1 <= -Inf)
		tmp = b * t;
	elseif (t_1 <= 5e+302)
		tmp = a + x;
	else
		tmp = -a * t;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = 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]}, If[LessEqual[t$95$1, (-Infinity)], N[(b * t), $MachinePrecision], If[LessEqual[t$95$1, 5e+302], N[(a + x), $MachinePrecision], N[((-a) * t), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_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\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;b \cdot t\\

\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+302}:\\
\;\;\;\;a + x\\

\mathbf{else}:\\
\;\;\;\;\left(-a\right) \cdot t\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y #s(literal 1 binary64)) z)) (*.f64 (-.f64 t #s(literal 1 binary64)) a)) (*.f64 (-.f64 (+.f64 y t) #s(literal 2 binary64)) b)) < -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
    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. 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(z \cdot \left(y - 1\right)\right)\right)} \]
      2. +-commutativeN/A

        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z \cdot \left(y - 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(y - 1\right) \cdot z}\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(y - 1\right)\right)\right) \cdot z} + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
      5. mul-1-negN/A

        \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z + \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(y - 1\right), z, x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
      7. sub-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        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)) < 5e302

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\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. lower-+.f6475.2

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

          \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(t + y\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 rewrites46.7%

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

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

              \[\leadsto a + x \]

            if 5e302 < (+.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 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 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--.f6460.1

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

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

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

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

            Alternative 3: 53.3% accurate, 0.9× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - z\right) \cdot y\\ t_2 := \mathsf{fma}\left(-2, b, a + x\right)\\ t_3 := \left(b - a\right) \cdot t\\ \mathbf{if}\;t \leq -2.15 \cdot 10^{+129}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;t \leq -1.3 \cdot 10^{+20}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 1.85 \cdot 10^{-304}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq 1.15 \cdot 10^{-147}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 25500000:\\ \;\;\;\;t\_2\\ \mathbf{else}:\\ \;\;\;\;t\_3\\ \end{array} \end{array} \]
            (FPCore (x y z t a b)
             :precision binary64
             (let* ((t_1 (* (- b z) y)) (t_2 (fma -2.0 b (+ a x))) (t_3 (* (- b a) t)))
               (if (<= t -2.15e+129)
                 t_3
                 (if (<= t -1.3e+20)
                   t_1
                   (if (<= t 1.85e-304)
                     t_2
                     (if (<= t 1.15e-147) t_1 (if (<= t 25500000.0) t_2 t_3)))))))
            double code(double x, double y, double z, double t, double a, double b) {
            	double t_1 = (b - z) * y;
            	double t_2 = fma(-2.0, b, (a + x));
            	double t_3 = (b - a) * t;
            	double tmp;
            	if (t <= -2.15e+129) {
            		tmp = t_3;
            	} else if (t <= -1.3e+20) {
            		tmp = t_1;
            	} else if (t <= 1.85e-304) {
            		tmp = t_2;
            	} else if (t <= 1.15e-147) {
            		tmp = t_1;
            	} else if (t <= 25500000.0) {
            		tmp = t_2;
            	} else {
            		tmp = t_3;
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a, b)
            	t_1 = Float64(Float64(b - z) * y)
            	t_2 = fma(-2.0, b, Float64(a + x))
            	t_3 = Float64(Float64(b - a) * t)
            	tmp = 0.0
            	if (t <= -2.15e+129)
            		tmp = t_3;
            	elseif (t <= -1.3e+20)
            		tmp = t_1;
            	elseif (t <= 1.85e-304)
            		tmp = t_2;
            	elseif (t <= 1.15e-147)
            		tmp = t_1;
            	elseif (t <= 25500000.0)
            		tmp = t_2;
            	else
            		tmp = t_3;
            	end
            	return tmp
            end
            
            code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - z), $MachinePrecision] * y), $MachinePrecision]}, Block[{t$95$2 = N[(-2.0 * b + N[(a + x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -2.15e+129], t$95$3, If[LessEqual[t, -1.3e+20], t$95$1, If[LessEqual[t, 1.85e-304], t$95$2, If[LessEqual[t, 1.15e-147], t$95$1, If[LessEqual[t, 25500000.0], t$95$2, t$95$3]]]]]]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \left(b - z\right) \cdot y\\
            t_2 := \mathsf{fma}\left(-2, b, a + x\right)\\
            t_3 := \left(b - a\right) \cdot t\\
            \mathbf{if}\;t \leq -2.15 \cdot 10^{+129}:\\
            \;\;\;\;t\_3\\
            
            \mathbf{elif}\;t \leq -1.3 \cdot 10^{+20}:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;t \leq 1.85 \cdot 10^{-304}:\\
            \;\;\;\;t\_2\\
            
            \mathbf{elif}\;t \leq 1.15 \cdot 10^{-147}:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;t \leq 25500000:\\
            \;\;\;\;t\_2\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_3\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if t < -2.1500000000000001e129 or 2.55e7 < 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--.f6474.8

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

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

              if -2.1500000000000001e129 < t < -1.3e20 or 1.8500000000000001e-304 < t < 1.14999999999999995e-147

              1. Initial program 96.8%

                \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
              2. Add Preprocessing
              3. Taylor expanded in y around 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--.f6460.8

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

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

              if -1.3e20 < t < 1.8500000000000001e-304 or 1.14999999999999995e-147 < t < 2.55e7

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

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

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

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

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

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

                  \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\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. lower-+.f6474.9

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

                \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(t + y\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.4%

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

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

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

                Alternative 4: 49.6% accurate, 0.9× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - z\right) \cdot y\\ t_2 := \left(b - a\right) \cdot t\\ \mathbf{if}\;t \leq -2.15 \cdot 10^{+129}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq -2.45 \cdot 10^{-114}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 1.8 \cdot 10^{-304}:\\ \;\;\;\;a + x\\ \mathbf{elif}\;t \leq 1.18 \cdot 10^{-147}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 25500000:\\ \;\;\;\;a + x\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                (FPCore (x y z t a b)
                 :precision binary64
                 (let* ((t_1 (* (- b z) y)) (t_2 (* (- b a) t)))
                   (if (<= t -2.15e+129)
                     t_2
                     (if (<= t -2.45e-114)
                       t_1
                       (if (<= t 1.8e-304)
                         (+ a x)
                         (if (<= t 1.18e-147) t_1 (if (<= t 25500000.0) (+ a x) t_2)))))))
                double code(double x, double y, double z, double t, double a, double b) {
                	double t_1 = (b - z) * y;
                	double t_2 = (b - a) * t;
                	double tmp;
                	if (t <= -2.15e+129) {
                		tmp = t_2;
                	} else if (t <= -2.45e-114) {
                		tmp = t_1;
                	} else if (t <= 1.8e-304) {
                		tmp = a + x;
                	} else if (t <= 1.18e-147) {
                		tmp = t_1;
                	} else if (t <= 25500000.0) {
                		tmp = a + x;
                	} else {
                		tmp = t_2;
                	}
                	return tmp;
                }
                
                real(8) function code(x, y, z, t, a, b)
                    real(8), intent (in) :: x
                    real(8), intent (in) :: y
                    real(8), intent (in) :: z
                    real(8), intent (in) :: t
                    real(8), intent (in) :: a
                    real(8), intent (in) :: b
                    real(8) :: t_1
                    real(8) :: t_2
                    real(8) :: tmp
                    t_1 = (b - z) * y
                    t_2 = (b - a) * t
                    if (t <= (-2.15d+129)) then
                        tmp = t_2
                    else if (t <= (-2.45d-114)) then
                        tmp = t_1
                    else if (t <= 1.8d-304) then
                        tmp = a + x
                    else if (t <= 1.18d-147) then
                        tmp = t_1
                    else if (t <= 25500000.0d0) then
                        tmp = a + x
                    else
                        tmp = t_2
                    end if
                    code = tmp
                end function
                
                public static double code(double x, double y, double z, double t, double a, double b) {
                	double t_1 = (b - z) * y;
                	double t_2 = (b - a) * t;
                	double tmp;
                	if (t <= -2.15e+129) {
                		tmp = t_2;
                	} else if (t <= -2.45e-114) {
                		tmp = t_1;
                	} else if (t <= 1.8e-304) {
                		tmp = a + x;
                	} else if (t <= 1.18e-147) {
                		tmp = t_1;
                	} else if (t <= 25500000.0) {
                		tmp = a + x;
                	} else {
                		tmp = t_2;
                	}
                	return tmp;
                }
                
                def code(x, y, z, t, a, b):
                	t_1 = (b - z) * y
                	t_2 = (b - a) * t
                	tmp = 0
                	if t <= -2.15e+129:
                		tmp = t_2
                	elif t <= -2.45e-114:
                		tmp = t_1
                	elif t <= 1.8e-304:
                		tmp = a + x
                	elif t <= 1.18e-147:
                		tmp = t_1
                	elif t <= 25500000.0:
                		tmp = a + x
                	else:
                		tmp = t_2
                	return tmp
                
                function code(x, y, z, t, a, b)
                	t_1 = Float64(Float64(b - z) * y)
                	t_2 = Float64(Float64(b - a) * t)
                	tmp = 0.0
                	if (t <= -2.15e+129)
                		tmp = t_2;
                	elseif (t <= -2.45e-114)
                		tmp = t_1;
                	elseif (t <= 1.8e-304)
                		tmp = Float64(a + x);
                	elseif (t <= 1.18e-147)
                		tmp = t_1;
                	elseif (t <= 25500000.0)
                		tmp = Float64(a + x);
                	else
                		tmp = t_2;
                	end
                	return tmp
                end
                
                function tmp_2 = code(x, y, z, t, a, b)
                	t_1 = (b - z) * y;
                	t_2 = (b - a) * t;
                	tmp = 0.0;
                	if (t <= -2.15e+129)
                		tmp = t_2;
                	elseif (t <= -2.45e-114)
                		tmp = t_1;
                	elseif (t <= 1.8e-304)
                		tmp = a + x;
                	elseif (t <= 1.18e-147)
                		tmp = t_1;
                	elseif (t <= 25500000.0)
                		tmp = a + x;
                	else
                		tmp = t_2;
                	end
                	tmp_2 = tmp;
                end
                
                code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - z), $MachinePrecision] * y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -2.15e+129], t$95$2, If[LessEqual[t, -2.45e-114], t$95$1, If[LessEqual[t, 1.8e-304], N[(a + x), $MachinePrecision], If[LessEqual[t, 1.18e-147], t$95$1, If[LessEqual[t, 25500000.0], N[(a + x), $MachinePrecision], t$95$2]]]]]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := \left(b - z\right) \cdot y\\
                t_2 := \left(b - a\right) \cdot t\\
                \mathbf{if}\;t \leq -2.15 \cdot 10^{+129}:\\
                \;\;\;\;t\_2\\
                
                \mathbf{elif}\;t \leq -2.45 \cdot 10^{-114}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;t \leq 1.8 \cdot 10^{-304}:\\
                \;\;\;\;a + x\\
                
                \mathbf{elif}\;t \leq 1.18 \cdot 10^{-147}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;t \leq 25500000:\\
                \;\;\;\;a + x\\
                
                \mathbf{else}:\\
                \;\;\;\;t\_2\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 3 regimes
                2. if t < -2.1500000000000001e129 or 2.55e7 < 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--.f6474.8

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

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

                  if -2.1500000000000001e129 < t < -2.4499999999999999e-114 or 1.8000000000000001e-304 < t < 1.18000000000000003e-147

                  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 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--.f6453.4

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

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

                  if -2.4499999999999999e-114 < t < 1.8000000000000001e-304 or 1.18000000000000003e-147 < t < 2.55e7

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

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

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

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

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

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

                      \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\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. lower-+.f6476.2

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

                    \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(t + y\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 rewrites50.5%

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

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

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

                    Alternative 5: 85.2% accurate, 0.9× speedup?

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

                      1. Initial program 90.3%

                        \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                      2. Add Preprocessing
                      3. Taylor expanded in 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. 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(z \cdot \left(y - 1\right)\right)\right)} \]
                        2. +-commutativeN/A

                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z \cdot \left(y - 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(y - 1\right) \cdot z}\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(y - 1\right)\right)\right) \cdot z} + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                        5. mul-1-negN/A

                          \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z + \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(y - 1\right), z, x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                        7. sub-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        if -2.35e39 < b < 9.20000000000000035e-26

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

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

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

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

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

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

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

                        if 9.20000000000000035e-26 < b < 2.7000000000000001e72

                        1. Initial program 96.3%

                          \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                        2. Add Preprocessing
                        3. Taylor expanded in 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. 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(z \cdot \left(y - 1\right)\right)\right)} \]
                          2. +-commutativeN/A

                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z \cdot \left(y - 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(y - 1\right) \cdot z}\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(y - 1\right)\right)\right) \cdot z} + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                          5. mul-1-negN/A

                            \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z + \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(y - 1\right), z, x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                          7. sub-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            Alternative 6: 71.1% accurate, 1.0× speedup?

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

                              1. Initial program 90.9%

                                \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                              2. Add Preprocessing
                              3. Taylor expanded in 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. sub-negN/A

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

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

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

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

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

                                  \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\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. lower-+.f6485.3

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

                                \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(t + y\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 rewrites83.1%

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

                                if -8.4999999999999998e143 < a < 6.4e12

                                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 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. 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(z \cdot \left(y - 1\right)\right)\right)} \]
                                  2. +-commutativeN/A

                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z \cdot \left(y - 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(y - 1\right) \cdot z}\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(y - 1\right)\right)\right) \cdot z} + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                  5. mul-1-negN/A

                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z + \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(y - 1\right), z, x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                  7. sub-negN/A

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \mathsf{fma}\left(1 - y, z, \mathsf{fma}\left(\color{blue}{\left(t + y\right) - 2}, b, x\right)\right) \]
                                  19. lower-+.f6494.7

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

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

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

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

                                  if 6.4e12 < a < 1.08e164

                                  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 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. 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(z \cdot \left(y - 1\right)\right)\right)} \]
                                    2. +-commutativeN/A

                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z \cdot \left(y - 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(y - 1\right) \cdot z}\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(y - 1\right)\right)\right) \cdot z} + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                    5. mul-1-negN/A

                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z + \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(y - 1\right), z, x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                    7. sub-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  Alternative 7: 71.2% accurate, 1.0× speedup?

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

                                    1. Initial program 90.9%

                                      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                    2. Add Preprocessing
                                    3. Taylor expanded in 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. sub-negN/A

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

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

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

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

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

                                        \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\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. lower-+.f6485.3

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

                                      \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(t + y\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 rewrites83.1%

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

                                      if -8.4999999999999998e143 < a < 6.4e12

                                      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 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. 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(z \cdot \left(y - 1\right)\right)\right)} \]
                                        2. +-commutativeN/A

                                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z \cdot \left(y - 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(y - 1\right) \cdot z}\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(y - 1\right)\right)\right) \cdot z} + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                        5. mul-1-negN/A

                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z + \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(y - 1\right), z, x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                        7. sub-negN/A

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

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

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \mathsf{fma}\left(1 - y, z, \mathsf{fma}\left(\color{blue}{\left(t + y\right) - 2}, b, x\right)\right) \]
                                        19. lower-+.f6494.7

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

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

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

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

                                        if 6.4e12 < a < 1.08e164

                                        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 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. 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(z \cdot \left(y - 1\right)\right)\right)} \]
                                          2. +-commutativeN/A

                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z \cdot \left(y - 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(y - 1\right) \cdot z}\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(y - 1\right)\right)\right) \cdot z} + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                          5. mul-1-negN/A

                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z + \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(y - 1\right), z, x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                          7. sub-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            Alternative 8: 57.5% 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 -2.15 \cdot 10^{+129}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq -7 \cdot 10^{-39}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -1.5 \cdot 10^{-297}:\\ \;\;\;\;\mathsf{fma}\left(y - 2, b, a\right)\\ \mathbf{elif}\;t \leq 3.5 \cdot 10^{+35}:\\ \;\;\;\;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 -2.15e+129)
                                                 t_2
                                                 (if (<= t -7e-39)
                                                   t_1
                                                   (if (<= t -1.5e-297)
                                                     (fma (- y 2.0) b a)
                                                     (if (<= t 3.5e+35) 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 <= -2.15e+129) {
                                            		tmp = t_2;
                                            	} else if (t <= -7e-39) {
                                            		tmp = t_1;
                                            	} else if (t <= -1.5e-297) {
                                            		tmp = fma((y - 2.0), b, a);
                                            	} else if (t <= 3.5e+35) {
                                            		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 <= -2.15e+129)
                                            		tmp = t_2;
                                            	elseif (t <= -7e-39)
                                            		tmp = t_1;
                                            	elseif (t <= -1.5e-297)
                                            		tmp = fma(Float64(y - 2.0), b, a);
                                            	elseif (t <= 3.5e+35)
                                            		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, -2.15e+129], t$95$2, If[LessEqual[t, -7e-39], t$95$1, If[LessEqual[t, -1.5e-297], N[(N[(y - 2.0), $MachinePrecision] * b + a), $MachinePrecision], If[LessEqual[t, 3.5e+35], 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 -2.15 \cdot 10^{+129}:\\
                                            \;\;\;\;t\_2\\
                                            
                                            \mathbf{elif}\;t \leq -7 \cdot 10^{-39}:\\
                                            \;\;\;\;t\_1\\
                                            
                                            \mathbf{elif}\;t \leq -1.5 \cdot 10^{-297}:\\
                                            \;\;\;\;\mathsf{fma}\left(y - 2, b, a\right)\\
                                            
                                            \mathbf{elif}\;t \leq 3.5 \cdot 10^{+35}:\\
                                            \;\;\;\;t\_1\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;t\_2\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            
                                            Derivation
                                            1. Split input into 3 regimes
                                            2. if t < -2.1500000000000001e129 or 3.5000000000000001e35 < 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 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--.f6476.4

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

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

                                              if -2.1500000000000001e129 < t < -6.99999999999999999e-39 or -1.49999999999999997e-297 < t < 3.5000000000000001e35

                                              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. 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(z \cdot \left(y - 1\right)\right)\right)} \]
                                                2. +-commutativeN/A

                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z \cdot \left(y - 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(y - 1\right) \cdot z}\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(y - 1\right)\right)\right) \cdot z} + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                5. mul-1-negN/A

                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z + \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(y - 1\right), z, x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                                7. sub-negN/A

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

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

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

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

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

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

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

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

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

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

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

                                                  \[\leadsto \mathsf{fma}\left(1 - y, z, \mathsf{fma}\left(\color{blue}{\left(t + y\right) - 2}, b, x\right)\right) \]
                                                19. lower-+.f6483.7

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

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

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

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

                                                if -6.99999999999999999e-39 < t < -1.49999999999999997e-297

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

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

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

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

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

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

                                                    \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\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. lower-+.f6474.8

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

                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(t + y\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 rewrites74.8%

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

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

                                                  Alternative 9: 54.9% accurate, 1.1× speedup?

                                                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - a\right) \cdot t\\ \mathbf{if}\;t \leq -2.15 \cdot 10^{+129}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -1.3 \cdot 10^{+20}:\\ \;\;\;\;\left(b - z\right) \cdot y\\ \mathbf{elif}\;t \leq -1.55 \cdot 10^{-37}:\\ \;\;\;\;a + x\\ \mathbf{elif}\;t \leq 3.4 \cdot 10^{+39}:\\ \;\;\;\;\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 -2.15e+129)
                                                       t_1
                                                       (if (<= t -1.3e+20)
                                                         (* (- b z) y)
                                                         (if (<= t -1.55e-37)
                                                           (+ a x)
                                                           (if (<= t 3.4e+39) (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 <= -2.15e+129) {
                                                  		tmp = t_1;
                                                  	} else if (t <= -1.3e+20) {
                                                  		tmp = (b - z) * y;
                                                  	} else if (t <= -1.55e-37) {
                                                  		tmp = a + x;
                                                  	} else if (t <= 3.4e+39) {
                                                  		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 <= -2.15e+129)
                                                  		tmp = t_1;
                                                  	elseif (t <= -1.3e+20)
                                                  		tmp = Float64(Float64(b - z) * y);
                                                  	elseif (t <= -1.55e-37)
                                                  		tmp = Float64(a + x);
                                                  	elseif (t <= 3.4e+39)
                                                  		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, -2.15e+129], t$95$1, If[LessEqual[t, -1.3e+20], N[(N[(b - z), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[t, -1.55e-37], N[(a + x), $MachinePrecision], If[LessEqual[t, 3.4e+39], 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 -2.15 \cdot 10^{+129}:\\
                                                  \;\;\;\;t\_1\\
                                                  
                                                  \mathbf{elif}\;t \leq -1.3 \cdot 10^{+20}:\\
                                                  \;\;\;\;\left(b - z\right) \cdot y\\
                                                  
                                                  \mathbf{elif}\;t \leq -1.55 \cdot 10^{-37}:\\
                                                  \;\;\;\;a + x\\
                                                  
                                                  \mathbf{elif}\;t \leq 3.4 \cdot 10^{+39}:\\
                                                  \;\;\;\;\mathsf{fma}\left(y - 2, b, a\right)\\
                                                  
                                                  \mathbf{else}:\\
                                                  \;\;\;\;t\_1\\
                                                  
                                                  
                                                  \end{array}
                                                  \end{array}
                                                  
                                                  Derivation
                                                  1. Split input into 4 regimes
                                                  2. if t < -2.1500000000000001e129 or 3.3999999999999999e39 < t

                                                    1. Initial program 90.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--.f6477.5

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

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

                                                    if -2.1500000000000001e129 < t < -1.3e20

                                                    1. Initial program 100.0%

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

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

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

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

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

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

                                                    if -1.3e20 < t < -1.54999999999999997e-37

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

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

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

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

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

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

                                                        \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\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. lower-+.f6472.9

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

                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(t + y\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 rewrites73.4%

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

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

                                                          \[\leadsto a + x \]

                                                        if -1.54999999999999997e-37 < t < 3.3999999999999999e39

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

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

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

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

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

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

                                                            \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\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. lower-+.f6471.7

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

                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(t + y\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.9%

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

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

                                                          Alternative 10: 86.0% accurate, 1.1× speedup?

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

                                                            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 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. 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(z \cdot \left(y - 1\right)\right)\right)} \]
                                                              2. +-commutativeN/A

                                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z \cdot \left(y - 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(y - 1\right) \cdot z}\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(y - 1\right)\right)\right) \cdot z} + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                              5. mul-1-negN/A

                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z + \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(y - 1\right), z, x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                                              7. sub-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                if -1.9500000000000002e110 < z < 4.19999999999999978e159

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

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

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

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

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

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

                                                                    \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\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. lower-+.f6493.2

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

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

                                                                if 4.19999999999999978e159 < z

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

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

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

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

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

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

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

                                                              Alternative 11: 85.4% accurate, 1.1× speedup?

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

                                                                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 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. 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(z \cdot \left(y - 1\right)\right)\right)} \]
                                                                  2. +-commutativeN/A

                                                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z \cdot \left(y - 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(y - 1\right) \cdot z}\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(y - 1\right)\right)\right) \cdot z} + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                  5. mul-1-negN/A

                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z + \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(y - 1\right), z, x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                                                  7. sub-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                    if -1.9500000000000002e110 < z < 7.9999999999999994e159

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

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

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

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

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

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

                                                                        \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\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. lower-+.f6493.2

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

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

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

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

                                                                      if 7.9999999999999994e159 < z

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

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

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

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

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

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

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

                                                                    Alternative 12: 83.9% accurate, 1.1× speedup?

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

                                                                      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 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. 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(z \cdot \left(y - 1\right)\right)\right)} \]
                                                                        2. +-commutativeN/A

                                                                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z \cdot \left(y - 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(y - 1\right) \cdot z}\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(y - 1\right)\right)\right) \cdot z} + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                        5. mul-1-negN/A

                                                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z + \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(y - 1\right), z, x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                                                        7. sub-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                            if -2.79999999999999987e110 < z < 7.9999999999999994e159

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

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

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

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

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

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

                                                                                \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\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. lower-+.f6493.2

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

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

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

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

                                                                              if 7.9999999999999994e159 < z

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

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

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

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

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

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

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

                                                                            Alternative 13: 85.6% accurate, 1.2× speedup?

                                                                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -2.35 \cdot 10^{+39} \lor \neg \left(b \leq 1.25\right):\\ \;\;\;\;\mathsf{fma}\left(1, z, \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(1 - y, z, \mathsf{fma}\left(1 - t, a, x\right)\right)\\ \end{array} \end{array} \]
                                                                            (FPCore (x y z t a b)
                                                                             :precision binary64
                                                                             (if (or (<= b -2.35e+39) (not (<= b 1.25)))
                                                                               (fma 1.0 z (fma (- (+ t y) 2.0) b x))
                                                                               (fma (- 1.0 y) z (fma (- 1.0 t) a x))))
                                                                            double code(double x, double y, double z, double t, double a, double b) {
                                                                            	double tmp;
                                                                            	if ((b <= -2.35e+39) || !(b <= 1.25)) {
                                                                            		tmp = fma(1.0, z, fma(((t + y) - 2.0), b, x));
                                                                            	} else {
                                                                            		tmp = fma((1.0 - y), z, fma((1.0 - t), a, x));
                                                                            	}
                                                                            	return tmp;
                                                                            }
                                                                            
                                                                            function code(x, y, z, t, a, b)
                                                                            	tmp = 0.0
                                                                            	if ((b <= -2.35e+39) || !(b <= 1.25))
                                                                            		tmp = fma(1.0, z, fma(Float64(Float64(t + y) - 2.0), b, x));
                                                                            	else
                                                                            		tmp = fma(Float64(1.0 - y), z, fma(Float64(1.0 - t), a, x));
                                                                            	end
                                                                            	return tmp
                                                                            end
                                                                            
                                                                            code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -2.35e+39], N[Not[LessEqual[b, 1.25]], $MachinePrecision]], N[(1.0 * z + N[(N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision] * b + x), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 - y), $MachinePrecision] * z + N[(N[(1.0 - t), $MachinePrecision] * a + x), $MachinePrecision]), $MachinePrecision]]
                                                                            
                                                                            \begin{array}{l}
                                                                            
                                                                            \\
                                                                            \begin{array}{l}
                                                                            \mathbf{if}\;b \leq -2.35 \cdot 10^{+39} \lor \neg \left(b \leq 1.25\right):\\
                                                                            \;\;\;\;\mathsf{fma}\left(1, z, \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right)\right)\\
                                                                            
                                                                            \mathbf{else}:\\
                                                                            \;\;\;\;\mathsf{fma}\left(1 - y, z, \mathsf{fma}\left(1 - t, a, x\right)\right)\\
                                                                            
                                                                            
                                                                            \end{array}
                                                                            \end{array}
                                                                            
                                                                            Derivation
                                                                            1. Split input into 2 regimes
                                                                            2. if b < -2.35e39 or 1.25 < b

                                                                              1. Initial program 91.0%

                                                                                \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                                                              2. Add Preprocessing
                                                                              3. Taylor expanded in 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. 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(z \cdot \left(y - 1\right)\right)\right)} \]
                                                                                2. +-commutativeN/A

                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z \cdot \left(y - 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(y - 1\right) \cdot z}\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(y - 1\right)\right)\right) \cdot z} + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                5. mul-1-negN/A

                                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z + \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(y - 1\right), z, x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                                                                7. sub-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                if -2.35e39 < b < 1.25

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

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

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

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

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

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

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

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

                                                                              Alternative 14: 74.5% accurate, 1.2× speedup?

                                                                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -4.3 \cdot 10^{+129} \lor \neg \left(t \leq 1.4 \cdot 10^{+61}\right):\\ \;\;\;\;\left(b - a\right) \cdot t\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(b - z, y, \mathsf{fma}\left(-2, b, z\right)\right) + x\\ \end{array} \end{array} \]
                                                                              (FPCore (x y z t a b)
                                                                               :precision binary64
                                                                               (if (or (<= t -4.3e+129) (not (<= t 1.4e+61)))
                                                                                 (* (- b a) t)
                                                                                 (+ (fma (- b z) y (fma -2.0 b z)) x)))
                                                                              double code(double x, double y, double z, double t, double a, double b) {
                                                                              	double tmp;
                                                                              	if ((t <= -4.3e+129) || !(t <= 1.4e+61)) {
                                                                              		tmp = (b - a) * t;
                                                                              	} else {
                                                                              		tmp = fma((b - z), y, fma(-2.0, b, z)) + x;
                                                                              	}
                                                                              	return tmp;
                                                                              }
                                                                              
                                                                              function code(x, y, z, t, a, b)
                                                                              	tmp = 0.0
                                                                              	if ((t <= -4.3e+129) || !(t <= 1.4e+61))
                                                                              		tmp = Float64(Float64(b - a) * t);
                                                                              	else
                                                                              		tmp = Float64(fma(Float64(b - z), y, fma(-2.0, b, z)) + x);
                                                                              	end
                                                                              	return tmp
                                                                              end
                                                                              
                                                                              code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -4.3e+129], N[Not[LessEqual[t, 1.4e+61]], $MachinePrecision]], N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision], N[(N[(N[(b - z), $MachinePrecision] * y + N[(-2.0 * b + z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]
                                                                              
                                                                              \begin{array}{l}
                                                                              
                                                                              \\
                                                                              \begin{array}{l}
                                                                              \mathbf{if}\;t \leq -4.3 \cdot 10^{+129} \lor \neg \left(t \leq 1.4 \cdot 10^{+61}\right):\\
                                                                              \;\;\;\;\left(b - a\right) \cdot t\\
                                                                              
                                                                              \mathbf{else}:\\
                                                                              \;\;\;\;\mathsf{fma}\left(b - z, y, \mathsf{fma}\left(-2, b, z\right)\right) + x\\
                                                                              
                                                                              
                                                                              \end{array}
                                                                              \end{array}
                                                                              
                                                                              Derivation
                                                                              1. Split input into 2 regimes
                                                                              2. if t < -4.30000000000000021e129 or 1.4000000000000001e61 < t

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

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

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

                                                                                if -4.30000000000000021e129 < t < 1.4000000000000001e61

                                                                                1. Initial program 98.7%

                                                                                  \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                                                                2. Add Preprocessing
                                                                                3. Taylor expanded in 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. 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(z \cdot \left(y - 1\right)\right)\right)} \]
                                                                                  2. +-commutativeN/A

                                                                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z \cdot \left(y - 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(y - 1\right) \cdot z}\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(y - 1\right)\right)\right) \cdot z} + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                  5. mul-1-negN/A

                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z + \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(y - 1\right), z, x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                                                                  7. sub-negN/A

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

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

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

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

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

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

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

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

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

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

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

                                                                                    \[\leadsto \mathsf{fma}\left(1 - y, z, \mathsf{fma}\left(\color{blue}{\left(t + y\right) - 2}, b, x\right)\right) \]
                                                                                  19. lower-+.f6481.4

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

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

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

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

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

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

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

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

                                                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -4.3 \cdot 10^{+129} \lor \neg \left(t \leq 1.4 \cdot 10^{+61}\right):\\ \;\;\;\;\left(b - a\right) \cdot t\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(b - z, y, \mathsf{fma}\left(-2, b, z\right)\right) + x\\ \end{array} \]
                                                                                    6. Add Preprocessing

                                                                                    Alternative 15: 66.4% accurate, 1.2× speedup?

                                                                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - a\right) \cdot t\\ \mathbf{if}\;t \leq -2.55 \cdot 10^{+129}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -1.55 \cdot 10^{-108}:\\ \;\;\;\;\mathsf{fma}\left(-y, z, \mathsf{fma}\left(y - 2, b, x\right)\right)\\ \mathbf{elif}\;t \leq 3.4 \cdot 10^{+58}:\\ \;\;\;\;\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 -2.55e+129)
                                                                                         t_1
                                                                                         (if (<= t -1.55e-108)
                                                                                           (fma (- y) z (fma (- y 2.0) b x))
                                                                                           (if (<= t 3.4e+58) (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 <= -2.55e+129) {
                                                                                    		tmp = t_1;
                                                                                    	} else if (t <= -1.55e-108) {
                                                                                    		tmp = fma(-y, z, fma((y - 2.0), b, x));
                                                                                    	} else if (t <= 3.4e+58) {
                                                                                    		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 <= -2.55e+129)
                                                                                    		tmp = t_1;
                                                                                    	elseif (t <= -1.55e-108)
                                                                                    		tmp = fma(Float64(-y), z, fma(Float64(y - 2.0), b, x));
                                                                                    	elseif (t <= 3.4e+58)
                                                                                    		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, -2.55e+129], t$95$1, If[LessEqual[t, -1.55e-108], N[((-y) * z + N[(N[(y - 2.0), $MachinePrecision] * b + x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.4e+58], 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 -2.55 \cdot 10^{+129}:\\
                                                                                    \;\;\;\;t\_1\\
                                                                                    
                                                                                    \mathbf{elif}\;t \leq -1.55 \cdot 10^{-108}:\\
                                                                                    \;\;\;\;\mathsf{fma}\left(-y, z, \mathsf{fma}\left(y - 2, b, x\right)\right)\\
                                                                                    
                                                                                    \mathbf{elif}\;t \leq 3.4 \cdot 10^{+58}:\\
                                                                                    \;\;\;\;\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 < -2.54999999999999998e129 or 3.4000000000000001e58 < t

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

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

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

                                                                                      if -2.54999999999999998e129 < t < -1.55000000000000007e-108

                                                                                      1. Initial program 100.0%

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

                                                                                        \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - z \cdot \left(y - 1\right)} \]
                                                                                      4. 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(z \cdot \left(y - 1\right)\right)\right)} \]
                                                                                        2. +-commutativeN/A

                                                                                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z \cdot \left(y - 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(y - 1\right) \cdot z}\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(y - 1\right)\right)\right) \cdot z} + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                        5. mul-1-negN/A

                                                                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z + \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(y - 1\right), z, x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                                                                        7. sub-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                          if -1.55000000000000007e-108 < t < 3.4000000000000001e58

                                                                                          1. Initial program 98.0%

                                                                                            \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                                                                          2. Add Preprocessing
                                                                                          3. Taylor expanded in 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. sub-negN/A

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

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

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

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

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

                                                                                              \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\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. lower-+.f6472.8

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

                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(t + y\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.9%

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

                                                                                          Alternative 16: 64.9% accurate, 1.2× speedup?

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

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

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

                                                                                            if -6.5999999999999997e165 < y < -1.25e17

                                                                                            1. Initial program 92.2%

                                                                                              \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                                                                            2. Add Preprocessing
                                                                                            3. Taylor expanded in 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. sub-negN/A

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

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

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

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

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

                                                                                                \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\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. lower-+.f6483.5

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

                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(t + y\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 rewrites63.1%

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

                                                                                              if -1.25e17 < y < 1.95e17

                                                                                              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 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. 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(z \cdot \left(y - 1\right)\right)\right)} \]
                                                                                                2. +-commutativeN/A

                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z \cdot \left(y - 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(y - 1\right) \cdot z}\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(y - 1\right)\right)\right) \cdot z} + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                5. mul-1-negN/A

                                                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z + \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(y - 1\right), z, x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                                                                                7. sub-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                Alternative 17: 65.5% accurate, 1.2× speedup?

                                                                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - a\right) \cdot t\\ \mathbf{if}\;t \leq -2.15 \cdot 10^{+129}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -1.55 \cdot 10^{-37}:\\ \;\;\;\;\mathsf{fma}\left(1 - y, z, x\right)\\ \mathbf{elif}\;t \leq 3.4 \cdot 10^{+58}:\\ \;\;\;\;\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 -2.15e+129)
                                                                                                     t_1
                                                                                                     (if (<= t -1.55e-37)
                                                                                                       (fma (- 1.0 y) z x)
                                                                                                       (if (<= t 3.4e+58) (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 <= -2.15e+129) {
                                                                                                		tmp = t_1;
                                                                                                	} else if (t <= -1.55e-37) {
                                                                                                		tmp = fma((1.0 - y), z, x);
                                                                                                	} else if (t <= 3.4e+58) {
                                                                                                		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 <= -2.15e+129)
                                                                                                		tmp = t_1;
                                                                                                	elseif (t <= -1.55e-37)
                                                                                                		tmp = fma(Float64(1.0 - y), z, x);
                                                                                                	elseif (t <= 3.4e+58)
                                                                                                		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, -2.15e+129], t$95$1, If[LessEqual[t, -1.55e-37], N[(N[(1.0 - y), $MachinePrecision] * z + x), $MachinePrecision], If[LessEqual[t, 3.4e+58], 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 -2.15 \cdot 10^{+129}:\\
                                                                                                \;\;\;\;t\_1\\
                                                                                                
                                                                                                \mathbf{elif}\;t \leq -1.55 \cdot 10^{-37}:\\
                                                                                                \;\;\;\;\mathsf{fma}\left(1 - y, z, x\right)\\
                                                                                                
                                                                                                \mathbf{elif}\;t \leq 3.4 \cdot 10^{+58}:\\
                                                                                                \;\;\;\;\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 < -2.1500000000000001e129 or 3.4000000000000001e58 < t

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

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

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

                                                                                                  if -2.1500000000000001e129 < t < -1.54999999999999997e-37

                                                                                                  1. Initial program 100.0%

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

                                                                                                    \[\leadsto \color{blue}{\left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) - z \cdot \left(y - 1\right)} \]
                                                                                                  4. 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(z \cdot \left(y - 1\right)\right)\right)} \]
                                                                                                    2. +-commutativeN/A

                                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z \cdot \left(y - 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(y - 1\right) \cdot z}\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(y - 1\right)\right)\right) \cdot z} + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                    5. mul-1-negN/A

                                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z + \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(y - 1\right), z, x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                                                                                    7. sub-negN/A

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

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

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

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

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

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

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

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

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

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

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

                                                                                                      \[\leadsto \mathsf{fma}\left(1 - y, z, \mathsf{fma}\left(\color{blue}{\left(t + y\right) - 2}, b, x\right)\right) \]
                                                                                                    19. lower-+.f6486.7

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

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

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

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

                                                                                                    if -1.54999999999999997e-37 < t < 3.4000000000000001e58

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

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

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

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

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

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

                                                                                                        \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\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. lower-+.f6472.2

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

                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(t + y\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.6%

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

                                                                                                    Alternative 18: 49.4% accurate, 1.4× speedup?

                                                                                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - a\right) \cdot t\\ \mathbf{if}\;t \leq -9.6 \cdot 10^{+100}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -5.2 \cdot 10^{-202}:\\ \;\;\;\;\left(1 - y\right) \cdot z\\ \mathbf{elif}\;t \leq 25500000:\\ \;\;\;\;a + x\\ \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 -9.6e+100)
                                                                                                         t_1
                                                                                                         (if (<= t -5.2e-202)
                                                                                                           (* (- 1.0 y) z)
                                                                                                           (if (<= t 25500000.0) (+ 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 <= -9.6e+100) {
                                                                                                    		tmp = t_1;
                                                                                                    	} else if (t <= -5.2e-202) {
                                                                                                    		tmp = (1.0 - y) * z;
                                                                                                    	} else if (t <= 25500000.0) {
                                                                                                    		tmp = a + 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 = (b - a) * t
                                                                                                        if (t <= (-9.6d+100)) then
                                                                                                            tmp = t_1
                                                                                                        else if (t <= (-5.2d-202)) then
                                                                                                            tmp = (1.0d0 - y) * z
                                                                                                        else if (t <= 25500000.0d0) then
                                                                                                            tmp = a + 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 = (b - a) * t;
                                                                                                    	double tmp;
                                                                                                    	if (t <= -9.6e+100) {
                                                                                                    		tmp = t_1;
                                                                                                    	} else if (t <= -5.2e-202) {
                                                                                                    		tmp = (1.0 - y) * z;
                                                                                                    	} else if (t <= 25500000.0) {
                                                                                                    		tmp = a + x;
                                                                                                    	} else {
                                                                                                    		tmp = t_1;
                                                                                                    	}
                                                                                                    	return tmp;
                                                                                                    }
                                                                                                    
                                                                                                    def code(x, y, z, t, a, b):
                                                                                                    	t_1 = (b - a) * t
                                                                                                    	tmp = 0
                                                                                                    	if t <= -9.6e+100:
                                                                                                    		tmp = t_1
                                                                                                    	elif t <= -5.2e-202:
                                                                                                    		tmp = (1.0 - y) * z
                                                                                                    	elif t <= 25500000.0:
                                                                                                    		tmp = 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 <= -9.6e+100)
                                                                                                    		tmp = t_1;
                                                                                                    	elseif (t <= -5.2e-202)
                                                                                                    		tmp = Float64(Float64(1.0 - y) * z);
                                                                                                    	elseif (t <= 25500000.0)
                                                                                                    		tmp = Float64(a + x);
                                                                                                    	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 <= -9.6e+100)
                                                                                                    		tmp = t_1;
                                                                                                    	elseif (t <= -5.2e-202)
                                                                                                    		tmp = (1.0 - y) * z;
                                                                                                    	elseif (t <= 25500000.0)
                                                                                                    		tmp = a + x;
                                                                                                    	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, -9.6e+100], t$95$1, If[LessEqual[t, -5.2e-202], N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[t, 25500000.0], N[(a + x), $MachinePrecision], t$95$1]]]]
                                                                                                    
                                                                                                    \begin{array}{l}
                                                                                                    
                                                                                                    \\
                                                                                                    \begin{array}{l}
                                                                                                    t_1 := \left(b - a\right) \cdot t\\
                                                                                                    \mathbf{if}\;t \leq -9.6 \cdot 10^{+100}:\\
                                                                                                    \;\;\;\;t\_1\\
                                                                                                    
                                                                                                    \mathbf{elif}\;t \leq -5.2 \cdot 10^{-202}:\\
                                                                                                    \;\;\;\;\left(1 - y\right) \cdot z\\
                                                                                                    
                                                                                                    \mathbf{elif}\;t \leq 25500000:\\
                                                                                                    \;\;\;\;a + x\\
                                                                                                    
                                                                                                    \mathbf{else}:\\
                                                                                                    \;\;\;\;t\_1\\
                                                                                                    
                                                                                                    
                                                                                                    \end{array}
                                                                                                    \end{array}
                                                                                                    
                                                                                                    Derivation
                                                                                                    1. Split input into 3 regimes
                                                                                                    2. if t < -9.60000000000000046e100 or 2.55e7 < t

                                                                                                      1. Initial program 91.2%

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

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

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

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

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

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

                                                                                                      if -9.60000000000000046e100 < t < -5.20000000000000019e-202

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

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

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

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

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

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

                                                                                                          \[\leadsto \left(-1 \cdot \color{blue}{\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. distribute-lft-inN/A

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

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

                                                                                                          \[\leadsto \color{blue}{\left(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--.f6440.4

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

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

                                                                                                      if -5.20000000000000019e-202 < t < 2.55e7

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

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

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

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

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

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

                                                                                                          \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\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. lower-+.f6471.5

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

                                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(t + y\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 rewrites45.6%

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

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

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

                                                                                                        Alternative 19: 38.7% accurate, 1.4× speedup?

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

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

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

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

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

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

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

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

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

                                                                                                            if -1.6000000000000001e162 < y < 3.2999999999999998e22

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

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

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

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

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

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

                                                                                                                \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\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. lower-+.f6482.3

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

                                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(t + y\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 rewrites54.4%

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

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

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

                                                                                                                if 5.1000000000000001e150 < y

                                                                                                                1. Initial program 87.5%

                                                                                                                  \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                                                                                                2. Add Preprocessing
                                                                                                                3. Taylor expanded in 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. sub-negN/A

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

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

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

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

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

                                                                                                                    \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\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. lower-+.f6475.9

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

                                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(t + y\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 rewrites61.0%

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

                                                                                                                Alternative 20: 35.8% accurate, 1.5× speedup?

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

                                                                                                                  1. Initial program 91.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. 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(z \cdot \left(y - 1\right)\right)\right)} \]
                                                                                                                    2. +-commutativeN/A

                                                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z \cdot \left(y - 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(y - 1\right) \cdot z}\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(y - 1\right)\right)\right) \cdot z} + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                    5. mul-1-negN/A

                                                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z + \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(y - 1\right), z, x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                                                                                                    7. sub-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                                      if -1.6999999999999999e103 < t < -3.6e21

                                                                                                                      1. Initial program 100.0%

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

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

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

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

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

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

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

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

                                                                                                                        if -3.6e21 < t < 3.8e7

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

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

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

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

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

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

                                                                                                                            \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\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. lower-+.f6471.2

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

                                                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(t + y\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 rewrites42.3%

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

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

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

                                                                                                                          Alternative 21: 56.8% accurate, 1.7× speedup?

                                                                                                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -6.6 \cdot 10^{+165} \lor \neg \left(y \leq 6.5 \cdot 10^{+33}\right):\\ \;\;\;\;\left(b - z\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(1 - t, a, x\right)\\ \end{array} \end{array} \]
                                                                                                                          (FPCore (x y z t a b)
                                                                                                                           :precision binary64
                                                                                                                           (if (or (<= y -6.6e+165) (not (<= y 6.5e+33)))
                                                                                                                             (* (- b z) y)
                                                                                                                             (fma (- 1.0 t) a x)))
                                                                                                                          double code(double x, double y, double z, double t, double a, double b) {
                                                                                                                          	double tmp;
                                                                                                                          	if ((y <= -6.6e+165) || !(y <= 6.5e+33)) {
                                                                                                                          		tmp = (b - z) * y;
                                                                                                                          	} else {
                                                                                                                          		tmp = fma((1.0 - t), a, x);
                                                                                                                          	}
                                                                                                                          	return tmp;
                                                                                                                          }
                                                                                                                          
                                                                                                                          function code(x, y, z, t, a, b)
                                                                                                                          	tmp = 0.0
                                                                                                                          	if ((y <= -6.6e+165) || !(y <= 6.5e+33))
                                                                                                                          		tmp = Float64(Float64(b - z) * y);
                                                                                                                          	else
                                                                                                                          		tmp = fma(Float64(1.0 - t), a, x);
                                                                                                                          	end
                                                                                                                          	return tmp
                                                                                                                          end
                                                                                                                          
                                                                                                                          code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -6.6e+165], N[Not[LessEqual[y, 6.5e+33]], $MachinePrecision]], N[(N[(b - z), $MachinePrecision] * y), $MachinePrecision], N[(N[(1.0 - t), $MachinePrecision] * a + x), $MachinePrecision]]
                                                                                                                          
                                                                                                                          \begin{array}{l}
                                                                                                                          
                                                                                                                          \\
                                                                                                                          \begin{array}{l}
                                                                                                                          \mathbf{if}\;y \leq -6.6 \cdot 10^{+165} \lor \neg \left(y \leq 6.5 \cdot 10^{+33}\right):\\
                                                                                                                          \;\;\;\;\left(b - z\right) \cdot y\\
                                                                                                                          
                                                                                                                          \mathbf{else}:\\
                                                                                                                          \;\;\;\;\mathsf{fma}\left(1 - t, a, x\right)\\
                                                                                                                          
                                                                                                                          
                                                                                                                          \end{array}
                                                                                                                          \end{array}
                                                                                                                          
                                                                                                                          Derivation
                                                                                                                          1. Split input into 2 regimes
                                                                                                                          2. if y < -6.5999999999999997e165 or 6.49999999999999993e33 < y

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

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

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

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

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

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

                                                                                                                            if -6.5999999999999997e165 < y < 6.49999999999999993e33

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

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

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

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

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

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

                                                                                                                                \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\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. lower-+.f6482.1

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

                                                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(t + y\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 rewrites54.3%

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

                                                                                                                              \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -6.6 \cdot 10^{+165} \lor \neg \left(y \leq 6.5 \cdot 10^{+33}\right):\\ \;\;\;\;\left(b - z\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(1 - t, a, x\right)\\ \end{array} \]
                                                                                                                            10. Add Preprocessing

                                                                                                                            Alternative 22: 44.4% accurate, 1.8× speedup?

                                                                                                                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -6.1 \cdot 10^{+118} \lor \neg \left(z \leq 1.4 \cdot 10^{+165}\right):\\ \;\;\;\;\left(1 - y\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-t, a, x\right)\\ \end{array} \end{array} \]
                                                                                                                            (FPCore (x y z t a b)
                                                                                                                             :precision binary64
                                                                                                                             (if (or (<= z -6.1e+118) (not (<= z 1.4e+165)))
                                                                                                                               (* (- 1.0 y) z)
                                                                                                                               (fma (- t) a x)))
                                                                                                                            double code(double x, double y, double z, double t, double a, double b) {
                                                                                                                            	double tmp;
                                                                                                                            	if ((z <= -6.1e+118) || !(z <= 1.4e+165)) {
                                                                                                                            		tmp = (1.0 - y) * z;
                                                                                                                            	} else {
                                                                                                                            		tmp = fma(-t, a, x);
                                                                                                                            	}
                                                                                                                            	return tmp;
                                                                                                                            }
                                                                                                                            
                                                                                                                            function code(x, y, z, t, a, b)
                                                                                                                            	tmp = 0.0
                                                                                                                            	if ((z <= -6.1e+118) || !(z <= 1.4e+165))
                                                                                                                            		tmp = Float64(Float64(1.0 - y) * z);
                                                                                                                            	else
                                                                                                                            		tmp = fma(Float64(-t), a, x);
                                                                                                                            	end
                                                                                                                            	return tmp
                                                                                                                            end
                                                                                                                            
                                                                                                                            code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -6.1e+118], N[Not[LessEqual[z, 1.4e+165]], $MachinePrecision]], N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision], N[((-t) * a + x), $MachinePrecision]]
                                                                                                                            
                                                                                                                            \begin{array}{l}
                                                                                                                            
                                                                                                                            \\
                                                                                                                            \begin{array}{l}
                                                                                                                            \mathbf{if}\;z \leq -6.1 \cdot 10^{+118} \lor \neg \left(z \leq 1.4 \cdot 10^{+165}\right):\\
                                                                                                                            \;\;\;\;\left(1 - y\right) \cdot z\\
                                                                                                                            
                                                                                                                            \mathbf{else}:\\
                                                                                                                            \;\;\;\;\mathsf{fma}\left(-t, a, x\right)\\
                                                                                                                            
                                                                                                                            
                                                                                                                            \end{array}
                                                                                                                            \end{array}
                                                                                                                            
                                                                                                                            Derivation
                                                                                                                            1. Split input into 2 regimes
                                                                                                                            2. if z < -6.1000000000000003e118 or 1.3999999999999999e165 < z

                                                                                                                              1. Initial program 90.7%

                                                                                                                                \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                                                                                                              2. Add Preprocessing
                                                                                                                              3. Taylor expanded in 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. neg-mul-1N/A

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

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

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

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

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

                                                                                                                                  \[\leadsto \left(-1 \cdot \color{blue}{\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. distribute-lft-inN/A

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

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

                                                                                                                                  \[\leadsto \color{blue}{\left(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--.f6470.0

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

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

                                                                                                                              if -6.1000000000000003e118 < z < 1.3999999999999999e165

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

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

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

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

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

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

                                                                                                                                  \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\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. lower-+.f6491.8

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

                                                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(t + y\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 rewrites53.3%

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

                                                                                                                                  \[\leadsto \mathsf{fma}\left(-1 \cdot t, a, x\right) \]
                                                                                                                                3. Step-by-step derivation
                                                                                                                                  1. Applied rewrites42.4%

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

                                                                                                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -6.1 \cdot 10^{+118} \lor \neg \left(z \leq 1.4 \cdot 10^{+165}\right):\\ \;\;\;\;\left(1 - y\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-t, a, x\right)\\ \end{array} \]
                                                                                                                                6. Add Preprocessing

                                                                                                                                Alternative 23: 35.1% accurate, 2.1× speedup?

                                                                                                                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.65 \cdot 10^{+129} \lor \neg \left(t \leq 38000000\right):\\ \;\;\;\;b \cdot t\\ \mathbf{else}:\\ \;\;\;\;a + x\\ \end{array} \end{array} \]
                                                                                                                                (FPCore (x y z t a b)
                                                                                                                                 :precision binary64
                                                                                                                                 (if (or (<= t -1.65e+129) (not (<= t 38000000.0))) (* b t) (+ a x)))
                                                                                                                                double code(double x, double y, double z, double t, double a, double b) {
                                                                                                                                	double tmp;
                                                                                                                                	if ((t <= -1.65e+129) || !(t <= 38000000.0)) {
                                                                                                                                		tmp = b * t;
                                                                                                                                	} 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 ((t <= (-1.65d+129)) .or. (.not. (t <= 38000000.0d0))) then
                                                                                                                                        tmp = b * t
                                                                                                                                    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 ((t <= -1.65e+129) || !(t <= 38000000.0)) {
                                                                                                                                		tmp = b * t;
                                                                                                                                	} else {
                                                                                                                                		tmp = a + x;
                                                                                                                                	}
                                                                                                                                	return tmp;
                                                                                                                                }
                                                                                                                                
                                                                                                                                def code(x, y, z, t, a, b):
                                                                                                                                	tmp = 0
                                                                                                                                	if (t <= -1.65e+129) or not (t <= 38000000.0):
                                                                                                                                		tmp = b * t
                                                                                                                                	else:
                                                                                                                                		tmp = a + x
                                                                                                                                	return tmp
                                                                                                                                
                                                                                                                                function code(x, y, z, t, a, b)
                                                                                                                                	tmp = 0.0
                                                                                                                                	if ((t <= -1.65e+129) || !(t <= 38000000.0))
                                                                                                                                		tmp = Float64(b * t);
                                                                                                                                	else
                                                                                                                                		tmp = Float64(a + x);
                                                                                                                                	end
                                                                                                                                	return tmp
                                                                                                                                end
                                                                                                                                
                                                                                                                                function tmp_2 = code(x, y, z, t, a, b)
                                                                                                                                	tmp = 0.0;
                                                                                                                                	if ((t <= -1.65e+129) || ~((t <= 38000000.0)))
                                                                                                                                		tmp = b * t;
                                                                                                                                	else
                                                                                                                                		tmp = a + x;
                                                                                                                                	end
                                                                                                                                	tmp_2 = tmp;
                                                                                                                                end
                                                                                                                                
                                                                                                                                code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1.65e+129], N[Not[LessEqual[t, 38000000.0]], $MachinePrecision]], N[(b * t), $MachinePrecision], N[(a + x), $MachinePrecision]]
                                                                                                                                
                                                                                                                                \begin{array}{l}
                                                                                                                                
                                                                                                                                \\
                                                                                                                                \begin{array}{l}
                                                                                                                                \mathbf{if}\;t \leq -1.65 \cdot 10^{+129} \lor \neg \left(t \leq 38000000\right):\\
                                                                                                                                \;\;\;\;b \cdot t\\
                                                                                                                                
                                                                                                                                \mathbf{else}:\\
                                                                                                                                \;\;\;\;a + x\\
                                                                                                                                
                                                                                                                                
                                                                                                                                \end{array}
                                                                                                                                \end{array}
                                                                                                                                
                                                                                                                                Derivation
                                                                                                                                1. Split input into 2 regimes
                                                                                                                                2. if t < -1.64999999999999995e129 or 3.8e7 < 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 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. 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(z \cdot \left(y - 1\right)\right)\right)} \]
                                                                                                                                    2. +-commutativeN/A

                                                                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z \cdot \left(y - 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(y - 1\right) \cdot z}\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(y - 1\right)\right)\right) \cdot z} + \left(x + b \cdot \left(\left(t + y\right) - 2\right)\right) \]
                                                                                                                                    5. mul-1-negN/A

                                                                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z + \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(y - 1\right), z, x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
                                                                                                                                    7. sub-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                                                      if -1.64999999999999995e129 < t < 3.8e7

                                                                                                                                      1. Initial program 98.6%

                                                                                                                                        \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                                                                                                                      2. Add Preprocessing
                                                                                                                                      3. Taylor expanded in 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. sub-negN/A

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

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

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

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

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

                                                                                                                                          \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\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. lower-+.f6469.1

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

                                                                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(t + y\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 rewrites39.5%

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

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

                                                                                                                                            \[\leadsto a + x \]
                                                                                                                                        4. Recombined 2 regimes into one program.
                                                                                                                                        5. Final simplification39.1%

                                                                                                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.65 \cdot 10^{+129} \lor \neg \left(t \leq 38000000\right):\\ \;\;\;\;b \cdot t\\ \mathbf{else}:\\ \;\;\;\;a + x\\ \end{array} \]
                                                                                                                                        6. Add Preprocessing

                                                                                                                                        Alternative 24: 33.3% accurate, 2.1× speedup?

                                                                                                                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -6.6 \cdot 10^{+165} \lor \neg \left(y \leq 1.25 \cdot 10^{+63}\right):\\ \;\;\;\;b \cdot y\\ \mathbf{else}:\\ \;\;\;\;a + x\\ \end{array} \end{array} \]
                                                                                                                                        (FPCore (x y z t a b)
                                                                                                                                         :precision binary64
                                                                                                                                         (if (or (<= y -6.6e+165) (not (<= y 1.25e+63))) (* b y) (+ a x)))
                                                                                                                                        double code(double x, double y, double z, double t, double a, double b) {
                                                                                                                                        	double tmp;
                                                                                                                                        	if ((y <= -6.6e+165) || !(y <= 1.25e+63)) {
                                                                                                                                        		tmp = b * y;
                                                                                                                                        	} 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 ((y <= (-6.6d+165)) .or. (.not. (y <= 1.25d+63))) then
                                                                                                                                                tmp = b * y
                                                                                                                                            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 ((y <= -6.6e+165) || !(y <= 1.25e+63)) {
                                                                                                                                        		tmp = b * y;
                                                                                                                                        	} else {
                                                                                                                                        		tmp = a + x;
                                                                                                                                        	}
                                                                                                                                        	return tmp;
                                                                                                                                        }
                                                                                                                                        
                                                                                                                                        def code(x, y, z, t, a, b):
                                                                                                                                        	tmp = 0
                                                                                                                                        	if (y <= -6.6e+165) or not (y <= 1.25e+63):
                                                                                                                                        		tmp = b * y
                                                                                                                                        	else:
                                                                                                                                        		tmp = a + x
                                                                                                                                        	return tmp
                                                                                                                                        
                                                                                                                                        function code(x, y, z, t, a, b)
                                                                                                                                        	tmp = 0.0
                                                                                                                                        	if ((y <= -6.6e+165) || !(y <= 1.25e+63))
                                                                                                                                        		tmp = Float64(b * y);
                                                                                                                                        	else
                                                                                                                                        		tmp = Float64(a + x);
                                                                                                                                        	end
                                                                                                                                        	return tmp
                                                                                                                                        end
                                                                                                                                        
                                                                                                                                        function tmp_2 = code(x, y, z, t, a, b)
                                                                                                                                        	tmp = 0.0;
                                                                                                                                        	if ((y <= -6.6e+165) || ~((y <= 1.25e+63)))
                                                                                                                                        		tmp = b * y;
                                                                                                                                        	else
                                                                                                                                        		tmp = a + x;
                                                                                                                                        	end
                                                                                                                                        	tmp_2 = tmp;
                                                                                                                                        end
                                                                                                                                        
                                                                                                                                        code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -6.6e+165], N[Not[LessEqual[y, 1.25e+63]], $MachinePrecision]], N[(b * y), $MachinePrecision], N[(a + x), $MachinePrecision]]
                                                                                                                                        
                                                                                                                                        \begin{array}{l}
                                                                                                                                        
                                                                                                                                        \\
                                                                                                                                        \begin{array}{l}
                                                                                                                                        \mathbf{if}\;y \leq -6.6 \cdot 10^{+165} \lor \neg \left(y \leq 1.25 \cdot 10^{+63}\right):\\
                                                                                                                                        \;\;\;\;b \cdot y\\
                                                                                                                                        
                                                                                                                                        \mathbf{else}:\\
                                                                                                                                        \;\;\;\;a + x\\
                                                                                                                                        
                                                                                                                                        
                                                                                                                                        \end{array}
                                                                                                                                        \end{array}
                                                                                                                                        
                                                                                                                                        Derivation
                                                                                                                                        1. Split input into 2 regimes
                                                                                                                                        2. if y < -6.5999999999999997e165 or 1.25000000000000003e63 < y

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

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

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

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

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

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

                                                                                                                                              \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\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. lower-+.f6467.5

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

                                                                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(t + y\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 rewrites43.5%

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

                                                                                                                                            if -6.5999999999999997e165 < y < 1.25000000000000003e63

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

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

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

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

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

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

                                                                                                                                                \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\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. lower-+.f6480.8

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

                                                                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(t + y\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 rewrites53.4%

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

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

                                                                                                                                                  \[\leadsto a + x \]
                                                                                                                                              4. Recombined 2 regimes into one program.
                                                                                                                                              5. Final simplification36.8%

                                                                                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -6.6 \cdot 10^{+165} \lor \neg \left(y \leq 1.25 \cdot 10^{+63}\right):\\ \;\;\;\;b \cdot y\\ \mathbf{else}:\\ \;\;\;\;a + x\\ \end{array} \]
                                                                                                                                              6. Add Preprocessing

                                                                                                                                              Alternative 25: 24.9% accurate, 9.3× speedup?

                                                                                                                                              \[\begin{array}{l} \\ a + x \end{array} \]
                                                                                                                                              (FPCore (x y z t a b) :precision binary64 (+ a x))
                                                                                                                                              double code(double x, double y, double z, double t, double a, double b) {
                                                                                                                                              	return a + x;
                                                                                                                                              }
                                                                                                                                              
                                                                                                                                              real(8) function code(x, y, z, t, a, b)
                                                                                                                                                  real(8), intent (in) :: x
                                                                                                                                                  real(8), intent (in) :: y
                                                                                                                                                  real(8), intent (in) :: z
                                                                                                                                                  real(8), intent (in) :: t
                                                                                                                                                  real(8), intent (in) :: a
                                                                                                                                                  real(8), intent (in) :: b
                                                                                                                                                  code = a + x
                                                                                                                                              end function
                                                                                                                                              
                                                                                                                                              public static double code(double x, double y, double z, double t, double a, double b) {
                                                                                                                                              	return a + x;
                                                                                                                                              }
                                                                                                                                              
                                                                                                                                              def code(x, y, z, t, a, b):
                                                                                                                                              	return a + x
                                                                                                                                              
                                                                                                                                              function code(x, y, z, t, a, b)
                                                                                                                                              	return Float64(a + x)
                                                                                                                                              end
                                                                                                                                              
                                                                                                                                              function tmp = code(x, y, z, t, a, b)
                                                                                                                                              	tmp = a + x;
                                                                                                                                              end
                                                                                                                                              
                                                                                                                                              code[x_, y_, z_, t_, a_, b_] := N[(a + x), $MachinePrecision]
                                                                                                                                              
                                                                                                                                              \begin{array}{l}
                                                                                                                                              
                                                                                                                                              \\
                                                                                                                                              a + x
                                                                                                                                              \end{array}
                                                                                                                                              
                                                                                                                                              Derivation
                                                                                                                                              1. Initial program 95.3%

                                                                                                                                                \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                                                                                                                              2. Add Preprocessing
                                                                                                                                              3. Taylor expanded in 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. sub-negN/A

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

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

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

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

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

                                                                                                                                                  \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\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. lower-+.f6476.3

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

                                                                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(t + y\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 rewrites43.5%

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

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

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

                                                                                                                                                  Reproduce

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