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

Percentage Accurate: 95.3% → 97.8%
Time: 11.0s
Alternatives: 24
Speedup: 0.5×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 24 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 95.3% 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.8% accurate, 0.5× 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:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(1 - y, z, \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right)\right)\\ \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) t_1 (fma (- 1.0 y) z (fma (- (+ t y) 2.0) b x)))))
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 = t_1;
	} else {
		tmp = fma((1.0 - y), z, fma(((t + y) - 2.0), b, x));
	}
	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 <= Inf)
		tmp = t_1;
	else
		tmp = fma(Float64(1.0 - y), z, fma(Float64(Float64(t + y) - 2.0), b, x));
	end
	return 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], t$95$1, N[(N[(1.0 - y), $MachinePrecision] * z + N[(N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision] * b + x), $MachinePrecision]), $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:\\
\;\;\;\;t\_1\\

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


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

    1. Initial program 100.0%

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

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

    1. Initial program 0.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 90.1% accurate, 0.9× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.2 \cdot 10^{+135} \lor \neg \left(x \leq 3.15 \cdot 10^{+119}\right):\\
\;\;\;\;\mathsf{fma}\left(1 - y, z, \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -5.2e135 or 3.1499999999999999e119 < x

    1. Initial program 95.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}{b \cdot \left(\left(t + y\right) - 2\right) - \left(a \cdot \left(t - 1\right) + z \cdot \left(y - 1\right)\right)} \]
    4. Applied rewrites58.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -5.2e135 < x < 3.1499999999999999e119

    1. Initial program 97.0%

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

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

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

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

Alternative 3: 87.8% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -0.0009 \lor \neg \left(t \leq 4.6 \cdot 10^{+85}\right):\\ \;\;\;\;\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, a + \mathsf{fma}\left(y - 2, b, x\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (or (<= t -0.0009) (not (<= t 4.6e+85)))
   (fma (- 1.0 t) a (fma (- (+ t y) 2.0) b x))
   (fma (- 1.0 y) z (+ a (fma (- y 2.0) b x)))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if ((t <= -0.0009) || !(t <= 4.6e+85)) {
		tmp = fma((1.0 - t), a, fma(((t + y) - 2.0), b, x));
	} else {
		tmp = fma((1.0 - y), z, (a + fma((y - 2.0), b, x)));
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	tmp = 0.0
	if ((t <= -0.0009) || !(t <= 4.6e+85))
		tmp = fma(Float64(1.0 - t), a, fma(Float64(Float64(t + y) - 2.0), b, x));
	else
		tmp = fma(Float64(1.0 - y), z, Float64(a + fma(Float64(y - 2.0), b, x)));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -0.0009], N[Not[LessEqual[t, 4.6e+85]], $MachinePrecision]], 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[(a + N[(N[(y - 2.0), $MachinePrecision] * b + x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -0.0009 \lor \neg \left(t \leq 4.6 \cdot 10^{+85}\right):\\
\;\;\;\;\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, a + \mathsf{fma}\left(y - 2, b, x\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -8.9999999999999998e-4 or 4.5999999999999998e85 < t

    1. Initial program 93.5%

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

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

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

    if -8.9999999999999998e-4 < t < 4.5999999999999998e85

    1. Initial program 98.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -0.0009 \lor \neg \left(t \leq 4.6 \cdot 10^{+85}\right):\\ \;\;\;\;\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, a + \mathsf{fma}\left(y - 2, b, x\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 87.6% accurate, 1.1× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -40000 \lor \neg \left(b \leq 4.4 \cdot 10^{+64}\right):\\
\;\;\;\;\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < -4e4 or 4.40000000000000004e64 < b

    1. Initial program 92.1%

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(t - 1\right), a, x + b \cdot \left(\left(t + y\right) - 2\right)\right)} \]
      7. 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-+.f6489.8

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

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

    if -4e4 < b < 4.40000000000000004e64

    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}{b \cdot \left(\left(t + y\right) - 2\right) - \left(a \cdot \left(t - 1\right) + z \cdot \left(y - 1\right)\right)} \]
    4. Applied rewrites76.2%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b - a, t, \mathsf{fma}\left(y - 2, b, \mathsf{fma}\left(1 - y, z, a\right)\right)\right)} \]
    5. Taylor expanded in 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. lower--.f64N/A

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

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

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

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

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

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

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

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

Alternative 5: 84.9% accurate, 1.1× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq -0.00047 \lor \neg \left(y \leq 0.0001\right):\\
\;\;\;\;\mathsf{fma}\left(1 - y, z, \mathsf{fma}\left(y - 2, b, x\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -4.69999999999999986e-4 or 1.00000000000000005e-4 < y

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(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) \]
    7. Applied rewrites85.9%

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

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

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

      if -4.69999999999999986e-4 < y < 1.00000000000000005e-4

      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 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 6: 47.8% accurate, 1.1× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - a\right) \cdot t\\ \mathbf{if}\;t \leq -5.4 \cdot 10^{-17}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 3.55 \cdot 10^{-239}:\\ \;\;\;\;\left(y - 2\right) \cdot b\\ \mathbf{elif}\;t \leq 3.3 \cdot 10^{-65}:\\ \;\;\;\;a + x\\ \mathbf{elif}\;t \leq 9 \cdot 10^{+86}:\\ \;\;\;\;\left(1 - y\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
    (FPCore (x y z t a b)
     :precision binary64
     (let* ((t_1 (* (- b a) t)))
       (if (<= t -5.4e-17)
         t_1
         (if (<= t 3.55e-239)
           (* (- y 2.0) b)
           (if (<= t 3.3e-65) (+ a x) (if (<= t 9e+86) (* (- 1.0 y) z) 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 <= -5.4e-17) {
    		tmp = t_1;
    	} else if (t <= 3.55e-239) {
    		tmp = (y - 2.0) * b;
    	} else if (t <= 3.3e-65) {
    		tmp = a + x;
    	} else if (t <= 9e+86) {
    		tmp = (1.0 - y) * z;
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    real(8) function code(x, y, z, t, a, b)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        real(8), intent (in) :: z
        real(8), intent (in) :: t
        real(8), intent (in) :: a
        real(8), intent (in) :: b
        real(8) :: t_1
        real(8) :: tmp
        t_1 = (b - a) * t
        if (t <= (-5.4d-17)) then
            tmp = t_1
        else if (t <= 3.55d-239) then
            tmp = (y - 2.0d0) * b
        else if (t <= 3.3d-65) then
            tmp = a + x
        else if (t <= 9d+86) then
            tmp = (1.0d0 - y) * z
        else
            tmp = t_1
        end if
        code = tmp
    end function
    
    public static double code(double x, double y, double z, double t, double a, double b) {
    	double t_1 = (b - a) * t;
    	double tmp;
    	if (t <= -5.4e-17) {
    		tmp = t_1;
    	} else if (t <= 3.55e-239) {
    		tmp = (y - 2.0) * b;
    	} else if (t <= 3.3e-65) {
    		tmp = a + x;
    	} else if (t <= 9e+86) {
    		tmp = (1.0 - y) * z;
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a, b):
    	t_1 = (b - a) * t
    	tmp = 0
    	if t <= -5.4e-17:
    		tmp = t_1
    	elif t <= 3.55e-239:
    		tmp = (y - 2.0) * b
    	elif t <= 3.3e-65:
    		tmp = a + x
    	elif t <= 9e+86:
    		tmp = (1.0 - y) * z
    	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 <= -5.4e-17)
    		tmp = t_1;
    	elseif (t <= 3.55e-239)
    		tmp = Float64(Float64(y - 2.0) * b);
    	elseif (t <= 3.3e-65)
    		tmp = Float64(a + x);
    	elseif (t <= 9e+86)
    		tmp = Float64(Float64(1.0 - y) * z);
    	else
    		tmp = t_1;
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t, a, b)
    	t_1 = (b - a) * t;
    	tmp = 0.0;
    	if (t <= -5.4e-17)
    		tmp = t_1;
    	elseif (t <= 3.55e-239)
    		tmp = (y - 2.0) * b;
    	elseif (t <= 3.3e-65)
    		tmp = a + x;
    	elseif (t <= 9e+86)
    		tmp = (1.0 - y) * z;
    	else
    		tmp = t_1;
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -5.4e-17], t$95$1, If[LessEqual[t, 3.55e-239], N[(N[(y - 2.0), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[t, 3.3e-65], N[(a + x), $MachinePrecision], If[LessEqual[t, 9e+86], N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \left(b - a\right) \cdot t\\
    \mathbf{if}\;t \leq -5.4 \cdot 10^{-17}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;t \leq 3.55 \cdot 10^{-239}:\\
    \;\;\;\;\left(y - 2\right) \cdot b\\
    
    \mathbf{elif}\;t \leq 3.3 \cdot 10^{-65}:\\
    \;\;\;\;a + x\\
    
    \mathbf{elif}\;t \leq 9 \cdot 10^{+86}:\\
    \;\;\;\;\left(1 - y\right) \cdot z\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 4 regimes
    2. if t < -5.4000000000000002e-17 or 8.99999999999999986e86 < t

      1. Initial program 93.6%

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

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

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

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

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

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

      if -5.4000000000000002e-17 < t < 3.5499999999999999e-239

      1. Initial program 98.6%

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

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

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

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

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

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

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

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

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

        if 3.5499999999999999e-239 < t < 3.3000000000000001e-65

        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.6

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

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

              \[\leadsto a + x \]

            if 3.3000000000000001e-65 < t < 8.99999999999999986e86

            1. Initial program 97.4%

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

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

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

          Alternative 7: 84.7% accurate, 1.1× speedup?

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

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

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

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

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

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

              if -3.1000000000000003e70 < b < 9.9999999999999999e64

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

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

                \[\leadsto \color{blue}{\mathsf{fma}\left(b - a, t, \mathsf{fma}\left(y - 2, b, \mathsf{fma}\left(1 - y, z, a\right)\right)\right)} \]
              5. Taylor expanded in 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. lower--.f64N/A

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

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

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

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

                  \[\leadsto x - \mathsf{fma}\left(z, y - 1, \color{blue}{a \cdot \left(t - 1\right)}\right) \]
                6. lower--.f6487.3

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

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

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

            Alternative 8: 35.1% accurate, 1.2× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -6.7 \cdot 10^{+274}:\\ \;\;\;\;b \cdot t\\ \mathbf{elif}\;t \leq -48:\\ \;\;\;\;\left(-a\right) \cdot t\\ \mathbf{elif}\;t \leq 1.75 \cdot 10^{-67}:\\ \;\;\;\;a + x\\ \mathbf{elif}\;t \leq 1.15 \cdot 10^{+87}:\\ \;\;\;\;\left(-z\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;b \cdot t\\ \end{array} \end{array} \]
            (FPCore (x y z t a b)
             :precision binary64
             (if (<= t -6.7e+274)
               (* b t)
               (if (<= t -48.0)
                 (* (- a) t)
                 (if (<= t 1.75e-67) (+ a x) (if (<= t 1.15e+87) (* (- z) y) (* b t))))))
            double code(double x, double y, double z, double t, double a, double b) {
            	double tmp;
            	if (t <= -6.7e+274) {
            		tmp = b * t;
            	} else if (t <= -48.0) {
            		tmp = -a * t;
            	} else if (t <= 1.75e-67) {
            		tmp = a + x;
            	} else if (t <= 1.15e+87) {
            		tmp = -z * y;
            	} 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 <= (-6.7d+274)) then
                    tmp = b * t
                else if (t <= (-48.0d0)) then
                    tmp = -a * t
                else if (t <= 1.75d-67) then
                    tmp = a + x
                else if (t <= 1.15d+87) then
                    tmp = -z * y
                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 <= -6.7e+274) {
            		tmp = b * t;
            	} else if (t <= -48.0) {
            		tmp = -a * t;
            	} else if (t <= 1.75e-67) {
            		tmp = a + x;
            	} else if (t <= 1.15e+87) {
            		tmp = -z * y;
            	} else {
            		tmp = b * t;
            	}
            	return tmp;
            }
            
            def code(x, y, z, t, a, b):
            	tmp = 0
            	if t <= -6.7e+274:
            		tmp = b * t
            	elif t <= -48.0:
            		tmp = -a * t
            	elif t <= 1.75e-67:
            		tmp = a + x
            	elif t <= 1.15e+87:
            		tmp = -z * y
            	else:
            		tmp = b * t
            	return tmp
            
            function code(x, y, z, t, a, b)
            	tmp = 0.0
            	if (t <= -6.7e+274)
            		tmp = Float64(b * t);
            	elseif (t <= -48.0)
            		tmp = Float64(Float64(-a) * t);
            	elseif (t <= 1.75e-67)
            		tmp = Float64(a + x);
            	elseif (t <= 1.15e+87)
            		tmp = Float64(Float64(-z) * y);
            	else
            		tmp = Float64(b * t);
            	end
            	return tmp
            end
            
            function tmp_2 = code(x, y, z, t, a, b)
            	tmp = 0.0;
            	if (t <= -6.7e+274)
            		tmp = b * t;
            	elseif (t <= -48.0)
            		tmp = -a * t;
            	elseif (t <= 1.75e-67)
            		tmp = a + x;
            	elseif (t <= 1.15e+87)
            		tmp = -z * y;
            	else
            		tmp = b * t;
            	end
            	tmp_2 = tmp;
            end
            
            code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -6.7e+274], N[(b * t), $MachinePrecision], If[LessEqual[t, -48.0], N[((-a) * t), $MachinePrecision], If[LessEqual[t, 1.75e-67], N[(a + x), $MachinePrecision], If[LessEqual[t, 1.15e+87], N[((-z) * y), $MachinePrecision], N[(b * t), $MachinePrecision]]]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;t \leq -6.7 \cdot 10^{+274}:\\
            \;\;\;\;b \cdot t\\
            
            \mathbf{elif}\;t \leq -48:\\
            \;\;\;\;\left(-a\right) \cdot t\\
            
            \mathbf{elif}\;t \leq 1.75 \cdot 10^{-67}:\\
            \;\;\;\;a + x\\
            
            \mathbf{elif}\;t \leq 1.15 \cdot 10^{+87}:\\
            \;\;\;\;\left(-z\right) \cdot y\\
            
            \mathbf{else}:\\
            \;\;\;\;b \cdot t\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 4 regimes
            2. if t < -6.69999999999999984e274 or 1.1500000000000001e87 < t

              1. Initial program 95.2%

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

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

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

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

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

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

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

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

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

                if -6.69999999999999984e274 < t < -48

                1. Initial program 92.3%

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

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

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

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

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

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

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

                  if -48 < t < 1.75e-67

                  1. Initial program 99.0%

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

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

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

                        \[\leadsto a + x \]

                      if 1.75e-67 < t < 1.1500000000000001e87

                      1. Initial program 97.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        Alternative 9: 75.4% accurate, 1.2× speedup?

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

                          1. Initial program 93.6%

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

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

                            \[\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 0

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

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

                            if -5.4000000000000002e-17 < t < 4.5999999999999998e85

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \color{blue}{\mathsf{fma}\left(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) \]
                            7. Applied rewrites83.7%

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

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

                                \[\leadsto \mathsf{fma}\left(1 - y, z, \mathsf{fma}\left(y - 2, b, x\right)\right) \]
                            10. Recombined 2 regimes into one program.
                            11. Final simplification82.6%

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

                            Alternative 10: 73.4% accurate, 1.2× speedup?

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

                              1. Initial program 94.0%

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

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

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

                              if -7.19999999999999995e37 < y < 2.5e64

                              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-+.f6481.4

                                  \[\leadsto \mathsf{fma}\left(1 - t, a, \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 - t, a, \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right)\right)} \]
                              6. Taylor expanded in y around 0

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

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

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

                              Alternative 11: 60.5% accurate, 1.2× speedup?

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

                                1. Initial program 92.3%

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

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

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

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

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

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

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

                                if -2.50000000000000014e-33 < b < 1.92e-193

                                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-+.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 rewrites66.5%

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

                                  if 1.92e-193 < b < 9.9999999999999999e64

                                  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}{b \cdot \left(\left(t + y\right) - 2\right) - \left(a \cdot \left(t - 1\right) + z \cdot \left(y - 1\right)\right)} \]
                                  4. Applied rewrites75.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  Alternative 12: 65.4% accurate, 1.3× speedup?

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

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

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

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

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

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

                                        \[\leadsto \mathsf{fma}\left(b - a, t, -2 \cdot b\right) \]
                                      3. Step-by-step derivation
                                        1. Applied rewrites69.9%

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

                                        if -125000 < t < 2.3e-65

                                        1. Initial program 99.0%

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

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

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

                                          if 2.3e-65 < t < 1.35000000000000003e87

                                          1. Initial program 97.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            if 1.35000000000000003e87 < t

                                            1. Initial program 100.0%

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

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

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

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

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

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

                                          Alternative 13: 65.4% accurate, 1.3× speedup?

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

                                            1. Initial program 93.4%

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

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

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

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

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

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

                                            if -125000 < t < 2.3e-65

                                            1. Initial program 99.0%

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

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

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

                                              if 2.3e-65 < t < 1.35000000000000003e87

                                              1. Initial program 97.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                              Alternative 14: 52.4% accurate, 1.3× speedup?

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

                                                1. Initial program 93.6%

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

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

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

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

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

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

                                                if -5.4000000000000002e-17 < t < 4.19999999999999996e-268

                                                1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

                                                  if 4.19999999999999996e-268 < t < 1.35000000000000003e87

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                  Alternative 15: 42.7% accurate, 1.4× speedup?

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

                                                    1. Initial program 93.5%

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

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

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

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

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

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

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

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

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

                                                      if -9.49999999999999927e-37 < b < -5.4999999999999995e-284

                                                      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-+.f6471.3

                                                          \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, x\right)\right) \]
                                                      5. Applied rewrites71.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 rewrites66.0%

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

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

                                                          if -5.4999999999999995e-284 < b < 1.84999999999999999e68

                                                          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}{b \cdot \left(\left(t + y\right) - 2\right) - \left(a \cdot \left(t - 1\right) + z \cdot \left(y - 1\right)\right)} \]
                                                          4. Applied rewrites75.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                              if 1.84999999999999999e68 < b

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

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

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

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

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

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

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

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

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

                                                              Alternative 16: 42.0% accurate, 1.4× speedup?

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

                                                                1. Initial program 92.4%

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

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

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

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

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

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

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

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

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

                                                                  if -4.80000000000000031e-39 < b < -5.4999999999999995e-284

                                                                  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-+.f6471.3

                                                                      \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, x\right)\right) \]
                                                                  5. Applied rewrites71.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 rewrites66.0%

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

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

                                                                      if -5.4999999999999995e-284 < b < 1.84999999999999999e68

                                                                      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}{b \cdot \left(\left(t + y\right) - 2\right) - \left(a \cdot \left(t - 1\right) + z \cdot \left(y - 1\right)\right)} \]
                                                                      4. Applied rewrites75.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                        Alternative 17: 37.6% accurate, 1.4× speedup?

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

                                                                          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 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-+.f6486.5

                                                                              \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, x\right)\right) \]
                                                                          5. Applied rewrites86.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 rewrites55.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 rewrites54.6%

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

                                                                              if -1 < t < 1.75e-67

                                                                              1. Initial program 99.0%

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

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

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

                                                                                    \[\leadsto a + x \]

                                                                                  if 1.75e-67 < t < 1.1500000000000001e87

                                                                                  1. Initial program 97.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                      if 1.1500000000000001e87 < t

                                                                                      1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

                                                                                      Alternative 18: 34.1% accurate, 1.4× speedup?

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

                                                                                        1. Initial program 93.4%

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

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

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

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

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

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

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

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

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

                                                                                          if -1.1e16 < t < 1.75e-67

                                                                                          1. Initial program 99.0%

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

                                                                                                \[\leadsto a + x \]

                                                                                              if 1.75e-67 < t < 1.1500000000000001e87

                                                                                              1. Initial program 97.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                    \[\leadsto \left(-z\right) \cdot y \]
                                                                                                4. Recombined 3 regimes into one program.
                                                                                                5. Add Preprocessing

                                                                                                Alternative 19: 57.0% accurate, 1.7× speedup?

                                                                                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -2.95 \cdot 10^{-23} \lor \neg \left(y \leq 1.65 \cdot 10^{+46}\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 -2.95e-23) (not (<= y 1.65e+46)))
                                                                                                   (* (- 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 <= -2.95e-23) || !(y <= 1.65e+46)) {
                                                                                                		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 <= -2.95e-23) || !(y <= 1.65e+46))
                                                                                                		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, -2.95e-23], N[Not[LessEqual[y, 1.65e+46]], $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 -2.95 \cdot 10^{-23} \lor \neg \left(y \leq 1.65 \cdot 10^{+46}\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 < -2.9499999999999998e-23 or 1.6499999999999999e46 < y

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

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

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

                                                                                                  if -2.9499999999999998e-23 < y < 1.6499999999999999e46

                                                                                                  1. Initial program 97.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-+.f6483.3

                                                                                                      \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, x\right)\right) \]
                                                                                                  5. Applied rewrites83.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 rewrites51.6%

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

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

                                                                                                  Alternative 20: 39.8% accurate, 1.8× speedup?

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

                                                                                                    1. Initial program 90.0%

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

                                                                                                        \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, x\right)\right) \]
                                                                                                    5. Applied rewrites87.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 rewrites56.1%

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

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

                                                                                                        if -6.59999999999999985e31 < t < 6.1999999999999999e87

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                            if 6.1999999999999999e87 < t

                                                                                                            1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

                                                                                                            Alternative 21: 32.0% accurate, 2.1× speedup?

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

                                                                                                              1. Initial program 93.1%

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

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

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

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

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

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

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

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

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

                                                                                                                if -1.29999999999999996e71 < b < 8.5e13

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

                                                                                                                    \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, x\right)\right) \]
                                                                                                                5. Applied rewrites67.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 b around 0

                                                                                                                  \[\leadsto x + \color{blue}{a \cdot \left(1 - t\right)} \]
                                                                                                                7. Step-by-step derivation
                                                                                                                  1. Applied rewrites56.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 rewrites37.1%

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

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

                                                                                                                  Alternative 22: 32.6% accurate, 2.1× speedup?

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

                                                                                                                    1. Initial program 93.2%

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

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

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

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

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

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

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

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

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

                                                                                                                      if -3.3999999999999998e83 < b < 8.5e13

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

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

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

                                                                                                                            \[\leadsto a + x \]

                                                                                                                          if 8.5e13 < b

                                                                                                                          1. Initial program 92.8%

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

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

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

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

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

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

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

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

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

                                                                                                                          Alternative 23: 31.3% accurate, 2.3× speedup?

                                                                                                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.56 \cdot 10^{+65} \lor \neg \left(z \leq 6.2 \cdot 10^{+57}\right):\\ \;\;\;\;z + x\\ \mathbf{else}:\\ \;\;\;\;a + x\\ \end{array} \end{array} \]
                                                                                                                          (FPCore (x y z t a b)
                                                                                                                           :precision binary64
                                                                                                                           (if (or (<= z -1.56e+65) (not (<= z 6.2e+57))) (+ z x) (+ a x)))
                                                                                                                          double code(double x, double y, double z, double t, double a, double b) {
                                                                                                                          	double tmp;
                                                                                                                          	if ((z <= -1.56e+65) || !(z <= 6.2e+57)) {
                                                                                                                          		tmp = z + x;
                                                                                                                          	} else {
                                                                                                                          		tmp = a + x;
                                                                                                                          	}
                                                                                                                          	return tmp;
                                                                                                                          }
                                                                                                                          
                                                                                                                          real(8) function code(x, y, z, t, a, b)
                                                                                                                              real(8), intent (in) :: x
                                                                                                                              real(8), intent (in) :: y
                                                                                                                              real(8), intent (in) :: z
                                                                                                                              real(8), intent (in) :: t
                                                                                                                              real(8), intent (in) :: a
                                                                                                                              real(8), intent (in) :: b
                                                                                                                              real(8) :: tmp
                                                                                                                              if ((z <= (-1.56d+65)) .or. (.not. (z <= 6.2d+57))) then
                                                                                                                                  tmp = z + x
                                                                                                                              else
                                                                                                                                  tmp = a + x
                                                                                                                              end if
                                                                                                                              code = tmp
                                                                                                                          end function
                                                                                                                          
                                                                                                                          public static double code(double x, double y, double z, double t, double a, double b) {
                                                                                                                          	double tmp;
                                                                                                                          	if ((z <= -1.56e+65) || !(z <= 6.2e+57)) {
                                                                                                                          		tmp = z + x;
                                                                                                                          	} else {
                                                                                                                          		tmp = a + x;
                                                                                                                          	}
                                                                                                                          	return tmp;
                                                                                                                          }
                                                                                                                          
                                                                                                                          def code(x, y, z, t, a, b):
                                                                                                                          	tmp = 0
                                                                                                                          	if (z <= -1.56e+65) or not (z <= 6.2e+57):
                                                                                                                          		tmp = z + x
                                                                                                                          	else:
                                                                                                                          		tmp = a + x
                                                                                                                          	return tmp
                                                                                                                          
                                                                                                                          function code(x, y, z, t, a, b)
                                                                                                                          	tmp = 0.0
                                                                                                                          	if ((z <= -1.56e+65) || !(z <= 6.2e+57))
                                                                                                                          		tmp = Float64(z + x);
                                                                                                                          	else
                                                                                                                          		tmp = Float64(a + x);
                                                                                                                          	end
                                                                                                                          	return tmp
                                                                                                                          end
                                                                                                                          
                                                                                                                          function tmp_2 = code(x, y, z, t, a, b)
                                                                                                                          	tmp = 0.0;
                                                                                                                          	if ((z <= -1.56e+65) || ~((z <= 6.2e+57)))
                                                                                                                          		tmp = z + x;
                                                                                                                          	else
                                                                                                                          		tmp = a + x;
                                                                                                                          	end
                                                                                                                          	tmp_2 = tmp;
                                                                                                                          end
                                                                                                                          
                                                                                                                          code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.56e+65], N[Not[LessEqual[z, 6.2e+57]], $MachinePrecision]], N[(z + x), $MachinePrecision], N[(a + x), $MachinePrecision]]
                                                                                                                          
                                                                                                                          \begin{array}{l}
                                                                                                                          
                                                                                                                          \\
                                                                                                                          \begin{array}{l}
                                                                                                                          \mathbf{if}\;z \leq -1.56 \cdot 10^{+65} \lor \neg \left(z \leq 6.2 \cdot 10^{+57}\right):\\
                                                                                                                          \;\;\;\;z + x\\
                                                                                                                          
                                                                                                                          \mathbf{else}:\\
                                                                                                                          \;\;\;\;a + x\\
                                                                                                                          
                                                                                                                          
                                                                                                                          \end{array}
                                                                                                                          \end{array}
                                                                                                                          
                                                                                                                          Derivation
                                                                                                                          1. Split input into 2 regimes
                                                                                                                          2. if z < -1.5599999999999999e65 or 6.20000000000000026e57 < z

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                                                  \[\leadsto z + x \]

                                                                                                                                if -1.5599999999999999e65 < z < 6.20000000000000026e57

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

                                                                                                                                    \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, x\right)\right) \]
                                                                                                                                5. Applied rewrites92.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 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 rewrites31.5%

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

                                                                                                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.56 \cdot 10^{+65} \lor \neg \left(z \leq 6.2 \cdot 10^{+57}\right):\\ \;\;\;\;z + x\\ \mathbf{else}:\\ \;\;\;\;a + x\\ \end{array} \]
                                                                                                                                  6. Add Preprocessing

                                                                                                                                  Alternative 24: 24.6% 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 96.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 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.9

                                                                                                                                      \[\leadsto \mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, x\right)\right) \]
                                                                                                                                  5. Applied rewrites76.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 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 rewrites24.5%

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

                                                                                                                                      Reproduce

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