Linear.Matrix:det33 from linear-1.19.1.3

Percentage Accurate: 73.2% → 84.4%
Time: 12.5s
Alternatives: 18
Speedup: 0.9×

Specification

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

\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\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 18 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: 73.2% accurate, 1.0× speedup?

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

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

Alternative 1: 84.4% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \leq \infty:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, i, c \cdot t\right), j, \mathsf{fma}\left(-b, \mathsf{fma}\left(-a, i, c \cdot z\right), \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, i \cdot b\right), a, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<=
      (+
       (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
       (* j (- (* c t) (* i y))))
      INFINITY)
   (fma
    (fma (- y) i (* c t))
    j
    (fma (- b) (fma (- a) i (* c z)) (* (fma (- a) t (* z y)) x)))
   (fma (fma (- x) t (* i b)) a (* (fma (- i) j (* z x)) y))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if ((((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))) <= ((double) INFINITY)) {
		tmp = fma(fma(-y, i, (c * t)), j, fma(-b, fma(-a, i, (c * z)), (fma(-a, t, (z * y)) * x)));
	} else {
		tmp = fma(fma(-x, t, (i * b)), a, (fma(-i, j, (z * x)) * y));
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) <= Inf)
		tmp = fma(fma(Float64(-y), i, Float64(c * t)), j, fma(Float64(-b), fma(Float64(-a), i, Float64(c * z)), Float64(fma(Float64(-a), t, Float64(z * y)) * x)));
	else
		tmp = fma(fma(Float64(-x), t, Float64(i * b)), a, Float64(fma(Float64(-i), j, Float64(z * x)) * y));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[((-y) * i + N[(c * t), $MachinePrecision]), $MachinePrecision] * j + N[((-b) * N[((-a) * i + N[(c * z), $MachinePrecision]), $MachinePrecision] + N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, i, c \cdot t\right), j, \mathsf{fma}\left(-b, \mathsf{fma}\left(-a, i, c \cdot z\right), \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\right)\\

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


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

    1. Initial program 89.9%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. lift-+.f64N/A

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

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

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

        \[\leadsto \color{blue}{\left(c \cdot t - i \cdot y\right) \cdot j} + \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      5. lower-fma.f6489.9

        \[\leadsto \color{blue}{\mathsf{fma}\left(c \cdot t - i \cdot y, j, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right)} \]
      6. lift--.f64N/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{c \cdot t - i \cdot y}, j, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      7. sub-negN/A

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(y\right), i, c \cdot t\right)}, j, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      13. lower-neg.f6489.9

        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-y}, i, c \cdot t\right), j, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      14. lift--.f64N/A

        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-y, i, c \cdot t\right), j, \color{blue}{x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)}\right) \]
      15. sub-negN/A

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

        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-y, i, c \cdot t\right), j, \color{blue}{\left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot a\right)\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)}\right) \]
    4. Applied rewrites89.9%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-y, i, c \cdot t\right), j, \mathsf{fma}\left(-b, \mathsf{fma}\left(-a, i, c \cdot z\right), \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\right)} \]

    if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y))))

    1. Initial program 0.0%

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

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

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

      \[\leadsto -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + \color{blue}{\left(a \cdot \left(b \cdot i\right) + y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)\right)} \]
    6. Step-by-step derivation
      1. Applied rewrites63.3%

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

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

    Alternative 2: 77.5% accurate, 0.9× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-y, j, b \cdot a\right)\\ \mathbf{if}\;i \leq -8.2 \cdot 10^{+76}:\\ \;\;\;\;\mathsf{fma}\left(t\_1, i, \left(\left(-a\right) \cdot t\right) \cdot x\right)\\ \mathbf{elif}\;i \leq 9 \cdot 10^{+135}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot a\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-x, a, j \cdot c\right), t, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1 \cdot i\\ \end{array} \end{array} \]
    (FPCore (x y z t a b c i j)
     :precision binary64
     (let* ((t_1 (fma (- y) j (* b a))))
       (if (<= i -8.2e+76)
         (fma t_1 i (* (* (- a) t) x))
         (if (<= i 9e+135)
           (fma
            (fma (- z) c (* i a))
            b
            (fma (fma (- x) a (* j c)) t (* (fma (- i) j (* z x)) y)))
           (* t_1 i)))))
    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
    	double t_1 = fma(-y, j, (b * a));
    	double tmp;
    	if (i <= -8.2e+76) {
    		tmp = fma(t_1, i, ((-a * t) * x));
    	} else if (i <= 9e+135) {
    		tmp = fma(fma(-z, c, (i * a)), b, fma(fma(-x, a, (j * c)), t, (fma(-i, j, (z * x)) * y)));
    	} else {
    		tmp = t_1 * i;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a, b, c, i, j)
    	t_1 = fma(Float64(-y), j, Float64(b * a))
    	tmp = 0.0
    	if (i <= -8.2e+76)
    		tmp = fma(t_1, i, Float64(Float64(Float64(-a) * t) * x));
    	elseif (i <= 9e+135)
    		tmp = fma(fma(Float64(-z), c, Float64(i * a)), b, fma(fma(Float64(-x), a, Float64(j * c)), t, Float64(fma(Float64(-i), j, Float64(z * x)) * y)));
    	else
    		tmp = Float64(t_1 * i);
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -8.2e+76], N[(t$95$1 * i + N[(N[((-a) * t), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 9e+135], N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-x) * a + N[(j * c), $MachinePrecision]), $MachinePrecision] * t + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 * i), $MachinePrecision]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \mathsf{fma}\left(-y, j, b \cdot a\right)\\
    \mathbf{if}\;i \leq -8.2 \cdot 10^{+76}:\\
    \;\;\;\;\mathsf{fma}\left(t\_1, i, \left(\left(-a\right) \cdot t\right) \cdot x\right)\\
    
    \mathbf{elif}\;i \leq 9 \cdot 10^{+135}:\\
    \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot a\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-x, a, j \cdot c\right), t, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1 \cdot i\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if i < -8.1999999999999997e76

      1. Initial program 57.1%

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

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

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

          \[\leadsto \left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + x \cdot \left(y \cdot z - a \cdot t\right)\right) - \color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot \left(b \cdot i\right) \]
        3. cancel-sign-subN/A

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

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

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

          \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + \color{blue}{\left(a \cdot b\right) \cdot i}\right) \]
        7. cancel-sign-subN/A

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

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

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

          \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(\left(-1 \cdot \left(j \cdot y\right)\right) \cdot i - \color{blue}{\left(-1 \cdot \left(a \cdot b\right)\right)} \cdot i\right) \]
        11. distribute-rgt-out--N/A

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

          \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(a \cdot b\right)\right) + x \cdot \left(y \cdot z - a \cdot t\right)} \]
      5. Applied rewrites73.6%

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

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

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-y, j, b \cdot a\right), i, \left(\left(-a\right) \cdot t\right) \cdot x\right) \]

        if -8.1999999999999997e76 < i < 9.00000000000000014e135

        1. Initial program 76.2%

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

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

          \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot a\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-x, a, j \cdot c\right), t, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\right)} \]

        if 9.00000000000000014e135 < i

        1. Initial program 55.1%

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

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

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

            \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(a \cdot b\right)\right) \cdot i} \]
          3. sub-negN/A

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

            \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \cdot i \]
          5. associate-*r*N/A

            \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \cdot i \]
          6. mul-1-negN/A

            \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(a \cdot b\right)\right)}\right)\right)\right) \cdot i \]
          7. remove-double-negN/A

            \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{a \cdot b}\right) \cdot i \]
          8. lower-fma.f64N/A

            \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, a \cdot b\right)} \cdot i \]
          9. mul-1-negN/A

            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, a \cdot b\right) \cdot i \]
          10. lower-neg.f64N/A

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

            \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot a}\right) \cdot i \]
          12. lower-*.f6483.8

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

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

      Alternative 3: 64.4% accurate, 1.0× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{if}\;z \leq -6.5 \cdot 10^{+208}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -1.08 \cdot 10^{-72}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, j, b \cdot a\right), i, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\ \mathbf{elif}\;z \leq 1.45 \cdot 10^{-148}:\\ \;\;\;\;\mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\right)\\ \mathbf{elif}\;z \leq 1.9 \cdot 10^{+133}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, i \cdot b\right), a, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
      (FPCore (x y z t a b c i j)
       :precision binary64
       (let* ((t_1 (* (fma (- b) c (* y x)) z)))
         (if (<= z -6.5e+208)
           t_1
           (if (<= z -1.08e-72)
             (fma (fma (- y) j (* b a)) i (* (fma (- t) a (* z y)) x))
             (if (<= z 1.45e-148)
               (fma (* i a) b (* (fma (- x) a (* j c)) t))
               (if (<= z 1.9e+133)
                 (fma (fma (- x) t (* i b)) a (* (fma (- i) j (* z x)) y))
                 t_1))))))
      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
      	double t_1 = fma(-b, c, (y * x)) * z;
      	double tmp;
      	if (z <= -6.5e+208) {
      		tmp = t_1;
      	} else if (z <= -1.08e-72) {
      		tmp = fma(fma(-y, j, (b * a)), i, (fma(-t, a, (z * y)) * x));
      	} else if (z <= 1.45e-148) {
      		tmp = fma((i * a), b, (fma(-x, a, (j * c)) * t));
      	} else if (z <= 1.9e+133) {
      		tmp = fma(fma(-x, t, (i * b)), a, (fma(-i, j, (z * x)) * y));
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a, b, c, i, j)
      	t_1 = Float64(fma(Float64(-b), c, Float64(y * x)) * z)
      	tmp = 0.0
      	if (z <= -6.5e+208)
      		tmp = t_1;
      	elseif (z <= -1.08e-72)
      		tmp = fma(fma(Float64(-y), j, Float64(b * a)), i, Float64(fma(Float64(-t), a, Float64(z * y)) * x));
      	elseif (z <= 1.45e-148)
      		tmp = fma(Float64(i * a), b, Float64(fma(Float64(-x), a, Float64(j * c)) * t));
      	elseif (z <= 1.9e+133)
      		tmp = fma(fma(Float64(-x), t, Float64(i * b)), a, Float64(fma(Float64(-i), j, Float64(z * x)) * y));
      	else
      		tmp = t_1;
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -6.5e+208], t$95$1, If[LessEqual[z, -1.08e-72], N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.45e-148], N[(N[(i * a), $MachinePrecision] * b + N[(N[((-x) * a + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.9e+133], N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
      \mathbf{if}\;z \leq -6.5 \cdot 10^{+208}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;z \leq -1.08 \cdot 10^{-72}:\\
      \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, j, b \cdot a\right), i, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\
      
      \mathbf{elif}\;z \leq 1.45 \cdot 10^{-148}:\\
      \;\;\;\;\mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\right)\\
      
      \mathbf{elif}\;z \leq 1.9 \cdot 10^{+133}:\\
      \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, i \cdot b\right), a, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 4 regimes
      2. if z < -6.5000000000000001e208 or 1.9000000000000001e133 < z

        1. Initial program 52.5%

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

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

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

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(b\right)}, c, x \cdot y\right) \cdot z \]
          9. lower-neg.f64N/A

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

            \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
          11. lower-*.f6475.4

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

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

        if -6.5000000000000001e208 < z < -1.07999999999999998e-72

        1. Initial program 78.0%

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

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

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

            \[\leadsto \left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + x \cdot \left(y \cdot z - a \cdot t\right)\right) - \color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot \left(b \cdot i\right) \]
          3. cancel-sign-subN/A

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

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

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

            \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + \color{blue}{\left(a \cdot b\right) \cdot i}\right) \]
          7. cancel-sign-subN/A

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

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

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

            \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(\left(-1 \cdot \left(j \cdot y\right)\right) \cdot i - \color{blue}{\left(-1 \cdot \left(a \cdot b\right)\right)} \cdot i\right) \]
          11. distribute-rgt-out--N/A

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

            \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(a \cdot b\right)\right) + x \cdot \left(y \cdot z - a \cdot t\right)} \]
        5. Applied rewrites72.5%

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

        if -1.07999999999999998e-72 < z < 1.4499999999999999e-148

        1. Initial program 76.1%

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

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

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

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

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

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

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

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

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

          \[\leadsto \mathsf{fma}\left(a \cdot i, b, \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\right) \]
        7. Step-by-step derivation
          1. Applied rewrites82.1%

            \[\leadsto \mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\right) \]

          if 1.4499999999999999e-148 < z < 1.9000000000000001e133

          1. Initial program 70.8%

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

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

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

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

              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-x, t, i \cdot b\right), \color{blue}{a}, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right) \]
          7. Recombined 4 regimes into one program.
          8. Final simplification76.4%

            \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -6.5 \cdot 10^{+208}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{elif}\;z \leq -1.08 \cdot 10^{-72}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, j, b \cdot a\right), i, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\ \mathbf{elif}\;z \leq 1.45 \cdot 10^{-148}:\\ \;\;\;\;\mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\right)\\ \mathbf{elif}\;z \leq 1.9 \cdot 10^{+133}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, i \cdot b\right), a, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \end{array} \]
          9. Add Preprocessing

          Alternative 4: 62.8% accurate, 1.1× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{if}\;z \leq -9 \cdot 10^{+151}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.45 \cdot 10^{-148}:\\ \;\;\;\;\mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\right)\\ \mathbf{elif}\;z \leq 1.9 \cdot 10^{+133}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, i \cdot b\right), a, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
          (FPCore (x y z t a b c i j)
           :precision binary64
           (let* ((t_1 (* (fma (- b) c (* y x)) z)))
             (if (<= z -9e+151)
               t_1
               (if (<= z 1.45e-148)
                 (fma (* i a) b (* (fma (- x) a (* j c)) t))
                 (if (<= z 1.9e+133)
                   (fma (fma (- x) t (* i b)) a (* (fma (- i) j (* z x)) y))
                   t_1)))))
          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
          	double t_1 = fma(-b, c, (y * x)) * z;
          	double tmp;
          	if (z <= -9e+151) {
          		tmp = t_1;
          	} else if (z <= 1.45e-148) {
          		tmp = fma((i * a), b, (fma(-x, a, (j * c)) * t));
          	} else if (z <= 1.9e+133) {
          		tmp = fma(fma(-x, t, (i * b)), a, (fma(-i, j, (z * x)) * y));
          	} else {
          		tmp = t_1;
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a, b, c, i, j)
          	t_1 = Float64(fma(Float64(-b), c, Float64(y * x)) * z)
          	tmp = 0.0
          	if (z <= -9e+151)
          		tmp = t_1;
          	elseif (z <= 1.45e-148)
          		tmp = fma(Float64(i * a), b, Float64(fma(Float64(-x), a, Float64(j * c)) * t));
          	elseif (z <= 1.9e+133)
          		tmp = fma(fma(Float64(-x), t, Float64(i * b)), a, Float64(fma(Float64(-i), j, Float64(z * x)) * y));
          	else
          		tmp = t_1;
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -9e+151], t$95$1, If[LessEqual[z, 1.45e-148], N[(N[(i * a), $MachinePrecision] * b + N[(N[((-x) * a + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.9e+133], N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
          \mathbf{if}\;z \leq -9 \cdot 10^{+151}:\\
          \;\;\;\;t\_1\\
          
          \mathbf{elif}\;z \leq 1.45 \cdot 10^{-148}:\\
          \;\;\;\;\mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\right)\\
          
          \mathbf{elif}\;z \leq 1.9 \cdot 10^{+133}:\\
          \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, i \cdot b\right), a, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;t\_1\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if z < -8.9999999999999997e151 or 1.9000000000000001e133 < z

            1. Initial program 59.6%

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

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(b\right)}, c, x \cdot y\right) \cdot z \]
              9. lower-neg.f64N/A

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

                \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
              11. lower-*.f6475.7

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

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

            if -8.9999999999999997e151 < z < 1.4499999999999999e-148

            1. Initial program 75.4%

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(a \cdot i, b, \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\right) \]
            7. Step-by-step derivation
              1. Applied rewrites73.0%

                \[\leadsto \mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\right) \]

              if 1.4499999999999999e-148 < z < 1.9000000000000001e133

              1. Initial program 70.8%

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

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

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

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

                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-x, t, i \cdot b\right), \color{blue}{a}, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right) \]
              7. Recombined 3 regimes into one program.
              8. Final simplification74.0%

                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -9 \cdot 10^{+151}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{elif}\;z \leq 1.45 \cdot 10^{-148}:\\ \;\;\;\;\mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\right)\\ \mathbf{elif}\;z \leq 1.9 \cdot 10^{+133}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, i \cdot b\right), a, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \end{array} \]
              9. Add Preprocessing

              Alternative 5: 71.5% accurate, 1.2× speedup?

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

                1. Initial program 61.8%

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

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

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

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

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

                  if -3.00000000000000001e-57 < y < 1.42e-5

                  1. Initial program 78.7%

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

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

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

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

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

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

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

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

                    \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot a\right), b, \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\right)} \]
                7. Recombined 2 regimes into one program.
                8. Final simplification75.0%

                  \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3 \cdot 10^{-57} \lor \neg \left(y \leq 1.42 \cdot 10^{-5}\right):\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, i \cdot b\right), a, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot a\right), b, \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\right)\\ \end{array} \]
                9. Add Preprocessing

                Alternative 6: 60.1% accurate, 1.2× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{if}\;z \leq -9 \cdot 10^{+151}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.6 \cdot 10^{-148}:\\ \;\;\;\;\mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\right)\\ \mathbf{elif}\;z \leq 2.25 \cdot 10^{+30}:\\ \;\;\;\;\mathsf{fma}\left(\left(-t\right) \cdot x, a, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                (FPCore (x y z t a b c i j)
                 :precision binary64
                 (let* ((t_1 (* (fma (- b) c (* y x)) z)))
                   (if (<= z -9e+151)
                     t_1
                     (if (<= z 1.6e-148)
                       (fma (* i a) b (* (fma (- x) a (* j c)) t))
                       (if (<= z 2.25e+30)
                         (fma (* (- t) x) a (* (fma (- i) j (* z x)) y))
                         t_1)))))
                double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                	double t_1 = fma(-b, c, (y * x)) * z;
                	double tmp;
                	if (z <= -9e+151) {
                		tmp = t_1;
                	} else if (z <= 1.6e-148) {
                		tmp = fma((i * a), b, (fma(-x, a, (j * c)) * t));
                	} else if (z <= 2.25e+30) {
                		tmp = fma((-t * x), a, (fma(-i, j, (z * x)) * y));
                	} else {
                		tmp = t_1;
                	}
                	return tmp;
                }
                
                function code(x, y, z, t, a, b, c, i, j)
                	t_1 = Float64(fma(Float64(-b), c, Float64(y * x)) * z)
                	tmp = 0.0
                	if (z <= -9e+151)
                		tmp = t_1;
                	elseif (z <= 1.6e-148)
                		tmp = fma(Float64(i * a), b, Float64(fma(Float64(-x), a, Float64(j * c)) * t));
                	elseif (z <= 2.25e+30)
                		tmp = fma(Float64(Float64(-t) * x), a, Float64(fma(Float64(-i), j, Float64(z * x)) * y));
                	else
                		tmp = t_1;
                	end
                	return tmp
                end
                
                code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -9e+151], t$95$1, If[LessEqual[z, 1.6e-148], N[(N[(i * a), $MachinePrecision] * b + N[(N[((-x) * a + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.25e+30], N[(N[((-t) * x), $MachinePrecision] * a + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
                \mathbf{if}\;z \leq -9 \cdot 10^{+151}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;z \leq 1.6 \cdot 10^{-148}:\\
                \;\;\;\;\mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\right)\\
                
                \mathbf{elif}\;z \leq 2.25 \cdot 10^{+30}:\\
                \;\;\;\;\mathsf{fma}\left(\left(-t\right) \cdot x, a, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\\
                
                \mathbf{else}:\\
                \;\;\;\;t\_1\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 3 regimes
                2. if z < -8.9999999999999997e151 or 2.24999999999999997e30 < z

                  1. Initial program 58.5%

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

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

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

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

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

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

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

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

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

                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(b\right)}, c, x \cdot y\right) \cdot z \]
                    9. lower-neg.f64N/A

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

                      \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                    11. lower-*.f6471.4

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

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

                  if -8.9999999999999997e151 < z < 1.59999999999999997e-148

                  1. Initial program 75.4%

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

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

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

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

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

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

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

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

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

                    \[\leadsto \mathsf{fma}\left(a \cdot i, b, \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\right) \]
                  7. Step-by-step derivation
                    1. Applied rewrites73.0%

                      \[\leadsto \mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\right) \]

                    if 1.59999999999999997e-148 < z < 2.24999999999999997e30

                    1. Initial program 77.9%

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

                      \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + \left(c \cdot \left(j \cdot t\right) + y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right)} \]
                    4. Applied rewrites82.8%

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

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

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

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

                          \[\leadsto \mathsf{fma}\left(\left(-t\right) \cdot x, a, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right) \]
                      4. Recombined 3 regimes into one program.
                      5. Final simplification71.1%

                        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -9 \cdot 10^{+151}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{elif}\;z \leq 1.6 \cdot 10^{-148}:\\ \;\;\;\;\mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\right)\\ \mathbf{elif}\;z \leq 2.25 \cdot 10^{+30}:\\ \;\;\;\;\mathsf{fma}\left(\left(-t\right) \cdot x, a, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \end{array} \]
                      6. Add Preprocessing

                      Alternative 7: 51.4% accurate, 1.4× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i\\ \mathbf{if}\;i \leq -2.35 \cdot 10^{+58}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;i \leq -9.5 \cdot 10^{-99}:\\ \;\;\;\;\mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\ \mathbf{elif}\;i \leq 1.6 \cdot 10^{+34}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{elif}\;i \leq 9 \cdot 10^{+135}:\\ \;\;\;\;\mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                      (FPCore (x y z t a b c i j)
                       :precision binary64
                       (let* ((t_1 (* (fma (- y) j (* b a)) i)))
                         (if (<= i -2.35e+58)
                           t_1
                           (if (<= i -9.5e-99)
                             (* (fma (- t) a (* z y)) x)
                             (if (<= i 1.6e+34)
                               (* (fma (- b) c (* y x)) z)
                               (if (<= i 9e+135) (* (fma (- x) t (* i b)) a) t_1))))))
                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                      	double t_1 = fma(-y, j, (b * a)) * i;
                      	double tmp;
                      	if (i <= -2.35e+58) {
                      		tmp = t_1;
                      	} else if (i <= -9.5e-99) {
                      		tmp = fma(-t, a, (z * y)) * x;
                      	} else if (i <= 1.6e+34) {
                      		tmp = fma(-b, c, (y * x)) * z;
                      	} else if (i <= 9e+135) {
                      		tmp = fma(-x, t, (i * b)) * a;
                      	} else {
                      		tmp = t_1;
                      	}
                      	return tmp;
                      }
                      
                      function code(x, y, z, t, a, b, c, i, j)
                      	t_1 = Float64(fma(Float64(-y), j, Float64(b * a)) * i)
                      	tmp = 0.0
                      	if (i <= -2.35e+58)
                      		tmp = t_1;
                      	elseif (i <= -9.5e-99)
                      		tmp = Float64(fma(Float64(-t), a, Float64(z * y)) * x);
                      	elseif (i <= 1.6e+34)
                      		tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z);
                      	elseif (i <= 9e+135)
                      		tmp = Float64(fma(Float64(-x), t, Float64(i * b)) * a);
                      	else
                      		tmp = t_1;
                      	end
                      	return tmp
                      end
                      
                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[i, -2.35e+58], t$95$1, If[LessEqual[i, -9.5e-99], N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[i, 1.6e+34], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[i, 9e+135], N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      t_1 := \mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i\\
                      \mathbf{if}\;i \leq -2.35 \cdot 10^{+58}:\\
                      \;\;\;\;t\_1\\
                      
                      \mathbf{elif}\;i \leq -9.5 \cdot 10^{-99}:\\
                      \;\;\;\;\mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\
                      
                      \mathbf{elif}\;i \leq 1.6 \cdot 10^{+34}:\\
                      \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
                      
                      \mathbf{elif}\;i \leq 9 \cdot 10^{+135}:\\
                      \;\;\;\;\mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;t\_1\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 4 regimes
                      2. if i < -2.34999999999999986e58 or 9.00000000000000014e135 < i

                        1. Initial program 58.4%

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

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

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

                            \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(a \cdot b\right)\right) \cdot i} \]
                          3. sub-negN/A

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

                            \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \cdot i \]
                          5. associate-*r*N/A

                            \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \cdot i \]
                          6. mul-1-negN/A

                            \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(a \cdot b\right)\right)}\right)\right)\right) \cdot i \]
                          7. remove-double-negN/A

                            \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{a \cdot b}\right) \cdot i \]
                          8. lower-fma.f64N/A

                            \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, a \cdot b\right)} \cdot i \]
                          9. mul-1-negN/A

                            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, a \cdot b\right) \cdot i \]
                          10. lower-neg.f64N/A

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

                            \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot a}\right) \cdot i \]
                          12. lower-*.f6477.4

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

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

                        if -2.34999999999999986e58 < i < -9.5000000000000008e-99

                        1. Initial program 76.0%

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

                          \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + \left(c \cdot \left(j \cdot t\right) + y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right)} \]
                        4. Applied rewrites81.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        if -9.5000000000000008e-99 < i < 1.5999999999999999e34

                        1. Initial program 76.5%

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

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

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

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

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

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

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

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

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

                            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(b\right)}, c, x \cdot y\right) \cdot z \]
                          9. lower-neg.f64N/A

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

                            \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                          11. lower-*.f6456.1

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

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

                        if 1.5999999999999999e34 < i < 9.00000000000000014e135

                        1. Initial program 69.9%

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \mathsf{fma}\left(-x, t, \color{blue}{i \cdot b}\right) \cdot a \]
                          12. lower-*.f6459.2

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

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

                      Alternative 8: 60.3% accurate, 1.5× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -9 \cdot 10^{+151} \lor \neg \left(z \leq 5.8 \cdot 10^{+31}\right):\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\right)\\ \end{array} \end{array} \]
                      (FPCore (x y z t a b c i j)
                       :precision binary64
                       (if (or (<= z -9e+151) (not (<= z 5.8e+31)))
                         (* (fma (- b) c (* y x)) z)
                         (fma (* i a) b (* (fma (- x) a (* j c)) t))))
                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                      	double tmp;
                      	if ((z <= -9e+151) || !(z <= 5.8e+31)) {
                      		tmp = fma(-b, c, (y * x)) * z;
                      	} else {
                      		tmp = fma((i * a), b, (fma(-x, a, (j * c)) * t));
                      	}
                      	return tmp;
                      }
                      
                      function code(x, y, z, t, a, b, c, i, j)
                      	tmp = 0.0
                      	if ((z <= -9e+151) || !(z <= 5.8e+31))
                      		tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z);
                      	else
                      		tmp = fma(Float64(i * a), b, Float64(fma(Float64(-x), a, Float64(j * c)) * t));
                      	end
                      	return tmp
                      end
                      
                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -9e+151], N[Not[LessEqual[z, 5.8e+31]], $MachinePrecision]], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], N[(N[(i * a), $MachinePrecision] * b + N[(N[((-x) * a + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      \mathbf{if}\;z \leq -9 \cdot 10^{+151} \lor \neg \left(z \leq 5.8 \cdot 10^{+31}\right):\\
                      \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;\mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\right)\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 2 regimes
                      2. if z < -8.9999999999999997e151 or 5.8000000000000001e31 < z

                        1. Initial program 58.5%

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

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

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

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

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

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

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

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

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

                            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(b\right)}, c, x \cdot y\right) \cdot z \]
                          9. lower-neg.f64N/A

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

                            \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                          11. lower-*.f6471.4

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

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

                        if -8.9999999999999997e151 < z < 5.8000000000000001e31

                        1. Initial program 76.0%

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

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

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

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

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

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

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

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

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

                          \[\leadsto \mathsf{fma}\left(a \cdot i, b, \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\right) \]
                        7. Step-by-step derivation
                          1. Applied rewrites67.4%

                            \[\leadsto \mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\right) \]
                        8. Recombined 2 regimes into one program.
                        9. Final simplification68.8%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -9 \cdot 10^{+151} \lor \neg \left(z \leq 5.8 \cdot 10^{+31}\right):\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\right)\\ \end{array} \]
                        10. Add Preprocessing

                        Alternative 9: 51.4% accurate, 1.6× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{if}\;z \leq -7000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.25 \cdot 10^{-148}:\\ \;\;\;\;\mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\\ \mathbf{elif}\;z \leq 8 \cdot 10^{+176}:\\ \;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                        (FPCore (x y z t a b c i j)
                         :precision binary64
                         (let* ((t_1 (* (fma (- b) c (* y x)) z)))
                           (if (<= z -7000000.0)
                             t_1
                             (if (<= z 1.25e-148)
                               (* (fma (- x) a (* j c)) t)
                               (if (<= z 8e+176) (* (fma (- i) j (* z x)) y) t_1)))))
                        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                        	double t_1 = fma(-b, c, (y * x)) * z;
                        	double tmp;
                        	if (z <= -7000000.0) {
                        		tmp = t_1;
                        	} else if (z <= 1.25e-148) {
                        		tmp = fma(-x, a, (j * c)) * t;
                        	} else if (z <= 8e+176) {
                        		tmp = fma(-i, j, (z * x)) * y;
                        	} else {
                        		tmp = t_1;
                        	}
                        	return tmp;
                        }
                        
                        function code(x, y, z, t, a, b, c, i, j)
                        	t_1 = Float64(fma(Float64(-b), c, Float64(y * x)) * z)
                        	tmp = 0.0
                        	if (z <= -7000000.0)
                        		tmp = t_1;
                        	elseif (z <= 1.25e-148)
                        		tmp = Float64(fma(Float64(-x), a, Float64(j * c)) * t);
                        	elseif (z <= 8e+176)
                        		tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y);
                        	else
                        		tmp = t_1;
                        	end
                        	return tmp
                        end
                        
                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -7000000.0], t$95$1, If[LessEqual[z, 1.25e-148], N[(N[((-x) * a + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, 8e+176], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        t_1 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
                        \mathbf{if}\;z \leq -7000000:\\
                        \;\;\;\;t\_1\\
                        
                        \mathbf{elif}\;z \leq 1.25 \cdot 10^{-148}:\\
                        \;\;\;\;\mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\\
                        
                        \mathbf{elif}\;z \leq 8 \cdot 10^{+176}:\\
                        \;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;t\_1\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 3 regimes
                        2. if z < -7e6 or 8.0000000000000001e176 < z

                          1. Initial program 64.3%

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

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

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

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

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

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

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

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

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

                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(b\right)}, c, x \cdot y\right) \cdot z \]
                            9. lower-neg.f64N/A

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

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

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

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

                          if -7e6 < z < 1.25e-148

                          1. Initial program 76.5%

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

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

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

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

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

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

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

                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(x\right)}, a, c \cdot j\right) \cdot t \]
                            7. lower-neg.f64N/A

                              \[\leadsto \mathsf{fma}\left(\color{blue}{-x}, a, c \cdot j\right) \cdot t \]
                            8. *-commutativeN/A

                              \[\leadsto \mathsf{fma}\left(-x, a, \color{blue}{j \cdot c}\right) \cdot t \]
                            9. lower-*.f6457.3

                              \[\leadsto \mathsf{fma}\left(-x, a, \color{blue}{j \cdot c}\right) \cdot t \]
                          5. Applied rewrites57.3%

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

                          if 1.25e-148 < z < 8.0000000000000001e176

                          1. Initial program 70.4%

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

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

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

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

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

                              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, j, x \cdot z\right)} \cdot y \]
                            5. neg-mul-1N/A

                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, j, x \cdot z\right) \cdot y \]
                            6. lower-neg.f64N/A

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

                              \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                            8. lower-*.f6448.6

                              \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                          5. Applied rewrites48.6%

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

                        Alternative 10: 42.4% accurate, 1.6× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;i \leq -8 \cdot 10^{+78}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{elif}\;i \leq 13500000:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{elif}\;i \leq 2.1 \cdot 10^{+173}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;\left(b \cdot a\right) \cdot i\\ \end{array} \end{array} \]
                        (FPCore (x y z t a b c i j)
                         :precision binary64
                         (if (<= i -8e+78)
                           (* (* i b) a)
                           (if (<= i 13500000.0)
                             (* (fma (- b) c (* y x)) z)
                             (if (<= i 2.1e+173) (* (fma (- i) y (* c t)) j) (* (* b a) i)))))
                        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                        	double tmp;
                        	if (i <= -8e+78) {
                        		tmp = (i * b) * a;
                        	} else if (i <= 13500000.0) {
                        		tmp = fma(-b, c, (y * x)) * z;
                        	} else if (i <= 2.1e+173) {
                        		tmp = fma(-i, y, (c * t)) * j;
                        	} else {
                        		tmp = (b * a) * i;
                        	}
                        	return tmp;
                        }
                        
                        function code(x, y, z, t, a, b, c, i, j)
                        	tmp = 0.0
                        	if (i <= -8e+78)
                        		tmp = Float64(Float64(i * b) * a);
                        	elseif (i <= 13500000.0)
                        		tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z);
                        	elseif (i <= 2.1e+173)
                        		tmp = Float64(fma(Float64(-i), y, Float64(c * t)) * j);
                        	else
                        		tmp = Float64(Float64(b * a) * i);
                        	end
                        	return tmp
                        end
                        
                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -8e+78], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[i, 13500000.0], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[i, 2.1e+173], N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision]]]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        \mathbf{if}\;i \leq -8 \cdot 10^{+78}:\\
                        \;\;\;\;\left(i \cdot b\right) \cdot a\\
                        
                        \mathbf{elif}\;i \leq 13500000:\\
                        \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
                        
                        \mathbf{elif}\;i \leq 2.1 \cdot 10^{+173}:\\
                        \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;\left(b \cdot a\right) \cdot i\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 4 regimes
                        2. if i < -8.00000000000000007e78

                          1. Initial program 57.3%

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

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

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

                              \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(a \cdot b\right)\right) \cdot i} \]
                            3. sub-negN/A

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

                              \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \cdot i \]
                            5. associate-*r*N/A

                              \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \cdot i \]
                            6. mul-1-negN/A

                              \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(a \cdot b\right)\right)}\right)\right)\right) \cdot i \]
                            7. remove-double-negN/A

                              \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{a \cdot b}\right) \cdot i \]
                            8. lower-fma.f64N/A

                              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, a \cdot b\right)} \cdot i \]
                            9. mul-1-negN/A

                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, a \cdot b\right) \cdot i \]
                            10. lower-neg.f64N/A

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

                              \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot a}\right) \cdot i \]
                            12. lower-*.f6478.9

                              \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot a}\right) \cdot i \]
                          5. Applied rewrites78.9%

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

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

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

                            if -8.00000000000000007e78 < i < 1.35e7

                            1. Initial program 75.8%

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

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

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

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

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

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

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

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

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

                                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(b\right)}, c, x \cdot y\right) \cdot z \]
                              9. lower-neg.f64N/A

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

                                \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                              11. lower-*.f6452.1

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

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

                            if 1.35e7 < i < 2.1e173

                            1. Initial program 77.1%

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

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

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

                              \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)} \]
                            6. Step-by-step derivation
                              1. *-commutativeN/A

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

                                \[\leadsto \color{blue}{\left(c \cdot t - i \cdot y\right) \cdot j} \]
                              3. sub-negN/A

                                \[\leadsto \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \cdot j \]
                              4. mul-1-negN/A

                                \[\leadsto \left(c \cdot t + \color{blue}{-1 \cdot \left(i \cdot y\right)}\right) \cdot j \]
                              5. +-commutativeN/A

                                \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot y\right) + c \cdot t\right)} \cdot j \]
                              6. associate-*r*N/A

                                \[\leadsto \left(\color{blue}{\left(-1 \cdot i\right) \cdot y} + c \cdot t\right) \cdot j \]
                              7. lower-fma.f64N/A

                                \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, y, c \cdot t\right)} \cdot j \]
                              8. mul-1-negN/A

                                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, y, c \cdot t\right) \cdot j \]
                              9. lower-neg.f64N/A

                                \[\leadsto \mathsf{fma}\left(\color{blue}{-i}, y, c \cdot t\right) \cdot j \]
                              10. lower-*.f6455.5

                                \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot t}\right) \cdot j \]
                            7. Applied rewrites55.5%

                              \[\leadsto \color{blue}{\mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j} \]

                            if 2.1e173 < i

                            1. Initial program 44.9%

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

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

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

                                \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(a \cdot b\right)\right) \cdot i} \]
                              3. sub-negN/A

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

                                \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \cdot i \]
                              5. associate-*r*N/A

                                \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \cdot i \]
                              6. mul-1-negN/A

                                \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(a \cdot b\right)\right)}\right)\right)\right) \cdot i \]
                              7. remove-double-negN/A

                                \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{a \cdot b}\right) \cdot i \]
                              8. lower-fma.f64N/A

                                \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, a \cdot b\right)} \cdot i \]
                              9. mul-1-negN/A

                                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, a \cdot b\right) \cdot i \]
                              10. lower-neg.f64N/A

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

                                \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot a}\right) \cdot i \]
                              12. lower-*.f6476.4

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

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

                              \[\leadsto \left(a \cdot b\right) \cdot i \]
                            7. Step-by-step derivation
                              1. Applied rewrites56.5%

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

                            Alternative 11: 52.2% accurate, 2.0× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -3.05 \cdot 10^{+156} \lor \neg \left(z \leq 7.5 \cdot 10^{+30}\right):\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\ \end{array} \end{array} \]
                            (FPCore (x y z t a b c i j)
                             :precision binary64
                             (if (or (<= z -3.05e+156) (not (<= z 7.5e+30)))
                               (* (fma (- b) c (* y x)) z)
                               (* (fma (- x) t (* i b)) a)))
                            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                            	double tmp;
                            	if ((z <= -3.05e+156) || !(z <= 7.5e+30)) {
                            		tmp = fma(-b, c, (y * x)) * z;
                            	} else {
                            		tmp = fma(-x, t, (i * b)) * a;
                            	}
                            	return tmp;
                            }
                            
                            function code(x, y, z, t, a, b, c, i, j)
                            	tmp = 0.0
                            	if ((z <= -3.05e+156) || !(z <= 7.5e+30))
                            		tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z);
                            	else
                            		tmp = Float64(fma(Float64(-x), t, Float64(i * b)) * a);
                            	end
                            	return tmp
                            end
                            
                            code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -3.05e+156], N[Not[LessEqual[z, 7.5e+30]], $MachinePrecision]], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            \mathbf{if}\;z \leq -3.05 \cdot 10^{+156} \lor \neg \left(z \leq 7.5 \cdot 10^{+30}\right):\\
                            \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;\mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 2 regimes
                            2. if z < -3.0500000000000001e156 or 7.49999999999999973e30 < z

                              1. Initial program 59.2%

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(b\right)}, c, x \cdot y\right) \cdot z \]
                                9. lower-neg.f64N/A

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

                                  \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                11. lower-*.f6471.1

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

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

                              if -3.0500000000000001e156 < z < 7.49999999999999973e30

                              1. Initial program 75.5%

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \mathsf{fma}\left(-x, t, \color{blue}{i \cdot b}\right) \cdot a \]
                                12. lower-*.f6452.4

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

                                \[\leadsto \color{blue}{\mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a} \]
                            3. Recombined 2 regimes into one program.
                            4. Final simplification58.9%

                              \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.05 \cdot 10^{+156} \lor \neg \left(z \leq 7.5 \cdot 10^{+30}\right):\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\ \end{array} \]
                            5. Add Preprocessing

                            Alternative 12: 53.1% accurate, 2.0× speedup?

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

                              1. Initial program 70.6%

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

                                \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + \left(c \cdot \left(j \cdot t\right) + y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right)} \]
                              4. Applied rewrites68.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              if -3.5e37 < x < 6.8000000000000003e-10

                              1. Initial program 69.1%

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

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

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

                                \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)} \]
                              6. Step-by-step derivation
                                1. *-commutativeN/A

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

                                  \[\leadsto \color{blue}{\left(c \cdot t - i \cdot y\right) \cdot j} \]
                                3. sub-negN/A

                                  \[\leadsto \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \cdot j \]
                                4. mul-1-negN/A

                                  \[\leadsto \left(c \cdot t + \color{blue}{-1 \cdot \left(i \cdot y\right)}\right) \cdot j \]
                                5. +-commutativeN/A

                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot y\right) + c \cdot t\right)} \cdot j \]
                                6. associate-*r*N/A

                                  \[\leadsto \left(\color{blue}{\left(-1 \cdot i\right) \cdot y} + c \cdot t\right) \cdot j \]
                                7. lower-fma.f64N/A

                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, y, c \cdot t\right)} \cdot j \]
                                8. mul-1-negN/A

                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, y, c \cdot t\right) \cdot j \]
                                9. lower-neg.f64N/A

                                  \[\leadsto \mathsf{fma}\left(\color{blue}{-i}, y, c \cdot t\right) \cdot j \]
                                10. lower-*.f6439.7

                                  \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot t}\right) \cdot j \]
                              7. Applied rewrites39.7%

                                \[\leadsto \color{blue}{\mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j} \]
                            3. Recombined 2 regimes into one program.
                            4. Final simplification51.8%

                              \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -3.5 \cdot 10^{+37} \lor \neg \left(x \leq 6.8 \cdot 10^{-10}\right):\\ \;\;\;\;\mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\ \end{array} \]
                            5. Add Preprocessing

                            Alternative 13: 41.5% accurate, 2.0× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;i \leq -8 \cdot 10^{+78} \lor \neg \left(i \leq 8.2 \cdot 10^{+36}\right):\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \end{array} \end{array} \]
                            (FPCore (x y z t a b c i j)
                             :precision binary64
                             (if (or (<= i -8e+78) (not (<= i 8.2e+36)))
                               (* (* i b) a)
                               (* (fma (- b) c (* y x)) z)))
                            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                            	double tmp;
                            	if ((i <= -8e+78) || !(i <= 8.2e+36)) {
                            		tmp = (i * b) * a;
                            	} else {
                            		tmp = fma(-b, c, (y * x)) * z;
                            	}
                            	return tmp;
                            }
                            
                            function code(x, y, z, t, a, b, c, i, j)
                            	tmp = 0.0
                            	if ((i <= -8e+78) || !(i <= 8.2e+36))
                            		tmp = Float64(Float64(i * b) * a);
                            	else
                            		tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z);
                            	end
                            	return tmp
                            end
                            
                            code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -8e+78], N[Not[LessEqual[i, 8.2e+36]], $MachinePrecision]], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            \mathbf{if}\;i \leq -8 \cdot 10^{+78} \lor \neg \left(i \leq 8.2 \cdot 10^{+36}\right):\\
                            \;\;\;\;\left(i \cdot b\right) \cdot a\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 2 regimes
                            2. if i < -8.00000000000000007e78 or 8.20000000000000026e36 < i

                              1. Initial program 59.2%

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

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

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

                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(a \cdot b\right)\right) \cdot i} \]
                                3. sub-negN/A

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

                                  \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \cdot i \]
                                5. associate-*r*N/A

                                  \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \cdot i \]
                                6. mul-1-negN/A

                                  \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(a \cdot b\right)\right)}\right)\right)\right) \cdot i \]
                                7. remove-double-negN/A

                                  \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{a \cdot b}\right) \cdot i \]
                                8. lower-fma.f64N/A

                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, a \cdot b\right)} \cdot i \]
                                9. mul-1-negN/A

                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, a \cdot b\right) \cdot i \]
                                10. lower-neg.f64N/A

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

                                  \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot a}\right) \cdot i \]
                                12. lower-*.f6472.3

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

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

                                \[\leadsto a \cdot \color{blue}{\left(b \cdot i\right)} \]
                              7. Step-by-step derivation
                                1. Applied rewrites50.4%

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

                                if -8.00000000000000007e78 < i < 8.20000000000000026e36

                                1. Initial program 76.7%

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(b\right)}, c, x \cdot y\right) \cdot z \]
                                  9. lower-neg.f64N/A

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

                                    \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                  11. lower-*.f6452.0

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

                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z} \]
                              8. Recombined 2 regimes into one program.
                              9. Final simplification51.4%

                                \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -8 \cdot 10^{+78} \lor \neg \left(i \leq 8.2 \cdot 10^{+36}\right):\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \end{array} \]
                              10. Add Preprocessing

                              Alternative 14: 29.3% accurate, 2.1× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -8 \cdot 10^{+27}:\\ \;\;\;\;\left(b \cdot a\right) \cdot i\\ \mathbf{elif}\;b \leq -4.2 \cdot 10^{-202}:\\ \;\;\;\;\left(c \cdot j\right) \cdot t\\ \mathbf{elif}\;b \leq 5 \cdot 10^{+63}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \end{array} \end{array} \]
                              (FPCore (x y z t a b c i j)
                               :precision binary64
                               (if (<= b -8e+27)
                                 (* (* b a) i)
                                 (if (<= b -4.2e-202)
                                   (* (* c j) t)
                                   (if (<= b 5e+63) (* (* z x) y) (* (* i b) a)))))
                              double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                              	double tmp;
                              	if (b <= -8e+27) {
                              		tmp = (b * a) * i;
                              	} else if (b <= -4.2e-202) {
                              		tmp = (c * j) * t;
                              	} else if (b <= 5e+63) {
                              		tmp = (z * x) * y;
                              	} else {
                              		tmp = (i * b) * a;
                              	}
                              	return tmp;
                              }
                              
                              real(8) function code(x, y, z, t, a, b, c, i, j)
                                  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), intent (in) :: c
                                  real(8), intent (in) :: i
                                  real(8), intent (in) :: j
                                  real(8) :: tmp
                                  if (b <= (-8d+27)) then
                                      tmp = (b * a) * i
                                  else if (b <= (-4.2d-202)) then
                                      tmp = (c * j) * t
                                  else if (b <= 5d+63) then
                                      tmp = (z * x) * y
                                  else
                                      tmp = (i * b) * a
                                  end if
                                  code = tmp
                              end function
                              
                              public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                              	double tmp;
                              	if (b <= -8e+27) {
                              		tmp = (b * a) * i;
                              	} else if (b <= -4.2e-202) {
                              		tmp = (c * j) * t;
                              	} else if (b <= 5e+63) {
                              		tmp = (z * x) * y;
                              	} else {
                              		tmp = (i * b) * a;
                              	}
                              	return tmp;
                              }
                              
                              def code(x, y, z, t, a, b, c, i, j):
                              	tmp = 0
                              	if b <= -8e+27:
                              		tmp = (b * a) * i
                              	elif b <= -4.2e-202:
                              		tmp = (c * j) * t
                              	elif b <= 5e+63:
                              		tmp = (z * x) * y
                              	else:
                              		tmp = (i * b) * a
                              	return tmp
                              
                              function code(x, y, z, t, a, b, c, i, j)
                              	tmp = 0.0
                              	if (b <= -8e+27)
                              		tmp = Float64(Float64(b * a) * i);
                              	elseif (b <= -4.2e-202)
                              		tmp = Float64(Float64(c * j) * t);
                              	elseif (b <= 5e+63)
                              		tmp = Float64(Float64(z * x) * y);
                              	else
                              		tmp = Float64(Float64(i * b) * a);
                              	end
                              	return tmp
                              end
                              
                              function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                              	tmp = 0.0;
                              	if (b <= -8e+27)
                              		tmp = (b * a) * i;
                              	elseif (b <= -4.2e-202)
                              		tmp = (c * j) * t;
                              	elseif (b <= 5e+63)
                              		tmp = (z * x) * y;
                              	else
                              		tmp = (i * b) * a;
                              	end
                              	tmp_2 = tmp;
                              end
                              
                              code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -8e+27], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[b, -4.2e-202], N[(N[(c * j), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[b, 5e+63], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision]]]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              \mathbf{if}\;b \leq -8 \cdot 10^{+27}:\\
                              \;\;\;\;\left(b \cdot a\right) \cdot i\\
                              
                              \mathbf{elif}\;b \leq -4.2 \cdot 10^{-202}:\\
                              \;\;\;\;\left(c \cdot j\right) \cdot t\\
                              
                              \mathbf{elif}\;b \leq 5 \cdot 10^{+63}:\\
                              \;\;\;\;\left(z \cdot x\right) \cdot y\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;\left(i \cdot b\right) \cdot a\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 4 regimes
                              2. if b < -8.0000000000000001e27

                                1. Initial program 73.2%

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

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

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

                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(a \cdot b\right)\right) \cdot i} \]
                                  3. sub-negN/A

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

                                    \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \cdot i \]
                                  5. associate-*r*N/A

                                    \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \cdot i \]
                                  6. mul-1-negN/A

                                    \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(a \cdot b\right)\right)}\right)\right)\right) \cdot i \]
                                  7. remove-double-negN/A

                                    \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{a \cdot b}\right) \cdot i \]
                                  8. lower-fma.f64N/A

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, a \cdot b\right)} \cdot i \]
                                  9. mul-1-negN/A

                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, a \cdot b\right) \cdot i \]
                                  10. lower-neg.f64N/A

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

                                    \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot a}\right) \cdot i \]
                                  12. lower-*.f6450.4

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

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

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

                                    \[\leadsto \left(b \cdot a\right) \cdot i \]

                                  if -8.0000000000000001e27 < b < -4.1999999999999997e-202

                                  1. Initial program 61.7%

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

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

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

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

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

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

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

                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(x\right)}, a, c \cdot j\right) \cdot t \]
                                    7. lower-neg.f64N/A

                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-x}, a, c \cdot j\right) \cdot t \]
                                    8. *-commutativeN/A

                                      \[\leadsto \mathsf{fma}\left(-x, a, \color{blue}{j \cdot c}\right) \cdot t \]
                                    9. lower-*.f6452.3

                                      \[\leadsto \mathsf{fma}\left(-x, a, \color{blue}{j \cdot c}\right) \cdot t \]
                                  5. Applied rewrites52.3%

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

                                    \[\leadsto \left(c \cdot j\right) \cdot t \]
                                  7. Step-by-step derivation
                                    1. Applied rewrites34.4%

                                      \[\leadsto \left(c \cdot j\right) \cdot t \]

                                    if -4.1999999999999997e-202 < b < 5.00000000000000011e63

                                    1. Initial program 69.1%

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(b\right)}, c, x \cdot y\right) \cdot z \]
                                      9. lower-neg.f64N/A

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

                                        \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                      11. lower-*.f6438.9

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

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

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

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

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

                                        if 5.00000000000000011e63 < b

                                        1. Initial program 73.5%

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

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

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

                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(a \cdot b\right)\right) \cdot i} \]
                                          3. sub-negN/A

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

                                            \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \cdot i \]
                                          5. associate-*r*N/A

                                            \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \cdot i \]
                                          6. mul-1-negN/A

                                            \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(a \cdot b\right)\right)}\right)\right)\right) \cdot i \]
                                          7. remove-double-negN/A

                                            \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{a \cdot b}\right) \cdot i \]
                                          8. lower-fma.f64N/A

                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, a \cdot b\right)} \cdot i \]
                                          9. mul-1-negN/A

                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, a \cdot b\right) \cdot i \]
                                          10. lower-neg.f64N/A

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

                                            \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot a}\right) \cdot i \]
                                          12. lower-*.f6462.3

                                            \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot a}\right) \cdot i \]
                                        5. Applied rewrites62.3%

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

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

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

                                        Alternative 15: 29.6% accurate, 2.6× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;i \leq -1.7 \cdot 10^{+69} \lor \neg \left(i \leq 1.45 \cdot 10^{+21}\right):\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a b c i j)
                                         :precision binary64
                                         (if (or (<= i -1.7e+69) (not (<= i 1.45e+21))) (* (* i b) a) (* (* y x) z)))
                                        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                        	double tmp;
                                        	if ((i <= -1.7e+69) || !(i <= 1.45e+21)) {
                                        		tmp = (i * b) * a;
                                        	} else {
                                        		tmp = (y * x) * z;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        real(8) function code(x, y, z, t, a, b, c, i, j)
                                            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), intent (in) :: c
                                            real(8), intent (in) :: i
                                            real(8), intent (in) :: j
                                            real(8) :: tmp
                                            if ((i <= (-1.7d+69)) .or. (.not. (i <= 1.45d+21))) then
                                                tmp = (i * b) * a
                                            else
                                                tmp = (y * x) * z
                                            end if
                                            code = tmp
                                        end function
                                        
                                        public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                        	double tmp;
                                        	if ((i <= -1.7e+69) || !(i <= 1.45e+21)) {
                                        		tmp = (i * b) * a;
                                        	} else {
                                        		tmp = (y * x) * z;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        def code(x, y, z, t, a, b, c, i, j):
                                        	tmp = 0
                                        	if (i <= -1.7e+69) or not (i <= 1.45e+21):
                                        		tmp = (i * b) * a
                                        	else:
                                        		tmp = (y * x) * z
                                        	return tmp
                                        
                                        function code(x, y, z, t, a, b, c, i, j)
                                        	tmp = 0.0
                                        	if ((i <= -1.7e+69) || !(i <= 1.45e+21))
                                        		tmp = Float64(Float64(i * b) * a);
                                        	else
                                        		tmp = Float64(Float64(y * x) * z);
                                        	end
                                        	return tmp
                                        end
                                        
                                        function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                        	tmp = 0.0;
                                        	if ((i <= -1.7e+69) || ~((i <= 1.45e+21)))
                                        		tmp = (i * b) * a;
                                        	else
                                        		tmp = (y * x) * z;
                                        	end
                                        	tmp_2 = tmp;
                                        end
                                        
                                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -1.7e+69], N[Not[LessEqual[i, 1.45e+21]], $MachinePrecision]], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        \mathbf{if}\;i \leq -1.7 \cdot 10^{+69} \lor \neg \left(i \leq 1.45 \cdot 10^{+21}\right):\\
                                        \;\;\;\;\left(i \cdot b\right) \cdot a\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;\left(y \cdot x\right) \cdot z\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 2 regimes
                                        2. if i < -1.69999999999999993e69 or 1.45e21 < i

                                          1. Initial program 61.3%

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

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

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

                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(a \cdot b\right)\right) \cdot i} \]
                                            3. sub-negN/A

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

                                              \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \cdot i \]
                                            5. associate-*r*N/A

                                              \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \cdot i \]
                                            6. mul-1-negN/A

                                              \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(a \cdot b\right)\right)}\right)\right)\right) \cdot i \]
                                            7. remove-double-negN/A

                                              \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{a \cdot b}\right) \cdot i \]
                                            8. lower-fma.f64N/A

                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, a \cdot b\right)} \cdot i \]
                                            9. mul-1-negN/A

                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, a \cdot b\right) \cdot i \]
                                            10. lower-neg.f64N/A

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

                                              \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot a}\right) \cdot i \]
                                            12. lower-*.f6470.8

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

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

                                            \[\leadsto a \cdot \color{blue}{\left(b \cdot i\right)} \]
                                          7. Step-by-step derivation
                                            1. Applied rewrites49.5%

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

                                            if -1.69999999999999993e69 < i < 1.45e21

                                            1. Initial program 76.1%

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

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

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

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

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

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

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

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

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

                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(b\right)}, c, x \cdot y\right) \cdot z \]
                                              9. lower-neg.f64N/A

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

                                                \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                              11. lower-*.f6452.0

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

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

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

                                                \[\leadsto \left(y \cdot x\right) \cdot z \]
                                            8. Recombined 2 regimes into one program.
                                            9. Final simplification41.0%

                                              \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -1.7 \cdot 10^{+69} \lor \neg \left(i \leq 1.45 \cdot 10^{+21}\right):\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \end{array} \]
                                            10. Add Preprocessing

                                            Alternative 16: 29.7% accurate, 2.6× speedup?

                                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -50000 \lor \neg \left(b \leq 5 \cdot 10^{+63}\right):\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \end{array} \end{array} \]
                                            (FPCore (x y z t a b c i j)
                                             :precision binary64
                                             (if (or (<= b -50000.0) (not (<= b 5e+63))) (* (* i b) a) (* (* z x) y)))
                                            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                            	double tmp;
                                            	if ((b <= -50000.0) || !(b <= 5e+63)) {
                                            		tmp = (i * b) * a;
                                            	} else {
                                            		tmp = (z * x) * y;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            real(8) function code(x, y, z, t, a, b, c, i, j)
                                                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), intent (in) :: c
                                                real(8), intent (in) :: i
                                                real(8), intent (in) :: j
                                                real(8) :: tmp
                                                if ((b <= (-50000.0d0)) .or. (.not. (b <= 5d+63))) then
                                                    tmp = (i * b) * a
                                                else
                                                    tmp = (z * x) * y
                                                end if
                                                code = tmp
                                            end function
                                            
                                            public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                            	double tmp;
                                            	if ((b <= -50000.0) || !(b <= 5e+63)) {
                                            		tmp = (i * b) * a;
                                            	} else {
                                            		tmp = (z * x) * y;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            def code(x, y, z, t, a, b, c, i, j):
                                            	tmp = 0
                                            	if (b <= -50000.0) or not (b <= 5e+63):
                                            		tmp = (i * b) * a
                                            	else:
                                            		tmp = (z * x) * y
                                            	return tmp
                                            
                                            function code(x, y, z, t, a, b, c, i, j)
                                            	tmp = 0.0
                                            	if ((b <= -50000.0) || !(b <= 5e+63))
                                            		tmp = Float64(Float64(i * b) * a);
                                            	else
                                            		tmp = Float64(Float64(z * x) * y);
                                            	end
                                            	return tmp
                                            end
                                            
                                            function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                            	tmp = 0.0;
                                            	if ((b <= -50000.0) || ~((b <= 5e+63)))
                                            		tmp = (i * b) * a;
                                            	else
                                            		tmp = (z * x) * y;
                                            	end
                                            	tmp_2 = tmp;
                                            end
                                            
                                            code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -50000.0], N[Not[LessEqual[b, 5e+63]], $MachinePrecision]], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            \begin{array}{l}
                                            \mathbf{if}\;b \leq -50000 \lor \neg \left(b \leq 5 \cdot 10^{+63}\right):\\
                                            \;\;\;\;\left(i \cdot b\right) \cdot a\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;\left(z \cdot x\right) \cdot y\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            
                                            Derivation
                                            1. Split input into 2 regimes
                                            2. if b < -5e4 or 5.00000000000000011e63 < b

                                              1. Initial program 73.2%

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

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

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

                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(a \cdot b\right)\right) \cdot i} \]
                                                3. sub-negN/A

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

                                                  \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \cdot i \]
                                                5. associate-*r*N/A

                                                  \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \cdot i \]
                                                6. mul-1-negN/A

                                                  \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(a \cdot b\right)\right)}\right)\right)\right) \cdot i \]
                                                7. remove-double-negN/A

                                                  \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{a \cdot b}\right) \cdot i \]
                                                8. lower-fma.f64N/A

                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, a \cdot b\right)} \cdot i \]
                                                9. mul-1-negN/A

                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, a \cdot b\right) \cdot i \]
                                                10. lower-neg.f64N/A

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

                                                  \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot a}\right) \cdot i \]
                                                12. lower-*.f6454.1

                                                  \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot a}\right) \cdot i \]
                                              5. Applied rewrites54.1%

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

                                                \[\leadsto a \cdot \color{blue}{\left(b \cdot i\right)} \]
                                              7. Step-by-step derivation
                                                1. Applied rewrites48.4%

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

                                                if -5e4 < b < 5.00000000000000011e63

                                                1. Initial program 66.7%

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

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

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

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

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

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

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

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

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

                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(b\right)}, c, x \cdot y\right) \cdot z \]
                                                  9. lower-neg.f64N/A

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

                                                    \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                  11. lower-*.f6437.5

                                                    \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                5. Applied rewrites37.5%

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

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

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

                                                      \[\leadsto \left(z \cdot x\right) \cdot y \]
                                                  3. Recombined 2 regimes into one program.
                                                  4. Final simplification39.8%

                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -50000 \lor \neg \left(b \leq 5 \cdot 10^{+63}\right):\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \end{array} \]
                                                  5. Add Preprocessing

                                                  Alternative 17: 22.5% accurate, 3.6× speedup?

                                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq 5 \cdot 10^{-26}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \end{array} \end{array} \]
                                                  (FPCore (x y z t a b c i j)
                                                   :precision binary64
                                                   (if (<= t 5e-26) (* (* z y) x) (* (* z x) y)))
                                                  double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                  	double tmp;
                                                  	if (t <= 5e-26) {
                                                  		tmp = (z * y) * x;
                                                  	} else {
                                                  		tmp = (z * x) * y;
                                                  	}
                                                  	return tmp;
                                                  }
                                                  
                                                  real(8) function code(x, y, z, t, a, b, c, i, j)
                                                      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), intent (in) :: c
                                                      real(8), intent (in) :: i
                                                      real(8), intent (in) :: j
                                                      real(8) :: tmp
                                                      if (t <= 5d-26) then
                                                          tmp = (z * y) * x
                                                      else
                                                          tmp = (z * x) * y
                                                      end if
                                                      code = tmp
                                                  end function
                                                  
                                                  public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                  	double tmp;
                                                  	if (t <= 5e-26) {
                                                  		tmp = (z * y) * x;
                                                  	} else {
                                                  		tmp = (z * x) * y;
                                                  	}
                                                  	return tmp;
                                                  }
                                                  
                                                  def code(x, y, z, t, a, b, c, i, j):
                                                  	tmp = 0
                                                  	if t <= 5e-26:
                                                  		tmp = (z * y) * x
                                                  	else:
                                                  		tmp = (z * x) * y
                                                  	return tmp
                                                  
                                                  function code(x, y, z, t, a, b, c, i, j)
                                                  	tmp = 0.0
                                                  	if (t <= 5e-26)
                                                  		tmp = Float64(Float64(z * y) * x);
                                                  	else
                                                  		tmp = Float64(Float64(z * x) * y);
                                                  	end
                                                  	return tmp
                                                  end
                                                  
                                                  function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                  	tmp = 0.0;
                                                  	if (t <= 5e-26)
                                                  		tmp = (z * y) * x;
                                                  	else
                                                  		tmp = (z * x) * y;
                                                  	end
                                                  	tmp_2 = tmp;
                                                  end
                                                  
                                                  code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, 5e-26], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]]
                                                  
                                                  \begin{array}{l}
                                                  
                                                  \\
                                                  \begin{array}{l}
                                                  \mathbf{if}\;t \leq 5 \cdot 10^{-26}:\\
                                                  \;\;\;\;\left(z \cdot y\right) \cdot x\\
                                                  
                                                  \mathbf{else}:\\
                                                  \;\;\;\;\left(z \cdot x\right) \cdot y\\
                                                  
                                                  
                                                  \end{array}
                                                  \end{array}
                                                  
                                                  Derivation
                                                  1. Split input into 2 regimes
                                                  2. if t < 5.00000000000000019e-26

                                                    1. Initial program 73.9%

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

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

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

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

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

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

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

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

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

                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(b\right)}, c, x \cdot y\right) \cdot z \]
                                                      9. lower-neg.f64N/A

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

                                                        \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                      11. lower-*.f6441.3

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

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

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

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

                                                      if 5.00000000000000019e-26 < t

                                                      1. Initial program 57.0%

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

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

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

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

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

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

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

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

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

                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(b\right)}, c, x \cdot y\right) \cdot z \]
                                                        9. lower-neg.f64N/A

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

                                                          \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                        11. lower-*.f6430.2

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

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

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

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

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

                                                        Alternative 18: 22.5% accurate, 5.5× speedup?

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

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

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

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

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

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

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

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

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

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

                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(b\right)}, c, x \cdot y\right) \cdot z \]
                                                          9. lower-neg.f64N/A

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

                                                            \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                          11. lower-*.f6438.6

                                                            \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                        5. Applied rewrites38.6%

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

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

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

                                                              \[\leadsto \left(z \cdot x\right) \cdot y \]
                                                            2. Add Preprocessing

                                                            Developer Target 1: 68.6% accurate, 0.2× speedup?

                                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\ t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\ \mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                                                            (FPCore (x y z t a b c i j)
                                                             :precision binary64
                                                             (let* ((t_1
                                                                     (+
                                                                      (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
                                                                      (/
                                                                       (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
                                                                       (+ (* c t) (* i y)))))
                                                                    (t_2
                                                                     (-
                                                                      (* x (- (* z y) (* a t)))
                                                                      (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
                                                               (if (< t -8.120978919195912e-33)
                                                                 t_2
                                                                 (if (< t -4.712553818218485e-169)
                                                                   t_1
                                                                   (if (< t -7.633533346031584e-308)
                                                                     t_2
                                                                     (if (< t 1.0535888557455487e-139) t_1 t_2))))))
                                                            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                            	double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
                                                            	double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
                                                            	double tmp;
                                                            	if (t < -8.120978919195912e-33) {
                                                            		tmp = t_2;
                                                            	} else if (t < -4.712553818218485e-169) {
                                                            		tmp = t_1;
                                                            	} else if (t < -7.633533346031584e-308) {
                                                            		tmp = t_2;
                                                            	} else if (t < 1.0535888557455487e-139) {
                                                            		tmp = t_1;
                                                            	} else {
                                                            		tmp = t_2;
                                                            	}
                                                            	return tmp;
                                                            }
                                                            
                                                            real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                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), intent (in) :: c
                                                                real(8), intent (in) :: i
                                                                real(8), intent (in) :: j
                                                                real(8) :: t_1
                                                                real(8) :: t_2
                                                                real(8) :: tmp
                                                                t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
                                                                t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
                                                                if (t < (-8.120978919195912d-33)) then
                                                                    tmp = t_2
                                                                else if (t < (-4.712553818218485d-169)) then
                                                                    tmp = t_1
                                                                else if (t < (-7.633533346031584d-308)) then
                                                                    tmp = t_2
                                                                else if (t < 1.0535888557455487d-139) then
                                                                    tmp = t_1
                                                                else
                                                                    tmp = t_2
                                                                end if
                                                                code = tmp
                                                            end function
                                                            
                                                            public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                            	double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
                                                            	double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
                                                            	double tmp;
                                                            	if (t < -8.120978919195912e-33) {
                                                            		tmp = t_2;
                                                            	} else if (t < -4.712553818218485e-169) {
                                                            		tmp = t_1;
                                                            	} else if (t < -7.633533346031584e-308) {
                                                            		tmp = t_2;
                                                            	} else if (t < 1.0535888557455487e-139) {
                                                            		tmp = t_1;
                                                            	} else {
                                                            		tmp = t_2;
                                                            	}
                                                            	return tmp;
                                                            }
                                                            
                                                            def code(x, y, z, t, a, b, c, i, j):
                                                            	t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y)))
                                                            	t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
                                                            	tmp = 0
                                                            	if t < -8.120978919195912e-33:
                                                            		tmp = t_2
                                                            	elif t < -4.712553818218485e-169:
                                                            		tmp = t_1
                                                            	elif t < -7.633533346031584e-308:
                                                            		tmp = t_2
                                                            	elif t < 1.0535888557455487e-139:
                                                            		tmp = t_1
                                                            	else:
                                                            		tmp = t_2
                                                            	return tmp
                                                            
                                                            function code(x, y, z, t, a, b, c, i, j)
                                                            	t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y))))
                                                            	t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j)))
                                                            	tmp = 0.0
                                                            	if (t < -8.120978919195912e-33)
                                                            		tmp = t_2;
                                                            	elseif (t < -4.712553818218485e-169)
                                                            		tmp = t_1;
                                                            	elseif (t < -7.633533346031584e-308)
                                                            		tmp = t_2;
                                                            	elseif (t < 1.0535888557455487e-139)
                                                            		tmp = t_1;
                                                            	else
                                                            		tmp = t_2;
                                                            	end
                                                            	return tmp
                                                            end
                                                            
                                                            function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                            	t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y)));
                                                            	t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
                                                            	tmp = 0.0;
                                                            	if (t < -8.120978919195912e-33)
                                                            		tmp = t_2;
                                                            	elseif (t < -4.712553818218485e-169)
                                                            		tmp = t_1;
                                                            	elseif (t < -7.633533346031584e-308)
                                                            		tmp = t_2;
                                                            	elseif (t < 1.0535888557455487e-139)
                                                            		tmp = t_1;
                                                            	else
                                                            		tmp = t_2;
                                                            	end
                                                            	tmp_2 = tmp;
                                                            end
                                                            
                                                            code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
                                                            
                                                            \begin{array}{l}
                                                            
                                                            \\
                                                            \begin{array}{l}
                                                            t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
                                                            t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
                                                            \mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
                                                            \;\;\;\;t\_2\\
                                                            
                                                            \mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
                                                            \;\;\;\;t\_1\\
                                                            
                                                            \mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
                                                            \;\;\;\;t\_2\\
                                                            
                                                            \mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
                                                            \;\;\;\;t\_1\\
                                                            
                                                            \mathbf{else}:\\
                                                            \;\;\;\;t\_2\\
                                                            
                                                            
                                                            \end{array}
                                                            \end{array}
                                                            

                                                            Reproduce

                                                            ?
                                                            herbie shell --seed 2024318 
                                                            (FPCore (x y z t a b c i j)
                                                              :name "Linear.Matrix:det33 from linear-1.19.1.3"
                                                              :precision binary64
                                                            
                                                              :alt
                                                              (! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))))))))
                                                            
                                                              (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))