Linear.Matrix:det33 from linear-1.19.1.3

Percentage Accurate: 73.3% → 82.7%
Time: 15.5s
Alternatives: 21
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 21 alternatives:

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

Initial Program: 73.3% 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: 82.7% accurate, 0.5× speedup?

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

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

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \left(\left(-c\right) \cdot b\right) \cdot z\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 93.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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \left(\left(-c\right) \cdot b\right) \cdot z\right) \]
      4. Recombined 2 regimes into one program.
      5. Final simplification89.3%

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

      Alternative 2: 78.0% accurate, 0.5× speedup?

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-x, t, b \cdot i\right), a, \mathsf{fma}\left(\mathsf{fma}\left(-b, c, x \cdot y\right), z, \mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\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 a around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \left(\left(-c\right) \cdot b\right) \cdot z\right) \]
          4. Recombined 2 regimes into one program.
          5. Final simplification85.0%

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

          Alternative 3: 78.5% accurate, 0.9× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-c, z, i \cdot a\right)\\ t_2 := \mathsf{fma}\left(t\_1, b, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\ \mathbf{if}\;x \leq -2.4 \cdot 10^{+40}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;x \leq 3 \cdot 10^{+50}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, a, j \cdot c\right), t, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, t\_1 \cdot b\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
          (FPCore (x y z t a b c i j)
           :precision binary64
           (let* ((t_1 (fma (- c) z (* i a)))
                  (t_2 (fma t_1 b (* (fma (- a) t (* z y)) x))))
             (if (<= x -2.4e+40)
               t_2
               (if (<= x 3e+50)
                 (fma (fma (- x) a (* j c)) t (fma (fma (- j) i (* z x)) y (* t_1 b)))
                 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 = fma(-c, z, (i * a));
          	double t_2 = fma(t_1, b, (fma(-a, t, (z * y)) * x));
          	double tmp;
          	if (x <= -2.4e+40) {
          		tmp = t_2;
          	} else if (x <= 3e+50) {
          		tmp = fma(fma(-x, a, (j * c)), t, fma(fma(-j, i, (z * x)), y, (t_1 * b)));
          	} else {
          		tmp = t_2;
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a, b, c, i, j)
          	t_1 = fma(Float64(-c), z, Float64(i * a))
          	t_2 = fma(t_1, b, Float64(fma(Float64(-a), t, Float64(z * y)) * x))
          	tmp = 0.0
          	if (x <= -2.4e+40)
          		tmp = t_2;
          	elseif (x <= 3e+50)
          		tmp = fma(fma(Float64(-x), a, Float64(j * c)), t, fma(fma(Float64(-j), i, Float64(z * x)), y, Float64(t_1 * b)));
          	else
          		tmp = t_2;
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-c) * z + N[(i * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 * b + N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.4e+40], t$95$2, If[LessEqual[x, 3e+50], N[(N[((-x) * a + N[(j * c), $MachinePrecision]), $MachinePrecision] * t + N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y + N[(t$95$1 * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := \mathsf{fma}\left(-c, z, i \cdot a\right)\\
          t_2 := \mathsf{fma}\left(t\_1, b, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\
          \mathbf{if}\;x \leq -2.4 \cdot 10^{+40}:\\
          \;\;\;\;t\_2\\
          
          \mathbf{elif}\;x \leq 3 \cdot 10^{+50}:\\
          \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, a, j \cdot c\right), t, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, t\_1 \cdot b\right)\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;t\_2\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if x < -2.4e40 or 2.9999999999999998e50 < x

            1. Initial program 77.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 j around 0

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

                \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\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) + x \cdot \left(y \cdot z - a \cdot t\right)} \]
              3. *-commutativeN/A

                \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z - a \cdot i\right) \cdot b}\right)\right) + x \cdot \left(y \cdot z - a \cdot t\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} + x \cdot \left(y \cdot z - a \cdot t\right) \]
              5. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -2.4e40 < x < 2.9999999999999998e50

            1. Initial program 74.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 t around 0

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

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

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

          Alternative 4: 67.8% accurate, 1.1× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot a\right), b, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\ \mathbf{if}\;x \leq -4 \cdot 10^{-34}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 2.9 \cdot 10^{-123}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-b, c, y \cdot x\right), z, \mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\right)\\ \mathbf{elif}\;x \leq 2.3 \cdot 10^{-10}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \left(\left(-c\right) \cdot b\right) \cdot z\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 (fma (- c) z (* i a)) b (* (fma (- a) t (* z y)) x))))
             (if (<= x -4e-34)
               t_1
               (if (<= x 2.9e-123)
                 (fma (fma (- b) c (* y x)) z (* (fma (- i) y (* c t)) j))
                 (if (<= x 2.3e-10)
                   (fma (fma (- j) y (* b a)) i (* (* (- c) b) z))
                   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(fma(-c, z, (i * a)), b, (fma(-a, t, (z * y)) * x));
          	double tmp;
          	if (x <= -4e-34) {
          		tmp = t_1;
          	} else if (x <= 2.9e-123) {
          		tmp = fma(fma(-b, c, (y * x)), z, (fma(-i, y, (c * t)) * j));
          	} else if (x <= 2.3e-10) {
          		tmp = fma(fma(-j, y, (b * a)), i, ((-c * b) * z));
          	} else {
          		tmp = t_1;
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a, b, c, i, j)
          	t_1 = fma(fma(Float64(-c), z, Float64(i * a)), b, Float64(fma(Float64(-a), t, Float64(z * y)) * x))
          	tmp = 0.0
          	if (x <= -4e-34)
          		tmp = t_1;
          	elseif (x <= 2.9e-123)
          		tmp = fma(fma(Float64(-b), c, Float64(y * x)), z, Float64(fma(Float64(-i), y, Float64(c * t)) * j));
          	elseif (x <= 2.3e-10)
          		tmp = fma(fma(Float64(-j), y, Float64(b * a)), i, Float64(Float64(Float64(-c) * b) * z));
          	else
          		tmp = t_1;
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-c) * z + N[(i * a), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4e-34], t$95$1, If[LessEqual[x, 2.9e-123], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z + N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.3e-10], N[(N[((-j) * y + N[(b * a), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-c) * b), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot a\right), b, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\
          \mathbf{if}\;x \leq -4 \cdot 10^{-34}:\\
          \;\;\;\;t\_1\\
          
          \mathbf{elif}\;x \leq 2.9 \cdot 10^{-123}:\\
          \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-b, c, y \cdot x\right), z, \mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\right)\\
          
          \mathbf{elif}\;x \leq 2.3 \cdot 10^{-10}:\\
          \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \left(\left(-c\right) \cdot b\right) \cdot z\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;t\_1\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if x < -3.99999999999999971e-34 or 2.30000000000000007e-10 < x

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

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

                \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\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) + x \cdot \left(y \cdot z - a \cdot t\right)} \]
              3. *-commutativeN/A

                \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z - a \cdot i\right) \cdot b}\right)\right) + x \cdot \left(y \cdot z - a \cdot t\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} + x \cdot \left(y \cdot z - a \cdot t\right) \]
              5. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -3.99999999999999971e-34 < x < 2.90000000000000004e-123

            1. Initial program 77.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 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if 2.90000000000000004e-123 < x < 2.30000000000000007e-10

            1. Initial program 69.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 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -4 \cdot 10^{-34}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot a\right), b, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\ \mathbf{elif}\;x \leq 2.9 \cdot 10^{-123}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-b, c, y \cdot x\right), z, \mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\right)\\ \mathbf{elif}\;x \leq 2.3 \cdot 10^{-10}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \left(\left(-c\right) \cdot b\right) \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot a\right), b, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\ \end{array} \]
              6. Add Preprocessing

              Alternative 5: 70.8% accurate, 1.2× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-y, i, c \cdot t\right), j, \mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\right)\\ \mathbf{if}\;j \leq -8.5 \cdot 10^{+156}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq 6 \cdot 10^{+79}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot a\right), b, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\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 (fma (- y) i (* c t)) j (* (fma (- c) b (* y x)) z))))
                 (if (<= j -8.5e+156)
                   t_1
                   (if (<= j 6e+79)
                     (fma (fma (- c) z (* i a)) b (* (fma (- a) t (* z y)) x))
                     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(fma(-y, i, (c * t)), j, (fma(-c, b, (y * x)) * z));
              	double tmp;
              	if (j <= -8.5e+156) {
              		tmp = t_1;
              	} else if (j <= 6e+79) {
              		tmp = fma(fma(-c, z, (i * a)), b, (fma(-a, t, (z * y)) * x));
              	} else {
              		tmp = t_1;
              	}
              	return tmp;
              }
              
              function code(x, y, z, t, a, b, c, i, j)
              	t_1 = fma(fma(Float64(-y), i, Float64(c * t)), j, Float64(fma(Float64(-c), b, Float64(y * x)) * z))
              	tmp = 0.0
              	if (j <= -8.5e+156)
              		tmp = t_1;
              	elseif (j <= 6e+79)
              		tmp = fma(fma(Float64(-c), z, Float64(i * a)), b, Float64(fma(Float64(-a), t, Float64(z * y)) * x));
              	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) * i + N[(c * t), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -8.5e+156], t$95$1, If[LessEqual[j, 6e+79], N[(N[((-c) * z + N[(i * a), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-y, i, c \cdot t\right), j, \mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\right)\\
              \mathbf{if}\;j \leq -8.5 \cdot 10^{+156}:\\
              \;\;\;\;t\_1\\
              
              \mathbf{elif}\;j \leq 6 \cdot 10^{+79}:\\
              \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot a\right), b, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\
              
              \mathbf{else}:\\
              \;\;\;\;t\_1\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 2 regimes
              2. if j < -8.49999999999999948e156 or 5.99999999999999948e79 < j

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

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

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

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

                    \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\frac{1}{\frac{c \cdot z + i \cdot a}{\left(c \cdot z\right) \cdot \left(c \cdot z\right) - \left(i \cdot a\right) \cdot \left(i \cdot a\right)}}}\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                  5. un-div-invN/A

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

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

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

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

                    \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b}{\frac{1}{\color{blue}{c \cdot z - i \cdot a}}}\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                  10. lower-/.f6470.5

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

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

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

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

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

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

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

                    \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b}{\frac{1}{\color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), i, c \cdot z\right)}}}\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                  18. lower-neg.f6470.5

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

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

                  \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right)} \]
                6. 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. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                if -8.49999999999999948e156 < j < 5.99999999999999948e79

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

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

                    \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\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) + x \cdot \left(y \cdot z - a \cdot t\right)} \]
                  3. *-commutativeN/A

                    \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z - a \cdot i\right) \cdot b}\right)\right) + x \cdot \left(y \cdot z - a \cdot t\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} + x \cdot \left(y \cdot z - a \cdot t\right) \]
                  5. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              Alternative 6: 66.3% accurate, 1.2× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\ \mathbf{if}\;x \leq -2.7 \cdot 10^{+72}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 9.8 \cdot 10^{+82}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\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 (* i a) b (* (fma (- a) t (* z y)) x))))
                 (if (<= x -2.7e+72)
                   t_1
                   (if (<= x 9.8e+82)
                     (fma (fma (- j) y (* b a)) i (* (fma (- c) b (* y x)) z))
                     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((i * a), b, (fma(-a, t, (z * y)) * x));
              	double tmp;
              	if (x <= -2.7e+72) {
              		tmp = t_1;
              	} else if (x <= 9.8e+82) {
              		tmp = fma(fma(-j, y, (b * a)), i, (fma(-c, b, (y * x)) * z));
              	} else {
              		tmp = t_1;
              	}
              	return tmp;
              }
              
              function code(x, y, z, t, a, b, c, i, j)
              	t_1 = fma(Float64(i * a), b, Float64(fma(Float64(-a), t, Float64(z * y)) * x))
              	tmp = 0.0
              	if (x <= -2.7e+72)
              		tmp = t_1;
              	elseif (x <= 9.8e+82)
              		tmp = fma(fma(Float64(-j), y, Float64(b * a)), i, Float64(fma(Float64(-c), b, Float64(y * x)) * z));
              	else
              		tmp = t_1;
              	end
              	return tmp
              end
              
              code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(i * a), $MachinePrecision] * b + N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.7e+72], t$95$1, If[LessEqual[x, 9.8e+82], N[(N[((-j) * y + N[(b * a), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              t_1 := \mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\
              \mathbf{if}\;x \leq -2.7 \cdot 10^{+72}:\\
              \;\;\;\;t\_1\\
              
              \mathbf{elif}\;x \leq 9.8 \cdot 10^{+82}:\\
              \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\right)\\
              
              \mathbf{else}:\\
              \;\;\;\;t\_1\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 2 regimes
              2. if x < -2.7000000000000001e72 or 9.8000000000000001e82 < x

                1. Initial program 78.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 j around 0

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

                    \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\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) + x \cdot \left(y \cdot z - a \cdot t\right)} \]
                  3. *-commutativeN/A

                    \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z - a \cdot i\right) \cdot b}\right)\right) + x \cdot \left(y \cdot z - a \cdot t\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} + x \cdot \left(y \cdot z - a \cdot t\right) \]
                  5. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if -2.7000000000000001e72 < x < 9.8000000000000001e82

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  Alternative 7: 59.5% accurate, 1.3× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\ \mathbf{if}\;j \leq -2.25 \cdot 10^{+190}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq -5.5 \cdot 10^{-110}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot a\right), b, \left(z \cdot y\right) \cdot x\right)\\ \mathbf{elif}\;j \leq 2.1 \cdot 10^{+85}:\\ \;\;\;\;\mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\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 (- i) y (* c t)) j)))
                     (if (<= j -2.25e+190)
                       t_1
                       (if (<= j -5.5e-110)
                         (fma (fma (- c) z (* i a)) b (* (* z y) x))
                         (if (<= j 2.1e+85) (fma (* i a) b (* (fma (- a) t (* z y)) x)) 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(-i, y, (c * t)) * j;
                  	double tmp;
                  	if (j <= -2.25e+190) {
                  		tmp = t_1;
                  	} else if (j <= -5.5e-110) {
                  		tmp = fma(fma(-c, z, (i * a)), b, ((z * y) * x));
                  	} else if (j <= 2.1e+85) {
                  		tmp = fma((i * a), b, (fma(-a, t, (z * y)) * x));
                  	} else {
                  		tmp = t_1;
                  	}
                  	return tmp;
                  }
                  
                  function code(x, y, z, t, a, b, c, i, j)
                  	t_1 = Float64(fma(Float64(-i), y, Float64(c * t)) * j)
                  	tmp = 0.0
                  	if (j <= -2.25e+190)
                  		tmp = t_1;
                  	elseif (j <= -5.5e-110)
                  		tmp = fma(fma(Float64(-c), z, Float64(i * a)), b, Float64(Float64(z * y) * x));
                  	elseif (j <= 2.1e+85)
                  		tmp = fma(Float64(i * a), b, Float64(fma(Float64(-a), t, Float64(z * y)) * x));
                  	else
                  		tmp = t_1;
                  	end
                  	return tmp
                  end
                  
                  code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[j, -2.25e+190], t$95$1, If[LessEqual[j, -5.5e-110], N[(N[((-c) * z + N[(i * a), $MachinePrecision]), $MachinePrecision] * b + N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.1e+85], N[(N[(i * a), $MachinePrecision] * b + N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_1 := \mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\
                  \mathbf{if}\;j \leq -2.25 \cdot 10^{+190}:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{elif}\;j \leq -5.5 \cdot 10^{-110}:\\
                  \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot a\right), b, \left(z \cdot y\right) \cdot x\right)\\
                  
                  \mathbf{elif}\;j \leq 2.1 \cdot 10^{+85}:\\
                  \;\;\;\;\mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;t\_1\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 3 regimes
                  2. if j < -2.25e190 or 2.1000000000000001e85 < j

                    1. Initial program 69.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 j around inf

                      \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)} \]
                    4. 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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

                    if -2.25e190 < j < -5.4999999999999998e-110

                    1. Initial program 78.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 j around 0

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

                        \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\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) + x \cdot \left(y \cdot z - a \cdot t\right)} \]
                      3. *-commutativeN/A

                        \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z - a \cdot i\right) \cdot b}\right)\right) + x \cdot \left(y \cdot z - a \cdot t\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} + x \cdot \left(y \cdot z - a \cdot t\right) \]
                      5. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if -5.4999999999999998e-110 < j < 2.1000000000000001e85

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

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

                          \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\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) + x \cdot \left(y \cdot z - a \cdot t\right)} \]
                        3. *-commutativeN/A

                          \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z - a \cdot i\right) \cdot b}\right)\right) + x \cdot \left(y \cdot z - a \cdot t\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} + x \cdot \left(y \cdot z - a \cdot t\right) \]
                        5. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -2.25 \cdot 10^{+190}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\ \mathbf{elif}\;j \leq -5.5 \cdot 10^{-110}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot a\right), b, \left(z \cdot y\right) \cdot x\right)\\ \mathbf{elif}\;j \leq 2.1 \cdot 10^{+85}:\\ \;\;\;\;\mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\ \end{array} \]
                      10. Add Preprocessing

                      Alternative 8: 54.9% accurate, 1.3× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -3.4 \cdot 10^{+57}:\\ \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\\ \mathbf{elif}\;b \leq -1.56 \cdot 10^{-200}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{elif}\;b \leq 3.6 \cdot 10^{-66}:\\ \;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(b \cdot a, i, \mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\right)\\ \end{array} \end{array} \]
                      (FPCore (x y z t a b c i j)
                       :precision binary64
                       (if (<= b -3.4e+57)
                         (* (fma (- c) z (* i a)) b)
                         (if (<= b -1.56e-200)
                           (* (fma (- a) t (* z y)) x)
                           (if (<= b 3.6e-66)
                             (* (fma (- j) i (* z x)) y)
                             (fma (* b a) i (* (fma (- c) b (* 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 (b <= -3.4e+57) {
                      		tmp = fma(-c, z, (i * a)) * b;
                      	} else if (b <= -1.56e-200) {
                      		tmp = fma(-a, t, (z * y)) * x;
                      	} else if (b <= 3.6e-66) {
                      		tmp = fma(-j, i, (z * x)) * y;
                      	} else {
                      		tmp = fma((b * a), i, (fma(-c, b, (y * x)) * z));
                      	}
                      	return tmp;
                      }
                      
                      function code(x, y, z, t, a, b, c, i, j)
                      	tmp = 0.0
                      	if (b <= -3.4e+57)
                      		tmp = Float64(fma(Float64(-c), z, Float64(i * a)) * b);
                      	elseif (b <= -1.56e-200)
                      		tmp = Float64(fma(Float64(-a), t, Float64(z * y)) * x);
                      	elseif (b <= 3.6e-66)
                      		tmp = Float64(fma(Float64(-j), i, Float64(z * x)) * y);
                      	else
                      		tmp = fma(Float64(b * a), i, Float64(fma(Float64(-c), b, Float64(y * x)) * z));
                      	end
                      	return tmp
                      end
                      
                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -3.4e+57], N[(N[((-c) * z + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[b, -1.56e-200], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[b, 3.6e-66], N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], N[(N[(b * a), $MachinePrecision] * i + N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]]]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      \mathbf{if}\;b \leq -3.4 \cdot 10^{+57}:\\
                      \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\\
                      
                      \mathbf{elif}\;b \leq -1.56 \cdot 10^{-200}:\\
                      \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
                      
                      \mathbf{elif}\;b \leq 3.6 \cdot 10^{-66}:\\
                      \;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;\mathsf{fma}\left(b \cdot a, i, \mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\right)\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 4 regimes
                      2. if b < -3.39999999999999992e57

                        1. Initial program 73.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 b around inf

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

                            \[\leadsto \color{blue}{\left(a \cdot i - c \cdot z\right) \cdot b} \]
                          2. sub-negN/A

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

                            \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + a \cdot i\right)} \cdot b \]
                          4. remove-double-negN/A

                            \[\leadsto \left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)}\right) \cdot b \]
                          5. distribute-neg-inN/A

                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right)} \cdot b \]
                          6. sub-negN/A

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

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

                            \[\leadsto \color{blue}{\left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right) \cdot b} \]
                          9. mul-1-negN/A

                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)\right)} \cdot b \]
                          10. sub-negN/A

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

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

                            \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot z} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right) \cdot b \]
                          13. remove-double-negN/A

                            \[\leadsto \left(\left(\mathsf{neg}\left(c\right)\right) \cdot z + \color{blue}{a \cdot i}\right) \cdot b \]
                          14. neg-mul-1N/A

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

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

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

                            \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, z, a \cdot i\right) \cdot b \]
                          18. lower-*.f6474.3

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

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

                        if -3.39999999999999992e57 < b < -1.5600000000000001e-200

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

                          \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                        4. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

                        if -1.5600000000000001e-200 < b < 3.60000000000000012e-66

                        1. Initial program 73.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 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. *-commutativeN/A

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

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

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

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

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

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

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

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

                        if 3.60000000000000012e-66 < b

                        1. Initial program 81.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 a around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -3.4 \cdot 10^{+57}:\\ \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\\ \mathbf{elif}\;b \leq -1.56 \cdot 10^{-200}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{elif}\;b \leq 3.6 \cdot 10^{-66}:\\ \;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(b \cdot a, i, \mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\right)\\ \end{array} \]
                          6. Add Preprocessing

                          Alternative 9: 62.4% accurate, 1.4× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\ \mathbf{if}\;x \leq -4.8 \cdot 10^{+66}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 2.25 \cdot 10^{+78}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \left(\left(-c\right) \cdot b\right) \cdot z\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 (* i a) b (* (fma (- a) t (* z y)) x))))
                             (if (<= x -4.8e+66)
                               t_1
                               (if (<= x 2.25e+78)
                                 (fma (fma (- j) y (* b a)) i (* (* (- c) b) z))
                                 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((i * a), b, (fma(-a, t, (z * y)) * x));
                          	double tmp;
                          	if (x <= -4.8e+66) {
                          		tmp = t_1;
                          	} else if (x <= 2.25e+78) {
                          		tmp = fma(fma(-j, y, (b * a)), i, ((-c * b) * z));
                          	} else {
                          		tmp = t_1;
                          	}
                          	return tmp;
                          }
                          
                          function code(x, y, z, t, a, b, c, i, j)
                          	t_1 = fma(Float64(i * a), b, Float64(fma(Float64(-a), t, Float64(z * y)) * x))
                          	tmp = 0.0
                          	if (x <= -4.8e+66)
                          		tmp = t_1;
                          	elseif (x <= 2.25e+78)
                          		tmp = fma(fma(Float64(-j), y, Float64(b * a)), i, Float64(Float64(Float64(-c) * b) * z));
                          	else
                          		tmp = t_1;
                          	end
                          	return tmp
                          end
                          
                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(i * a), $MachinePrecision] * b + N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.8e+66], t$95$1, If[LessEqual[x, 2.25e+78], N[(N[((-j) * y + N[(b * a), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-c) * b), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          t_1 := \mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\
                          \mathbf{if}\;x \leq -4.8 \cdot 10^{+66}:\\
                          \;\;\;\;t\_1\\
                          
                          \mathbf{elif}\;x \leq 2.25 \cdot 10^{+78}:\\
                          \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \left(\left(-c\right) \cdot b\right) \cdot z\right)\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;t\_1\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 2 regimes
                          2. if x < -4.8000000000000003e66 or 2.25e78 < x

                            1. Initial program 78.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 j around 0

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

                                \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\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) + x \cdot \left(y \cdot z - a \cdot t\right)} \]
                              3. *-commutativeN/A

                                \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z - a \cdot i\right) \cdot b}\right)\right) + x \cdot \left(y \cdot z - a \cdot t\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} + x \cdot \left(y \cdot z - a \cdot t\right) \]
                              5. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              if -4.8000000000000003e66 < x < 2.25e78

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \left(-1 \cdot \left(b \cdot c\right)\right) \cdot z\right) \]
                                3. Step-by-step derivation
                                  1. Applied rewrites68.4%

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

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

                                Alternative 10: 60.0% accurate, 1.5× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\ \mathbf{if}\;j \leq -3 \cdot 10^{+158}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq 2.1 \cdot 10^{+85}:\\ \;\;\;\;\mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\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 (- i) y (* c t)) j)))
                                   (if (<= j -3e+158)
                                     t_1
                                     (if (<= j 2.1e+85) (fma (* i a) b (* (fma (- a) t (* z y)) x)) 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(-i, y, (c * t)) * j;
                                	double tmp;
                                	if (j <= -3e+158) {
                                		tmp = t_1;
                                	} else if (j <= 2.1e+85) {
                                		tmp = fma((i * a), b, (fma(-a, t, (z * y)) * x));
                                	} else {
                                		tmp = t_1;
                                	}
                                	return tmp;
                                }
                                
                                function code(x, y, z, t, a, b, c, i, j)
                                	t_1 = Float64(fma(Float64(-i), y, Float64(c * t)) * j)
                                	tmp = 0.0
                                	if (j <= -3e+158)
                                		tmp = t_1;
                                	elseif (j <= 2.1e+85)
                                		tmp = fma(Float64(i * a), b, Float64(fma(Float64(-a), t, Float64(z * y)) * x));
                                	else
                                		tmp = t_1;
                                	end
                                	return tmp
                                end
                                
                                code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[j, -3e+158], t$95$1, If[LessEqual[j, 2.1e+85], N[(N[(i * a), $MachinePrecision] * b + N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                t_1 := \mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\
                                \mathbf{if}\;j \leq -3 \cdot 10^{+158}:\\
                                \;\;\;\;t\_1\\
                                
                                \mathbf{elif}\;j \leq 2.1 \cdot 10^{+85}:\\
                                \;\;\;\;\mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;t\_1\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 2 regimes
                                2. if j < -3e158 or 2.1000000000000001e85 < j

                                  1. Initial program 69.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 j around inf

                                    \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)} \]
                                  4. 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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

                                  if -3e158 < j < 2.1000000000000001e85

                                  1. Initial program 78.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 j around 0

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

                                      \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\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) + x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                    3. *-commutativeN/A

                                      \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z - a \cdot i\right) \cdot b}\right)\right) + x \cdot \left(y \cdot z - a \cdot t\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} + x \cdot \left(y \cdot z - a \cdot t\right) \]
                                    5. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  Alternative 11: 31.6% accurate, 1.6× speedup?

                                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(-c\right) \cdot b\right) \cdot z\\ \mathbf{if}\;b \leq -1.5 \cdot 10^{+129}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq -1.5 \cdot 10^{+25}:\\ \;\;\;\;\left(b \cdot a\right) \cdot i\\ \mathbf{elif}\;b \leq -6.2 \cdot 10^{-229}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{elif}\;b \leq 2.7 \cdot 10^{+83}:\\ \;\;\;\;\left(\left(-y\right) \cdot i\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                  (FPCore (x y z t a b c i j)
                                   :precision binary64
                                   (let* ((t_1 (* (* (- c) b) z)))
                                     (if (<= b -1.5e+129)
                                       t_1
                                       (if (<= b -1.5e+25)
                                         (* (* b a) i)
                                         (if (<= b -6.2e-229)
                                           (* (* z y) x)
                                           (if (<= b 2.7e+83) (* (* (- y) i) j) 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 = (-c * b) * z;
                                  	double tmp;
                                  	if (b <= -1.5e+129) {
                                  		tmp = t_1;
                                  	} else if (b <= -1.5e+25) {
                                  		tmp = (b * a) * i;
                                  	} else if (b <= -6.2e-229) {
                                  		tmp = (z * y) * x;
                                  	} else if (b <= 2.7e+83) {
                                  		tmp = (-y * i) * j;
                                  	} else {
                                  		tmp = t_1;
                                  	}
                                  	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) :: tmp
                                      t_1 = (-c * b) * z
                                      if (b <= (-1.5d+129)) then
                                          tmp = t_1
                                      else if (b <= (-1.5d+25)) then
                                          tmp = (b * a) * i
                                      else if (b <= (-6.2d-229)) then
                                          tmp = (z * y) * x
                                      else if (b <= 2.7d+83) then
                                          tmp = (-y * i) * j
                                      else
                                          tmp = t_1
                                      end if
                                      code = tmp
                                  end function
                                  
                                  public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                  	double t_1 = (-c * b) * z;
                                  	double tmp;
                                  	if (b <= -1.5e+129) {
                                  		tmp = t_1;
                                  	} else if (b <= -1.5e+25) {
                                  		tmp = (b * a) * i;
                                  	} else if (b <= -6.2e-229) {
                                  		tmp = (z * y) * x;
                                  	} else if (b <= 2.7e+83) {
                                  		tmp = (-y * i) * j;
                                  	} else {
                                  		tmp = t_1;
                                  	}
                                  	return tmp;
                                  }
                                  
                                  def code(x, y, z, t, a, b, c, i, j):
                                  	t_1 = (-c * b) * z
                                  	tmp = 0
                                  	if b <= -1.5e+129:
                                  		tmp = t_1
                                  	elif b <= -1.5e+25:
                                  		tmp = (b * a) * i
                                  	elif b <= -6.2e-229:
                                  		tmp = (z * y) * x
                                  	elif b <= 2.7e+83:
                                  		tmp = (-y * i) * j
                                  	else:
                                  		tmp = t_1
                                  	return tmp
                                  
                                  function code(x, y, z, t, a, b, c, i, j)
                                  	t_1 = Float64(Float64(Float64(-c) * b) * z)
                                  	tmp = 0.0
                                  	if (b <= -1.5e+129)
                                  		tmp = t_1;
                                  	elseif (b <= -1.5e+25)
                                  		tmp = Float64(Float64(b * a) * i);
                                  	elseif (b <= -6.2e-229)
                                  		tmp = Float64(Float64(z * y) * x);
                                  	elseif (b <= 2.7e+83)
                                  		tmp = Float64(Float64(Float64(-y) * i) * j);
                                  	else
                                  		tmp = t_1;
                                  	end
                                  	return tmp
                                  end
                                  
                                  function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                  	t_1 = (-c * b) * z;
                                  	tmp = 0.0;
                                  	if (b <= -1.5e+129)
                                  		tmp = t_1;
                                  	elseif (b <= -1.5e+25)
                                  		tmp = (b * a) * i;
                                  	elseif (b <= -6.2e-229)
                                  		tmp = (z * y) * x;
                                  	elseif (b <= 2.7e+83)
                                  		tmp = (-y * i) * j;
                                  	else
                                  		tmp = t_1;
                                  	end
                                  	tmp_2 = tmp;
                                  end
                                  
                                  code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-c) * b), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[b, -1.5e+129], t$95$1, If[LessEqual[b, -1.5e+25], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[b, -6.2e-229], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[b, 2.7e+83], N[(N[((-y) * i), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]]]
                                  
                                  \begin{array}{l}
                                  
                                  \\
                                  \begin{array}{l}
                                  t_1 := \left(\left(-c\right) \cdot b\right) \cdot z\\
                                  \mathbf{if}\;b \leq -1.5 \cdot 10^{+129}:\\
                                  \;\;\;\;t\_1\\
                                  
                                  \mathbf{elif}\;b \leq -1.5 \cdot 10^{+25}:\\
                                  \;\;\;\;\left(b \cdot a\right) \cdot i\\
                                  
                                  \mathbf{elif}\;b \leq -6.2 \cdot 10^{-229}:\\
                                  \;\;\;\;\left(z \cdot y\right) \cdot x\\
                                  
                                  \mathbf{elif}\;b \leq 2.7 \cdot 10^{+83}:\\
                                  \;\;\;\;\left(\left(-y\right) \cdot i\right) \cdot j\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;t\_1\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 4 regimes
                                  2. if b < -1.50000000000000015e129 or 2.70000000000000007e83 < b

                                    1. Initial program 71.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 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \left(-1 \cdot \left(b \cdot c\right)\right) \cdot z \]
                                    10. Step-by-step derivation
                                      1. Applied rewrites51.7%

                                        \[\leadsto \left(\left(-b\right) \cdot c\right) \cdot z \]

                                      if -1.50000000000000015e129 < b < -1.50000000000000003e25

                                      1. Initial program 91.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-*.f6457.5

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

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

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

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

                                        if -1.50000000000000003e25 < b < -6.2000000000000002e-229

                                        1. Initial program 71.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 x around inf

                                          \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                        4. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

                                          if -6.2000000000000002e-229 < b < 2.70000000000000007e83

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

                                            \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)} \]
                                          4. 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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

                                            \[\leadsto \left(-1 \cdot \left(i \cdot y\right)\right) \cdot j \]
                                          7. Step-by-step derivation
                                            1. Applied rewrites34.8%

                                              \[\leadsto \left(\left(-y\right) \cdot i\right) \cdot j \]
                                          8. Recombined 4 regimes into one program.
                                          9. Final simplification42.6%

                                            \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.5 \cdot 10^{+129}:\\ \;\;\;\;\left(\left(-c\right) \cdot b\right) \cdot z\\ \mathbf{elif}\;b \leq -1.5 \cdot 10^{+25}:\\ \;\;\;\;\left(b \cdot a\right) \cdot i\\ \mathbf{elif}\;b \leq -6.2 \cdot 10^{-229}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{elif}\;b \leq 2.7 \cdot 10^{+83}:\\ \;\;\;\;\left(\left(-y\right) \cdot i\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-c\right) \cdot b\right) \cdot z\\ \end{array} \]
                                          10. Add Preprocessing

                                          Alternative 12: 54.2% accurate, 1.6× speedup?

                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\\ \mathbf{if}\;b \leq -3.4 \cdot 10^{+57}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq -1.56 \cdot 10^{-200}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{elif}\;b \leq 10^{+53}:\\ \;\;\;\;\mathsf{fma}\left(-j, i, 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 (- c) z (* i a)) b)))
                                             (if (<= b -3.4e+57)
                                               t_1
                                               (if (<= b -1.56e-200)
                                                 (* (fma (- a) t (* z y)) x)
                                                 (if (<= b 1e+53) (* (fma (- j) i (* 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(-c, z, (i * a)) * b;
                                          	double tmp;
                                          	if (b <= -3.4e+57) {
                                          		tmp = t_1;
                                          	} else if (b <= -1.56e-200) {
                                          		tmp = fma(-a, t, (z * y)) * x;
                                          	} else if (b <= 1e+53) {
                                          		tmp = fma(-j, i, (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(-c), z, Float64(i * a)) * b)
                                          	tmp = 0.0
                                          	if (b <= -3.4e+57)
                                          		tmp = t_1;
                                          	elseif (b <= -1.56e-200)
                                          		tmp = Float64(fma(Float64(-a), t, Float64(z * y)) * x);
                                          	elseif (b <= 1e+53)
                                          		tmp = Float64(fma(Float64(-j), i, 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[((-c) * z + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[b, -3.4e+57], t$95$1, If[LessEqual[b, -1.56e-200], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[b, 1e+53], N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]]
                                          
                                          \begin{array}{l}
                                          
                                          \\
                                          \begin{array}{l}
                                          t_1 := \mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\\
                                          \mathbf{if}\;b \leq -3.4 \cdot 10^{+57}:\\
                                          \;\;\;\;t\_1\\
                                          
                                          \mathbf{elif}\;b \leq -1.56 \cdot 10^{-200}:\\
                                          \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
                                          
                                          \mathbf{elif}\;b \leq 10^{+53}:\\
                                          \;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\
                                          
                                          \mathbf{else}:\\
                                          \;\;\;\;t\_1\\
                                          
                                          
                                          \end{array}
                                          \end{array}
                                          
                                          Derivation
                                          1. Split input into 3 regimes
                                          2. if b < -3.39999999999999992e57 or 9.9999999999999999e52 < b

                                            1. Initial program 76.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 b around inf

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

                                                \[\leadsto \color{blue}{\left(a \cdot i - c \cdot z\right) \cdot b} \]
                                              2. sub-negN/A

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

                                                \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + a \cdot i\right)} \cdot b \]
                                              4. remove-double-negN/A

                                                \[\leadsto \left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)}\right) \cdot b \]
                                              5. distribute-neg-inN/A

                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right)} \cdot b \]
                                              6. sub-negN/A

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

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

                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right) \cdot b} \]
                                              9. mul-1-negN/A

                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)\right)} \cdot b \]
                                              10. sub-negN/A

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

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

                                                \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot z} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right) \cdot b \]
                                              13. remove-double-negN/A

                                                \[\leadsto \left(\left(\mathsf{neg}\left(c\right)\right) \cdot z + \color{blue}{a \cdot i}\right) \cdot b \]
                                              14. neg-mul-1N/A

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

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

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

                                                \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, z, a \cdot i\right) \cdot b \]
                                              18. lower-*.f6472.4

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

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

                                            if -3.39999999999999992e57 < b < -1.5600000000000001e-200

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

                                              \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                            4. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

                                            if -1.5600000000000001e-200 < b < 9.9999999999999999e52

                                            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 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. *-commutativeN/A

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

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

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

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

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

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

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

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

                                            \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -3.4 \cdot 10^{+57}:\\ \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\\ \mathbf{elif}\;b \leq -1.56 \cdot 10^{-200}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{elif}\;b \leq 10^{+53}:\\ \;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\\ \end{array} \]
                                          5. Add Preprocessing

                                          Alternative 13: 45.5% 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}\;b \leq -1.45 \cdot 10^{+129}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq -2.2 \cdot 10^{+60}:\\ \;\;\;\;\left(b \cdot a\right) \cdot i\\ \mathbf{elif}\;b \leq 3.2 \cdot 10^{+14}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \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 (<= b -1.45e+129)
                                               t_1
                                               (if (<= b -2.2e+60)
                                                 (* (* b a) i)
                                                 (if (<= b 3.2e+14) (* (fma (- a) t (* z y)) x) 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 (b <= -1.45e+129) {
                                          		tmp = t_1;
                                          	} else if (b <= -2.2e+60) {
                                          		tmp = (b * a) * i;
                                          	} else if (b <= 3.2e+14) {
                                          		tmp = fma(-a, t, (z * y)) * x;
                                          	} 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 (b <= -1.45e+129)
                                          		tmp = t_1;
                                          	elseif (b <= -2.2e+60)
                                          		tmp = Float64(Float64(b * a) * i);
                                          	elseif (b <= 3.2e+14)
                                          		tmp = Float64(fma(Float64(-a), t, Float64(z * y)) * x);
                                          	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[b, -1.45e+129], t$95$1, If[LessEqual[b, -2.2e+60], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[b, 3.2e+14], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $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}\;b \leq -1.45 \cdot 10^{+129}:\\
                                          \;\;\;\;t\_1\\
                                          
                                          \mathbf{elif}\;b \leq -2.2 \cdot 10^{+60}:\\
                                          \;\;\;\;\left(b \cdot a\right) \cdot i\\
                                          
                                          \mathbf{elif}\;b \leq 3.2 \cdot 10^{+14}:\\
                                          \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
                                          
                                          \mathbf{else}:\\
                                          \;\;\;\;t\_1\\
                                          
                                          
                                          \end{array}
                                          \end{array}
                                          
                                          Derivation
                                          1. Split input into 3 regimes
                                          2. if b < -1.45000000000000001e129 or 3.2e14 < b

                                            1. Initial program 72.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 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. lower-*.f6453.9

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

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

                                            if -1.45000000000000001e129 < b < -2.19999999999999996e60

                                            1. Initial program 93.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-*.f6459.8

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

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

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

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

                                              if -2.19999999999999996e60 < b < 3.2e14

                                              1. Initial program 75.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 x around inf

                                                \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                              4. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

                                              \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.45 \cdot 10^{+129}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{elif}\;b \leq -2.2 \cdot 10^{+60}:\\ \;\;\;\;\left(b \cdot a\right) \cdot i\\ \mathbf{elif}\;b \leq 3.2 \cdot 10^{+14}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \end{array} \]
                                            10. Add Preprocessing

                                            Alternative 14: 42.6% accurate, 1.6× speedup?

                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(-c\right) \cdot b\right) \cdot z\\ \mathbf{if}\;b \leq -1.5 \cdot 10^{+129}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq -2.2 \cdot 10^{+60}:\\ \;\;\;\;\left(b \cdot a\right) \cdot i\\ \mathbf{elif}\;b \leq 2.4 \cdot 10^{+64}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                            (FPCore (x y z t a b c i j)
                                             :precision binary64
                                             (let* ((t_1 (* (* (- c) b) z)))
                                               (if (<= b -1.5e+129)
                                                 t_1
                                                 (if (<= b -2.2e+60)
                                                   (* (* b a) i)
                                                   (if (<= b 2.4e+64) (* (fma (- a) t (* z y)) x) 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 = (-c * b) * z;
                                            	double tmp;
                                            	if (b <= -1.5e+129) {
                                            		tmp = t_1;
                                            	} else if (b <= -2.2e+60) {
                                            		tmp = (b * a) * i;
                                            	} else if (b <= 2.4e+64) {
                                            		tmp = fma(-a, t, (z * y)) * x;
                                            	} else {
                                            		tmp = t_1;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            function code(x, y, z, t, a, b, c, i, j)
                                            	t_1 = Float64(Float64(Float64(-c) * b) * z)
                                            	tmp = 0.0
                                            	if (b <= -1.5e+129)
                                            		tmp = t_1;
                                            	elseif (b <= -2.2e+60)
                                            		tmp = Float64(Float64(b * a) * i);
                                            	elseif (b <= 2.4e+64)
                                            		tmp = Float64(fma(Float64(-a), t, Float64(z * y)) * x);
                                            	else
                                            		tmp = t_1;
                                            	end
                                            	return tmp
                                            end
                                            
                                            code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-c) * b), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[b, -1.5e+129], t$95$1, If[LessEqual[b, -2.2e+60], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[b, 2.4e+64], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            \begin{array}{l}
                                            t_1 := \left(\left(-c\right) \cdot b\right) \cdot z\\
                                            \mathbf{if}\;b \leq -1.5 \cdot 10^{+129}:\\
                                            \;\;\;\;t\_1\\
                                            
                                            \mathbf{elif}\;b \leq -2.2 \cdot 10^{+60}:\\
                                            \;\;\;\;\left(b \cdot a\right) \cdot i\\
                                            
                                            \mathbf{elif}\;b \leq 2.4 \cdot 10^{+64}:\\
                                            \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;t\_1\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            
                                            Derivation
                                            1. Split input into 3 regimes
                                            2. if b < -1.50000000000000015e129 or 2.39999999999999999e64 < b

                                              1. Initial program 72.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 a around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                \[\leadsto \left(-1 \cdot \left(b \cdot c\right)\right) \cdot z \]
                                              10. Step-by-step derivation
                                                1. Applied rewrites50.5%

                                                  \[\leadsto \left(\left(-b\right) \cdot c\right) \cdot z \]

                                                if -1.50000000000000015e129 < b < -2.19999999999999996e60

                                                1. Initial program 93.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-*.f6459.8

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

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

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

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

                                                  if -2.19999999999999996e60 < b < 2.39999999999999999e64

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

                                                    \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                  4. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.5 \cdot 10^{+129}:\\ \;\;\;\;\left(\left(-c\right) \cdot b\right) \cdot z\\ \mathbf{elif}\;b \leq -2.2 \cdot 10^{+60}:\\ \;\;\;\;\left(b \cdot a\right) \cdot i\\ \mathbf{elif}\;b \leq 2.4 \cdot 10^{+64}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-c\right) \cdot b\right) \cdot z\\ \end{array} \]
                                                10. Add Preprocessing

                                                Alternative 15: 53.2% accurate, 2.0× speedup?

                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\\ \mathbf{if}\;b \leq -3.4 \cdot 10^{+57}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 1.35 \cdot 10^{+53}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                (FPCore (x y z t a b c i j)
                                                 :precision binary64
                                                 (let* ((t_1 (* (fma (- c) z (* i a)) b)))
                                                   (if (<= b -3.4e+57)
                                                     t_1
                                                     (if (<= b 1.35e+53) (* (fma (- a) t (* z y)) x) 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(-c, z, (i * a)) * b;
                                                	double tmp;
                                                	if (b <= -3.4e+57) {
                                                		tmp = t_1;
                                                	} else if (b <= 1.35e+53) {
                                                		tmp = fma(-a, t, (z * y)) * x;
                                                	} else {
                                                		tmp = t_1;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                function code(x, y, z, t, a, b, c, i, j)
                                                	t_1 = Float64(fma(Float64(-c), z, Float64(i * a)) * b)
                                                	tmp = 0.0
                                                	if (b <= -3.4e+57)
                                                		tmp = t_1;
                                                	elseif (b <= 1.35e+53)
                                                		tmp = Float64(fma(Float64(-a), t, Float64(z * y)) * x);
                                                	else
                                                		tmp = t_1;
                                                	end
                                                	return tmp
                                                end
                                                
                                                code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-c) * z + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[b, -3.4e+57], t$95$1, If[LessEqual[b, 1.35e+53], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
                                                
                                                \begin{array}{l}
                                                
                                                \\
                                                \begin{array}{l}
                                                t_1 := \mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\\
                                                \mathbf{if}\;b \leq -3.4 \cdot 10^{+57}:\\
                                                \;\;\;\;t\_1\\
                                                
                                                \mathbf{elif}\;b \leq 1.35 \cdot 10^{+53}:\\
                                                \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;t\_1\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 2 regimes
                                                2. if b < -3.39999999999999992e57 or 1.3500000000000001e53 < b

                                                  1. Initial program 76.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 b around inf

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

                                                      \[\leadsto \color{blue}{\left(a \cdot i - c \cdot z\right) \cdot b} \]
                                                    2. sub-negN/A

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

                                                      \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + a \cdot i\right)} \cdot b \]
                                                    4. remove-double-negN/A

                                                      \[\leadsto \left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)}\right) \cdot b \]
                                                    5. distribute-neg-inN/A

                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right)} \cdot b \]
                                                    6. sub-negN/A

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

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

                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right) \cdot b} \]
                                                    9. mul-1-negN/A

                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)\right)} \cdot b \]
                                                    10. sub-negN/A

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

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

                                                      \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot z} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right) \cdot b \]
                                                    13. remove-double-negN/A

                                                      \[\leadsto \left(\left(\mathsf{neg}\left(c\right)\right) \cdot z + \color{blue}{a \cdot i}\right) \cdot b \]
                                                    14. neg-mul-1N/A

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

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

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

                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, z, a \cdot i\right) \cdot b \]
                                                    18. lower-*.f6472.4

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

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

                                                  if -3.39999999999999992e57 < b < 1.3500000000000001e53

                                                  1. Initial program 74.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 x around inf

                                                    \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                  4. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -3.4 \cdot 10^{+57}:\\ \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\\ \mathbf{elif}\;b \leq 1.35 \cdot 10^{+53}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\\ \end{array} \]
                                                5. Add Preprocessing

                                                Alternative 16: 46.6% accurate, 2.0× speedup?

                                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -8.2 \cdot 10^{+57}:\\ \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot t\right) \cdot c\\ \mathbf{elif}\;b \leq 3.2 \cdot 10^{+14}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \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 (<= b -8.2e+57)
                                                   (* (fma (- b) z (* j t)) c)
                                                   (if (<= b 3.2e+14)
                                                     (* (fma (- a) t (* z y)) x)
                                                     (* (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 (b <= -8.2e+57) {
                                                		tmp = fma(-b, z, (j * t)) * c;
                                                	} else if (b <= 3.2e+14) {
                                                		tmp = fma(-a, t, (z * y)) * x;
                                                	} 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 (b <= -8.2e+57)
                                                		tmp = Float64(fma(Float64(-b), z, Float64(j * t)) * c);
                                                	elseif (b <= 3.2e+14)
                                                		tmp = Float64(fma(Float64(-a), t, Float64(z * y)) * x);
                                                	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[LessEqual[b, -8.2e+57], N[(N[((-b) * z + N[(j * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[b, 3.2e+14], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]]]
                                                
                                                \begin{array}{l}
                                                
                                                \\
                                                \begin{array}{l}
                                                \mathbf{if}\;b \leq -8.2 \cdot 10^{+57}:\\
                                                \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot t\right) \cdot c\\
                                                
                                                \mathbf{elif}\;b \leq 3.2 \cdot 10^{+14}:\\
                                                \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 3 regimes
                                                2. if b < -8.2e57

                                                  1. Initial program 73.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 c around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                  if -8.2e57 < b < 3.2e14

                                                  1. Initial program 75.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 x around inf

                                                    \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                  4. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

                                                  if 3.2e14 < b

                                                  1. Initial program 77.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. lower-*.f6455.2

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

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

                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -8.2 \cdot 10^{+57}:\\ \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot t\right) \cdot c\\ \mathbf{elif}\;b \leq 3.2 \cdot 10^{+14}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \end{array} \]
                                                5. Add Preprocessing

                                                Alternative 17: 29.5% accurate, 2.1× speedup?

                                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -1.55 \cdot 10^{+62}:\\ \;\;\;\;\left(b \cdot a\right) \cdot i\\ \mathbf{elif}\;a \leq -6.8 \cdot 10^{-157}:\\ \;\;\;\;\left(\left(-i\right) \cdot j\right) \cdot y\\ \mathbf{elif}\;a \leq 2.35 \cdot 10^{+32}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \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 (<= a -1.55e+62)
                                                   (* (* b a) i)
                                                   (if (<= a -6.8e-157)
                                                     (* (* (- i) j) y)
                                                     (if (<= a 2.35e+32) (* (* z y) x) (* (* 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 (a <= -1.55e+62) {
                                                		tmp = (b * a) * i;
                                                	} else if (a <= -6.8e-157) {
                                                		tmp = (-i * j) * y;
                                                	} else if (a <= 2.35e+32) {
                                                		tmp = (z * y) * x;
                                                	} 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 (a <= (-1.55d+62)) then
                                                        tmp = (b * a) * i
                                                    else if (a <= (-6.8d-157)) then
                                                        tmp = (-i * j) * y
                                                    else if (a <= 2.35d+32) then
                                                        tmp = (z * y) * x
                                                    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 (a <= -1.55e+62) {
                                                		tmp = (b * a) * i;
                                                	} else if (a <= -6.8e-157) {
                                                		tmp = (-i * j) * y;
                                                	} else if (a <= 2.35e+32) {
                                                		tmp = (z * y) * x;
                                                	} else {
                                                		tmp = (i * b) * a;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                def code(x, y, z, t, a, b, c, i, j):
                                                	tmp = 0
                                                	if a <= -1.55e+62:
                                                		tmp = (b * a) * i
                                                	elif a <= -6.8e-157:
                                                		tmp = (-i * j) * y
                                                	elif a <= 2.35e+32:
                                                		tmp = (z * y) * x
                                                	else:
                                                		tmp = (i * b) * a
                                                	return tmp
                                                
                                                function code(x, y, z, t, a, b, c, i, j)
                                                	tmp = 0.0
                                                	if (a <= -1.55e+62)
                                                		tmp = Float64(Float64(b * a) * i);
                                                	elseif (a <= -6.8e-157)
                                                		tmp = Float64(Float64(Float64(-i) * j) * y);
                                                	elseif (a <= 2.35e+32)
                                                		tmp = Float64(Float64(z * y) * x);
                                                	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 (a <= -1.55e+62)
                                                		tmp = (b * a) * i;
                                                	elseif (a <= -6.8e-157)
                                                		tmp = (-i * j) * y;
                                                	elseif (a <= 2.35e+32)
                                                		tmp = (z * y) * x;
                                                	else
                                                		tmp = (i * b) * a;
                                                	end
                                                	tmp_2 = tmp;
                                                end
                                                
                                                code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.55e+62], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[a, -6.8e-157], N[(N[((-i) * j), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[a, 2.35e+32], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision]]]]
                                                
                                                \begin{array}{l}
                                                
                                                \\
                                                \begin{array}{l}
                                                \mathbf{if}\;a \leq -1.55 \cdot 10^{+62}:\\
                                                \;\;\;\;\left(b \cdot a\right) \cdot i\\
                                                
                                                \mathbf{elif}\;a \leq -6.8 \cdot 10^{-157}:\\
                                                \;\;\;\;\left(\left(-i\right) \cdot j\right) \cdot y\\
                                                
                                                \mathbf{elif}\;a \leq 2.35 \cdot 10^{+32}:\\
                                                \;\;\;\;\left(z \cdot y\right) \cdot x\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;\left(i \cdot b\right) \cdot a\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 4 regimes
                                                2. if a < -1.55000000000000007e62

                                                  1. Initial program 70.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-*.f6455.6

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

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

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

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

                                                    if -1.55000000000000007e62 < a < -6.79999999999999955e-157

                                                    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 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-*.f6451.2

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

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

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

                                                        \[\leadsto \left(\left(-i\right) \cdot j\right) \cdot \color{blue}{y} \]

                                                      if -6.79999999999999955e-157 < a < 2.35000000000000012e32

                                                      1. Initial program 79.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 x around inf

                                                        \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                      4. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

                                                        if 2.35000000000000012e32 < a

                                                        1. Initial program 72.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 j around 0

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

                                                            \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\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) + x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                          3. *-commutativeN/A

                                                            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z - a \cdot i\right) \cdot b}\right)\right) + x \cdot \left(y \cdot z - a \cdot t\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} + x \cdot \left(y \cdot z - a \cdot t\right) \]
                                                          5. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.55 \cdot 10^{+62}:\\ \;\;\;\;\left(b \cdot a\right) \cdot i\\ \mathbf{elif}\;a \leq -6.8 \cdot 10^{-157}:\\ \;\;\;\;\left(\left(-i\right) \cdot j\right) \cdot y\\ \mathbf{elif}\;a \leq 2.35 \cdot 10^{+32}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \end{array} \]
                                                        10. Add Preprocessing

                                                        Alternative 18: 29.3% accurate, 2.6× speedup?

                                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -21000000:\\ \;\;\;\;\left(b \cdot a\right) \cdot i\\ \mathbf{elif}\;a \leq 2.35 \cdot 10^{+32}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \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 (<= a -21000000.0)
                                                           (* (* b a) i)
                                                           (if (<= a 2.35e+32) (* (* z y) x) (* (* 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 (a <= -21000000.0) {
                                                        		tmp = (b * a) * i;
                                                        	} else if (a <= 2.35e+32) {
                                                        		tmp = (z * y) * x;
                                                        	} 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 (a <= (-21000000.0d0)) then
                                                                tmp = (b * a) * i
                                                            else if (a <= 2.35d+32) then
                                                                tmp = (z * y) * x
                                                            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 (a <= -21000000.0) {
                                                        		tmp = (b * a) * i;
                                                        	} else if (a <= 2.35e+32) {
                                                        		tmp = (z * y) * x;
                                                        	} else {
                                                        		tmp = (i * b) * a;
                                                        	}
                                                        	return tmp;
                                                        }
                                                        
                                                        def code(x, y, z, t, a, b, c, i, j):
                                                        	tmp = 0
                                                        	if a <= -21000000.0:
                                                        		tmp = (b * a) * i
                                                        	elif a <= 2.35e+32:
                                                        		tmp = (z * y) * x
                                                        	else:
                                                        		tmp = (i * b) * a
                                                        	return tmp
                                                        
                                                        function code(x, y, z, t, a, b, c, i, j)
                                                        	tmp = 0.0
                                                        	if (a <= -21000000.0)
                                                        		tmp = Float64(Float64(b * a) * i);
                                                        	elseif (a <= 2.35e+32)
                                                        		tmp = Float64(Float64(z * y) * x);
                                                        	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 (a <= -21000000.0)
                                                        		tmp = (b * a) * i;
                                                        	elseif (a <= 2.35e+32)
                                                        		tmp = (z * y) * x;
                                                        	else
                                                        		tmp = (i * b) * a;
                                                        	end
                                                        	tmp_2 = tmp;
                                                        end
                                                        
                                                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -21000000.0], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[a, 2.35e+32], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision]]]
                                                        
                                                        \begin{array}{l}
                                                        
                                                        \\
                                                        \begin{array}{l}
                                                        \mathbf{if}\;a \leq -21000000:\\
                                                        \;\;\;\;\left(b \cdot a\right) \cdot i\\
                                                        
                                                        \mathbf{elif}\;a \leq 2.35 \cdot 10^{+32}:\\
                                                        \;\;\;\;\left(z \cdot y\right) \cdot x\\
                                                        
                                                        \mathbf{else}:\\
                                                        \;\;\;\;\left(i \cdot b\right) \cdot a\\
                                                        
                                                        
                                                        \end{array}
                                                        \end{array}
                                                        
                                                        Derivation
                                                        1. Split input into 3 regimes
                                                        2. if a < -2.1e7

                                                          1. Initial program 71.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-*.f6459.7

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

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

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

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

                                                            if -2.1e7 < a < 2.35000000000000012e32

                                                            1. Initial program 78.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 x around inf

                                                              \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                            4. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

                                                              if 2.35000000000000012e32 < a

                                                              1. Initial program 72.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 j around 0

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

                                                                  \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\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) + x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                                3. *-commutativeN/A

                                                                  \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z - a \cdot i\right) \cdot b}\right)\right) + x \cdot \left(y \cdot z - a \cdot t\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} + x \cdot \left(y \cdot z - a \cdot t\right) \]
                                                                5. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                  \[\leadsto \left(b \cdot i\right) \cdot \color{blue}{a} \]
                                                              8. Recombined 3 regimes into one program.
                                                              9. Final simplification38.3%

                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -21000000:\\ \;\;\;\;\left(b \cdot a\right) \cdot i\\ \mathbf{elif}\;a \leq 2.35 \cdot 10^{+32}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \end{array} \]
                                                              10. Add Preprocessing

                                                              Alternative 19: 29.0% accurate, 2.6× speedup?

                                                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(i \cdot b\right) \cdot a\\ \mathbf{if}\;a \leq -21000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 2.35 \cdot 10^{+32}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                              (FPCore (x y z t a b c i j)
                                                               :precision binary64
                                                               (let* ((t_1 (* (* i b) a)))
                                                                 (if (<= a -21000000.0) t_1 (if (<= a 2.35e+32) (* (* z y) x) 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 = (i * b) * a;
                                                              	double tmp;
                                                              	if (a <= -21000000.0) {
                                                              		tmp = t_1;
                                                              	} else if (a <= 2.35e+32) {
                                                              		tmp = (z * y) * x;
                                                              	} else {
                                                              		tmp = t_1;
                                                              	}
                                                              	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) :: tmp
                                                                  t_1 = (i * b) * a
                                                                  if (a <= (-21000000.0d0)) then
                                                                      tmp = t_1
                                                                  else if (a <= 2.35d+32) then
                                                                      tmp = (z * y) * x
                                                                  else
                                                                      tmp = t_1
                                                                  end if
                                                                  code = tmp
                                                              end function
                                                              
                                                              public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                              	double t_1 = (i * b) * a;
                                                              	double tmp;
                                                              	if (a <= -21000000.0) {
                                                              		tmp = t_1;
                                                              	} else if (a <= 2.35e+32) {
                                                              		tmp = (z * y) * x;
                                                              	} else {
                                                              		tmp = t_1;
                                                              	}
                                                              	return tmp;
                                                              }
                                                              
                                                              def code(x, y, z, t, a, b, c, i, j):
                                                              	t_1 = (i * b) * a
                                                              	tmp = 0
                                                              	if a <= -21000000.0:
                                                              		tmp = t_1
                                                              	elif a <= 2.35e+32:
                                                              		tmp = (z * y) * x
                                                              	else:
                                                              		tmp = t_1
                                                              	return tmp
                                                              
                                                              function code(x, y, z, t, a, b, c, i, j)
                                                              	t_1 = Float64(Float64(i * b) * a)
                                                              	tmp = 0.0
                                                              	if (a <= -21000000.0)
                                                              		tmp = t_1;
                                                              	elseif (a <= 2.35e+32)
                                                              		tmp = Float64(Float64(z * y) * x);
                                                              	else
                                                              		tmp = t_1;
                                                              	end
                                                              	return tmp
                                                              end
                                                              
                                                              function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                              	t_1 = (i * b) * a;
                                                              	tmp = 0.0;
                                                              	if (a <= -21000000.0)
                                                              		tmp = t_1;
                                                              	elseif (a <= 2.35e+32)
                                                              		tmp = (z * y) * x;
                                                              	else
                                                              		tmp = t_1;
                                                              	end
                                                              	tmp_2 = tmp;
                                                              end
                                                              
                                                              code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[a, -21000000.0], t$95$1, If[LessEqual[a, 2.35e+32], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
                                                              
                                                              \begin{array}{l}
                                                              
                                                              \\
                                                              \begin{array}{l}
                                                              t_1 := \left(i \cdot b\right) \cdot a\\
                                                              \mathbf{if}\;a \leq -21000000:\\
                                                              \;\;\;\;t\_1\\
                                                              
                                                              \mathbf{elif}\;a \leq 2.35 \cdot 10^{+32}:\\
                                                              \;\;\;\;\left(z \cdot y\right) \cdot x\\
                                                              
                                                              \mathbf{else}:\\
                                                              \;\;\;\;t\_1\\
                                                              
                                                              
                                                              \end{array}
                                                              \end{array}
                                                              
                                                              Derivation
                                                              1. Split input into 2 regimes
                                                              2. if a < -2.1e7 or 2.35000000000000012e32 < a

                                                                1. Initial program 71.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 j around 0

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

                                                                    \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\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) + x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                                  3. *-commutativeN/A

                                                                    \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z - a \cdot i\right) \cdot b}\right)\right) + x \cdot \left(y \cdot z - a \cdot t\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} + x \cdot \left(y \cdot z - a \cdot t\right) \]
                                                                  5. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                  if -2.1e7 < a < 2.35000000000000012e32

                                                                  1. Initial program 78.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 x around inf

                                                                    \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                                  4. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

                                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -21000000:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{elif}\;a \leq 2.35 \cdot 10^{+32}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \end{array} \]
                                                                  10. Add Preprocessing

                                                                  Alternative 20: 29.4% accurate, 2.6× speedup?

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

                                                                    1. Initial program 72.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 j around 0

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

                                                                        \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\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) + x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                                      3. *-commutativeN/A

                                                                        \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z - a \cdot i\right) \cdot b}\right)\right) + x \cdot \left(y \cdot z - a \cdot t\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} + x \cdot \left(y \cdot z - a \cdot t\right) \]
                                                                      5. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                      if -3.14999999999999991e-15 < i < 1.25e-79

                                                                      1. Initial program 80.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 j around inf

                                                                        \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)} \]
                                                                      4. 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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

                                                                        \[\leadsto c \cdot \color{blue}{\left(j \cdot t\right)} \]
                                                                      7. Step-by-step derivation
                                                                        1. Applied rewrites26.0%

                                                                          \[\leadsto \left(t \cdot j\right) \cdot \color{blue}{c} \]
                                                                      8. Recombined 2 regimes into one program.
                                                                      9. Final simplification34.8%

                                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -3.15 \cdot 10^{-15}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{elif}\;i \leq 1.25 \cdot 10^{-79}:\\ \;\;\;\;\left(j \cdot t\right) \cdot c\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \end{array} \]
                                                                      10. Add Preprocessing

                                                                      Alternative 21: 23.0% accurate, 5.5× speedup?

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

                                                                        \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)} \]
                                                                      4. 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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

                                                                        \[\leadsto c \cdot \color{blue}{\left(j \cdot t\right)} \]
                                                                      7. Step-by-step derivation
                                                                        1. Applied rewrites18.4%

                                                                          \[\leadsto \left(t \cdot j\right) \cdot \color{blue}{c} \]
                                                                        2. Step-by-step derivation
                                                                          1. Applied rewrites18.4%

                                                                            \[\leadsto \color{blue}{\left(j \cdot c\right) \cdot t} \]
                                                                          2. Add Preprocessing

                                                                          Developer Target 1: 68.8% 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 2024243 
                                                                          (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)))))