Graphics.Rasterific.CubicBezier:cachedBezierAt from Rasterific-0.6.1

Percentage Accurate: 92.6% → 96.7%
Time: 4.9s
Alternatives: 14
Speedup: 1.0×

Specification

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

\\
\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\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 14 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: 92.6% accurate, 1.0× speedup?

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

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

Alternative 1: 96.7% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\mathsf{fma}\left(b, z, t\right), a, x\right)\\ \mathbf{if}\;a \leq -2.2 \cdot 10^{+126}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 2.1 \cdot 10^{+205}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(b, a, y\right), z, \mathsf{fma}\left(a, t, x\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (fma (fma b z t) a x)))
   (if (<= a -2.2e+126)
     t_1
     (if (<= a 2.1e+205) (fma (fma b a y) z (fma a t x)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = fma(fma(b, z, t), a, x);
	double tmp;
	if (a <= -2.2e+126) {
		tmp = t_1;
	} else if (a <= 2.1e+205) {
		tmp = fma(fma(b, a, y), z, fma(a, t, x));
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = fma(fma(b, z, t), a, x)
	tmp = 0.0
	if (a <= -2.2e+126)
		tmp = t_1;
	elseif (a <= 2.1e+205)
		tmp = fma(fma(b, a, y), z, fma(a, t, x));
	else
		tmp = t_1;
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b * z + t), $MachinePrecision] * a + x), $MachinePrecision]}, If[LessEqual[a, -2.2e+126], t$95$1, If[LessEqual[a, 2.1e+205], N[(N[(b * a + y), $MachinePrecision] * z + N[(a * t + x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(b, z, t\right), a, x\right)\\
\mathbf{if}\;a \leq -2.2 \cdot 10^{+126}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;a \leq 2.1 \cdot 10^{+205}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(b, a, y\right), z, \mathsf{fma}\left(a, t, x\right)\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -2.19999999999999999e126 or 2.1e205 < a

    1. Initial program 75.8%

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(b, z, t\right)}, a, x\right) \]
    5. Applied rewrites98.6%

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

    if -2.19999999999999999e126 < a < 2.1e205

    1. Initial program 94.7%

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

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

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

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

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

        \[\leadsto \left(y \cdot z + \color{blue}{\left(a \cdot b\right) \cdot z}\right) + \left(x + a \cdot t\right) \]
      5. distribute-rgt-inN/A

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(b, a, y\right), z, \color{blue}{a \cdot t + x}\right) \]
      12. lower-fma.f6499.5

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

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

Alternative 2: 85.6% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -2.6 \cdot 10^{+109}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(b, z, t\right), a, x\right)\\ \mathbf{elif}\;a \leq -0.98:\\ \;\;\;\;\mathsf{fma}\left(a, t, \mathsf{fma}\left(z, y, x\right)\right)\\ \mathbf{elif}\;a \leq 2.75 \cdot 10^{+70}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(b, a, y\right), z, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(b, z, t\right), a, z \cdot y\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<= a -2.6e+109)
   (fma (fma b z t) a x)
   (if (<= a -0.98)
     (fma a t (fma z y x))
     (if (<= a 2.75e+70) (fma (fma b a y) z x) (fma (fma b z t) a (* z y))))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (a <= -2.6e+109) {
		tmp = fma(fma(b, z, t), a, x);
	} else if (a <= -0.98) {
		tmp = fma(a, t, fma(z, y, x));
	} else if (a <= 2.75e+70) {
		tmp = fma(fma(b, a, y), z, x);
	} else {
		tmp = fma(fma(b, z, t), a, (z * y));
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (a <= -2.6e+109)
		tmp = fma(fma(b, z, t), a, x);
	elseif (a <= -0.98)
		tmp = fma(a, t, fma(z, y, x));
	elseif (a <= 2.75e+70)
		tmp = fma(fma(b, a, y), z, x);
	else
		tmp = fma(fma(b, z, t), a, Float64(z * y));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -2.6e+109], N[(N[(b * z + t), $MachinePrecision] * a + x), $MachinePrecision], If[LessEqual[a, -0.98], N[(a * t + N[(z * y + x), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.75e+70], N[(N[(b * a + y), $MachinePrecision] * z + x), $MachinePrecision], N[(N[(b * z + t), $MachinePrecision] * a + N[(z * y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.6 \cdot 10^{+109}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(b, z, t\right), a, x\right)\\

\mathbf{elif}\;a \leq -0.98:\\
\;\;\;\;\mathsf{fma}\left(a, t, \mathsf{fma}\left(z, y, x\right)\right)\\

\mathbf{elif}\;a \leq 2.75 \cdot 10^{+70}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(b, a, y\right), z, x\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if a < -2.5999999999999998e109

    1. Initial program 71.6%

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(b, z, t\right)}, a, x\right) \]
    5. Applied rewrites97.9%

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

    if -2.5999999999999998e109 < a < -0.97999999999999998

    1. Initial program 95.6%

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(b, a, y\right)}, z, x\right) \]
    5. Applied rewrites65.7%

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(a, t, \color{blue}{\mathsf{fma}\left(z, y, x\right)}\right) \]
    8. Applied rewrites96.2%

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

    if -0.97999999999999998 < a < 2.74999999999999993e70

    1. Initial program 96.2%

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{b \cdot a} + y, z, x\right) \]
      9. lower-fma.f6491.8

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

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

    if 2.74999999999999993e70 < a

    1. Initial program 86.0%

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(b, z, t\right), a, \color{blue}{z \cdot y}\right) \]
      8. lower-*.f6493.9

        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(b, z, t\right), a, \color{blue}{z \cdot y}\right) \]
    5. Applied rewrites93.9%

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

Alternative 3: 87.2% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\mathsf{fma}\left(b, z, t\right), a, x\right)\\ \mathbf{if}\;a \leq -2.6 \cdot 10^{+109}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -0.98:\\ \;\;\;\;\mathsf{fma}\left(a, t, \mathsf{fma}\left(z, y, x\right)\right)\\ \mathbf{elif}\;a \leq 7 \cdot 10^{+21}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(b, a, y\right), z, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (fma (fma b z t) a x)))
   (if (<= a -2.6e+109)
     t_1
     (if (<= a -0.98)
       (fma a t (fma z y x))
       (if (<= a 7e+21) (fma (fma b a y) z x) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = fma(fma(b, z, t), a, x);
	double tmp;
	if (a <= -2.6e+109) {
		tmp = t_1;
	} else if (a <= -0.98) {
		tmp = fma(a, t, fma(z, y, x));
	} else if (a <= 7e+21) {
		tmp = fma(fma(b, a, y), z, x);
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = fma(fma(b, z, t), a, x)
	tmp = 0.0
	if (a <= -2.6e+109)
		tmp = t_1;
	elseif (a <= -0.98)
		tmp = fma(a, t, fma(z, y, x));
	elseif (a <= 7e+21)
		tmp = fma(fma(b, a, y), z, x);
	else
		tmp = t_1;
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b * z + t), $MachinePrecision] * a + x), $MachinePrecision]}, If[LessEqual[a, -2.6e+109], t$95$1, If[LessEqual[a, -0.98], N[(a * t + N[(z * y + x), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7e+21], N[(N[(b * a + y), $MachinePrecision] * z + x), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(b, z, t\right), a, x\right)\\
\mathbf{if}\;a \leq -2.6 \cdot 10^{+109}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;a \leq -0.98:\\
\;\;\;\;\mathsf{fma}\left(a, t, \mathsf{fma}\left(z, y, x\right)\right)\\

\mathbf{elif}\;a \leq 7 \cdot 10^{+21}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(b, a, y\right), z, x\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -2.5999999999999998e109 or 7e21 < a

    1. Initial program 79.5%

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{b \cdot z + t}, a, x\right) \]
      6. lower-fma.f6494.4

        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(b, z, t\right)}, a, x\right) \]
    5. Applied rewrites94.4%

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

    if -2.5999999999999998e109 < a < -0.97999999999999998

    1. Initial program 95.6%

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(b, a, y\right)}, z, x\right) \]
    5. Applied rewrites65.7%

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(a, t, \color{blue}{\mathsf{fma}\left(z, y, x\right)}\right) \]
    8. Applied rewrites96.2%

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

    if -0.97999999999999998 < a < 7e21

    1. Initial program 96.8%

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(b, a, y\right)}, z, x\right) \]
    5. Applied rewrites92.7%

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

Alternative 4: 73.8% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(b, z, t\right) \cdot a\\ \mathbf{if}\;a \leq -2.6 \cdot 10^{+109}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -3:\\ \;\;\;\;\mathsf{fma}\left(a, t, z \cdot y\right)\\ \mathbf{elif}\;a \leq 4.2 \cdot 10^{+75}:\\ \;\;\;\;\mathsf{fma}\left(z, y, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (* (fma b z t) a)))
   (if (<= a -2.6e+109)
     t_1
     (if (<= a -3.0) (fma a t (* z y)) (if (<= a 4.2e+75) (fma z y x) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = fma(b, z, t) * a;
	double tmp;
	if (a <= -2.6e+109) {
		tmp = t_1;
	} else if (a <= -3.0) {
		tmp = fma(a, t, (z * y));
	} else if (a <= 4.2e+75) {
		tmp = fma(z, y, x);
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = Float64(fma(b, z, t) * a)
	tmp = 0.0
	if (a <= -2.6e+109)
		tmp = t_1;
	elseif (a <= -3.0)
		tmp = fma(a, t, Float64(z * y));
	elseif (a <= 4.2e+75)
		tmp = fma(z, y, x);
	else
		tmp = t_1;
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b * z + t), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[a, -2.6e+109], t$95$1, If[LessEqual[a, -3.0], N[(a * t + N[(z * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.2e+75], N[(z * y + x), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(b, z, t\right) \cdot a\\
\mathbf{if}\;a \leq -2.6 \cdot 10^{+109}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;a \leq -3:\\
\;\;\;\;\mathsf{fma}\left(a, t, z \cdot y\right)\\

\mathbf{elif}\;a \leq 4.2 \cdot 10^{+75}:\\
\;\;\;\;\mathsf{fma}\left(z, y, x\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -2.5999999999999998e109 or 4.19999999999999997e75 < a

    1. Initial program 78.8%

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

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

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

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

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

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

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, z, t\right) \cdot a} \]

    if -2.5999999999999998e109 < a < -3

    1. Initial program 95.6%

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(b, a, y\right)}, z, x\right) \]
    5. Applied rewrites65.7%

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(a, t, \color{blue}{\mathsf{fma}\left(z, y, x\right)}\right) \]
    8. Applied rewrites96.2%

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

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

        \[\leadsto \mathsf{fma}\left(a, t, z \cdot y\right) \]

      if -3 < a < 4.19999999999999997e75

      1. Initial program 96.2%

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

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

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

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

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

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

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

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

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

          \[\leadsto \mathsf{fma}\left(\color{blue}{b \cdot a} + y, z, x\right) \]
        9. lower-fma.f6491.8

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

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

        \[\leadsto \color{blue}{x + y \cdot z} \]
      7. Step-by-step derivation
        1. +-commutativeN/A

          \[\leadsto \color{blue}{y \cdot z + x} \]
        2. *-commutativeN/A

          \[\leadsto \color{blue}{z \cdot y} + x \]
        3. lower-fma.f6476.8

          \[\leadsto \color{blue}{\mathsf{fma}\left(z, y, x\right)} \]
      8. Applied rewrites76.8%

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

    Alternative 5: 62.7% accurate, 1.0× speedup?

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

      1. Initial program 87.2%

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

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

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

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

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

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

          \[\leadsto \mathsf{fma}\left(\color{blue}{b \cdot z + t}, a, x\right) \]
        6. lower-fma.f6484.9

          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(b, z, t\right)}, a, x\right) \]
      5. Applied rewrites84.9%

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

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

          \[\leadsto \mathsf{fma}\left(b \cdot a, \color{blue}{z}, x\right) \]

        if -1.05000000000000004e-22 < b < 7.5e-153

        1. Initial program 91.1%

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \color{blue}{x + y \cdot z} \]
        7. Step-by-step derivation
          1. +-commutativeN/A

            \[\leadsto \color{blue}{y \cdot z + x} \]
          2. *-commutativeN/A

            \[\leadsto \color{blue}{z \cdot y} + x \]
          3. lower-fma.f6466.3

            \[\leadsto \color{blue}{\mathsf{fma}\left(z, y, x\right)} \]
        8. Applied rewrites66.3%

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

        if 7.5e-153 < b < 5.00000000000000018e61

        1. Initial program 91.6%

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

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

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

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(\color{blue}{b \cdot a} + y, z, x\right) \]
          9. lower-fma.f6461.4

            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(b, a, y\right)}, z, x\right) \]
        5. Applied rewrites61.4%

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

          \[\leadsto \color{blue}{x + a \cdot t} \]
        7. Step-by-step derivation
          1. +-commutativeN/A

            \[\leadsto \color{blue}{a \cdot t + x} \]
          2. lower-fma.f6475.1

            \[\leadsto \color{blue}{\mathsf{fma}\left(a, t, x\right)} \]
        8. Applied rewrites75.1%

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

      Alternative 6: 61.9% accurate, 1.2× speedup?

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

        1. Initial program 86.1%

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

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

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

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(\color{blue}{b \cdot a} + y, z, x\right) \]
          9. lower-fma.f6464.3

            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(b, a, y\right)}, z, x\right) \]
        5. Applied rewrites64.3%

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

          \[\leadsto \color{blue}{x + a \cdot t} \]
        7. Step-by-step derivation
          1. +-commutativeN/A

            \[\leadsto \color{blue}{a \cdot t + x} \]
          2. lower-fma.f6470.2

            \[\leadsto \color{blue}{\mathsf{fma}\left(a, t, x\right)} \]
        8. Applied rewrites70.2%

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

        if -3e18 < t < 1.8999999999999999e-199

        1. Initial program 93.8%

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(\color{blue}{b \cdot z + t}, a, x\right) \]
          6. lower-fma.f6476.4

            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(b, z, t\right)}, a, x\right) \]
        5. Applied rewrites76.4%

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

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

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

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

            if 1.8999999999999999e-199 < t < 2e-100

            1. Initial program 93.9%

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

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(\color{blue}{b \cdot a} + y, z, x\right) \]
              9. lower-fma.f6493.8

                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(b, a, y\right)}, z, x\right) \]
            5. Applied rewrites93.8%

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

              \[\leadsto \color{blue}{x + y \cdot z} \]
            7. Step-by-step derivation
              1. +-commutativeN/A

                \[\leadsto \color{blue}{y \cdot z + x} \]
              2. *-commutativeN/A

                \[\leadsto \color{blue}{z \cdot y} + x \]
              3. lower-fma.f6470.9

                \[\leadsto \color{blue}{\mathsf{fma}\left(z, y, x\right)} \]
            8. Applied rewrites70.9%

              \[\leadsto \color{blue}{\mathsf{fma}\left(z, y, x\right)} \]
          3. Recombined 3 regimes into one program.
          4. Final simplification71.0%

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

          Alternative 7: 85.9% accurate, 1.2× speedup?

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

            1. Initial program 86.8%

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(b, a, y\right)}, z, x\right) \]
            5. Applied rewrites88.7%

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

            if -2.60000000000000017e-21 < b < 5.20000000000000024e66

            1. Initial program 91.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(a, t, \color{blue}{\mathsf{fma}\left(z, y, x\right)}\right) \]
            8. Applied rewrites92.0%

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

          Alternative 8: 81.1% accurate, 1.2× speedup?

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

            1. Initial program 80.1%

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

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

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

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

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

                \[\leadsto \left(\color{blue}{b \cdot a} + y\right) \cdot z \]
              5. lower-fma.f6472.4

                \[\leadsto \color{blue}{\mathsf{fma}\left(b, a, y\right)} \cdot z \]
            5. Applied rewrites72.4%

              \[\leadsto \color{blue}{\mathsf{fma}\left(b, a, y\right) \cdot z} \]

            if -4.8000000000000002e90 < b < 4.4e116

            1. Initial program 92.5%

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

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(\color{blue}{b \cdot a} + y, z, x\right) \]
              9. lower-fma.f6471.3

                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(b, a, y\right)}, z, x\right) \]
            5. Applied rewrites71.3%

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(a, t, \color{blue}{\mathsf{fma}\left(z, y, x\right)}\right) \]
            8. Applied rewrites87.0%

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

            if 4.4e116 < b

            1. Initial program 83.6%

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

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

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

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

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

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

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

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

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

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

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

            Alternative 9: 72.6% accurate, 1.2× speedup?

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

              1. Initial program 78.8%

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

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

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

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

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

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

                \[\leadsto \color{blue}{\mathsf{fma}\left(b, z, t\right) \cdot a} \]

              if -2.5999999999999998e109 < a < 4.19999999999999997e75

              1. Initial program 96.1%

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

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

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{fma}\left(\color{blue}{b \cdot a} + y, z, x\right) \]
                9. lower-fma.f6488.0

                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(b, a, y\right)}, z, x\right) \]
              5. Applied rewrites88.0%

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

                \[\leadsto \color{blue}{x + y \cdot z} \]
              7. Step-by-step derivation
                1. +-commutativeN/A

                  \[\leadsto \color{blue}{y \cdot z + x} \]
                2. *-commutativeN/A

                  \[\leadsto \color{blue}{z \cdot y} + x \]
                3. lower-fma.f6474.0

                  \[\leadsto \color{blue}{\mathsf{fma}\left(z, y, x\right)} \]
              8. Applied rewrites74.0%

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

            Alternative 10: 73.7% accurate, 1.2× speedup?

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

              1. Initial program 82.1%

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

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

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

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

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

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

                  \[\leadsto \color{blue}{\mathsf{fma}\left(b, a, y\right)} \cdot z \]
              5. Applied rewrites72.8%

                \[\leadsto \color{blue}{\mathsf{fma}\left(b, a, y\right) \cdot z} \]

              if -5.80000000000000009e-37 < z < 1.7000000000000001e35

              1. Initial program 97.5%

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(b, a, y\right)}, z, x\right) \]
              5. Applied rewrites68.9%

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

                \[\leadsto \color{blue}{x + a \cdot t} \]
              7. Step-by-step derivation
                1. +-commutativeN/A

                  \[\leadsto \color{blue}{a \cdot t + x} \]
                2. lower-fma.f6480.7

                  \[\leadsto \color{blue}{\mathsf{fma}\left(a, t, x\right)} \]
              8. Applied rewrites80.7%

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

            Alternative 11: 64.2% accurate, 1.6× speedup?

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

              1. Initial program 81.9%

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(b, a, y\right)}, z, x\right) \]
              5. Applied rewrites61.7%

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

                \[\leadsto \color{blue}{x + a \cdot t} \]
              7. Step-by-step derivation
                1. +-commutativeN/A

                  \[\leadsto \color{blue}{a \cdot t + x} \]
                2. lower-fma.f6460.8

                  \[\leadsto \color{blue}{\mathsf{fma}\left(a, t, x\right)} \]
              8. Applied rewrites60.8%

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

              if -4.9999999999999999e23 < a < 5.2e55

              1. Initial program 96.3%

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \color{blue}{x + y \cdot z} \]
              7. Step-by-step derivation
                1. +-commutativeN/A

                  \[\leadsto \color{blue}{y \cdot z + x} \]
                2. *-commutativeN/A

                  \[\leadsto \color{blue}{z \cdot y} + x \]
                3. lower-fma.f6476.2

                  \[\leadsto \color{blue}{\mathsf{fma}\left(z, y, x\right)} \]
              8. Applied rewrites76.2%

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

            Alternative 12: 57.5% accurate, 1.6× speedup?

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

              1. Initial program 74.2%

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

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

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

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

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

                  \[\leadsto \left(y \cdot z + \color{blue}{\left(a \cdot b\right) \cdot z}\right) + \left(x + a \cdot t\right) \]
                5. distribute-rgt-inN/A

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

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

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

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

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

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

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

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

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

                \[\leadsto \color{blue}{y \cdot z} \]
              7. Step-by-step derivation
                1. *-commutativeN/A

                  \[\leadsto \color{blue}{z \cdot y} \]
                2. lower-*.f6451.5

                  \[\leadsto \color{blue}{z \cdot y} \]
              8. Applied rewrites51.5%

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

              if -4.99999999999999977e170 < z < 4.19999999999999981e223

              1. Initial program 92.5%

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

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

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{fma}\left(\color{blue}{b \cdot a} + y, z, x\right) \]
                9. lower-fma.f6473.4

                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(b, a, y\right)}, z, x\right) \]
              5. Applied rewrites73.4%

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

                \[\leadsto \color{blue}{x + a \cdot t} \]
              7. Step-by-step derivation
                1. +-commutativeN/A

                  \[\leadsto \color{blue}{a \cdot t + x} \]
                2. lower-fma.f6464.2

                  \[\leadsto \color{blue}{\mathsf{fma}\left(a, t, x\right)} \]
              8. Applied rewrites64.2%

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

            Alternative 13: 39.4% accurate, 1.7× speedup?

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

              1. Initial program 79.0%

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

                \[\leadsto \color{blue}{a \cdot t} \]
              4. Step-by-step derivation
                1. lower-*.f6453.1

                  \[\leadsto \color{blue}{a \cdot t} \]
              5. Applied rewrites53.1%

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

              if -1.8e109 < a < 4.4000000000000001e57

              1. Initial program 96.1%

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

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

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

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

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

                  \[\leadsto \left(y \cdot z + \color{blue}{\left(a \cdot b\right) \cdot z}\right) + \left(x + a \cdot t\right) \]
                5. distribute-rgt-inN/A

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

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

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

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

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

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

                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(b, a, y\right), z, \color{blue}{a \cdot t + x}\right) \]
                12. lower-fma.f6499.4

                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(b, a, y\right), z, \color{blue}{\mathsf{fma}\left(a, t, x\right)}\right) \]
              5. Applied rewrites99.4%

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

                \[\leadsto \color{blue}{y \cdot z} \]
              7. Step-by-step derivation
                1. *-commutativeN/A

                  \[\leadsto \color{blue}{z \cdot y} \]
                2. lower-*.f6433.1

                  \[\leadsto \color{blue}{z \cdot y} \]
              8. Applied rewrites33.1%

                \[\leadsto \color{blue}{z \cdot y} \]
            3. Recombined 2 regimes into one program.
            4. Final simplification40.8%

              \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.8 \cdot 10^{+109}:\\ \;\;\;\;t \cdot a\\ \mathbf{elif}\;a \leq 4.4 \cdot 10^{+57}:\\ \;\;\;\;z \cdot y\\ \mathbf{else}:\\ \;\;\;\;t \cdot a\\ \end{array} \]
            5. Add Preprocessing

            Alternative 14: 27.6% accurate, 5.0× speedup?

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

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

              \[\leadsto \color{blue}{a \cdot t} \]
            4. Step-by-step derivation
              1. lower-*.f6428.7

                \[\leadsto \color{blue}{a \cdot t} \]
            5. Applied rewrites28.7%

              \[\leadsto \color{blue}{a \cdot t} \]
            6. Final simplification28.7%

              \[\leadsto t \cdot a \]
            7. Add Preprocessing

            Developer Target 1: 97.6% accurate, 0.8× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := z \cdot \left(b \cdot a + y\right) + \left(x + t \cdot a\right)\\ \mathbf{if}\;z < -11820553527347888000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z < 4.7589743188364287 \cdot 10^{-122}:\\ \;\;\;\;\left(b \cdot z + t\right) \cdot a + \left(z \cdot y + x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
            (FPCore (x y z t a b)
             :precision binary64
             (let* ((t_1 (+ (* z (+ (* b a) y)) (+ x (* t a)))))
               (if (< z -11820553527347888000.0)
                 t_1
                 (if (< z 4.7589743188364287e-122)
                   (+ (* (+ (* b z) t) a) (+ (* z y) x))
                   t_1))))
            double code(double x, double y, double z, double t, double a, double b) {
            	double t_1 = (z * ((b * a) + y)) + (x + (t * a));
            	double tmp;
            	if (z < -11820553527347888000.0) {
            		tmp = t_1;
            	} else if (z < 4.7589743188364287e-122) {
            		tmp = (((b * z) + t) * a) + ((z * y) + x);
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            real(8) function code(x, y, z, t, a, b)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                real(8), intent (in) :: z
                real(8), intent (in) :: t
                real(8), intent (in) :: a
                real(8), intent (in) :: b
                real(8) :: t_1
                real(8) :: tmp
                t_1 = (z * ((b * a) + y)) + (x + (t * a))
                if (z < (-11820553527347888000.0d0)) then
                    tmp = t_1
                else if (z < 4.7589743188364287d-122) then
                    tmp = (((b * z) + t) * a) + ((z * y) + x)
                else
                    tmp = t_1
                end if
                code = tmp
            end function
            
            public static double code(double x, double y, double z, double t, double a, double b) {
            	double t_1 = (z * ((b * a) + y)) + (x + (t * a));
            	double tmp;
            	if (z < -11820553527347888000.0) {
            		tmp = t_1;
            	} else if (z < 4.7589743188364287e-122) {
            		tmp = (((b * z) + t) * a) + ((z * y) + x);
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            def code(x, y, z, t, a, b):
            	t_1 = (z * ((b * a) + y)) + (x + (t * a))
            	tmp = 0
            	if z < -11820553527347888000.0:
            		tmp = t_1
            	elif z < 4.7589743188364287e-122:
            		tmp = (((b * z) + t) * a) + ((z * y) + x)
            	else:
            		tmp = t_1
            	return tmp
            
            function code(x, y, z, t, a, b)
            	t_1 = Float64(Float64(z * Float64(Float64(b * a) + y)) + Float64(x + Float64(t * a)))
            	tmp = 0.0
            	if (z < -11820553527347888000.0)
            		tmp = t_1;
            	elseif (z < 4.7589743188364287e-122)
            		tmp = Float64(Float64(Float64(Float64(b * z) + t) * a) + Float64(Float64(z * y) + x));
            	else
            		tmp = t_1;
            	end
            	return tmp
            end
            
            function tmp_2 = code(x, y, z, t, a, b)
            	t_1 = (z * ((b * a) + y)) + (x + (t * a));
            	tmp = 0.0;
            	if (z < -11820553527347888000.0)
            		tmp = t_1;
            	elseif (z < 4.7589743188364287e-122)
            		tmp = (((b * z) + t) * a) + ((z * y) + x);
            	else
            		tmp = t_1;
            	end
            	tmp_2 = tmp;
            end
            
            code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z * N[(N[(b * a), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + N[(x + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -11820553527347888000.0], t$95$1, If[Less[z, 4.7589743188364287e-122], N[(N[(N[(N[(b * z), $MachinePrecision] + t), $MachinePrecision] * a), $MachinePrecision] + N[(N[(z * y), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := z \cdot \left(b \cdot a + y\right) + \left(x + t \cdot a\right)\\
            \mathbf{if}\;z < -11820553527347888000:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;z < 4.7589743188364287 \cdot 10^{-122}:\\
            \;\;\;\;\left(b \cdot z + t\right) \cdot a + \left(z \cdot y + x\right)\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_1\\
            
            
            \end{array}
            \end{array}
            

            Reproduce

            ?
            herbie shell --seed 2024308 
            (FPCore (x y z t a b)
              :name "Graphics.Rasterific.CubicBezier:cachedBezierAt from Rasterific-0.6.1"
              :precision binary64
            
              :alt
              (! :herbie-platform default (if (< z -11820553527347888000) (+ (* z (+ (* b a) y)) (+ x (* t a))) (if (< z 47589743188364287/1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (* (+ (* b z) t) a) (+ (* z y) x)) (+ (* z (+ (* b a) y)) (+ x (* t a))))))
            
              (+ (+ (+ x (* y z)) (* t a)) (* (* a z) b)))