Linear.Matrix:det33 from linear-1.19.1.3

Percentage Accurate: 73.1% → 82.1%
Time: 14.6s
Alternatives: 24
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 24 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.1% accurate, 1.0× speedup?

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

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

Alternative 1: 82.1% accurate, 0.3× 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) + j \cdot \left(c \cdot t - i \cdot y\right)\\ \mathbf{if}\;t\_1 \leq 5 \cdot 10^{+264}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_1 \leq \infty:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot a\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-a, x, j \cdot c\right), t, \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(-y\right) \cdot \mathsf{fma}\left(j, i, -\mathsf{fma}\left(z, x, \frac{\left(-b\right) \cdot \left(c \cdot z\right)}{y}\right)\right)\\ \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 (- (* c t) (* i y))))))
   (if (<= t_1 5e+264)
     t_1
     (if (<= t_1 INFINITY)
       (fma
        (fma (- z) c (* i a))
        b
        (fma (fma (- a) x (* j c)) t (* (fma (- j) i (* z x)) y)))
       (* (- y) (fma j i (- (fma z x (/ (* (- b) (* c z)) y)))))))))
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 * ((c * t) - (i * y)));
	double tmp;
	if (t_1 <= 5e+264) {
		tmp = t_1;
	} else if (t_1 <= ((double) INFINITY)) {
		tmp = fma(fma(-z, c, (i * a)), b, fma(fma(-a, x, (j * c)), t, (fma(-j, i, (z * x)) * y)));
	} else {
		tmp = -y * fma(j, i, -fma(z, x, ((-b * (c * z)) / y)));
	}
	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(j * Float64(Float64(c * t) - Float64(i * y))))
	tmp = 0.0
	if (t_1 <= 5e+264)
		tmp = t_1;
	elseif (t_1 <= Inf)
		tmp = fma(fma(Float64(-z), c, Float64(i * a)), b, fma(fma(Float64(-a), x, Float64(j * c)), t, Float64(fma(Float64(-j), i, Float64(z * x)) * y)));
	else
		tmp = Float64(Float64(-y) * fma(j, i, Float64(-fma(z, x, Float64(Float64(Float64(-b) * Float64(c * z)) / y)))));
	end
	return 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[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, 5e+264], t$95$1, If[LessEqual[t$95$1, Infinity], N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t + N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[((-y) * N[(j * i + (-N[(z * x + N[(N[((-b) * N[(c * z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision])), $MachinePrecision]), $MachinePrecision]]]]
\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) + j \cdot \left(c \cdot t - i \cdot y\right)\\
\mathbf{if}\;t\_1 \leq 5 \cdot 10^{+264}:\\
\;\;\;\;t\_1\\

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

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


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

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

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

    1. Initial program 86.4%

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

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

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

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

    1. Initial program 0.0%

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

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

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

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

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

    Alternative 2: 82.8% accurate, 0.4× 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) + j \cdot \left(c \cdot t - i \cdot y\right)\\ \mathbf{if}\;t\_1 \leq 5 \cdot 10^{+295}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\left(-y\right) \cdot \mathsf{fma}\left(j, i, -\mathsf{fma}\left(z, x, \frac{\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot a\right), b, \mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\right)}{y}\right)\right)\\ \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 (- (* c t) (* i y))))))
       (if (<= t_1 5e+295)
         t_1
         (*
          (- y)
          (fma
           j
           i
           (-
            (fma
             z
             x
             (/ (fma (fma (- z) c (* i a)) b (* (fma (- a) x (* j c)) t)) y))))))))
    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 * ((c * t) - (i * y)));
    	double tmp;
    	if (t_1 <= 5e+295) {
    		tmp = t_1;
    	} else {
    		tmp = -y * fma(j, i, -fma(z, x, (fma(fma(-z, c, (i * a)), b, (fma(-a, x, (j * c)) * t)) / y)));
    	}
    	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(j * Float64(Float64(c * t) - Float64(i * y))))
    	tmp = 0.0
    	if (t_1 <= 5e+295)
    		tmp = t_1;
    	else
    		tmp = Float64(Float64(-y) * fma(j, i, Float64(-fma(z, x, Float64(fma(fma(Float64(-z), c, Float64(i * a)), b, Float64(fma(Float64(-a), x, Float64(j * c)) * t)) / y)))));
    	end
    	return 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[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, 5e+295], t$95$1, N[((-y) * N[(j * i + (-N[(z * x + N[(N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision])), $MachinePrecision]), $MachinePrecision]]]
    
    \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) + j \cdot \left(c \cdot t - i \cdot y\right)\\
    \mathbf{if}\;t\_1 \leq 5 \cdot 10^{+295}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{else}:\\
    \;\;\;\;\left(-y\right) \cdot \mathsf{fma}\left(j, i, -\mathsf{fma}\left(z, x, \frac{\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot a\right), b, \mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\right)}{y}\right)\right)\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < 4.99999999999999991e295

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

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

      1. Initial program 45.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}{-1 \cdot \left(y \cdot \left(-1 \cdot \left(x \cdot z\right) + \left(-1 \cdot \frac{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right)}{y} + i \cdot j\right)\right)\right)} \]
      4. Applied rewrites73.4%

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

    Alternative 3: 77.2% accurate, 0.9× speedup?

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

      1. Initial program 76.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -8.5000000000000004e66 < j < 1.39999999999999987e129

      1. Initial program 75.2%

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

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

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

      if 1.39999999999999987e129 < j

      1. Initial program 69.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 4: 65.8% accurate, 1.0× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.8 \cdot 10^{+199}:\\ \;\;\;\;\left(\mathsf{fma}\left(-b, \frac{c}{y}, x\right) \cdot z\right) \cdot y\\ \mathbf{elif}\;z \leq -5.3 \cdot 10^{+73}:\\ \;\;\;\;\mathsf{fma}\left(\left(-c\right) \cdot z, b, \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\right)\\ \mathbf{elif}\;z \leq 8.8 \cdot 10^{+36}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot t\right), j, \mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\right)\\ \mathbf{elif}\;z \leq 3.8 \cdot 10^{+236}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, j, b \cdot a\right), i, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b\\ \end{array} \end{array} \]
    (FPCore (x y z t a b c i j)
     :precision binary64
     (if (<= z -1.8e+199)
       (* (* (fma (- b) (/ c y) x) z) y)
       (if (<= z -5.3e+73)
         (fma (* (- c) z) b (* (fma (- j) i (* z x)) y))
         (if (<= z 8.8e+36)
           (fma (fma (- i) y (* c t)) j (* (fma (- x) t (* i b)) a))
           (if (<= z 3.8e+236)
             (fma (fma (- y) j (* b a)) i (* (fma (- a) t (* z y)) x))
             (* (fma (- z) c (* i a)) b))))))
    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
    	double tmp;
    	if (z <= -1.8e+199) {
    		tmp = (fma(-b, (c / y), x) * z) * y;
    	} else if (z <= -5.3e+73) {
    		tmp = fma((-c * z), b, (fma(-j, i, (z * x)) * y));
    	} else if (z <= 8.8e+36) {
    		tmp = fma(fma(-i, y, (c * t)), j, (fma(-x, t, (i * b)) * a));
    	} else if (z <= 3.8e+236) {
    		tmp = fma(fma(-y, j, (b * a)), i, (fma(-a, t, (z * y)) * x));
    	} else {
    		tmp = fma(-z, c, (i * a)) * b;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a, b, c, i, j)
    	tmp = 0.0
    	if (z <= -1.8e+199)
    		tmp = Float64(Float64(fma(Float64(-b), Float64(c / y), x) * z) * y);
    	elseif (z <= -5.3e+73)
    		tmp = fma(Float64(Float64(-c) * z), b, Float64(fma(Float64(-j), i, Float64(z * x)) * y));
    	elseif (z <= 8.8e+36)
    		tmp = fma(fma(Float64(-i), y, Float64(c * t)), j, Float64(fma(Float64(-x), t, Float64(i * b)) * a));
    	elseif (z <= 3.8e+236)
    		tmp = fma(fma(Float64(-y), j, Float64(b * a)), i, Float64(fma(Float64(-a), t, Float64(z * y)) * x));
    	else
    		tmp = Float64(fma(Float64(-z), c, Float64(i * a)) * b);
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -1.8e+199], N[(N[(N[((-b) * N[(c / y), $MachinePrecision] + x), $MachinePrecision] * z), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[z, -5.3e+73], N[(N[((-c) * z), $MachinePrecision] * b + N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.8e+36], N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.8e+236], N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;z \leq -1.8 \cdot 10^{+199}:\\
    \;\;\;\;\left(\mathsf{fma}\left(-b, \frac{c}{y}, x\right) \cdot z\right) \cdot y\\
    
    \mathbf{elif}\;z \leq -5.3 \cdot 10^{+73}:\\
    \;\;\;\;\mathsf{fma}\left(\left(-c\right) \cdot z, b, \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\right)\\
    
    \mathbf{elif}\;z \leq 8.8 \cdot 10^{+36}:\\
    \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot t\right), j, \mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\right)\\
    
    \mathbf{elif}\;z \leq 3.8 \cdot 10^{+236}:\\
    \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, j, b \cdot a\right), i, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;\mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 5 regimes
    2. if z < -1.80000000000000001e199

      1. Initial program 45.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}{-1 \cdot \left(y \cdot \left(-1 \cdot \left(x \cdot z\right) + \left(-1 \cdot \frac{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right)}{y} + i \cdot j\right)\right)\right)} \]
      4. Applied rewrites72.7%

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

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

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

        if -1.80000000000000001e199 < z < -5.29999999999999996e73

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -5.29999999999999996e73 < z < 8.80000000000000002e36

          1. Initial program 81.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

          if 8.80000000000000002e36 < z < 3.79999999999999986e236

          1. Initial program 76.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if 3.79999999999999986e236 < z

          1. Initial program 72.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 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. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

        Alternative 5: 68.2% accurate, 1.1× speedup?

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

          1. Initial program 45.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}{-1 \cdot \left(y \cdot \left(-1 \cdot \left(x \cdot z\right) + \left(-1 \cdot \frac{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right)}{y} + i \cdot j\right)\right)\right)} \]
          4. Applied rewrites72.7%

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

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

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

            if -1.80000000000000001e199 < z < -5.29999999999999996e73 or 1.90000000000000012e36 < z

            1. Initial program 72.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if -5.29999999999999996e73 < z < 1.90000000000000012e36

              1. Initial program 81.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            Alternative 6: 58.8% accurate, 1.1× speedup?

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

              1. Initial program 45.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}{-1 \cdot \left(y \cdot \left(-1 \cdot \left(x \cdot z\right) + \left(-1 \cdot \frac{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right)}{y} + i \cdot j\right)\right)\right)} \]
              4. Applied rewrites72.7%

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

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

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

                if -1.80000000000000001e199 < z < -7.9999999999999994e-40 or 2.6e31 < z

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if -7.9999999999999994e-40 < z < 1.05e-166

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

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

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

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

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

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

                  if 1.05e-166 < z < 2.6e31

                  1. Initial program 82.5%

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

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

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

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

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

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

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

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

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

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

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

                Alternative 7: 68.8% accurate, 1.2× speedup?

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

                  1. Initial program 54.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}{-1 \cdot \left(y \cdot \left(-1 \cdot \left(x \cdot z\right) + \left(-1 \cdot \frac{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right)}{y} + i \cdot j\right)\right)\right)} \]
                  4. Applied rewrites71.5%

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

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

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

                    if -5.29999999999999996e73 < z < 2.6e31

                    1. Initial program 81.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if 2.6e31 < z

                    1. Initial program 75.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  Alternative 8: 68.9% accurate, 1.2× speedup?

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

                    1. Initial program 69.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if -1.46000000000000005e-40 < z < 2.6e31

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  Alternative 9: 59.4% accurate, 1.2× speedup?

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

                    1. Initial program 73.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 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. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

                    if -3.9e21 < c < 1.81999999999999993e-177

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if 1.81999999999999993e-177 < c < 2.44999999999999998e89

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      Alternative 10: 29.7% accurate, 1.2× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(c \cdot t\right) \cdot j\\ t_2 := \left(\left(-z\right) \cdot b\right) \cdot c\\ \mathbf{if}\;z \leq -2.35 \cdot 10^{+67}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;z \leq -8.5 \cdot 10^{-94}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{elif}\;z \leq 8.2 \cdot 10^{-167}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 6.1 \cdot 10^{-77}:\\ \;\;\;\;\left(-x\right) \cdot \left(a \cdot t\right)\\ \mathbf{elif}\;z \leq 7.5 \cdot 10^{+56}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 3.8 \cdot 10^{+236}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                      (FPCore (x y z t a b c i j)
                       :precision binary64
                       (let* ((t_1 (* (* c t) j)) (t_2 (* (* (- z) b) c)))
                         (if (<= z -2.35e+67)
                           t_2
                           (if (<= z -8.5e-94)
                             (* (* i b) a)
                             (if (<= z 8.2e-167)
                               t_1
                               (if (<= z 6.1e-77)
                                 (* (- x) (* a t))
                                 (if (<= z 7.5e+56) t_1 (if (<= z 3.8e+236) (* (* z y) x) 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 = (c * t) * j;
                      	double t_2 = (-z * b) * c;
                      	double tmp;
                      	if (z <= -2.35e+67) {
                      		tmp = t_2;
                      	} else if (z <= -8.5e-94) {
                      		tmp = (i * b) * a;
                      	} else if (z <= 8.2e-167) {
                      		tmp = t_1;
                      	} else if (z <= 6.1e-77) {
                      		tmp = -x * (a * t);
                      	} else if (z <= 7.5e+56) {
                      		tmp = t_1;
                      	} else if (z <= 3.8e+236) {
                      		tmp = (z * y) * x;
                      	} 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 = (c * t) * j
                          t_2 = (-z * b) * c
                          if (z <= (-2.35d+67)) then
                              tmp = t_2
                          else if (z <= (-8.5d-94)) then
                              tmp = (i * b) * a
                          else if (z <= 8.2d-167) then
                              tmp = t_1
                          else if (z <= 6.1d-77) then
                              tmp = -x * (a * t)
                          else if (z <= 7.5d+56) then
                              tmp = t_1
                          else if (z <= 3.8d+236) then
                              tmp = (z * y) * x
                          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 = (c * t) * j;
                      	double t_2 = (-z * b) * c;
                      	double tmp;
                      	if (z <= -2.35e+67) {
                      		tmp = t_2;
                      	} else if (z <= -8.5e-94) {
                      		tmp = (i * b) * a;
                      	} else if (z <= 8.2e-167) {
                      		tmp = t_1;
                      	} else if (z <= 6.1e-77) {
                      		tmp = -x * (a * t);
                      	} else if (z <= 7.5e+56) {
                      		tmp = t_1;
                      	} else if (z <= 3.8e+236) {
                      		tmp = (z * y) * x;
                      	} else {
                      		tmp = t_2;
                      	}
                      	return tmp;
                      }
                      
                      def code(x, y, z, t, a, b, c, i, j):
                      	t_1 = (c * t) * j
                      	t_2 = (-z * b) * c
                      	tmp = 0
                      	if z <= -2.35e+67:
                      		tmp = t_2
                      	elif z <= -8.5e-94:
                      		tmp = (i * b) * a
                      	elif z <= 8.2e-167:
                      		tmp = t_1
                      	elif z <= 6.1e-77:
                      		tmp = -x * (a * t)
                      	elif z <= 7.5e+56:
                      		tmp = t_1
                      	elif z <= 3.8e+236:
                      		tmp = (z * y) * x
                      	else:
                      		tmp = t_2
                      	return tmp
                      
                      function code(x, y, z, t, a, b, c, i, j)
                      	t_1 = Float64(Float64(c * t) * j)
                      	t_2 = Float64(Float64(Float64(-z) * b) * c)
                      	tmp = 0.0
                      	if (z <= -2.35e+67)
                      		tmp = t_2;
                      	elseif (z <= -8.5e-94)
                      		tmp = Float64(Float64(i * b) * a);
                      	elseif (z <= 8.2e-167)
                      		tmp = t_1;
                      	elseif (z <= 6.1e-77)
                      		tmp = Float64(Float64(-x) * Float64(a * t));
                      	elseif (z <= 7.5e+56)
                      		tmp = t_1;
                      	elseif (z <= 3.8e+236)
                      		tmp = Float64(Float64(z * y) * x);
                      	else
                      		tmp = t_2;
                      	end
                      	return tmp
                      end
                      
                      function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                      	t_1 = (c * t) * j;
                      	t_2 = (-z * b) * c;
                      	tmp = 0.0;
                      	if (z <= -2.35e+67)
                      		tmp = t_2;
                      	elseif (z <= -8.5e-94)
                      		tmp = (i * b) * a;
                      	elseif (z <= 8.2e-167)
                      		tmp = t_1;
                      	elseif (z <= 6.1e-77)
                      		tmp = -x * (a * t);
                      	elseif (z <= 7.5e+56)
                      		tmp = t_1;
                      	elseif (z <= 3.8e+236)
                      		tmp = (z * y) * x;
                      	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[(c * t), $MachinePrecision] * j), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-z) * b), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[z, -2.35e+67], t$95$2, If[LessEqual[z, -8.5e-94], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[z, 8.2e-167], t$95$1, If[LessEqual[z, 6.1e-77], N[((-x) * N[(a * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.5e+56], t$95$1, If[LessEqual[z, 3.8e+236], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], t$95$2]]]]]]]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      t_1 := \left(c \cdot t\right) \cdot j\\
                      t_2 := \left(\left(-z\right) \cdot b\right) \cdot c\\
                      \mathbf{if}\;z \leq -2.35 \cdot 10^{+67}:\\
                      \;\;\;\;t\_2\\
                      
                      \mathbf{elif}\;z \leq -8.5 \cdot 10^{-94}:\\
                      \;\;\;\;\left(i \cdot b\right) \cdot a\\
                      
                      \mathbf{elif}\;z \leq 8.2 \cdot 10^{-167}:\\
                      \;\;\;\;t\_1\\
                      
                      \mathbf{elif}\;z \leq 6.1 \cdot 10^{-77}:\\
                      \;\;\;\;\left(-x\right) \cdot \left(a \cdot t\right)\\
                      
                      \mathbf{elif}\;z \leq 7.5 \cdot 10^{+56}:\\
                      \;\;\;\;t\_1\\
                      
                      \mathbf{elif}\;z \leq 3.8 \cdot 10^{+236}:\\
                      \;\;\;\;\left(z \cdot y\right) \cdot x\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;t\_2\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 5 regimes
                      2. if z < -2.35000000000000009e67 or 3.79999999999999986e236 < z

                        1. Initial program 59.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. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                          if -2.35000000000000009e67 < z < -8.50000000000000003e-94

                          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 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. fp-cancel-sub-sign-invN/A

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

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

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

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

                              \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + 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-*.f6437.2

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

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

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

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

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

                              if -8.50000000000000003e-94 < z < 8.20000000000000036e-167 or 6.1000000000000002e-77 < z < 7.4999999999999999e56

                              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 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. associate-*r*N/A

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

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

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

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

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

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

                                \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, 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 rewrites43.5%

                                  \[\leadsto \left(j \cdot t\right) \cdot \color{blue}{c} \]
                                2. Step-by-step derivation
                                  1. Applied rewrites45.1%

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

                                  if 8.20000000000000036e-167 < z < 6.1000000000000002e-77

                                  1. Initial program 93.9%

                                    \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                  2. Add Preprocessing
                                  3. Taylor expanded in 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. associate-*r*N/A

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

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

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

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

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

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

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, 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 rewrites8.8%

                                      \[\leadsto \left(j \cdot t\right) \cdot \color{blue}{c} \]
                                    2. Taylor expanded in x around inf

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

                                        \[\leadsto \left(-x\right) \cdot \color{blue}{\left(a \cdot t\right)} \]

                                      if 7.4999999999999999e56 < z < 3.79999999999999986e236

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \left(z \cdot y\right) \cdot \color{blue}{x} \]
                                      8. Recombined 5 regimes into one program.
                                      9. Final simplification46.9%

                                        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.35 \cdot 10^{+67}:\\ \;\;\;\;\left(\left(-z\right) \cdot b\right) \cdot c\\ \mathbf{elif}\;z \leq -8.5 \cdot 10^{-94}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{elif}\;z \leq 8.2 \cdot 10^{-167}:\\ \;\;\;\;\left(c \cdot t\right) \cdot j\\ \mathbf{elif}\;z \leq 6.1 \cdot 10^{-77}:\\ \;\;\;\;\left(-x\right) \cdot \left(a \cdot t\right)\\ \mathbf{elif}\;z \leq 7.5 \cdot 10^{+56}:\\ \;\;\;\;\left(c \cdot t\right) \cdot j\\ \mathbf{elif}\;z \leq 3.8 \cdot 10^{+236}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-z\right) \cdot b\right) \cdot c\\ \end{array} \]
                                      10. Add Preprocessing

                                      Alternative 11: 29.9% accurate, 1.2× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(c \cdot t\right) \cdot j\\ t_2 := \left(-b\right) \cdot \left(c \cdot z\right)\\ \mathbf{if}\;z \leq -2.35 \cdot 10^{+67}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;z \leq -8.5 \cdot 10^{-94}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{elif}\;z \leq 8.2 \cdot 10^{-167}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 6.1 \cdot 10^{-77}:\\ \;\;\;\;\left(-x\right) \cdot \left(a \cdot t\right)\\ \mathbf{elif}\;z \leq 7.5 \cdot 10^{+56}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.7 \cdot 10^{+236}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                                      (FPCore (x y z t a b c i j)
                                       :precision binary64
                                       (let* ((t_1 (* (* c t) j)) (t_2 (* (- b) (* c z))))
                                         (if (<= z -2.35e+67)
                                           t_2
                                           (if (<= z -8.5e-94)
                                             (* (* i b) a)
                                             (if (<= z 8.2e-167)
                                               t_1
                                               (if (<= z 6.1e-77)
                                                 (* (- x) (* a t))
                                                 (if (<= z 7.5e+56) t_1 (if (<= z 1.7e+236) (* (* z y) x) 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 = (c * t) * j;
                                      	double t_2 = -b * (c * z);
                                      	double tmp;
                                      	if (z <= -2.35e+67) {
                                      		tmp = t_2;
                                      	} else if (z <= -8.5e-94) {
                                      		tmp = (i * b) * a;
                                      	} else if (z <= 8.2e-167) {
                                      		tmp = t_1;
                                      	} else if (z <= 6.1e-77) {
                                      		tmp = -x * (a * t);
                                      	} else if (z <= 7.5e+56) {
                                      		tmp = t_1;
                                      	} else if (z <= 1.7e+236) {
                                      		tmp = (z * y) * x;
                                      	} 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 = (c * t) * j
                                          t_2 = -b * (c * z)
                                          if (z <= (-2.35d+67)) then
                                              tmp = t_2
                                          else if (z <= (-8.5d-94)) then
                                              tmp = (i * b) * a
                                          else if (z <= 8.2d-167) then
                                              tmp = t_1
                                          else if (z <= 6.1d-77) then
                                              tmp = -x * (a * t)
                                          else if (z <= 7.5d+56) then
                                              tmp = t_1
                                          else if (z <= 1.7d+236) then
                                              tmp = (z * y) * x
                                          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 = (c * t) * j;
                                      	double t_2 = -b * (c * z);
                                      	double tmp;
                                      	if (z <= -2.35e+67) {
                                      		tmp = t_2;
                                      	} else if (z <= -8.5e-94) {
                                      		tmp = (i * b) * a;
                                      	} else if (z <= 8.2e-167) {
                                      		tmp = t_1;
                                      	} else if (z <= 6.1e-77) {
                                      		tmp = -x * (a * t);
                                      	} else if (z <= 7.5e+56) {
                                      		tmp = t_1;
                                      	} else if (z <= 1.7e+236) {
                                      		tmp = (z * y) * x;
                                      	} else {
                                      		tmp = t_2;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      def code(x, y, z, t, a, b, c, i, j):
                                      	t_1 = (c * t) * j
                                      	t_2 = -b * (c * z)
                                      	tmp = 0
                                      	if z <= -2.35e+67:
                                      		tmp = t_2
                                      	elif z <= -8.5e-94:
                                      		tmp = (i * b) * a
                                      	elif z <= 8.2e-167:
                                      		tmp = t_1
                                      	elif z <= 6.1e-77:
                                      		tmp = -x * (a * t)
                                      	elif z <= 7.5e+56:
                                      		tmp = t_1
                                      	elif z <= 1.7e+236:
                                      		tmp = (z * y) * x
                                      	else:
                                      		tmp = t_2
                                      	return tmp
                                      
                                      function code(x, y, z, t, a, b, c, i, j)
                                      	t_1 = Float64(Float64(c * t) * j)
                                      	t_2 = Float64(Float64(-b) * Float64(c * z))
                                      	tmp = 0.0
                                      	if (z <= -2.35e+67)
                                      		tmp = t_2;
                                      	elseif (z <= -8.5e-94)
                                      		tmp = Float64(Float64(i * b) * a);
                                      	elseif (z <= 8.2e-167)
                                      		tmp = t_1;
                                      	elseif (z <= 6.1e-77)
                                      		tmp = Float64(Float64(-x) * Float64(a * t));
                                      	elseif (z <= 7.5e+56)
                                      		tmp = t_1;
                                      	elseif (z <= 1.7e+236)
                                      		tmp = Float64(Float64(z * y) * x);
                                      	else
                                      		tmp = t_2;
                                      	end
                                      	return tmp
                                      end
                                      
                                      function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                      	t_1 = (c * t) * j;
                                      	t_2 = -b * (c * z);
                                      	tmp = 0.0;
                                      	if (z <= -2.35e+67)
                                      		tmp = t_2;
                                      	elseif (z <= -8.5e-94)
                                      		tmp = (i * b) * a;
                                      	elseif (z <= 8.2e-167)
                                      		tmp = t_1;
                                      	elseif (z <= 6.1e-77)
                                      		tmp = -x * (a * t);
                                      	elseif (z <= 7.5e+56)
                                      		tmp = t_1;
                                      	elseif (z <= 1.7e+236)
                                      		tmp = (z * y) * x;
                                      	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[(c * t), $MachinePrecision] * j), $MachinePrecision]}, Block[{t$95$2 = N[((-b) * N[(c * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.35e+67], t$95$2, If[LessEqual[z, -8.5e-94], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[z, 8.2e-167], t$95$1, If[LessEqual[z, 6.1e-77], N[((-x) * N[(a * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.5e+56], t$95$1, If[LessEqual[z, 1.7e+236], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], t$95$2]]]]]]]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      t_1 := \left(c \cdot t\right) \cdot j\\
                                      t_2 := \left(-b\right) \cdot \left(c \cdot z\right)\\
                                      \mathbf{if}\;z \leq -2.35 \cdot 10^{+67}:\\
                                      \;\;\;\;t\_2\\
                                      
                                      \mathbf{elif}\;z \leq -8.5 \cdot 10^{-94}:\\
                                      \;\;\;\;\left(i \cdot b\right) \cdot a\\
                                      
                                      \mathbf{elif}\;z \leq 8.2 \cdot 10^{-167}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      \mathbf{elif}\;z \leq 6.1 \cdot 10^{-77}:\\
                                      \;\;\;\;\left(-x\right) \cdot \left(a \cdot t\right)\\
                                      
                                      \mathbf{elif}\;z \leq 7.5 \cdot 10^{+56}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      \mathbf{elif}\;z \leq 1.7 \cdot 10^{+236}:\\
                                      \;\;\;\;\left(z \cdot y\right) \cdot x\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;t\_2\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 5 regimes
                                      2. if z < -2.35000000000000009e67 or 1.70000000000000003e236 < z

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            if -2.35000000000000009e67 < z < -8.50000000000000003e-94

                                            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 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. fp-cancel-sub-sign-invN/A

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

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

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

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

                                                \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + 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-*.f6437.2

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

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

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

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

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

                                                if -8.50000000000000003e-94 < z < 8.20000000000000036e-167 or 6.1000000000000002e-77 < z < 7.4999999999999999e56

                                                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 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. associate-*r*N/A

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

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

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

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

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

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

                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, 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 rewrites43.5%

                                                    \[\leadsto \left(j \cdot t\right) \cdot \color{blue}{c} \]
                                                  2. Step-by-step derivation
                                                    1. Applied rewrites45.1%

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

                                                    if 8.20000000000000036e-167 < z < 6.1000000000000002e-77

                                                    1. Initial program 93.9%

                                                      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                    2. Add Preprocessing
                                                    3. Taylor expanded in 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. associate-*r*N/A

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

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

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

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

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

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

                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, 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 rewrites8.8%

                                                        \[\leadsto \left(j \cdot t\right) \cdot \color{blue}{c} \]
                                                      2. Taylor expanded in x around inf

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

                                                          \[\leadsto \left(-x\right) \cdot \color{blue}{\left(a \cdot t\right)} \]

                                                        if 7.4999999999999999e56 < z < 1.70000000000000003e236

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                            \[\leadsto \left(z \cdot y\right) \cdot \color{blue}{x} \]
                                                        8. Recombined 5 regimes into one program.
                                                        9. Final simplification46.5%

                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.35 \cdot 10^{+67}:\\ \;\;\;\;\left(-b\right) \cdot \left(c \cdot z\right)\\ \mathbf{elif}\;z \leq -8.5 \cdot 10^{-94}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{elif}\;z \leq 8.2 \cdot 10^{-167}:\\ \;\;\;\;\left(c \cdot t\right) \cdot j\\ \mathbf{elif}\;z \leq 6.1 \cdot 10^{-77}:\\ \;\;\;\;\left(-x\right) \cdot \left(a \cdot t\right)\\ \mathbf{elif}\;z \leq 7.5 \cdot 10^{+56}:\\ \;\;\;\;\left(c \cdot t\right) \cdot j\\ \mathbf{elif}\;z \leq 1.7 \cdot 10^{+236}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(-b\right) \cdot \left(c \cdot z\right)\\ \end{array} \]
                                                        10. Add Preprocessing

                                                        Alternative 12: 42.8% accurate, 1.2× speedup?

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

                                                          1. Initial program 69.5%

                                                            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                          2. Add Preprocessing
                                                          3. Taylor expanded in 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. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i} \]
                                                          6. Step-by-step derivation
                                                            1. Applied rewrites51.8%

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

                                                            if -1.39999999999999998e-5 < i < -3.8000000000000001e-89 or -3.90000000000000016e-291 < i < 7.5000000000000006e-307

                                                            1. Initial program 77.9%

                                                              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                            2. Add Preprocessing
                                                            3. Taylor expanded in 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. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                              if -3.8000000000000001e-89 < i < -3.90000000000000016e-291

                                                              1. Initial program 76.8%

                                                                \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                              2. Add Preprocessing
                                                              3. Taylor expanded in 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. associate-*r*N/A

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

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

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

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

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

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

                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, 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 rewrites48.9%

                                                                  \[\leadsto \left(j \cdot t\right) \cdot \color{blue}{c} \]
                                                                2. Step-by-step derivation
                                                                  1. Applied rewrites51.1%

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

                                                                  if 7.5000000000000006e-307 < i < 3.9999999999999997e-129

                                                                  1. Initial program 90.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 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. associate-*r*N/A

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

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

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

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

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

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

                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, 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 rewrites26.1%

                                                                      \[\leadsto \left(j \cdot t\right) \cdot \color{blue}{c} \]
                                                                    2. Taylor expanded in x around inf

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

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

                                                                    Alternative 13: 58.5% accurate, 1.5× speedup?

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

                                                                      1. Initial program 72.3%

                                                                        \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                                      2. Add Preprocessing
                                                                      3. Taylor expanded in 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. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

                                                                      if -3.9e21 < c < 7.50000000000000019e-59

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                      Alternative 14: 52.2% accurate, 1.5× speedup?

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

                                                                        1. Initial program 71.9%

                                                                          \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                                        2. Add Preprocessing
                                                                        3. Taylor expanded in 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. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

                                                                        if -4.3999999999999997e27 < c < -4.49999999999999962e-276

                                                                        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 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. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(\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-*.f6456.7

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

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

                                                                        if -4.49999999999999962e-276 < c < 6.80000000000000035e-59

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                          Alternative 15: 52.6% accurate, 1.6× speedup?

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

                                                                            1. Initial program 73.7%

                                                                              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                                            2. Add Preprocessing
                                                                            3. Taylor expanded in 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. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

                                                                            if -4.3999999999999997e27 < c < -1.11999999999999997e-271

                                                                            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 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. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(\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-*.f6456.7

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

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

                                                                            if -1.11999999999999997e-271 < c < 3400

                                                                            1. Initial program 69.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                          Alternative 16: 51.4% accurate, 1.6× speedup?

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

                                                                            1. Initial program 68.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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

                                                                            if -7.9999999999999994e-40 < z < -4.09999999999999986e-246

                                                                            1. Initial program 76.3%

                                                                              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                                            2. Add Preprocessing
                                                                            3. Taylor expanded in a around 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. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(\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-*.f6457.8

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

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

                                                                            if -4.09999999999999986e-246 < z < 1.02000000000000003e71

                                                                            1. Initial program 82.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. associate-*r*N/A

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

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

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

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

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

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

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

                                                                          Alternative 17: 51.9% accurate, 2.0× speedup?

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

                                                                            1. Initial program 62.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                            if -2.55e116 < z < 1.02000000000000003e71

                                                                            1. Initial program 80.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. associate-*r*N/A

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

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

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

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

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

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

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

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

                                                                          Alternative 18: 51.9% accurate, 2.0× speedup?

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

                                                                            1. Initial program 69.8%

                                                                              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                                            2. Add Preprocessing
                                                                            3. Taylor expanded in 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. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i} \]
                                                                            6. Step-by-step derivation
                                                                              1. Applied rewrites55.7%

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

                                                                              if -4.3e20 < i < 1.99999999999999992e-74

                                                                              1. Initial program 80.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 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. associate-*r*N/A

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

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

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

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

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

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

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

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

                                                                            Alternative 19: 30.7% accurate, 2.0× speedup?

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

                                                                              1. Initial program 76.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. associate-*r*N/A

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

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

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

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

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

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

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

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

                                                                                  \[\leadsto \left(-a\right) \cdot \color{blue}{\left(t \cdot x\right)} \]

                                                                                if -7.9999999999999999e52 < x < 1.8999999999999999e-126

                                                                                1. Initial program 74.2%

                                                                                  \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                                                2. Add Preprocessing
                                                                                3. Taylor expanded in t around 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. associate-*r*N/A

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

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

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

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

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

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

                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, 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 rewrites38.2%

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

                                                                                  if 1.8999999999999999e-126 < x < 1.65e28

                                                                                  1. Initial program 69.8%

                                                                                    \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                                                  2. Add Preprocessing
                                                                                  3. Taylor expanded in 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. fp-cancel-sub-sign-invN/A

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

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

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

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

                                                                                      \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + 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-*.f6436.5

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

                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i} \]
                                                                                  6. Step-by-step derivation
                                                                                    1. Applied rewrites36.5%

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

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

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

                                                                                    Alternative 20: 28.7% accurate, 2.1× speedup?

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

                                                                                      1. Initial program 70.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. fp-cancel-sub-sign-invN/A

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

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

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

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

                                                                                          \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + 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.7

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

                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i} \]
                                                                                      6. Step-by-step derivation
                                                                                        1. Applied rewrites61.7%

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

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

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

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

                                                                                            if -4.29999999999999985e188 < a < -4.2999999999999999e85

                                                                                            1. Initial program 75.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                              if -4.2999999999999999e85 < a < 9.7999999999999998e73

                                                                                              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 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. associate-*r*N/A

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

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

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

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

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

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

                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, 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 rewrites32.1%

                                                                                                  \[\leadsto \left(j \cdot t\right) \cdot \color{blue}{c} \]
                                                                                                2. Step-by-step derivation
                                                                                                  1. Applied rewrites33.8%

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

                                                                                                  if 9.7999999999999998e73 < a

                                                                                                  1. Initial program 64.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. fp-cancel-sub-sign-invN/A

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

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

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

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

                                                                                                      \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + 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-*.f6447.3

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

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

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

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

                                                                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -4.3 \cdot 10^{+188}:\\ \;\;\;\;\left(a \cdot i\right) \cdot b\\ \mathbf{elif}\;a \leq -4.3 \cdot 10^{+85}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{elif}\;a \leq 9.8 \cdot 10^{+73}:\\ \;\;\;\;\left(c \cdot t\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;\left(b \cdot a\right) \cdot i\\ \end{array} \]
                                                                                                  10. Add Preprocessing

                                                                                                  Alternative 21: 29.4% accurate, 2.4× speedup?

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

                                                                                                    1. Initial program 67.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 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. associate-*r*N/A

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

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

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

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

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

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

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

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

                                                                                                        \[\leadsto \left(-a\right) \cdot \color{blue}{\left(t \cdot x\right)} \]

                                                                                                      if -7.9999999999999999e52 < x < 1.1e-133

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

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

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

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

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

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

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

                                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, 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 rewrites38.7%

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

                                                                                                        if 1.1e-133 < x

                                                                                                        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 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. associate-*r*N/A

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

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

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

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

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

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

                                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, 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 rewrites21.9%

                                                                                                            \[\leadsto \left(j \cdot t\right) \cdot \color{blue}{c} \]
                                                                                                          2. Taylor expanded in x around inf

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

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

                                                                                                          Alternative 22: 29.7% accurate, 2.6× speedup?

                                                                                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.42 \cdot 10^{-105} \lor \neg \left(t \leq 3.3 \cdot 10^{+81}\right):\\ \;\;\;\;\left(c \cdot t\right) \cdot j\\ \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 (<= t -1.42e-105) (not (<= t 3.3e+81))) (* (* c t) j) (* (* 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 ((t <= -1.42e-105) || !(t <= 3.3e+81)) {
                                                                                                          		tmp = (c * t) * j;
                                                                                                          	} 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 ((t <= (-1.42d-105)) .or. (.not. (t <= 3.3d+81))) then
                                                                                                                  tmp = (c * t) * j
                                                                                                              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 ((t <= -1.42e-105) || !(t <= 3.3e+81)) {
                                                                                                          		tmp = (c * t) * j;
                                                                                                          	} else {
                                                                                                          		tmp = (i * b) * a;
                                                                                                          	}
                                                                                                          	return tmp;
                                                                                                          }
                                                                                                          
                                                                                                          def code(x, y, z, t, a, b, c, i, j):
                                                                                                          	tmp = 0
                                                                                                          	if (t <= -1.42e-105) or not (t <= 3.3e+81):
                                                                                                          		tmp = (c * t) * j
                                                                                                          	else:
                                                                                                          		tmp = (i * b) * a
                                                                                                          	return tmp
                                                                                                          
                                                                                                          function code(x, y, z, t, a, b, c, i, j)
                                                                                                          	tmp = 0.0
                                                                                                          	if ((t <= -1.42e-105) || !(t <= 3.3e+81))
                                                                                                          		tmp = Float64(Float64(c * t) * j);
                                                                                                          	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 ((t <= -1.42e-105) || ~((t <= 3.3e+81)))
                                                                                                          		tmp = (c * t) * j;
                                                                                                          	else
                                                                                                          		tmp = (i * b) * a;
                                                                                                          	end
                                                                                                          	tmp_2 = tmp;
                                                                                                          end
                                                                                                          
                                                                                                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -1.42e-105], N[Not[LessEqual[t, 3.3e+81]], $MachinePrecision]], N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision]]
                                                                                                          
                                                                                                          \begin{array}{l}
                                                                                                          
                                                                                                          \\
                                                                                                          \begin{array}{l}
                                                                                                          \mathbf{if}\;t \leq -1.42 \cdot 10^{-105} \lor \neg \left(t \leq 3.3 \cdot 10^{+81}\right):\\
                                                                                                          \;\;\;\;\left(c \cdot t\right) \cdot j\\
                                                                                                          
                                                                                                          \mathbf{else}:\\
                                                                                                          \;\;\;\;\left(i \cdot b\right) \cdot a\\
                                                                                                          
                                                                                                          
                                                                                                          \end{array}
                                                                                                          \end{array}
                                                                                                          
                                                                                                          Derivation
                                                                                                          1. Split input into 2 regimes
                                                                                                          2. if t < -1.4199999999999999e-105 or 3.3e81 < t

                                                                                                            1. Initial program 69.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. associate-*r*N/A

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

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

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

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

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

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

                                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, 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 rewrites37.1%

                                                                                                                \[\leadsto \left(j \cdot t\right) \cdot \color{blue}{c} \]
                                                                                                              2. Step-by-step derivation
                                                                                                                1. Applied rewrites40.2%

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

                                                                                                                if -1.4199999999999999e-105 < t < 3.3e81

                                                                                                                1. Initial program 81.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. fp-cancel-sub-sign-invN/A

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

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

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

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

                                                                                                                    \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + 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-*.f6445.5

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

                                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i} \]
                                                                                                                6. Step-by-step derivation
                                                                                                                  1. Applied rewrites45.6%

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

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

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

                                                                                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.42 \cdot 10^{-105} \lor \neg \left(t \leq 3.3 \cdot 10^{+81}\right):\\ \;\;\;\;\left(c \cdot t\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \end{array} \]
                                                                                                                  6. Add Preprocessing

                                                                                                                  Alternative 23: 22.0% accurate, 5.5× speedup?

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

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

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

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

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

                                                                                                                      \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + 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-*.f6435.5

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

                                                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i} \]
                                                                                                                  6. Step-by-step derivation
                                                                                                                    1. Applied rewrites35.6%

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

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

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

                                                                                                                      Alternative 24: 21.9% accurate, 5.5× speedup?

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

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

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

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

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

                                                                                                                          \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + 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-*.f6435.5

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

                                                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i} \]
                                                                                                                      6. Step-by-step derivation
                                                                                                                        1. Applied rewrites35.6%

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

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

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

                                                                                                                              \[\leadsto \left(a \cdot i\right) \cdot b \]
                                                                                                                            2. Add Preprocessing

                                                                                                                            Developer Target 1: 68.2% 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 2024337 
                                                                                                                            (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)))))