Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, E

Percentage Accurate: 85.5% → 92.6%
Time: 35.1s
Alternatives: 20
Speedup: 1.0×

Specification

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

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

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

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

Alternative 1: 92.6% accurate, 0.4× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := \left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - t \cdot \left(a \cdot 4\right)\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\\ \mathbf{if}\;t\_1 \leq 4 \cdot 10^{+306}:\\ \;\;\;\;t\_1 - \left(j \cdot 27\right) \cdot k\\ \mathbf{elif}\;t\_1 \leq \infty:\\ \;\;\;\;\mathsf{fma}\left(4, i, z \cdot \left(y \cdot \left(t \cdot -18\right)\right) - \frac{\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, t \cdot a, j \cdot \left(k \cdot -27\right)\right)\right)}{x}\right) \cdot \left(-x\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \mathsf{fma}\left(-4, i, t \cdot \left(18 \cdot \left(y \cdot z\right)\right)\right)\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
 :precision binary64
 (let* ((t_1
         (-
          (+ (- (* (* (* (* x 18.0) y) z) t) (* t (* a 4.0))) (* b c))
          (* (* x 4.0) i))))
   (if (<= t_1 4e+306)
     (- t_1 (* (* j 27.0) k))
     (if (<= t_1 INFINITY)
       (*
        (fma
         4.0
         i
         (-
          (* z (* y (* t -18.0)))
          (/ (fma b c (fma -4.0 (* t a) (* j (* k -27.0)))) x)))
        (- x))
       (* x (fma -4.0 i (* t (* 18.0 (* y z)))))))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = ((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i);
	double tmp;
	if (t_1 <= 4e+306) {
		tmp = t_1 - ((j * 27.0) * k);
	} else if (t_1 <= ((double) INFINITY)) {
		tmp = fma(4.0, i, ((z * (y * (t * -18.0))) - (fma(b, c, fma(-4.0, (t * a), (j * (k * -27.0)))) / x))) * -x;
	} else {
		tmp = x * fma(-4.0, i, (t * (18.0 * (y * z))));
	}
	return tmp;
}
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
function code(x, y, z, t, a, b, c, i, j, k)
	t_1 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(t * Float64(a * 4.0))) + Float64(b * c)) - Float64(Float64(x * 4.0) * i))
	tmp = 0.0
	if (t_1 <= 4e+306)
		tmp = Float64(t_1 - Float64(Float64(j * 27.0) * k));
	elseif (t_1 <= Inf)
		tmp = Float64(fma(4.0, i, Float64(Float64(z * Float64(y * Float64(t * -18.0))) - Float64(fma(b, c, fma(-4.0, Float64(t * a), Float64(j * Float64(k * -27.0)))) / x))) * Float64(-x));
	else
		tmp = Float64(x * fma(-4.0, i, Float64(t * Float64(18.0 * Float64(y * z)))));
	end
	return tmp
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, 4e+306], N[(t$95$1 - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, Infinity], N[(N[(4.0 * i + N[(N[(z * N[(y * N[(t * -18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * c + N[(-4.0 * N[(t * a), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * (-x)), $MachinePrecision], N[(x * N[(-4.0 * i + N[(t * N[(18.0 * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := \left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - t \cdot \left(a \cdot 4\right)\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\\
\mathbf{if}\;t\_1 \leq 4 \cdot 10^{+306}:\\
\;\;\;\;t\_1 - \left(j \cdot 27\right) \cdot k\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) < 4.00000000000000007e306

    1. Initial program 98.2%

      \[\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k \]
    2. Add Preprocessing

    if 4.00000000000000007e306 < (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) < +inf.0

    1. Initial program 72.4%

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

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

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

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

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

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

    if +inf.0 < (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i))

    1. Initial program 0.0%

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

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

        \[\leadsto \color{blue}{x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)} \]
      2. cancel-sign-sub-invN/A

        \[\leadsto x \cdot \color{blue}{\left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) + \left(\mathsf{neg}\left(4\right)\right) \cdot i\right)} \]
      3. metadata-evalN/A

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

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

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

        \[\leadsto x \cdot \mathsf{fma}\left(-4, i, \color{blue}{\left(t \cdot \left(y \cdot z\right)\right) \cdot 18}\right) \]
      7. associate-*l*N/A

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

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

        \[\leadsto x \cdot \mathsf{fma}\left(-4, i, t \cdot \color{blue}{\left(\left(y \cdot z\right) \cdot 18\right)}\right) \]
      10. lower-*.f6473.1

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

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

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

Alternative 2: 93.2% accurate, 0.3× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := \left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - t \cdot \left(a \cdot 4\right)\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\\ \mathbf{if}\;t\_1 \leq 4 \cdot 10^{+306}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_1 \leq \infty:\\ \;\;\;\;\mathsf{fma}\left(j \cdot k, -27, \mathsf{fma}\left(y, \left(x \cdot 18\right) \cdot \left(z \cdot t\right), \mathsf{fma}\left(t, a \cdot -4, \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \mathsf{fma}\left(-4, i, \left(z \cdot t\right) \cdot \left(18 \cdot y\right)\right)\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i j k)
 :precision binary64
 (let* ((t_1
         (-
          (-
           (+ (- (* (* (* (* x 18.0) y) z) t) (* t (* a 4.0))) (* b c))
           (* (* x 4.0) i))
          (* (* j 27.0) k))))
   (if (<= t_1 4e+306)
     t_1
     (if (<= t_1 INFINITY)
       (fma
        (* j k)
        -27.0
        (fma
         y
         (* (* x 18.0) (* z t))
         (fma t (* a -4.0) (fma b c (* x (* i -4.0))))))
       (* x (fma -4.0 i (* (* z t) (* 18.0 y))))))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = (((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
	double tmp;
	if (t_1 <= 4e+306) {
		tmp = t_1;
	} else if (t_1 <= ((double) INFINITY)) {
		tmp = fma((j * k), -27.0, fma(y, ((x * 18.0) * (z * t)), fma(t, (a * -4.0), fma(b, c, (x * (i * -4.0))))));
	} else {
		tmp = x * fma(-4.0, i, ((z * t) * (18.0 * y)));
	}
	return tmp;
}
x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
function code(x, y, z, t, a, b, c, i, j, k)
	t_1 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(t * Float64(a * 4.0))) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k))
	tmp = 0.0
	if (t_1 <= 4e+306)
		tmp = t_1;
	elseif (t_1 <= Inf)
		tmp = fma(Float64(j * k), -27.0, fma(y, Float64(Float64(x * 18.0) * Float64(z * t)), fma(t, Float64(a * -4.0), fma(b, c, Float64(x * Float64(i * -4.0))))));
	else
		tmp = Float64(x * fma(-4.0, i, Float64(Float64(z * t) * Float64(18.0 * y))));
	end
	return tmp
end
NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, 4e+306], t$95$1, If[LessEqual[t$95$1, Infinity], N[(N[(j * k), $MachinePrecision] * -27.0 + N[(y * N[(N[(x * 18.0), $MachinePrecision] * N[(z * t), $MachinePrecision]), $MachinePrecision] + N[(t * N[(a * -4.0), $MachinePrecision] + N[(b * c + N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(-4.0 * i + N[(N[(z * t), $MachinePrecision] * N[(18.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
\\
\begin{array}{l}
t_1 := \left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - t \cdot \left(a \cdot 4\right)\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\\
\mathbf{if}\;t\_1 \leq 4 \cdot 10^{+306}:\\
\;\;\;\;t\_1\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) (*.f64 (*.f64 j #s(literal 27 binary64)) k)) < 4.00000000000000007e306

    1. Initial program 98.7%

      \[\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k \]
    2. Add Preprocessing

    if 4.00000000000000007e306 < (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) (*.f64 (*.f64 j #s(literal 27 binary64)) k)) < +inf.0

    1. Initial program 83.0%

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{k \cdot j}, \mathsf{neg}\left(27\right), \left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) \]
      11. metadata-eval83.0

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

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

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

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

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

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

    if +inf.0 < (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) (*.f64 (*.f64 j #s(literal 27 binary64)) k))

    1. Initial program 0.0%

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

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

        \[\leadsto \color{blue}{x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)} \]
      2. cancel-sign-sub-invN/A

        \[\leadsto x \cdot \color{blue}{\left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) + \left(\mathsf{neg}\left(4\right)\right) \cdot i\right)} \]
      3. metadata-evalN/A

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

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

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

        \[\leadsto x \cdot \mathsf{fma}\left(-4, i, \color{blue}{\left(t \cdot \left(y \cdot z\right)\right) \cdot 18}\right) \]
      7. associate-*l*N/A

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

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

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

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

      \[\leadsto \color{blue}{x \cdot \mathsf{fma}\left(-4, i, t \cdot \left(\left(y \cdot z\right) \cdot 18\right)\right)} \]
    6. Step-by-step derivation
      1. Applied rewrites67.8%

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

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

    Alternative 3: 80.3% accurate, 0.6× speedup?

    \[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} \mathbf{if}\;\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - t \cdot \left(a \cdot 4\right)\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k \leq \infty:\\ \;\;\;\;\mathsf{fma}\left(j \cdot k, -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, a \cdot -4, b \cdot c\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \mathsf{fma}\left(-4, i, \left(z \cdot t\right) \cdot \left(18 \cdot y\right)\right)\\ \end{array} \end{array} \]
    NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
    (FPCore (x y z t a b c i j k)
     :precision binary64
     (if (<=
          (-
           (-
            (+ (- (* (* (* (* x 18.0) y) z) t) (* t (* a 4.0))) (* b c))
            (* (* x 4.0) i))
           (* (* j 27.0) k))
          INFINITY)
       (fma (* j k) -27.0 (fma x (* i -4.0) (fma t (* a -4.0) (* b c))))
       (* x (fma -4.0 i (* (* z t) (* 18.0 y))))))
    assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
    	double tmp;
    	if (((((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)) <= ((double) INFINITY)) {
    		tmp = fma((j * k), -27.0, fma(x, (i * -4.0), fma(t, (a * -4.0), (b * c))));
    	} else {
    		tmp = x * fma(-4.0, i, ((z * t) * (18.0 * y)));
    	}
    	return tmp;
    }
    
    x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
    function code(x, y, z, t, a, b, c, i, j, k)
    	tmp = 0.0
    	if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(t * Float64(a * 4.0))) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k)) <= Inf)
    		tmp = fma(Float64(j * k), -27.0, fma(x, Float64(i * -4.0), fma(t, Float64(a * -4.0), Float64(b * c))));
    	else
    		tmp = Float64(x * fma(-4.0, i, Float64(Float64(z * t) * Float64(18.0 * y))));
    	end
    	return tmp
    end
    
    NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
    code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(j * k), $MachinePrecision] * -27.0 + N[(x * N[(i * -4.0), $MachinePrecision] + N[(t * N[(a * -4.0), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(-4.0 * i + N[(N[(z * t), $MachinePrecision] * N[(18.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
    
    \begin{array}{l}
    [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
    \\
    \begin{array}{l}
    \mathbf{if}\;\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - t \cdot \left(a \cdot 4\right)\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k \leq \infty:\\
    \;\;\;\;\mathsf{fma}\left(j \cdot k, -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, a \cdot -4, b \cdot c\right)\right)\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;x \cdot \mathsf{fma}\left(-4, i, \left(z \cdot t\right) \cdot \left(18 \cdot y\right)\right)\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) (*.f64 (*.f64 j #s(literal 27 binary64)) k)) < +inf.0

      1. Initial program 94.4%

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \mathsf{fma}\left(\color{blue}{k \cdot j}, \mathsf{neg}\left(27\right), \left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) \]
        11. metadata-eval94.4

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(k \cdot j, -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \color{blue}{-4 \cdot a}, b \cdot c\right)\right)\right) \]
      6. Step-by-step derivation
        1. lower-*.f6484.7

          \[\leadsto \mathsf{fma}\left(k \cdot j, -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \color{blue}{-4 \cdot a}, b \cdot c\right)\right)\right) \]
      7. Applied rewrites84.7%

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

      if +inf.0 < (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) (*.f64 (*.f64 j #s(literal 27 binary64)) k))

      1. Initial program 0.0%

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

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

          \[\leadsto \color{blue}{x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)} \]
        2. cancel-sign-sub-invN/A

          \[\leadsto x \cdot \color{blue}{\left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) + \left(\mathsf{neg}\left(4\right)\right) \cdot i\right)} \]
        3. metadata-evalN/A

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

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

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

          \[\leadsto x \cdot \mathsf{fma}\left(-4, i, \color{blue}{\left(t \cdot \left(y \cdot z\right)\right) \cdot 18}\right) \]
        7. associate-*l*N/A

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

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

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

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

        \[\leadsto \color{blue}{x \cdot \mathsf{fma}\left(-4, i, t \cdot \left(\left(y \cdot z\right) \cdot 18\right)\right)} \]
      6. Step-by-step derivation
        1. Applied rewrites67.8%

          \[\leadsto x \cdot \mathsf{fma}\left(-4, i, \left(18 \cdot y\right) \cdot \left(t \cdot z\right)\right) \]
      7. Recombined 2 regimes into one program.
      8. Final simplification82.6%

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

      Alternative 4: 80.3% accurate, 0.6× speedup?

      \[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} \mathbf{if}\;\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - t \cdot \left(a \cdot 4\right)\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k \leq \infty:\\ \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), j \cdot \left(k \cdot -27\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \mathsf{fma}\left(-4, i, \left(z \cdot t\right) \cdot \left(18 \cdot y\right)\right)\\ \end{array} \end{array} \]
      NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
      (FPCore (x y z t a b c i j k)
       :precision binary64
       (if (<=
            (-
             (-
              (+ (- (* (* (* (* x 18.0) y) z) t) (* t (* a 4.0))) (* b c))
              (* (* x 4.0) i))
             (* (* j 27.0) k))
            INFINITY)
         (fma b c (fma -4.0 (fma a t (* x i)) (* j (* k -27.0))))
         (* x (fma -4.0 i (* (* z t) (* 18.0 y))))))
      assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
      	double tmp;
      	if (((((((((x * 18.0) * y) * z) * t) - (t * (a * 4.0))) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)) <= ((double) INFINITY)) {
      		tmp = fma(b, c, fma(-4.0, fma(a, t, (x * i)), (j * (k * -27.0))));
      	} else {
      		tmp = x * fma(-4.0, i, ((z * t) * (18.0 * y)));
      	}
      	return tmp;
      }
      
      x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
      function code(x, y, z, t, a, b, c, i, j, k)
      	tmp = 0.0
      	if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(t * Float64(a * 4.0))) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k)) <= Inf)
      		tmp = fma(b, c, fma(-4.0, fma(a, t, Float64(x * i)), Float64(j * Float64(k * -27.0))));
      	else
      		tmp = Float64(x * fma(-4.0, i, Float64(Float64(z * t) * Float64(18.0 * y))));
      	end
      	return tmp
      end
      
      NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
      code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], Infinity], N[(b * c + N[(-4.0 * N[(a * t + N[(x * i), $MachinePrecision]), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(-4.0 * i + N[(N[(z * t), $MachinePrecision] * N[(18.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
      
      \begin{array}{l}
      [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
      \\
      \begin{array}{l}
      \mathbf{if}\;\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - t \cdot \left(a \cdot 4\right)\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k \leq \infty:\\
      \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), j \cdot \left(k \cdot -27\right)\right)\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;x \cdot \mathsf{fma}\left(-4, i, \left(z \cdot t\right) \cdot \left(18 \cdot y\right)\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) (*.f64 (*.f64 j #s(literal 27 binary64)) k)) < +inf.0

        1. Initial program 94.4%

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\left(\mathsf{neg}\left(\left(4 \cdot \left(a \cdot t\right) + 4 \cdot \left(i \cdot x\right)\right)\right)\right) + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)}\right) \]
          5. distribute-lft-outN/A

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

            \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\left(\mathsf{neg}\left(4\right)\right) \cdot \left(a \cdot t + i \cdot x\right)} + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)\right) \]
          7. metadata-evalN/A

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

            \[\leadsto \mathsf{fma}\left(b, c, -4 \cdot \left(a \cdot t + i \cdot x\right) + \color{blue}{\left(\mathsf{neg}\left(27\right)\right) \cdot \left(j \cdot k\right)}\right) \]
          9. metadata-evalN/A

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

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

            \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \color{blue}{\mathsf{fma}\left(a, t, i \cdot x\right)}, -27 \cdot \left(j \cdot k\right)\right)\right) \]
          12. *-commutativeN/A

            \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, \color{blue}{x \cdot i}\right), -27 \cdot \left(j \cdot k\right)\right)\right) \]
          13. lower-*.f64N/A

            \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, \color{blue}{x \cdot i}\right), -27 \cdot \left(j \cdot k\right)\right)\right) \]
          14. *-commutativeN/A

            \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), \color{blue}{\left(j \cdot k\right) \cdot -27}\right)\right) \]
          15. associate-*l*N/A

            \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), \color{blue}{j \cdot \left(k \cdot -27\right)}\right)\right) \]
          16. *-commutativeN/A

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

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

            \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), j \cdot \color{blue}{\left(k \cdot -27\right)}\right)\right) \]
          19. lower-*.f6484.2

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

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

        if +inf.0 < (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x #s(literal 18 binary64)) y) z) t) (*.f64 (*.f64 a #s(literal 4 binary64)) t)) (*.f64 b c)) (*.f64 (*.f64 x #s(literal 4 binary64)) i)) (*.f64 (*.f64 j #s(literal 27 binary64)) k))

        1. Initial program 0.0%

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

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

            \[\leadsto \color{blue}{x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)} \]
          2. cancel-sign-sub-invN/A

            \[\leadsto x \cdot \color{blue}{\left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) + \left(\mathsf{neg}\left(4\right)\right) \cdot i\right)} \]
          3. metadata-evalN/A

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

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

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

            \[\leadsto x \cdot \mathsf{fma}\left(-4, i, \color{blue}{\left(t \cdot \left(y \cdot z\right)\right) \cdot 18}\right) \]
          7. associate-*l*N/A

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

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

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

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

          \[\leadsto \color{blue}{x \cdot \mathsf{fma}\left(-4, i, t \cdot \left(\left(y \cdot z\right) \cdot 18\right)\right)} \]
        6. Step-by-step derivation
          1. Applied rewrites67.8%

            \[\leadsto x \cdot \mathsf{fma}\left(-4, i, \left(18 \cdot y\right) \cdot \left(t \cdot z\right)\right) \]
        7. Recombined 2 regimes into one program.
        8. Final simplification82.2%

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

        Alternative 5: 93.4% accurate, 0.9× speedup?

        \[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := \mathsf{fma}\left(j \cdot k, -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), b \cdot c\right)\right)\right)\\ \mathbf{if}\;t \leq -1.26 \cdot 10^{-137}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 5 \cdot 10^{-32}:\\ \;\;\;\;\mathsf{fma}\left(j \cdot k, -27, \mathsf{fma}\left(y, \left(x \cdot 18\right) \cdot \left(z \cdot t\right), \mathsf{fma}\left(t, a \cdot -4, \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
        NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
        (FPCore (x y z t a b c i j k)
         :precision binary64
         (let* ((t_1
                 (fma
                  (* j k)
                  -27.0
                  (fma
                   x
                   (* i -4.0)
                   (fma t (fma x (* 18.0 (* y z)) (* a -4.0)) (* b c))))))
           (if (<= t -1.26e-137)
             t_1
             (if (<= t 5e-32)
               (fma
                (* j k)
                -27.0
                (fma
                 y
                 (* (* x 18.0) (* z t))
                 (fma t (* a -4.0) (fma b c (* x (* i -4.0))))))
               t_1))))
        assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
        	double t_1 = fma((j * k), -27.0, fma(x, (i * -4.0), fma(t, fma(x, (18.0 * (y * z)), (a * -4.0)), (b * c))));
        	double tmp;
        	if (t <= -1.26e-137) {
        		tmp = t_1;
        	} else if (t <= 5e-32) {
        		tmp = fma((j * k), -27.0, fma(y, ((x * 18.0) * (z * t)), fma(t, (a * -4.0), fma(b, c, (x * (i * -4.0))))));
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
        function code(x, y, z, t, a, b, c, i, j, k)
        	t_1 = fma(Float64(j * k), -27.0, fma(x, Float64(i * -4.0), fma(t, fma(x, Float64(18.0 * Float64(y * z)), Float64(a * -4.0)), Float64(b * c))))
        	tmp = 0.0
        	if (t <= -1.26e-137)
        		tmp = t_1;
        	elseif (t <= 5e-32)
        		tmp = fma(Float64(j * k), -27.0, fma(y, Float64(Float64(x * 18.0) * Float64(z * t)), fma(t, Float64(a * -4.0), fma(b, c, Float64(x * Float64(i * -4.0))))));
        	else
        		tmp = t_1;
        	end
        	return tmp
        end
        
        NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
        code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(j * k), $MachinePrecision] * -27.0 + N[(x * N[(i * -4.0), $MachinePrecision] + N[(t * N[(x * N[(18.0 * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(a * -4.0), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.26e-137], t$95$1, If[LessEqual[t, 5e-32], N[(N[(j * k), $MachinePrecision] * -27.0 + N[(y * N[(N[(x * 18.0), $MachinePrecision] * N[(z * t), $MachinePrecision]), $MachinePrecision] + N[(t * N[(a * -4.0), $MachinePrecision] + N[(b * c + N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
        
        \begin{array}{l}
        [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
        \\
        \begin{array}{l}
        t_1 := \mathsf{fma}\left(j \cdot k, -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), b \cdot c\right)\right)\right)\\
        \mathbf{if}\;t \leq -1.26 \cdot 10^{-137}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;t \leq 5 \cdot 10^{-32}:\\
        \;\;\;\;\mathsf{fma}\left(j \cdot k, -27, \mathsf{fma}\left(y, \left(x \cdot 18\right) \cdot \left(z \cdot t\right), \mathsf{fma}\left(t, a \cdot -4, \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right)\right)\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if t < -1.2600000000000001e-137 or 5e-32 < t

          1. Initial program 82.2%

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(\color{blue}{k \cdot j}, \mathsf{neg}\left(27\right), \left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) \]
            11. metadata-eval82.8

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

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

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

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

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

          if -1.2600000000000001e-137 < t < 5e-32

          1. Initial program 84.5%

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(\color{blue}{k \cdot j}, \mathsf{neg}\left(27\right), \left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) \]
            11. metadata-eval84.5

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

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

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

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

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

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

          \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.26 \cdot 10^{-137}:\\ \;\;\;\;\mathsf{fma}\left(j \cdot k, -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), b \cdot c\right)\right)\right)\\ \mathbf{elif}\;t \leq 5 \cdot 10^{-32}:\\ \;\;\;\;\mathsf{fma}\left(j \cdot k, -27, \mathsf{fma}\left(y, \left(x \cdot 18\right) \cdot \left(z \cdot t\right), \mathsf{fma}\left(t, a \cdot -4, \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(j \cdot k, -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), b \cdot c\right)\right)\right)\\ \end{array} \]
        5. Add Preprocessing

        Alternative 6: 90.8% accurate, 1.0× speedup?

        \[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := \mathsf{fma}\left(j \cdot k, -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), b \cdot c\right)\right)\right)\\ \mathbf{if}\;t \leq -3.8 \cdot 10^{-143}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 3.1 \cdot 10^{-49}:\\ \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), j \cdot \left(k \cdot -27\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
        NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
        (FPCore (x y z t a b c i j k)
         :precision binary64
         (let* ((t_1
                 (fma
                  (* j k)
                  -27.0
                  (fma
                   x
                   (* i -4.0)
                   (fma t (fma x (* 18.0 (* y z)) (* a -4.0)) (* b c))))))
           (if (<= t -3.8e-143)
             t_1
             (if (<= t 3.1e-49)
               (fma b c (fma -4.0 (fma a t (* x i)) (* j (* k -27.0))))
               t_1))))
        assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
        	double t_1 = fma((j * k), -27.0, fma(x, (i * -4.0), fma(t, fma(x, (18.0 * (y * z)), (a * -4.0)), (b * c))));
        	double tmp;
        	if (t <= -3.8e-143) {
        		tmp = t_1;
        	} else if (t <= 3.1e-49) {
        		tmp = fma(b, c, fma(-4.0, fma(a, t, (x * i)), (j * (k * -27.0))));
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
        function code(x, y, z, t, a, b, c, i, j, k)
        	t_1 = fma(Float64(j * k), -27.0, fma(x, Float64(i * -4.0), fma(t, fma(x, Float64(18.0 * Float64(y * z)), Float64(a * -4.0)), Float64(b * c))))
        	tmp = 0.0
        	if (t <= -3.8e-143)
        		tmp = t_1;
        	elseif (t <= 3.1e-49)
        		tmp = fma(b, c, fma(-4.0, fma(a, t, Float64(x * i)), Float64(j * Float64(k * -27.0))));
        	else
        		tmp = t_1;
        	end
        	return tmp
        end
        
        NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
        code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(j * k), $MachinePrecision] * -27.0 + N[(x * N[(i * -4.0), $MachinePrecision] + N[(t * N[(x * N[(18.0 * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(a * -4.0), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.8e-143], t$95$1, If[LessEqual[t, 3.1e-49], N[(b * c + N[(-4.0 * N[(a * t + N[(x * i), $MachinePrecision]), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
        
        \begin{array}{l}
        [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
        \\
        \begin{array}{l}
        t_1 := \mathsf{fma}\left(j \cdot k, -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), b \cdot c\right)\right)\right)\\
        \mathbf{if}\;t \leq -3.8 \cdot 10^{-143}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;t \leq 3.1 \cdot 10^{-49}:\\
        \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), j \cdot \left(k \cdot -27\right)\right)\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if t < -3.79999999999999981e-143 or 3.1e-49 < t

          1. Initial program 82.5%

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(\color{blue}{k \cdot j}, \mathsf{neg}\left(27\right), \left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) \]
            11. metadata-eval83.1

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

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

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

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

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

          if -3.79999999999999981e-143 < t < 3.1e-49

          1. Initial program 84.0%

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\left(\mathsf{neg}\left(\left(4 \cdot \left(a \cdot t\right) + 4 \cdot \left(i \cdot x\right)\right)\right)\right) + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)}\right) \]
            5. distribute-lft-outN/A

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

              \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\left(\mathsf{neg}\left(4\right)\right) \cdot \left(a \cdot t + i \cdot x\right)} + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)\right) \]
            7. metadata-evalN/A

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

              \[\leadsto \mathsf{fma}\left(b, c, -4 \cdot \left(a \cdot t + i \cdot x\right) + \color{blue}{\left(\mathsf{neg}\left(27\right)\right) \cdot \left(j \cdot k\right)}\right) \]
            9. metadata-evalN/A

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

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

              \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \color{blue}{\mathsf{fma}\left(a, t, i \cdot x\right)}, -27 \cdot \left(j \cdot k\right)\right)\right) \]
            12. *-commutativeN/A

              \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, \color{blue}{x \cdot i}\right), -27 \cdot \left(j \cdot k\right)\right)\right) \]
            13. lower-*.f64N/A

              \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, \color{blue}{x \cdot i}\right), -27 \cdot \left(j \cdot k\right)\right)\right) \]
            14. *-commutativeN/A

              \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), \color{blue}{\left(j \cdot k\right) \cdot -27}\right)\right) \]
            15. associate-*l*N/A

              \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), \color{blue}{j \cdot \left(k \cdot -27\right)}\right)\right) \]
            16. *-commutativeN/A

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

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

              \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), j \cdot \color{blue}{\left(k \cdot -27\right)}\right)\right) \]
            19. lower-*.f6493.1

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

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

          \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -3.8 \cdot 10^{-143}:\\ \;\;\;\;\mathsf{fma}\left(j \cdot k, -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), b \cdot c\right)\right)\right)\\ \mathbf{elif}\;t \leq 3.1 \cdot 10^{-49}:\\ \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), j \cdot \left(k \cdot -27\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(j \cdot k, -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), b \cdot c\right)\right)\right)\\ \end{array} \]
        5. Add Preprocessing

        Alternative 7: 83.3% accurate, 1.1× speedup?

        \[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := \mathsf{fma}\left(j \cdot k, -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, y \cdot \left(18 \cdot \left(x \cdot z\right)\right), b \cdot c\right)\right)\right)\\ \mathbf{if}\;y \leq -7 \cdot 10^{+184}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 2.55 \cdot 10^{-132}:\\ \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), j \cdot \left(k \cdot -27\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
        NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
        (FPCore (x y z t a b c i j k)
         :precision binary64
         (let* ((t_1
                 (fma
                  (* j k)
                  -27.0
                  (fma x (* i -4.0) (fma t (* y (* 18.0 (* x z))) (* b c))))))
           (if (<= y -7e+184)
             t_1
             (if (<= y 2.55e-132)
               (fma b c (fma -4.0 (fma a t (* x i)) (* j (* k -27.0))))
               t_1))))
        assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
        	double t_1 = fma((j * k), -27.0, fma(x, (i * -4.0), fma(t, (y * (18.0 * (x * z))), (b * c))));
        	double tmp;
        	if (y <= -7e+184) {
        		tmp = t_1;
        	} else if (y <= 2.55e-132) {
        		tmp = fma(b, c, fma(-4.0, fma(a, t, (x * i)), (j * (k * -27.0))));
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
        function code(x, y, z, t, a, b, c, i, j, k)
        	t_1 = fma(Float64(j * k), -27.0, fma(x, Float64(i * -4.0), fma(t, Float64(y * Float64(18.0 * Float64(x * z))), Float64(b * c))))
        	tmp = 0.0
        	if (y <= -7e+184)
        		tmp = t_1;
        	elseif (y <= 2.55e-132)
        		tmp = fma(b, c, fma(-4.0, fma(a, t, Float64(x * i)), Float64(j * Float64(k * -27.0))));
        	else
        		tmp = t_1;
        	end
        	return tmp
        end
        
        NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
        code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(j * k), $MachinePrecision] * -27.0 + N[(x * N[(i * -4.0), $MachinePrecision] + N[(t * N[(y * N[(18.0 * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7e+184], t$95$1, If[LessEqual[y, 2.55e-132], N[(b * c + N[(-4.0 * N[(a * t + N[(x * i), $MachinePrecision]), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
        
        \begin{array}{l}
        [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
        \\
        \begin{array}{l}
        t_1 := \mathsf{fma}\left(j \cdot k, -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, y \cdot \left(18 \cdot \left(x \cdot z\right)\right), b \cdot c\right)\right)\right)\\
        \mathbf{if}\;y \leq -7 \cdot 10^{+184}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;y \leq 2.55 \cdot 10^{-132}:\\
        \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), j \cdot \left(k \cdot -27\right)\right)\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if y < -6.99999999999999956e184 or 2.55000000000000003e-132 < y

          1. Initial program 76.2%

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(\color{blue}{k \cdot j}, \mathsf{neg}\left(27\right), \left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) \]
            11. metadata-eval77.1

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

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

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

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

            \[\leadsto \color{blue}{\mathsf{fma}\left(k \cdot j, -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(y \cdot z\right), a \cdot -4\right), b \cdot c\right)\right)\right)} \]
          5. Step-by-step derivation
            1. lift-fma.f64N/A

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(k \cdot j, -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \mathsf{fma}\left(\color{blue}{\left(x \cdot 18\right) \cdot z}, y, a \cdot -4\right), b \cdot c\right)\right)\right) \]
            9. lower-*.f6488.7

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

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

              \[\leadsto \mathsf{fma}\left(k \cdot j, -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \mathsf{fma}\left(\left(x \cdot 18\right) \cdot z, y, \color{blue}{-4 \cdot a}\right), b \cdot c\right)\right)\right) \]
            12. lower-*.f6488.7

              \[\leadsto \mathsf{fma}\left(k \cdot j, -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \mathsf{fma}\left(\left(x \cdot 18\right) \cdot z, y, \color{blue}{-4 \cdot a}\right), b \cdot c\right)\right)\right) \]
          6. Applied rewrites88.7%

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

            \[\leadsto \mathsf{fma}\left(k \cdot j, -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \color{blue}{18 \cdot \left(x \cdot \left(y \cdot z\right)\right)}, b \cdot c\right)\right)\right) \]
          8. Step-by-step derivation
            1. associate-*r*N/A

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(k \cdot j, -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \color{blue}{\left(18 \cdot \left(x \cdot z\right)\right)} \cdot y, b \cdot c\right)\right)\right) \]
            7. lower-*.f6479.5

              \[\leadsto \mathsf{fma}\left(k \cdot j, -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \left(18 \cdot \color{blue}{\left(x \cdot z\right)}\right) \cdot y, b \cdot c\right)\right)\right) \]
          9. Applied rewrites79.5%

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

          if -6.99999999999999956e184 < y < 2.55000000000000003e-132

          1. Initial program 87.6%

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\left(\mathsf{neg}\left(\left(4 \cdot \left(a \cdot t\right) + 4 \cdot \left(i \cdot x\right)\right)\right)\right) + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)}\right) \]
            5. distribute-lft-outN/A

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

              \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\left(\mathsf{neg}\left(4\right)\right) \cdot \left(a \cdot t + i \cdot x\right)} + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)\right) \]
            7. metadata-evalN/A

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

              \[\leadsto \mathsf{fma}\left(b, c, -4 \cdot \left(a \cdot t + i \cdot x\right) + \color{blue}{\left(\mathsf{neg}\left(27\right)\right) \cdot \left(j \cdot k\right)}\right) \]
            9. metadata-evalN/A

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

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

              \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \color{blue}{\mathsf{fma}\left(a, t, i \cdot x\right)}, -27 \cdot \left(j \cdot k\right)\right)\right) \]
            12. *-commutativeN/A

              \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, \color{blue}{x \cdot i}\right), -27 \cdot \left(j \cdot k\right)\right)\right) \]
            13. lower-*.f64N/A

              \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, \color{blue}{x \cdot i}\right), -27 \cdot \left(j \cdot k\right)\right)\right) \]
            14. *-commutativeN/A

              \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), \color{blue}{\left(j \cdot k\right) \cdot -27}\right)\right) \]
            15. associate-*l*N/A

              \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), \color{blue}{j \cdot \left(k \cdot -27\right)}\right)\right) \]
            16. *-commutativeN/A

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

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

              \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), j \cdot \color{blue}{\left(k \cdot -27\right)}\right)\right) \]
            19. lower-*.f6488.2

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

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

          \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -7 \cdot 10^{+184}:\\ \;\;\;\;\mathsf{fma}\left(j \cdot k, -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, y \cdot \left(18 \cdot \left(x \cdot z\right)\right), b \cdot c\right)\right)\right)\\ \mathbf{elif}\;y \leq 2.55 \cdot 10^{-132}:\\ \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), j \cdot \left(k \cdot -27\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(j \cdot k, -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, y \cdot \left(18 \cdot \left(x \cdot z\right)\right), b \cdot c\right)\right)\right)\\ \end{array} \]
        5. Add Preprocessing

        Alternative 8: 85.1% accurate, 1.2× speedup?

        \[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := j \cdot \left(k \cdot -27\right)\\ t_2 := \mathsf{fma}\left(t, \mathsf{fma}\left(-4, a, 18 \cdot \left(x \cdot \left(y \cdot z\right)\right)\right), \mathsf{fma}\left(b, c, t\_1\right)\right)\\ \mathbf{if}\;t \leq -4.2 \cdot 10^{+126}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq 4.5 \cdot 10^{-41}:\\ \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), t\_1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
        NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
        (FPCore (x y z t a b c i j k)
         :precision binary64
         (let* ((t_1 (* j (* k -27.0)))
                (t_2 (fma t (fma -4.0 a (* 18.0 (* x (* y z)))) (fma b c t_1))))
           (if (<= t -4.2e+126)
             t_2
             (if (<= t 4.5e-41) (fma b c (fma -4.0 (fma a t (* x i)) t_1)) t_2))))
        assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
        	double t_1 = j * (k * -27.0);
        	double t_2 = fma(t, fma(-4.0, a, (18.0 * (x * (y * z)))), fma(b, c, t_1));
        	double tmp;
        	if (t <= -4.2e+126) {
        		tmp = t_2;
        	} else if (t <= 4.5e-41) {
        		tmp = fma(b, c, fma(-4.0, fma(a, t, (x * i)), t_1));
        	} else {
        		tmp = t_2;
        	}
        	return tmp;
        }
        
        x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
        function code(x, y, z, t, a, b, c, i, j, k)
        	t_1 = Float64(j * Float64(k * -27.0))
        	t_2 = fma(t, fma(-4.0, a, Float64(18.0 * Float64(x * Float64(y * z)))), fma(b, c, t_1))
        	tmp = 0.0
        	if (t <= -4.2e+126)
        		tmp = t_2;
        	elseif (t <= 4.5e-41)
        		tmp = fma(b, c, fma(-4.0, fma(a, t, Float64(x * i)), t_1));
        	else
        		tmp = t_2;
        	end
        	return tmp
        end
        
        NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
        code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(-4.0 * a + N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c + t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.2e+126], t$95$2, If[LessEqual[t, 4.5e-41], N[(b * c + N[(-4.0 * N[(a * t + N[(x * i), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
        
        \begin{array}{l}
        [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
        \\
        \begin{array}{l}
        t_1 := j \cdot \left(k \cdot -27\right)\\
        t_2 := \mathsf{fma}\left(t, \mathsf{fma}\left(-4, a, 18 \cdot \left(x \cdot \left(y \cdot z\right)\right)\right), \mathsf{fma}\left(b, c, t\_1\right)\right)\\
        \mathbf{if}\;t \leq -4.2 \cdot 10^{+126}:\\
        \;\;\;\;t\_2\\
        
        \mathbf{elif}\;t \leq 4.5 \cdot 10^{-41}:\\
        \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), t\_1\right)\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_2\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if t < -4.1999999999999998e126 or 4.5e-41 < t

          1. Initial program 78.2%

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

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

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

              \[\leadsto \left(\color{blue}{\left(b \cdot c + 18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\right)} - 4 \cdot \left(a \cdot t\right)\right) - 27 \cdot \left(j \cdot k\right) \]
            3. associate--l+N/A

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

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

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

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

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

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

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

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

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

          if -4.1999999999999998e126 < t < 4.5e-41

          1. Initial program 86.8%

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\left(\mathsf{neg}\left(\left(4 \cdot \left(a \cdot t\right) + 4 \cdot \left(i \cdot x\right)\right)\right)\right) + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)}\right) \]
            5. distribute-lft-outN/A

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

              \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\left(\mathsf{neg}\left(4\right)\right) \cdot \left(a \cdot t + i \cdot x\right)} + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)\right) \]
            7. metadata-evalN/A

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

              \[\leadsto \mathsf{fma}\left(b, c, -4 \cdot \left(a \cdot t + i \cdot x\right) + \color{blue}{\left(\mathsf{neg}\left(27\right)\right) \cdot \left(j \cdot k\right)}\right) \]
            9. metadata-evalN/A

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

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

              \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \color{blue}{\mathsf{fma}\left(a, t, i \cdot x\right)}, -27 \cdot \left(j \cdot k\right)\right)\right) \]
            12. *-commutativeN/A

              \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, \color{blue}{x \cdot i}\right), -27 \cdot \left(j \cdot k\right)\right)\right) \]
            13. lower-*.f64N/A

              \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, \color{blue}{x \cdot i}\right), -27 \cdot \left(j \cdot k\right)\right)\right) \]
            14. *-commutativeN/A

              \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), \color{blue}{\left(j \cdot k\right) \cdot -27}\right)\right) \]
            15. associate-*l*N/A

              \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), \color{blue}{j \cdot \left(k \cdot -27\right)}\right)\right) \]
            16. *-commutativeN/A

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

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

              \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), j \cdot \color{blue}{\left(k \cdot -27\right)}\right)\right) \]
            19. lower-*.f6489.4

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

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

        Alternative 9: 59.4% accurate, 1.3× speedup?

        \[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := -4 \cdot \left(x \cdot i\right)\\ t_2 := t \cdot \mathsf{fma}\left(-4, a, 18 \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\ \mathbf{if}\;t \leq -4.8 \cdot 10^{+81}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq -1.26 \cdot 10^{-21}:\\ \;\;\;\;\mathsf{fma}\left(j \cdot k, -27, t\_1\right)\\ \mathbf{elif}\;t \leq 5.2 \cdot 10^{-236}:\\ \;\;\;\;\mathsf{fma}\left(j \cdot k, -27, b \cdot c\right)\\ \mathbf{elif}\;t \leq 1200000:\\ \;\;\;\;\mathsf{fma}\left(b, c, t\_1\right)\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
        NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
        (FPCore (x y z t a b c i j k)
         :precision binary64
         (let* ((t_1 (* -4.0 (* x i))) (t_2 (* t (fma -4.0 a (* 18.0 (* x (* y z)))))))
           (if (<= t -4.8e+81)
             t_2
             (if (<= t -1.26e-21)
               (fma (* j k) -27.0 t_1)
               (if (<= t 5.2e-236)
                 (fma (* j k) -27.0 (* b c))
                 (if (<= t 1200000.0) (fma b c t_1) t_2))))))
        assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
        	double t_1 = -4.0 * (x * i);
        	double t_2 = t * fma(-4.0, a, (18.0 * (x * (y * z))));
        	double tmp;
        	if (t <= -4.8e+81) {
        		tmp = t_2;
        	} else if (t <= -1.26e-21) {
        		tmp = fma((j * k), -27.0, t_1);
        	} else if (t <= 5.2e-236) {
        		tmp = fma((j * k), -27.0, (b * c));
        	} else if (t <= 1200000.0) {
        		tmp = fma(b, c, t_1);
        	} else {
        		tmp = t_2;
        	}
        	return tmp;
        }
        
        x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
        function code(x, y, z, t, a, b, c, i, j, k)
        	t_1 = Float64(-4.0 * Float64(x * i))
        	t_2 = Float64(t * fma(-4.0, a, Float64(18.0 * Float64(x * Float64(y * z)))))
        	tmp = 0.0
        	if (t <= -4.8e+81)
        		tmp = t_2;
        	elseif (t <= -1.26e-21)
        		tmp = fma(Float64(j * k), -27.0, t_1);
        	elseif (t <= 5.2e-236)
        		tmp = fma(Float64(j * k), -27.0, Float64(b * c));
        	elseif (t <= 1200000.0)
        		tmp = fma(b, c, t_1);
        	else
        		tmp = t_2;
        	end
        	return tmp
        end
        
        NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
        code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(-4.0 * a + N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.8e+81], t$95$2, If[LessEqual[t, -1.26e-21], N[(N[(j * k), $MachinePrecision] * -27.0 + t$95$1), $MachinePrecision], If[LessEqual[t, 5.2e-236], N[(N[(j * k), $MachinePrecision] * -27.0 + N[(b * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1200000.0], N[(b * c + t$95$1), $MachinePrecision], t$95$2]]]]]]
        
        \begin{array}{l}
        [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
        \\
        \begin{array}{l}
        t_1 := -4 \cdot \left(x \cdot i\right)\\
        t_2 := t \cdot \mathsf{fma}\left(-4, a, 18 \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
        \mathbf{if}\;t \leq -4.8 \cdot 10^{+81}:\\
        \;\;\;\;t\_2\\
        
        \mathbf{elif}\;t \leq -1.26 \cdot 10^{-21}:\\
        \;\;\;\;\mathsf{fma}\left(j \cdot k, -27, t\_1\right)\\
        
        \mathbf{elif}\;t \leq 5.2 \cdot 10^{-236}:\\
        \;\;\;\;\mathsf{fma}\left(j \cdot k, -27, b \cdot c\right)\\
        
        \mathbf{elif}\;t \leq 1200000:\\
        \;\;\;\;\mathsf{fma}\left(b, c, t\_1\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_2\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 4 regimes
        2. if t < -4.79999999999999979e81 or 1.2e6 < t

          1. Initial program 78.3%

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

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

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

              \[\leadsto t \cdot \color{blue}{\left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) + \left(\mathsf{neg}\left(4\right)\right) \cdot a\right)} \]
            3. metadata-evalN/A

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

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

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

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

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

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

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

          if -4.79999999999999979e81 < t < -1.26e-21

          1. Initial program 96.2%

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(\color{blue}{k \cdot j}, \mathsf{neg}\left(27\right), \left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) \]
            11. metadata-eval96.3

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(k \cdot j, -27, \color{blue}{-4 \cdot \left(i \cdot x\right)}\right) \]
          6. Step-by-step derivation
            1. lower-*.f64N/A

              \[\leadsto \mathsf{fma}\left(k \cdot j, -27, \color{blue}{-4 \cdot \left(i \cdot x\right)}\right) \]
            2. lower-*.f6466.1

              \[\leadsto \mathsf{fma}\left(k \cdot j, -27, -4 \cdot \color{blue}{\left(i \cdot x\right)}\right) \]
          7. Applied rewrites66.1%

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

          if -1.26e-21 < t < 5.2000000000000001e-236

          1. Initial program 83.1%

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

            \[\leadsto \color{blue}{b \cdot c} - \left(j \cdot 27\right) \cdot k \]
          4. Step-by-step derivation
            1. lower-*.f6464.7

              \[\leadsto \color{blue}{b \cdot c} - \left(j \cdot 27\right) \cdot k \]
          5. Applied rewrites64.7%

            \[\leadsto \color{blue}{b \cdot c} - \left(j \cdot 27\right) \cdot k \]
          6. Step-by-step derivation
            1. lift--.f64N/A

              \[\leadsto \color{blue}{b \cdot c - \left(j \cdot 27\right) \cdot k} \]
            2. sub-negN/A

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

              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(j \cdot 27\right) \cdot k\right)\right) + b \cdot c} \]
            4. lift-*.f64N/A

              \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(j \cdot 27\right) \cdot k}\right)\right) + b \cdot c \]
            5. *-commutativeN/A

              \[\leadsto \left(\mathsf{neg}\left(\color{blue}{k \cdot \left(j \cdot 27\right)}\right)\right) + b \cdot c \]
            6. distribute-rgt-neg-inN/A

              \[\leadsto \color{blue}{k \cdot \left(\mathsf{neg}\left(j \cdot 27\right)\right)} + b \cdot c \]
            7. lift-*.f64N/A

              \[\leadsto k \cdot \left(\mathsf{neg}\left(\color{blue}{j \cdot 27}\right)\right) + b \cdot c \]
            8. distribute-rgt-neg-inN/A

              \[\leadsto k \cdot \color{blue}{\left(j \cdot \left(\mathsf{neg}\left(27\right)\right)\right)} + b \cdot c \]
            9. metadata-evalN/A

              \[\leadsto k \cdot \left(j \cdot \color{blue}{-27}\right) + b \cdot c \]
            10. associate-*l*N/A

              \[\leadsto \color{blue}{\left(k \cdot j\right) \cdot -27} + b \cdot c \]
            11. lift-*.f64N/A

              \[\leadsto \color{blue}{\left(k \cdot j\right)} \cdot -27 + b \cdot c \]
            12. lower-fma.f6464.7

              \[\leadsto \color{blue}{\mathsf{fma}\left(k \cdot j, -27, b \cdot c\right)} \]
          7. Applied rewrites64.7%

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

          if 5.2000000000000001e-236 < t < 1.2e6

          1. Initial program 85.8%

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

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

              \[\leadsto \color{blue}{b \cdot c + \left(\mathsf{neg}\left(\left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)\right)\right)} \]
            2. lower-fma.f64N/A

              \[\leadsto \color{blue}{\mathsf{fma}\left(b, c, \mathsf{neg}\left(\left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)\right)\right)} \]
            3. distribute-neg-inN/A

              \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\left(\mathsf{neg}\left(4 \cdot \left(i \cdot x\right)\right)\right) + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)}\right) \]
            4. distribute-lft-neg-inN/A

              \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)} + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)\right) \]
            5. metadata-evalN/A

              \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{-4} \cdot \left(i \cdot x\right) + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)\right) \]
            6. distribute-lft-neg-inN/A

              \[\leadsto \mathsf{fma}\left(b, c, -4 \cdot \left(i \cdot x\right) + \color{blue}{\left(\mathsf{neg}\left(27\right)\right) \cdot \left(j \cdot k\right)}\right) \]
            7. metadata-evalN/A

              \[\leadsto \mathsf{fma}\left(b, c, -4 \cdot \left(i \cdot x\right) + \color{blue}{-27} \cdot \left(j \cdot k\right)\right) \]
            8. lower-fma.f64N/A

              \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\mathsf{fma}\left(-4, i \cdot x, -27 \cdot \left(j \cdot k\right)\right)}\right) \]
            9. *-commutativeN/A

              \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \color{blue}{x \cdot i}, -27 \cdot \left(j \cdot k\right)\right)\right) \]
            10. lower-*.f64N/A

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

              \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, \color{blue}{\left(j \cdot k\right) \cdot -27}\right)\right) \]
            12. associate-*l*N/A

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

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

              \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, \color{blue}{j \cdot \left(-27 \cdot k\right)}\right)\right) \]
            15. *-commutativeN/A

              \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, j \cdot \color{blue}{\left(k \cdot -27\right)}\right)\right) \]
            16. lower-*.f6481.8

              \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, j \cdot \color{blue}{\left(k \cdot -27\right)}\right)\right) \]
          5. Applied rewrites81.8%

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

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

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

            \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -4.8 \cdot 10^{+81}:\\ \;\;\;\;t \cdot \mathsf{fma}\left(-4, a, 18 \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\ \mathbf{elif}\;t \leq -1.26 \cdot 10^{-21}:\\ \;\;\;\;\mathsf{fma}\left(j \cdot k, -27, -4 \cdot \left(x \cdot i\right)\right)\\ \mathbf{elif}\;t \leq 5.2 \cdot 10^{-236}:\\ \;\;\;\;\mathsf{fma}\left(j \cdot k, -27, b \cdot c\right)\\ \mathbf{elif}\;t \leq 1200000:\\ \;\;\;\;\mathsf{fma}\left(b, c, -4 \cdot \left(x \cdot i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \mathsf{fma}\left(-4, a, 18 \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\ \end{array} \]
          10. Add Preprocessing

          Alternative 10: 55.3% accurate, 1.4× speedup?

          \[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := \left(j \cdot 27\right) \cdot k\\ \mathbf{if}\;t\_1 \leq -2 \cdot 10^{+30}:\\ \;\;\;\;\mathsf{fma}\left(b, c, -27 \cdot \left(j \cdot k\right)\right)\\ \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+85}:\\ \;\;\;\;\mathsf{fma}\left(b, c, -4 \cdot \left(x \cdot i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(j \cdot -27, k, b \cdot c\right)\\ \end{array} \end{array} \]
          NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
          (FPCore (x y z t a b c i j k)
           :precision binary64
           (let* ((t_1 (* (* j 27.0) k)))
             (if (<= t_1 -2e+30)
               (fma b c (* -27.0 (* j k)))
               (if (<= t_1 2e+85)
                 (fma b c (* -4.0 (* x i)))
                 (fma (* j -27.0) k (* b c))))))
          assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
          	double t_1 = (j * 27.0) * k;
          	double tmp;
          	if (t_1 <= -2e+30) {
          		tmp = fma(b, c, (-27.0 * (j * k)));
          	} else if (t_1 <= 2e+85) {
          		tmp = fma(b, c, (-4.0 * (x * i)));
          	} else {
          		tmp = fma((j * -27.0), k, (b * c));
          	}
          	return tmp;
          }
          
          x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
          function code(x, y, z, t, a, b, c, i, j, k)
          	t_1 = Float64(Float64(j * 27.0) * k)
          	tmp = 0.0
          	if (t_1 <= -2e+30)
          		tmp = fma(b, c, Float64(-27.0 * Float64(j * k)));
          	elseif (t_1 <= 2e+85)
          		tmp = fma(b, c, Float64(-4.0 * Float64(x * i)));
          	else
          		tmp = fma(Float64(j * -27.0), k, Float64(b * c));
          	end
          	return tmp
          end
          
          NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
          code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+30], N[(b * c + N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+85], N[(b * c + N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * -27.0), $MachinePrecision] * k + N[(b * c), $MachinePrecision]), $MachinePrecision]]]]
          
          \begin{array}{l}
          [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
          \\
          \begin{array}{l}
          t_1 := \left(j \cdot 27\right) \cdot k\\
          \mathbf{if}\;t\_1 \leq -2 \cdot 10^{+30}:\\
          \;\;\;\;\mathsf{fma}\left(b, c, -27 \cdot \left(j \cdot k\right)\right)\\
          
          \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+85}:\\
          \;\;\;\;\mathsf{fma}\left(b, c, -4 \cdot \left(x \cdot i\right)\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;\mathsf{fma}\left(j \cdot -27, k, b \cdot c\right)\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -2e30

            1. Initial program 87.5%

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

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

                \[\leadsto \color{blue}{b \cdot c + \left(\mathsf{neg}\left(\left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)\right)\right)} \]
              2. lower-fma.f64N/A

                \[\leadsto \color{blue}{\mathsf{fma}\left(b, c, \mathsf{neg}\left(\left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)\right)\right)} \]
              3. distribute-neg-inN/A

                \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\left(\mathsf{neg}\left(4 \cdot \left(i \cdot x\right)\right)\right) + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)}\right) \]
              4. distribute-lft-neg-inN/A

                \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)} + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)\right) \]
              5. metadata-evalN/A

                \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{-4} \cdot \left(i \cdot x\right) + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)\right) \]
              6. distribute-lft-neg-inN/A

                \[\leadsto \mathsf{fma}\left(b, c, -4 \cdot \left(i \cdot x\right) + \color{blue}{\left(\mathsf{neg}\left(27\right)\right) \cdot \left(j \cdot k\right)}\right) \]
              7. metadata-evalN/A

                \[\leadsto \mathsf{fma}\left(b, c, -4 \cdot \left(i \cdot x\right) + \color{blue}{-27} \cdot \left(j \cdot k\right)\right) \]
              8. lower-fma.f64N/A

                \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\mathsf{fma}\left(-4, i \cdot x, -27 \cdot \left(j \cdot k\right)\right)}\right) \]
              9. *-commutativeN/A

                \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \color{blue}{x \cdot i}, -27 \cdot \left(j \cdot k\right)\right)\right) \]
              10. lower-*.f64N/A

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

                \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, \color{blue}{\left(j \cdot k\right) \cdot -27}\right)\right) \]
              12. associate-*l*N/A

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

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

                \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, \color{blue}{j \cdot \left(-27 \cdot k\right)}\right)\right) \]
              15. *-commutativeN/A

                \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, j \cdot \color{blue}{\left(k \cdot -27\right)}\right)\right) \]
              16. lower-*.f6472.4

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

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

              \[\leadsto \mathsf{fma}\left(b, c, -27 \cdot \left(j \cdot k\right)\right) \]
            7. Step-by-step derivation
              1. Applied rewrites67.5%

                \[\leadsto \mathsf{fma}\left(b, c, -27 \cdot \left(j \cdot k\right)\right) \]

              if -2e30 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 2e85

              1. Initial program 83.5%

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

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

                  \[\leadsto \color{blue}{b \cdot c + \left(\mathsf{neg}\left(\left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)\right)\right)} \]
                2. lower-fma.f64N/A

                  \[\leadsto \color{blue}{\mathsf{fma}\left(b, c, \mathsf{neg}\left(\left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)\right)\right)} \]
                3. distribute-neg-inN/A

                  \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\left(\mathsf{neg}\left(4 \cdot \left(i \cdot x\right)\right)\right) + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)}\right) \]
                4. distribute-lft-neg-inN/A

                  \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)} + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)\right) \]
                5. metadata-evalN/A

                  \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{-4} \cdot \left(i \cdot x\right) + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)\right) \]
                6. distribute-lft-neg-inN/A

                  \[\leadsto \mathsf{fma}\left(b, c, -4 \cdot \left(i \cdot x\right) + \color{blue}{\left(\mathsf{neg}\left(27\right)\right) \cdot \left(j \cdot k\right)}\right) \]
                7. metadata-evalN/A

                  \[\leadsto \mathsf{fma}\left(b, c, -4 \cdot \left(i \cdot x\right) + \color{blue}{-27} \cdot \left(j \cdot k\right)\right) \]
                8. lower-fma.f64N/A

                  \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\mathsf{fma}\left(-4, i \cdot x, -27 \cdot \left(j \cdot k\right)\right)}\right) \]
                9. *-commutativeN/A

                  \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \color{blue}{x \cdot i}, -27 \cdot \left(j \cdot k\right)\right)\right) \]
                10. lower-*.f64N/A

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

                  \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, \color{blue}{\left(j \cdot k\right) \cdot -27}\right)\right) \]
                12. associate-*l*N/A

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

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

                  \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, \color{blue}{j \cdot \left(-27 \cdot k\right)}\right)\right) \]
                15. *-commutativeN/A

                  \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, j \cdot \color{blue}{\left(k \cdot -27\right)}\right)\right) \]
                16. lower-*.f6458.5

                  \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, j \cdot \color{blue}{\left(k \cdot -27\right)}\right)\right) \]
              5. Applied rewrites58.5%

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

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

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

                if 2e85 < (*.f64 (*.f64 j #s(literal 27 binary64)) k)

                1. Initial program 72.9%

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

                  \[\leadsto \color{blue}{b \cdot c} - \left(j \cdot 27\right) \cdot k \]
                4. Step-by-step derivation
                  1. lower-*.f6464.5

                    \[\leadsto \color{blue}{b \cdot c} - \left(j \cdot 27\right) \cdot k \]
                5. Applied rewrites64.5%

                  \[\leadsto \color{blue}{b \cdot c} - \left(j \cdot 27\right) \cdot k \]
                6. Step-by-step derivation
                  1. lift--.f64N/A

                    \[\leadsto \color{blue}{b \cdot c - \left(j \cdot 27\right) \cdot k} \]
                  2. sub-negN/A

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

                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(j \cdot 27\right) \cdot k\right)\right) + b \cdot c} \]
                  4. lift-*.f64N/A

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

                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(j \cdot 27\right)\right) \cdot k} + b \cdot c \]
                  6. lift-*.f64N/A

                    \[\leadsto \left(\mathsf{neg}\left(\color{blue}{j \cdot 27}\right)\right) \cdot k + b \cdot c \]
                  7. distribute-rgt-neg-inN/A

                    \[\leadsto \color{blue}{\left(j \cdot \left(\mathsf{neg}\left(27\right)\right)\right)} \cdot k + b \cdot c \]
                  8. metadata-evalN/A

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

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

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

                  \[\leadsto \color{blue}{\mathsf{fma}\left(j \cdot -27, k, b \cdot c\right)} \]
              8. Recombined 3 regimes into one program.
              9. Final simplification60.5%

                \[\leadsto \begin{array}{l} \mathbf{if}\;\left(j \cdot 27\right) \cdot k \leq -2 \cdot 10^{+30}:\\ \;\;\;\;\mathsf{fma}\left(b, c, -27 \cdot \left(j \cdot k\right)\right)\\ \mathbf{elif}\;\left(j \cdot 27\right) \cdot k \leq 2 \cdot 10^{+85}:\\ \;\;\;\;\mathsf{fma}\left(b, c, -4 \cdot \left(x \cdot i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(j \cdot -27, k, b \cdot c\right)\\ \end{array} \]
              10. Add Preprocessing

              Alternative 11: 55.4% accurate, 1.4× speedup?

              \[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := \mathsf{fma}\left(b, c, -27 \cdot \left(j \cdot k\right)\right)\\ t_2 := \left(j \cdot 27\right) \cdot k\\ \mathbf{if}\;t\_2 \leq -2 \cdot 10^{+30}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+85}:\\ \;\;\;\;\mathsf{fma}\left(b, c, -4 \cdot \left(x \cdot i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
              NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
              (FPCore (x y z t a b c i j k)
               :precision binary64
               (let* ((t_1 (fma b c (* -27.0 (* j k)))) (t_2 (* (* j 27.0) k)))
                 (if (<= t_2 -2e+30)
                   t_1
                   (if (<= t_2 2e+85) (fma b c (* -4.0 (* x i))) t_1))))
              assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
              double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
              	double t_1 = fma(b, c, (-27.0 * (j * k)));
              	double t_2 = (j * 27.0) * k;
              	double tmp;
              	if (t_2 <= -2e+30) {
              		tmp = t_1;
              	} else if (t_2 <= 2e+85) {
              		tmp = fma(b, c, (-4.0 * (x * i)));
              	} else {
              		tmp = t_1;
              	}
              	return tmp;
              }
              
              x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
              function code(x, y, z, t, a, b, c, i, j, k)
              	t_1 = fma(b, c, Float64(-27.0 * Float64(j * k)))
              	t_2 = Float64(Float64(j * 27.0) * k)
              	tmp = 0.0
              	if (t_2 <= -2e+30)
              		tmp = t_1;
              	elseif (t_2 <= 2e+85)
              		tmp = fma(b, c, Float64(-4.0 * Float64(x * i)));
              	else
              		tmp = t_1;
              	end
              	return tmp
              end
              
              NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
              code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(b * c + N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, If[LessEqual[t$95$2, -2e+30], t$95$1, If[LessEqual[t$95$2, 2e+85], N[(b * c + N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
              
              \begin{array}{l}
              [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
              \\
              \begin{array}{l}
              t_1 := \mathsf{fma}\left(b, c, -27 \cdot \left(j \cdot k\right)\right)\\
              t_2 := \left(j \cdot 27\right) \cdot k\\
              \mathbf{if}\;t\_2 \leq -2 \cdot 10^{+30}:\\
              \;\;\;\;t\_1\\
              
              \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+85}:\\
              \;\;\;\;\mathsf{fma}\left(b, c, -4 \cdot \left(x \cdot i\right)\right)\\
              
              \mathbf{else}:\\
              \;\;\;\;t\_1\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 2 regimes
              2. if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -2e30 or 2e85 < (*.f64 (*.f64 j #s(literal 27 binary64)) k)

                1. Initial program 82.1%

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

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

                    \[\leadsto \color{blue}{b \cdot c + \left(\mathsf{neg}\left(\left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)\right)\right)} \]
                  2. lower-fma.f64N/A

                    \[\leadsto \color{blue}{\mathsf{fma}\left(b, c, \mathsf{neg}\left(\left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)\right)\right)} \]
                  3. distribute-neg-inN/A

                    \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\left(\mathsf{neg}\left(4 \cdot \left(i \cdot x\right)\right)\right) + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)}\right) \]
                  4. distribute-lft-neg-inN/A

                    \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)} + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)\right) \]
                  5. metadata-evalN/A

                    \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{-4} \cdot \left(i \cdot x\right) + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)\right) \]
                  6. distribute-lft-neg-inN/A

                    \[\leadsto \mathsf{fma}\left(b, c, -4 \cdot \left(i \cdot x\right) + \color{blue}{\left(\mathsf{neg}\left(27\right)\right) \cdot \left(j \cdot k\right)}\right) \]
                  7. metadata-evalN/A

                    \[\leadsto \mathsf{fma}\left(b, c, -4 \cdot \left(i \cdot x\right) + \color{blue}{-27} \cdot \left(j \cdot k\right)\right) \]
                  8. lower-fma.f64N/A

                    \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\mathsf{fma}\left(-4, i \cdot x, -27 \cdot \left(j \cdot k\right)\right)}\right) \]
                  9. *-commutativeN/A

                    \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \color{blue}{x \cdot i}, -27 \cdot \left(j \cdot k\right)\right)\right) \]
                  10. lower-*.f64N/A

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

                    \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, \color{blue}{\left(j \cdot k\right) \cdot -27}\right)\right) \]
                  12. associate-*l*N/A

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

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

                    \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, \color{blue}{j \cdot \left(-27 \cdot k\right)}\right)\right) \]
                  15. *-commutativeN/A

                    \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, j \cdot \color{blue}{\left(k \cdot -27\right)}\right)\right) \]
                  16. lower-*.f6469.7

                    \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, j \cdot \color{blue}{\left(k \cdot -27\right)}\right)\right) \]
                5. Applied rewrites69.7%

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

                  \[\leadsto \mathsf{fma}\left(b, c, -27 \cdot \left(j \cdot k\right)\right) \]
                7. Step-by-step derivation
                  1. Applied rewrites66.4%

                    \[\leadsto \mathsf{fma}\left(b, c, -27 \cdot \left(j \cdot k\right)\right) \]

                  if -2e30 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 2e85

                  1. Initial program 83.5%

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

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

                      \[\leadsto \color{blue}{b \cdot c + \left(\mathsf{neg}\left(\left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)\right)\right)} \]
                    2. lower-fma.f64N/A

                      \[\leadsto \color{blue}{\mathsf{fma}\left(b, c, \mathsf{neg}\left(\left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)\right)\right)} \]
                    3. distribute-neg-inN/A

                      \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\left(\mathsf{neg}\left(4 \cdot \left(i \cdot x\right)\right)\right) + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)}\right) \]
                    4. distribute-lft-neg-inN/A

                      \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)} + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)\right) \]
                    5. metadata-evalN/A

                      \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{-4} \cdot \left(i \cdot x\right) + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)\right) \]
                    6. distribute-lft-neg-inN/A

                      \[\leadsto \mathsf{fma}\left(b, c, -4 \cdot \left(i \cdot x\right) + \color{blue}{\left(\mathsf{neg}\left(27\right)\right) \cdot \left(j \cdot k\right)}\right) \]
                    7. metadata-evalN/A

                      \[\leadsto \mathsf{fma}\left(b, c, -4 \cdot \left(i \cdot x\right) + \color{blue}{-27} \cdot \left(j \cdot k\right)\right) \]
                    8. lower-fma.f64N/A

                      \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\mathsf{fma}\left(-4, i \cdot x, -27 \cdot \left(j \cdot k\right)\right)}\right) \]
                    9. *-commutativeN/A

                      \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \color{blue}{x \cdot i}, -27 \cdot \left(j \cdot k\right)\right)\right) \]
                    10. lower-*.f64N/A

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

                      \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, \color{blue}{\left(j \cdot k\right) \cdot -27}\right)\right) \]
                    12. associate-*l*N/A

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

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

                      \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, \color{blue}{j \cdot \left(-27 \cdot k\right)}\right)\right) \]
                    15. *-commutativeN/A

                      \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, j \cdot \color{blue}{\left(k \cdot -27\right)}\right)\right) \]
                    16. lower-*.f6458.5

                      \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, j \cdot \color{blue}{\left(k \cdot -27\right)}\right)\right) \]
                  5. Applied rewrites58.5%

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

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

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

                    \[\leadsto \begin{array}{l} \mathbf{if}\;\left(j \cdot 27\right) \cdot k \leq -2 \cdot 10^{+30}:\\ \;\;\;\;\mathsf{fma}\left(b, c, -27 \cdot \left(j \cdot k\right)\right)\\ \mathbf{elif}\;\left(j \cdot 27\right) \cdot k \leq 2 \cdot 10^{+85}:\\ \;\;\;\;\mathsf{fma}\left(b, c, -4 \cdot \left(x \cdot i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(b, c, -27 \cdot \left(j \cdot k\right)\right)\\ \end{array} \]
                  10. Add Preprocessing

                  Alternative 12: 59.9% accurate, 1.5× speedup?

                  \[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} \mathbf{if}\;t \leq -2.3 \cdot 10^{+27}:\\ \;\;\;\;t \cdot \mathsf{fma}\left(18 \cdot \left(x \cdot z\right), y, a \cdot -4\right)\\ \mathbf{elif}\;t \leq 5.2 \cdot 10^{-236}:\\ \;\;\;\;\mathsf{fma}\left(j \cdot k, -27, b \cdot c\right)\\ \mathbf{elif}\;t \leq 1200000:\\ \;\;\;\;\mathsf{fma}\left(b, c, -4 \cdot \left(x \cdot i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \mathsf{fma}\left(-4, a, 18 \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\ \end{array} \end{array} \]
                  NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
                  (FPCore (x y z t a b c i j k)
                   :precision binary64
                   (if (<= t -2.3e+27)
                     (* t (fma (* 18.0 (* x z)) y (* a -4.0)))
                     (if (<= t 5.2e-236)
                       (fma (* j k) -27.0 (* b c))
                       (if (<= t 1200000.0)
                         (fma b c (* -4.0 (* x i)))
                         (* t (fma -4.0 a (* 18.0 (* x (* y z)))))))))
                  assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
                  double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
                  	double tmp;
                  	if (t <= -2.3e+27) {
                  		tmp = t * fma((18.0 * (x * z)), y, (a * -4.0));
                  	} else if (t <= 5.2e-236) {
                  		tmp = fma((j * k), -27.0, (b * c));
                  	} else if (t <= 1200000.0) {
                  		tmp = fma(b, c, (-4.0 * (x * i)));
                  	} else {
                  		tmp = t * fma(-4.0, a, (18.0 * (x * (y * z))));
                  	}
                  	return tmp;
                  }
                  
                  x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
                  function code(x, y, z, t, a, b, c, i, j, k)
                  	tmp = 0.0
                  	if (t <= -2.3e+27)
                  		tmp = Float64(t * fma(Float64(18.0 * Float64(x * z)), y, Float64(a * -4.0)));
                  	elseif (t <= 5.2e-236)
                  		tmp = fma(Float64(j * k), -27.0, Float64(b * c));
                  	elseif (t <= 1200000.0)
                  		tmp = fma(b, c, Float64(-4.0 * Float64(x * i)));
                  	else
                  		tmp = Float64(t * fma(-4.0, a, Float64(18.0 * Float64(x * Float64(y * z)))));
                  	end
                  	return tmp
                  end
                  
                  NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
                  code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[t, -2.3e+27], N[(t * N[(N[(18.0 * N[(x * z), $MachinePrecision]), $MachinePrecision] * y + N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.2e-236], N[(N[(j * k), $MachinePrecision] * -27.0 + N[(b * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1200000.0], N[(b * c + N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(-4.0 * a + N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
                  
                  \begin{array}{l}
                  [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
                  \\
                  \begin{array}{l}
                  \mathbf{if}\;t \leq -2.3 \cdot 10^{+27}:\\
                  \;\;\;\;t \cdot \mathsf{fma}\left(18 \cdot \left(x \cdot z\right), y, a \cdot -4\right)\\
                  
                  \mathbf{elif}\;t \leq 5.2 \cdot 10^{-236}:\\
                  \;\;\;\;\mathsf{fma}\left(j \cdot k, -27, b \cdot c\right)\\
                  
                  \mathbf{elif}\;t \leq 1200000:\\
                  \;\;\;\;\mathsf{fma}\left(b, c, -4 \cdot \left(x \cdot i\right)\right)\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;t \cdot \mathsf{fma}\left(-4, a, 18 \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 4 regimes
                  2. if t < -2.3000000000000001e27

                    1. Initial program 81.3%

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

                      \[\leadsto \color{blue}{b \cdot c} \]
                    4. Step-by-step derivation
                      1. lower-*.f6420.6

                        \[\leadsto \color{blue}{b \cdot c} \]
                    5. Applied rewrites20.6%

                      \[\leadsto \color{blue}{b \cdot c} \]
                    6. Taylor expanded in j around inf

                      \[\leadsto \color{blue}{-27 \cdot \left(j \cdot k\right)} \]
                    7. Step-by-step derivation
                      1. lower-*.f64N/A

                        \[\leadsto \color{blue}{-27 \cdot \left(j \cdot k\right)} \]
                      2. lower-*.f6416.6

                        \[\leadsto -27 \cdot \color{blue}{\left(j \cdot k\right)} \]
                    8. Applied rewrites16.6%

                      \[\leadsto \color{blue}{-27 \cdot \left(j \cdot k\right)} \]
                    9. Taylor expanded in t around inf

                      \[\leadsto \color{blue}{t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - 4 \cdot a\right)} \]
                    10. Step-by-step derivation
                      1. cancel-sign-sub-invN/A

                        \[\leadsto t \cdot \color{blue}{\left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) + \left(\mathsf{neg}\left(4\right)\right) \cdot a\right)} \]
                      2. metadata-evalN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if -2.3000000000000001e27 < t < 5.2000000000000001e-236

                    1. Initial program 84.4%

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

                      \[\leadsto \color{blue}{b \cdot c} - \left(j \cdot 27\right) \cdot k \]
                    4. Step-by-step derivation
                      1. lower-*.f6463.2

                        \[\leadsto \color{blue}{b \cdot c} - \left(j \cdot 27\right) \cdot k \]
                    5. Applied rewrites63.2%

                      \[\leadsto \color{blue}{b \cdot c} - \left(j \cdot 27\right) \cdot k \]
                    6. Step-by-step derivation
                      1. lift--.f64N/A

                        \[\leadsto \color{blue}{b \cdot c - \left(j \cdot 27\right) \cdot k} \]
                      2. sub-negN/A

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

                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(j \cdot 27\right) \cdot k\right)\right) + b \cdot c} \]
                      4. lift-*.f64N/A

                        \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(j \cdot 27\right) \cdot k}\right)\right) + b \cdot c \]
                      5. *-commutativeN/A

                        \[\leadsto \left(\mathsf{neg}\left(\color{blue}{k \cdot \left(j \cdot 27\right)}\right)\right) + b \cdot c \]
                      6. distribute-rgt-neg-inN/A

                        \[\leadsto \color{blue}{k \cdot \left(\mathsf{neg}\left(j \cdot 27\right)\right)} + b \cdot c \]
                      7. lift-*.f64N/A

                        \[\leadsto k \cdot \left(\mathsf{neg}\left(\color{blue}{j \cdot 27}\right)\right) + b \cdot c \]
                      8. distribute-rgt-neg-inN/A

                        \[\leadsto k \cdot \color{blue}{\left(j \cdot \left(\mathsf{neg}\left(27\right)\right)\right)} + b \cdot c \]
                      9. metadata-evalN/A

                        \[\leadsto k \cdot \left(j \cdot \color{blue}{-27}\right) + b \cdot c \]
                      10. associate-*l*N/A

                        \[\leadsto \color{blue}{\left(k \cdot j\right) \cdot -27} + b \cdot c \]
                      11. lift-*.f64N/A

                        \[\leadsto \color{blue}{\left(k \cdot j\right)} \cdot -27 + b \cdot c \]
                      12. lower-fma.f6463.3

                        \[\leadsto \color{blue}{\mathsf{fma}\left(k \cdot j, -27, b \cdot c\right)} \]
                    7. Applied rewrites63.3%

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

                    if 5.2000000000000001e-236 < t < 1.2e6

                    1. Initial program 85.8%

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

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

                        \[\leadsto \color{blue}{b \cdot c + \left(\mathsf{neg}\left(\left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)\right)\right)} \]
                      2. lower-fma.f64N/A

                        \[\leadsto \color{blue}{\mathsf{fma}\left(b, c, \mathsf{neg}\left(\left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)\right)\right)} \]
                      3. distribute-neg-inN/A

                        \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\left(\mathsf{neg}\left(4 \cdot \left(i \cdot x\right)\right)\right) + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)}\right) \]
                      4. distribute-lft-neg-inN/A

                        \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)} + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)\right) \]
                      5. metadata-evalN/A

                        \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{-4} \cdot \left(i \cdot x\right) + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)\right) \]
                      6. distribute-lft-neg-inN/A

                        \[\leadsto \mathsf{fma}\left(b, c, -4 \cdot \left(i \cdot x\right) + \color{blue}{\left(\mathsf{neg}\left(27\right)\right) \cdot \left(j \cdot k\right)}\right) \]
                      7. metadata-evalN/A

                        \[\leadsto \mathsf{fma}\left(b, c, -4 \cdot \left(i \cdot x\right) + \color{blue}{-27} \cdot \left(j \cdot k\right)\right) \]
                      8. lower-fma.f64N/A

                        \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\mathsf{fma}\left(-4, i \cdot x, -27 \cdot \left(j \cdot k\right)\right)}\right) \]
                      9. *-commutativeN/A

                        \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \color{blue}{x \cdot i}, -27 \cdot \left(j \cdot k\right)\right)\right) \]
                      10. lower-*.f64N/A

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

                        \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, \color{blue}{\left(j \cdot k\right) \cdot -27}\right)\right) \]
                      12. associate-*l*N/A

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

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

                        \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, \color{blue}{j \cdot \left(-27 \cdot k\right)}\right)\right) \]
                      15. *-commutativeN/A

                        \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, j \cdot \color{blue}{\left(k \cdot -27\right)}\right)\right) \]
                      16. lower-*.f6481.8

                        \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, j \cdot \color{blue}{\left(k \cdot -27\right)}\right)\right) \]
                    5. Applied rewrites81.8%

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

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

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

                      if 1.2e6 < t

                      1. Initial program 80.3%

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

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

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

                          \[\leadsto t \cdot \color{blue}{\left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) + \left(\mathsf{neg}\left(4\right)\right) \cdot a\right)} \]
                        3. metadata-evalN/A

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

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

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

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

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

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

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

                      \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -2.3 \cdot 10^{+27}:\\ \;\;\;\;t \cdot \mathsf{fma}\left(18 \cdot \left(x \cdot z\right), y, a \cdot -4\right)\\ \mathbf{elif}\;t \leq 5.2 \cdot 10^{-236}:\\ \;\;\;\;\mathsf{fma}\left(j \cdot k, -27, b \cdot c\right)\\ \mathbf{elif}\;t \leq 1200000:\\ \;\;\;\;\mathsf{fma}\left(b, c, -4 \cdot \left(x \cdot i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \mathsf{fma}\left(-4, a, 18 \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\ \end{array} \]
                    10. Add Preprocessing

                    Alternative 13: 37.4% accurate, 1.6× speedup?

                    \[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := \left(j \cdot 27\right) \cdot k\\ \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+181}:\\ \;\;\;\;-27 \cdot \left(j \cdot k\right)\\ \mathbf{elif}\;t\_1 \leq 1.8 \cdot 10^{+85}:\\ \;\;\;\;b \cdot c\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(k \cdot -27\right)\\ \end{array} \end{array} \]
                    NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
                    (FPCore (x y z t a b c i j k)
                     :precision binary64
                     (let* ((t_1 (* (* j 27.0) k)))
                       (if (<= t_1 -1e+181)
                         (* -27.0 (* j k))
                         (if (<= t_1 1.8e+85) (* b c) (* j (* k -27.0))))))
                    assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
                    	double t_1 = (j * 27.0) * k;
                    	double tmp;
                    	if (t_1 <= -1e+181) {
                    		tmp = -27.0 * (j * k);
                    	} else if (t_1 <= 1.8e+85) {
                    		tmp = b * c;
                    	} else {
                    		tmp = j * (k * -27.0);
                    	}
                    	return tmp;
                    }
                    
                    NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
                    real(8) function code(x, y, z, t, a, b, c, i, j, k)
                        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), intent (in) :: k
                        real(8) :: t_1
                        real(8) :: tmp
                        t_1 = (j * 27.0d0) * k
                        if (t_1 <= (-1d+181)) then
                            tmp = (-27.0d0) * (j * k)
                        else if (t_1 <= 1.8d+85) then
                            tmp = b * c
                        else
                            tmp = j * (k * (-27.0d0))
                        end if
                        code = tmp
                    end function
                    
                    assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
                    public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
                    	double t_1 = (j * 27.0) * k;
                    	double tmp;
                    	if (t_1 <= -1e+181) {
                    		tmp = -27.0 * (j * k);
                    	} else if (t_1 <= 1.8e+85) {
                    		tmp = b * c;
                    	} else {
                    		tmp = j * (k * -27.0);
                    	}
                    	return tmp;
                    }
                    
                    [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k])
                    def code(x, y, z, t, a, b, c, i, j, k):
                    	t_1 = (j * 27.0) * k
                    	tmp = 0
                    	if t_1 <= -1e+181:
                    		tmp = -27.0 * (j * k)
                    	elif t_1 <= 1.8e+85:
                    		tmp = b * c
                    	else:
                    		tmp = j * (k * -27.0)
                    	return tmp
                    
                    x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
                    function code(x, y, z, t, a, b, c, i, j, k)
                    	t_1 = Float64(Float64(j * 27.0) * k)
                    	tmp = 0.0
                    	if (t_1 <= -1e+181)
                    		tmp = Float64(-27.0 * Float64(j * k));
                    	elseif (t_1 <= 1.8e+85)
                    		tmp = Float64(b * c);
                    	else
                    		tmp = Float64(j * Float64(k * -27.0));
                    	end
                    	return tmp
                    end
                    
                    x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
                    function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
                    	t_1 = (j * 27.0) * k;
                    	tmp = 0.0;
                    	if (t_1 <= -1e+181)
                    		tmp = -27.0 * (j * k);
                    	elseif (t_1 <= 1.8e+85)
                    		tmp = b * c;
                    	else
                    		tmp = j * (k * -27.0);
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+181], N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1.8e+85], N[(b * c), $MachinePrecision], N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]]]]
                    
                    \begin{array}{l}
                    [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
                    \\
                    \begin{array}{l}
                    t_1 := \left(j \cdot 27\right) \cdot k\\
                    \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+181}:\\
                    \;\;\;\;-27 \cdot \left(j \cdot k\right)\\
                    
                    \mathbf{elif}\;t\_1 \leq 1.8 \cdot 10^{+85}:\\
                    \;\;\;\;b \cdot c\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;j \cdot \left(k \cdot -27\right)\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 3 regimes
                    2. if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -9.9999999999999992e180

                      1. Initial program 83.8%

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

                        \[\leadsto \color{blue}{b \cdot c} \]
                      4. Step-by-step derivation
                        1. lower-*.f649.4

                          \[\leadsto \color{blue}{b \cdot c} \]
                      5. Applied rewrites9.4%

                        \[\leadsto \color{blue}{b \cdot c} \]
                      6. Taylor expanded in j around inf

                        \[\leadsto \color{blue}{-27 \cdot \left(j \cdot k\right)} \]
                      7. Step-by-step derivation
                        1. lower-*.f64N/A

                          \[\leadsto \color{blue}{-27 \cdot \left(j \cdot k\right)} \]
                        2. lower-*.f6477.3

                          \[\leadsto -27 \cdot \color{blue}{\left(j \cdot k\right)} \]
                      8. Applied rewrites77.3%

                        \[\leadsto \color{blue}{-27 \cdot \left(j \cdot k\right)} \]

                      if -9.9999999999999992e180 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 1.7999999999999999e85

                      1. Initial program 84.7%

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

                        \[\leadsto \color{blue}{b \cdot c} \]
                      4. Step-by-step derivation
                        1. lower-*.f6432.4

                          \[\leadsto \color{blue}{b \cdot c} \]
                      5. Applied rewrites32.4%

                        \[\leadsto \color{blue}{b \cdot c} \]

                      if 1.7999999999999999e85 < (*.f64 (*.f64 j #s(literal 27 binary64)) k)

                      1. Initial program 73.6%

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

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

                          \[\leadsto \color{blue}{\left(j \cdot k\right) \cdot -27} \]
                        2. associate-*l*N/A

                          \[\leadsto \color{blue}{j \cdot \left(k \cdot -27\right)} \]
                        3. *-commutativeN/A

                          \[\leadsto j \cdot \color{blue}{\left(-27 \cdot k\right)} \]
                        4. lower-*.f64N/A

                          \[\leadsto \color{blue}{j \cdot \left(-27 \cdot k\right)} \]
                        5. *-commutativeN/A

                          \[\leadsto j \cdot \color{blue}{\left(k \cdot -27\right)} \]
                        6. lower-*.f6453.9

                          \[\leadsto j \cdot \color{blue}{\left(k \cdot -27\right)} \]
                      5. Applied rewrites53.9%

                        \[\leadsto \color{blue}{j \cdot \left(k \cdot -27\right)} \]
                    3. Recombined 3 regimes into one program.
                    4. Add Preprocessing

                    Alternative 14: 37.4% accurate, 1.6× speedup?

                    \[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := -27 \cdot \left(j \cdot k\right)\\ t_2 := \left(j \cdot 27\right) \cdot k\\ \mathbf{if}\;t\_2 \leq -1 \cdot 10^{+181}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq 1.8 \cdot 10^{+85}:\\ \;\;\;\;b \cdot c\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                    NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
                    (FPCore (x y z t a b c i j k)
                     :precision binary64
                     (let* ((t_1 (* -27.0 (* j k))) (t_2 (* (* j 27.0) k)))
                       (if (<= t_2 -1e+181) t_1 (if (<= t_2 1.8e+85) (* b c) t_1))))
                    assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
                    	double t_1 = -27.0 * (j * k);
                    	double t_2 = (j * 27.0) * k;
                    	double tmp;
                    	if (t_2 <= -1e+181) {
                    		tmp = t_1;
                    	} else if (t_2 <= 1.8e+85) {
                    		tmp = b * c;
                    	} else {
                    		tmp = t_1;
                    	}
                    	return tmp;
                    }
                    
                    NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
                    real(8) function code(x, y, z, t, a, b, c, i, j, k)
                        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), intent (in) :: k
                        real(8) :: t_1
                        real(8) :: t_2
                        real(8) :: tmp
                        t_1 = (-27.0d0) * (j * k)
                        t_2 = (j * 27.0d0) * k
                        if (t_2 <= (-1d+181)) then
                            tmp = t_1
                        else if (t_2 <= 1.8d+85) then
                            tmp = b * c
                        else
                            tmp = t_1
                        end if
                        code = tmp
                    end function
                    
                    assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
                    public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
                    	double t_1 = -27.0 * (j * k);
                    	double t_2 = (j * 27.0) * k;
                    	double tmp;
                    	if (t_2 <= -1e+181) {
                    		tmp = t_1;
                    	} else if (t_2 <= 1.8e+85) {
                    		tmp = b * c;
                    	} else {
                    		tmp = t_1;
                    	}
                    	return tmp;
                    }
                    
                    [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k])
                    def code(x, y, z, t, a, b, c, i, j, k):
                    	t_1 = -27.0 * (j * k)
                    	t_2 = (j * 27.0) * k
                    	tmp = 0
                    	if t_2 <= -1e+181:
                    		tmp = t_1
                    	elif t_2 <= 1.8e+85:
                    		tmp = b * c
                    	else:
                    		tmp = t_1
                    	return tmp
                    
                    x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
                    function code(x, y, z, t, a, b, c, i, j, k)
                    	t_1 = Float64(-27.0 * Float64(j * k))
                    	t_2 = Float64(Float64(j * 27.0) * k)
                    	tmp = 0.0
                    	if (t_2 <= -1e+181)
                    		tmp = t_1;
                    	elseif (t_2 <= 1.8e+85)
                    		tmp = Float64(b * c);
                    	else
                    		tmp = t_1;
                    	end
                    	return tmp
                    end
                    
                    x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
                    function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
                    	t_1 = -27.0 * (j * k);
                    	t_2 = (j * 27.0) * k;
                    	tmp = 0.0;
                    	if (t_2 <= -1e+181)
                    		tmp = t_1;
                    	elseif (t_2 <= 1.8e+85)
                    		tmp = b * c;
                    	else
                    		tmp = t_1;
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]}, If[LessEqual[t$95$2, -1e+181], t$95$1, If[LessEqual[t$95$2, 1.8e+85], N[(b * c), $MachinePrecision], t$95$1]]]]
                    
                    \begin{array}{l}
                    [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
                    \\
                    \begin{array}{l}
                    t_1 := -27 \cdot \left(j \cdot k\right)\\
                    t_2 := \left(j \cdot 27\right) \cdot k\\
                    \mathbf{if}\;t\_2 \leq -1 \cdot 10^{+181}:\\
                    \;\;\;\;t\_1\\
                    
                    \mathbf{elif}\;t\_2 \leq 1.8 \cdot 10^{+85}:\\
                    \;\;\;\;b \cdot c\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;t\_1\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 2 regimes
                    2. if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -9.9999999999999992e180 or 1.7999999999999999e85 < (*.f64 (*.f64 j #s(literal 27 binary64)) k)

                      1. Initial program 78.2%

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

                        \[\leadsto \color{blue}{b \cdot c} \]
                      4. Step-by-step derivation
                        1. lower-*.f6412.3

                          \[\leadsto \color{blue}{b \cdot c} \]
                      5. Applied rewrites12.3%

                        \[\leadsto \color{blue}{b \cdot c} \]
                      6. Taylor expanded in j around inf

                        \[\leadsto \color{blue}{-27 \cdot \left(j \cdot k\right)} \]
                      7. Step-by-step derivation
                        1. lower-*.f64N/A

                          \[\leadsto \color{blue}{-27 \cdot \left(j \cdot k\right)} \]
                        2. lower-*.f6464.4

                          \[\leadsto -27 \cdot \color{blue}{\left(j \cdot k\right)} \]
                      8. Applied rewrites64.4%

                        \[\leadsto \color{blue}{-27 \cdot \left(j \cdot k\right)} \]

                      if -9.9999999999999992e180 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 1.7999999999999999e85

                      1. Initial program 84.7%

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

                        \[\leadsto \color{blue}{b \cdot c} \]
                      4. Step-by-step derivation
                        1. lower-*.f6432.4

                          \[\leadsto \color{blue}{b \cdot c} \]
                      5. Applied rewrites32.4%

                        \[\leadsto \color{blue}{b \cdot c} \]
                    3. Recombined 2 regimes into one program.
                    4. Add Preprocessing

                    Alternative 15: 73.7% accurate, 1.7× speedup?

                    \[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} \mathbf{if}\;t \leq -5.1 \cdot 10^{+81}:\\ \;\;\;\;t \cdot \mathsf{fma}\left(18 \cdot \left(x \cdot z\right), y, a \cdot -4\right)\\ \mathbf{elif}\;t \leq 9.2 \cdot 10^{+95}:\\ \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, j \cdot \left(k \cdot -27\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \mathsf{fma}\left(-4, a, 18 \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\ \end{array} \end{array} \]
                    NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
                    (FPCore (x y z t a b c i j k)
                     :precision binary64
                     (if (<= t -5.1e+81)
                       (* t (fma (* 18.0 (* x z)) y (* a -4.0)))
                       (if (<= t 9.2e+95)
                         (fma b c (fma -4.0 (* x i) (* j (* k -27.0))))
                         (* t (fma -4.0 a (* 18.0 (* x (* y z))))))))
                    assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
                    	double tmp;
                    	if (t <= -5.1e+81) {
                    		tmp = t * fma((18.0 * (x * z)), y, (a * -4.0));
                    	} else if (t <= 9.2e+95) {
                    		tmp = fma(b, c, fma(-4.0, (x * i), (j * (k * -27.0))));
                    	} else {
                    		tmp = t * fma(-4.0, a, (18.0 * (x * (y * z))));
                    	}
                    	return tmp;
                    }
                    
                    x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
                    function code(x, y, z, t, a, b, c, i, j, k)
                    	tmp = 0.0
                    	if (t <= -5.1e+81)
                    		tmp = Float64(t * fma(Float64(18.0 * Float64(x * z)), y, Float64(a * -4.0)));
                    	elseif (t <= 9.2e+95)
                    		tmp = fma(b, c, fma(-4.0, Float64(x * i), Float64(j * Float64(k * -27.0))));
                    	else
                    		tmp = Float64(t * fma(-4.0, a, Float64(18.0 * Float64(x * Float64(y * z)))));
                    	end
                    	return tmp
                    end
                    
                    NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := If[LessEqual[t, -5.1e+81], N[(t * N[(N[(18.0 * N[(x * z), $MachinePrecision]), $MachinePrecision] * y + N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.2e+95], N[(b * c + N[(-4.0 * N[(x * i), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(-4.0 * a + N[(18.0 * N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
                    
                    \begin{array}{l}
                    [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
                    \\
                    \begin{array}{l}
                    \mathbf{if}\;t \leq -5.1 \cdot 10^{+81}:\\
                    \;\;\;\;t \cdot \mathsf{fma}\left(18 \cdot \left(x \cdot z\right), y, a \cdot -4\right)\\
                    
                    \mathbf{elif}\;t \leq 9.2 \cdot 10^{+95}:\\
                    \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, j \cdot \left(k \cdot -27\right)\right)\right)\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;t \cdot \mathsf{fma}\left(-4, a, 18 \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 3 regimes
                    2. if t < -5.1000000000000003e81

                      1. Initial program 75.5%

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

                        \[\leadsto \color{blue}{b \cdot c} \]
                      4. Step-by-step derivation
                        1. lower-*.f6421.9

                          \[\leadsto \color{blue}{b \cdot c} \]
                      5. Applied rewrites21.9%

                        \[\leadsto \color{blue}{b \cdot c} \]
                      6. Taylor expanded in j around inf

                        \[\leadsto \color{blue}{-27 \cdot \left(j \cdot k\right)} \]
                      7. Step-by-step derivation
                        1. lower-*.f64N/A

                          \[\leadsto \color{blue}{-27 \cdot \left(j \cdot k\right)} \]
                        2. lower-*.f6413.1

                          \[\leadsto -27 \cdot \color{blue}{\left(j \cdot k\right)} \]
                      8. Applied rewrites13.1%

                        \[\leadsto \color{blue}{-27 \cdot \left(j \cdot k\right)} \]
                      9. Taylor expanded in t around inf

                        \[\leadsto \color{blue}{t \cdot \left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) - 4 \cdot a\right)} \]
                      10. Step-by-step derivation
                        1. cancel-sign-sub-invN/A

                          \[\leadsto t \cdot \color{blue}{\left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) + \left(\mathsf{neg}\left(4\right)\right) \cdot a\right)} \]
                        2. metadata-evalN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if -5.1000000000000003e81 < t < 9.19999999999999989e95

                      1. Initial program 85.9%

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

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

                          \[\leadsto \color{blue}{b \cdot c + \left(\mathsf{neg}\left(\left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)\right)\right)} \]
                        2. lower-fma.f64N/A

                          \[\leadsto \color{blue}{\mathsf{fma}\left(b, c, \mathsf{neg}\left(\left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)\right)\right)} \]
                        3. distribute-neg-inN/A

                          \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\left(\mathsf{neg}\left(4 \cdot \left(i \cdot x\right)\right)\right) + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)}\right) \]
                        4. distribute-lft-neg-inN/A

                          \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)} + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)\right) \]
                        5. metadata-evalN/A

                          \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{-4} \cdot \left(i \cdot x\right) + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)\right) \]
                        6. distribute-lft-neg-inN/A

                          \[\leadsto \mathsf{fma}\left(b, c, -4 \cdot \left(i \cdot x\right) + \color{blue}{\left(\mathsf{neg}\left(27\right)\right) \cdot \left(j \cdot k\right)}\right) \]
                        7. metadata-evalN/A

                          \[\leadsto \mathsf{fma}\left(b, c, -4 \cdot \left(i \cdot x\right) + \color{blue}{-27} \cdot \left(j \cdot k\right)\right) \]
                        8. lower-fma.f64N/A

                          \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\mathsf{fma}\left(-4, i \cdot x, -27 \cdot \left(j \cdot k\right)\right)}\right) \]
                        9. *-commutativeN/A

                          \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \color{blue}{x \cdot i}, -27 \cdot \left(j \cdot k\right)\right)\right) \]
                        10. lower-*.f64N/A

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

                          \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, \color{blue}{\left(j \cdot k\right) \cdot -27}\right)\right) \]
                        12. associate-*l*N/A

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

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

                          \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, \color{blue}{j \cdot \left(-27 \cdot k\right)}\right)\right) \]
                        15. *-commutativeN/A

                          \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, j \cdot \color{blue}{\left(k \cdot -27\right)}\right)\right) \]
                        16. lower-*.f6478.6

                          \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, j \cdot \color{blue}{\left(k \cdot -27\right)}\right)\right) \]
                      5. Applied rewrites78.6%

                        \[\leadsto \color{blue}{\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, j \cdot \left(k \cdot -27\right)\right)\right)} \]

                      if 9.19999999999999989e95 < t

                      1. Initial program 79.9%

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

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

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

                          \[\leadsto t \cdot \color{blue}{\left(18 \cdot \left(x \cdot \left(y \cdot z\right)\right) + \left(\mathsf{neg}\left(4\right)\right) \cdot a\right)} \]
                        3. metadata-evalN/A

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

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

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

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

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

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

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

                      \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -5.1 \cdot 10^{+81}:\\ \;\;\;\;t \cdot \mathsf{fma}\left(18 \cdot \left(x \cdot z\right), y, a \cdot -4\right)\\ \mathbf{elif}\;t \leq 9.2 \cdot 10^{+95}:\\ \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, j \cdot \left(k \cdot -27\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \mathsf{fma}\left(-4, a, 18 \cdot \left(x \cdot \left(y \cdot z\right)\right)\right)\\ \end{array} \]
                    5. Add Preprocessing

                    Alternative 16: 72.2% accurate, 1.7× speedup?

                    \[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := x \cdot \mathsf{fma}\left(y \cdot t, 18 \cdot z, i \cdot -4\right)\\ \mathbf{if}\;x \leq -1020000000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 2.3 \cdot 10^{+22}:\\ \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, t \cdot a, j \cdot \left(k \cdot -27\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                    NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
                    (FPCore (x y z t a b c i j k)
                     :precision binary64
                     (let* ((t_1 (* x (fma (* y t) (* 18.0 z) (* i -4.0)))))
                       (if (<= x -1020000000000.0)
                         t_1
                         (if (<= x 2.3e+22) (fma b c (fma -4.0 (* t a) (* j (* k -27.0)))) t_1))))
                    assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
                    	double t_1 = x * fma((y * t), (18.0 * z), (i * -4.0));
                    	double tmp;
                    	if (x <= -1020000000000.0) {
                    		tmp = t_1;
                    	} else if (x <= 2.3e+22) {
                    		tmp = fma(b, c, fma(-4.0, (t * a), (j * (k * -27.0))));
                    	} else {
                    		tmp = t_1;
                    	}
                    	return tmp;
                    }
                    
                    x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
                    function code(x, y, z, t, a, b, c, i, j, k)
                    	t_1 = Float64(x * fma(Float64(y * t), Float64(18.0 * z), Float64(i * -4.0)))
                    	tmp = 0.0
                    	if (x <= -1020000000000.0)
                    		tmp = t_1;
                    	elseif (x <= 2.3e+22)
                    		tmp = fma(b, c, fma(-4.0, Float64(t * a), Float64(j * Float64(k * -27.0))));
                    	else
                    		tmp = t_1;
                    	end
                    	return tmp
                    end
                    
                    NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(x * N[(N[(y * t), $MachinePrecision] * N[(18.0 * z), $MachinePrecision] + N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1020000000000.0], t$95$1, If[LessEqual[x, 2.3e+22], N[(b * c + N[(-4.0 * N[(t * a), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                    
                    \begin{array}{l}
                    [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
                    \\
                    \begin{array}{l}
                    t_1 := x \cdot \mathsf{fma}\left(y \cdot t, 18 \cdot z, i \cdot -4\right)\\
                    \mathbf{if}\;x \leq -1020000000000:\\
                    \;\;\;\;t\_1\\
                    
                    \mathbf{elif}\;x \leq 2.3 \cdot 10^{+22}:\\
                    \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, t \cdot a, j \cdot \left(k \cdot -27\right)\right)\right)\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;t\_1\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 2 regimes
                    2. if x < -1.02e12 or 2.3000000000000002e22 < x

                      1. Initial program 69.4%

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

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

                          \[\leadsto \color{blue}{x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)} \]
                        2. cancel-sign-sub-invN/A

                          \[\leadsto x \cdot \color{blue}{\left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) + \left(\mathsf{neg}\left(4\right)\right) \cdot i\right)} \]
                        3. metadata-evalN/A

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

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

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

                          \[\leadsto x \cdot \mathsf{fma}\left(-4, i, \color{blue}{\left(t \cdot \left(y \cdot z\right)\right) \cdot 18}\right) \]
                        7. associate-*l*N/A

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

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

                          \[\leadsto x \cdot \mathsf{fma}\left(-4, i, t \cdot \color{blue}{\left(\left(y \cdot z\right) \cdot 18\right)}\right) \]
                        10. lower-*.f6469.2

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

                        \[\leadsto \color{blue}{x \cdot \mathsf{fma}\left(-4, i, t \cdot \left(\left(y \cdot z\right) \cdot 18\right)\right)} \]
                      6. Step-by-step derivation
                        1. Applied rewrites70.1%

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

                        if -1.02e12 < x < 2.3000000000000002e22

                        1. Initial program 93.7%

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

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

                            \[\leadsto \color{blue}{b \cdot c + \left(\mathsf{neg}\left(\left(4 \cdot \left(a \cdot t\right) + 27 \cdot \left(j \cdot k\right)\right)\right)\right)} \]
                          2. lower-fma.f64N/A

                            \[\leadsto \color{blue}{\mathsf{fma}\left(b, c, \mathsf{neg}\left(\left(4 \cdot \left(a \cdot t\right) + 27 \cdot \left(j \cdot k\right)\right)\right)\right)} \]
                          3. distribute-neg-inN/A

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

                            \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\left(\mathsf{neg}\left(4\right)\right) \cdot \left(a \cdot t\right)} + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)\right) \]
                          5. metadata-evalN/A

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

                            \[\leadsto \mathsf{fma}\left(b, c, -4 \cdot \left(a \cdot t\right) + \color{blue}{\left(\mathsf{neg}\left(27\right)\right) \cdot \left(j \cdot k\right)}\right) \]
                          7. metadata-evalN/A

                            \[\leadsto \mathsf{fma}\left(b, c, -4 \cdot \left(a \cdot t\right) + \color{blue}{-27} \cdot \left(j \cdot k\right)\right) \]
                          8. lower-fma.f64N/A

                            \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\mathsf{fma}\left(-4, a \cdot t, -27 \cdot \left(j \cdot k\right)\right)}\right) \]
                          9. lower-*.f64N/A

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

                            \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, a \cdot t, \color{blue}{\left(j \cdot k\right) \cdot -27}\right)\right) \]
                          11. associate-*l*N/A

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

                            \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, a \cdot t, j \cdot \color{blue}{\left(-27 \cdot k\right)}\right)\right) \]
                          13. lower-*.f64N/A

                            \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, a \cdot t, \color{blue}{j \cdot \left(-27 \cdot k\right)}\right)\right) \]
                          14. *-commutativeN/A

                            \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, a \cdot t, j \cdot \color{blue}{\left(k \cdot -27\right)}\right)\right) \]
                          15. lower-*.f6481.7

                            \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, a \cdot t, j \cdot \color{blue}{\left(k \cdot -27\right)}\right)\right) \]
                        5. Applied rewrites81.7%

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

                        \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1020000000000:\\ \;\;\;\;x \cdot \mathsf{fma}\left(y \cdot t, 18 \cdot z, i \cdot -4\right)\\ \mathbf{elif}\;x \leq 2.3 \cdot 10^{+22}:\\ \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, t \cdot a, j \cdot \left(k \cdot -27\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \mathsf{fma}\left(y \cdot t, 18 \cdot z, i \cdot -4\right)\\ \end{array} \]
                      9. Add Preprocessing

                      Alternative 17: 59.4% accurate, 1.7× speedup?

                      \[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := x \cdot \mathsf{fma}\left(y \cdot t, 18 \cdot z, i \cdot -4\right)\\ \mathbf{if}\;x \leq -4.35 \cdot 10^{-26}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 2.1 \cdot 10^{-64}:\\ \;\;\;\;\mathsf{fma}\left(j \cdot -27, k, b \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                      NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
                      (FPCore (x y z t a b c i j k)
                       :precision binary64
                       (let* ((t_1 (* x (fma (* y t) (* 18.0 z) (* i -4.0)))))
                         (if (<= x -4.35e-26)
                           t_1
                           (if (<= x 2.1e-64) (fma (* j -27.0) k (* b c)) t_1))))
                      assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
                      	double t_1 = x * fma((y * t), (18.0 * z), (i * -4.0));
                      	double tmp;
                      	if (x <= -4.35e-26) {
                      		tmp = t_1;
                      	} else if (x <= 2.1e-64) {
                      		tmp = fma((j * -27.0), k, (b * c));
                      	} else {
                      		tmp = t_1;
                      	}
                      	return tmp;
                      }
                      
                      x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
                      function code(x, y, z, t, a, b, c, i, j, k)
                      	t_1 = Float64(x * fma(Float64(y * t), Float64(18.0 * z), Float64(i * -4.0)))
                      	tmp = 0.0
                      	if (x <= -4.35e-26)
                      		tmp = t_1;
                      	elseif (x <= 2.1e-64)
                      		tmp = fma(Float64(j * -27.0), k, Float64(b * c));
                      	else
                      		tmp = t_1;
                      	end
                      	return tmp
                      end
                      
                      NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(x * N[(N[(y * t), $MachinePrecision] * N[(18.0 * z), $MachinePrecision] + N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.35e-26], t$95$1, If[LessEqual[x, 2.1e-64], N[(N[(j * -27.0), $MachinePrecision] * k + N[(b * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                      
                      \begin{array}{l}
                      [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
                      \\
                      \begin{array}{l}
                      t_1 := x \cdot \mathsf{fma}\left(y \cdot t, 18 \cdot z, i \cdot -4\right)\\
                      \mathbf{if}\;x \leq -4.35 \cdot 10^{-26}:\\
                      \;\;\;\;t\_1\\
                      
                      \mathbf{elif}\;x \leq 2.1 \cdot 10^{-64}:\\
                      \;\;\;\;\mathsf{fma}\left(j \cdot -27, k, b \cdot c\right)\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;t\_1\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 2 regimes
                      2. if x < -4.34999999999999974e-26 or 2.10000000000000011e-64 < x

                        1. Initial program 71.5%

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

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

                            \[\leadsto \color{blue}{x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)} \]
                          2. cancel-sign-sub-invN/A

                            \[\leadsto x \cdot \color{blue}{\left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) + \left(\mathsf{neg}\left(4\right)\right) \cdot i\right)} \]
                          3. metadata-evalN/A

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

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

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

                            \[\leadsto x \cdot \mathsf{fma}\left(-4, i, \color{blue}{\left(t \cdot \left(y \cdot z\right)\right) \cdot 18}\right) \]
                          7. associate-*l*N/A

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

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

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

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

                          \[\leadsto \color{blue}{x \cdot \mathsf{fma}\left(-4, i, t \cdot \left(\left(y \cdot z\right) \cdot 18\right)\right)} \]
                        6. Step-by-step derivation
                          1. Applied rewrites64.3%

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

                          if -4.34999999999999974e-26 < x < 2.10000000000000011e-64

                          1. Initial program 96.6%

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

                            \[\leadsto \color{blue}{b \cdot c} - \left(j \cdot 27\right) \cdot k \]
                          4. Step-by-step derivation
                            1. lower-*.f6469.4

                              \[\leadsto \color{blue}{b \cdot c} - \left(j \cdot 27\right) \cdot k \]
                          5. Applied rewrites69.4%

                            \[\leadsto \color{blue}{b \cdot c} - \left(j \cdot 27\right) \cdot k \]
                          6. Step-by-step derivation
                            1. lift--.f64N/A

                              \[\leadsto \color{blue}{b \cdot c - \left(j \cdot 27\right) \cdot k} \]
                            2. sub-negN/A

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

                              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(j \cdot 27\right) \cdot k\right)\right) + b \cdot c} \]
                            4. lift-*.f64N/A

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

                              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(j \cdot 27\right)\right) \cdot k} + b \cdot c \]
                            6. lift-*.f64N/A

                              \[\leadsto \left(\mathsf{neg}\left(\color{blue}{j \cdot 27}\right)\right) \cdot k + b \cdot c \]
                            7. distribute-rgt-neg-inN/A

                              \[\leadsto \color{blue}{\left(j \cdot \left(\mathsf{neg}\left(27\right)\right)\right)} \cdot k + b \cdot c \]
                            8. metadata-evalN/A

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

                              \[\leadsto \color{blue}{\mathsf{fma}\left(j \cdot -27, k, b \cdot c\right)} \]
                            10. lower-*.f6469.4

                              \[\leadsto \mathsf{fma}\left(\color{blue}{j \cdot -27}, k, b \cdot c\right) \]
                          7. Applied rewrites69.4%

                            \[\leadsto \color{blue}{\mathsf{fma}\left(j \cdot -27, k, b \cdot c\right)} \]
                        7. Recombined 2 regimes into one program.
                        8. Final simplification66.6%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -4.35 \cdot 10^{-26}:\\ \;\;\;\;x \cdot \mathsf{fma}\left(y \cdot t, 18 \cdot z, i \cdot -4\right)\\ \mathbf{elif}\;x \leq 2.1 \cdot 10^{-64}:\\ \;\;\;\;\mathsf{fma}\left(j \cdot -27, k, b \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \mathsf{fma}\left(y \cdot t, 18 \cdot z, i \cdot -4\right)\\ \end{array} \]
                        9. Add Preprocessing

                        Alternative 18: 60.5% accurate, 1.7× speedup?

                        \[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := x \cdot \mathsf{fma}\left(-4, i, t \cdot \left(18 \cdot \left(y \cdot z\right)\right)\right)\\ \mathbf{if}\;x \leq -360000000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 6.6 \cdot 10^{+20}:\\ \;\;\;\;\mathsf{fma}\left(b, c, -27 \cdot \left(j \cdot k\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                        NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
                        (FPCore (x y z t a b c i j k)
                         :precision binary64
                         (let* ((t_1 (* x (fma -4.0 i (* t (* 18.0 (* y z)))))))
                           (if (<= x -360000000000.0)
                             t_1
                             (if (<= x 6.6e+20) (fma b c (* -27.0 (* j k))) t_1))))
                        assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
                        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
                        	double t_1 = x * fma(-4.0, i, (t * (18.0 * (y * z))));
                        	double tmp;
                        	if (x <= -360000000000.0) {
                        		tmp = t_1;
                        	} else if (x <= 6.6e+20) {
                        		tmp = fma(b, c, (-27.0 * (j * k)));
                        	} else {
                        		tmp = t_1;
                        	}
                        	return tmp;
                        }
                        
                        x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
                        function code(x, y, z, t, a, b, c, i, j, k)
                        	t_1 = Float64(x * fma(-4.0, i, Float64(t * Float64(18.0 * Float64(y * z)))))
                        	tmp = 0.0
                        	if (x <= -360000000000.0)
                        		tmp = t_1;
                        	elseif (x <= 6.6e+20)
                        		tmp = fma(b, c, Float64(-27.0 * Float64(j * k)));
                        	else
                        		tmp = t_1;
                        	end
                        	return tmp
                        end
                        
                        NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(x * N[(-4.0 * i + N[(t * N[(18.0 * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -360000000000.0], t$95$1, If[LessEqual[x, 6.6e+20], N[(b * c + N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                        
                        \begin{array}{l}
                        [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
                        \\
                        \begin{array}{l}
                        t_1 := x \cdot \mathsf{fma}\left(-4, i, t \cdot \left(18 \cdot \left(y \cdot z\right)\right)\right)\\
                        \mathbf{if}\;x \leq -360000000000:\\
                        \;\;\;\;t\_1\\
                        
                        \mathbf{elif}\;x \leq 6.6 \cdot 10^{+20}:\\
                        \;\;\;\;\mathsf{fma}\left(b, c, -27 \cdot \left(j \cdot k\right)\right)\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;t\_1\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 2 regimes
                        2. if x < -3.6e11 or 6.6e20 < x

                          1. Initial program 69.4%

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

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

                              \[\leadsto \color{blue}{x \cdot \left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) - 4 \cdot i\right)} \]
                            2. cancel-sign-sub-invN/A

                              \[\leadsto x \cdot \color{blue}{\left(18 \cdot \left(t \cdot \left(y \cdot z\right)\right) + \left(\mathsf{neg}\left(4\right)\right) \cdot i\right)} \]
                            3. metadata-evalN/A

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

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

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

                              \[\leadsto x \cdot \mathsf{fma}\left(-4, i, \color{blue}{\left(t \cdot \left(y \cdot z\right)\right) \cdot 18}\right) \]
                            7. associate-*l*N/A

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

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

                              \[\leadsto x \cdot \mathsf{fma}\left(-4, i, t \cdot \color{blue}{\left(\left(y \cdot z\right) \cdot 18\right)}\right) \]
                            10. lower-*.f6469.2

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

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

                          if -3.6e11 < x < 6.6e20

                          1. Initial program 93.7%

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

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

                              \[\leadsto \color{blue}{b \cdot c + \left(\mathsf{neg}\left(\left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)\right)\right)} \]
                            2. lower-fma.f64N/A

                              \[\leadsto \color{blue}{\mathsf{fma}\left(b, c, \mathsf{neg}\left(\left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)\right)\right)} \]
                            3. distribute-neg-inN/A

                              \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\left(\mathsf{neg}\left(4 \cdot \left(i \cdot x\right)\right)\right) + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)}\right) \]
                            4. distribute-lft-neg-inN/A

                              \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)} + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)\right) \]
                            5. metadata-evalN/A

                              \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{-4} \cdot \left(i \cdot x\right) + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)\right) \]
                            6. distribute-lft-neg-inN/A

                              \[\leadsto \mathsf{fma}\left(b, c, -4 \cdot \left(i \cdot x\right) + \color{blue}{\left(\mathsf{neg}\left(27\right)\right) \cdot \left(j \cdot k\right)}\right) \]
                            7. metadata-evalN/A

                              \[\leadsto \mathsf{fma}\left(b, c, -4 \cdot \left(i \cdot x\right) + \color{blue}{-27} \cdot \left(j \cdot k\right)\right) \]
                            8. lower-fma.f64N/A

                              \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\mathsf{fma}\left(-4, i \cdot x, -27 \cdot \left(j \cdot k\right)\right)}\right) \]
                            9. *-commutativeN/A

                              \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \color{blue}{x \cdot i}, -27 \cdot \left(j \cdot k\right)\right)\right) \]
                            10. lower-*.f64N/A

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

                              \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, \color{blue}{\left(j \cdot k\right) \cdot -27}\right)\right) \]
                            12. associate-*l*N/A

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

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

                              \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, \color{blue}{j \cdot \left(-27 \cdot k\right)}\right)\right) \]
                            15. *-commutativeN/A

                              \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, j \cdot \color{blue}{\left(k \cdot -27\right)}\right)\right) \]
                            16. lower-*.f6470.1

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

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

                            \[\leadsto \mathsf{fma}\left(b, c, -27 \cdot \left(j \cdot k\right)\right) \]
                          7. Step-by-step derivation
                            1. Applied rewrites64.0%

                              \[\leadsto \mathsf{fma}\left(b, c, -27 \cdot \left(j \cdot k\right)\right) \]
                          8. Recombined 2 regimes into one program.
                          9. Final simplification66.3%

                            \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -360000000000:\\ \;\;\;\;x \cdot \mathsf{fma}\left(-4, i, t \cdot \left(18 \cdot \left(y \cdot z\right)\right)\right)\\ \mathbf{elif}\;x \leq 6.6 \cdot 10^{+20}:\\ \;\;\;\;\mathsf{fma}\left(b, c, -27 \cdot \left(j \cdot k\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \mathsf{fma}\left(-4, i, t \cdot \left(18 \cdot \left(y \cdot z\right)\right)\right)\\ \end{array} \]
                          10. Add Preprocessing

                          Alternative 19: 47.5% accurate, 2.3× speedup?

                          \[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ \begin{array}{l} t_1 := -4 \cdot \left(x \cdot i\right)\\ \mathbf{if}\;x \leq -1.12 \cdot 10^{+90}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 2.5 \cdot 10^{+22}:\\ \;\;\;\;\mathsf{fma}\left(b, c, -27 \cdot \left(j \cdot k\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                          NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
                          (FPCore (x y z t a b c i j k)
                           :precision binary64
                           (let* ((t_1 (* -4.0 (* x i))))
                             (if (<= x -1.12e+90)
                               t_1
                               (if (<= x 2.5e+22) (fma b c (* -27.0 (* j k))) t_1))))
                          assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
                          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
                          	double t_1 = -4.0 * (x * i);
                          	double tmp;
                          	if (x <= -1.12e+90) {
                          		tmp = t_1;
                          	} else if (x <= 2.5e+22) {
                          		tmp = fma(b, c, (-27.0 * (j * k)));
                          	} else {
                          		tmp = t_1;
                          	}
                          	return tmp;
                          }
                          
                          x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
                          function code(x, y, z, t, a, b, c, i, j, k)
                          	t_1 = Float64(-4.0 * Float64(x * i))
                          	tmp = 0.0
                          	if (x <= -1.12e+90)
                          		tmp = t_1;
                          	elseif (x <= 2.5e+22)
                          		tmp = fma(b, c, Float64(-27.0 * Float64(j * k)));
                          	else
                          		tmp = t_1;
                          	end
                          	return tmp
                          end
                          
                          NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.12e+90], t$95$1, If[LessEqual[x, 2.5e+22], N[(b * c + N[(-27.0 * N[(j * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                          
                          \begin{array}{l}
                          [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
                          \\
                          \begin{array}{l}
                          t_1 := -4 \cdot \left(x \cdot i\right)\\
                          \mathbf{if}\;x \leq -1.12 \cdot 10^{+90}:\\
                          \;\;\;\;t\_1\\
                          
                          \mathbf{elif}\;x \leq 2.5 \cdot 10^{+22}:\\
                          \;\;\;\;\mathsf{fma}\left(b, c, -27 \cdot \left(j \cdot k\right)\right)\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;t\_1\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 2 regimes
                          2. if x < -1.1199999999999999e90 or 2.4999999999999998e22 < x

                            1. Initial program 66.4%

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

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

                                \[\leadsto \color{blue}{-4 \cdot \left(i \cdot x\right)} \]
                              2. *-commutativeN/A

                                \[\leadsto -4 \cdot \color{blue}{\left(x \cdot i\right)} \]
                              3. lower-*.f6437.6

                                \[\leadsto -4 \cdot \color{blue}{\left(x \cdot i\right)} \]
                            5. Applied rewrites37.6%

                              \[\leadsto \color{blue}{-4 \cdot \left(x \cdot i\right)} \]

                            if -1.1199999999999999e90 < x < 2.4999999999999998e22

                            1. Initial program 93.6%

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

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

                                \[\leadsto \color{blue}{b \cdot c + \left(\mathsf{neg}\left(\left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)\right)\right)} \]
                              2. lower-fma.f64N/A

                                \[\leadsto \color{blue}{\mathsf{fma}\left(b, c, \mathsf{neg}\left(\left(4 \cdot \left(i \cdot x\right) + 27 \cdot \left(j \cdot k\right)\right)\right)\right)} \]
                              3. distribute-neg-inN/A

                                \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\left(\mathsf{neg}\left(4 \cdot \left(i \cdot x\right)\right)\right) + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)}\right) \]
                              4. distribute-lft-neg-inN/A

                                \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)} + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)\right) \]
                              5. metadata-evalN/A

                                \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{-4} \cdot \left(i \cdot x\right) + \left(\mathsf{neg}\left(27 \cdot \left(j \cdot k\right)\right)\right)\right) \]
                              6. distribute-lft-neg-inN/A

                                \[\leadsto \mathsf{fma}\left(b, c, -4 \cdot \left(i \cdot x\right) + \color{blue}{\left(\mathsf{neg}\left(27\right)\right) \cdot \left(j \cdot k\right)}\right) \]
                              7. metadata-evalN/A

                                \[\leadsto \mathsf{fma}\left(b, c, -4 \cdot \left(i \cdot x\right) + \color{blue}{-27} \cdot \left(j \cdot k\right)\right) \]
                              8. lower-fma.f64N/A

                                \[\leadsto \mathsf{fma}\left(b, c, \color{blue}{\mathsf{fma}\left(-4, i \cdot x, -27 \cdot \left(j \cdot k\right)\right)}\right) \]
                              9. *-commutativeN/A

                                \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \color{blue}{x \cdot i}, -27 \cdot \left(j \cdot k\right)\right)\right) \]
                              10. lower-*.f64N/A

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

                                \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, \color{blue}{\left(j \cdot k\right) \cdot -27}\right)\right) \]
                              12. associate-*l*N/A

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

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

                                \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, \color{blue}{j \cdot \left(-27 \cdot k\right)}\right)\right) \]
                              15. *-commutativeN/A

                                \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, j \cdot \color{blue}{\left(k \cdot -27\right)}\right)\right) \]
                              16. lower-*.f6470.7

                                \[\leadsto \mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, j \cdot \color{blue}{\left(k \cdot -27\right)}\right)\right) \]
                            5. Applied rewrites70.7%

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

                              \[\leadsto \mathsf{fma}\left(b, c, -27 \cdot \left(j \cdot k\right)\right) \]
                            7. Step-by-step derivation
                              1. Applied rewrites62.5%

                                \[\leadsto \mathsf{fma}\left(b, c, -27 \cdot \left(j \cdot k\right)\right) \]
                            8. Recombined 2 regimes into one program.
                            9. Add Preprocessing

                            Alternative 20: 23.6% accurate, 11.3× speedup?

                            \[\begin{array}{l} [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\ \\ b \cdot c \end{array} \]
                            NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
                            (FPCore (x y z t a b c i j k) :precision binary64 (* b c))
                            assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k);
                            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
                            	return b * c;
                            }
                            
                            NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
                            real(8) function code(x, y, z, t, a, b, c, i, j, k)
                                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), intent (in) :: k
                                code = b * c
                            end function
                            
                            assert x < y && y < z && z < t && t < a && a < b && b < c && c < i && i < j && j < k;
                            public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
                            	return b * c;
                            }
                            
                            [x, y, z, t, a, b, c, i, j, k] = sort([x, y, z, t, a, b, c, i, j, k])
                            def code(x, y, z, t, a, b, c, i, j, k):
                            	return b * c
                            
                            x, y, z, t, a, b, c, i, j, k = sort([x, y, z, t, a, b, c, i, j, k])
                            function code(x, y, z, t, a, b, c, i, j, k)
                            	return Float64(b * c)
                            end
                            
                            x, y, z, t, a, b, c, i, j, k = num2cell(sort([x, y, z, t, a, b, c, i, j, k])){:}
                            function tmp = code(x, y, z, t, a, b, c, i, j, k)
                            	tmp = b * c;
                            end
                            
                            NOTE: x, y, z, t, a, b, c, i, j, and k should be sorted in increasing order before calling this function.
                            code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(b * c), $MachinePrecision]
                            
                            \begin{array}{l}
                            [x, y, z, t, a, b, c, i, j, k] = \mathsf{sort}([x, y, z, t, a, b, c, i, j, k])\\
                            \\
                            b \cdot c
                            \end{array}
                            
                            Derivation
                            1. Initial program 83.0%

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

                              \[\leadsto \color{blue}{b \cdot c} \]
                            4. Step-by-step derivation
                              1. lower-*.f6427.0

                                \[\leadsto \color{blue}{b \cdot c} \]
                            5. Applied rewrites27.0%

                              \[\leadsto \color{blue}{b \cdot c} \]
                            6. Add Preprocessing

                            Developer Target 1: 89.5% accurate, 0.9× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(a \cdot t + i \cdot x\right) \cdot 4\\ t_2 := \left(\left(18 \cdot t\right) \cdot \left(\left(x \cdot y\right) \cdot z\right) - t\_1\right) - \left(\left(k \cdot j\right) \cdot 27 - c \cdot b\right)\\ \mathbf{if}\;t < -1.6210815397541398 \cdot 10^{-69}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t < 165.68027943805222:\\ \;\;\;\;\left(\left(18 \cdot y\right) \cdot \left(x \cdot \left(z \cdot t\right)\right) - t\_1\right) + \left(c \cdot b - 27 \cdot \left(k \cdot j\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                            (FPCore (x y z t a b c i j k)
                             :precision binary64
                             (let* ((t_1 (* (+ (* a t) (* i x)) 4.0))
                                    (t_2
                                     (-
                                      (- (* (* 18.0 t) (* (* x y) z)) t_1)
                                      (- (* (* k j) 27.0) (* c b)))))
                               (if (< t -1.6210815397541398e-69)
                                 t_2
                                 (if (< t 165.68027943805222)
                                   (+ (- (* (* 18.0 y) (* x (* z t))) t_1) (- (* c b) (* 27.0 (* k j))))
                                   t_2))))
                            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
                            	double t_1 = ((a * t) + (i * x)) * 4.0;
                            	double t_2 = (((18.0 * t) * ((x * y) * z)) - t_1) - (((k * j) * 27.0) - (c * b));
                            	double tmp;
                            	if (t < -1.6210815397541398e-69) {
                            		tmp = t_2;
                            	} else if (t < 165.68027943805222) {
                            		tmp = (((18.0 * y) * (x * (z * t))) - t_1) + ((c * b) - (27.0 * (k * j)));
                            	} else {
                            		tmp = t_2;
                            	}
                            	return tmp;
                            }
                            
                            real(8) function code(x, y, z, t, a, b, c, i, j, k)
                                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), intent (in) :: k
                                real(8) :: t_1
                                real(8) :: t_2
                                real(8) :: tmp
                                t_1 = ((a * t) + (i * x)) * 4.0d0
                                t_2 = (((18.0d0 * t) * ((x * y) * z)) - t_1) - (((k * j) * 27.0d0) - (c * b))
                                if (t < (-1.6210815397541398d-69)) then
                                    tmp = t_2
                                else if (t < 165.68027943805222d0) then
                                    tmp = (((18.0d0 * y) * (x * (z * t))) - t_1) + ((c * b) - (27.0d0 * (k * j)))
                                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 k) {
                            	double t_1 = ((a * t) + (i * x)) * 4.0;
                            	double t_2 = (((18.0 * t) * ((x * y) * z)) - t_1) - (((k * j) * 27.0) - (c * b));
                            	double tmp;
                            	if (t < -1.6210815397541398e-69) {
                            		tmp = t_2;
                            	} else if (t < 165.68027943805222) {
                            		tmp = (((18.0 * y) * (x * (z * t))) - t_1) + ((c * b) - (27.0 * (k * j)));
                            	} else {
                            		tmp = t_2;
                            	}
                            	return tmp;
                            }
                            
                            def code(x, y, z, t, a, b, c, i, j, k):
                            	t_1 = ((a * t) + (i * x)) * 4.0
                            	t_2 = (((18.0 * t) * ((x * y) * z)) - t_1) - (((k * j) * 27.0) - (c * b))
                            	tmp = 0
                            	if t < -1.6210815397541398e-69:
                            		tmp = t_2
                            	elif t < 165.68027943805222:
                            		tmp = (((18.0 * y) * (x * (z * t))) - t_1) + ((c * b) - (27.0 * (k * j)))
                            	else:
                            		tmp = t_2
                            	return tmp
                            
                            function code(x, y, z, t, a, b, c, i, j, k)
                            	t_1 = Float64(Float64(Float64(a * t) + Float64(i * x)) * 4.0)
                            	t_2 = Float64(Float64(Float64(Float64(18.0 * t) * Float64(Float64(x * y) * z)) - t_1) - Float64(Float64(Float64(k * j) * 27.0) - Float64(c * b)))
                            	tmp = 0.0
                            	if (t < -1.6210815397541398e-69)
                            		tmp = t_2;
                            	elseif (t < 165.68027943805222)
                            		tmp = Float64(Float64(Float64(Float64(18.0 * y) * Float64(x * Float64(z * t))) - t_1) + Float64(Float64(c * b) - Float64(27.0 * Float64(k * j))));
                            	else
                            		tmp = t_2;
                            	end
                            	return tmp
                            end
                            
                            function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
                            	t_1 = ((a * t) + (i * x)) * 4.0;
                            	t_2 = (((18.0 * t) * ((x * y) * z)) - t_1) - (((k * j) * 27.0) - (c * b));
                            	tmp = 0.0;
                            	if (t < -1.6210815397541398e-69)
                            		tmp = t_2;
                            	elseif (t < 165.68027943805222)
                            		tmp = (((18.0 * y) * (x * (z * t))) - t_1) + ((c * b) - (27.0 * (k * j)));
                            	else
                            		tmp = t_2;
                            	end
                            	tmp_2 = tmp;
                            end
                            
                            code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(N[(N[(a * t), $MachinePrecision] + N[(i * x), $MachinePrecision]), $MachinePrecision] * 4.0), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(18.0 * t), $MachinePrecision] * N[(N[(x * y), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] - N[(N[(N[(k * j), $MachinePrecision] * 27.0), $MachinePrecision] - N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -1.6210815397541398e-69], t$95$2, If[Less[t, 165.68027943805222], N[(N[(N[(N[(18.0 * y), $MachinePrecision] * N[(x * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] + N[(N[(c * b), $MachinePrecision] - N[(27.0 * N[(k * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            t_1 := \left(a \cdot t + i \cdot x\right) \cdot 4\\
                            t_2 := \left(\left(18 \cdot t\right) \cdot \left(\left(x \cdot y\right) \cdot z\right) - t\_1\right) - \left(\left(k \cdot j\right) \cdot 27 - c \cdot b\right)\\
                            \mathbf{if}\;t < -1.6210815397541398 \cdot 10^{-69}:\\
                            \;\;\;\;t\_2\\
                            
                            \mathbf{elif}\;t < 165.68027943805222:\\
                            \;\;\;\;\left(\left(18 \cdot y\right) \cdot \left(x \cdot \left(z \cdot t\right)\right) - t\_1\right) + \left(c \cdot b - 27 \cdot \left(k \cdot j\right)\right)\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;t\_2\\
                            
                            
                            \end{array}
                            \end{array}
                            

                            Reproduce

                            ?
                            herbie shell --seed 2024221 
                            (FPCore (x y z t a b c i j k)
                              :name "Diagrams.Solve.Polynomial:cubForm  from diagrams-solve-0.1, E"
                              :precision binary64
                            
                              :alt
                              (! :herbie-platform default (if (< t -8105407698770699/5000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (- (* (* 18 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4)) (- (* (* k j) 27) (* c b))) (if (< t 8284013971902611/50000000000000) (+ (- (* (* 18 y) (* x (* z t))) (* (+ (* a t) (* i x)) 4)) (- (* c b) (* 27 (* k j)))) (- (- (* (* 18 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4)) (- (* (* k j) 27) (* c b))))))
                            
                              (- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))