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

Percentage Accurate: 95.4% → 97.6%
Time: 11.9s
Alternatives: 21
Speedup: 1.1×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 21 alternatives:

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

Initial Program: 95.4% accurate, 1.0× speedup?

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

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

Alternative 1: 97.6% accurate, 1.1× speedup?

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

\\
\mathsf{fma}\left(\left(y + t\right) - 2, b, x - \mathsf{fma}\left(a, t - 1, \left(y - 1\right) \cdot z\right)\right)
\end{array}
Derivation
  1. Initial program 94.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. Step-by-step derivation
    1. lift-+.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \mathsf{fma}\left(a, t - 1, \color{blue}{z \cdot \left(y - 1\right)}\right)\right) \]
    18. lower-*.f6498.0

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

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

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

Alternative 2: 34.6% accurate, 0.4× speedup?

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

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

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

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


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

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

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

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

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

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

      if -1.9999999999999998e293 < (+.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)) < 2.00000000000000003e306

      1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto a + x \]

          if 2.00000000000000003e306 < (+.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 74.5%

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

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

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

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

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

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

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

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

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

              \[\leadsto b \cdot \color{blue}{t} \]
          8. Recombined 3 regimes into one program.
          9. Final simplification39.6%

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

          Alternative 3: 35.0% accurate, 0.4× speedup?

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

            1. Initial program 85.6%

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

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

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

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

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

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

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

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

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

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

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

              1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                Alternative 4: 84.2% accurate, 1.1× speedup?

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

                  1. Initial program 86.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. Step-by-step derivation
                    1. lift-+.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \mathsf{fma}\left(a, t - 1, \color{blue}{z \cdot \left(y - 1\right)}\right)\right) \]
                    18. lower-*.f6494.9

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if -4.3999999999999999e47 < b < 5.7999999999999998e25

                  1. Initial program 99.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                Alternative 5: 69.2% accurate, 1.2× speedup?

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

                  1. Initial program 84.5%

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

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

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

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

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

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

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

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

                  if -2.00000000000000009e48 < b < 1.54999999999999998e-55

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if 1.54999999999999998e-55 < b < 3.20000000000000003e79

                    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    Alternative 6: 66.9% accurate, 1.2× speedup?

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

                      1. Initial program 84.5%

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

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

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

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

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

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

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

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

                      if -2.00000000000000009e48 < b < -8.6000000000000002e-230

                      1. Initial program 98.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        if -8.6000000000000002e-230 < b < 3.20000000000000003e79

                        1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        Alternative 7: 82.0% accurate, 1.2× speedup?

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

                          1. Initial program 83.1%

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

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

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

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

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

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

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

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

                          if -1.99999999999999984e134 < b < 2.30000000000000004e80

                          1. Initial program 98.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        Alternative 8: 70.9% accurate, 1.2× speedup?

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

                          1. Initial program 88.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            if -1.35e29 < a < 4.90000000000000007e150

                            1. Initial program 97.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              Alternative 9: 57.6% accurate, 1.3× speedup?

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

                                1. Initial program 88.0%

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

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

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

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

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

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

                                if -3.0000000000000001e67 < t < 1.5599999999999999e-86

                                1. Initial program 98.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  if 1.5599999999999999e-86 < t < 2.10000000000000008e79

                                  1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      Alternative 10: 57.3% accurate, 1.3× speedup?

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

                                        1. Initial program 88.1%

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

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

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

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

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

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

                                        if -2.35e52 < t < -2.5000000000000001e-23

                                        1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        if -2.5000000000000001e-23 < t < 2.10000000000000008e79

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            Alternative 11: 56.4% accurate, 1.4× speedup?

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

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

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

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

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

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

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

                                              if -2.3e7 < y < 2.4000000000000001e24

                                              1. Initial program 96.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                if 2.4000000000000001e24 < y < 1.89999999999999999e80

                                                1. Initial program 84.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--.f6484.7

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

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

                                              Alternative 12: 49.4% accurate, 1.4× speedup?

                                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - z\right) \cdot y\\ \mathbf{if}\;y \leq -210:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -2.05 \cdot 10^{-88}:\\ \;\;\;\;a + x\\ \mathbf{elif}\;y \leq 1.9 \cdot 10^{+80}:\\ \;\;\;\;\left(b - a\right) \cdot t\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                              (FPCore (x y z t a b)
                                               :precision binary64
                                               (let* ((t_1 (* (- b z) y)))
                                                 (if (<= y -210.0)
                                                   t_1
                                                   (if (<= y -2.05e-88) (+ a x) (if (<= y 1.9e+80) (* (- b a) t) t_1)))))
                                              double code(double x, double y, double z, double t, double a, double b) {
                                              	double t_1 = (b - z) * y;
                                              	double tmp;
                                              	if (y <= -210.0) {
                                              		tmp = t_1;
                                              	} else if (y <= -2.05e-88) {
                                              		tmp = a + x;
                                              	} else if (y <= 1.9e+80) {
                                              		tmp = (b - a) * t;
                                              	} else {
                                              		tmp = t_1;
                                              	}
                                              	return tmp;
                                              }
                                              
                                              real(8) function code(x, y, z, t, a, b)
                                                  real(8), intent (in) :: x
                                                  real(8), intent (in) :: y
                                                  real(8), intent (in) :: z
                                                  real(8), intent (in) :: t
                                                  real(8), intent (in) :: a
                                                  real(8), intent (in) :: b
                                                  real(8) :: t_1
                                                  real(8) :: tmp
                                                  t_1 = (b - z) * y
                                                  if (y <= (-210.0d0)) then
                                                      tmp = t_1
                                                  else if (y <= (-2.05d-88)) then
                                                      tmp = a + x
                                                  else if (y <= 1.9d+80) then
                                                      tmp = (b - a) * t
                                                  else
                                                      tmp = t_1
                                                  end if
                                                  code = tmp
                                              end function
                                              
                                              public static double code(double x, double y, double z, double t, double a, double b) {
                                              	double t_1 = (b - z) * y;
                                              	double tmp;
                                              	if (y <= -210.0) {
                                              		tmp = t_1;
                                              	} else if (y <= -2.05e-88) {
                                              		tmp = a + x;
                                              	} else if (y <= 1.9e+80) {
                                              		tmp = (b - a) * t;
                                              	} else {
                                              		tmp = t_1;
                                              	}
                                              	return tmp;
                                              }
                                              
                                              def code(x, y, z, t, a, b):
                                              	t_1 = (b - z) * y
                                              	tmp = 0
                                              	if y <= -210.0:
                                              		tmp = t_1
                                              	elif y <= -2.05e-88:
                                              		tmp = a + x
                                              	elif y <= 1.9e+80:
                                              		tmp = (b - a) * t
                                              	else:
                                              		tmp = t_1
                                              	return tmp
                                              
                                              function code(x, y, z, t, a, b)
                                              	t_1 = Float64(Float64(b - z) * y)
                                              	tmp = 0.0
                                              	if (y <= -210.0)
                                              		tmp = t_1;
                                              	elseif (y <= -2.05e-88)
                                              		tmp = Float64(a + x);
                                              	elseif (y <= 1.9e+80)
                                              		tmp = Float64(Float64(b - a) * t);
                                              	else
                                              		tmp = t_1;
                                              	end
                                              	return tmp
                                              end
                                              
                                              function tmp_2 = code(x, y, z, t, a, b)
                                              	t_1 = (b - z) * y;
                                              	tmp = 0.0;
                                              	if (y <= -210.0)
                                              		tmp = t_1;
                                              	elseif (y <= -2.05e-88)
                                              		tmp = a + x;
                                              	elseif (y <= 1.9e+80)
                                              		tmp = (b - a) * t;
                                              	else
                                              		tmp = t_1;
                                              	end
                                              	tmp_2 = tmp;
                                              end
                                              
                                              code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - z), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -210.0], t$95$1, If[LessEqual[y, -2.05e-88], N[(a + x), $MachinePrecision], If[LessEqual[y, 1.9e+80], N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]]
                                              
                                              \begin{array}{l}
                                              
                                              \\
                                              \begin{array}{l}
                                              t_1 := \left(b - z\right) \cdot y\\
                                              \mathbf{if}\;y \leq -210:\\
                                              \;\;\;\;t\_1\\
                                              
                                              \mathbf{elif}\;y \leq -2.05 \cdot 10^{-88}:\\
                                              \;\;\;\;a + x\\
                                              
                                              \mathbf{elif}\;y \leq 1.9 \cdot 10^{+80}:\\
                                              \;\;\;\;\left(b - a\right) \cdot t\\
                                              
                                              \mathbf{else}:\\
                                              \;\;\;\;t\_1\\
                                              
                                              
                                              \end{array}
                                              \end{array}
                                              
                                              Derivation
                                              1. Split input into 3 regimes
                                              2. if y < -210 or 1.89999999999999999e80 < y

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

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

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

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

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

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

                                                if -210 < y < -2.0500000000000001e-88

                                                1. Initial program 94.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                      \[\leadsto a + x \]

                                                    if -2.0500000000000001e-88 < y < 1.89999999999999999e80

                                                    1. Initial program 95.8%

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

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

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

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

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

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

                                                  Alternative 13: 50.1% accurate, 1.4× speedup?

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

                                                    1. Initial program 89.5%

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

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

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

                                                    if -2.35e52 < t < -2.75000000000000011e-206

                                                    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                    if -2.75000000000000011e-206 < t < 9.99999999999999914e28

                                                    1. Initial program 97.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                      Alternative 14: 39.9% accurate, 1.4× speedup?

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

                                                        1. Initial program 88.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                        if -1.7e-5 < a < 3.2000000000000001e-61

                                                        1. Initial program 97.6%

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

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

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

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

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

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

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

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

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

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

                                                          if 3.2000000000000001e-61 < a < 4.5000000000000002e119

                                                          1. Initial program 97.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                            Alternative 15: 36.8% accurate, 1.4× speedup?

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

                                                              1. Initial program 89.4%

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

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

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

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

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

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

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

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

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

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

                                                                if -7.00000000000000047e42 < b < -1.7500000000000002e-229

                                                                1. Initial program 98.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                  if -1.7500000000000002e-229 < b < 4.8e17

                                                                  1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                        \[\leadsto a + x \]

                                                                      if 4.8e17 < b

                                                                      1. Initial program 85.5%

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

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

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

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

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

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

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

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

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

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

                                                                      Alternative 16: 37.0% accurate, 1.4× speedup?

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

                                                                        1. Initial program 88.1%

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

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

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

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

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

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

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

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

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

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

                                                                          if -7.00000000000000047e42 < b < -1.7500000000000002e-229

                                                                          1. Initial program 98.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                            if -1.7500000000000002e-229 < b < 4.99999999999999964e-35

                                                                            1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                              Alternative 17: 61.4% accurate, 1.5× speedup?

                                                                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(\left(y + t\right) - 2\right)\\ \mathbf{if}\;b \leq -2 \cdot 10^{+48}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 5.5 \cdot 10^{+24}:\\ \;\;\;\;\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 (- (+ y t) 2.0))))
                                                                                 (if (<= b -2e+48) t_1 (if (<= b 5.5e+24) (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 * ((y + t) - 2.0);
                                                                              	double tmp;
                                                                              	if (b <= -2e+48) {
                                                                              		tmp = t_1;
                                                                              	} else if (b <= 5.5e+24) {
                                                                              		tmp = fma((1.0 - y), z, x);
                                                                              	} else {
                                                                              		tmp = t_1;
                                                                              	}
                                                                              	return tmp;
                                                                              }
                                                                              
                                                                              function code(x, y, z, t, a, b)
                                                                              	t_1 = Float64(b * Float64(Float64(y + t) - 2.0))
                                                                              	tmp = 0.0
                                                                              	if (b <= -2e+48)
                                                                              		tmp = t_1;
                                                                              	elseif (b <= 5.5e+24)
                                                                              		tmp = fma(Float64(1.0 - y), z, x);
                                                                              	else
                                                                              		tmp = t_1;
                                                                              	end
                                                                              	return tmp
                                                                              end
                                                                              
                                                                              code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2e+48], t$95$1, If[LessEqual[b, 5.5e+24], N[(N[(1.0 - y), $MachinePrecision] * z + x), $MachinePrecision], t$95$1]]]
                                                                              
                                                                              \begin{array}{l}
                                                                              
                                                                              \\
                                                                              \begin{array}{l}
                                                                              t_1 := b \cdot \left(\left(y + t\right) - 2\right)\\
                                                                              \mathbf{if}\;b \leq -2 \cdot 10^{+48}:\\
                                                                              \;\;\;\;t\_1\\
                                                                              
                                                                              \mathbf{elif}\;b \leq 5.5 \cdot 10^{+24}:\\
                                                                              \;\;\;\;\mathsf{fma}\left(1 - y, z, x\right)\\
                                                                              
                                                                              \mathbf{else}:\\
                                                                              \;\;\;\;t\_1\\
                                                                              
                                                                              
                                                                              \end{array}
                                                                              \end{array}
                                                                              
                                                                              Derivation
                                                                              1. Split input into 2 regimes
                                                                              2. if b < -2.00000000000000009e48 or 5.5000000000000002e24 < b

                                                                                1. Initial program 86.9%

                                                                                  \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                                                                2. Add Preprocessing
                                                                                3. Taylor expanded in b around inf

                                                                                  \[\leadsto \color{blue}{b \cdot \left(\left(t + y\right) - 2\right)} \]
                                                                                4. Step-by-step derivation
                                                                                  1. *-commutativeN/A

                                                                                    \[\leadsto \color{blue}{\left(\left(t + y\right) - 2\right) \cdot b} \]
                                                                                  2. lower-*.f64N/A

                                                                                    \[\leadsto \color{blue}{\left(\left(t + y\right) - 2\right) \cdot b} \]
                                                                                  3. lower--.f64N/A

                                                                                    \[\leadsto \color{blue}{\left(\left(t + y\right) - 2\right)} \cdot b \]
                                                                                  4. +-commutativeN/A

                                                                                    \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                                                                                  5. lower-+.f6472.6

                                                                                    \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                                                                                5. Applied rewrites72.6%

                                                                                  \[\leadsto \color{blue}{\left(\left(y + t\right) - 2\right) \cdot b} \]

                                                                                if -2.00000000000000009e48 < b < 5.5000000000000002e24

                                                                                1. Initial program 99.3%

                                                                                  \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                                                                2. Add Preprocessing
                                                                                3. Taylor expanded in b around 0

                                                                                  \[\leadsto \color{blue}{x - \left(a \cdot \left(t - 1\right) + z \cdot \left(y - 1\right)\right)} \]
                                                                                4. Step-by-step derivation
                                                                                  1. +-commutativeN/A

                                                                                    \[\leadsto x - \color{blue}{\left(z \cdot \left(y - 1\right) + a \cdot \left(t - 1\right)\right)} \]
                                                                                  2. associate--r+N/A

                                                                                    \[\leadsto \color{blue}{\left(x - z \cdot \left(y - 1\right)\right) - a \cdot \left(t - 1\right)} \]
                                                                                  3. sub-negN/A

                                                                                    \[\leadsto \color{blue}{\left(x + \left(\mathsf{neg}\left(z \cdot \left(y - 1\right)\right)\right)\right)} - a \cdot \left(t - 1\right) \]
                                                                                  4. +-commutativeN/A

                                                                                    \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(z \cdot \left(y - 1\right)\right)\right) + x\right)} - a \cdot \left(t - 1\right) \]
                                                                                  5. associate-+r-N/A

                                                                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z \cdot \left(y - 1\right)\right)\right) + \left(x - a \cdot \left(t - 1\right)\right)} \]
                                                                                  6. *-commutativeN/A

                                                                                    \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - 1\right) \cdot z}\right)\right) + \left(x - a \cdot \left(t - 1\right)\right) \]
                                                                                  7. distribute-lft-neg-inN/A

                                                                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(y - 1\right)\right)\right) \cdot z} + \left(x - a \cdot \left(t - 1\right)\right) \]
                                                                                  8. mul-1-negN/A

                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z + \left(x - a \cdot \left(t - 1\right)\right) \]
                                                                                  9. lower-fma.f64N/A

                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(y - 1\right), z, x - a \cdot \left(t - 1\right)\right)} \]
                                                                                  10. sub-negN/A

                                                                                    \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(y + \left(\mathsf{neg}\left(1\right)\right)\right)}, z, x - a \cdot \left(t - 1\right)\right) \]
                                                                                  11. metadata-evalN/A

                                                                                    \[\leadsto \mathsf{fma}\left(-1 \cdot \left(y + \color{blue}{-1}\right), z, x - a \cdot \left(t - 1\right)\right) \]
                                                                                  12. +-commutativeN/A

                                                                                    \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(-1 + y\right)}, z, x - a \cdot \left(t - 1\right)\right) \]
                                                                                  13. distribute-lft-inN/A

                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{-1 \cdot -1 + -1 \cdot y}, z, x - a \cdot \left(t - 1\right)\right) \]
                                                                                  14. metadata-evalN/A

                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{1} + -1 \cdot y, z, x - a \cdot \left(t - 1\right)\right) \]
                                                                                  15. neg-mul-1N/A

                                                                                    \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\left(\mathsf{neg}\left(y\right)\right)}, z, x - a \cdot \left(t - 1\right)\right) \]
                                                                                  16. sub-negN/A

                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{1 - y}, z, x - a \cdot \left(t - 1\right)\right) \]
                                                                                  17. lower--.f64N/A

                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{1 - y}, z, x - a \cdot \left(t - 1\right)\right) \]
                                                                                  18. sub-negN/A

                                                                                    \[\leadsto \mathsf{fma}\left(1 - y, z, \color{blue}{x + \left(\mathsf{neg}\left(a \cdot \left(t - 1\right)\right)\right)}\right) \]
                                                                                  19. +-commutativeN/A

                                                                                    \[\leadsto \mathsf{fma}\left(1 - y, z, \color{blue}{\left(\mathsf{neg}\left(a \cdot \left(t - 1\right)\right)\right) + x}\right) \]
                                                                                5. Applied rewrites92.6%

                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(1 - y, z, \mathsf{fma}\left(1 - t, a, x\right)\right)} \]
                                                                                6. Taylor expanded in a around 0

                                                                                  \[\leadsto x + \color{blue}{z \cdot \left(1 - y\right)} \]
                                                                                7. Step-by-step derivation
                                                                                  1. Applied rewrites63.1%

                                                                                    \[\leadsto \mathsf{fma}\left(1 - y, \color{blue}{z}, x\right) \]
                                                                                8. Recombined 2 regimes into one program.
                                                                                9. Final simplification66.8%

                                                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -2 \cdot 10^{+48}:\\ \;\;\;\;b \cdot \left(\left(y + t\right) - 2\right)\\ \mathbf{elif}\;b \leq 5.5 \cdot 10^{+24}:\\ \;\;\;\;\mathsf{fma}\left(1 - y, z, x\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(\left(y + t\right) - 2\right)\\ \end{array} \]
                                                                                10. Add Preprocessing

                                                                                Alternative 18: 39.2% accurate, 1.8× speedup?

                                                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(1 - y\right) \cdot z\\ \mathbf{if}\;z \leq -3.4 \cdot 10^{+150}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 7 \cdot 10^{+87}:\\ \;\;\;\;a + x\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                (FPCore (x y z t a b)
                                                                                 :precision binary64
                                                                                 (let* ((t_1 (* (- 1.0 y) z)))
                                                                                   (if (<= z -3.4e+150) t_1 (if (<= z 7e+87) (+ a x) t_1))))
                                                                                double code(double x, double y, double z, double t, double a, double b) {
                                                                                	double t_1 = (1.0 - y) * z;
                                                                                	double tmp;
                                                                                	if (z <= -3.4e+150) {
                                                                                		tmp = t_1;
                                                                                	} else if (z <= 7e+87) {
                                                                                		tmp = a + x;
                                                                                	} else {
                                                                                		tmp = t_1;
                                                                                	}
                                                                                	return tmp;
                                                                                }
                                                                                
                                                                                real(8) function code(x, y, z, t, a, b)
                                                                                    real(8), intent (in) :: x
                                                                                    real(8), intent (in) :: y
                                                                                    real(8), intent (in) :: z
                                                                                    real(8), intent (in) :: t
                                                                                    real(8), intent (in) :: a
                                                                                    real(8), intent (in) :: b
                                                                                    real(8) :: t_1
                                                                                    real(8) :: tmp
                                                                                    t_1 = (1.0d0 - y) * z
                                                                                    if (z <= (-3.4d+150)) then
                                                                                        tmp = t_1
                                                                                    else if (z <= 7d+87) then
                                                                                        tmp = a + x
                                                                                    else
                                                                                        tmp = t_1
                                                                                    end if
                                                                                    code = tmp
                                                                                end function
                                                                                
                                                                                public static double code(double x, double y, double z, double t, double a, double b) {
                                                                                	double t_1 = (1.0 - y) * z;
                                                                                	double tmp;
                                                                                	if (z <= -3.4e+150) {
                                                                                		tmp = t_1;
                                                                                	} else if (z <= 7e+87) {
                                                                                		tmp = a + x;
                                                                                	} else {
                                                                                		tmp = t_1;
                                                                                	}
                                                                                	return tmp;
                                                                                }
                                                                                
                                                                                def code(x, y, z, t, a, b):
                                                                                	t_1 = (1.0 - y) * z
                                                                                	tmp = 0
                                                                                	if z <= -3.4e+150:
                                                                                		tmp = t_1
                                                                                	elif z <= 7e+87:
                                                                                		tmp = a + x
                                                                                	else:
                                                                                		tmp = t_1
                                                                                	return tmp
                                                                                
                                                                                function code(x, y, z, t, a, b)
                                                                                	t_1 = Float64(Float64(1.0 - y) * z)
                                                                                	tmp = 0.0
                                                                                	if (z <= -3.4e+150)
                                                                                		tmp = t_1;
                                                                                	elseif (z <= 7e+87)
                                                                                		tmp = Float64(a + x);
                                                                                	else
                                                                                		tmp = t_1;
                                                                                	end
                                                                                	return tmp
                                                                                end
                                                                                
                                                                                function tmp_2 = code(x, y, z, t, a, b)
                                                                                	t_1 = (1.0 - y) * z;
                                                                                	tmp = 0.0;
                                                                                	if (z <= -3.4e+150)
                                                                                		tmp = t_1;
                                                                                	elseif (z <= 7e+87)
                                                                                		tmp = a + x;
                                                                                	else
                                                                                		tmp = t_1;
                                                                                	end
                                                                                	tmp_2 = tmp;
                                                                                end
                                                                                
                                                                                code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -3.4e+150], t$95$1, If[LessEqual[z, 7e+87], N[(a + x), $MachinePrecision], t$95$1]]]
                                                                                
                                                                                \begin{array}{l}
                                                                                
                                                                                \\
                                                                                \begin{array}{l}
                                                                                t_1 := \left(1 - y\right) \cdot z\\
                                                                                \mathbf{if}\;z \leq -3.4 \cdot 10^{+150}:\\
                                                                                \;\;\;\;t\_1\\
                                                                                
                                                                                \mathbf{elif}\;z \leq 7 \cdot 10^{+87}:\\
                                                                                \;\;\;\;a + x\\
                                                                                
                                                                                \mathbf{else}:\\
                                                                                \;\;\;\;t\_1\\
                                                                                
                                                                                
                                                                                \end{array}
                                                                                \end{array}
                                                                                
                                                                                Derivation
                                                                                1. Split input into 2 regimes
                                                                                2. if z < -3.39999999999999983e150 or 6.99999999999999972e87 < z

                                                                                  1. Initial program 91.0%

                                                                                    \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                                                                  2. Add Preprocessing
                                                                                  3. Taylor expanded in z around inf

                                                                                    \[\leadsto \color{blue}{z \cdot \left(1 - y\right)} \]
                                                                                  4. Step-by-step derivation
                                                                                    1. *-commutativeN/A

                                                                                      \[\leadsto \color{blue}{\left(1 - y\right) \cdot z} \]
                                                                                    2. sub-negN/A

                                                                                      \[\leadsto \color{blue}{\left(1 + \left(\mathsf{neg}\left(y\right)\right)\right)} \cdot z \]
                                                                                    3. metadata-evalN/A

                                                                                      \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} + \left(\mathsf{neg}\left(y\right)\right)\right) \cdot z \]
                                                                                    4. distribute-neg-inN/A

                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(-1 + y\right)\right)\right)} \cdot z \]
                                                                                    5. +-commutativeN/A

                                                                                      \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y + -1\right)}\right)\right) \cdot z \]
                                                                                    6. metadata-evalN/A

                                                                                      \[\leadsto \left(\mathsf{neg}\left(\left(y + \color{blue}{\left(\mathsf{neg}\left(1\right)\right)}\right)\right)\right) \cdot z \]
                                                                                    7. sub-negN/A

                                                                                      \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - 1\right)}\right)\right) \cdot z \]
                                                                                    8. mul-1-negN/A

                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z \]
                                                                                    9. lower-*.f64N/A

                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right) \cdot z} \]
                                                                                    10. sub-negN/A

                                                                                      \[\leadsto \left(-1 \cdot \color{blue}{\left(y + \left(\mathsf{neg}\left(1\right)\right)\right)}\right) \cdot z \]
                                                                                    11. metadata-evalN/A

                                                                                      \[\leadsto \left(-1 \cdot \left(y + \color{blue}{-1}\right)\right) \cdot z \]
                                                                                    12. +-commutativeN/A

                                                                                      \[\leadsto \left(-1 \cdot \color{blue}{\left(-1 + y\right)}\right) \cdot z \]
                                                                                    13. distribute-lft-inN/A

                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot -1 + -1 \cdot y\right)} \cdot z \]
                                                                                    14. metadata-evalN/A

                                                                                      \[\leadsto \left(\color{blue}{1} + -1 \cdot y\right) \cdot z \]
                                                                                    15. neg-mul-1N/A

                                                                                      \[\leadsto \left(1 + \color{blue}{\left(\mathsf{neg}\left(y\right)\right)}\right) \cdot z \]
                                                                                    16. sub-negN/A

                                                                                      \[\leadsto \color{blue}{\left(1 - y\right)} \cdot z \]
                                                                                    17. lower--.f6470.9

                                                                                      \[\leadsto \color{blue}{\left(1 - y\right)} \cdot z \]
                                                                                  5. Applied rewrites70.9%

                                                                                    \[\leadsto \color{blue}{\left(1 - y\right) \cdot z} \]

                                                                                  if -3.39999999999999983e150 < z < 6.99999999999999972e87

                                                                                  1. Initial program 96.0%

                                                                                    \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                                                                  2. Add Preprocessing
                                                                                  3. Taylor expanded in t around 0

                                                                                    \[\leadsto \color{blue}{\left(x + b \cdot \left(y - 2\right)\right) - \left(-1 \cdot a + z \cdot \left(y - 1\right)\right)} \]
                                                                                  4. Step-by-step derivation
                                                                                    1. sub-negN/A

                                                                                      \[\leadsto \color{blue}{\left(x + b \cdot \left(y - 2\right)\right) + \left(\mathsf{neg}\left(\left(-1 \cdot a + z \cdot \left(y - 1\right)\right)\right)\right)} \]
                                                                                    2. +-commutativeN/A

                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(-1 \cdot a + z \cdot \left(y - 1\right)\right)\right)\right) + \left(x + b \cdot \left(y - 2\right)\right)} \]
                                                                                    3. +-commutativeN/A

                                                                                      \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(z \cdot \left(y - 1\right) + -1 \cdot a\right)}\right)\right) + \left(x + b \cdot \left(y - 2\right)\right) \]
                                                                                    4. distribute-neg-inN/A

                                                                                      \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(z \cdot \left(y - 1\right)\right)\right) + \left(\mathsf{neg}\left(-1 \cdot a\right)\right)\right)} + \left(x + b \cdot \left(y - 2\right)\right) \]
                                                                                    5. mul-1-negN/A

                                                                                      \[\leadsto \left(\left(\mathsf{neg}\left(z \cdot \left(y - 1\right)\right)\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)}\right)\right)\right) + \left(x + b \cdot \left(y - 2\right)\right) \]
                                                                                    6. remove-double-negN/A

                                                                                      \[\leadsto \left(\left(\mathsf{neg}\left(z \cdot \left(y - 1\right)\right)\right) + \color{blue}{a}\right) + \left(x + b \cdot \left(y - 2\right)\right) \]
                                                                                    7. associate-+l+N/A

                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z \cdot \left(y - 1\right)\right)\right) + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right)} \]
                                                                                    8. *-commutativeN/A

                                                                                      \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - 1\right) \cdot z}\right)\right) + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                    9. distribute-lft-neg-inN/A

                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(y - 1\right)\right)\right) \cdot z} + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                    10. mul-1-negN/A

                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                    11. lower-fma.f64N/A

                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(y - 1\right), z, a + \left(x + b \cdot \left(y - 2\right)\right)\right)} \]
                                                                                    12. sub-negN/A

                                                                                      \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(y + \left(\mathsf{neg}\left(1\right)\right)\right)}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                    13. metadata-evalN/A

                                                                                      \[\leadsto \mathsf{fma}\left(-1 \cdot \left(y + \color{blue}{-1}\right), z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                    14. +-commutativeN/A

                                                                                      \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(-1 + y\right)}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                    15. distribute-lft-inN/A

                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-1 \cdot -1 + -1 \cdot y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                    16. metadata-evalN/A

                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{1} + -1 \cdot y, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                    17. neg-mul-1N/A

                                                                                      \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\left(\mathsf{neg}\left(y\right)\right)}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                    18. sub-negN/A

                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{1 - y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                    19. lower--.f64N/A

                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{1 - y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                    20. lower-+.f64N/A

                                                                                      \[\leadsto \mathsf{fma}\left(1 - y, z, \color{blue}{a + \left(x + b \cdot \left(y - 2\right)\right)}\right) \]
                                                                                  5. Applied rewrites68.5%

                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(1 - y, z, a + \mathsf{fma}\left(y - 2, b, x\right)\right)} \]
                                                                                  6. Taylor expanded in z around 0

                                                                                    \[\leadsto a + \color{blue}{\left(x + b \cdot \left(y - 2\right)\right)} \]
                                                                                  7. Step-by-step derivation
                                                                                    1. Applied rewrites59.7%

                                                                                      \[\leadsto \mathsf{fma}\left(y - 2, \color{blue}{b}, a + x\right) \]
                                                                                    2. Taylor expanded in b around 0

                                                                                      \[\leadsto a + x \]
                                                                                    3. Step-by-step derivation
                                                                                      1. Applied rewrites35.9%

                                                                                        \[\leadsto a + x \]
                                                                                    4. Recombined 2 regimes into one program.
                                                                                    5. Add Preprocessing

                                                                                    Alternative 19: 32.6% accurate, 1.8× speedup?

                                                                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(-y\right) \cdot z\\ \mathbf{if}\;z \leq -6.4 \cdot 10^{+150}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 8.5 \cdot 10^{+87}:\\ \;\;\;\;a + x\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                    (FPCore (x y z t a b)
                                                                                     :precision binary64
                                                                                     (let* ((t_1 (* (- y) z)))
                                                                                       (if (<= z -6.4e+150) t_1 (if (<= z 8.5e+87) (+ a x) t_1))))
                                                                                    double code(double x, double y, double z, double t, double a, double b) {
                                                                                    	double t_1 = -y * z;
                                                                                    	double tmp;
                                                                                    	if (z <= -6.4e+150) {
                                                                                    		tmp = t_1;
                                                                                    	} else if (z <= 8.5e+87) {
                                                                                    		tmp = a + x;
                                                                                    	} else {
                                                                                    		tmp = t_1;
                                                                                    	}
                                                                                    	return tmp;
                                                                                    }
                                                                                    
                                                                                    real(8) function code(x, y, z, t, a, b)
                                                                                        real(8), intent (in) :: x
                                                                                        real(8), intent (in) :: y
                                                                                        real(8), intent (in) :: z
                                                                                        real(8), intent (in) :: t
                                                                                        real(8), intent (in) :: a
                                                                                        real(8), intent (in) :: b
                                                                                        real(8) :: t_1
                                                                                        real(8) :: tmp
                                                                                        t_1 = -y * z
                                                                                        if (z <= (-6.4d+150)) then
                                                                                            tmp = t_1
                                                                                        else if (z <= 8.5d+87) then
                                                                                            tmp = a + x
                                                                                        else
                                                                                            tmp = t_1
                                                                                        end if
                                                                                        code = tmp
                                                                                    end function
                                                                                    
                                                                                    public static double code(double x, double y, double z, double t, double a, double b) {
                                                                                    	double t_1 = -y * z;
                                                                                    	double tmp;
                                                                                    	if (z <= -6.4e+150) {
                                                                                    		tmp = t_1;
                                                                                    	} else if (z <= 8.5e+87) {
                                                                                    		tmp = a + x;
                                                                                    	} else {
                                                                                    		tmp = t_1;
                                                                                    	}
                                                                                    	return tmp;
                                                                                    }
                                                                                    
                                                                                    def code(x, y, z, t, a, b):
                                                                                    	t_1 = -y * z
                                                                                    	tmp = 0
                                                                                    	if z <= -6.4e+150:
                                                                                    		tmp = t_1
                                                                                    	elif z <= 8.5e+87:
                                                                                    		tmp = a + x
                                                                                    	else:
                                                                                    		tmp = t_1
                                                                                    	return tmp
                                                                                    
                                                                                    function code(x, y, z, t, a, b)
                                                                                    	t_1 = Float64(Float64(-y) * z)
                                                                                    	tmp = 0.0
                                                                                    	if (z <= -6.4e+150)
                                                                                    		tmp = t_1;
                                                                                    	elseif (z <= 8.5e+87)
                                                                                    		tmp = Float64(a + x);
                                                                                    	else
                                                                                    		tmp = t_1;
                                                                                    	end
                                                                                    	return tmp
                                                                                    end
                                                                                    
                                                                                    function tmp_2 = code(x, y, z, t, a, b)
                                                                                    	t_1 = -y * z;
                                                                                    	tmp = 0.0;
                                                                                    	if (z <= -6.4e+150)
                                                                                    		tmp = t_1;
                                                                                    	elseif (z <= 8.5e+87)
                                                                                    		tmp = a + x;
                                                                                    	else
                                                                                    		tmp = t_1;
                                                                                    	end
                                                                                    	tmp_2 = tmp;
                                                                                    end
                                                                                    
                                                                                    code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[((-y) * z), $MachinePrecision]}, If[LessEqual[z, -6.4e+150], t$95$1, If[LessEqual[z, 8.5e+87], N[(a + x), $MachinePrecision], t$95$1]]]
                                                                                    
                                                                                    \begin{array}{l}
                                                                                    
                                                                                    \\
                                                                                    \begin{array}{l}
                                                                                    t_1 := \left(-y\right) \cdot z\\
                                                                                    \mathbf{if}\;z \leq -6.4 \cdot 10^{+150}:\\
                                                                                    \;\;\;\;t\_1\\
                                                                                    
                                                                                    \mathbf{elif}\;z \leq 8.5 \cdot 10^{+87}:\\
                                                                                    \;\;\;\;a + x\\
                                                                                    
                                                                                    \mathbf{else}:\\
                                                                                    \;\;\;\;t\_1\\
                                                                                    
                                                                                    
                                                                                    \end{array}
                                                                                    \end{array}
                                                                                    
                                                                                    Derivation
                                                                                    1. Split input into 2 regimes
                                                                                    2. if z < -6.40000000000000031e150 or 8.5000000000000001e87 < z

                                                                                      1. Initial program 91.0%

                                                                                        \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                                                                      2. Add Preprocessing
                                                                                      3. Taylor expanded in z around inf

                                                                                        \[\leadsto \color{blue}{z \cdot \left(1 - y\right)} \]
                                                                                      4. Step-by-step derivation
                                                                                        1. *-commutativeN/A

                                                                                          \[\leadsto \color{blue}{\left(1 - y\right) \cdot z} \]
                                                                                        2. sub-negN/A

                                                                                          \[\leadsto \color{blue}{\left(1 + \left(\mathsf{neg}\left(y\right)\right)\right)} \cdot z \]
                                                                                        3. metadata-evalN/A

                                                                                          \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} + \left(\mathsf{neg}\left(y\right)\right)\right) \cdot z \]
                                                                                        4. distribute-neg-inN/A

                                                                                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(-1 + y\right)\right)\right)} \cdot z \]
                                                                                        5. +-commutativeN/A

                                                                                          \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y + -1\right)}\right)\right) \cdot z \]
                                                                                        6. metadata-evalN/A

                                                                                          \[\leadsto \left(\mathsf{neg}\left(\left(y + \color{blue}{\left(\mathsf{neg}\left(1\right)\right)}\right)\right)\right) \cdot z \]
                                                                                        7. sub-negN/A

                                                                                          \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - 1\right)}\right)\right) \cdot z \]
                                                                                        8. mul-1-negN/A

                                                                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z \]
                                                                                        9. lower-*.f64N/A

                                                                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right) \cdot z} \]
                                                                                        10. sub-negN/A

                                                                                          \[\leadsto \left(-1 \cdot \color{blue}{\left(y + \left(\mathsf{neg}\left(1\right)\right)\right)}\right) \cdot z \]
                                                                                        11. metadata-evalN/A

                                                                                          \[\leadsto \left(-1 \cdot \left(y + \color{blue}{-1}\right)\right) \cdot z \]
                                                                                        12. +-commutativeN/A

                                                                                          \[\leadsto \left(-1 \cdot \color{blue}{\left(-1 + y\right)}\right) \cdot z \]
                                                                                        13. distribute-lft-inN/A

                                                                                          \[\leadsto \color{blue}{\left(-1 \cdot -1 + -1 \cdot y\right)} \cdot z \]
                                                                                        14. metadata-evalN/A

                                                                                          \[\leadsto \left(\color{blue}{1} + -1 \cdot y\right) \cdot z \]
                                                                                        15. neg-mul-1N/A

                                                                                          \[\leadsto \left(1 + \color{blue}{\left(\mathsf{neg}\left(y\right)\right)}\right) \cdot z \]
                                                                                        16. sub-negN/A

                                                                                          \[\leadsto \color{blue}{\left(1 - y\right)} \cdot z \]
                                                                                        17. lower--.f6470.9

                                                                                          \[\leadsto \color{blue}{\left(1 - y\right)} \cdot z \]
                                                                                      5. Applied rewrites70.9%

                                                                                        \[\leadsto \color{blue}{\left(1 - y\right) \cdot z} \]
                                                                                      6. Taylor expanded in y around inf

                                                                                        \[\leadsto \left(-1 \cdot y\right) \cdot z \]
                                                                                      7. Step-by-step derivation
                                                                                        1. Applied rewrites47.4%

                                                                                          \[\leadsto \left(-y\right) \cdot z \]

                                                                                        if -6.40000000000000031e150 < z < 8.5000000000000001e87

                                                                                        1. Initial program 96.0%

                                                                                          \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                                                                        2. Add Preprocessing
                                                                                        3. Taylor expanded in t around 0

                                                                                          \[\leadsto \color{blue}{\left(x + b \cdot \left(y - 2\right)\right) - \left(-1 \cdot a + z \cdot \left(y - 1\right)\right)} \]
                                                                                        4. Step-by-step derivation
                                                                                          1. sub-negN/A

                                                                                            \[\leadsto \color{blue}{\left(x + b \cdot \left(y - 2\right)\right) + \left(\mathsf{neg}\left(\left(-1 \cdot a + z \cdot \left(y - 1\right)\right)\right)\right)} \]
                                                                                          2. +-commutativeN/A

                                                                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(-1 \cdot a + z \cdot \left(y - 1\right)\right)\right)\right) + \left(x + b \cdot \left(y - 2\right)\right)} \]
                                                                                          3. +-commutativeN/A

                                                                                            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(z \cdot \left(y - 1\right) + -1 \cdot a\right)}\right)\right) + \left(x + b \cdot \left(y - 2\right)\right) \]
                                                                                          4. distribute-neg-inN/A

                                                                                            \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(z \cdot \left(y - 1\right)\right)\right) + \left(\mathsf{neg}\left(-1 \cdot a\right)\right)\right)} + \left(x + b \cdot \left(y - 2\right)\right) \]
                                                                                          5. mul-1-negN/A

                                                                                            \[\leadsto \left(\left(\mathsf{neg}\left(z \cdot \left(y - 1\right)\right)\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)}\right)\right)\right) + \left(x + b \cdot \left(y - 2\right)\right) \]
                                                                                          6. remove-double-negN/A

                                                                                            \[\leadsto \left(\left(\mathsf{neg}\left(z \cdot \left(y - 1\right)\right)\right) + \color{blue}{a}\right) + \left(x + b \cdot \left(y - 2\right)\right) \]
                                                                                          7. associate-+l+N/A

                                                                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z \cdot \left(y - 1\right)\right)\right) + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right)} \]
                                                                                          8. *-commutativeN/A

                                                                                            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - 1\right) \cdot z}\right)\right) + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                          9. distribute-lft-neg-inN/A

                                                                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(y - 1\right)\right)\right) \cdot z} + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                          10. mul-1-negN/A

                                                                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                          11. lower-fma.f64N/A

                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(y - 1\right), z, a + \left(x + b \cdot \left(y - 2\right)\right)\right)} \]
                                                                                          12. sub-negN/A

                                                                                            \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(y + \left(\mathsf{neg}\left(1\right)\right)\right)}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                          13. metadata-evalN/A

                                                                                            \[\leadsto \mathsf{fma}\left(-1 \cdot \left(y + \color{blue}{-1}\right), z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                          14. +-commutativeN/A

                                                                                            \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(-1 + y\right)}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                          15. distribute-lft-inN/A

                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{-1 \cdot -1 + -1 \cdot y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                          16. metadata-evalN/A

                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{1} + -1 \cdot y, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                          17. neg-mul-1N/A

                                                                                            \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\left(\mathsf{neg}\left(y\right)\right)}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                          18. sub-negN/A

                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{1 - y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                          19. lower--.f64N/A

                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{1 - y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                          20. lower-+.f64N/A

                                                                                            \[\leadsto \mathsf{fma}\left(1 - y, z, \color{blue}{a + \left(x + b \cdot \left(y - 2\right)\right)}\right) \]
                                                                                        5. Applied rewrites68.5%

                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(1 - y, z, a + \mathsf{fma}\left(y - 2, b, x\right)\right)} \]
                                                                                        6. Taylor expanded in z around 0

                                                                                          \[\leadsto a + \color{blue}{\left(x + b \cdot \left(y - 2\right)\right)} \]
                                                                                        7. Step-by-step derivation
                                                                                          1. Applied rewrites59.7%

                                                                                            \[\leadsto \mathsf{fma}\left(y - 2, \color{blue}{b}, a + x\right) \]
                                                                                          2. Taylor expanded in b around 0

                                                                                            \[\leadsto a + x \]
                                                                                          3. Step-by-step derivation
                                                                                            1. Applied rewrites35.9%

                                                                                              \[\leadsto a + x \]
                                                                                          4. Recombined 2 regimes into one program.
                                                                                          5. Add Preprocessing

                                                                                          Alternative 20: 33.1% accurate, 2.1× speedup?

                                                                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -2.2 \cdot 10^{+48}:\\ \;\;\;\;b \cdot t\\ \mathbf{elif}\;b \leq 1.28 \cdot 10^{+101}:\\ \;\;\;\;a + x\\ \mathbf{else}:\\ \;\;\;\;b \cdot y\\ \end{array} \end{array} \]
                                                                                          (FPCore (x y z t a b)
                                                                                           :precision binary64
                                                                                           (if (<= b -2.2e+48) (* b t) (if (<= b 1.28e+101) (+ a x) (* b y))))
                                                                                          double code(double x, double y, double z, double t, double a, double b) {
                                                                                          	double tmp;
                                                                                          	if (b <= -2.2e+48) {
                                                                                          		tmp = b * t;
                                                                                          	} else if (b <= 1.28e+101) {
                                                                                          		tmp = a + x;
                                                                                          	} else {
                                                                                          		tmp = b * y;
                                                                                          	}
                                                                                          	return tmp;
                                                                                          }
                                                                                          
                                                                                          real(8) function code(x, y, z, t, a, b)
                                                                                              real(8), intent (in) :: x
                                                                                              real(8), intent (in) :: y
                                                                                              real(8), intent (in) :: z
                                                                                              real(8), intent (in) :: t
                                                                                              real(8), intent (in) :: a
                                                                                              real(8), intent (in) :: b
                                                                                              real(8) :: tmp
                                                                                              if (b <= (-2.2d+48)) then
                                                                                                  tmp = b * t
                                                                                              else if (b <= 1.28d+101) then
                                                                                                  tmp = a + x
                                                                                              else
                                                                                                  tmp = b * y
                                                                                              end if
                                                                                              code = tmp
                                                                                          end function
                                                                                          
                                                                                          public static double code(double x, double y, double z, double t, double a, double b) {
                                                                                          	double tmp;
                                                                                          	if (b <= -2.2e+48) {
                                                                                          		tmp = b * t;
                                                                                          	} else if (b <= 1.28e+101) {
                                                                                          		tmp = a + x;
                                                                                          	} else {
                                                                                          		tmp = b * y;
                                                                                          	}
                                                                                          	return tmp;
                                                                                          }
                                                                                          
                                                                                          def code(x, y, z, t, a, b):
                                                                                          	tmp = 0
                                                                                          	if b <= -2.2e+48:
                                                                                          		tmp = b * t
                                                                                          	elif b <= 1.28e+101:
                                                                                          		tmp = a + x
                                                                                          	else:
                                                                                          		tmp = b * y
                                                                                          	return tmp
                                                                                          
                                                                                          function code(x, y, z, t, a, b)
                                                                                          	tmp = 0.0
                                                                                          	if (b <= -2.2e+48)
                                                                                          		tmp = Float64(b * t);
                                                                                          	elseif (b <= 1.28e+101)
                                                                                          		tmp = Float64(a + x);
                                                                                          	else
                                                                                          		tmp = Float64(b * y);
                                                                                          	end
                                                                                          	return tmp
                                                                                          end
                                                                                          
                                                                                          function tmp_2 = code(x, y, z, t, a, b)
                                                                                          	tmp = 0.0;
                                                                                          	if (b <= -2.2e+48)
                                                                                          		tmp = b * t;
                                                                                          	elseif (b <= 1.28e+101)
                                                                                          		tmp = a + x;
                                                                                          	else
                                                                                          		tmp = b * y;
                                                                                          	end
                                                                                          	tmp_2 = tmp;
                                                                                          end
                                                                                          
                                                                                          code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.2e+48], N[(b * t), $MachinePrecision], If[LessEqual[b, 1.28e+101], N[(a + x), $MachinePrecision], N[(b * y), $MachinePrecision]]]
                                                                                          
                                                                                          \begin{array}{l}
                                                                                          
                                                                                          \\
                                                                                          \begin{array}{l}
                                                                                          \mathbf{if}\;b \leq -2.2 \cdot 10^{+48}:\\
                                                                                          \;\;\;\;b \cdot t\\
                                                                                          
                                                                                          \mathbf{elif}\;b \leq 1.28 \cdot 10^{+101}:\\
                                                                                          \;\;\;\;a + x\\
                                                                                          
                                                                                          \mathbf{else}:\\
                                                                                          \;\;\;\;b \cdot y\\
                                                                                          
                                                                                          
                                                                                          \end{array}
                                                                                          \end{array}
                                                                                          
                                                                                          Derivation
                                                                                          1. Split input into 3 regimes
                                                                                          2. if b < -2.1999999999999999e48

                                                                                            1. Initial program 89.4%

                                                                                              \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                                                                            2. Add Preprocessing
                                                                                            3. Taylor expanded in b around inf

                                                                                              \[\leadsto \color{blue}{b \cdot \left(\left(t + y\right) - 2\right)} \]
                                                                                            4. Step-by-step derivation
                                                                                              1. *-commutativeN/A

                                                                                                \[\leadsto \color{blue}{\left(\left(t + y\right) - 2\right) \cdot b} \]
                                                                                              2. lower-*.f64N/A

                                                                                                \[\leadsto \color{blue}{\left(\left(t + y\right) - 2\right) \cdot b} \]
                                                                                              3. lower--.f64N/A

                                                                                                \[\leadsto \color{blue}{\left(\left(t + y\right) - 2\right)} \cdot b \]
                                                                                              4. +-commutativeN/A

                                                                                                \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                                                                                              5. lower-+.f6470.5

                                                                                                \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                                                                                            5. Applied rewrites70.5%

                                                                                              \[\leadsto \color{blue}{\left(\left(y + t\right) - 2\right) \cdot b} \]
                                                                                            6. Taylor expanded in t around inf

                                                                                              \[\leadsto b \cdot \color{blue}{t} \]
                                                                                            7. Step-by-step derivation
                                                                                              1. Applied rewrites34.9%

                                                                                                \[\leadsto b \cdot \color{blue}{t} \]

                                                                                              if -2.1999999999999999e48 < b < 1.28e101

                                                                                              1. Initial program 99.4%

                                                                                                \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                                                                              2. Add Preprocessing
                                                                                              3. Taylor expanded in t around 0

                                                                                                \[\leadsto \color{blue}{\left(x + b \cdot \left(y - 2\right)\right) - \left(-1 \cdot a + z \cdot \left(y - 1\right)\right)} \]
                                                                                              4. Step-by-step derivation
                                                                                                1. sub-negN/A

                                                                                                  \[\leadsto \color{blue}{\left(x + b \cdot \left(y - 2\right)\right) + \left(\mathsf{neg}\left(\left(-1 \cdot a + z \cdot \left(y - 1\right)\right)\right)\right)} \]
                                                                                                2. +-commutativeN/A

                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(-1 \cdot a + z \cdot \left(y - 1\right)\right)\right)\right) + \left(x + b \cdot \left(y - 2\right)\right)} \]
                                                                                                3. +-commutativeN/A

                                                                                                  \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(z \cdot \left(y - 1\right) + -1 \cdot a\right)}\right)\right) + \left(x + b \cdot \left(y - 2\right)\right) \]
                                                                                                4. distribute-neg-inN/A

                                                                                                  \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(z \cdot \left(y - 1\right)\right)\right) + \left(\mathsf{neg}\left(-1 \cdot a\right)\right)\right)} + \left(x + b \cdot \left(y - 2\right)\right) \]
                                                                                                5. mul-1-negN/A

                                                                                                  \[\leadsto \left(\left(\mathsf{neg}\left(z \cdot \left(y - 1\right)\right)\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)}\right)\right)\right) + \left(x + b \cdot \left(y - 2\right)\right) \]
                                                                                                6. remove-double-negN/A

                                                                                                  \[\leadsto \left(\left(\mathsf{neg}\left(z \cdot \left(y - 1\right)\right)\right) + \color{blue}{a}\right) + \left(x + b \cdot \left(y - 2\right)\right) \]
                                                                                                7. associate-+l+N/A

                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z \cdot \left(y - 1\right)\right)\right) + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right)} \]
                                                                                                8. *-commutativeN/A

                                                                                                  \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - 1\right) \cdot z}\right)\right) + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                9. distribute-lft-neg-inN/A

                                                                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(y - 1\right)\right)\right) \cdot z} + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                10. mul-1-negN/A

                                                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                11. lower-fma.f64N/A

                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(y - 1\right), z, a + \left(x + b \cdot \left(y - 2\right)\right)\right)} \]
                                                                                                12. sub-negN/A

                                                                                                  \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(y + \left(\mathsf{neg}\left(1\right)\right)\right)}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                13. metadata-evalN/A

                                                                                                  \[\leadsto \mathsf{fma}\left(-1 \cdot \left(y + \color{blue}{-1}\right), z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                14. +-commutativeN/A

                                                                                                  \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(-1 + y\right)}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                15. distribute-lft-inN/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{-1 \cdot -1 + -1 \cdot y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                16. metadata-evalN/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{1} + -1 \cdot y, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                17. neg-mul-1N/A

                                                                                                  \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\left(\mathsf{neg}\left(y\right)\right)}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                18. sub-negN/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{1 - y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                19. lower--.f64N/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{1 - y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                20. lower-+.f64N/A

                                                                                                  \[\leadsto \mathsf{fma}\left(1 - y, z, \color{blue}{a + \left(x + b \cdot \left(y - 2\right)\right)}\right) \]
                                                                                              5. Applied rewrites77.1%

                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(1 - y, z, a + \mathsf{fma}\left(y - 2, b, x\right)\right)} \]
                                                                                              6. Taylor expanded in z around 0

                                                                                                \[\leadsto a + \color{blue}{\left(x + b \cdot \left(y - 2\right)\right)} \]
                                                                                              7. Step-by-step derivation
                                                                                                1. Applied rewrites41.7%

                                                                                                  \[\leadsto \mathsf{fma}\left(y - 2, \color{blue}{b}, a + x\right) \]
                                                                                                2. Taylor expanded in b around 0

                                                                                                  \[\leadsto a + x \]
                                                                                                3. Step-by-step derivation
                                                                                                  1. Applied rewrites35.5%

                                                                                                    \[\leadsto a + x \]

                                                                                                  if 1.28e101 < b

                                                                                                  1. Initial program 79.1%

                                                                                                    \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                                                                                  2. Add Preprocessing
                                                                                                  3. Taylor expanded in b around inf

                                                                                                    \[\leadsto \color{blue}{b \cdot \left(\left(t + y\right) - 2\right)} \]
                                                                                                  4. Step-by-step derivation
                                                                                                    1. *-commutativeN/A

                                                                                                      \[\leadsto \color{blue}{\left(\left(t + y\right) - 2\right) \cdot b} \]
                                                                                                    2. lower-*.f64N/A

                                                                                                      \[\leadsto \color{blue}{\left(\left(t + y\right) - 2\right) \cdot b} \]
                                                                                                    3. lower--.f64N/A

                                                                                                      \[\leadsto \color{blue}{\left(\left(t + y\right) - 2\right)} \cdot b \]
                                                                                                    4. +-commutativeN/A

                                                                                                      \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                                                                                                    5. lower-+.f6483.0

                                                                                                      \[\leadsto \left(\color{blue}{\left(y + t\right)} - 2\right) \cdot b \]
                                                                                                  5. Applied rewrites83.0%

                                                                                                    \[\leadsto \color{blue}{\left(\left(y + t\right) - 2\right) \cdot b} \]
                                                                                                  6. Taylor expanded in y around inf

                                                                                                    \[\leadsto b \cdot \color{blue}{y} \]
                                                                                                  7. Step-by-step derivation
                                                                                                    1. Applied rewrites54.0%

                                                                                                      \[\leadsto b \cdot \color{blue}{y} \]
                                                                                                  8. Recombined 3 regimes into one program.
                                                                                                  9. Add Preprocessing

                                                                                                  Alternative 21: 24.9% accurate, 9.3× speedup?

                                                                                                  \[\begin{array}{l} \\ a + x \end{array} \]
                                                                                                  (FPCore (x y z t a b) :precision binary64 (+ a x))
                                                                                                  double code(double x, double y, double z, double t, double a, double b) {
                                                                                                  	return a + x;
                                                                                                  }
                                                                                                  
                                                                                                  real(8) function code(x, y, z, t, a, b)
                                                                                                      real(8), intent (in) :: x
                                                                                                      real(8), intent (in) :: y
                                                                                                      real(8), intent (in) :: z
                                                                                                      real(8), intent (in) :: t
                                                                                                      real(8), intent (in) :: a
                                                                                                      real(8), intent (in) :: b
                                                                                                      code = a + x
                                                                                                  end function
                                                                                                  
                                                                                                  public static double code(double x, double y, double z, double t, double a, double b) {
                                                                                                  	return a + x;
                                                                                                  }
                                                                                                  
                                                                                                  def code(x, y, z, t, a, b):
                                                                                                  	return a + x
                                                                                                  
                                                                                                  function code(x, y, z, t, a, b)
                                                                                                  	return Float64(a + x)
                                                                                                  end
                                                                                                  
                                                                                                  function tmp = code(x, y, z, t, a, b)
                                                                                                  	tmp = a + x;
                                                                                                  end
                                                                                                  
                                                                                                  code[x_, y_, z_, t_, a_, b_] := N[(a + x), $MachinePrecision]
                                                                                                  
                                                                                                  \begin{array}{l}
                                                                                                  
                                                                                                  \\
                                                                                                  a + x
                                                                                                  \end{array}
                                                                                                  
                                                                                                  Derivation
                                                                                                  1. Initial program 94.5%

                                                                                                    \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                                                                                                  2. Add Preprocessing
                                                                                                  3. Taylor expanded in t around 0

                                                                                                    \[\leadsto \color{blue}{\left(x + b \cdot \left(y - 2\right)\right) - \left(-1 \cdot a + z \cdot \left(y - 1\right)\right)} \]
                                                                                                  4. Step-by-step derivation
                                                                                                    1. sub-negN/A

                                                                                                      \[\leadsto \color{blue}{\left(x + b \cdot \left(y - 2\right)\right) + \left(\mathsf{neg}\left(\left(-1 \cdot a + z \cdot \left(y - 1\right)\right)\right)\right)} \]
                                                                                                    2. +-commutativeN/A

                                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(-1 \cdot a + z \cdot \left(y - 1\right)\right)\right)\right) + \left(x + b \cdot \left(y - 2\right)\right)} \]
                                                                                                    3. +-commutativeN/A

                                                                                                      \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(z \cdot \left(y - 1\right) + -1 \cdot a\right)}\right)\right) + \left(x + b \cdot \left(y - 2\right)\right) \]
                                                                                                    4. distribute-neg-inN/A

                                                                                                      \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(z \cdot \left(y - 1\right)\right)\right) + \left(\mathsf{neg}\left(-1 \cdot a\right)\right)\right)} + \left(x + b \cdot \left(y - 2\right)\right) \]
                                                                                                    5. mul-1-negN/A

                                                                                                      \[\leadsto \left(\left(\mathsf{neg}\left(z \cdot \left(y - 1\right)\right)\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)}\right)\right)\right) + \left(x + b \cdot \left(y - 2\right)\right) \]
                                                                                                    6. remove-double-negN/A

                                                                                                      \[\leadsto \left(\left(\mathsf{neg}\left(z \cdot \left(y - 1\right)\right)\right) + \color{blue}{a}\right) + \left(x + b \cdot \left(y - 2\right)\right) \]
                                                                                                    7. associate-+l+N/A

                                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(z \cdot \left(y - 1\right)\right)\right) + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right)} \]
                                                                                                    8. *-commutativeN/A

                                                                                                      \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - 1\right) \cdot z}\right)\right) + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                    9. distribute-lft-neg-inN/A

                                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(y - 1\right)\right)\right) \cdot z} + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                    10. mul-1-negN/A

                                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(y - 1\right)\right)} \cdot z + \left(a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                    11. lower-fma.f64N/A

                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(y - 1\right), z, a + \left(x + b \cdot \left(y - 2\right)\right)\right)} \]
                                                                                                    12. sub-negN/A

                                                                                                      \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(y + \left(\mathsf{neg}\left(1\right)\right)\right)}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                    13. metadata-evalN/A

                                                                                                      \[\leadsto \mathsf{fma}\left(-1 \cdot \left(y + \color{blue}{-1}\right), z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                    14. +-commutativeN/A

                                                                                                      \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(-1 + y\right)}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                    15. distribute-lft-inN/A

                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-1 \cdot -1 + -1 \cdot y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                    16. metadata-evalN/A

                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{1} + -1 \cdot y, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                    17. neg-mul-1N/A

                                                                                                      \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\left(\mathsf{neg}\left(y\right)\right)}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                    18. sub-negN/A

                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{1 - y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                    19. lower--.f64N/A

                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{1 - y}, z, a + \left(x + b \cdot \left(y - 2\right)\right)\right) \]
                                                                                                    20. lower-+.f64N/A

                                                                                                      \[\leadsto \mathsf{fma}\left(1 - y, z, \color{blue}{a + \left(x + b \cdot \left(y - 2\right)\right)}\right) \]
                                                                                                  5. Applied rewrites72.6%

                                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(1 - y, z, a + \mathsf{fma}\left(y - 2, b, x\right)\right)} \]
                                                                                                  6. Taylor expanded in z around 0

                                                                                                    \[\leadsto a + \color{blue}{\left(x + b \cdot \left(y - 2\right)\right)} \]
                                                                                                  7. Step-by-step derivation
                                                                                                    1. Applied rewrites47.4%

                                                                                                      \[\leadsto \mathsf{fma}\left(y - 2, \color{blue}{b}, a + x\right) \]
                                                                                                    2. Taylor expanded in b around 0

                                                                                                      \[\leadsto a + x \]
                                                                                                    3. Step-by-step derivation
                                                                                                      1. Applied rewrites27.7%

                                                                                                        \[\leadsto a + x \]
                                                                                                      2. Add Preprocessing

                                                                                                      Reproduce

                                                                                                      ?
                                                                                                      herbie shell --seed 2024276 
                                                                                                      (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)))