Data.Colour.Matrix:determinant from colour-2.3.3, A

Percentage Accurate: 73.3% → 85.6%
Time: 21.2s
Alternatives: 23
Speedup: 0.9×

Specification

?
\[\begin{array}{l} \\ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (+
  (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i))))
  (* j (- (* c a) (* y i)))))
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) - (t * i)))) + (j * ((c * a) - (y * i)));
}
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) - (t * i)))) + (j * ((c * a) - (y * i)))
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) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j):
	return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
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(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i))))
end
function tmp = code(x, y, z, t, a, b, c, i, j)
	tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
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[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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 23 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 - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (+
  (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i))))
  (* j (- (* c a) (* y i)))))
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) - (t * i)))) + (j * ((c * a) - (y * i)));
}
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) - (t * i)))) + (j * ((c * a) - (y * i)))
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) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j):
	return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
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(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i))))
end
function tmp = code(x, y, z, t, a, b, c, i, j)
	tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
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[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Alternative 1: 85.6% accurate, 0.5× speedup?

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

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

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


\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 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0

    1. Initial program 94.3%

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

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

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

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

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

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

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

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

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

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

    1. Initial program 0.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 2: 84.1% accurate, 0.5× speedup?

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

      1. Initial program 94.3%

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

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

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

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

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

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

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

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

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

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

      1. Initial program 0.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \left(t \cdot \left(-1 \cdot \frac{a \cdot x}{j} + \frac{b \cdot i}{j}\right)\right) \cdot j \]
        3. Step-by-step derivation
          1. Applied rewrites51.2%

            \[\leadsto \frac{\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t}{j} \cdot j \]
          2. Taylor expanded in j around 0

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

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

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

          Alternative 3: 78.8% accurate, 0.9× speedup?

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

            1. Initial program 73.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \mathsf{neg}\left(\left(c \cdot z + \color{blue}{\left(\mathsf{neg}\left(i\right)\right)} \cdot t\right) \cdot b\right)\right) \]
              6. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

            if -2.0999999999999999e137 < x < 3.30000000000000013e126

            1. Initial program 76.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 4: 70.6% accurate, 1.1× speedup?

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

            1. Initial program 83.9%

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

              \[\leadsto \color{blue}{\left(j \cdot \left(a \cdot c - 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. associate--l+N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -2.4e-88 < j < 1.3999999999999999e37

            1. Initial program 69.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \left(t \cdot \left(-1 \cdot \frac{a \cdot x}{j} + \frac{b \cdot i}{j}\right)\right) \cdot j \]
              3. Step-by-step derivation
                1. Applied rewrites41.1%

                  \[\leadsto \frac{\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t}{j} \cdot j \]
                2. Taylor expanded in j around 0

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

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

                  if 1.3500000000000001e133 < j

                  1. Initial program 69.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j} \]
                      2. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                  Alternative 5: 70.1% accurate, 1.2× speedup?

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

                    1. Initial program 64.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \left(t \cdot \left(-1 \cdot \frac{a \cdot x}{j} + \frac{b \cdot i}{j}\right)\right) \cdot j \]
                      3. Step-by-step derivation
                        1. Applied rewrites41.7%

                          \[\leadsto \frac{\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t}{j} \cdot j \]
                        2. Taylor expanded in j around 0

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

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

                          if -1.79999999999999995e-21 < b < 2.05000000000000003e-16

                          1. Initial program 81.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j\right) \]
                            8. lower-*.f6477.3

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

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

                          if 2.05000000000000003e-16 < b

                          1. Initial program 75.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \mathsf{neg}\left(\left(c \cdot z + \color{blue}{\left(\mathsf{neg}\left(i\right)\right)} \cdot t\right) \cdot b\right)\right) \]
                            6. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

                        Alternative 6: 67.8% accurate, 1.2× speedup?

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

                          1. Initial program 93.0%

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

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

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

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

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

                              \[\leadsto \color{blue}{\left(z \cdot x\right)} \cdot y + j \cdot \left(c \cdot a - y \cdot i\right) \]
                            5. lower-*.f6474.1

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

                            \[\leadsto \color{blue}{\left(z \cdot x\right) \cdot y} + j \cdot \left(c \cdot a - y \cdot i\right) \]
                          6. Step-by-step derivation
                            1. lift-+.f64N/A

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

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

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

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

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

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

                              \[\leadsto \mathsf{fma}\left(c \cdot a - \color{blue}{y \cdot i}, j, \left(z \cdot x\right) \cdot y\right) \]
                            8. fp-cancel-sub-sign-invN/A

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

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

                              \[\leadsto \mathsf{fma}\left(\color{blue}{\left(-y\right) \cdot i + c \cdot a}, j, \left(z \cdot x\right) \cdot y\right) \]
                            11. lift-fma.f6474.1

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

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

                          if -4.1e188 < j < 2.9499999999999999e53

                          1. Initial program 73.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \left(t \cdot \left(-1 \cdot \frac{a \cdot x}{j} + \frac{b \cdot i}{j}\right)\right) \cdot j \]
                            3. Step-by-step derivation
                              1. Applied rewrites41.4%

                                \[\leadsto \frac{\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t}{j} \cdot j \]
                              2. Taylor expanded in j around 0

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

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

                                if 2.9499999999999999e53 < j

                                1. Initial program 73.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j} \]
                                    2. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                Alternative 7: 50.6% accurate, 1.2× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \mathbf{if}\;j \leq -1.26 \cdot 10^{+188}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq -5.8 \cdot 10^{+65}:\\ \;\;\;\;\mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\ \mathbf{elif}\;j \leq -2.6 \cdot 10^{-50}:\\ \;\;\;\;\mathsf{fma}\left(y, x, \left(-b\right) \cdot c\right) \cdot z\\ \mathbf{elif}\;j \leq -3.5 \cdot 10^{-87} \lor \neg \left(j \leq 4.7 \cdot 10^{+51}\right):\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\ \end{array} \end{array} \]
                                (FPCore (x y z t a b c i j)
                                 :precision binary64
                                 (let* ((t_1 (* (fma (- i) y (* c a)) j)))
                                   (if (<= j -1.26e+188)
                                     t_1
                                     (if (<= j -5.8e+65)
                                       (* (fma (- x) t (* j c)) a)
                                       (if (<= j -2.6e-50)
                                         (* (fma y x (* (- b) c)) z)
                                         (if (or (<= j -3.5e-87) (not (<= j 4.7e+51)))
                                           t_1
                                           (* (fma (- a) x (* i b)) t)))))))
                                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 * a)) * j;
                                	double tmp;
                                	if (j <= -1.26e+188) {
                                		tmp = t_1;
                                	} else if (j <= -5.8e+65) {
                                		tmp = fma(-x, t, (j * c)) * a;
                                	} else if (j <= -2.6e-50) {
                                		tmp = fma(y, x, (-b * c)) * z;
                                	} else if ((j <= -3.5e-87) || !(j <= 4.7e+51)) {
                                		tmp = t_1;
                                	} else {
                                		tmp = fma(-a, x, (i * b)) * t;
                                	}
                                	return tmp;
                                }
                                
                                function code(x, y, z, t, a, b, c, i, j)
                                	t_1 = Float64(fma(Float64(-i), y, Float64(c * a)) * j)
                                	tmp = 0.0
                                	if (j <= -1.26e+188)
                                		tmp = t_1;
                                	elseif (j <= -5.8e+65)
                                		tmp = Float64(fma(Float64(-x), t, Float64(j * c)) * a);
                                	elseif (j <= -2.6e-50)
                                		tmp = Float64(fma(y, x, Float64(Float64(-b) * c)) * z);
                                	elseif ((j <= -3.5e-87) || !(j <= 4.7e+51))
                                		tmp = t_1;
                                	else
                                		tmp = Float64(fma(Float64(-a), x, Float64(i * b)) * t);
                                	end
                                	return tmp
                                end
                                
                                code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[j, -1.26e+188], t$95$1, If[LessEqual[j, -5.8e+65], N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[j, -2.6e-50], N[(N[(y * x + N[((-b) * c), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[Or[LessEqual[j, -3.5e-87], N[Not[LessEqual[j, 4.7e+51]], $MachinePrecision]], t$95$1, N[(N[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]]]]]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                t_1 := \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
                                \mathbf{if}\;j \leq -1.26 \cdot 10^{+188}:\\
                                \;\;\;\;t\_1\\
                                
                                \mathbf{elif}\;j \leq -5.8 \cdot 10^{+65}:\\
                                \;\;\;\;\mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\
                                
                                \mathbf{elif}\;j \leq -2.6 \cdot 10^{-50}:\\
                                \;\;\;\;\mathsf{fma}\left(y, x, \left(-b\right) \cdot c\right) \cdot z\\
                                
                                \mathbf{elif}\;j \leq -3.5 \cdot 10^{-87} \lor \neg \left(j \leq 4.7 \cdot 10^{+51}\right):\\
                                \;\;\;\;t\_1\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 4 regimes
                                2. if j < -1.26000000000000001e188 or -2.6000000000000001e-50 < j < -3.50000000000000012e-87 or 4.7000000000000002e51 < j

                                  1. Initial program 82.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j} \]
                                      2. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

                                    if -1.26000000000000001e188 < j < -5.8000000000000001e65

                                    1. Initial program 74.0%

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

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

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

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

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

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

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

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

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

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

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

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

                                    if -5.8000000000000001e65 < j < -2.6000000000000001e-50

                                    1. Initial program 83.9%

                                      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

                                      if -3.50000000000000012e-87 < j < 4.7000000000000002e51

                                      1. Initial program 70.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -1.26 \cdot 10^{+188}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \mathbf{elif}\;j \leq -5.8 \cdot 10^{+65}:\\ \;\;\;\;\mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\ \mathbf{elif}\;j \leq -2.6 \cdot 10^{-50}:\\ \;\;\;\;\mathsf{fma}\left(y, x, \left(-b\right) \cdot c\right) \cdot z\\ \mathbf{elif}\;j \leq -3.5 \cdot 10^{-87} \lor \neg \left(j \leq 4.7 \cdot 10^{+51}\right):\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\ \end{array} \]
                                    9. Add Preprocessing

                                    Alternative 8: 50.0% accurate, 1.2× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\ t_2 := \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \mathbf{if}\;j \leq -3.4 \cdot 10^{+179}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;j \leq -1.2 \cdot 10^{+16}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq -2.6 \cdot 10^{-50}:\\ \;\;\;\;\mathsf{fma}\left(y, x, \left(-b\right) \cdot c\right) \cdot z\\ \mathbf{elif}\;j \leq -3.5 \cdot 10^{-87} \lor \neg \left(j \leq 4.7 \cdot 10^{+51}\right):\\ \;\;\;\;t\_2\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                    (FPCore (x y z t a b c i j)
                                     :precision binary64
                                     (let* ((t_1 (* (fma (- a) x (* i b)) t)) (t_2 (* (fma (- i) y (* c a)) j)))
                                       (if (<= j -3.4e+179)
                                         t_2
                                         (if (<= j -1.2e+16)
                                           t_1
                                           (if (<= j -2.6e-50)
                                             (* (fma y x (* (- b) c)) z)
                                             (if (or (<= j -3.5e-87) (not (<= j 4.7e+51))) t_2 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(-a, x, (i * b)) * t;
                                    	double t_2 = fma(-i, y, (c * a)) * j;
                                    	double tmp;
                                    	if (j <= -3.4e+179) {
                                    		tmp = t_2;
                                    	} else if (j <= -1.2e+16) {
                                    		tmp = t_1;
                                    	} else if (j <= -2.6e-50) {
                                    		tmp = fma(y, x, (-b * c)) * z;
                                    	} else if ((j <= -3.5e-87) || !(j <= 4.7e+51)) {
                                    		tmp = t_2;
                                    	} else {
                                    		tmp = t_1;
                                    	}
                                    	return tmp;
                                    }
                                    
                                    function code(x, y, z, t, a, b, c, i, j)
                                    	t_1 = Float64(fma(Float64(-a), x, Float64(i * b)) * t)
                                    	t_2 = Float64(fma(Float64(-i), y, Float64(c * a)) * j)
                                    	tmp = 0.0
                                    	if (j <= -3.4e+179)
                                    		tmp = t_2;
                                    	elseif (j <= -1.2e+16)
                                    		tmp = t_1;
                                    	elseif (j <= -2.6e-50)
                                    		tmp = Float64(fma(y, x, Float64(Float64(-b) * c)) * z);
                                    	elseif ((j <= -3.5e-87) || !(j <= 4.7e+51))
                                    		tmp = t_2;
                                    	else
                                    		tmp = t_1;
                                    	end
                                    	return tmp
                                    end
                                    
                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[j, -3.4e+179], t$95$2, If[LessEqual[j, -1.2e+16], t$95$1, If[LessEqual[j, -2.6e-50], N[(N[(y * x + N[((-b) * c), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[Or[LessEqual[j, -3.5e-87], N[Not[LessEqual[j, 4.7e+51]], $MachinePrecision]], t$95$2, t$95$1]]]]]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    t_1 := \mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\
                                    t_2 := \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
                                    \mathbf{if}\;j \leq -3.4 \cdot 10^{+179}:\\
                                    \;\;\;\;t\_2\\
                                    
                                    \mathbf{elif}\;j \leq -1.2 \cdot 10^{+16}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    \mathbf{elif}\;j \leq -2.6 \cdot 10^{-50}:\\
                                    \;\;\;\;\mathsf{fma}\left(y, x, \left(-b\right) \cdot c\right) \cdot z\\
                                    
                                    \mathbf{elif}\;j \leq -3.5 \cdot 10^{-87} \lor \neg \left(j \leq 4.7 \cdot 10^{+51}\right):\\
                                    \;\;\;\;t\_2\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 3 regimes
                                    2. if j < -3.39999999999999996e179 or -2.6000000000000001e-50 < j < -3.50000000000000012e-87 or 4.7000000000000002e51 < j

                                      1. Initial program 82.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            \[\leadsto \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j} \]
                                          2. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

                                        if -3.39999999999999996e179 < j < -1.2e16 or -3.50000000000000012e-87 < j < 4.7000000000000002e51

                                        1. Initial program 70.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        if -1.2e16 < j < -2.6000000000000001e-50

                                        1. Initial program 93.1%

                                          \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -3.4 \cdot 10^{+179}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \mathbf{elif}\;j \leq -1.2 \cdot 10^{+16}:\\ \;\;\;\;\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\ \mathbf{elif}\;j \leq -2.6 \cdot 10^{-50}:\\ \;\;\;\;\mathsf{fma}\left(y, x, \left(-b\right) \cdot c\right) \cdot z\\ \mathbf{elif}\;j \leq -3.5 \cdot 10^{-87} \lor \neg \left(j \leq 4.7 \cdot 10^{+51}\right):\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\ \end{array} \]
                                        9. Add Preprocessing

                                        Alternative 9: 50.5% accurate, 1.2× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c\\ \mathbf{if}\;c \leq -6.4 \cdot 10^{+114}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq -1.75 \cdot 10^{-53}:\\ \;\;\;\;\mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\ \mathbf{elif}\;c \leq -1.85 \cdot 10^{-166}:\\ \;\;\;\;\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\ \mathbf{elif}\;c \leq -6 \cdot 10^{-264}:\\ \;\;\;\;\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\ \mathbf{elif}\;c \leq 1.42 \cdot 10^{-31}:\\ \;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a b c i j)
                                         :precision binary64
                                         (let* ((t_1 (* (fma (- z) b (* j a)) c)))
                                           (if (<= c -6.4e+114)
                                             t_1
                                             (if (<= c -1.75e-53)
                                               (* (fma (- t) a (* z y)) x)
                                               (if (<= c -1.85e-166)
                                                 (* (fma (- y) j (* b t)) i)
                                                 (if (<= c -6e-264)
                                                   (* (fma (- a) x (* i b)) t)
                                                   (if (<= c 1.42e-31) (* (fma (- i) j (* z x)) y) t_1)))))))
                                        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                        	double t_1 = fma(-z, b, (j * a)) * c;
                                        	double tmp;
                                        	if (c <= -6.4e+114) {
                                        		tmp = t_1;
                                        	} else if (c <= -1.75e-53) {
                                        		tmp = fma(-t, a, (z * y)) * x;
                                        	} else if (c <= -1.85e-166) {
                                        		tmp = fma(-y, j, (b * t)) * i;
                                        	} else if (c <= -6e-264) {
                                        		tmp = fma(-a, x, (i * b)) * t;
                                        	} else if (c <= 1.42e-31) {
                                        		tmp = fma(-i, j, (z * x)) * y;
                                        	} else {
                                        		tmp = t_1;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        function code(x, y, z, t, a, b, c, i, j)
                                        	t_1 = Float64(fma(Float64(-z), b, Float64(j * a)) * c)
                                        	tmp = 0.0
                                        	if (c <= -6.4e+114)
                                        		tmp = t_1;
                                        	elseif (c <= -1.75e-53)
                                        		tmp = Float64(fma(Float64(-t), a, Float64(z * y)) * x);
                                        	elseif (c <= -1.85e-166)
                                        		tmp = Float64(fma(Float64(-y), j, Float64(b * t)) * i);
                                        	elseif (c <= -6e-264)
                                        		tmp = Float64(fma(Float64(-a), x, Float64(i * b)) * t);
                                        	elseif (c <= 1.42e-31)
                                        		tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y);
                                        	else
                                        		tmp = t_1;
                                        	end
                                        	return tmp
                                        end
                                        
                                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[c, -6.4e+114], t$95$1, If[LessEqual[c, -1.75e-53], N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[c, -1.85e-166], N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[c, -6e-264], N[(N[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[c, 1.42e-31], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]]]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        t_1 := \mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c\\
                                        \mathbf{if}\;c \leq -6.4 \cdot 10^{+114}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        \mathbf{elif}\;c \leq -1.75 \cdot 10^{-53}:\\
                                        \;\;\;\;\mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\
                                        
                                        \mathbf{elif}\;c \leq -1.85 \cdot 10^{-166}:\\
                                        \;\;\;\;\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\
                                        
                                        \mathbf{elif}\;c \leq -6 \cdot 10^{-264}:\\
                                        \;\;\;\;\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\
                                        
                                        \mathbf{elif}\;c \leq 1.42 \cdot 10^{-31}:\\
                                        \;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 5 regimes
                                        2. if c < -6.4e114 or 1.4200000000000001e-31 < c

                                          1. Initial program 73.7%

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

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

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

                                              \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                            3. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

                                              \[\leadsto \mathsf{fma}\left(-z, b, \color{blue}{j \cdot a}\right) \cdot c \]
                                            13. lower-*.f6470.1

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

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

                                          if -6.4e114 < c < -1.74999999999999997e-53

                                          1. Initial program 75.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                          7. 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. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          if -1.74999999999999997e-53 < c < -1.8500000000000001e-166

                                          1. Initial program 71.9%

                                            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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(b \cdot t\right)\right)} \]
                                          4. Step-by-step derivation
                                            1. *-commutativeN/A

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

                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                                            3. fp-cancel-sub-sign-invN/A

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

                                              \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot t\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\right)\right) \cdot \left(b \cdot t\right)\right) \cdot i \]
                                            6. metadata-evalN/A

                                              \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{1} \cdot \left(b \cdot t\right)\right) \cdot i \]
                                            7. *-lft-identityN/A

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

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

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

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

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

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

                                          if -1.8500000000000001e-166 < c < -6.0000000000000001e-264

                                          1. Initial program 95.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          if -6.0000000000000001e-264 < c < 1.4200000000000001e-31

                                          1. Initial program 74.7%

                                            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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. mul-1-negN/A

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

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

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

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

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

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

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

                                        Alternative 10: 60.0% accurate, 1.5× speedup?

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

                                          1. Initial program 70.4%

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

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

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

                                              \[\leadsto \color{blue}{\left(i \cdot t - c \cdot z\right) \cdot b} \]
                                            3. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

                                          if -2.39999999999999993e-20 < b < 2.25e11

                                          1. Initial program 80.8%

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

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

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

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

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

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

                                              \[\leadsto \color{blue}{\left(z \cdot x\right)} \cdot y + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                          5. Applied rewrites62.9%

                                            \[\leadsto \color{blue}{\left(z \cdot x\right) \cdot y} + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                          6. Step-by-step derivation
                                            1. lift-+.f64N/A

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

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

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

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

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

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

                                              \[\leadsto \mathsf{fma}\left(c \cdot a - \color{blue}{y \cdot i}, j, \left(z \cdot x\right) \cdot y\right) \]
                                            8. fp-cancel-sub-sign-invN/A

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

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

                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\left(-y\right) \cdot i + c \cdot a}, j, \left(z \cdot x\right) \cdot y\right) \]
                                            11. lift-fma.f6462.9

                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-y, i, c \cdot a\right)}, j, \left(z \cdot x\right) \cdot y\right) \]
                                          7. Applied rewrites62.9%

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

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

                                        Alternative 11: 28.3% accurate, 1.6× speedup?

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

                                          1. Initial program 67.0%

                                            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            if -1.34999999999999994e-30 < z < 6.59999999999999979e-221

                                            1. Initial program 78.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                              if 6.59999999999999979e-221 < z < 1.19999999999999994e-122

                                              1. Initial program 89.6%

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

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

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

                                                  \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                                3. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                if 1.19999999999999994e-122 < z < 1.8e228

                                                1. Initial program 80.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                Alternative 12: 52.1% accurate, 1.6× speedup?

                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\ \mathbf{if}\;a \leq -6.2 \cdot 10^{-33}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 1.7 \cdot 10^{-233}:\\ \;\;\;\;\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\ \mathbf{elif}\;a \leq 1.6 \cdot 10^{+27}:\\ \;\;\;\;\mathsf{fma}\left(y, x, \left(-b\right) \cdot c\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                (FPCore (x y z t a b c i j)
                                                 :precision binary64
                                                 (let* ((t_1 (* (fma (- x) t (* j c)) a)))
                                                   (if (<= a -6.2e-33)
                                                     t_1
                                                     (if (<= a 1.7e-233)
                                                       (* (fma (- y) j (* b t)) i)
                                                       (if (<= a 1.6e+27) (* (fma y x (* (- b) c)) 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(-x, t, (j * c)) * a;
                                                	double tmp;
                                                	if (a <= -6.2e-33) {
                                                		tmp = t_1;
                                                	} else if (a <= 1.7e-233) {
                                                		tmp = fma(-y, j, (b * t)) * i;
                                                	} else if (a <= 1.6e+27) {
                                                		tmp = fma(y, x, (-b * c)) * z;
                                                	} else {
                                                		tmp = t_1;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                function code(x, y, z, t, a, b, c, i, j)
                                                	t_1 = Float64(fma(Float64(-x), t, Float64(j * c)) * a)
                                                	tmp = 0.0
                                                	if (a <= -6.2e-33)
                                                		tmp = t_1;
                                                	elseif (a <= 1.7e-233)
                                                		tmp = Float64(fma(Float64(-y), j, Float64(b * t)) * i);
                                                	elseif (a <= 1.6e+27)
                                                		tmp = Float64(fma(y, x, Float64(Float64(-b) * c)) * 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[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[a, -6.2e-33], t$95$1, If[LessEqual[a, 1.7e-233], N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[a, 1.6e+27], N[(N[(y * x + N[((-b) * c), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]
                                                
                                                \begin{array}{l}
                                                
                                                \\
                                                \begin{array}{l}
                                                t_1 := \mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\
                                                \mathbf{if}\;a \leq -6.2 \cdot 10^{-33}:\\
                                                \;\;\;\;t\_1\\
                                                
                                                \mathbf{elif}\;a \leq 1.7 \cdot 10^{-233}:\\
                                                \;\;\;\;\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\
                                                
                                                \mathbf{elif}\;a \leq 1.6 \cdot 10^{+27}:\\
                                                \;\;\;\;\mathsf{fma}\left(y, x, \left(-b\right) \cdot c\right) \cdot z\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;t\_1\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 3 regimes
                                                2. if a < -6.19999999999999994e-33 or 1.60000000000000008e27 < a

                                                  1. Initial program 66.9%

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

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

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

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

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

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

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

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

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

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

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

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

                                                  if -6.19999999999999994e-33 < a < 1.7000000000000001e-233

                                                  1. Initial program 80.9%

                                                    \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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(b \cdot t\right)\right)} \]
                                                  4. Step-by-step derivation
                                                    1. *-commutativeN/A

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

                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                                                    3. fp-cancel-sub-sign-invN/A

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

                                                      \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot t\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\right)\right) \cdot \left(b \cdot t\right)\right) \cdot i \]
                                                    6. metadata-evalN/A

                                                      \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{1} \cdot \left(b \cdot t\right)\right) \cdot i \]
                                                    7. *-lft-identityN/A

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

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

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

                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, j, b \cdot t\right) \cdot i \]
                                                    11. lower-*.f6453.2

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

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

                                                  if 1.7000000000000001e-233 < a < 1.60000000000000008e27

                                                  1. Initial program 88.2%

                                                    \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

                                                      \[\leadsto \mathsf{fma}\left(y, x, \left(-b\right) \cdot c\right) \cdot z \]
                                                  7. Recombined 3 regimes into one program.
                                                  8. Add Preprocessing

                                                  Alternative 13: 42.8% accurate, 1.6× speedup?

                                                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y, x, \left(-b\right) \cdot c\right) \cdot z\\ \mathbf{if}\;z \leq -1.9 \cdot 10^{-40}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 3.1 \cdot 10^{-169}:\\ \;\;\;\;\left(i \cdot b\right) \cdot t\\ \mathbf{elif}\;z \leq 6.2 \cdot 10^{-9}:\\ \;\;\;\;\left(\left(-x\right) \cdot a\right) \cdot t\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                  (FPCore (x y z t a b c i j)
                                                   :precision binary64
                                                   (let* ((t_1 (* (fma y x (* (- b) c)) z)))
                                                     (if (<= z -1.9e-40)
                                                       t_1
                                                       (if (<= z 3.1e-169)
                                                         (* (* i b) t)
                                                         (if (<= z 6.2e-9) (* (* (- x) a) t) t_1)))))
                                                  double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                  	double t_1 = fma(y, x, (-b * c)) * z;
                                                  	double tmp;
                                                  	if (z <= -1.9e-40) {
                                                  		tmp = t_1;
                                                  	} else if (z <= 3.1e-169) {
                                                  		tmp = (i * b) * t;
                                                  	} else if (z <= 6.2e-9) {
                                                  		tmp = (-x * a) * t;
                                                  	} else {
                                                  		tmp = t_1;
                                                  	}
                                                  	return tmp;
                                                  }
                                                  
                                                  function code(x, y, z, t, a, b, c, i, j)
                                                  	t_1 = Float64(fma(y, x, Float64(Float64(-b) * c)) * z)
                                                  	tmp = 0.0
                                                  	if (z <= -1.9e-40)
                                                  		tmp = t_1;
                                                  	elseif (z <= 3.1e-169)
                                                  		tmp = Float64(Float64(i * b) * t);
                                                  	elseif (z <= 6.2e-9)
                                                  		tmp = Float64(Float64(Float64(-x) * a) * t);
                                                  	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 * x + N[((-b) * c), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -1.9e-40], t$95$1, If[LessEqual[z, 3.1e-169], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, 6.2e-9], N[(N[((-x) * a), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]]
                                                  
                                                  \begin{array}{l}
                                                  
                                                  \\
                                                  \begin{array}{l}
                                                  t_1 := \mathsf{fma}\left(y, x, \left(-b\right) \cdot c\right) \cdot z\\
                                                  \mathbf{if}\;z \leq -1.9 \cdot 10^{-40}:\\
                                                  \;\;\;\;t\_1\\
                                                  
                                                  \mathbf{elif}\;z \leq 3.1 \cdot 10^{-169}:\\
                                                  \;\;\;\;\left(i \cdot b\right) \cdot t\\
                                                  
                                                  \mathbf{elif}\;z \leq 6.2 \cdot 10^{-9}:\\
                                                  \;\;\;\;\left(\left(-x\right) \cdot a\right) \cdot t\\
                                                  
                                                  \mathbf{else}:\\
                                                  \;\;\;\;t\_1\\
                                                  
                                                  
                                                  \end{array}
                                                  \end{array}
                                                  
                                                  Derivation
                                                  1. Split input into 3 regimes
                                                  2. if z < -1.8999999999999999e-40 or 6.2000000000000001e-9 < z

                                                    1. Initial program 70.8%

                                                      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

                                                      if -1.8999999999999999e-40 < z < 3.1000000000000002e-169

                                                      1. Initial program 78.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                        if 3.1000000000000002e-169 < z < 6.2000000000000001e-9

                                                        1. Initial program 88.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                        Alternative 14: 48.5% accurate, 2.0× speedup?

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

                                                          1. Initial program 68.0%

                                                            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

                                                            if -7.0000000000000003e-40 < z < 2.0000000000000002e227

                                                            1. Initial program 80.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                          Alternative 15: 28.1% accurate, 2.0× speedup?

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

                                                            1. Initial program 65.3%

                                                              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                              if -1.34999999999999994e-30 < z < 3.1000000000000002e-169

                                                              1. Initial program 79.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                if 3.1000000000000002e-169 < z < 2.0000000000000002e227

                                                                1. Initial program 82.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                  if 2.0000000000000002e227 < z

                                                                  1. Initial program 76.8%

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

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

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

                                                                      \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                                                    3. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                  Alternative 16: 28.2% accurate, 2.0× speedup?

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

                                                                    1. Initial program 67.0%

                                                                      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                      if -1.34999999999999994e-30 < z < 3.1000000000000002e-169

                                                                      1. Initial program 79.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                        if 3.1000000000000002e-169 < z < 1.8e228

                                                                        1. Initial program 82.1%

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

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

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

                                                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                                          3. fp-cancel-sub-sign-invN/A

                                                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right)} \cdot t \]
                                                                          4. associate-*r*N/A

                                                                            \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot x} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                          5. mul-1-negN/A

                                                                            \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot x + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                          6. metadata-evalN/A

                                                                            \[\leadsto \left(\left(\mathsf{neg}\left(a\right)\right) \cdot x + \color{blue}{1} \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                          7. *-lft-identityN/A

                                                                            \[\leadsto \left(\left(\mathsf{neg}\left(a\right)\right) \cdot x + \color{blue}{b \cdot i}\right) \cdot t \]
                                                                          8. lower-fma.f64N/A

                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), x, b \cdot i\right)} \cdot t \]
                                                                          9. lower-neg.f64N/A

                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, x, b \cdot i\right) \cdot t \]
                                                                          10. *-commutativeN/A

                                                                            \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                          11. lower-*.f6455.0

                                                                            \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                        5. Applied rewrites55.0%

                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t} \]
                                                                        6. Taylor expanded in x around inf

                                                                          \[\leadsto \left(-1 \cdot \left(a \cdot x\right)\right) \cdot t \]
                                                                        7. Step-by-step derivation
                                                                          1. Applied rewrites41.5%

                                                                            \[\leadsto \left(\left(-x\right) \cdot a\right) \cdot t \]
                                                                        8. Recombined 3 regimes into one program.
                                                                        9. Add Preprocessing

                                                                        Alternative 17: 30.0% accurate, 2.0× speedup?

                                                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(-t\right) \cdot x\right) \cdot a\\ \mathbf{if}\;x \leq -1.2 \cdot 10^{-32}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 1.25 \cdot 10^{-170}:\\ \;\;\;\;\left(i \cdot b\right) \cdot t\\ \mathbf{elif}\;x \leq 1.35 \cdot 10^{+37}:\\ \;\;\;\;\left(j \cdot a\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 (* (* (- t) x) a)))
                                                                           (if (<= x -1.2e-32)
                                                                             t_1
                                                                             (if (<= x 1.25e-170)
                                                                               (* (* i b) t)
                                                                               (if (<= x 1.35e+37) (* (* j a) 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 = (-t * x) * a;
                                                                        	double tmp;
                                                                        	if (x <= -1.2e-32) {
                                                                        		tmp = t_1;
                                                                        	} else if (x <= 1.25e-170) {
                                                                        		tmp = (i * b) * t;
                                                                        	} else if (x <= 1.35e+37) {
                                                                        		tmp = (j * a) * 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 = (-t * x) * a
                                                                            if (x <= (-1.2d-32)) then
                                                                                tmp = t_1
                                                                            else if (x <= 1.25d-170) then
                                                                                tmp = (i * b) * t
                                                                            else if (x <= 1.35d+37) then
                                                                                tmp = (j * a) * 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 = (-t * x) * a;
                                                                        	double tmp;
                                                                        	if (x <= -1.2e-32) {
                                                                        		tmp = t_1;
                                                                        	} else if (x <= 1.25e-170) {
                                                                        		tmp = (i * b) * t;
                                                                        	} else if (x <= 1.35e+37) {
                                                                        		tmp = (j * a) * c;
                                                                        	} else {
                                                                        		tmp = t_1;
                                                                        	}
                                                                        	return tmp;
                                                                        }
                                                                        
                                                                        def code(x, y, z, t, a, b, c, i, j):
                                                                        	t_1 = (-t * x) * a
                                                                        	tmp = 0
                                                                        	if x <= -1.2e-32:
                                                                        		tmp = t_1
                                                                        	elif x <= 1.25e-170:
                                                                        		tmp = (i * b) * t
                                                                        	elif x <= 1.35e+37:
                                                                        		tmp = (j * a) * c
                                                                        	else:
                                                                        		tmp = t_1
                                                                        	return tmp
                                                                        
                                                                        function code(x, y, z, t, a, b, c, i, j)
                                                                        	t_1 = Float64(Float64(Float64(-t) * x) * a)
                                                                        	tmp = 0.0
                                                                        	if (x <= -1.2e-32)
                                                                        		tmp = t_1;
                                                                        	elseif (x <= 1.25e-170)
                                                                        		tmp = Float64(Float64(i * b) * t);
                                                                        	elseif (x <= 1.35e+37)
                                                                        		tmp = Float64(Float64(j * a) * c);
                                                                        	else
                                                                        		tmp = t_1;
                                                                        	end
                                                                        	return tmp
                                                                        end
                                                                        
                                                                        function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                        	t_1 = (-t * x) * a;
                                                                        	tmp = 0.0;
                                                                        	if (x <= -1.2e-32)
                                                                        		tmp = t_1;
                                                                        	elseif (x <= 1.25e-170)
                                                                        		tmp = (i * b) * t;
                                                                        	elseif (x <= 1.35e+37)
                                                                        		tmp = (j * a) * 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[((-t) * x), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[x, -1.2e-32], t$95$1, If[LessEqual[x, 1.25e-170], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[x, 1.35e+37], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision], t$95$1]]]]
                                                                        
                                                                        \begin{array}{l}
                                                                        
                                                                        \\
                                                                        \begin{array}{l}
                                                                        t_1 := \left(\left(-t\right) \cdot x\right) \cdot a\\
                                                                        \mathbf{if}\;x \leq -1.2 \cdot 10^{-32}:\\
                                                                        \;\;\;\;t\_1\\
                                                                        
                                                                        \mathbf{elif}\;x \leq 1.25 \cdot 10^{-170}:\\
                                                                        \;\;\;\;\left(i \cdot b\right) \cdot t\\
                                                                        
                                                                        \mathbf{elif}\;x \leq 1.35 \cdot 10^{+37}:\\
                                                                        \;\;\;\;\left(j \cdot a\right) \cdot c\\
                                                                        
                                                                        \mathbf{else}:\\
                                                                        \;\;\;\;t\_1\\
                                                                        
                                                                        
                                                                        \end{array}
                                                                        \end{array}
                                                                        
                                                                        Derivation
                                                                        1. Split input into 3 regimes
                                                                        2. if x < -1.2000000000000001e-32 or 1.34999999999999993e37 < x

                                                                          1. Initial program 76.7%

                                                                            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                          2. Add Preprocessing
                                                                          3. Taylor expanded in t around inf

                                                                            \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                          4. Step-by-step derivation
                                                                            1. *-commutativeN/A

                                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                                            2. lower-*.f64N/A

                                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                                            3. fp-cancel-sub-sign-invN/A

                                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right)} \cdot t \]
                                                                            4. associate-*r*N/A

                                                                              \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot x} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                            5. mul-1-negN/A

                                                                              \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot x + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                            6. metadata-evalN/A

                                                                              \[\leadsto \left(\left(\mathsf{neg}\left(a\right)\right) \cdot x + \color{blue}{1} \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                            7. *-lft-identityN/A

                                                                              \[\leadsto \left(\left(\mathsf{neg}\left(a\right)\right) \cdot x + \color{blue}{b \cdot i}\right) \cdot t \]
                                                                            8. lower-fma.f64N/A

                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), x, b \cdot i\right)} \cdot t \]
                                                                            9. lower-neg.f64N/A

                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, x, b \cdot i\right) \cdot t \]
                                                                            10. *-commutativeN/A

                                                                              \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                            11. lower-*.f6455.0

                                                                              \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                          5. Applied rewrites55.0%

                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t} \]
                                                                          6. Taylor expanded in x around inf

                                                                            \[\leadsto -1 \cdot \color{blue}{\left(a \cdot \left(t \cdot x\right)\right)} \]
                                                                          7. Step-by-step derivation
                                                                            1. Applied rewrites44.0%

                                                                              \[\leadsto \left(\left(-t\right) \cdot x\right) \cdot \color{blue}{a} \]

                                                                            if -1.2000000000000001e-32 < x < 1.25000000000000003e-170

                                                                            1. Initial program 73.6%

                                                                              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                            2. Add Preprocessing
                                                                            3. Taylor expanded in t around inf

                                                                              \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                            4. Step-by-step derivation
                                                                              1. *-commutativeN/A

                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                                              2. lower-*.f64N/A

                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                                              3. fp-cancel-sub-sign-invN/A

                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right)} \cdot t \]
                                                                              4. associate-*r*N/A

                                                                                \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot x} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                              5. mul-1-negN/A

                                                                                \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot x + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                              6. metadata-evalN/A

                                                                                \[\leadsto \left(\left(\mathsf{neg}\left(a\right)\right) \cdot x + \color{blue}{1} \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                              7. *-lft-identityN/A

                                                                                \[\leadsto \left(\left(\mathsf{neg}\left(a\right)\right) \cdot x + \color{blue}{b \cdot i}\right) \cdot t \]
                                                                              8. lower-fma.f64N/A

                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), x, b \cdot i\right)} \cdot t \]
                                                                              9. lower-neg.f64N/A

                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, x, b \cdot i\right) \cdot t \]
                                                                              10. *-commutativeN/A

                                                                                \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                              11. lower-*.f6435.5

                                                                                \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                            5. Applied rewrites35.5%

                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t} \]
                                                                            6. Taylor expanded in x around 0

                                                                              \[\leadsto \left(b \cdot i\right) \cdot t \]
                                                                            7. Step-by-step derivation
                                                                              1. Applied rewrites31.9%

                                                                                \[\leadsto \left(i \cdot b\right) \cdot t \]

                                                                              if 1.25000000000000003e-170 < x < 1.34999999999999993e37

                                                                              1. Initial program 78.5%

                                                                                \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                              2. Add Preprocessing
                                                                              3. Taylor expanded in c around inf

                                                                                \[\leadsto \color{blue}{c \cdot \left(a \cdot j - b \cdot z\right)} \]
                                                                              4. Step-by-step derivation
                                                                                1. *-commutativeN/A

                                                                                  \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                                                                2. lower-*.f64N/A

                                                                                  \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                                                                3. fp-cancel-sub-sign-invN/A

                                                                                  \[\leadsto \color{blue}{\left(a \cdot j + \left(\mathsf{neg}\left(b\right)\right) \cdot z\right)} \cdot c \]
                                                                                4. distribute-lft-neg-inN/A

                                                                                  \[\leadsto \left(a \cdot j + \color{blue}{\left(\mathsf{neg}\left(b \cdot z\right)\right)}\right) \cdot c \]
                                                                                5. mul-1-negN/A

                                                                                  \[\leadsto \left(a \cdot j + \color{blue}{-1 \cdot \left(b \cdot z\right)}\right) \cdot c \]
                                                                                6. +-commutativeN/A

                                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot z\right) + a \cdot j\right)} \cdot c \]
                                                                                7. *-commutativeN/A

                                                                                  \[\leadsto \left(-1 \cdot \color{blue}{\left(z \cdot b\right)} + a \cdot j\right) \cdot c \]
                                                                                8. associate-*r*N/A

                                                                                  \[\leadsto \left(\color{blue}{\left(-1 \cdot z\right) \cdot b} + a \cdot j\right) \cdot c \]
                                                                                9. lower-fma.f64N/A

                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot z, b, a \cdot j\right)} \cdot c \]
                                                                                10. mul-1-negN/A

                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(z\right)}, b, a \cdot j\right) \cdot c \]
                                                                                11. lower-neg.f64N/A

                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{-z}, b, a \cdot j\right) \cdot c \]
                                                                                12. *-commutativeN/A

                                                                                  \[\leadsto \mathsf{fma}\left(-z, b, \color{blue}{j \cdot a}\right) \cdot c \]
                                                                                13. lower-*.f6462.3

                                                                                  \[\leadsto \mathsf{fma}\left(-z, b, \color{blue}{j \cdot a}\right) \cdot c \]
                                                                              5. Applied rewrites62.3%

                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c} \]
                                                                              6. Taylor expanded in z around 0

                                                                                \[\leadsto \left(a \cdot j\right) \cdot c \]
                                                                              7. Step-by-step derivation
                                                                                1. Applied rewrites32.5%

                                                                                  \[\leadsto \left(j \cdot a\right) \cdot c \]
                                                                              8. Recombined 3 regimes into one program.
                                                                              9. Add Preprocessing

                                                                              Alternative 18: 29.7% accurate, 2.6× speedup?

                                                                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.12 \cdot 10^{+148} \lor \neg \left(t \leq 29000000000000\right):\\ \;\;\;\;\left(b \cdot t\right) \cdot i\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \end{array} \end{array} \]
                                                                              (FPCore (x y z t a b c i j)
                                                                               :precision binary64
                                                                               (if (or (<= t -1.12e+148) (not (<= t 29000000000000.0)))
                                                                                 (* (* b t) i)
                                                                                 (* (* j a) c)))
                                                                              double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                              	double tmp;
                                                                              	if ((t <= -1.12e+148) || !(t <= 29000000000000.0)) {
                                                                              		tmp = (b * t) * i;
                                                                              	} else {
                                                                              		tmp = (j * a) * c;
                                                                              	}
                                                                              	return tmp;
                                                                              }
                                                                              
                                                                              real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                  real(8), intent (in) :: x
                                                                                  real(8), intent (in) :: y
                                                                                  real(8), intent (in) :: z
                                                                                  real(8), intent (in) :: t
                                                                                  real(8), intent (in) :: a
                                                                                  real(8), intent (in) :: b
                                                                                  real(8), intent (in) :: c
                                                                                  real(8), intent (in) :: i
                                                                                  real(8), intent (in) :: j
                                                                                  real(8) :: tmp
                                                                                  if ((t <= (-1.12d+148)) .or. (.not. (t <= 29000000000000.0d0))) then
                                                                                      tmp = (b * t) * i
                                                                                  else
                                                                                      tmp = (j * a) * c
                                                                                  end if
                                                                                  code = tmp
                                                                              end function
                                                                              
                                                                              public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                              	double tmp;
                                                                              	if ((t <= -1.12e+148) || !(t <= 29000000000000.0)) {
                                                                              		tmp = (b * t) * i;
                                                                              	} else {
                                                                              		tmp = (j * a) * c;
                                                                              	}
                                                                              	return tmp;
                                                                              }
                                                                              
                                                                              def code(x, y, z, t, a, b, c, i, j):
                                                                              	tmp = 0
                                                                              	if (t <= -1.12e+148) or not (t <= 29000000000000.0):
                                                                              		tmp = (b * t) * i
                                                                              	else:
                                                                              		tmp = (j * a) * c
                                                                              	return tmp
                                                                              
                                                                              function code(x, y, z, t, a, b, c, i, j)
                                                                              	tmp = 0.0
                                                                              	if ((t <= -1.12e+148) || !(t <= 29000000000000.0))
                                                                              		tmp = Float64(Float64(b * t) * i);
                                                                              	else
                                                                              		tmp = Float64(Float64(j * a) * c);
                                                                              	end
                                                                              	return tmp
                                                                              end
                                                                              
                                                                              function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                              	tmp = 0.0;
                                                                              	if ((t <= -1.12e+148) || ~((t <= 29000000000000.0)))
                                                                              		tmp = (b * t) * i;
                                                                              	else
                                                                              		tmp = (j * a) * c;
                                                                              	end
                                                                              	tmp_2 = tmp;
                                                                              end
                                                                              
                                                                              code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -1.12e+148], N[Not[LessEqual[t, 29000000000000.0]], $MachinePrecision]], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision]]
                                                                              
                                                                              \begin{array}{l}
                                                                              
                                                                              \\
                                                                              \begin{array}{l}
                                                                              \mathbf{if}\;t \leq -1.12 \cdot 10^{+148} \lor \neg \left(t \leq 29000000000000\right):\\
                                                                              \;\;\;\;\left(b \cdot t\right) \cdot i\\
                                                                              
                                                                              \mathbf{else}:\\
                                                                              \;\;\;\;\left(j \cdot a\right) \cdot c\\
                                                                              
                                                                              
                                                                              \end{array}
                                                                              \end{array}
                                                                              
                                                                              Derivation
                                                                              1. Split input into 2 regimes
                                                                              2. if t < -1.12e148 or 2.9e13 < t

                                                                                1. Initial program 70.7%

                                                                                  \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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(b \cdot t\right)\right)} \]
                                                                                4. Step-by-step derivation
                                                                                  1. *-commutativeN/A

                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                                                                                  2. lower-*.f64N/A

                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                                                                                  3. fp-cancel-sub-sign-invN/A

                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot t\right)\right)} \cdot i \]
                                                                                  4. *-commutativeN/A

                                                                                    \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot t\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\right)\right) \cdot \left(b \cdot t\right)\right) \cdot i \]
                                                                                  6. metadata-evalN/A

                                                                                    \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{1} \cdot \left(b \cdot t\right)\right) \cdot i \]
                                                                                  7. *-lft-identityN/A

                                                                                    \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{b \cdot t}\right) \cdot i \]
                                                                                  8. lower-fma.f64N/A

                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, b \cdot t\right)} \cdot i \]
                                                                                  9. mul-1-negN/A

                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, b \cdot t\right) \cdot i \]
                                                                                  10. lower-neg.f64N/A

                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, j, b \cdot t\right) \cdot i \]
                                                                                  11. lower-*.f6457.2

                                                                                    \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot t}\right) \cdot i \]
                                                                                5. Applied rewrites57.2%

                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i} \]
                                                                                6. Taylor expanded in y around 0

                                                                                  \[\leadsto \left(b \cdot t\right) \cdot i \]
                                                                                7. Step-by-step derivation
                                                                                  1. Applied rewrites44.5%

                                                                                    \[\leadsto \left(b \cdot t\right) \cdot i \]

                                                                                  if -1.12e148 < t < 2.9e13

                                                                                  1. Initial program 79.3%

                                                                                    \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                                  2. Add Preprocessing
                                                                                  3. Taylor expanded in c around inf

                                                                                    \[\leadsto \color{blue}{c \cdot \left(a \cdot j - b \cdot z\right)} \]
                                                                                  4. Step-by-step derivation
                                                                                    1. *-commutativeN/A

                                                                                      \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                                                                    2. lower-*.f64N/A

                                                                                      \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                                                                    3. fp-cancel-sub-sign-invN/A

                                                                                      \[\leadsto \color{blue}{\left(a \cdot j + \left(\mathsf{neg}\left(b\right)\right) \cdot z\right)} \cdot c \]
                                                                                    4. distribute-lft-neg-inN/A

                                                                                      \[\leadsto \left(a \cdot j + \color{blue}{\left(\mathsf{neg}\left(b \cdot z\right)\right)}\right) \cdot c \]
                                                                                    5. mul-1-negN/A

                                                                                      \[\leadsto \left(a \cdot j + \color{blue}{-1 \cdot \left(b \cdot z\right)}\right) \cdot c \]
                                                                                    6. +-commutativeN/A

                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot z\right) + a \cdot j\right)} \cdot c \]
                                                                                    7. *-commutativeN/A

                                                                                      \[\leadsto \left(-1 \cdot \color{blue}{\left(z \cdot b\right)} + a \cdot j\right) \cdot c \]
                                                                                    8. associate-*r*N/A

                                                                                      \[\leadsto \left(\color{blue}{\left(-1 \cdot z\right) \cdot b} + a \cdot j\right) \cdot c \]
                                                                                    9. lower-fma.f64N/A

                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot z, b, a \cdot j\right)} \cdot c \]
                                                                                    10. mul-1-negN/A

                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(z\right)}, b, a \cdot j\right) \cdot c \]
                                                                                    11. lower-neg.f64N/A

                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-z}, b, a \cdot j\right) \cdot c \]
                                                                                    12. *-commutativeN/A

                                                                                      \[\leadsto \mathsf{fma}\left(-z, b, \color{blue}{j \cdot a}\right) \cdot c \]
                                                                                    13. lower-*.f6454.0

                                                                                      \[\leadsto \mathsf{fma}\left(-z, b, \color{blue}{j \cdot a}\right) \cdot c \]
                                                                                  5. Applied rewrites54.0%

                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c} \]
                                                                                  6. Taylor expanded in z around 0

                                                                                    \[\leadsto \left(a \cdot j\right) \cdot c \]
                                                                                  7. Step-by-step derivation
                                                                                    1. Applied rewrites29.0%

                                                                                      \[\leadsto \left(j \cdot a\right) \cdot c \]
                                                                                  8. Recombined 2 regimes into one program.
                                                                                  9. Final simplification35.2%

                                                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.12 \cdot 10^{+148} \lor \neg \left(t \leq 29000000000000\right):\\ \;\;\;\;\left(b \cdot t\right) \cdot i\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \end{array} \]
                                                                                  10. Add Preprocessing

                                                                                  Alternative 19: 28.6% accurate, 2.6× speedup?

                                                                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -6 \cdot 10^{-125} \lor \neg \left(x \leq 2.5 \cdot 10^{+70}\right):\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \end{array} \end{array} \]
                                                                                  (FPCore (x y z t a b c i j)
                                                                                   :precision binary64
                                                                                   (if (or (<= x -6e-125) (not (<= x 2.5e+70))) (* (* z x) y) (* (* i t) b)))
                                                                                  double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                  	double tmp;
                                                                                  	if ((x <= -6e-125) || !(x <= 2.5e+70)) {
                                                                                  		tmp = (z * x) * y;
                                                                                  	} else {
                                                                                  		tmp = (i * t) * b;
                                                                                  	}
                                                                                  	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 ((x <= (-6d-125)) .or. (.not. (x <= 2.5d+70))) then
                                                                                          tmp = (z * x) * y
                                                                                      else
                                                                                          tmp = (i * t) * b
                                                                                      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 ((x <= -6e-125) || !(x <= 2.5e+70)) {
                                                                                  		tmp = (z * x) * y;
                                                                                  	} else {
                                                                                  		tmp = (i * t) * b;
                                                                                  	}
                                                                                  	return tmp;
                                                                                  }
                                                                                  
                                                                                  def code(x, y, z, t, a, b, c, i, j):
                                                                                  	tmp = 0
                                                                                  	if (x <= -6e-125) or not (x <= 2.5e+70):
                                                                                  		tmp = (z * x) * y
                                                                                  	else:
                                                                                  		tmp = (i * t) * b
                                                                                  	return tmp
                                                                                  
                                                                                  function code(x, y, z, t, a, b, c, i, j)
                                                                                  	tmp = 0.0
                                                                                  	if ((x <= -6e-125) || !(x <= 2.5e+70))
                                                                                  		tmp = Float64(Float64(z * x) * y);
                                                                                  	else
                                                                                  		tmp = Float64(Float64(i * t) * b);
                                                                                  	end
                                                                                  	return tmp
                                                                                  end
                                                                                  
                                                                                  function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                  	tmp = 0.0;
                                                                                  	if ((x <= -6e-125) || ~((x <= 2.5e+70)))
                                                                                  		tmp = (z * x) * y;
                                                                                  	else
                                                                                  		tmp = (i * t) * b;
                                                                                  	end
                                                                                  	tmp_2 = tmp;
                                                                                  end
                                                                                  
                                                                                  code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[x, -6e-125], N[Not[LessEqual[x, 2.5e+70]], $MachinePrecision]], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision]]
                                                                                  
                                                                                  \begin{array}{l}
                                                                                  
                                                                                  \\
                                                                                  \begin{array}{l}
                                                                                  \mathbf{if}\;x \leq -6 \cdot 10^{-125} \lor \neg \left(x \leq 2.5 \cdot 10^{+70}\right):\\
                                                                                  \;\;\;\;\left(z \cdot x\right) \cdot y\\
                                                                                  
                                                                                  \mathbf{else}:\\
                                                                                  \;\;\;\;\left(i \cdot t\right) \cdot b\\
                                                                                  
                                                                                  
                                                                                  \end{array}
                                                                                  \end{array}
                                                                                  
                                                                                  Derivation
                                                                                  1. Split input into 2 regimes
                                                                                  2. if x < -5.99999999999999981e-125 or 2.5000000000000001e70 < x

                                                                                    1. Initial program 78.5%

                                                                                      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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. cancel-sign-sub-invN/A

                                                                                        \[\leadsto \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b\right)\right) \cdot c\right)} \cdot z \]
                                                                                      4. distribute-lft-neg-inN/A

                                                                                        \[\leadsto \left(x \cdot y + \color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)}\right) \cdot z \]
                                                                                      5. mul-1-negN/A

                                                                                        \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                                                      6. +-commutativeN/A

                                                                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \cdot z \]
                                                                                      7. mul-1-negN/A

                                                                                        \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)} + x \cdot y\right) \cdot z \]
                                                                                      8. distribute-lft-neg-inN/A

                                                                                        \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b\right)\right) \cdot c} + x \cdot y\right) \cdot z \]
                                                                                      9. lower-fma.f64N/A

                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(b\right), c, x \cdot y\right)} \cdot z \]
                                                                                      10. lower-neg.f64N/A

                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{-b}, c, x \cdot y\right) \cdot z \]
                                                                                      11. *-commutativeN/A

                                                                                        \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                      12. lower-*.f6441.6

                                                                                        \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                    5. Applied rewrites41.6%

                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z} \]
                                                                                    6. Taylor expanded in x around inf

                                                                                      \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                                                    7. Step-by-step derivation
                                                                                      1. Applied rewrites26.9%

                                                                                        \[\leadsto \left(z \cdot y\right) \cdot \color{blue}{x} \]
                                                                                      2. Step-by-step derivation
                                                                                        1. Applied rewrites29.9%

                                                                                          \[\leadsto \left(z \cdot x\right) \cdot y \]

                                                                                        if -5.99999999999999981e-125 < x < 2.5000000000000001e70

                                                                                        1. Initial program 73.3%

                                                                                          \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                                        2. Add Preprocessing
                                                                                        3. Taylor expanded in t around inf

                                                                                          \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                                        4. Step-by-step derivation
                                                                                          1. *-commutativeN/A

                                                                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                                                          2. lower-*.f64N/A

                                                                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                                                          3. fp-cancel-sub-sign-invN/A

                                                                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right)} \cdot t \]
                                                                                          4. associate-*r*N/A

                                                                                            \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot x} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                                          5. mul-1-negN/A

                                                                                            \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot x + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                                          6. metadata-evalN/A

                                                                                            \[\leadsto \left(\left(\mathsf{neg}\left(a\right)\right) \cdot x + \color{blue}{1} \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                                          7. *-lft-identityN/A

                                                                                            \[\leadsto \left(\left(\mathsf{neg}\left(a\right)\right) \cdot x + \color{blue}{b \cdot i}\right) \cdot t \]
                                                                                          8. lower-fma.f64N/A

                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), x, b \cdot i\right)} \cdot t \]
                                                                                          9. lower-neg.f64N/A

                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, x, b \cdot i\right) \cdot t \]
                                                                                          10. *-commutativeN/A

                                                                                            \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                                          11. lower-*.f6438.4

                                                                                            \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                                        5. Applied rewrites38.4%

                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t} \]
                                                                                        6. Taylor expanded in x around 0

                                                                                          \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]
                                                                                        7. Step-by-step derivation
                                                                                          1. Applied rewrites29.8%

                                                                                            \[\leadsto \left(i \cdot t\right) \cdot \color{blue}{b} \]
                                                                                        8. Recombined 2 regimes into one program.
                                                                                        9. Final simplification29.8%

                                                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -6 \cdot 10^{-125} \lor \neg \left(x \leq 2.5 \cdot 10^{+70}\right):\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \end{array} \]
                                                                                        10. Add Preprocessing

                                                                                        Alternative 20: 29.5% accurate, 2.6× speedup?

                                                                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -8.5 \cdot 10^{-27}:\\ \;\;\;\;\left(i \cdot b\right) \cdot t\\ \mathbf{elif}\;b \leq 3.6 \cdot 10^{-60}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\left(b \cdot t\right) \cdot i\\ \end{array} \end{array} \]
                                                                                        (FPCore (x y z t a b c i j)
                                                                                         :precision binary64
                                                                                         (if (<= b -8.5e-27)
                                                                                           (* (* i b) t)
                                                                                           (if (<= b 3.6e-60) (* (* y x) z) (* (* b t) i))))
                                                                                        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.5e-27) {
                                                                                        		tmp = (i * b) * t;
                                                                                        	} else if (b <= 3.6e-60) {
                                                                                        		tmp = (y * x) * z;
                                                                                        	} else {
                                                                                        		tmp = (b * t) * i;
                                                                                        	}
                                                                                        	return tmp;
                                                                                        }
                                                                                        
                                                                                        real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                            real(8), intent (in) :: x
                                                                                            real(8), intent (in) :: y
                                                                                            real(8), intent (in) :: z
                                                                                            real(8), intent (in) :: t
                                                                                            real(8), intent (in) :: a
                                                                                            real(8), intent (in) :: b
                                                                                            real(8), intent (in) :: c
                                                                                            real(8), intent (in) :: i
                                                                                            real(8), intent (in) :: j
                                                                                            real(8) :: tmp
                                                                                            if (b <= (-8.5d-27)) then
                                                                                                tmp = (i * b) * t
                                                                                            else if (b <= 3.6d-60) then
                                                                                                tmp = (y * x) * z
                                                                                            else
                                                                                                tmp = (b * t) * i
                                                                                            end if
                                                                                            code = tmp
                                                                                        end function
                                                                                        
                                                                                        public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                        	double tmp;
                                                                                        	if (b <= -8.5e-27) {
                                                                                        		tmp = (i * b) * t;
                                                                                        	} else if (b <= 3.6e-60) {
                                                                                        		tmp = (y * x) * z;
                                                                                        	} else {
                                                                                        		tmp = (b * t) * i;
                                                                                        	}
                                                                                        	return tmp;
                                                                                        }
                                                                                        
                                                                                        def code(x, y, z, t, a, b, c, i, j):
                                                                                        	tmp = 0
                                                                                        	if b <= -8.5e-27:
                                                                                        		tmp = (i * b) * t
                                                                                        	elif b <= 3.6e-60:
                                                                                        		tmp = (y * x) * z
                                                                                        	else:
                                                                                        		tmp = (b * t) * i
                                                                                        	return tmp
                                                                                        
                                                                                        function code(x, y, z, t, a, b, c, i, j)
                                                                                        	tmp = 0.0
                                                                                        	if (b <= -8.5e-27)
                                                                                        		tmp = Float64(Float64(i * b) * t);
                                                                                        	elseif (b <= 3.6e-60)
                                                                                        		tmp = Float64(Float64(y * x) * z);
                                                                                        	else
                                                                                        		tmp = Float64(Float64(b * t) * i);
                                                                                        	end
                                                                                        	return tmp
                                                                                        end
                                                                                        
                                                                                        function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                        	tmp = 0.0;
                                                                                        	if (b <= -8.5e-27)
                                                                                        		tmp = (i * b) * t;
                                                                                        	elseif (b <= 3.6e-60)
                                                                                        		tmp = (y * x) * z;
                                                                                        	else
                                                                                        		tmp = (b * t) * i;
                                                                                        	end
                                                                                        	tmp_2 = tmp;
                                                                                        end
                                                                                        
                                                                                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -8.5e-27], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[b, 3.6e-60], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision]]]
                                                                                        
                                                                                        \begin{array}{l}
                                                                                        
                                                                                        \\
                                                                                        \begin{array}{l}
                                                                                        \mathbf{if}\;b \leq -8.5 \cdot 10^{-27}:\\
                                                                                        \;\;\;\;\left(i \cdot b\right) \cdot t\\
                                                                                        
                                                                                        \mathbf{elif}\;b \leq 3.6 \cdot 10^{-60}:\\
                                                                                        \;\;\;\;\left(y \cdot x\right) \cdot z\\
                                                                                        
                                                                                        \mathbf{else}:\\
                                                                                        \;\;\;\;\left(b \cdot t\right) \cdot i\\
                                                                                        
                                                                                        
                                                                                        \end{array}
                                                                                        \end{array}
                                                                                        
                                                                                        Derivation
                                                                                        1. Split input into 3 regimes
                                                                                        2. if b < -8.50000000000000033e-27

                                                                                          1. Initial program 65.4%

                                                                                            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                                          2. Add Preprocessing
                                                                                          3. Taylor expanded in t around inf

                                                                                            \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                                          4. Step-by-step derivation
                                                                                            1. *-commutativeN/A

                                                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                                                            2. lower-*.f64N/A

                                                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                                                            3. fp-cancel-sub-sign-invN/A

                                                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right)} \cdot t \]
                                                                                            4. associate-*r*N/A

                                                                                              \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot x} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                                            5. mul-1-negN/A

                                                                                              \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot x + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                                            6. metadata-evalN/A

                                                                                              \[\leadsto \left(\left(\mathsf{neg}\left(a\right)\right) \cdot x + \color{blue}{1} \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                                            7. *-lft-identityN/A

                                                                                              \[\leadsto \left(\left(\mathsf{neg}\left(a\right)\right) \cdot x + \color{blue}{b \cdot i}\right) \cdot t \]
                                                                                            8. lower-fma.f64N/A

                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), x, b \cdot i\right)} \cdot t \]
                                                                                            9. lower-neg.f64N/A

                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, x, b \cdot i\right) \cdot t \]
                                                                                            10. *-commutativeN/A

                                                                                              \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                                            11. lower-*.f6447.8

                                                                                              \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                                          5. Applied rewrites47.8%

                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t} \]
                                                                                          6. Taylor expanded in x around 0

                                                                                            \[\leadsto \left(b \cdot i\right) \cdot t \]
                                                                                          7. Step-by-step derivation
                                                                                            1. Applied rewrites36.9%

                                                                                              \[\leadsto \left(i \cdot b\right) \cdot t \]

                                                                                            if -8.50000000000000033e-27 < b < 3.6e-60

                                                                                            1. Initial program 80.9%

                                                                                              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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. cancel-sign-sub-invN/A

                                                                                                \[\leadsto \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b\right)\right) \cdot c\right)} \cdot z \]
                                                                                              4. distribute-lft-neg-inN/A

                                                                                                \[\leadsto \left(x \cdot y + \color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)}\right) \cdot z \]
                                                                                              5. mul-1-negN/A

                                                                                                \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                                                              6. +-commutativeN/A

                                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \cdot z \]
                                                                                              7. mul-1-negN/A

                                                                                                \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)} + x \cdot y\right) \cdot z \]
                                                                                              8. distribute-lft-neg-inN/A

                                                                                                \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b\right)\right) \cdot c} + x \cdot y\right) \cdot z \]
                                                                                              9. lower-fma.f64N/A

                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(b\right), c, x \cdot y\right)} \cdot z \]
                                                                                              10. lower-neg.f64N/A

                                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{-b}, c, x \cdot y\right) \cdot z \]
                                                                                              11. *-commutativeN/A

                                                                                                \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                              12. lower-*.f6431.3

                                                                                                \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                            5. Applied rewrites31.3%

                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z} \]
                                                                                            6. Taylor expanded in x around inf

                                                                                              \[\leadsto \left(x \cdot y\right) \cdot z \]
                                                                                            7. Step-by-step derivation
                                                                                              1. Applied rewrites25.8%

                                                                                                \[\leadsto \left(y \cdot x\right) \cdot z \]

                                                                                              if 3.6e-60 < b

                                                                                              1. Initial program 77.0%

                                                                                                \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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(b \cdot t\right)\right)} \]
                                                                                              4. Step-by-step derivation
                                                                                                1. *-commutativeN/A

                                                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                                                                                                2. lower-*.f64N/A

                                                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                                                                                                3. fp-cancel-sub-sign-invN/A

                                                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot t\right)\right)} \cdot i \]
                                                                                                4. *-commutativeN/A

                                                                                                  \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot t\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\right)\right) \cdot \left(b \cdot t\right)\right) \cdot i \]
                                                                                                6. metadata-evalN/A

                                                                                                  \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{1} \cdot \left(b \cdot t\right)\right) \cdot i \]
                                                                                                7. *-lft-identityN/A

                                                                                                  \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{b \cdot t}\right) \cdot i \]
                                                                                                8. lower-fma.f64N/A

                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, b \cdot t\right)} \cdot i \]
                                                                                                9. mul-1-negN/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, b \cdot t\right) \cdot i \]
                                                                                                10. lower-neg.f64N/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, j, b \cdot t\right) \cdot i \]
                                                                                                11. lower-*.f6449.9

                                                                                                  \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot t}\right) \cdot i \]
                                                                                              5. Applied rewrites49.9%

                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i} \]
                                                                                              6. Taylor expanded in y around 0

                                                                                                \[\leadsto \left(b \cdot t\right) \cdot i \]
                                                                                              7. Step-by-step derivation
                                                                                                1. Applied rewrites38.6%

                                                                                                  \[\leadsto \left(b \cdot t\right) \cdot i \]
                                                                                              8. Recombined 3 regimes into one program.
                                                                                              9. Add Preprocessing

                                                                                              Alternative 21: 29.2% accurate, 2.6× speedup?

                                                                                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -8.5 \cdot 10^{-27}:\\ \;\;\;\;\left(i \cdot b\right) \cdot t\\ \mathbf{elif}\;b \leq 3.6 \cdot 10^{-60}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \end{array} \end{array} \]
                                                                                              (FPCore (x y z t a b c i j)
                                                                                               :precision binary64
                                                                                               (if (<= b -8.5e-27)
                                                                                                 (* (* i b) t)
                                                                                                 (if (<= b 3.6e-60) (* (* y x) z) (* (* i t) b))))
                                                                                              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.5e-27) {
                                                                                              		tmp = (i * b) * t;
                                                                                              	} else if (b <= 3.6e-60) {
                                                                                              		tmp = (y * x) * z;
                                                                                              	} else {
                                                                                              		tmp = (i * t) * b;
                                                                                              	}
                                                                                              	return tmp;
                                                                                              }
                                                                                              
                                                                                              real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                                  real(8), intent (in) :: x
                                                                                                  real(8), intent (in) :: y
                                                                                                  real(8), intent (in) :: z
                                                                                                  real(8), intent (in) :: t
                                                                                                  real(8), intent (in) :: a
                                                                                                  real(8), intent (in) :: b
                                                                                                  real(8), intent (in) :: c
                                                                                                  real(8), intent (in) :: i
                                                                                                  real(8), intent (in) :: j
                                                                                                  real(8) :: tmp
                                                                                                  if (b <= (-8.5d-27)) then
                                                                                                      tmp = (i * b) * t
                                                                                                  else if (b <= 3.6d-60) then
                                                                                                      tmp = (y * x) * z
                                                                                                  else
                                                                                                      tmp = (i * t) * b
                                                                                                  end if
                                                                                                  code = tmp
                                                                                              end function
                                                                                              
                                                                                              public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                              	double tmp;
                                                                                              	if (b <= -8.5e-27) {
                                                                                              		tmp = (i * b) * t;
                                                                                              	} else if (b <= 3.6e-60) {
                                                                                              		tmp = (y * x) * z;
                                                                                              	} else {
                                                                                              		tmp = (i * t) * b;
                                                                                              	}
                                                                                              	return tmp;
                                                                                              }
                                                                                              
                                                                                              def code(x, y, z, t, a, b, c, i, j):
                                                                                              	tmp = 0
                                                                                              	if b <= -8.5e-27:
                                                                                              		tmp = (i * b) * t
                                                                                              	elif b <= 3.6e-60:
                                                                                              		tmp = (y * x) * z
                                                                                              	else:
                                                                                              		tmp = (i * t) * b
                                                                                              	return tmp
                                                                                              
                                                                                              function code(x, y, z, t, a, b, c, i, j)
                                                                                              	tmp = 0.0
                                                                                              	if (b <= -8.5e-27)
                                                                                              		tmp = Float64(Float64(i * b) * t);
                                                                                              	elseif (b <= 3.6e-60)
                                                                                              		tmp = Float64(Float64(y * x) * z);
                                                                                              	else
                                                                                              		tmp = Float64(Float64(i * t) * b);
                                                                                              	end
                                                                                              	return tmp
                                                                                              end
                                                                                              
                                                                                              function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                              	tmp = 0.0;
                                                                                              	if (b <= -8.5e-27)
                                                                                              		tmp = (i * b) * t;
                                                                                              	elseif (b <= 3.6e-60)
                                                                                              		tmp = (y * x) * z;
                                                                                              	else
                                                                                              		tmp = (i * t) * b;
                                                                                              	end
                                                                                              	tmp_2 = tmp;
                                                                                              end
                                                                                              
                                                                                              code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -8.5e-27], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[b, 3.6e-60], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision]]]
                                                                                              
                                                                                              \begin{array}{l}
                                                                                              
                                                                                              \\
                                                                                              \begin{array}{l}
                                                                                              \mathbf{if}\;b \leq -8.5 \cdot 10^{-27}:\\
                                                                                              \;\;\;\;\left(i \cdot b\right) \cdot t\\
                                                                                              
                                                                                              \mathbf{elif}\;b \leq 3.6 \cdot 10^{-60}:\\
                                                                                              \;\;\;\;\left(y \cdot x\right) \cdot z\\
                                                                                              
                                                                                              \mathbf{else}:\\
                                                                                              \;\;\;\;\left(i \cdot t\right) \cdot b\\
                                                                                              
                                                                                              
                                                                                              \end{array}
                                                                                              \end{array}
                                                                                              
                                                                                              Derivation
                                                                                              1. Split input into 3 regimes
                                                                                              2. if b < -8.50000000000000033e-27

                                                                                                1. Initial program 65.4%

                                                                                                  \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                                                2. Add Preprocessing
                                                                                                3. Taylor expanded in t around inf

                                                                                                  \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                                                4. Step-by-step derivation
                                                                                                  1. *-commutativeN/A

                                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                                                                  2. lower-*.f64N/A

                                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                                                                  3. fp-cancel-sub-sign-invN/A

                                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right)} \cdot t \]
                                                                                                  4. associate-*r*N/A

                                                                                                    \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot x} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                                                  5. mul-1-negN/A

                                                                                                    \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot x + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                                                  6. metadata-evalN/A

                                                                                                    \[\leadsto \left(\left(\mathsf{neg}\left(a\right)\right) \cdot x + \color{blue}{1} \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                                                  7. *-lft-identityN/A

                                                                                                    \[\leadsto \left(\left(\mathsf{neg}\left(a\right)\right) \cdot x + \color{blue}{b \cdot i}\right) \cdot t \]
                                                                                                  8. lower-fma.f64N/A

                                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), x, b \cdot i\right)} \cdot t \]
                                                                                                  9. lower-neg.f64N/A

                                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, x, b \cdot i\right) \cdot t \]
                                                                                                  10. *-commutativeN/A

                                                                                                    \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                                                  11. lower-*.f6447.8

                                                                                                    \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                                                5. Applied rewrites47.8%

                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t} \]
                                                                                                6. Taylor expanded in x around 0

                                                                                                  \[\leadsto \left(b \cdot i\right) \cdot t \]
                                                                                                7. Step-by-step derivation
                                                                                                  1. Applied rewrites36.9%

                                                                                                    \[\leadsto \left(i \cdot b\right) \cdot t \]

                                                                                                  if -8.50000000000000033e-27 < b < 3.6e-60

                                                                                                  1. Initial program 80.9%

                                                                                                    \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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. cancel-sign-sub-invN/A

                                                                                                      \[\leadsto \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b\right)\right) \cdot c\right)} \cdot z \]
                                                                                                    4. distribute-lft-neg-inN/A

                                                                                                      \[\leadsto \left(x \cdot y + \color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)}\right) \cdot z \]
                                                                                                    5. mul-1-negN/A

                                                                                                      \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                                                                    6. +-commutativeN/A

                                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \cdot z \]
                                                                                                    7. mul-1-negN/A

                                                                                                      \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)} + x \cdot y\right) \cdot z \]
                                                                                                    8. distribute-lft-neg-inN/A

                                                                                                      \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b\right)\right) \cdot c} + x \cdot y\right) \cdot z \]
                                                                                                    9. lower-fma.f64N/A

                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(b\right), c, x \cdot y\right)} \cdot z \]
                                                                                                    10. lower-neg.f64N/A

                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-b}, c, x \cdot y\right) \cdot z \]
                                                                                                    11. *-commutativeN/A

                                                                                                      \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                    12. lower-*.f6431.3

                                                                                                      \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                  5. Applied rewrites31.3%

                                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z} \]
                                                                                                  6. Taylor expanded in x around inf

                                                                                                    \[\leadsto \left(x \cdot y\right) \cdot z \]
                                                                                                  7. Step-by-step derivation
                                                                                                    1. Applied rewrites25.8%

                                                                                                      \[\leadsto \left(y \cdot x\right) \cdot z \]

                                                                                                    if 3.6e-60 < b

                                                                                                    1. Initial program 77.0%

                                                                                                      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                                                    2. Add Preprocessing
                                                                                                    3. Taylor expanded in t around inf

                                                                                                      \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                                                    4. Step-by-step derivation
                                                                                                      1. *-commutativeN/A

                                                                                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                                                                      2. lower-*.f64N/A

                                                                                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                                                                      3. fp-cancel-sub-sign-invN/A

                                                                                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right)} \cdot t \]
                                                                                                      4. associate-*r*N/A

                                                                                                        \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot x} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                                                      5. mul-1-negN/A

                                                                                                        \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot x + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                                                      6. metadata-evalN/A

                                                                                                        \[\leadsto \left(\left(\mathsf{neg}\left(a\right)\right) \cdot x + \color{blue}{1} \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                                                      7. *-lft-identityN/A

                                                                                                        \[\leadsto \left(\left(\mathsf{neg}\left(a\right)\right) \cdot x + \color{blue}{b \cdot i}\right) \cdot t \]
                                                                                                      8. lower-fma.f64N/A

                                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), x, b \cdot i\right)} \cdot t \]
                                                                                                      9. lower-neg.f64N/A

                                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, x, b \cdot i\right) \cdot t \]
                                                                                                      10. *-commutativeN/A

                                                                                                        \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                                                      11. lower-*.f6454.5

                                                                                                        \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                                                    5. Applied rewrites54.5%

                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t} \]
                                                                                                    6. Taylor expanded in x around 0

                                                                                                      \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]
                                                                                                    7. Step-by-step derivation
                                                                                                      1. Applied rewrites34.2%

                                                                                                        \[\leadsto \left(i \cdot t\right) \cdot \color{blue}{b} \]
                                                                                                    8. Recombined 3 regimes into one program.
                                                                                                    9. Add Preprocessing

                                                                                                    Alternative 22: 29.0% accurate, 2.6× speedup?

                                                                                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -8.5 \cdot 10^{-27}:\\ \;\;\;\;\left(i \cdot b\right) \cdot t\\ \mathbf{elif}\;b \leq 3.6 \cdot 10^{-60}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \end{array} \end{array} \]
                                                                                                    (FPCore (x y z t a b c i j)
                                                                                                     :precision binary64
                                                                                                     (if (<= b -8.5e-27)
                                                                                                       (* (* i b) t)
                                                                                                       (if (<= b 3.6e-60) (* (* z x) y) (* (* i t) b))))
                                                                                                    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.5e-27) {
                                                                                                    		tmp = (i * b) * t;
                                                                                                    	} else if (b <= 3.6e-60) {
                                                                                                    		tmp = (z * x) * y;
                                                                                                    	} else {
                                                                                                    		tmp = (i * t) * b;
                                                                                                    	}
                                                                                                    	return tmp;
                                                                                                    }
                                                                                                    
                                                                                                    real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                                        real(8), intent (in) :: x
                                                                                                        real(8), intent (in) :: y
                                                                                                        real(8), intent (in) :: z
                                                                                                        real(8), intent (in) :: t
                                                                                                        real(8), intent (in) :: a
                                                                                                        real(8), intent (in) :: b
                                                                                                        real(8), intent (in) :: c
                                                                                                        real(8), intent (in) :: i
                                                                                                        real(8), intent (in) :: j
                                                                                                        real(8) :: tmp
                                                                                                        if (b <= (-8.5d-27)) then
                                                                                                            tmp = (i * b) * t
                                                                                                        else if (b <= 3.6d-60) then
                                                                                                            tmp = (z * x) * y
                                                                                                        else
                                                                                                            tmp = (i * t) * b
                                                                                                        end if
                                                                                                        code = tmp
                                                                                                    end function
                                                                                                    
                                                                                                    public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                    	double tmp;
                                                                                                    	if (b <= -8.5e-27) {
                                                                                                    		tmp = (i * b) * t;
                                                                                                    	} else if (b <= 3.6e-60) {
                                                                                                    		tmp = (z * x) * y;
                                                                                                    	} else {
                                                                                                    		tmp = (i * t) * b;
                                                                                                    	}
                                                                                                    	return tmp;
                                                                                                    }
                                                                                                    
                                                                                                    def code(x, y, z, t, a, b, c, i, j):
                                                                                                    	tmp = 0
                                                                                                    	if b <= -8.5e-27:
                                                                                                    		tmp = (i * b) * t
                                                                                                    	elif b <= 3.6e-60:
                                                                                                    		tmp = (z * x) * y
                                                                                                    	else:
                                                                                                    		tmp = (i * t) * b
                                                                                                    	return tmp
                                                                                                    
                                                                                                    function code(x, y, z, t, a, b, c, i, j)
                                                                                                    	tmp = 0.0
                                                                                                    	if (b <= -8.5e-27)
                                                                                                    		tmp = Float64(Float64(i * b) * t);
                                                                                                    	elseif (b <= 3.6e-60)
                                                                                                    		tmp = Float64(Float64(z * x) * y);
                                                                                                    	else
                                                                                                    		tmp = Float64(Float64(i * t) * b);
                                                                                                    	end
                                                                                                    	return tmp
                                                                                                    end
                                                                                                    
                                                                                                    function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                                    	tmp = 0.0;
                                                                                                    	if (b <= -8.5e-27)
                                                                                                    		tmp = (i * b) * t;
                                                                                                    	elseif (b <= 3.6e-60)
                                                                                                    		tmp = (z * x) * y;
                                                                                                    	else
                                                                                                    		tmp = (i * t) * b;
                                                                                                    	end
                                                                                                    	tmp_2 = tmp;
                                                                                                    end
                                                                                                    
                                                                                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -8.5e-27], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[b, 3.6e-60], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision]]]
                                                                                                    
                                                                                                    \begin{array}{l}
                                                                                                    
                                                                                                    \\
                                                                                                    \begin{array}{l}
                                                                                                    \mathbf{if}\;b \leq -8.5 \cdot 10^{-27}:\\
                                                                                                    \;\;\;\;\left(i \cdot b\right) \cdot t\\
                                                                                                    
                                                                                                    \mathbf{elif}\;b \leq 3.6 \cdot 10^{-60}:\\
                                                                                                    \;\;\;\;\left(z \cdot x\right) \cdot y\\
                                                                                                    
                                                                                                    \mathbf{else}:\\
                                                                                                    \;\;\;\;\left(i \cdot t\right) \cdot b\\
                                                                                                    
                                                                                                    
                                                                                                    \end{array}
                                                                                                    \end{array}
                                                                                                    
                                                                                                    Derivation
                                                                                                    1. Split input into 3 regimes
                                                                                                    2. if b < -8.50000000000000033e-27

                                                                                                      1. Initial program 65.4%

                                                                                                        \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                                                      2. Add Preprocessing
                                                                                                      3. Taylor expanded in t around inf

                                                                                                        \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                                                      4. Step-by-step derivation
                                                                                                        1. *-commutativeN/A

                                                                                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                                                                        2. lower-*.f64N/A

                                                                                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                                                                        3. fp-cancel-sub-sign-invN/A

                                                                                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right)} \cdot t \]
                                                                                                        4. associate-*r*N/A

                                                                                                          \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot x} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                                                        5. mul-1-negN/A

                                                                                                          \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot x + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                                                        6. metadata-evalN/A

                                                                                                          \[\leadsto \left(\left(\mathsf{neg}\left(a\right)\right) \cdot x + \color{blue}{1} \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                                                        7. *-lft-identityN/A

                                                                                                          \[\leadsto \left(\left(\mathsf{neg}\left(a\right)\right) \cdot x + \color{blue}{b \cdot i}\right) \cdot t \]
                                                                                                        8. lower-fma.f64N/A

                                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), x, b \cdot i\right)} \cdot t \]
                                                                                                        9. lower-neg.f64N/A

                                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, x, b \cdot i\right) \cdot t \]
                                                                                                        10. *-commutativeN/A

                                                                                                          \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                                                        11. lower-*.f6447.8

                                                                                                          \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                                                      5. Applied rewrites47.8%

                                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t} \]
                                                                                                      6. Taylor expanded in x around 0

                                                                                                        \[\leadsto \left(b \cdot i\right) \cdot t \]
                                                                                                      7. Step-by-step derivation
                                                                                                        1. Applied rewrites36.9%

                                                                                                          \[\leadsto \left(i \cdot b\right) \cdot t \]

                                                                                                        if -8.50000000000000033e-27 < b < 3.6e-60

                                                                                                        1. Initial program 80.9%

                                                                                                          \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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. cancel-sign-sub-invN/A

                                                                                                            \[\leadsto \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b\right)\right) \cdot c\right)} \cdot z \]
                                                                                                          4. distribute-lft-neg-inN/A

                                                                                                            \[\leadsto \left(x \cdot y + \color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)}\right) \cdot z \]
                                                                                                          5. mul-1-negN/A

                                                                                                            \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                                                                          6. +-commutativeN/A

                                                                                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \cdot z \]
                                                                                                          7. mul-1-negN/A

                                                                                                            \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)} + x \cdot y\right) \cdot z \]
                                                                                                          8. distribute-lft-neg-inN/A

                                                                                                            \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b\right)\right) \cdot c} + x \cdot y\right) \cdot z \]
                                                                                                          9. lower-fma.f64N/A

                                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(b\right), c, x \cdot y\right)} \cdot z \]
                                                                                                          10. lower-neg.f64N/A

                                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{-b}, c, x \cdot y\right) \cdot z \]
                                                                                                          11. *-commutativeN/A

                                                                                                            \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                          12. lower-*.f6431.3

                                                                                                            \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                        5. Applied rewrites31.3%

                                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z} \]
                                                                                                        6. Taylor expanded in x around inf

                                                                                                          \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                                                                        7. Step-by-step derivation
                                                                                                          1. Applied rewrites22.7%

                                                                                                            \[\leadsto \left(z \cdot y\right) \cdot \color{blue}{x} \]
                                                                                                          2. Step-by-step derivation
                                                                                                            1. Applied rewrites25.0%

                                                                                                              \[\leadsto \left(z \cdot x\right) \cdot y \]

                                                                                                            if 3.6e-60 < b

                                                                                                            1. Initial program 77.0%

                                                                                                              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                                                            2. Add Preprocessing
                                                                                                            3. Taylor expanded in t around inf

                                                                                                              \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                                                            4. Step-by-step derivation
                                                                                                              1. *-commutativeN/A

                                                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                                                                              2. lower-*.f64N/A

                                                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                                                                              3. fp-cancel-sub-sign-invN/A

                                                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right)} \cdot t \]
                                                                                                              4. associate-*r*N/A

                                                                                                                \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot x} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                                                              5. mul-1-negN/A

                                                                                                                \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot x + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                                                              6. metadata-evalN/A

                                                                                                                \[\leadsto \left(\left(\mathsf{neg}\left(a\right)\right) \cdot x + \color{blue}{1} \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                                                              7. *-lft-identityN/A

                                                                                                                \[\leadsto \left(\left(\mathsf{neg}\left(a\right)\right) \cdot x + \color{blue}{b \cdot i}\right) \cdot t \]
                                                                                                              8. lower-fma.f64N/A

                                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), x, b \cdot i\right)} \cdot t \]
                                                                                                              9. lower-neg.f64N/A

                                                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, x, b \cdot i\right) \cdot t \]
                                                                                                              10. *-commutativeN/A

                                                                                                                \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                                                              11. lower-*.f6454.5

                                                                                                                \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                                                            5. Applied rewrites54.5%

                                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t} \]
                                                                                                            6. Taylor expanded in x around 0

                                                                                                              \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]
                                                                                                            7. Step-by-step derivation
                                                                                                              1. Applied rewrites34.2%

                                                                                                                \[\leadsto \left(i \cdot t\right) \cdot \color{blue}{b} \]
                                                                                                            8. Recombined 3 regimes into one program.
                                                                                                            9. Add Preprocessing

                                                                                                            Alternative 23: 22.4% accurate, 5.5× speedup?

                                                                                                            \[\begin{array}{l} \\ \left(i \cdot t\right) \cdot b \end{array} \]
                                                                                                            (FPCore (x y z t a b c i j) :precision binary64 (* (* i t) b))
                                                                                                            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                            	return (i * t) * b;
                                                                                                            }
                                                                                                            
                                                                                                            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 = (i * t) * b
                                                                                                            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 (i * t) * b;
                                                                                                            }
                                                                                                            
                                                                                                            def code(x, y, z, t, a, b, c, i, j):
                                                                                                            	return (i * t) * b
                                                                                                            
                                                                                                            function code(x, y, z, t, a, b, c, i, j)
                                                                                                            	return Float64(Float64(i * t) * b)
                                                                                                            end
                                                                                                            
                                                                                                            function tmp = code(x, y, z, t, a, b, c, i, j)
                                                                                                            	tmp = (i * t) * b;
                                                                                                            end
                                                                                                            
                                                                                                            code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision]
                                                                                                            
                                                                                                            \begin{array}{l}
                                                                                                            
                                                                                                            \\
                                                                                                            \left(i \cdot t\right) \cdot b
                                                                                                            \end{array}
                                                                                                            
                                                                                                            Derivation
                                                                                                            1. Initial program 75.9%

                                                                                                              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                                                            2. Add Preprocessing
                                                                                                            3. Taylor expanded in t around inf

                                                                                                              \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                                                            4. Step-by-step derivation
                                                                                                              1. *-commutativeN/A

                                                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                                                                              2. lower-*.f64N/A

                                                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                                                                              3. fp-cancel-sub-sign-invN/A

                                                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right)} \cdot t \]
                                                                                                              4. associate-*r*N/A

                                                                                                                \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot x} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                                                              5. mul-1-negN/A

                                                                                                                \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot x + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                                                              6. metadata-evalN/A

                                                                                                                \[\leadsto \left(\left(\mathsf{neg}\left(a\right)\right) \cdot x + \color{blue}{1} \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                                                              7. *-lft-identityN/A

                                                                                                                \[\leadsto \left(\left(\mathsf{neg}\left(a\right)\right) \cdot x + \color{blue}{b \cdot i}\right) \cdot t \]
                                                                                                              8. lower-fma.f64N/A

                                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), x, b \cdot i\right)} \cdot t \]
                                                                                                              9. lower-neg.f64N/A

                                                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, x, b \cdot i\right) \cdot t \]
                                                                                                              10. *-commutativeN/A

                                                                                                                \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                                                              11. lower-*.f6443.4

                                                                                                                \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                                                            5. Applied rewrites43.4%

                                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t} \]
                                                                                                            6. Taylor expanded in x around 0

                                                                                                              \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]
                                                                                                            7. Step-by-step derivation
                                                                                                              1. Applied rewrites21.8%

                                                                                                                \[\leadsto \left(i \cdot t\right) \cdot \color{blue}{b} \]
                                                                                                              2. Add Preprocessing

                                                                                                              Developer Target 1: 59.1% accurate, 0.2× speedup?

                                                                                                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\ t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\ \mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\ \;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                                                                                                              (FPCore (x y z t a b c i j)
                                                                                                               :precision binary64
                                                                                                               (let* ((t_1 (* j (- (* c a) (* y i))))
                                                                                                                      (t_2
                                                                                                                       (+
                                                                                                                        (-
                                                                                                                         (* x (- (* y z) (* t a)))
                                                                                                                         (/
                                                                                                                          (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
                                                                                                                          (+ (* c z) (* t i))))
                                                                                                                        t_1)))
                                                                                                                 (if (< x -1.469694296777705e-64)
                                                                                                                   t_2
                                                                                                                   (if (< x 3.2113527362226803e-147)
                                                                                                                     (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) 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 = j * ((c * a) - (y * i));
                                                                                                              	double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
                                                                                                              	double tmp;
                                                                                                              	if (x < -1.469694296777705e-64) {
                                                                                                              		tmp = t_2;
                                                                                                              	} else if (x < 3.2113527362226803e-147) {
                                                                                                              		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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 = j * ((c * a) - (y * i))
                                                                                                                  t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
                                                                                                                  if (x < (-1.469694296777705d-64)) then
                                                                                                                      tmp = t_2
                                                                                                                  else if (x < 3.2113527362226803d-147) then
                                                                                                                      tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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 = j * ((c * a) - (y * i));
                                                                                                              	double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
                                                                                                              	double tmp;
                                                                                                              	if (x < -1.469694296777705e-64) {
                                                                                                              		tmp = t_2;
                                                                                                              	} else if (x < 3.2113527362226803e-147) {
                                                                                                              		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
                                                                                                              	} else {
                                                                                                              		tmp = t_2;
                                                                                                              	}
                                                                                                              	return tmp;
                                                                                                              }
                                                                                                              
                                                                                                              def code(x, y, z, t, a, b, c, i, j):
                                                                                                              	t_1 = j * ((c * a) - (y * i))
                                                                                                              	t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1
                                                                                                              	tmp = 0
                                                                                                              	if x < -1.469694296777705e-64:
                                                                                                              		tmp = t_2
                                                                                                              	elif x < 3.2113527362226803e-147:
                                                                                                              		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
                                                                                                              	else:
                                                                                                              		tmp = t_2
                                                                                                              	return tmp
                                                                                                              
                                                                                                              function code(x, y, z, t, a, b, c, i, j)
                                                                                                              	t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i)))
                                                                                                              	t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1)
                                                                                                              	tmp = 0.0
                                                                                                              	if (x < -1.469694296777705e-64)
                                                                                                              		tmp = t_2;
                                                                                                              	elseif (x < 3.2113527362226803e-147)
                                                                                                              		tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - 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 = j * ((c * a) - (y * i));
                                                                                                              	t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1;
                                                                                                              	tmp = 0.0;
                                                                                                              	if (x < -1.469694296777705e-64)
                                                                                                              		tmp = t_2;
                                                                                                              	elseif (x < 3.2113527362226803e-147)
                                                                                                              		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
                                                                                                              
                                                                                                              \begin{array}{l}
                                                                                                              
                                                                                                              \\
                                                                                                              \begin{array}{l}
                                                                                                              t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
                                                                                                              t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
                                                                                                              \mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
                                                                                                              \;\;\;\;t\_2\\
                                                                                                              
                                                                                                              \mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
                                                                                                              \;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
                                                                                                              
                                                                                                              \mathbf{else}:\\
                                                                                                              \;\;\;\;t\_2\\
                                                                                                              
                                                                                                              
                                                                                                              \end{array}
                                                                                                              \end{array}
                                                                                                              

                                                                                                              Reproduce

                                                                                                              ?
                                                                                                              herbie shell --seed 2024337 
                                                                                                              (FPCore (x y z t a b c i j)
                                                                                                                :name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
                                                                                                                :precision binary64
                                                                                                              
                                                                                                                :alt
                                                                                                                (! :herbie-platform default (if (< x -293938859355541/2000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 32113527362226803/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))))))
                                                                                                              
                                                                                                                (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))