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

Percentage Accurate: 95.2% → 97.8%
Time: 11.0s
Alternatives: 15
Speedup: 0.5×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 15 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.2% accurate, 1.0× speedup?

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

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

Alternative 1: 97.8% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(\left(t + y\right) - 2\right) + \left(\left(x - z \cdot \left(y - 1\right)\right) - a \cdot \left(t - 1\right)\right)\\ \mathbf{if}\;t\_1 \leq \infty:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-y, z, \left(1 - t\right) \cdot a\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1
         (+ (* b (- (+ t y) 2.0)) (- (- x (* z (- y 1.0))) (* a (- t 1.0))))))
   (if (<= t_1 INFINITY) t_1 (fma (- y) z (* (- 1.0 t) a)))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (b * ((t + y) - 2.0)) + ((x - (z * (y - 1.0))) - (a * (t - 1.0)));
	double tmp;
	if (t_1 <= ((double) INFINITY)) {
		tmp = t_1;
	} else {
		tmp = fma(-y, z, ((1.0 - t) * a));
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(b * Float64(Float64(t + y) - 2.0)) + Float64(Float64(x - Float64(z * Float64(y - 1.0))) - Float64(a * Float64(t - 1.0))))
	tmp = 0.0
	if (t_1 <= Inf)
		tmp = t_1;
	else
		tmp = fma(Float64(-y), z, Float64(Float64(1.0 - t) * a));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b * N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision]), $MachinePrecision] + N[(N[(x - N[(z * N[(y - 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(t - 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[((-y) * z + N[(N[(1.0 - t), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

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

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


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

    1. Initial program 100.0%

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

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

    1. Initial program 0.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(1 - y, z, \color{blue}{\left(-1 \cdot \left(t - 1\right)\right)} \cdot a + x\right) \]
    5. Applied rewrites78.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 inf

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

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

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

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

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

      Alternative 2: 83.8% accurate, 1.1× speedup?

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

        1. Initial program 90.4%

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

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

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

        if -2.5500000000000001e110 < y < 8.9999999999999997e45

        1. Initial program 97.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 3: 85.4% accurate, 1.1× speedup?

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

        1. Initial program 90.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -3.50000000000000007e120 < b < 1.09999999999999998e60

          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 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if 1.09999999999999998e60 < b

          1. Initial program 87.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        Alternative 4: 61.2% accurate, 1.2× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - z\right) \cdot y\\ \mathbf{if}\;y \leq -3 \cdot 10^{+99}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -2.6 \cdot 10^{-93}:\\ \;\;\;\;\mathsf{fma}\left(1 - t, a, x\right)\\ \mathbf{elif}\;y \leq 4.3 \cdot 10^{+45}:\\ \;\;\;\;\mathsf{fma}\left(-2, b, z + x\right) + a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
        (FPCore (x y z t a b)
         :precision binary64
         (let* ((t_1 (* (- b z) y)))
           (if (<= y -3e+99)
             t_1
             (if (<= y -2.6e-93)
               (fma (- 1.0 t) a x)
               (if (<= y 4.3e+45) (+ (fma -2.0 b (+ z x)) a) 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 <= -3e+99) {
        		tmp = t_1;
        	} else if (y <= -2.6e-93) {
        		tmp = fma((1.0 - t), a, x);
        	} else if (y <= 4.3e+45) {
        		tmp = fma(-2.0, b, (z + x)) + a;
        	} 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 <= -3e+99)
        		tmp = t_1;
        	elseif (y <= -2.6e-93)
        		tmp = fma(Float64(1.0 - t), a, x);
        	elseif (y <= 4.3e+45)
        		tmp = Float64(fma(-2.0, b, Float64(z + x)) + a);
        	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, -3e+99], t$95$1, If[LessEqual[y, -2.6e-93], N[(N[(1.0 - t), $MachinePrecision] * a + x), $MachinePrecision], If[LessEqual[y, 4.3e+45], N[(N[(-2.0 * b + N[(z + x), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision], t$95$1]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := \left(b - z\right) \cdot y\\
        \mathbf{if}\;y \leq -3 \cdot 10^{+99}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;y \leq -2.6 \cdot 10^{-93}:\\
        \;\;\;\;\mathsf{fma}\left(1 - t, a, x\right)\\
        
        \mathbf{elif}\;y \leq 4.3 \cdot 10^{+45}:\\
        \;\;\;\;\mathsf{fma}\left(-2, b, z + x\right) + a\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if y < -3.00000000000000014e99 or 4.3000000000000003e45 < y

          1. Initial program 90.5%

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

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

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

          if -3.00000000000000014e99 < y < -2.5999999999999998e-93

          1. Initial program 97.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -2.5999999999999998e-93 < y < 4.3000000000000003e45

            1. Initial program 97.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            Alternative 5: 83.6% accurate, 1.2× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right)\\ \mathbf{if}\;b \leq -3.5 \cdot 10^{+120}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 1.5 \cdot 10^{+62}:\\ \;\;\;\;\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 (- (+ t y) 2.0) b x)))
               (if (<= b -3.5e+120)
                 t_1
                 (if (<= b 1.5e+62) (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(((t + y) - 2.0), b, x);
            	double tmp;
            	if (b <= -3.5e+120) {
            		tmp = t_1;
            	} else if (b <= 1.5e+62) {
            		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(t + y) - 2.0), b, x)
            	tmp = 0.0
            	if (b <= -3.5e+120)
            		tmp = t_1;
            	elseif (b <= 1.5e+62)
            		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[(t + y), $MachinePrecision] - 2.0), $MachinePrecision] * b + x), $MachinePrecision]}, If[LessEqual[b, -3.5e+120], t$95$1, If[LessEqual[b, 1.5e+62], 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(t + y\right) - 2, b, x\right)\\
            \mathbf{if}\;b \leq -3.5 \cdot 10^{+120}:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;b \leq 1.5 \cdot 10^{+62}:\\
            \;\;\;\;\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 < -3.50000000000000007e120 or 1.5e62 < b

              1. Initial program 88.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                if -3.50000000000000007e120 < b < 1.5e62

                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 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              Alternative 6: 54.9% accurate, 1.4× speedup?

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

                1. Initial program 90.4%

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

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

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

                if -3.4999999999999997e107 < y < -3e11

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

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

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

                if -3e11 < y < 4.3000000000000003e45

                1. Initial program 96.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  Alternative 7: 43.6% accurate, 1.4× speedup?

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

                    1. Initial program 89.9%

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

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

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

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

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

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

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

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

                      if -1.45e22 < t < 122

                      1. Initial program 97.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          if 122 < t < 1.9999999999999998e181

                          1. Initial program 95.7%

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

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

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

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

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

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

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

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

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

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

                        Alternative 8: 42.5% accurate, 1.4× speedup?

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

                          1. Initial program 89.9%

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

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

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

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

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

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

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

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

                            if -1.45e22 < t < 210

                            1. Initial program 97.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                if 210 < t < 1.9999999999999998e181

                                1. Initial program 95.7%

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

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

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

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

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

                                Alternative 9: 44.1% accurate, 1.4× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(-a\right) \cdot t\\ \mathbf{if}\;t \leq -1.45 \cdot 10^{+22}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 8.2 \cdot 10^{+24}:\\ \;\;\;\;\left(z + x\right) + a\\ \mathbf{elif}\;t \leq 7.6 \cdot 10^{+174}:\\ \;\;\;\;b \cdot t\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                (FPCore (x y z t a b)
                                 :precision binary64
                                 (let* ((t_1 (* (- a) t)))
                                   (if (<= t -1.45e+22)
                                     t_1
                                     (if (<= t 8.2e+24) (+ (+ z x) a) (if (<= t 7.6e+174) (* b t) t_1)))))
                                double code(double x, double y, double z, double t, double a, double b) {
                                	double t_1 = -a * t;
                                	double tmp;
                                	if (t <= -1.45e+22) {
                                		tmp = t_1;
                                	} else if (t <= 8.2e+24) {
                                		tmp = (z + x) + a;
                                	} else if (t <= 7.6e+174) {
                                		tmp = b * 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 = -a * t
                                    if (t <= (-1.45d+22)) then
                                        tmp = t_1
                                    else if (t <= 8.2d+24) then
                                        tmp = (z + x) + a
                                    else if (t <= 7.6d+174) then
                                        tmp = b * 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 = -a * t;
                                	double tmp;
                                	if (t <= -1.45e+22) {
                                		tmp = t_1;
                                	} else if (t <= 8.2e+24) {
                                		tmp = (z + x) + a;
                                	} else if (t <= 7.6e+174) {
                                		tmp = b * t;
                                	} else {
                                		tmp = t_1;
                                	}
                                	return tmp;
                                }
                                
                                def code(x, y, z, t, a, b):
                                	t_1 = -a * t
                                	tmp = 0
                                	if t <= -1.45e+22:
                                		tmp = t_1
                                	elif t <= 8.2e+24:
                                		tmp = (z + x) + a
                                	elif t <= 7.6e+174:
                                		tmp = b * t
                                	else:
                                		tmp = t_1
                                	return tmp
                                
                                function code(x, y, z, t, a, b)
                                	t_1 = Float64(Float64(-a) * t)
                                	tmp = 0.0
                                	if (t <= -1.45e+22)
                                		tmp = t_1;
                                	elseif (t <= 8.2e+24)
                                		tmp = Float64(Float64(z + x) + a);
                                	elseif (t <= 7.6e+174)
                                		tmp = Float64(b * t);
                                	else
                                		tmp = t_1;
                                	end
                                	return tmp
                                end
                                
                                function tmp_2 = code(x, y, z, t, a, b)
                                	t_1 = -a * t;
                                	tmp = 0.0;
                                	if (t <= -1.45e+22)
                                		tmp = t_1;
                                	elseif (t <= 8.2e+24)
                                		tmp = (z + x) + a;
                                	elseif (t <= 7.6e+174)
                                		tmp = b * t;
                                	else
                                		tmp = t_1;
                                	end
                                	tmp_2 = tmp;
                                end
                                
                                code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[((-a) * t), $MachinePrecision]}, If[LessEqual[t, -1.45e+22], t$95$1, If[LessEqual[t, 8.2e+24], N[(N[(z + x), $MachinePrecision] + a), $MachinePrecision], If[LessEqual[t, 7.6e+174], N[(b * t), $MachinePrecision], t$95$1]]]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                t_1 := \left(-a\right) \cdot t\\
                                \mathbf{if}\;t \leq -1.45 \cdot 10^{+22}:\\
                                \;\;\;\;t\_1\\
                                
                                \mathbf{elif}\;t \leq 8.2 \cdot 10^{+24}:\\
                                \;\;\;\;\left(z + x\right) + a\\
                                
                                \mathbf{elif}\;t \leq 7.6 \cdot 10^{+174}:\\
                                \;\;\;\;b \cdot t\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;t\_1\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 3 regimes
                                2. if t < -1.45e22 or 7.6000000000000004e174 < t

                                  1. Initial program 90.1%

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

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

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

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

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

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

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

                                    if -1.45e22 < t < 8.2000000000000002e24

                                    1. Initial program 97.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        if 8.2000000000000002e24 < t < 7.6000000000000004e174

                                        1. Initial program 95.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        Alternative 10: 67.5% accurate, 1.5× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - z\right) \cdot y\\ \mathbf{if}\;y \leq -3 \cdot 10^{+99}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 7.5 \cdot 10^{+45}:\\ \;\;\;\;\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 z) y)))
                                           (if (<= y -3e+99) t_1 (if (<= y 7.5e+45) (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 - z) * y;
                                        	double tmp;
                                        	if (y <= -3e+99) {
                                        		tmp = t_1;
                                        	} else if (y <= 7.5e+45) {
                                        		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(Float64(b - z) * y)
                                        	tmp = 0.0
                                        	if (y <= -3e+99)
                                        		tmp = t_1;
                                        	elseif (y <= 7.5e+45)
                                        		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[(N[(b - z), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -3e+99], t$95$1, If[LessEqual[y, 7.5e+45], N[(N[(1.0 - t), $MachinePrecision] * a + N[(z + x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        t_1 := \left(b - z\right) \cdot y\\
                                        \mathbf{if}\;y \leq -3 \cdot 10^{+99}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        \mathbf{elif}\;y \leq 7.5 \cdot 10^{+45}:\\
                                        \;\;\;\;\mathsf{fma}\left(1 - t, a, z + x\right)\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 2 regimes
                                        2. if y < -3.00000000000000014e99 or 7.50000000000000058e45 < y

                                          1. Initial program 90.5%

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

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

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

                                          if -3.00000000000000014e99 < y < 7.50000000000000058e45

                                          1. Initial program 97.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          Alternative 11: 58.3% accurate, 1.7× speedup?

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

                                            1. Initial program 90.5%

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

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

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

                                            if -3.00000000000000014e99 < y < 7.50000000000000058e45

                                            1. Initial program 97.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            Alternative 12: 57.7% accurate, 1.8× speedup?

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

                                              1. Initial program 91.6%

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

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

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

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

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

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

                                              if -1.3500000000000001e22 < t < 4.39999999999999973e28

                                              1. Initial program 97.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                Alternative 13: 42.7% accurate, 1.9× speedup?

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

                                                  1. Initial program 91.1%

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

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

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

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

                                                    if -5.1999999999999999e76 < y < 6.50000000000000034e45

                                                    1. Initial program 97.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                      Alternative 14: 27.6% accurate, 2.1× speedup?

                                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -2.9 \cdot 10^{+39}:\\ \;\;\;\;b \cdot y\\ \mathbf{elif}\;y \leq 6.2 \cdot 10^{+31}:\\ \;\;\;\;b \cdot t\\ \mathbf{else}:\\ \;\;\;\;b \cdot y\\ \end{array} \end{array} \]
                                                      (FPCore (x y z t a b)
                                                       :precision binary64
                                                       (if (<= y -2.9e+39) (* b y) (if (<= y 6.2e+31) (* b t) (* b y))))
                                                      double code(double x, double y, double z, double t, double a, double b) {
                                                      	double tmp;
                                                      	if (y <= -2.9e+39) {
                                                      		tmp = b * y;
                                                      	} else if (y <= 6.2e+31) {
                                                      		tmp = b * t;
                                                      	} else {
                                                      		tmp = b * y;
                                                      	}
                                                      	return tmp;
                                                      }
                                                      
                                                      real(8) function code(x, y, z, t, a, b)
                                                          real(8), intent (in) :: x
                                                          real(8), intent (in) :: y
                                                          real(8), intent (in) :: z
                                                          real(8), intent (in) :: t
                                                          real(8), intent (in) :: a
                                                          real(8), intent (in) :: b
                                                          real(8) :: tmp
                                                          if (y <= (-2.9d+39)) then
                                                              tmp = b * y
                                                          else if (y <= 6.2d+31) then
                                                              tmp = b * t
                                                          else
                                                              tmp = b * y
                                                          end if
                                                          code = tmp
                                                      end function
                                                      
                                                      public static double code(double x, double y, double z, double t, double a, double b) {
                                                      	double tmp;
                                                      	if (y <= -2.9e+39) {
                                                      		tmp = b * y;
                                                      	} else if (y <= 6.2e+31) {
                                                      		tmp = b * t;
                                                      	} else {
                                                      		tmp = b * y;
                                                      	}
                                                      	return tmp;
                                                      }
                                                      
                                                      def code(x, y, z, t, a, b):
                                                      	tmp = 0
                                                      	if y <= -2.9e+39:
                                                      		tmp = b * y
                                                      	elif y <= 6.2e+31:
                                                      		tmp = b * t
                                                      	else:
                                                      		tmp = b * y
                                                      	return tmp
                                                      
                                                      function code(x, y, z, t, a, b)
                                                      	tmp = 0.0
                                                      	if (y <= -2.9e+39)
                                                      		tmp = Float64(b * y);
                                                      	elseif (y <= 6.2e+31)
                                                      		tmp = Float64(b * t);
                                                      	else
                                                      		tmp = Float64(b * y);
                                                      	end
                                                      	return tmp
                                                      end
                                                      
                                                      function tmp_2 = code(x, y, z, t, a, b)
                                                      	tmp = 0.0;
                                                      	if (y <= -2.9e+39)
                                                      		tmp = b * y;
                                                      	elseif (y <= 6.2e+31)
                                                      		tmp = b * t;
                                                      	else
                                                      		tmp = b * y;
                                                      	end
                                                      	tmp_2 = tmp;
                                                      end
                                                      
                                                      code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -2.9e+39], N[(b * y), $MachinePrecision], If[LessEqual[y, 6.2e+31], N[(b * t), $MachinePrecision], N[(b * y), $MachinePrecision]]]
                                                      
                                                      \begin{array}{l}
                                                      
                                                      \\
                                                      \begin{array}{l}
                                                      \mathbf{if}\;y \leq -2.9 \cdot 10^{+39}:\\
                                                      \;\;\;\;b \cdot y\\
                                                      
                                                      \mathbf{elif}\;y \leq 6.2 \cdot 10^{+31}:\\
                                                      \;\;\;\;b \cdot t\\
                                                      
                                                      \mathbf{else}:\\
                                                      \;\;\;\;b \cdot y\\
                                                      
                                                      
                                                      \end{array}
                                                      \end{array}
                                                      
                                                      Derivation
                                                      1. Split input into 2 regimes
                                                      2. if y < -2.90000000000000029e39 or 6.2000000000000004e31 < y

                                                        1. Initial program 91.3%

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

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

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

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

                                                          if -2.90000000000000029e39 < y < 6.2000000000000004e31

                                                          1. Initial program 97.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                          Alternative 15: 17.3% accurate, 6.2× speedup?

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

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

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

                                                              \[\leadsto b \cdot \color{blue}{y} \]
                                                            2. Add Preprocessing

                                                            Reproduce

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