Linear.Matrix:det33 from linear-1.19.1.3

Percentage Accurate: 73.4% → 78.9%
Time: 12.5s
Alternatives: 18
Speedup: 0.9×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 18 alternatives:

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

Initial Program: 73.4% accurate, 1.0× speedup?

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

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

Alternative 1: 78.9% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-z, b, j \cdot t\right)\\ \mathbf{if}\;c \leq -1.02 \cdot 10^{+192}:\\ \;\;\;\;\mathsf{fma}\left(t\_1, c, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\ \mathbf{elif}\;c \leq 1.08 \cdot 10^{+217}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, i \cdot b\right), a, \mathsf{fma}\left(\mathsf{fma}\left(-b, c, y \cdot x\right), z, \mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1 \cdot c\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (fma (- z) b (* j t))))
   (if (<= c -1.02e+192)
     (fma t_1 c (* (fma (- t) a (* z y)) x))
     (if (<= c 1.08e+217)
       (fma
        (fma (- x) t (* i b))
        a
        (fma (fma (- b) c (* y x)) z (* (fma (- i) y (* c t)) j)))
       (* t_1 c)))))
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 * t));
	double tmp;
	if (c <= -1.02e+192) {
		tmp = fma(t_1, c, (fma(-t, a, (z * y)) * x));
	} else if (c <= 1.08e+217) {
		tmp = fma(fma(-x, t, (i * b)), a, fma(fma(-b, c, (y * x)), z, (fma(-i, y, (c * t)) * j)));
	} else {
		tmp = t_1 * c;
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	t_1 = fma(Float64(-z), b, Float64(j * t))
	tmp = 0.0
	if (c <= -1.02e+192)
		tmp = fma(t_1, c, Float64(fma(Float64(-t), a, Float64(z * y)) * x));
	elseif (c <= 1.08e+217)
		tmp = fma(fma(Float64(-x), t, Float64(i * b)), a, fma(fma(Float64(-b), c, Float64(y * x)), z, Float64(fma(Float64(-i), y, Float64(c * t)) * j)));
	else
		tmp = Float64(t_1 * c);
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-z) * b + N[(j * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.02e+192], N[(t$95$1 * c + N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.08e+217], N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z + N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 * c), $MachinePrecision]]]]
\begin{array}{l}

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

\mathbf{elif}\;c \leq 1.08 \cdot 10^{+217}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, i \cdot b\right), a, \mathsf{fma}\left(\mathsf{fma}\left(-b, c, y \cdot x\right), z, \mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if c < -1.01999999999999996e192

    1. Initial program 54.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.01999999999999996e192 < c < 1.0800000000000001e217

    1. Initial program 75.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 1.0800000000000001e217 < c

    1. Initial program 63.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 57.4% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot t\right), c, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\ \mathbf{if}\;x \leq -24000000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq -6.4 \cdot 10^{-255}:\\ \;\;\;\;\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i\\ \mathbf{elif}\;x \leq 2.72 \cdot 10^{+14}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y + j \cdot \left(c \cdot t - i \cdot y\right)\\ \mathbf{elif}\;x \leq 1.96 \cdot 10^{+238}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (fma (fma (- z) b (* j t)) c (* (fma (- t) a (* z y)) x))))
   (if (<= x -24000000000.0)
     t_1
     (if (<= x -6.4e-255)
       (* (fma (- y) j (* b a)) i)
       (if (<= x 2.72e+14)
         (+ (* (* z x) y) (* j (- (* c t) (* i y))))
         (if (<= x 1.96e+238) t_1 (* (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 t_1 = fma(fma(-z, b, (j * t)), c, (fma(-t, a, (z * y)) * x));
	double tmp;
	if (x <= -24000000000.0) {
		tmp = t_1;
	} else if (x <= -6.4e-255) {
		tmp = fma(-y, j, (b * a)) * i;
	} else if (x <= 2.72e+14) {
		tmp = ((z * x) * y) + (j * ((c * t) - (i * y)));
	} else if (x <= 1.96e+238) {
		tmp = t_1;
	} else {
		tmp = fma(-b, c, (y * x)) * z;
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	t_1 = fma(fma(Float64(-z), b, Float64(j * t)), c, Float64(fma(Float64(-t), a, Float64(z * y)) * x))
	tmp = 0.0
	if (x <= -24000000000.0)
		tmp = t_1;
	elseif (x <= -6.4e-255)
		tmp = Float64(fma(Float64(-y), j, Float64(b * a)) * i);
	elseif (x <= 2.72e+14)
		tmp = Float64(Float64(Float64(z * x) * y) + Float64(j * Float64(Float64(c * t) - Float64(i * y))));
	elseif (x <= 1.96e+238)
		tmp = t_1;
	else
		tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z);
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-z) * b + N[(j * t), $MachinePrecision]), $MachinePrecision] * c + N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -24000000000.0], t$95$1, If[LessEqual[x, -6.4e-255], N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[x, 2.72e+14], N[(N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.96e+238], t$95$1, N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;x \leq -6.4 \cdot 10^{-255}:\\
\;\;\;\;\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i\\

\mathbf{elif}\;x \leq 2.72 \cdot 10^{+14}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y + j \cdot \left(c \cdot t - i \cdot y\right)\\

\mathbf{elif}\;x \leq 1.96 \cdot 10^{+238}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if x < -2.4e10 or 2.72e14 < x < 1.96e238

    1. Initial program 76.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.4e10 < x < -6.39999999999999985e-255

    1. Initial program 68.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -6.39999999999999985e-255 < x < 2.72e14

    1. Initial program 77.5%

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

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

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

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

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

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

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

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

    if 1.96e238 < x

    1. Initial program 47.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 3: 69.5% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-z, b, j \cdot t\right)\\ \mathbf{if}\;c \leq -5.5 \cdot 10^{+101}:\\ \;\;\;\;t\_1 \cdot c\\ \mathbf{elif}\;c \leq 1.65 \cdot 10^{-41}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, i \cdot b\right), a, \mathsf{fma}\left(\left(-y\right) \cdot j, i, \left(z \cdot y\right) \cdot x\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(t\_1, c, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (fma (- z) b (* j t))))
   (if (<= c -5.5e+101)
     (* t_1 c)
     (if (<= c 1.65e-41)
       (fma (fma (- x) t (* i b)) a (fma (* (- y) j) i (* (* z y) x)))
       (fma t_1 c (* (fma (- t) a (* z y)) x))))))
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 * t));
	double tmp;
	if (c <= -5.5e+101) {
		tmp = t_1 * c;
	} else if (c <= 1.65e-41) {
		tmp = fma(fma(-x, t, (i * b)), a, fma((-y * j), i, ((z * y) * x)));
	} else {
		tmp = fma(t_1, c, (fma(-t, a, (z * y)) * x));
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	t_1 = fma(Float64(-z), b, Float64(j * t))
	tmp = 0.0
	if (c <= -5.5e+101)
		tmp = Float64(t_1 * c);
	elseif (c <= 1.65e-41)
		tmp = fma(fma(Float64(-x), t, Float64(i * b)), a, fma(Float64(Float64(-y) * j), i, Float64(Float64(z * y) * x)));
	else
		tmp = fma(t_1, c, Float64(fma(Float64(-t), a, Float64(z * y)) * x));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-z) * b + N[(j * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -5.5e+101], N[(t$95$1 * c), $MachinePrecision], If[LessEqual[c, 1.65e-41], N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-y) * j), $MachinePrecision] * i + N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 * c + N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

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

\mathbf{elif}\;c \leq 1.65 \cdot 10^{-41}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, i \cdot b\right), a, \mathsf{fma}\left(\left(-y\right) \cdot j, i, \left(z \cdot y\right) \cdot x\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if c < -5.50000000000000018e101

    1. Initial program 51.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -5.50000000000000018e101 < c < 1.65000000000000012e-41

    1. Initial program 81.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if 1.65000000000000012e-41 < c

      1. Initial program 67.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 4: 43.3% accurate, 1.2× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{if}\;z \leq -2.5 \cdot 10^{-65}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -5.3 \cdot 10^{-127}:\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{elif}\;z \leq -4.4 \cdot 10^{-271}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{elif}\;z \leq 7.5 \cdot 10^{-199}:\\ \;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\ \mathbf{elif}\;z \leq 1.2 \cdot 10^{+62}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
    (FPCore (x y z t a b c i j)
     :precision binary64
     (let* ((t_1 (* (fma (- b) c (* y x)) z)))
       (if (<= z -2.5e-65)
         t_1
         (if (<= z -5.3e-127)
           (* (* j c) t)
           (if (<= z -4.4e-271)
             (* (* i b) a)
             (if (<= z 7.5e-199)
               (* (* (- y) j) i)
               (if (<= z 1.2e+62) (* (fma (- a) t (* z y)) x) t_1)))))))
    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
    	double t_1 = fma(-b, c, (y * x)) * z;
    	double tmp;
    	if (z <= -2.5e-65) {
    		tmp = t_1;
    	} else if (z <= -5.3e-127) {
    		tmp = (j * c) * t;
    	} else if (z <= -4.4e-271) {
    		tmp = (i * b) * a;
    	} else if (z <= 7.5e-199) {
    		tmp = (-y * j) * i;
    	} else if (z <= 1.2e+62) {
    		tmp = fma(-a, t, (z * y)) * x;
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a, b, c, i, j)
    	t_1 = Float64(fma(Float64(-b), c, Float64(y * x)) * z)
    	tmp = 0.0
    	if (z <= -2.5e-65)
    		tmp = t_1;
    	elseif (z <= -5.3e-127)
    		tmp = Float64(Float64(j * c) * t);
    	elseif (z <= -4.4e-271)
    		tmp = Float64(Float64(i * b) * a);
    	elseif (z <= 7.5e-199)
    		tmp = Float64(Float64(Float64(-y) * j) * i);
    	elseif (z <= 1.2e+62)
    		tmp = Float64(fma(Float64(-a), t, Float64(z * y)) * x);
    	else
    		tmp = t_1;
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -2.5e-65], t$95$1, If[LessEqual[z, -5.3e-127], N[(N[(j * c), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, -4.4e-271], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[z, 7.5e-199], N[(N[((-y) * j), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[z, 1.2e+62], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
    \mathbf{if}\;z \leq -2.5 \cdot 10^{-65}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;z \leq -5.3 \cdot 10^{-127}:\\
    \;\;\;\;\left(j \cdot c\right) \cdot t\\
    
    \mathbf{elif}\;z \leq -4.4 \cdot 10^{-271}:\\
    \;\;\;\;\left(i \cdot b\right) \cdot a\\
    
    \mathbf{elif}\;z \leq 7.5 \cdot 10^{-199}:\\
    \;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\
    
    \mathbf{elif}\;z \leq 1.2 \cdot 10^{+62}:\\
    \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 5 regimes
    2. if z < -2.49999999999999991e-65 or 1.2e62 < z

      1. Initial program 66.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -2.49999999999999991e-65 < z < -5.3000000000000003e-127

      1. Initial program 73.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if -5.3000000000000003e-127 < z < -4.3999999999999999e-271

        1. Initial program 89.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -4.3999999999999999e-271 < z < 7.5000000000000003e-199

          1. Initial program 80.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \left(\left(-y\right) \cdot j\right) \cdot i \]

            if 7.5000000000000003e-199 < z < 1.2e62

            1. Initial program 76.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 5: 57.9% accurate, 1.4× speedup?

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

            1. Initial program 75.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -9.1999999999999995e210 < b < 3e-11

            1. Initial program 71.3%

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

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

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

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

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

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

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

              \[\leadsto \color{blue}{\left(z \cdot x\right) \cdot y} + j \cdot \left(c \cdot t - i \cdot y\right) \]
          3. Recombined 2 regimes into one program.
          4. Final simplification66.2%

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

          Alternative 6: 59.3% accurate, 1.4× speedup?

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

            1. Initial program 67.8%

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

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

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

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

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

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

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

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

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

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

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

            if -2.19999999999999987e-27 < y < 1.8e21

            1. Initial program 80.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            Alternative 7: 29.4% accurate, 1.4× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(-i\right) \cdot y\right) \cdot j\\ \mathbf{if}\;c \leq -5.5 \cdot 10^{+101}:\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{elif}\;c \leq -4.8 \cdot 10^{-12}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq -2 \cdot 10^{-257}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{elif}\;c \leq 4.2 \cdot 10^{-279}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq 43:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-b\right) \cdot c\right) \cdot z\\ \end{array} \end{array} \]
            (FPCore (x y z t a b c i j)
             :precision binary64
             (let* ((t_1 (* (* (- i) y) j)))
               (if (<= c -5.5e+101)
                 (* (* j c) t)
                 (if (<= c -4.8e-12)
                   t_1
                   (if (<= c -2e-257)
                     (* (* z x) y)
                     (if (<= c 4.2e-279)
                       t_1
                       (if (<= c 43.0) (* (* z y) x) (* (* (- b) c) z))))))))
            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
            	double t_1 = (-i * y) * j;
            	double tmp;
            	if (c <= -5.5e+101) {
            		tmp = (j * c) * t;
            	} else if (c <= -4.8e-12) {
            		tmp = t_1;
            	} else if (c <= -2e-257) {
            		tmp = (z * x) * y;
            	} else if (c <= 4.2e-279) {
            		tmp = t_1;
            	} else if (c <= 43.0) {
            		tmp = (z * y) * x;
            	} else {
            		tmp = (-b * c) * z;
            	}
            	return tmp;
            }
            
            real(8) function code(x, y, z, t, a, b, c, i, j)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                real(8), intent (in) :: z
                real(8), intent (in) :: t
                real(8), intent (in) :: a
                real(8), intent (in) :: b
                real(8), intent (in) :: c
                real(8), intent (in) :: i
                real(8), intent (in) :: j
                real(8) :: t_1
                real(8) :: tmp
                t_1 = (-i * y) * j
                if (c <= (-5.5d+101)) then
                    tmp = (j * c) * t
                else if (c <= (-4.8d-12)) then
                    tmp = t_1
                else if (c <= (-2d-257)) then
                    tmp = (z * x) * y
                else if (c <= 4.2d-279) then
                    tmp = t_1
                else if (c <= 43.0d0) then
                    tmp = (z * y) * x
                else
                    tmp = (-b * c) * z
                end if
                code = tmp
            end function
            
            public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
            	double t_1 = (-i * y) * j;
            	double tmp;
            	if (c <= -5.5e+101) {
            		tmp = (j * c) * t;
            	} else if (c <= -4.8e-12) {
            		tmp = t_1;
            	} else if (c <= -2e-257) {
            		tmp = (z * x) * y;
            	} else if (c <= 4.2e-279) {
            		tmp = t_1;
            	} else if (c <= 43.0) {
            		tmp = (z * y) * x;
            	} else {
            		tmp = (-b * c) * z;
            	}
            	return tmp;
            }
            
            def code(x, y, z, t, a, b, c, i, j):
            	t_1 = (-i * y) * j
            	tmp = 0
            	if c <= -5.5e+101:
            		tmp = (j * c) * t
            	elif c <= -4.8e-12:
            		tmp = t_1
            	elif c <= -2e-257:
            		tmp = (z * x) * y
            	elif c <= 4.2e-279:
            		tmp = t_1
            	elif c <= 43.0:
            		tmp = (z * y) * x
            	else:
            		tmp = (-b * c) * z
            	return tmp
            
            function code(x, y, z, t, a, b, c, i, j)
            	t_1 = Float64(Float64(Float64(-i) * y) * j)
            	tmp = 0.0
            	if (c <= -5.5e+101)
            		tmp = Float64(Float64(j * c) * t);
            	elseif (c <= -4.8e-12)
            		tmp = t_1;
            	elseif (c <= -2e-257)
            		tmp = Float64(Float64(z * x) * y);
            	elseif (c <= 4.2e-279)
            		tmp = t_1;
            	elseif (c <= 43.0)
            		tmp = Float64(Float64(z * y) * x);
            	else
            		tmp = Float64(Float64(Float64(-b) * c) * z);
            	end
            	return tmp
            end
            
            function tmp_2 = code(x, y, z, t, a, b, c, i, j)
            	t_1 = (-i * y) * j;
            	tmp = 0.0;
            	if (c <= -5.5e+101)
            		tmp = (j * c) * t;
            	elseif (c <= -4.8e-12)
            		tmp = t_1;
            	elseif (c <= -2e-257)
            		tmp = (z * x) * y;
            	elseif (c <= 4.2e-279)
            		tmp = t_1;
            	elseif (c <= 43.0)
            		tmp = (z * y) * x;
            	else
            		tmp = (-b * c) * z;
            	end
            	tmp_2 = tmp;
            end
            
            code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-i) * y), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[c, -5.5e+101], N[(N[(j * c), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[c, -4.8e-12], t$95$1, If[LessEqual[c, -2e-257], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[c, 4.2e-279], t$95$1, If[LessEqual[c, 43.0], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], N[(N[((-b) * c), $MachinePrecision] * z), $MachinePrecision]]]]]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \left(\left(-i\right) \cdot y\right) \cdot j\\
            \mathbf{if}\;c \leq -5.5 \cdot 10^{+101}:\\
            \;\;\;\;\left(j \cdot c\right) \cdot t\\
            
            \mathbf{elif}\;c \leq -4.8 \cdot 10^{-12}:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;c \leq -2 \cdot 10^{-257}:\\
            \;\;\;\;\left(z \cdot x\right) \cdot y\\
            
            \mathbf{elif}\;c \leq 4.2 \cdot 10^{-279}:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;c \leq 43:\\
            \;\;\;\;\left(z \cdot y\right) \cdot x\\
            
            \mathbf{else}:\\
            \;\;\;\;\left(\left(-b\right) \cdot c\right) \cdot z\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 5 regimes
            2. if c < -5.50000000000000018e101

              1. Initial program 51.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                if -5.50000000000000018e101 < c < -4.79999999999999974e-12 or -2e-257 < c < 4.20000000000000011e-279

                1. Initial program 75.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if -4.79999999999999974e-12 < c < -2e-257

                  1. Initial program 80.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if 4.20000000000000011e-279 < c < 43

                      1. Initial program 82.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        if 43 < c

                        1. Initial program 68.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        Alternative 8: 28.7% accurate, 1.6× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(-i\right) \cdot y\right) \cdot j\\ \mathbf{if}\;c \leq -5.5 \cdot 10^{+101}:\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{elif}\;c \leq -4.8 \cdot 10^{-12}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq -2 \cdot 10^{-257}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{elif}\;c \leq 2.7 \cdot 10^{+153}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\left(-c\right) \cdot \left(b \cdot z\right)\\ \end{array} \end{array} \]
                        (FPCore (x y z t a b c i j)
                         :precision binary64
                         (let* ((t_1 (* (* (- i) y) j)))
                           (if (<= c -5.5e+101)
                             (* (* j c) t)
                             (if (<= c -4.8e-12)
                               t_1
                               (if (<= c -2e-257)
                                 (* (* z x) y)
                                 (if (<= c 2.7e+153) t_1 (* (- c) (* b z))))))))
                        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                        	double t_1 = (-i * y) * j;
                        	double tmp;
                        	if (c <= -5.5e+101) {
                        		tmp = (j * c) * t;
                        	} else if (c <= -4.8e-12) {
                        		tmp = t_1;
                        	} else if (c <= -2e-257) {
                        		tmp = (z * x) * y;
                        	} else if (c <= 2.7e+153) {
                        		tmp = t_1;
                        	} else {
                        		tmp = -c * (b * z);
                        	}
                        	return tmp;
                        }
                        
                        real(8) function code(x, y, z, t, a, b, c, i, j)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            real(8), intent (in) :: z
                            real(8), intent (in) :: t
                            real(8), intent (in) :: a
                            real(8), intent (in) :: b
                            real(8), intent (in) :: c
                            real(8), intent (in) :: i
                            real(8), intent (in) :: j
                            real(8) :: t_1
                            real(8) :: tmp
                            t_1 = (-i * y) * j
                            if (c <= (-5.5d+101)) then
                                tmp = (j * c) * t
                            else if (c <= (-4.8d-12)) then
                                tmp = t_1
                            else if (c <= (-2d-257)) then
                                tmp = (z * x) * y
                            else if (c <= 2.7d+153) then
                                tmp = t_1
                            else
                                tmp = -c * (b * z)
                            end if
                            code = tmp
                        end function
                        
                        public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                        	double t_1 = (-i * y) * j;
                        	double tmp;
                        	if (c <= -5.5e+101) {
                        		tmp = (j * c) * t;
                        	} else if (c <= -4.8e-12) {
                        		tmp = t_1;
                        	} else if (c <= -2e-257) {
                        		tmp = (z * x) * y;
                        	} else if (c <= 2.7e+153) {
                        		tmp = t_1;
                        	} else {
                        		tmp = -c * (b * z);
                        	}
                        	return tmp;
                        }
                        
                        def code(x, y, z, t, a, b, c, i, j):
                        	t_1 = (-i * y) * j
                        	tmp = 0
                        	if c <= -5.5e+101:
                        		tmp = (j * c) * t
                        	elif c <= -4.8e-12:
                        		tmp = t_1
                        	elif c <= -2e-257:
                        		tmp = (z * x) * y
                        	elif c <= 2.7e+153:
                        		tmp = t_1
                        	else:
                        		tmp = -c * (b * z)
                        	return tmp
                        
                        function code(x, y, z, t, a, b, c, i, j)
                        	t_1 = Float64(Float64(Float64(-i) * y) * j)
                        	tmp = 0.0
                        	if (c <= -5.5e+101)
                        		tmp = Float64(Float64(j * c) * t);
                        	elseif (c <= -4.8e-12)
                        		tmp = t_1;
                        	elseif (c <= -2e-257)
                        		tmp = Float64(Float64(z * x) * y);
                        	elseif (c <= 2.7e+153)
                        		tmp = t_1;
                        	else
                        		tmp = Float64(Float64(-c) * Float64(b * z));
                        	end
                        	return tmp
                        end
                        
                        function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                        	t_1 = (-i * y) * j;
                        	tmp = 0.0;
                        	if (c <= -5.5e+101)
                        		tmp = (j * c) * t;
                        	elseif (c <= -4.8e-12)
                        		tmp = t_1;
                        	elseif (c <= -2e-257)
                        		tmp = (z * x) * y;
                        	elseif (c <= 2.7e+153)
                        		tmp = t_1;
                        	else
                        		tmp = -c * (b * z);
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-i) * y), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[c, -5.5e+101], N[(N[(j * c), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[c, -4.8e-12], t$95$1, If[LessEqual[c, -2e-257], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[c, 2.7e+153], t$95$1, N[((-c) * N[(b * z), $MachinePrecision]), $MachinePrecision]]]]]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        t_1 := \left(\left(-i\right) \cdot y\right) \cdot j\\
                        \mathbf{if}\;c \leq -5.5 \cdot 10^{+101}:\\
                        \;\;\;\;\left(j \cdot c\right) \cdot t\\
                        
                        \mathbf{elif}\;c \leq -4.8 \cdot 10^{-12}:\\
                        \;\;\;\;t\_1\\
                        
                        \mathbf{elif}\;c \leq -2 \cdot 10^{-257}:\\
                        \;\;\;\;\left(z \cdot x\right) \cdot y\\
                        
                        \mathbf{elif}\;c \leq 2.7 \cdot 10^{+153}:\\
                        \;\;\;\;t\_1\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;\left(-c\right) \cdot \left(b \cdot z\right)\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 4 regimes
                        2. if c < -5.50000000000000018e101

                          1. Initial program 51.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            if -5.50000000000000018e101 < c < -4.79999999999999974e-12 or -2e-257 < c < 2.7000000000000001e153

                            1. Initial program 78.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

                              if -4.79999999999999974e-12 < c < -2e-257

                              1. Initial program 80.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  if 2.7000000000000001e153 < c

                                  1. Initial program 65.3%

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                  5. Applied rewrites68.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 rewrites17.4%

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

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

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

                                    Alternative 9: 51.9% accurate, 1.6× speedup?

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

                                      1. Initial program 67.5%

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

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

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

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

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

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

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

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

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

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

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

                                      if -3.4e-16 < y < 5.40000000000000023e-230

                                      1. Initial program 79.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      if 5.40000000000000023e-230 < y < 1.3999999999999999e-23

                                      1. Initial program 84.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    Alternative 10: 51.4% accurate, 1.6× speedup?

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

                                      1. Initial program 66.9%

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

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

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

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

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

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

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

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

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

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

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

                                      if -1.02e22 < y < 5e-206

                                      1. Initial program 77.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      if 5e-206 < y < 1.3999999999999999e-23

                                      1. Initial program 90.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    Alternative 11: 50.5% accurate, 1.6× speedup?

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

                                      1. Initial program 77.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      if -5.3999999999999998e184 < j < -9.2e-40

                                      1. Initial program 71.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      if -9.2e-40 < j < 1.24999999999999993e65

                                      1. Initial program 70.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    Alternative 12: 45.4% accurate, 1.6× speedup?

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

                                      1. Initial program 74.7%

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

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

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

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

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

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

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

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

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

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

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

                                      if -3.8500000000000002e-35 < j < 5.39999999999999968e45

                                      1. Initial program 71.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      if 3.2000000000000001e281 < j

                                      1. Initial program 74.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      Alternative 13: 41.9% accurate, 1.6× speedup?

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

                                        1. Initial program 71.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        if -3.5e11 < x < -8.5000000000000002e-97

                                        1. Initial program 70.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          if -8.5000000000000002e-97 < x < 2.72e14

                                          1. Initial program 75.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          Alternative 14: 51.9% accurate, 2.0× speedup?

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

                                            1. Initial program 75.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            if -9.2e-40 < j < 1.24999999999999993e65

                                            1. Initial program 70.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          Alternative 15: 30.0% accurate, 2.0× speedup?

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

                                            1. Initial program 52.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                              if -1.35e91 < c < 3.39999999999999991e-273

                                              1. Initial program 78.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                if 3.39999999999999991e-273 < c < 43

                                                1. Initial program 81.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                  if 43 < c

                                                  1. Initial program 68.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                    Alternative 16: 29.5% accurate, 2.6× speedup?

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

                                                      1. Initial program 62.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                          if -9.199999999999999e73 < z < 3.8e25

                                                          1. Initial program 80.5%

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

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

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

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

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

                                                              \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \cdot i \]
                                                            5. associate-*r*N/A

                                                              \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \cdot i \]
                                                            6. mul-1-negN/A

                                                              \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(a \cdot b\right)\right)}\right)\right)\right) \cdot i \]
                                                            7. remove-double-negN/A

                                                              \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{a \cdot b}\right) \cdot i \]
                                                            8. lower-fma.f64N/A

                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, a \cdot b\right)} \cdot i \]
                                                            9. mul-1-negN/A

                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, a \cdot b\right) \cdot i \]
                                                            10. lower-neg.f64N/A

                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, j, a \cdot b\right) \cdot i \]
                                                            11. *-commutativeN/A

                                                              \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot a}\right) \cdot i \]
                                                            12. lower-*.f6449.1

                                                              \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot a}\right) \cdot i \]
                                                          5. Applied rewrites49.1%

                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i} \]
                                                          6. Taylor expanded in y around 0

                                                            \[\leadsto a \cdot \color{blue}{\left(b \cdot i\right)} \]
                                                          7. Step-by-step derivation
                                                            1. Applied rewrites29.2%

                                                              \[\leadsto \left(i \cdot b\right) \cdot \color{blue}{a} \]
                                                          8. Recombined 2 regimes into one program.
                                                          9. Final simplification37.3%

                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -9.2 \cdot 10^{+73} \lor \neg \left(z \leq 3.8 \cdot 10^{+25}\right):\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \end{array} \]
                                                          10. Add Preprocessing

                                                          Alternative 17: 27.6% accurate, 2.6× speedup?

                                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;c \leq -1.2 \cdot 10^{+16} \lor \neg \left(c \leq 1.1 \cdot 10^{+217}\right):\\ \;\;\;\;\left(j \cdot t\right) \cdot c\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \end{array} \end{array} \]
                                                          (FPCore (x y z t a b c i j)
                                                           :precision binary64
                                                           (if (or (<= c -1.2e+16) (not (<= c 1.1e+217))) (* (* j t) c) (* (* 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 ((c <= -1.2e+16) || !(c <= 1.1e+217)) {
                                                          		tmp = (j * t) * c;
                                                          	} else {
                                                          		tmp = (z * x) * y;
                                                          	}
                                                          	return tmp;
                                                          }
                                                          
                                                          real(8) function code(x, y, z, t, a, b, c, i, j)
                                                              real(8), intent (in) :: x
                                                              real(8), intent (in) :: y
                                                              real(8), intent (in) :: z
                                                              real(8), intent (in) :: t
                                                              real(8), intent (in) :: a
                                                              real(8), intent (in) :: b
                                                              real(8), intent (in) :: c
                                                              real(8), intent (in) :: i
                                                              real(8), intent (in) :: j
                                                              real(8) :: tmp
                                                              if ((c <= (-1.2d+16)) .or. (.not. (c <= 1.1d+217))) then
                                                                  tmp = (j * t) * c
                                                              else
                                                                  tmp = (z * x) * y
                                                              end if
                                                              code = tmp
                                                          end function
                                                          
                                                          public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                          	double tmp;
                                                          	if ((c <= -1.2e+16) || !(c <= 1.1e+217)) {
                                                          		tmp = (j * t) * c;
                                                          	} else {
                                                          		tmp = (z * x) * y;
                                                          	}
                                                          	return tmp;
                                                          }
                                                          
                                                          def code(x, y, z, t, a, b, c, i, j):
                                                          	tmp = 0
                                                          	if (c <= -1.2e+16) or not (c <= 1.1e+217):
                                                          		tmp = (j * t) * c
                                                          	else:
                                                          		tmp = (z * x) * y
                                                          	return tmp
                                                          
                                                          function code(x, y, z, t, a, b, c, i, j)
                                                          	tmp = 0.0
                                                          	if ((c <= -1.2e+16) || !(c <= 1.1e+217))
                                                          		tmp = Float64(Float64(j * t) * c);
                                                          	else
                                                          		tmp = Float64(Float64(z * x) * y);
                                                          	end
                                                          	return tmp
                                                          end
                                                          
                                                          function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                          	tmp = 0.0;
                                                          	if ((c <= -1.2e+16) || ~((c <= 1.1e+217)))
                                                          		tmp = (j * t) * c;
                                                          	else
                                                          		tmp = (z * x) * y;
                                                          	end
                                                          	tmp_2 = tmp;
                                                          end
                                                          
                                                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -1.2e+16], N[Not[LessEqual[c, 1.1e+217]], $MachinePrecision]], N[(N[(j * t), $MachinePrecision] * c), $MachinePrecision], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]]
                                                          
                                                          \begin{array}{l}
                                                          
                                                          \\
                                                          \begin{array}{l}
                                                          \mathbf{if}\;c \leq -1.2 \cdot 10^{+16} \lor \neg \left(c \leq 1.1 \cdot 10^{+217}\right):\\
                                                          \;\;\;\;\left(j \cdot t\right) \cdot c\\
                                                          
                                                          \mathbf{else}:\\
                                                          \;\;\;\;\left(z \cdot x\right) \cdot y\\
                                                          
                                                          
                                                          \end{array}
                                                          \end{array}
                                                          
                                                          Derivation
                                                          1. Split input into 2 regimes
                                                          2. if c < -1.2e16 or 1.1e217 < c

                                                            1. Initial program 59.6%

                                                              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                            2. Add Preprocessing
                                                            3. Taylor expanded in t around inf

                                                              \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right)} \]
                                                            4. Step-by-step derivation
                                                              1. *-commutativeN/A

                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right) \cdot t} \]
                                                              2. lower-*.f64N/A

                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right) \cdot t} \]
                                                              3. *-commutativeN/A

                                                                \[\leadsto \left(-1 \cdot \color{blue}{\left(x \cdot a\right)} + c \cdot j\right) \cdot t \]
                                                              4. associate-*r*N/A

                                                                \[\leadsto \left(\color{blue}{\left(-1 \cdot x\right) \cdot a} + c \cdot j\right) \cdot t \]
                                                              5. lower-fma.f64N/A

                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot x, a, c \cdot j\right)} \cdot t \]
                                                              6. mul-1-negN/A

                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(x\right)}, a, c \cdot j\right) \cdot t \]
                                                              7. lower-neg.f64N/A

                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{-x}, a, c \cdot j\right) \cdot t \]
                                                              8. *-commutativeN/A

                                                                \[\leadsto \mathsf{fma}\left(-x, a, \color{blue}{j \cdot c}\right) \cdot t \]
                                                              9. lower-*.f6448.7

                                                                \[\leadsto \mathsf{fma}\left(-x, a, \color{blue}{j \cdot c}\right) \cdot t \]
                                                            5. Applied rewrites48.7%

                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t} \]
                                                            6. Taylor expanded in x around 0

                                                              \[\leadsto c \cdot \color{blue}{\left(j \cdot t\right)} \]
                                                            7. Step-by-step derivation
                                                              1. Applied rewrites42.2%

                                                                \[\leadsto \left(j \cdot t\right) \cdot \color{blue}{c} \]

                                                              if -1.2e16 < c < 1.1e217

                                                              1. Initial program 78.5%

                                                                \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                              2. Add Preprocessing
                                                              3. Taylor expanded in z around inf

                                                                \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                              4. Step-by-step derivation
                                                                1. *-commutativeN/A

                                                                  \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                2. lower-*.f64N/A

                                                                  \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                3. sub-negN/A

                                                                  \[\leadsto \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \cdot z \]
                                                                4. mul-1-negN/A

                                                                  \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                                5. +-commutativeN/A

                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \cdot z \]
                                                                6. associate-*r*N/A

                                                                  \[\leadsto \left(\color{blue}{\left(-1 \cdot b\right) \cdot c} + x \cdot y\right) \cdot z \]
                                                                7. lower-fma.f64N/A

                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot b, c, x \cdot y\right)} \cdot z \]
                                                                8. neg-mul-1N/A

                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(b\right)}, c, x \cdot y\right) \cdot z \]
                                                                9. lower-neg.f64N/A

                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{-b}, c, x \cdot y\right) \cdot z \]
                                                                10. *-commutativeN/A

                                                                  \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                11. lower-*.f6439.9

                                                                  \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                              5. Applied rewrites39.9%

                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z} \]
                                                              6. Taylor expanded in x around inf

                                                                \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                              7. Step-by-step derivation
                                                                1. Applied rewrites29.7%

                                                                  \[\leadsto \left(z \cdot y\right) \cdot \color{blue}{x} \]
                                                                2. Step-by-step derivation
                                                                  1. Applied rewrites31.2%

                                                                    \[\leadsto \left(z \cdot x\right) \cdot y \]
                                                                3. Recombined 2 regimes into one program.
                                                                4. Final simplification34.4%

                                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -1.2 \cdot 10^{+16} \lor \neg \left(c \leq 1.1 \cdot 10^{+217}\right):\\ \;\;\;\;\left(j \cdot t\right) \cdot c\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \end{array} \]
                                                                5. Add Preprocessing

                                                                Alternative 18: 21.5% accurate, 5.5× speedup?

                                                                \[\begin{array}{l} \\ \left(z \cdot x\right) \cdot y \end{array} \]
                                                                (FPCore (x y z t a b c i j) :precision binary64 (* (* z x) y))
                                                                double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                	return (z * x) * y;
                                                                }
                                                                
                                                                real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                    real(8), intent (in) :: x
                                                                    real(8), intent (in) :: y
                                                                    real(8), intent (in) :: z
                                                                    real(8), intent (in) :: t
                                                                    real(8), intent (in) :: a
                                                                    real(8), intent (in) :: b
                                                                    real(8), intent (in) :: c
                                                                    real(8), intent (in) :: i
                                                                    real(8), intent (in) :: j
                                                                    code = (z * x) * y
                                                                end function
                                                                
                                                                public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                	return (z * x) * y;
                                                                }
                                                                
                                                                def code(x, y, z, t, a, b, c, i, j):
                                                                	return (z * x) * y
                                                                
                                                                function code(x, y, z, t, a, b, c, i, j)
                                                                	return Float64(Float64(z * x) * y)
                                                                end
                                                                
                                                                function tmp = code(x, y, z, t, a, b, c, i, j)
                                                                	tmp = (z * x) * y;
                                                                end
                                                                
                                                                code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]
                                                                
                                                                \begin{array}{l}
                                                                
                                                                \\
                                                                \left(z \cdot x\right) \cdot y
                                                                \end{array}
                                                                
                                                                Derivation
                                                                1. Initial program 73.0%

                                                                  \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                                2. Add Preprocessing
                                                                3. Taylor expanded in z around inf

                                                                  \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                4. Step-by-step derivation
                                                                  1. *-commutativeN/A

                                                                    \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                  2. lower-*.f64N/A

                                                                    \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                  3. sub-negN/A

                                                                    \[\leadsto \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \cdot z \]
                                                                  4. mul-1-negN/A

                                                                    \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                                  5. +-commutativeN/A

                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \cdot z \]
                                                                  6. associate-*r*N/A

                                                                    \[\leadsto \left(\color{blue}{\left(-1 \cdot b\right) \cdot c} + x \cdot y\right) \cdot z \]
                                                                  7. lower-fma.f64N/A

                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot b, c, x \cdot y\right)} \cdot z \]
                                                                  8. neg-mul-1N/A

                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(b\right)}, c, x \cdot y\right) \cdot z \]
                                                                  9. lower-neg.f64N/A

                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{-b}, c, x \cdot y\right) \cdot z \]
                                                                  10. *-commutativeN/A

                                                                    \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                  11. lower-*.f6441.9

                                                                    \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                5. Applied rewrites41.9%

                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z} \]
                                                                6. Taylor expanded in x around inf

                                                                  \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                                7. Step-by-step derivation
                                                                  1. Applied rewrites25.6%

                                                                    \[\leadsto \left(z \cdot y\right) \cdot \color{blue}{x} \]
                                                                  2. Step-by-step derivation
                                                                    1. Applied rewrites26.2%

                                                                      \[\leadsto \left(z \cdot x\right) \cdot y \]
                                                                    2. Add Preprocessing

                                                                    Developer Target 1: 68.9% accurate, 0.2× speedup?

                                                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\ t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\ \mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                                                                    (FPCore (x y z t a b c i j)
                                                                     :precision binary64
                                                                     (let* ((t_1
                                                                             (+
                                                                              (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
                                                                              (/
                                                                               (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
                                                                               (+ (* c t) (* i y)))))
                                                                            (t_2
                                                                             (-
                                                                              (* x (- (* z y) (* a t)))
                                                                              (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
                                                                       (if (< t -8.120978919195912e-33)
                                                                         t_2
                                                                         (if (< t -4.712553818218485e-169)
                                                                           t_1
                                                                           (if (< t -7.633533346031584e-308)
                                                                             t_2
                                                                             (if (< t 1.0535888557455487e-139) t_1 t_2))))))
                                                                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                    	double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
                                                                    	double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
                                                                    	double tmp;
                                                                    	if (t < -8.120978919195912e-33) {
                                                                    		tmp = t_2;
                                                                    	} else if (t < -4.712553818218485e-169) {
                                                                    		tmp = t_1;
                                                                    	} else if (t < -7.633533346031584e-308) {
                                                                    		tmp = t_2;
                                                                    	} else if (t < 1.0535888557455487e-139) {
                                                                    		tmp = t_1;
                                                                    	} else {
                                                                    		tmp = t_2;
                                                                    	}
                                                                    	return tmp;
                                                                    }
                                                                    
                                                                    real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                        real(8), intent (in) :: x
                                                                        real(8), intent (in) :: y
                                                                        real(8), intent (in) :: z
                                                                        real(8), intent (in) :: t
                                                                        real(8), intent (in) :: a
                                                                        real(8), intent (in) :: b
                                                                        real(8), intent (in) :: c
                                                                        real(8), intent (in) :: i
                                                                        real(8), intent (in) :: j
                                                                        real(8) :: t_1
                                                                        real(8) :: t_2
                                                                        real(8) :: tmp
                                                                        t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
                                                                        t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
                                                                        if (t < (-8.120978919195912d-33)) then
                                                                            tmp = t_2
                                                                        else if (t < (-4.712553818218485d-169)) then
                                                                            tmp = t_1
                                                                        else if (t < (-7.633533346031584d-308)) then
                                                                            tmp = t_2
                                                                        else if (t < 1.0535888557455487d-139) then
                                                                            tmp = t_1
                                                                        else
                                                                            tmp = t_2
                                                                        end if
                                                                        code = tmp
                                                                    end function
                                                                    
                                                                    public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                    	double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
                                                                    	double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
                                                                    	double tmp;
                                                                    	if (t < -8.120978919195912e-33) {
                                                                    		tmp = t_2;
                                                                    	} else if (t < -4.712553818218485e-169) {
                                                                    		tmp = t_1;
                                                                    	} else if (t < -7.633533346031584e-308) {
                                                                    		tmp = t_2;
                                                                    	} else if (t < 1.0535888557455487e-139) {
                                                                    		tmp = t_1;
                                                                    	} else {
                                                                    		tmp = t_2;
                                                                    	}
                                                                    	return tmp;
                                                                    }
                                                                    
                                                                    def code(x, y, z, t, a, b, c, i, j):
                                                                    	t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y)))
                                                                    	t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
                                                                    	tmp = 0
                                                                    	if t < -8.120978919195912e-33:
                                                                    		tmp = t_2
                                                                    	elif t < -4.712553818218485e-169:
                                                                    		tmp = t_1
                                                                    	elif t < -7.633533346031584e-308:
                                                                    		tmp = t_2
                                                                    	elif t < 1.0535888557455487e-139:
                                                                    		tmp = t_1
                                                                    	else:
                                                                    		tmp = t_2
                                                                    	return tmp
                                                                    
                                                                    function code(x, y, z, t, a, b, c, i, j)
                                                                    	t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y))))
                                                                    	t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j)))
                                                                    	tmp = 0.0
                                                                    	if (t < -8.120978919195912e-33)
                                                                    		tmp = t_2;
                                                                    	elseif (t < -4.712553818218485e-169)
                                                                    		tmp = t_1;
                                                                    	elseif (t < -7.633533346031584e-308)
                                                                    		tmp = t_2;
                                                                    	elseif (t < 1.0535888557455487e-139)
                                                                    		tmp = t_1;
                                                                    	else
                                                                    		tmp = t_2;
                                                                    	end
                                                                    	return tmp
                                                                    end
                                                                    
                                                                    function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                    	t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y)));
                                                                    	t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
                                                                    	tmp = 0.0;
                                                                    	if (t < -8.120978919195912e-33)
                                                                    		tmp = t_2;
                                                                    	elseif (t < -4.712553818218485e-169)
                                                                    		tmp = t_1;
                                                                    	elseif (t < -7.633533346031584e-308)
                                                                    		tmp = t_2;
                                                                    	elseif (t < 1.0535888557455487e-139)
                                                                    		tmp = t_1;
                                                                    	else
                                                                    		tmp = t_2;
                                                                    	end
                                                                    	tmp_2 = tmp;
                                                                    end
                                                                    
                                                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
                                                                    
                                                                    \begin{array}{l}
                                                                    
                                                                    \\
                                                                    \begin{array}{l}
                                                                    t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
                                                                    t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
                                                                    \mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
                                                                    \;\;\;\;t\_2\\
                                                                    
                                                                    \mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
                                                                    \;\;\;\;t\_1\\
                                                                    
                                                                    \mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
                                                                    \;\;\;\;t\_2\\
                                                                    
                                                                    \mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
                                                                    \;\;\;\;t\_1\\
                                                                    
                                                                    \mathbf{else}:\\
                                                                    \;\;\;\;t\_2\\
                                                                    
                                                                    
                                                                    \end{array}
                                                                    \end{array}
                                                                    

                                                                    Reproduce

                                                                    ?
                                                                    herbie shell --seed 2024313 
                                                                    (FPCore (x y z t a b c i j)
                                                                      :name "Linear.Matrix:det33 from linear-1.19.1.3"
                                                                      :precision binary64
                                                                    
                                                                      :alt
                                                                      (! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))))))))
                                                                    
                                                                      (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))