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

Percentage Accurate: 85.1% → 91.9%
Time: 29.6s
Alternatives: 26
Speedup: 1.2×

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 26 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.1% 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: 91.9% 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} \mathbf{if}\;z \leq 7.5 \cdot 10^{+101}:\\ \;\;\;\;\mathsf{fma}\left(k \cdot -27, j, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(z \cdot y\right), -4 \cdot a\right), b \cdot c\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(t \cdot \left(x \cdot \left(18 \cdot y\right)\right), z, \mathsf{fma}\left(t, -4 \cdot a, \mathsf{fma}\left(b, c, x \cdot \left(i \cdot -4\right)\right)\right)\right) - k \cdot \left(j \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
 (if (<= z 7.5e+101)
   (fma
    (* k -27.0)
    j
    (fma x (* i -4.0) (fma t (fma x (* 18.0 (* z y)) (* -4.0 a)) (* b c))))
   (-
    (fma
     (* t (* x (* 18.0 y)))
     z
     (fma t (* -4.0 a) (fma b c (* x (* i -4.0)))))
    (* k (* j 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 tmp;
	if (z <= 7.5e+101) {
		tmp = fma((k * -27.0), j, fma(x, (i * -4.0), fma(t, fma(x, (18.0 * (z * y)), (-4.0 * a)), (b * c))));
	} else {
		tmp = fma((t * (x * (18.0 * y))), z, fma(t, (-4.0 * a), fma(b, c, (x * (i * -4.0))))) - (k * (j * 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)
	tmp = 0.0
	if (z <= 7.5e+101)
		tmp = fma(Float64(k * -27.0), j, fma(x, Float64(i * -4.0), fma(t, fma(x, Float64(18.0 * Float64(z * y)), Float64(-4.0 * a)), Float64(b * c))));
	else
		tmp = Float64(fma(Float64(t * Float64(x * Float64(18.0 * y))), z, fma(t, Float64(-4.0 * a), fma(b, c, Float64(x * Float64(i * -4.0))))) - Float64(k * Float64(j * 27.0)));
	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[z, 7.5e+101], N[(N[(k * -27.0), $MachinePrecision] * j + N[(x * N[(i * -4.0), $MachinePrecision] + N[(t * N[(x * N[(18.0 * N[(z * y), $MachinePrecision]), $MachinePrecision] + N[(-4.0 * a), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(t * N[(x * N[(18.0 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * z + N[(t * N[(-4.0 * a), $MachinePrecision] + N[(b * c + N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(k * N[(j * 27.0), $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}\;z \leq 7.5 \cdot 10^{+101}:\\
\;\;\;\;\mathsf{fma}\left(k \cdot -27, j, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(z \cdot y\right), -4 \cdot a\right), b \cdot c\right)\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < 7.4999999999999995e101

    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. Applied rewrites91.9%

      \[\leadsto \color{blue}{\mathsf{fma}\left(k \cdot -27, j, \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 7.4999999999999995e101 < z

    1. Initial program 79.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. 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. lift-+.f64N/A

        \[\leadsto \left(\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) - \left(j \cdot 27\right) \cdot k \]
      3. associate--l+N/A

        \[\leadsto \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) + \left(b \cdot c - \left(x \cdot 4\right) \cdot i\right)\right)} - \left(j \cdot 27\right) \cdot k \]
      4. lift--.f64N/A

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

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

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

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

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

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

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

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

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

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

Alternative 2: 84.5% 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(b \cdot c + \left(t \cdot \left(z \cdot \left(y \cdot \left(x \cdot 18\right)\right)\right) - t \cdot \left(a \cdot 4\right)\right)\right) - i \cdot \left(x \cdot 4\right)\\ \mathbf{if}\;t\_1 \leq -\infty:\\ \;\;\;\;\mathsf{fma}\left(-4, \mathsf{fma}\left(t, a, x \cdot i\right), \mathsf{fma}\left(18, t \cdot \left(z \cdot \left(x \cdot y\right)\right), b \cdot c\right)\right)\\ \mathbf{elif}\;t\_1 \leq 4 \cdot 10^{+305}:\\ \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), \left(k \cdot -27\right) \cdot j\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(-4, i, t \cdot \left(18 \cdot \left(z \cdot y\right)\right)\right), 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
         (-
          (+ (* b c) (- (* t (* z (* y (* x 18.0)))) (* t (* a 4.0))))
          (* i (* x 4.0)))))
   (if (<= t_1 (- INFINITY))
     (fma -4.0 (fma t a (* x i)) (fma 18.0 (* t (* z (* x y))) (* b c)))
     (if (<= t_1 4e+305)
       (fma b c (fma -4.0 (fma a t (* x i)) (* (* k -27.0) j)))
       (fma x (fma -4.0 i (* t (* 18.0 (* z y)))) (* 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 = ((b * c) + ((t * (z * (y * (x * 18.0)))) - (t * (a * 4.0)))) - (i * (x * 4.0));
	double tmp;
	if (t_1 <= -((double) INFINITY)) {
		tmp = fma(-4.0, fma(t, a, (x * i)), fma(18.0, (t * (z * (x * y))), (b * c)));
	} else if (t_1 <= 4e+305) {
		tmp = fma(b, c, fma(-4.0, fma(a, t, (x * i)), ((k * -27.0) * j)));
	} else {
		tmp = fma(x, fma(-4.0, i, (t * (18.0 * (z * y)))), (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(Float64(b * c) + Float64(Float64(t * Float64(z * Float64(y * Float64(x * 18.0)))) - Float64(t * Float64(a * 4.0)))) - Float64(i * Float64(x * 4.0)))
	tmp = 0.0
	if (t_1 <= Float64(-Inf))
		tmp = fma(-4.0, fma(t, a, Float64(x * i)), fma(18.0, Float64(t * Float64(z * Float64(x * y))), Float64(b * c)));
	elseif (t_1 <= 4e+305)
		tmp = fma(b, c, fma(-4.0, fma(a, t, Float64(x * i)), Float64(Float64(k * -27.0) * j)));
	else
		tmp = fma(x, fma(-4.0, i, Float64(t * Float64(18.0 * Float64(z * y)))), 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[(N[(b * c), $MachinePrecision] + N[(N[(t * N[(z * N[(y * N[(x * 18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(x * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(-4.0 * N[(t * a + N[(x * i), $MachinePrecision]), $MachinePrecision] + N[(18.0 * N[(t * N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 4e+305], N[(b * c + N[(-4.0 * N[(a * t + N[(x * i), $MachinePrecision]), $MachinePrecision] + N[(N[(k * -27.0), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(-4.0 * i + N[(t * N[(18.0 * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 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(b \cdot c + \left(t \cdot \left(z \cdot \left(y \cdot \left(x \cdot 18\right)\right)\right) - t \cdot \left(a \cdot 4\right)\right)\right) - i \cdot \left(x \cdot 4\right)\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\mathsf{fma}\left(-4, \mathsf{fma}\left(t, a, x \cdot i\right), \mathsf{fma}\left(18, t \cdot \left(z \cdot \left(x \cdot y\right)\right), b \cdot c\right)\right)\\

\mathbf{elif}\;t\_1 \leq 4 \cdot 10^{+305}:\\
\;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), \left(k \cdot -27\right) \cdot j\right)\right)\\

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(-4, i, t \cdot \left(18 \cdot \left(z \cdot y\right)\right)\right), b \cdot c\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)) < -inf.0

    1. Initial program 84.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} \]
    4. Step-by-step derivation
      1. lower-*.f6427.5

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

      \[\leadsto \color{blue}{b \cdot c} \]
    6. Taylor expanded in j 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) + 4 \cdot \left(i \cdot x\right)\right)} \]
    7. 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) - 4 \cdot \left(i \cdot x\right)} \]
      2. cancel-sign-sub-invN/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) + \left(\mathsf{neg}\left(4\right)\right) \cdot \left(a \cdot t\right)\right)} - 4 \cdot \left(i \cdot x\right) \]
      3. metadata-evalN/A

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(-4 \cdot \left(a \cdot t\right) + -4 \cdot \left(i \cdot x\right)\right) + \left(18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right) + b \cdot c\right)} \]
      10. distribute-lft-outN/A

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

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

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

    1. Initial program 99.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-*.f6493.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 rewrites93.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)} \]

    if 3.9999999999999998e305 < (-.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 56.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 a 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(i \cdot x\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(i \cdot x\right)\right) - 27 \cdot \left(j \cdot k\right)} \]
      2. cancel-sign-sub-invN/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) + \left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)\right)} - 27 \cdot \left(j \cdot k\right) \]
      3. metadata-evalN/A

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

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

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

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

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

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

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

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

    Alternative 3: 36.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 := k \cdot \left(j \cdot 27\right)\\ \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+97}:\\ \;\;\;\;-27 \cdot \left(k \cdot j\right)\\ \mathbf{elif}\;t\_1 \leq -5 \cdot 10^{-322}:\\ \;\;\;\;-4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;t\_1 \leq 2000000:\\ \;\;\;\;b \cdot c\\ \mathbf{elif}\;t\_1 \leq 10^{+82}:\\ \;\;\;\;-4 \cdot \left(t \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;k \cdot \left(-27 \cdot j\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 (* k (* j 27.0))))
       (if (<= t_1 -5e+97)
         (* -27.0 (* k j))
         (if (<= t_1 -5e-322)
           (* -4.0 (* x i))
           (if (<= t_1 2000000.0)
             (* b c)
             (if (<= t_1 1e+82) (* -4.0 (* t a)) (* k (* -27.0 j))))))))
    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 = k * (j * 27.0);
    	double tmp;
    	if (t_1 <= -5e+97) {
    		tmp = -27.0 * (k * j);
    	} else if (t_1 <= -5e-322) {
    		tmp = -4.0 * (x * i);
    	} else if (t_1 <= 2000000.0) {
    		tmp = b * c;
    	} else if (t_1 <= 1e+82) {
    		tmp = -4.0 * (t * a);
    	} else {
    		tmp = k * (-27.0 * j);
    	}
    	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 = k * (j * 27.0d0)
        if (t_1 <= (-5d+97)) then
            tmp = (-27.0d0) * (k * j)
        else if (t_1 <= (-5d-322)) then
            tmp = (-4.0d0) * (x * i)
        else if (t_1 <= 2000000.0d0) then
            tmp = b * c
        else if (t_1 <= 1d+82) then
            tmp = (-4.0d0) * (t * a)
        else
            tmp = k * ((-27.0d0) * j)
        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 = k * (j * 27.0);
    	double tmp;
    	if (t_1 <= -5e+97) {
    		tmp = -27.0 * (k * j);
    	} else if (t_1 <= -5e-322) {
    		tmp = -4.0 * (x * i);
    	} else if (t_1 <= 2000000.0) {
    		tmp = b * c;
    	} else if (t_1 <= 1e+82) {
    		tmp = -4.0 * (t * a);
    	} else {
    		tmp = k * (-27.0 * j);
    	}
    	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 = k * (j * 27.0)
    	tmp = 0
    	if t_1 <= -5e+97:
    		tmp = -27.0 * (k * j)
    	elif t_1 <= -5e-322:
    		tmp = -4.0 * (x * i)
    	elif t_1 <= 2000000.0:
    		tmp = b * c
    	elif t_1 <= 1e+82:
    		tmp = -4.0 * (t * a)
    	else:
    		tmp = k * (-27.0 * j)
    	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(k * Float64(j * 27.0))
    	tmp = 0.0
    	if (t_1 <= -5e+97)
    		tmp = Float64(-27.0 * Float64(k * j));
    	elseif (t_1 <= -5e-322)
    		tmp = Float64(-4.0 * Float64(x * i));
    	elseif (t_1 <= 2000000.0)
    		tmp = Float64(b * c);
    	elseif (t_1 <= 1e+82)
    		tmp = Float64(-4.0 * Float64(t * a));
    	else
    		tmp = Float64(k * Float64(-27.0 * j));
    	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 = k * (j * 27.0);
    	tmp = 0.0;
    	if (t_1 <= -5e+97)
    		tmp = -27.0 * (k * j);
    	elseif (t_1 <= -5e-322)
    		tmp = -4.0 * (x * i);
    	elseif (t_1 <= 2000000.0)
    		tmp = b * c;
    	elseif (t_1 <= 1e+82)
    		tmp = -4.0 * (t * a);
    	else
    		tmp = k * (-27.0 * j);
    	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[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+97], N[(-27.0 * N[(k * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -5e-322], N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2000000.0], N[(b * c), $MachinePrecision], If[LessEqual[t$95$1, 1e+82], N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision], N[(k * N[(-27.0 * j), $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 := k \cdot \left(j \cdot 27\right)\\
    \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+97}:\\
    \;\;\;\;-27 \cdot \left(k \cdot j\right)\\
    
    \mathbf{elif}\;t\_1 \leq -5 \cdot 10^{-322}:\\
    \;\;\;\;-4 \cdot \left(x \cdot i\right)\\
    
    \mathbf{elif}\;t\_1 \leq 2000000:\\
    \;\;\;\;b \cdot c\\
    
    \mathbf{elif}\;t\_1 \leq 10^{+82}:\\
    \;\;\;\;-4 \cdot \left(t \cdot a\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;k \cdot \left(-27 \cdot j\right)\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 5 regimes
    2. if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -4.99999999999999999e97

      1. Initial program 83.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 a around -inf

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

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

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

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

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

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

      if -4.99999999999999999e97 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -4.99006e-322

      1. Initial program 82.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 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-*.f6436.8

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

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

      if -4.99006e-322 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 2e6

      1. Initial program 87.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-*.f6435.2

          \[\leadsto \color{blue}{b \cdot c} \]
      5. Applied rewrites35.2%

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

      if 2e6 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 9.9999999999999996e81

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

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

          \[\leadsto \color{blue}{-4 \cdot \left(a \cdot t\right)} \]
        2. lower-*.f6439.7

          \[\leadsto -4 \cdot \color{blue}{\left(a \cdot t\right)} \]
      5. Applied rewrites39.7%

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

      if 9.9999999999999996e81 < (*.f64 (*.f64 j #s(literal 27 binary64)) k)

      1. Initial program 82.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-*.f6419.0

          \[\leadsto \color{blue}{b \cdot c} \]
      5. Applied rewrites19.0%

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{k \cdot \left(-27 \cdot j\right)} \]
    3. Recombined 5 regimes into one program.
    4. Final simplification47.2%

      \[\leadsto \begin{array}{l} \mathbf{if}\;k \cdot \left(j \cdot 27\right) \leq -5 \cdot 10^{+97}:\\ \;\;\;\;-27 \cdot \left(k \cdot j\right)\\ \mathbf{elif}\;k \cdot \left(j \cdot 27\right) \leq -5 \cdot 10^{-322}:\\ \;\;\;\;-4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;k \cdot \left(j \cdot 27\right) \leq 2000000:\\ \;\;\;\;b \cdot c\\ \mathbf{elif}\;k \cdot \left(j \cdot 27\right) \leq 10^{+82}:\\ \;\;\;\;-4 \cdot \left(t \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;k \cdot \left(-27 \cdot j\right)\\ \end{array} \]
    5. Add Preprocessing

    Alternative 4: 36.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 := -27 \cdot \left(k \cdot j\right)\\ t_2 := k \cdot \left(j \cdot 27\right)\\ \mathbf{if}\;t\_2 \leq -5 \cdot 10^{+97}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-322}:\\ \;\;\;\;-4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;t\_2 \leq 2000000:\\ \;\;\;\;b \cdot c\\ \mathbf{elif}\;t\_2 \leq 10^{+82}:\\ \;\;\;\;-4 \cdot \left(t \cdot a\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 (* -27.0 (* k j))) (t_2 (* k (* j 27.0))))
       (if (<= t_2 -5e+97)
         t_1
         (if (<= t_2 -5e-322)
           (* -4.0 (* x i))
           (if (<= t_2 2000000.0)
             (* b c)
             (if (<= t_2 1e+82) (* -4.0 (* t a)) 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 * (k * j);
    	double t_2 = k * (j * 27.0);
    	double tmp;
    	if (t_2 <= -5e+97) {
    		tmp = t_1;
    	} else if (t_2 <= -5e-322) {
    		tmp = -4.0 * (x * i);
    	} else if (t_2 <= 2000000.0) {
    		tmp = b * c;
    	} else if (t_2 <= 1e+82) {
    		tmp = -4.0 * (t * a);
    	} 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) * (k * j)
        t_2 = k * (j * 27.0d0)
        if (t_2 <= (-5d+97)) then
            tmp = t_1
        else if (t_2 <= (-5d-322)) then
            tmp = (-4.0d0) * (x * i)
        else if (t_2 <= 2000000.0d0) then
            tmp = b * c
        else if (t_2 <= 1d+82) then
            tmp = (-4.0d0) * (t * a)
        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 * (k * j);
    	double t_2 = k * (j * 27.0);
    	double tmp;
    	if (t_2 <= -5e+97) {
    		tmp = t_1;
    	} else if (t_2 <= -5e-322) {
    		tmp = -4.0 * (x * i);
    	} else if (t_2 <= 2000000.0) {
    		tmp = b * c;
    	} else if (t_2 <= 1e+82) {
    		tmp = -4.0 * (t * a);
    	} 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 * (k * j)
    	t_2 = k * (j * 27.0)
    	tmp = 0
    	if t_2 <= -5e+97:
    		tmp = t_1
    	elif t_2 <= -5e-322:
    		tmp = -4.0 * (x * i)
    	elif t_2 <= 2000000.0:
    		tmp = b * c
    	elif t_2 <= 1e+82:
    		tmp = -4.0 * (t * a)
    	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(k * j))
    	t_2 = Float64(k * Float64(j * 27.0))
    	tmp = 0.0
    	if (t_2 <= -5e+97)
    		tmp = t_1;
    	elseif (t_2 <= -5e-322)
    		tmp = Float64(-4.0 * Float64(x * i));
    	elseif (t_2 <= 2000000.0)
    		tmp = Float64(b * c);
    	elseif (t_2 <= 1e+82)
    		tmp = Float64(-4.0 * Float64(t * a));
    	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 * (k * j);
    	t_2 = k * (j * 27.0);
    	tmp = 0.0;
    	if (t_2 <= -5e+97)
    		tmp = t_1;
    	elseif (t_2 <= -5e-322)
    		tmp = -4.0 * (x * i);
    	elseif (t_2 <= 2000000.0)
    		tmp = b * c;
    	elseif (t_2 <= 1e+82)
    		tmp = -4.0 * (t * a);
    	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[(k * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -5e+97], t$95$1, If[LessEqual[t$95$2, -5e-322], N[(-4.0 * N[(x * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2000000.0], N[(b * c), $MachinePrecision], If[LessEqual[t$95$2, 1e+82], N[(-4.0 * N[(t * a), $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 := -27 \cdot \left(k \cdot j\right)\\
    t_2 := k \cdot \left(j \cdot 27\right)\\
    \mathbf{if}\;t\_2 \leq -5 \cdot 10^{+97}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-322}:\\
    \;\;\;\;-4 \cdot \left(x \cdot i\right)\\
    
    \mathbf{elif}\;t\_2 \leq 2000000:\\
    \;\;\;\;b \cdot c\\
    
    \mathbf{elif}\;t\_2 \leq 10^{+82}:\\
    \;\;\;\;-4 \cdot \left(t \cdot a\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 4 regimes
    2. if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -4.99999999999999999e97 or 9.9999999999999996e81 < (*.f64 (*.f64 j #s(literal 27 binary64)) k)

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

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

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

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

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

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

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

      if -4.99999999999999999e97 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -4.99006e-322

      1. Initial program 82.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 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-*.f6436.8

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

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

      if -4.99006e-322 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 2e6

      1. Initial program 87.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-*.f6435.2

          \[\leadsto \color{blue}{b \cdot c} \]
      5. Applied rewrites35.2%

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

      if 2e6 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 9.9999999999999996e81

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

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

          \[\leadsto \color{blue}{-4 \cdot \left(a \cdot t\right)} \]
        2. lower-*.f6439.7

          \[\leadsto -4 \cdot \color{blue}{\left(a \cdot t\right)} \]
      5. Applied rewrites39.7%

        \[\leadsto \color{blue}{-4 \cdot \left(a \cdot t\right)} \]
    3. Recombined 4 regimes into one program.
    4. Final simplification47.2%

      \[\leadsto \begin{array}{l} \mathbf{if}\;k \cdot \left(j \cdot 27\right) \leq -5 \cdot 10^{+97}:\\ \;\;\;\;-27 \cdot \left(k \cdot j\right)\\ \mathbf{elif}\;k \cdot \left(j \cdot 27\right) \leq -5 \cdot 10^{-322}:\\ \;\;\;\;-4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;k \cdot \left(j \cdot 27\right) \leq 2000000:\\ \;\;\;\;b \cdot c\\ \mathbf{elif}\;k \cdot \left(j \cdot 27\right) \leq 10^{+82}:\\ \;\;\;\;-4 \cdot \left(t \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;-27 \cdot \left(k \cdot j\right)\\ \end{array} \]
    5. Add Preprocessing

    Alternative 5: 36.6% 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 := -27 \cdot \left(k \cdot j\right)\\ t_2 := -4 \cdot \left(t \cdot a\right)\\ t_3 := k \cdot \left(j \cdot 27\right)\\ \mathbf{if}\;t\_3 \leq -2 \cdot 10^{+65}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_3 \leq -5 \cdot 10^{-322}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_3 \leq 2000000:\\ \;\;\;\;b \cdot c\\ \mathbf{elif}\;t\_3 \leq 10^{+82}:\\ \;\;\;\;t\_2\\ \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 (* k j))) (t_2 (* -4.0 (* t a))) (t_3 (* k (* j 27.0))))
       (if (<= t_3 -2e+65)
         t_1
         (if (<= t_3 -5e-322)
           t_2
           (if (<= t_3 2000000.0) (* b c) (if (<= t_3 1e+82) t_2 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 * (k * j);
    	double t_2 = -4.0 * (t * a);
    	double t_3 = k * (j * 27.0);
    	double tmp;
    	if (t_3 <= -2e+65) {
    		tmp = t_1;
    	} else if (t_3 <= -5e-322) {
    		tmp = t_2;
    	} else if (t_3 <= 2000000.0) {
    		tmp = b * c;
    	} else if (t_3 <= 1e+82) {
    		tmp = t_2;
    	} 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) :: t_3
        real(8) :: tmp
        t_1 = (-27.0d0) * (k * j)
        t_2 = (-4.0d0) * (t * a)
        t_3 = k * (j * 27.0d0)
        if (t_3 <= (-2d+65)) then
            tmp = t_1
        else if (t_3 <= (-5d-322)) then
            tmp = t_2
        else if (t_3 <= 2000000.0d0) then
            tmp = b * c
        else if (t_3 <= 1d+82) then
            tmp = t_2
        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 * (k * j);
    	double t_2 = -4.0 * (t * a);
    	double t_3 = k * (j * 27.0);
    	double tmp;
    	if (t_3 <= -2e+65) {
    		tmp = t_1;
    	} else if (t_3 <= -5e-322) {
    		tmp = t_2;
    	} else if (t_3 <= 2000000.0) {
    		tmp = b * c;
    	} else if (t_3 <= 1e+82) {
    		tmp = t_2;
    	} 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 * (k * j)
    	t_2 = -4.0 * (t * a)
    	t_3 = k * (j * 27.0)
    	tmp = 0
    	if t_3 <= -2e+65:
    		tmp = t_1
    	elif t_3 <= -5e-322:
    		tmp = t_2
    	elif t_3 <= 2000000.0:
    		tmp = b * c
    	elif t_3 <= 1e+82:
    		tmp = t_2
    	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(k * j))
    	t_2 = Float64(-4.0 * Float64(t * a))
    	t_3 = Float64(k * Float64(j * 27.0))
    	tmp = 0.0
    	if (t_3 <= -2e+65)
    		tmp = t_1;
    	elseif (t_3 <= -5e-322)
    		tmp = t_2;
    	elseif (t_3 <= 2000000.0)
    		tmp = Float64(b * c);
    	elseif (t_3 <= 1e+82)
    		tmp = t_2;
    	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 * (k * j);
    	t_2 = -4.0 * (t * a);
    	t_3 = k * (j * 27.0);
    	tmp = 0.0;
    	if (t_3 <= -2e+65)
    		tmp = t_1;
    	elseif (t_3 <= -5e-322)
    		tmp = t_2;
    	elseif (t_3 <= 2000000.0)
    		tmp = b * c;
    	elseif (t_3 <= 1e+82)
    		tmp = t_2;
    	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[(k * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, -2e+65], t$95$1, If[LessEqual[t$95$3, -5e-322], t$95$2, If[LessEqual[t$95$3, 2000000.0], N[(b * c), $MachinePrecision], If[LessEqual[t$95$3, 1e+82], t$95$2, 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(k \cdot j\right)\\
    t_2 := -4 \cdot \left(t \cdot a\right)\\
    t_3 := k \cdot \left(j \cdot 27\right)\\
    \mathbf{if}\;t\_3 \leq -2 \cdot 10^{+65}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;t\_3 \leq -5 \cdot 10^{-322}:\\
    \;\;\;\;t\_2\\
    
    \mathbf{elif}\;t\_3 \leq 2000000:\\
    \;\;\;\;b \cdot c\\
    
    \mathbf{elif}\;t\_3 \leq 10^{+82}:\\
    \;\;\;\;t\_2\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -2e65 or 9.9999999999999996e81 < (*.f64 (*.f64 j #s(literal 27 binary64)) k)

      1. Initial program 80.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 a around -inf

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

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

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

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

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

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

      if -2e65 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -4.99006e-322 or 2e6 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 9.9999999999999996e81

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

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

          \[\leadsto \color{blue}{-4 \cdot \left(a \cdot t\right)} \]
        2. lower-*.f6434.4

          \[\leadsto -4 \cdot \color{blue}{\left(a \cdot t\right)} \]
      5. Applied rewrites34.4%

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

      if -4.99006e-322 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 2e6

      1. Initial program 87.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-*.f6435.2

          \[\leadsto \color{blue}{b \cdot c} \]
      5. Applied rewrites35.2%

        \[\leadsto \color{blue}{b \cdot c} \]
    3. Recombined 3 regimes into one program.
    4. Final simplification45.8%

      \[\leadsto \begin{array}{l} \mathbf{if}\;k \cdot \left(j \cdot 27\right) \leq -2 \cdot 10^{+65}:\\ \;\;\;\;-27 \cdot \left(k \cdot j\right)\\ \mathbf{elif}\;k \cdot \left(j \cdot 27\right) \leq -5 \cdot 10^{-322}:\\ \;\;\;\;-4 \cdot \left(t \cdot a\right)\\ \mathbf{elif}\;k \cdot \left(j \cdot 27\right) \leq 2000000:\\ \;\;\;\;b \cdot c\\ \mathbf{elif}\;k \cdot \left(j \cdot 27\right) \leq 10^{+82}:\\ \;\;\;\;-4 \cdot \left(t \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;-27 \cdot \left(k \cdot j\right)\\ \end{array} \]
    5. Add Preprocessing

    Alternative 6: 54.8% 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 := k \cdot \left(j \cdot 27\right)\\ \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+97}:\\ \;\;\;\;\mathsf{fma}\left(k \cdot -27, j, -4 \cdot \left(t \cdot a\right)\right)\\ \mathbf{elif}\;t\_1 \leq 4000:\\ \;\;\;\;\mathsf{fma}\left(x, i \cdot -4, b \cdot c\right)\\ \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+129}:\\ \;\;\;\;t \cdot \mathsf{fma}\left(a, -4, 18 \cdot \left(y \cdot \left(z \cdot x\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(k \cdot -27, j, 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 (* k (* j 27.0))))
       (if (<= t_1 -5e+97)
         (fma (* k -27.0) j (* -4.0 (* t a)))
         (if (<= t_1 4000.0)
           (fma x (* i -4.0) (* b c))
           (if (<= t_1 2e+129)
             (* t (fma a -4.0 (* 18.0 (* y (* z x)))))
             (fma (* k -27.0) j (* 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 = k * (j * 27.0);
    	double tmp;
    	if (t_1 <= -5e+97) {
    		tmp = fma((k * -27.0), j, (-4.0 * (t * a)));
    	} else if (t_1 <= 4000.0) {
    		tmp = fma(x, (i * -4.0), (b * c));
    	} else if (t_1 <= 2e+129) {
    		tmp = t * fma(a, -4.0, (18.0 * (y * (z * x))));
    	} else {
    		tmp = fma((k * -27.0), j, (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(k * Float64(j * 27.0))
    	tmp = 0.0
    	if (t_1 <= -5e+97)
    		tmp = fma(Float64(k * -27.0), j, Float64(-4.0 * Float64(t * a)));
    	elseif (t_1 <= 4000.0)
    		tmp = fma(x, Float64(i * -4.0), Float64(b * c));
    	elseif (t_1 <= 2e+129)
    		tmp = Float64(t * fma(a, -4.0, Float64(18.0 * Float64(y * Float64(z * x)))));
    	else
    		tmp = fma(Float64(k * -27.0), j, 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[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+97], N[(N[(k * -27.0), $MachinePrecision] * j + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 4000.0], N[(x * N[(i * -4.0), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+129], N[(t * N[(a * -4.0 + N[(18.0 * N[(y * N[(z * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(k * -27.0), $MachinePrecision] * j + 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 := k \cdot \left(j \cdot 27\right)\\
    \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+97}:\\
    \;\;\;\;\mathsf{fma}\left(k \cdot -27, j, -4 \cdot \left(t \cdot a\right)\right)\\
    
    \mathbf{elif}\;t\_1 \leq 4000:\\
    \;\;\;\;\mathsf{fma}\left(x, i \cdot -4, b \cdot c\right)\\
    
    \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+129}:\\
    \;\;\;\;t \cdot \mathsf{fma}\left(a, -4, 18 \cdot \left(y \cdot \left(z \cdot x\right)\right)\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;\mathsf{fma}\left(k \cdot -27, j, b \cdot c\right)\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 4 regimes
    2. if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -4.99999999999999999e97

      1. Initial program 83.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. Applied rewrites91.7%

        \[\leadsto \color{blue}{\mathsf{fma}\left(k \cdot -27, j, \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)} \]
      4. Taylor expanded in a around inf

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

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

          \[\leadsto \mathsf{fma}\left(k \cdot -27, j, -4 \cdot \color{blue}{\left(t \cdot a\right)}\right) \]
        3. lower-*.f6474.2

          \[\leadsto \mathsf{fma}\left(k \cdot -27, j, -4 \cdot \color{blue}{\left(t \cdot a\right)}\right) \]
      6. Applied rewrites74.2%

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

      if -4.99999999999999999e97 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 4e3

      1. Initial program 85.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 a 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(i \cdot x\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(i \cdot x\right)\right) - 27 \cdot \left(j \cdot k\right)} \]
        2. cancel-sign-sub-invN/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) + \left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)\right)} - 27 \cdot \left(j \cdot k\right) \]
        3. metadata-evalN/A

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

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

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

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

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

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

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

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

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

          if 4e3 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 2e129

          1. Initial program 71.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 a 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(i \cdot x\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(i \cdot x\right)\right) - 27 \cdot \left(j \cdot k\right)} \]
            2. cancel-sign-sub-invN/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) + \left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)\right)} - 27 \cdot \left(j \cdot k\right) \]
            3. metadata-evalN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\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. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 7: 54.7% 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 := k \cdot \left(j \cdot 27\right)\\ \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+97}:\\ \;\;\;\;\mathsf{fma}\left(k \cdot -27, j, -4 \cdot \left(t \cdot a\right)\right)\\ \mathbf{elif}\;t\_1 \leq 4000:\\ \;\;\;\;\mathsf{fma}\left(x, i \cdot -4, b \cdot c\right)\\ \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+129}:\\ \;\;\;\;t \cdot \mathsf{fma}\left(-4, a, 18 \cdot \left(z \cdot \left(x \cdot y\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(k \cdot -27, j, 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 (* k (* j 27.0))))
             (if (<= t_1 -5e+97)
               (fma (* k -27.0) j (* -4.0 (* t a)))
               (if (<= t_1 4000.0)
                 (fma x (* i -4.0) (* b c))
                 (if (<= t_1 2e+129)
                   (* t (fma -4.0 a (* 18.0 (* z (* x y)))))
                   (fma (* k -27.0) j (* 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 = k * (j * 27.0);
          	double tmp;
          	if (t_1 <= -5e+97) {
          		tmp = fma((k * -27.0), j, (-4.0 * (t * a)));
          	} else if (t_1 <= 4000.0) {
          		tmp = fma(x, (i * -4.0), (b * c));
          	} else if (t_1 <= 2e+129) {
          		tmp = t * fma(-4.0, a, (18.0 * (z * (x * y))));
          	} else {
          		tmp = fma((k * -27.0), j, (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(k * Float64(j * 27.0))
          	tmp = 0.0
          	if (t_1 <= -5e+97)
          		tmp = fma(Float64(k * -27.0), j, Float64(-4.0 * Float64(t * a)));
          	elseif (t_1 <= 4000.0)
          		tmp = fma(x, Float64(i * -4.0), Float64(b * c));
          	elseif (t_1 <= 2e+129)
          		tmp = Float64(t * fma(-4.0, a, Float64(18.0 * Float64(z * Float64(x * y)))));
          	else
          		tmp = fma(Float64(k * -27.0), j, 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[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+97], N[(N[(k * -27.0), $MachinePrecision] * j + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 4000.0], N[(x * N[(i * -4.0), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+129], N[(t * N[(-4.0 * a + N[(18.0 * N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(k * -27.0), $MachinePrecision] * j + 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 := k \cdot \left(j \cdot 27\right)\\
          \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+97}:\\
          \;\;\;\;\mathsf{fma}\left(k \cdot -27, j, -4 \cdot \left(t \cdot a\right)\right)\\
          
          \mathbf{elif}\;t\_1 \leq 4000:\\
          \;\;\;\;\mathsf{fma}\left(x, i \cdot -4, b \cdot c\right)\\
          
          \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+129}:\\
          \;\;\;\;t \cdot \mathsf{fma}\left(-4, a, 18 \cdot \left(z \cdot \left(x \cdot y\right)\right)\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;\mathsf{fma}\left(k \cdot -27, j, b \cdot c\right)\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 4 regimes
          2. if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -4.99999999999999999e97

            1. Initial program 83.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. Applied rewrites91.7%

              \[\leadsto \color{blue}{\mathsf{fma}\left(k \cdot -27, j, \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)} \]
            4. Taylor expanded in a around inf

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

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

                \[\leadsto \mathsf{fma}\left(k \cdot -27, j, -4 \cdot \color{blue}{\left(t \cdot a\right)}\right) \]
              3. lower-*.f6474.2

                \[\leadsto \mathsf{fma}\left(k \cdot -27, j, -4 \cdot \color{blue}{\left(t \cdot a\right)}\right) \]
            6. Applied rewrites74.2%

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

            if -4.99999999999999999e97 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 4e3

            1. Initial program 85.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 a 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(i \cdot x\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(i \cdot x\right)\right) - 27 \cdot \left(j \cdot k\right)} \]
              2. cancel-sign-sub-invN/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) + \left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)\right)} - 27 \cdot \left(j \cdot k\right) \]
              3. metadata-evalN/A

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

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

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

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

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

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

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

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

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

                if 4e3 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 2e129

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

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

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

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

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

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

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

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

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

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

                  \[\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. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              Alternative 8: 53.2% 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 := k \cdot \left(j \cdot 27\right)\\ \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+97}:\\ \;\;\;\;\mathsf{fma}\left(k \cdot -27, j, -4 \cdot \left(t \cdot a\right)\right)\\ \mathbf{elif}\;t\_1 \leq 4000:\\ \;\;\;\;\mathsf{fma}\left(x, i \cdot -4, b \cdot c\right)\\ \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+129}:\\ \;\;\;\;\left(t \cdot y\right) \cdot \left(x \cdot \left(z \cdot 18\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(k \cdot -27, j, 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 (* k (* j 27.0))))
                 (if (<= t_1 -5e+97)
                   (fma (* k -27.0) j (* -4.0 (* t a)))
                   (if (<= t_1 4000.0)
                     (fma x (* i -4.0) (* b c))
                     (if (<= t_1 2e+129)
                       (* (* t y) (* x (* z 18.0)))
                       (fma (* k -27.0) j (* 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 = k * (j * 27.0);
              	double tmp;
              	if (t_1 <= -5e+97) {
              		tmp = fma((k * -27.0), j, (-4.0 * (t * a)));
              	} else if (t_1 <= 4000.0) {
              		tmp = fma(x, (i * -4.0), (b * c));
              	} else if (t_1 <= 2e+129) {
              		tmp = (t * y) * (x * (z * 18.0));
              	} else {
              		tmp = fma((k * -27.0), j, (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(k * Float64(j * 27.0))
              	tmp = 0.0
              	if (t_1 <= -5e+97)
              		tmp = fma(Float64(k * -27.0), j, Float64(-4.0 * Float64(t * a)));
              	elseif (t_1 <= 4000.0)
              		tmp = fma(x, Float64(i * -4.0), Float64(b * c));
              	elseif (t_1 <= 2e+129)
              		tmp = Float64(Float64(t * y) * Float64(x * Float64(z * 18.0)));
              	else
              		tmp = fma(Float64(k * -27.0), j, 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[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+97], N[(N[(k * -27.0), $MachinePrecision] * j + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 4000.0], N[(x * N[(i * -4.0), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+129], N[(N[(t * y), $MachinePrecision] * N[(x * N[(z * 18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(k * -27.0), $MachinePrecision] * j + 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 := k \cdot \left(j \cdot 27\right)\\
              \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+97}:\\
              \;\;\;\;\mathsf{fma}\left(k \cdot -27, j, -4 \cdot \left(t \cdot a\right)\right)\\
              
              \mathbf{elif}\;t\_1 \leq 4000:\\
              \;\;\;\;\mathsf{fma}\left(x, i \cdot -4, b \cdot c\right)\\
              
              \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+129}:\\
              \;\;\;\;\left(t \cdot y\right) \cdot \left(x \cdot \left(z \cdot 18\right)\right)\\
              
              \mathbf{else}:\\
              \;\;\;\;\mathsf{fma}\left(k \cdot -27, j, b \cdot c\right)\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 4 regimes
              2. if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -4.99999999999999999e97

                1. Initial program 83.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. Applied rewrites91.7%

                  \[\leadsto \color{blue}{\mathsf{fma}\left(k \cdot -27, j, \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)} \]
                4. Taylor expanded in a around inf

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

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

                    \[\leadsto \mathsf{fma}\left(k \cdot -27, j, -4 \cdot \color{blue}{\left(t \cdot a\right)}\right) \]
                  3. lower-*.f6474.2

                    \[\leadsto \mathsf{fma}\left(k \cdot -27, j, -4 \cdot \color{blue}{\left(t \cdot a\right)}\right) \]
                6. Applied rewrites74.2%

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

                if -4.99999999999999999e97 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 4e3

                1. Initial program 85.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 a 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(i \cdot x\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(i \cdot x\right)\right) - 27 \cdot \left(j \cdot k\right)} \]
                  2. cancel-sign-sub-invN/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) + \left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)\right)} - 27 \cdot \left(j \cdot k\right) \]
                  3. metadata-evalN/A

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

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

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

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

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

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

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

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

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

                    if 4e3 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 2e129

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

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

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

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

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

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

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

                        \[\leadsto 18 \cdot \left(t \cdot \color{blue}{\left(\left(x \cdot y\right) \cdot z\right)}\right) \]
                      5. lower-*.f6435.3

                        \[\leadsto 18 \cdot \left(t \cdot \left(\color{blue}{\left(x \cdot y\right)} \cdot z\right)\right) \]
                    8. Applied rewrites35.3%

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

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

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

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

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

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

                        \[\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. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \color{blue}{\mathsf{fma}\left(k \cdot -27, j, b \cdot c\right)} \]
                    10. Recombined 4 regimes into one program.
                    11. Final simplification63.1%

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

                    Alternative 9: 52.9% 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(k \cdot -27, j, b \cdot c\right)\\ t_2 := k \cdot \left(j \cdot 27\right)\\ \mathbf{if}\;t\_2 \leq -5 \cdot 10^{+97}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq 4000:\\ \;\;\;\;\mathsf{fma}\left(x, i \cdot -4, b \cdot c\right)\\ \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+129}:\\ \;\;\;\;\left(t \cdot y\right) \cdot \left(x \cdot \left(z \cdot 18\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 (* k -27.0) j (* b c))) (t_2 (* k (* j 27.0))))
                       (if (<= t_2 -5e+97)
                         t_1
                         (if (<= t_2 4000.0)
                           (fma x (* i -4.0) (* b c))
                           (if (<= t_2 2e+129) (* (* t y) (* x (* z 18.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((k * -27.0), j, (b * c));
                    	double t_2 = k * (j * 27.0);
                    	double tmp;
                    	if (t_2 <= -5e+97) {
                    		tmp = t_1;
                    	} else if (t_2 <= 4000.0) {
                    		tmp = fma(x, (i * -4.0), (b * c));
                    	} else if (t_2 <= 2e+129) {
                    		tmp = (t * y) * (x * (z * 18.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(k * -27.0), j, Float64(b * c))
                    	t_2 = Float64(k * Float64(j * 27.0))
                    	tmp = 0.0
                    	if (t_2 <= -5e+97)
                    		tmp = t_1;
                    	elseif (t_2 <= 4000.0)
                    		tmp = fma(x, Float64(i * -4.0), Float64(b * c));
                    	elseif (t_2 <= 2e+129)
                    		tmp = Float64(Float64(t * y) * Float64(x * Float64(z * 18.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[(k * -27.0), $MachinePrecision] * j + N[(b * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -5e+97], t$95$1, If[LessEqual[t$95$2, 4000.0], N[(x * N[(i * -4.0), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e+129], N[(N[(t * y), $MachinePrecision] * N[(x * N[(z * 18.0), $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(k \cdot -27, j, b \cdot c\right)\\
                    t_2 := k \cdot \left(j \cdot 27\right)\\
                    \mathbf{if}\;t\_2 \leq -5 \cdot 10^{+97}:\\
                    \;\;\;\;t\_1\\
                    
                    \mathbf{elif}\;t\_2 \leq 4000:\\
                    \;\;\;\;\mathsf{fma}\left(x, i \cdot -4, b \cdot c\right)\\
                    
                    \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+129}:\\
                    \;\;\;\;\left(t \cdot y\right) \cdot \left(x \cdot \left(z \cdot 18\right)\right)\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;t\_1\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 3 regimes
                    2. if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -4.99999999999999999e97 or 2e129 < (*.f64 (*.f64 j #s(literal 27 binary64)) k)

                      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} - \left(j \cdot 27\right) \cdot k \]
                      4. Step-by-step derivation
                        1. lower-*.f6475.9

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

                        \[\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. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if -4.99999999999999999e97 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 4e3

                      1. Initial program 85.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 a 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(i \cdot x\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(i \cdot x\right)\right) - 27 \cdot \left(j \cdot k\right)} \]
                        2. cancel-sign-sub-invN/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) + \left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)\right)} - 27 \cdot \left(j \cdot k\right) \]
                        3. metadata-evalN/A

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

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

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

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

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

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

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

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

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

                          if 4e3 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 2e129

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

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

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

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

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

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

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

                              \[\leadsto 18 \cdot \left(t \cdot \color{blue}{\left(\left(x \cdot y\right) \cdot z\right)}\right) \]
                            5. lower-*.f6435.3

                              \[\leadsto 18 \cdot \left(t \cdot \left(\color{blue}{\left(x \cdot y\right)} \cdot z\right)\right) \]
                          8. Applied rewrites35.3%

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

                              \[\leadsto \left(y \cdot t\right) \cdot \color{blue}{\left(\left(18 \cdot z\right) \cdot x\right)} \]
                          10. Recombined 3 regimes into one program.
                          11. Final simplification63.0%

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

                          Alternative 10: 52.9% 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(k \cdot -27, j, b \cdot c\right)\\ t_2 := k \cdot \left(j \cdot 27\right)\\ \mathbf{if}\;t\_2 \leq -5 \cdot 10^{+97}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{-16}:\\ \;\;\;\;\mathsf{fma}\left(x, i \cdot -4, b \cdot c\right)\\ \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+129}:\\ \;\;\;\;z \cdot \left(x \cdot \left(18 \cdot \left(t \cdot y\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 (* k -27.0) j (* b c))) (t_2 (* k (* j 27.0))))
                             (if (<= t_2 -5e+97)
                               t_1
                               (if (<= t_2 5e-16)
                                 (fma x (* i -4.0) (* b c))
                                 (if (<= t_2 2e+129) (* z (* x (* 18.0 (* t y)))) 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((k * -27.0), j, (b * c));
                          	double t_2 = k * (j * 27.0);
                          	double tmp;
                          	if (t_2 <= -5e+97) {
                          		tmp = t_1;
                          	} else if (t_2 <= 5e-16) {
                          		tmp = fma(x, (i * -4.0), (b * c));
                          	} else if (t_2 <= 2e+129) {
                          		tmp = z * (x * (18.0 * (t * y)));
                          	} 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(k * -27.0), j, Float64(b * c))
                          	t_2 = Float64(k * Float64(j * 27.0))
                          	tmp = 0.0
                          	if (t_2 <= -5e+97)
                          		tmp = t_1;
                          	elseif (t_2 <= 5e-16)
                          		tmp = fma(x, Float64(i * -4.0), Float64(b * c));
                          	elseif (t_2 <= 2e+129)
                          		tmp = Float64(z * Float64(x * Float64(18.0 * Float64(t * y))));
                          	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[(k * -27.0), $MachinePrecision] * j + N[(b * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -5e+97], t$95$1, If[LessEqual[t$95$2, 5e-16], N[(x * N[(i * -4.0), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e+129], N[(z * N[(x * N[(18.0 * N[(t * y), $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(k \cdot -27, j, b \cdot c\right)\\
                          t_2 := k \cdot \left(j \cdot 27\right)\\
                          \mathbf{if}\;t\_2 \leq -5 \cdot 10^{+97}:\\
                          \;\;\;\;t\_1\\
                          
                          \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{-16}:\\
                          \;\;\;\;\mathsf{fma}\left(x, i \cdot -4, b \cdot c\right)\\
                          
                          \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+129}:\\
                          \;\;\;\;z \cdot \left(x \cdot \left(18 \cdot \left(t \cdot y\right)\right)\right)\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;t\_1\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 3 regimes
                          2. if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -4.99999999999999999e97 or 2e129 < (*.f64 (*.f64 j #s(literal 27 binary64)) k)

                            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} - \left(j \cdot 27\right) \cdot k \]
                            4. Step-by-step derivation
                              1. lower-*.f6475.9

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

                              \[\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. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                            if -4.99999999999999999e97 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 5.0000000000000004e-16

                            1. Initial program 85.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 a 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(i \cdot x\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(i \cdot x\right)\right) - 27 \cdot \left(j \cdot k\right)} \]
                              2. cancel-sign-sub-invN/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) + \left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)\right)} - 27 \cdot \left(j \cdot k\right) \]
                              3. metadata-evalN/A

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

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

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

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

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

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

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

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

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

                                if 5.0000000000000004e-16 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 2e129

                                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} \]
                                4. Step-by-step derivation
                                  1. lower-*.f646.2

                                    \[\leadsto \color{blue}{b \cdot c} \]
                                5. Applied rewrites6.2%

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

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

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

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

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

                                    \[\leadsto 18 \cdot \left(t \cdot \color{blue}{\left(\left(x \cdot y\right) \cdot z\right)}\right) \]
                                  5. lower-*.f6434.0

                                    \[\leadsto 18 \cdot \left(t \cdot \left(\color{blue}{\left(x \cdot y\right)} \cdot z\right)\right) \]
                                8. Applied rewrites34.0%

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

                                    \[\leadsto \left(x \cdot \left(18 \cdot \left(y \cdot t\right)\right)\right) \cdot \color{blue}{z} \]
                                10. Recombined 3 regimes into one program.
                                11. Final simplification63.0%

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

                                Alternative 11: 93.0% 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(k \cdot -27, j, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(z \cdot y\right), -4 \cdot a\right), b \cdot c\right)\right)\right)\\ \mathbf{if}\;t \leq -3.8 \cdot 10^{-167}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 6 \cdot 10^{-119}:\\ \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(t \cdot \left(18 \cdot y\right), z, i \cdot -4\right), \mathsf{fma}\left(b, c, \left(k \cdot -27\right) \cdot j\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
                                          (* k -27.0)
                                          j
                                          (fma
                                           x
                                           (* i -4.0)
                                           (fma t (fma x (* 18.0 (* z y)) (* -4.0 a)) (* b c))))))
                                   (if (<= t -3.8e-167)
                                     t_1
                                     (if (<= t 6e-119)
                                       (fma x (fma (* t (* 18.0 y)) z (* i -4.0)) (fma b c (* (* k -27.0) j)))
                                       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((k * -27.0), j, fma(x, (i * -4.0), fma(t, fma(x, (18.0 * (z * y)), (-4.0 * a)), (b * c))));
                                	double tmp;
                                	if (t <= -3.8e-167) {
                                		tmp = t_1;
                                	} else if (t <= 6e-119) {
                                		tmp = fma(x, fma((t * (18.0 * y)), z, (i * -4.0)), fma(b, c, ((k * -27.0) * j)));
                                	} 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(k * -27.0), j, fma(x, Float64(i * -4.0), fma(t, fma(x, Float64(18.0 * Float64(z * y)), Float64(-4.0 * a)), Float64(b * c))))
                                	tmp = 0.0
                                	if (t <= -3.8e-167)
                                		tmp = t_1;
                                	elseif (t <= 6e-119)
                                		tmp = fma(x, fma(Float64(t * Float64(18.0 * y)), z, Float64(i * -4.0)), fma(b, c, Float64(Float64(k * -27.0) * j)));
                                	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[(k * -27.0), $MachinePrecision] * j + N[(x * N[(i * -4.0), $MachinePrecision] + N[(t * N[(x * N[(18.0 * N[(z * y), $MachinePrecision]), $MachinePrecision] + N[(-4.0 * a), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.8e-167], t$95$1, If[LessEqual[t, 6e-119], N[(x * N[(N[(t * N[(18.0 * y), $MachinePrecision]), $MachinePrecision] * z + N[(i * -4.0), $MachinePrecision]), $MachinePrecision] + N[(b * c + N[(N[(k * -27.0), $MachinePrecision] * j), $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(k \cdot -27, j, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \mathsf{fma}\left(x, 18 \cdot \left(z \cdot y\right), -4 \cdot a\right), b \cdot c\right)\right)\right)\\
                                \mathbf{if}\;t \leq -3.8 \cdot 10^{-167}:\\
                                \;\;\;\;t\_1\\
                                
                                \mathbf{elif}\;t \leq 6 \cdot 10^{-119}:\\
                                \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(t \cdot \left(18 \cdot y\right), z, i \cdot -4\right), \mathsf{fma}\left(b, c, \left(k \cdot -27\right) \cdot j\right)\right)\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;t\_1\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 2 regimes
                                2. if t < -3.79999999999999967e-167 or 6.0000000000000004e-119 < t

                                  1. Initial program 82.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. Applied rewrites92.5%

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(k \cdot -27, j, \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.79999999999999967e-167 < t < 6.0000000000000004e-119

                                  1. Initial program 86.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 a 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(i \cdot x\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(i \cdot x\right)\right) - 27 \cdot \left(j \cdot k\right)} \]
                                    2. cancel-sign-sub-invN/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) + \left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)\right)} - 27 \cdot \left(j \cdot k\right) \]
                                    3. metadata-evalN/A

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

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

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

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

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

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

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

                                  Alternative 12: 84.1% 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 := \left(k \cdot -27\right) \cdot j\\ t_2 := \mathsf{fma}\left(b, c, t\_1\right)\\ t_3 := \mathsf{fma}\left(-4, i, t \cdot \left(18 \cdot \left(z \cdot y\right)\right)\right)\\ \mathbf{if}\;x \leq -11200000000:\\ \;\;\;\;\mathsf{fma}\left(x, t\_3, \mathsf{fma}\left(-4, t \cdot a, t\_1\right)\right)\\ \mathbf{elif}\;x \leq -1.95 \cdot 10^{-79}:\\ \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(t \cdot \left(18 \cdot y\right), z, i \cdot -4\right), t\_2\right)\\ \mathbf{elif}\;x \leq 2.8 \cdot 10^{+74}:\\ \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), t\_1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x, t\_3, t\_2\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 (* (* k -27.0) j))
                                          (t_2 (fma b c t_1))
                                          (t_3 (fma -4.0 i (* t (* 18.0 (* z y))))))
                                     (if (<= x -11200000000.0)
                                       (fma x t_3 (fma -4.0 (* t a) t_1))
                                       (if (<= x -1.95e-79)
                                         (fma x (fma (* t (* 18.0 y)) z (* i -4.0)) t_2)
                                         (if (<= x 2.8e+74)
                                           (fma b c (fma -4.0 (fma a t (* x i)) t_1))
                                           (fma x t_3 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 = (k * -27.0) * j;
                                  	double t_2 = fma(b, c, t_1);
                                  	double t_3 = fma(-4.0, i, (t * (18.0 * (z * y))));
                                  	double tmp;
                                  	if (x <= -11200000000.0) {
                                  		tmp = fma(x, t_3, fma(-4.0, (t * a), t_1));
                                  	} else if (x <= -1.95e-79) {
                                  		tmp = fma(x, fma((t * (18.0 * y)), z, (i * -4.0)), t_2);
                                  	} else if (x <= 2.8e+74) {
                                  		tmp = fma(b, c, fma(-4.0, fma(a, t, (x * i)), t_1));
                                  	} else {
                                  		tmp = fma(x, t_3, 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(Float64(k * -27.0) * j)
                                  	t_2 = fma(b, c, t_1)
                                  	t_3 = fma(-4.0, i, Float64(t * Float64(18.0 * Float64(z * y))))
                                  	tmp = 0.0
                                  	if (x <= -11200000000.0)
                                  		tmp = fma(x, t_3, fma(-4.0, Float64(t * a), t_1));
                                  	elseif (x <= -1.95e-79)
                                  		tmp = fma(x, fma(Float64(t * Float64(18.0 * y)), z, Float64(i * -4.0)), t_2);
                                  	elseif (x <= 2.8e+74)
                                  		tmp = fma(b, c, fma(-4.0, fma(a, t, Float64(x * i)), t_1));
                                  	else
                                  		tmp = fma(x, t_3, 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[(N[(k * -27.0), $MachinePrecision] * j), $MachinePrecision]}, Block[{t$95$2 = N[(b * c + t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(-4.0 * i + N[(t * N[(18.0 * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -11200000000.0], N[(x * t$95$3 + N[(-4.0 * N[(t * a), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.95e-79], N[(x * N[(N[(t * N[(18.0 * y), $MachinePrecision]), $MachinePrecision] * z + N[(i * -4.0), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], If[LessEqual[x, 2.8e+74], N[(b * c + N[(-4.0 * N[(a * t + N[(x * i), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], N[(x * t$95$3 + t$95$2), $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(k \cdot -27\right) \cdot j\\
                                  t_2 := \mathsf{fma}\left(b, c, t\_1\right)\\
                                  t_3 := \mathsf{fma}\left(-4, i, t \cdot \left(18 \cdot \left(z \cdot y\right)\right)\right)\\
                                  \mathbf{if}\;x \leq -11200000000:\\
                                  \;\;\;\;\mathsf{fma}\left(x, t\_3, \mathsf{fma}\left(-4, t \cdot a, t\_1\right)\right)\\
                                  
                                  \mathbf{elif}\;x \leq -1.95 \cdot 10^{-79}:\\
                                  \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(t \cdot \left(18 \cdot y\right), z, i \cdot -4\right), t\_2\right)\\
                                  
                                  \mathbf{elif}\;x \leq 2.8 \cdot 10^{+74}:\\
                                  \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), t\_1\right)\right)\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;\mathsf{fma}\left(x, t\_3, t\_2\right)\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 4 regimes
                                  2. if x < -1.12e10

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

                                      \[\leadsto \color{blue}{18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right) - \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. associate-+r+N/A

                                        \[\leadsto 18 \cdot \left(t \cdot \left(x \cdot \left(y \cdot z\right)\right)\right) - \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)} \]
                                      2. associate--r+N/A

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

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

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

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

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

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

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

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

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

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

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

                                    if -1.12e10 < x < -1.95000000000000003e-79

                                    1. Initial program 88.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 a 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(i \cdot x\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(i \cdot x\right)\right) - 27 \cdot \left(j \cdot k\right)} \]
                                      2. cancel-sign-sub-invN/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) + \left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)\right)} - 27 \cdot \left(j \cdot k\right) \]
                                      3. metadata-evalN/A

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

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

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

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

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

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

                                      if -1.95000000000000003e-79 < x < 2.80000000000000002e74

                                      1. Initial program 92.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 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)} \]

                                      if 2.80000000000000002e74 < x

                                      1. Initial program 60.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 a 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(i \cdot x\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(i \cdot x\right)\right) - 27 \cdot \left(j \cdot k\right)} \]
                                        2. cancel-sign-sub-invN/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) + \left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)\right)} - 27 \cdot \left(j \cdot k\right) \]
                                        3. metadata-evalN/A

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

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

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

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

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

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

                                    Alternative 13: 75.8% 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 := \mathsf{fma}\left(x, \mathsf{fma}\left(-4, i, t \cdot \left(18 \cdot \left(z \cdot y\right)\right)\right), b \cdot c\right)\\ \mathbf{if}\;x \leq -1.5 \cdot 10^{+117}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq -1.85 \cdot 10^{-19}:\\ \;\;\;\;\mathsf{fma}\left(k \cdot -27, j, \mathsf{fma}\left(x, i \cdot -4, -4 \cdot \left(t \cdot a\right)\right)\right)\\ \mathbf{elif}\;x \leq -1.3 \cdot 10^{-67}:\\ \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(z \cdot \left(t \cdot y\right), 18, i \cdot -4\right), b \cdot c\right)\\ \mathbf{elif}\;x \leq 3.3 \cdot 10^{+74}:\\ \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, t \cdot a, \left(k \cdot -27\right) \cdot j\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 x (fma -4.0 i (* t (* 18.0 (* z y)))) (* b c))))
                                       (if (<= x -1.5e+117)
                                         t_1
                                         (if (<= x -1.85e-19)
                                           (fma (* k -27.0) j (fma x (* i -4.0) (* -4.0 (* t a))))
                                           (if (<= x -1.3e-67)
                                             (fma x (fma (* z (* t y)) 18.0 (* i -4.0)) (* b c))
                                             (if (<= x 3.3e+74)
                                               (fma b c (fma -4.0 (* t a) (* (* k -27.0) j)))
                                               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(x, fma(-4.0, i, (t * (18.0 * (z * y)))), (b * c));
                                    	double tmp;
                                    	if (x <= -1.5e+117) {
                                    		tmp = t_1;
                                    	} else if (x <= -1.85e-19) {
                                    		tmp = fma((k * -27.0), j, fma(x, (i * -4.0), (-4.0 * (t * a))));
                                    	} else if (x <= -1.3e-67) {
                                    		tmp = fma(x, fma((z * (t * y)), 18.0, (i * -4.0)), (b * c));
                                    	} else if (x <= 3.3e+74) {
                                    		tmp = fma(b, c, fma(-4.0, (t * a), ((k * -27.0) * j)));
                                    	} 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(x, fma(-4.0, i, Float64(t * Float64(18.0 * Float64(z * y)))), Float64(b * c))
                                    	tmp = 0.0
                                    	if (x <= -1.5e+117)
                                    		tmp = t_1;
                                    	elseif (x <= -1.85e-19)
                                    		tmp = fma(Float64(k * -27.0), j, fma(x, Float64(i * -4.0), Float64(-4.0 * Float64(t * a))));
                                    	elseif (x <= -1.3e-67)
                                    		tmp = fma(x, fma(Float64(z * Float64(t * y)), 18.0, Float64(i * -4.0)), Float64(b * c));
                                    	elseif (x <= 3.3e+74)
                                    		tmp = fma(b, c, fma(-4.0, Float64(t * a), Float64(Float64(k * -27.0) * j)));
                                    	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[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.5e+117], t$95$1, If[LessEqual[x, -1.85e-19], N[(N[(k * -27.0), $MachinePrecision] * j + N[(x * N[(i * -4.0), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.3e-67], N[(x * N[(N[(z * N[(t * y), $MachinePrecision]), $MachinePrecision] * 18.0 + N[(i * -4.0), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.3e+74], N[(b * c + N[(-4.0 * N[(t * a), $MachinePrecision] + N[(N[(k * -27.0), $MachinePrecision] * j), $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(x, \mathsf{fma}\left(-4, i, t \cdot \left(18 \cdot \left(z \cdot y\right)\right)\right), b \cdot c\right)\\
                                    \mathbf{if}\;x \leq -1.5 \cdot 10^{+117}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    \mathbf{elif}\;x \leq -1.85 \cdot 10^{-19}:\\
                                    \;\;\;\;\mathsf{fma}\left(k \cdot -27, j, \mathsf{fma}\left(x, i \cdot -4, -4 \cdot \left(t \cdot a\right)\right)\right)\\
                                    
                                    \mathbf{elif}\;x \leq -1.3 \cdot 10^{-67}:\\
                                    \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(z \cdot \left(t \cdot y\right), 18, i \cdot -4\right), b \cdot c\right)\\
                                    
                                    \mathbf{elif}\;x \leq 3.3 \cdot 10^{+74}:\\
                                    \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, t \cdot a, \left(k \cdot -27\right) \cdot j\right)\right)\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 4 regimes
                                    2. if x < -1.5e117 or 3.3000000000000002e74 < x

                                      1. Initial program 67.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 a 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(i \cdot x\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(i \cdot x\right)\right) - 27 \cdot \left(j \cdot k\right)} \]
                                        2. cancel-sign-sub-invN/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) + \left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)\right)} - 27 \cdot \left(j \cdot k\right) \]
                                        3. metadata-evalN/A

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

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

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

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

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

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

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

                                        if -1.5e117 < x < -1.85000000000000003e-19

                                        1. Initial program 92.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. Applied rewrites96.4%

                                          \[\leadsto \color{blue}{\mathsf{fma}\left(k \cdot -27, j, \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)} \]
                                        4. Taylor expanded in a around inf

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

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

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

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

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

                                        if -1.85000000000000003e-19 < x < -1.2999999999999999e-67

                                        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 a 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(i \cdot x\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(i \cdot x\right)\right) - 27 \cdot \left(j \cdot k\right)} \]
                                          2. cancel-sign-sub-invN/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) + \left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)\right)} - 27 \cdot \left(j \cdot k\right) \]
                                          3. metadata-evalN/A

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

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

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

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

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

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

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

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

                                            if -1.2999999999999999e-67 < x < 3.3000000000000002e74

                                            1. Initial program 92.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 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-*.f6484.5

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

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

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

                                          Alternative 14: 85.2% 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 := \left(k \cdot -27\right) \cdot j\\ t_2 := \mathsf{fma}\left(b, c, t\_1\right)\\ \mathbf{if}\;x \leq -1.95 \cdot 10^{-79}:\\ \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(t \cdot \left(18 \cdot y\right), z, i \cdot -4\right), t\_2\right)\\ \mathbf{elif}\;x \leq 2.8 \cdot 10^{+74}:\\ \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), t\_1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(-4, i, t \cdot \left(18 \cdot \left(z \cdot y\right)\right)\right), t\_2\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 (* (* k -27.0) j)) (t_2 (fma b c t_1)))
                                             (if (<= x -1.95e-79)
                                               (fma x (fma (* t (* 18.0 y)) z (* i -4.0)) t_2)
                                               (if (<= x 2.8e+74)
                                                 (fma b c (fma -4.0 (fma a t (* x i)) t_1))
                                                 (fma x (fma -4.0 i (* t (* 18.0 (* z y)))) 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 = (k * -27.0) * j;
                                          	double t_2 = fma(b, c, t_1);
                                          	double tmp;
                                          	if (x <= -1.95e-79) {
                                          		tmp = fma(x, fma((t * (18.0 * y)), z, (i * -4.0)), t_2);
                                          	} else if (x <= 2.8e+74) {
                                          		tmp = fma(b, c, fma(-4.0, fma(a, t, (x * i)), t_1));
                                          	} else {
                                          		tmp = fma(x, fma(-4.0, i, (t * (18.0 * (z * y)))), 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(Float64(k * -27.0) * j)
                                          	t_2 = fma(b, c, t_1)
                                          	tmp = 0.0
                                          	if (x <= -1.95e-79)
                                          		tmp = fma(x, fma(Float64(t * Float64(18.0 * y)), z, Float64(i * -4.0)), t_2);
                                          	elseif (x <= 2.8e+74)
                                          		tmp = fma(b, c, fma(-4.0, fma(a, t, Float64(x * i)), t_1));
                                          	else
                                          		tmp = fma(x, fma(-4.0, i, Float64(t * Float64(18.0 * Float64(z * y)))), 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[(N[(k * -27.0), $MachinePrecision] * j), $MachinePrecision]}, Block[{t$95$2 = N[(b * c + t$95$1), $MachinePrecision]}, If[LessEqual[x, -1.95e-79], N[(x * N[(N[(t * N[(18.0 * y), $MachinePrecision]), $MachinePrecision] * z + N[(i * -4.0), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], If[LessEqual[x, 2.8e+74], N[(b * c + N[(-4.0 * N[(a * t + N[(x * i), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], N[(x * N[(-4.0 * i + N[(t * N[(18.0 * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $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(k \cdot -27\right) \cdot j\\
                                          t_2 := \mathsf{fma}\left(b, c, t\_1\right)\\
                                          \mathbf{if}\;x \leq -1.95 \cdot 10^{-79}:\\
                                          \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(t \cdot \left(18 \cdot y\right), z, i \cdot -4\right), t\_2\right)\\
                                          
                                          \mathbf{elif}\;x \leq 2.8 \cdot 10^{+74}:\\
                                          \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), t\_1\right)\right)\\
                                          
                                          \mathbf{else}:\\
                                          \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(-4, i, t \cdot \left(18 \cdot \left(z \cdot y\right)\right)\right), t\_2\right)\\
                                          
                                          
                                          \end{array}
                                          \end{array}
                                          
                                          Derivation
                                          1. Split input into 3 regimes
                                          2. if x < -1.95000000000000003e-79

                                            1. Initial program 83.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 a 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(i \cdot x\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(i \cdot x\right)\right) - 27 \cdot \left(j \cdot k\right)} \]
                                              2. cancel-sign-sub-invN/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) + \left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)\right)} - 27 \cdot \left(j \cdot k\right) \]
                                              3. metadata-evalN/A

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

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

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

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

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

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

                                              if -1.95000000000000003e-79 < x < 2.80000000000000002e74

                                              1. Initial program 92.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 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)} \]

                                              if 2.80000000000000002e74 < x

                                              1. Initial program 60.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 a 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(i \cdot x\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(i \cdot x\right)\right) - 27 \cdot \left(j \cdot k\right)} \]
                                                2. cancel-sign-sub-invN/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) + \left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)\right)} - 27 \cdot \left(j \cdot k\right) \]
                                                3. metadata-evalN/A

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

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

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

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

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

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

                                            Alternative 15: 84.4% 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 := \left(k \cdot -27\right) \cdot j\\ t_2 := \mathsf{fma}\left(x, \mathsf{fma}\left(-4, i, t \cdot \left(18 \cdot \left(z \cdot y\right)\right)\right), \mathsf{fma}\left(b, c, t\_1\right)\right)\\ \mathbf{if}\;x \leq -1.1 \cdot 10^{+117}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;x \leq 2.8 \cdot 10^{+74}:\\ \;\;\;\;\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 (* (* k -27.0) j))
                                                    (t_2 (fma x (fma -4.0 i (* t (* 18.0 (* z y)))) (fma b c t_1))))
                                               (if (<= x -1.1e+117)
                                                 t_2
                                                 (if (<= x 2.8e+74) (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 = (k * -27.0) * j;
                                            	double t_2 = fma(x, fma(-4.0, i, (t * (18.0 * (z * y)))), fma(b, c, t_1));
                                            	double tmp;
                                            	if (x <= -1.1e+117) {
                                            		tmp = t_2;
                                            	} else if (x <= 2.8e+74) {
                                            		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(Float64(k * -27.0) * j)
                                            	t_2 = fma(x, fma(-4.0, i, Float64(t * Float64(18.0 * Float64(z * y)))), fma(b, c, t_1))
                                            	tmp = 0.0
                                            	if (x <= -1.1e+117)
                                            		tmp = t_2;
                                            	elseif (x <= 2.8e+74)
                                            		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[(N[(k * -27.0), $MachinePrecision] * j), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(-4.0 * i + N[(t * N[(18.0 * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c + t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.1e+117], t$95$2, If[LessEqual[x, 2.8e+74], 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 := \left(k \cdot -27\right) \cdot j\\
                                            t_2 := \mathsf{fma}\left(x, \mathsf{fma}\left(-4, i, t \cdot \left(18 \cdot \left(z \cdot y\right)\right)\right), \mathsf{fma}\left(b, c, t\_1\right)\right)\\
                                            \mathbf{if}\;x \leq -1.1 \cdot 10^{+117}:\\
                                            \;\;\;\;t\_2\\
                                            
                                            \mathbf{elif}\;x \leq 2.8 \cdot 10^{+74}:\\
                                            \;\;\;\;\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 x < -1.10000000000000007e117 or 2.80000000000000002e74 < x

                                              1. Initial program 67.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 a 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(i \cdot x\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(i \cdot x\right)\right) - 27 \cdot \left(j \cdot k\right)} \]
                                                2. cancel-sign-sub-invN/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) + \left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)\right)} - 27 \cdot \left(j \cdot k\right) \]
                                                3. metadata-evalN/A

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

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

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

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

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

                                              if -1.10000000000000007e117 < x < 2.80000000000000002e74

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

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

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

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

                                            Alternative 16: 54.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(k \cdot -27, j, b \cdot c\right)\\ t_2 := k \cdot \left(j \cdot 27\right)\\ \mathbf{if}\;t\_2 \leq -5 \cdot 10^{+97}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq 10^{+112}:\\ \;\;\;\;\mathsf{fma}\left(x, i \cdot -4, 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 (fma (* k -27.0) j (* b c))) (t_2 (* k (* j 27.0))))
                                               (if (<= t_2 -5e+97)
                                                 t_1
                                                 (if (<= t_2 1e+112) (fma x (* i -4.0) (* 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 = fma((k * -27.0), j, (b * c));
                                            	double t_2 = k * (j * 27.0);
                                            	double tmp;
                                            	if (t_2 <= -5e+97) {
                                            		tmp = t_1;
                                            	} else if (t_2 <= 1e+112) {
                                            		tmp = fma(x, (i * -4.0), (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 = fma(Float64(k * -27.0), j, Float64(b * c))
                                            	t_2 = Float64(k * Float64(j * 27.0))
                                            	tmp = 0.0
                                            	if (t_2 <= -5e+97)
                                            		tmp = t_1;
                                            	elseif (t_2 <= 1e+112)
                                            		tmp = fma(x, Float64(i * -4.0), 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[(N[(k * -27.0), $MachinePrecision] * j + N[(b * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -5e+97], t$95$1, If[LessEqual[t$95$2, 1e+112], N[(x * N[(i * -4.0), $MachinePrecision] + 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 := \mathsf{fma}\left(k \cdot -27, j, b \cdot c\right)\\
                                            t_2 := k \cdot \left(j \cdot 27\right)\\
                                            \mathbf{if}\;t\_2 \leq -5 \cdot 10^{+97}:\\
                                            \;\;\;\;t\_1\\
                                            
                                            \mathbf{elif}\;t\_2 \leq 10^{+112}:\\
                                            \;\;\;\;\mathsf{fma}\left(x, i \cdot -4, b \cdot c\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) < -4.99999999999999999e97 or 9.9999999999999993e111 < (*.f64 (*.f64 j #s(literal 27 binary64)) k)

                                              1. Initial program 83.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-*.f6473.8

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

                                                \[\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. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                              if -4.99999999999999999e97 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 9.9999999999999993e111

                                              1. Initial program 83.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 a 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(i \cdot x\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(i \cdot x\right)\right) - 27 \cdot \left(j \cdot k\right)} \]
                                                2. cancel-sign-sub-invN/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) + \left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)\right)} - 27 \cdot \left(j \cdot k\right) \]
                                                3. metadata-evalN/A

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

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

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

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

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

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

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

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

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

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

                                                Alternative 17: 51.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 := k \cdot \left(j \cdot 27\right)\\ \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+159}:\\ \;\;\;\;-27 \cdot \left(k \cdot j\right)\\ \mathbf{elif}\;t\_1 \leq 10^{+112}:\\ \;\;\;\;\mathsf{fma}\left(x, i \cdot -4, b \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;k \cdot \left(-27 \cdot j\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 (* k (* j 27.0))))
                                                   (if (<= t_1 -1e+159)
                                                     (* -27.0 (* k j))
                                                     (if (<= t_1 1e+112) (fma x (* i -4.0) (* b c)) (* k (* -27.0 j))))))
                                                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 = k * (j * 27.0);
                                                	double tmp;
                                                	if (t_1 <= -1e+159) {
                                                		tmp = -27.0 * (k * j);
                                                	} else if (t_1 <= 1e+112) {
                                                		tmp = fma(x, (i * -4.0), (b * c));
                                                	} else {
                                                		tmp = k * (-27.0 * j);
                                                	}
                                                	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(k * Float64(j * 27.0))
                                                	tmp = 0.0
                                                	if (t_1 <= -1e+159)
                                                		tmp = Float64(-27.0 * Float64(k * j));
                                                	elseif (t_1 <= 1e+112)
                                                		tmp = fma(x, Float64(i * -4.0), Float64(b * c));
                                                	else
                                                		tmp = Float64(k * Float64(-27.0 * j));
                                                	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[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+159], N[(-27.0 * N[(k * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+112], N[(x * N[(i * -4.0), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision], N[(k * N[(-27.0 * j), $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 := k \cdot \left(j \cdot 27\right)\\
                                                \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+159}:\\
                                                \;\;\;\;-27 \cdot \left(k \cdot j\right)\\
                                                
                                                \mathbf{elif}\;t\_1 \leq 10^{+112}:\\
                                                \;\;\;\;\mathsf{fma}\left(x, i \cdot -4, b \cdot c\right)\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;k \cdot \left(-27 \cdot j\right)\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 3 regimes
                                                2. if (*.f64 (*.f64 j #s(literal 27 binary64)) k) < -9.9999999999999993e158

                                                  1. Initial program 84.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 a around -inf

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

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

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

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

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

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

                                                  if -9.9999999999999993e158 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 9.9999999999999993e111

                                                  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 a 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(i \cdot x\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(i \cdot x\right)\right) - 27 \cdot \left(j \cdot k\right)} \]
                                                    2. cancel-sign-sub-invN/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) + \left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)\right)} - 27 \cdot \left(j \cdot k\right) \]
                                                    3. metadata-evalN/A

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

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

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

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

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

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

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

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

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

                                                      if 9.9999999999999993e111 < (*.f64 (*.f64 j #s(literal 27 binary64)) k)

                                                      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} \]
                                                      4. Step-by-step derivation
                                                        1. lower-*.f6420.5

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

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

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

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

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

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

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

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

                                                        \[\leadsto \color{blue}{k \cdot \left(-27 \cdot j\right)} \]
                                                    4. Recombined 3 regimes into one program.
                                                    5. Final simplification58.6%

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

                                                    Alternative 18: 73.1% 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} t_1 := x \cdot \mathsf{fma}\left(-4, i, t \cdot \left(18 \cdot \left(z \cdot y\right)\right)\right)\\ \mathbf{if}\;x \leq -7 \cdot 10^{+103}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 1.85 \cdot 10^{-42}:\\ \;\;\;\;\mathsf{fma}\left(k \cdot -27, j, \mathsf{fma}\left(-4, t \cdot a, b \cdot c\right)\right)\\ \mathbf{elif}\;x \leq 1.85 \cdot 10^{+137}:\\ \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(j, k \cdot -27, x \cdot \left(i \cdot -4\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 -4.0 i (* t (* 18.0 (* z y)))))))
                                                       (if (<= x -7e+103)
                                                         t_1
                                                         (if (<= x 1.85e-42)
                                                           (fma (* k -27.0) j (fma -4.0 (* t a) (* b c)))
                                                           (if (<= x 1.85e+137)
                                                             (fma b c (fma j (* k -27.0) (* 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 = x * fma(-4.0, i, (t * (18.0 * (z * y))));
                                                    	double tmp;
                                                    	if (x <= -7e+103) {
                                                    		tmp = t_1;
                                                    	} else if (x <= 1.85e-42) {
                                                    		tmp = fma((k * -27.0), j, fma(-4.0, (t * a), (b * c)));
                                                    	} else if (x <= 1.85e+137) {
                                                    		tmp = fma(b, c, fma(j, (k * -27.0), (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 = Float64(x * fma(-4.0, i, Float64(t * Float64(18.0 * Float64(z * y)))))
                                                    	tmp = 0.0
                                                    	if (x <= -7e+103)
                                                    		tmp = t_1;
                                                    	elseif (x <= 1.85e-42)
                                                    		tmp = fma(Float64(k * -27.0), j, fma(-4.0, Float64(t * a), Float64(b * c)));
                                                    	elseif (x <= 1.85e+137)
                                                    		tmp = fma(b, c, fma(j, Float64(k * -27.0), 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[(x * N[(-4.0 * i + N[(t * N[(18.0 * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -7e+103], t$95$1, If[LessEqual[x, 1.85e-42], N[(N[(k * -27.0), $MachinePrecision] * j + N[(-4.0 * N[(t * a), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.85e+137], N[(b * c + N[(j * N[(k * -27.0), $MachinePrecision] + N[(x * N[(i * -4.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(-4, i, t \cdot \left(18 \cdot \left(z \cdot y\right)\right)\right)\\
                                                    \mathbf{if}\;x \leq -7 \cdot 10^{+103}:\\
                                                    \;\;\;\;t\_1\\
                                                    
                                                    \mathbf{elif}\;x \leq 1.85 \cdot 10^{-42}:\\
                                                    \;\;\;\;\mathsf{fma}\left(k \cdot -27, j, \mathsf{fma}\left(-4, t \cdot a, b \cdot c\right)\right)\\
                                                    
                                                    \mathbf{elif}\;x \leq 1.85 \cdot 10^{+137}:\\
                                                    \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(j, k \cdot -27, x \cdot \left(i \cdot -4\right)\right)\right)\\
                                                    
                                                    \mathbf{else}:\\
                                                    \;\;\;\;t\_1\\
                                                    
                                                    
                                                    \end{array}
                                                    \end{array}
                                                    
                                                    Derivation
                                                    1. Split input into 3 regimes
                                                    2. if x < -7e103 or 1.8500000000000001e137 < x

                                                      1. Initial program 66.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-*.f6485.5

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

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

                                                      if -7e103 < x < 1.8500000000000001e-42

                                                      1. Initial program 91.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. Applied rewrites88.3%

                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(k \cdot -27, j, \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)} \]
                                                      4. Taylor expanded in x around 0

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

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

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

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

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

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

                                                      if 1.8500000000000001e-42 < x < 1.8500000000000001e137

                                                      1. Initial program 87.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 a 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(i \cdot x\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(i \cdot x\right)\right) - 27 \cdot \left(j \cdot k\right)} \]
                                                        2. cancel-sign-sub-invN/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) + \left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)\right)} - 27 \cdot \left(j \cdot k\right) \]
                                                        3. metadata-evalN/A

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

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

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

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

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

                                                          \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(t \cdot \left(18 \cdot y\right), \color{blue}{z}, i \cdot -4\right), \mathsf{fma}\left(b, c, j \cdot \left(k \cdot -27\right)\right)\right) \]
                                                        2. 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)} \]
                                                        3. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                      Alternative 19: 73.0% 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} t_1 := x \cdot \mathsf{fma}\left(-4, i, t \cdot \left(18 \cdot \left(z \cdot y\right)\right)\right)\\ \mathbf{if}\;x \leq -7 \cdot 10^{+103}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 1.85 \cdot 10^{-42}:\\ \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, t \cdot a, \left(k \cdot -27\right) \cdot j\right)\right)\\ \mathbf{elif}\;x \leq 1.85 \cdot 10^{+137}:\\ \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(j, k \cdot -27, x \cdot \left(i \cdot -4\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 -4.0 i (* t (* 18.0 (* z y)))))))
                                                         (if (<= x -7e+103)
                                                           t_1
                                                           (if (<= x 1.85e-42)
                                                             (fma b c (fma -4.0 (* t a) (* (* k -27.0) j)))
                                                             (if (<= x 1.85e+137)
                                                               (fma b c (fma j (* k -27.0) (* 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 = x * fma(-4.0, i, (t * (18.0 * (z * y))));
                                                      	double tmp;
                                                      	if (x <= -7e+103) {
                                                      		tmp = t_1;
                                                      	} else if (x <= 1.85e-42) {
                                                      		tmp = fma(b, c, fma(-4.0, (t * a), ((k * -27.0) * j)));
                                                      	} else if (x <= 1.85e+137) {
                                                      		tmp = fma(b, c, fma(j, (k * -27.0), (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 = Float64(x * fma(-4.0, i, Float64(t * Float64(18.0 * Float64(z * y)))))
                                                      	tmp = 0.0
                                                      	if (x <= -7e+103)
                                                      		tmp = t_1;
                                                      	elseif (x <= 1.85e-42)
                                                      		tmp = fma(b, c, fma(-4.0, Float64(t * a), Float64(Float64(k * -27.0) * j)));
                                                      	elseif (x <= 1.85e+137)
                                                      		tmp = fma(b, c, fma(j, Float64(k * -27.0), 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[(x * N[(-4.0 * i + N[(t * N[(18.0 * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -7e+103], t$95$1, If[LessEqual[x, 1.85e-42], N[(b * c + N[(-4.0 * N[(t * a), $MachinePrecision] + N[(N[(k * -27.0), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.85e+137], N[(b * c + N[(j * N[(k * -27.0), $MachinePrecision] + N[(x * N[(i * -4.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(-4, i, t \cdot \left(18 \cdot \left(z \cdot y\right)\right)\right)\\
                                                      \mathbf{if}\;x \leq -7 \cdot 10^{+103}:\\
                                                      \;\;\;\;t\_1\\
                                                      
                                                      \mathbf{elif}\;x \leq 1.85 \cdot 10^{-42}:\\
                                                      \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, t \cdot a, \left(k \cdot -27\right) \cdot j\right)\right)\\
                                                      
                                                      \mathbf{elif}\;x \leq 1.85 \cdot 10^{+137}:\\
                                                      \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(j, k \cdot -27, x \cdot \left(i \cdot -4\right)\right)\right)\\
                                                      
                                                      \mathbf{else}:\\
                                                      \;\;\;\;t\_1\\
                                                      
                                                      
                                                      \end{array}
                                                      \end{array}
                                                      
                                                      Derivation
                                                      1. Split input into 3 regimes
                                                      2. if x < -7e103 or 1.8500000000000001e137 < x

                                                        1. Initial program 66.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-*.f6485.5

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

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

                                                        if -7e103 < x < 1.8500000000000001e-42

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

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

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

                                                        if 1.8500000000000001e-42 < x < 1.8500000000000001e137

                                                        1. Initial program 87.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 a 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(i \cdot x\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(i \cdot x\right)\right) - 27 \cdot \left(j \cdot k\right)} \]
                                                          2. cancel-sign-sub-invN/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) + \left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)\right)} - 27 \cdot \left(j \cdot k\right) \]
                                                          3. metadata-evalN/A

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

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

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

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

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

                                                            \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(t \cdot \left(18 \cdot y\right), \color{blue}{z}, i \cdot -4\right), \mathsf{fma}\left(b, c, j \cdot \left(k \cdot -27\right)\right)\right) \]
                                                          2. 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)} \]
                                                          3. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                        Alternative 20: 73.0% 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} t_1 := \left(k \cdot -27\right) \cdot j\\ t_2 := x \cdot \mathsf{fma}\left(-4, i, t \cdot \left(18 \cdot \left(z \cdot y\right)\right)\right)\\ \mathbf{if}\;x \leq -7 \cdot 10^{+103}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;x \leq 1.85 \cdot 10^{-42}:\\ \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, t \cdot a, t\_1\right)\right)\\ \mathbf{elif}\;x \leq 1.85 \cdot 10^{+137}:\\ \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, 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 (* (* k -27.0) j))
                                                                (t_2 (* x (fma -4.0 i (* t (* 18.0 (* z y)))))))
                                                           (if (<= x -7e+103)
                                                             t_2
                                                             (if (<= x 1.85e-42)
                                                               (fma b c (fma -4.0 (* t a) t_1))
                                                               (if (<= x 1.85e+137) (fma b c (fma -4.0 (* 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 = (k * -27.0) * j;
                                                        	double t_2 = x * fma(-4.0, i, (t * (18.0 * (z * y))));
                                                        	double tmp;
                                                        	if (x <= -7e+103) {
                                                        		tmp = t_2;
                                                        	} else if (x <= 1.85e-42) {
                                                        		tmp = fma(b, c, fma(-4.0, (t * a), t_1));
                                                        	} else if (x <= 1.85e+137) {
                                                        		tmp = fma(b, c, fma(-4.0, (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(Float64(k * -27.0) * j)
                                                        	t_2 = Float64(x * fma(-4.0, i, Float64(t * Float64(18.0 * Float64(z * y)))))
                                                        	tmp = 0.0
                                                        	if (x <= -7e+103)
                                                        		tmp = t_2;
                                                        	elseif (x <= 1.85e-42)
                                                        		tmp = fma(b, c, fma(-4.0, Float64(t * a), t_1));
                                                        	elseif (x <= 1.85e+137)
                                                        		tmp = fma(b, c, fma(-4.0, 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[(N[(k * -27.0), $MachinePrecision] * j), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(-4.0 * i + N[(t * N[(18.0 * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -7e+103], t$95$2, If[LessEqual[x, 1.85e-42], N[(b * c + N[(-4.0 * N[(t * a), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.85e+137], N[(b * c + N[(-4.0 * N[(x * i), $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 := \left(k \cdot -27\right) \cdot j\\
                                                        t_2 := x \cdot \mathsf{fma}\left(-4, i, t \cdot \left(18 \cdot \left(z \cdot y\right)\right)\right)\\
                                                        \mathbf{if}\;x \leq -7 \cdot 10^{+103}:\\
                                                        \;\;\;\;t\_2\\
                                                        
                                                        \mathbf{elif}\;x \leq 1.85 \cdot 10^{-42}:\\
                                                        \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, t \cdot a, t\_1\right)\right)\\
                                                        
                                                        \mathbf{elif}\;x \leq 1.85 \cdot 10^{+137}:\\
                                                        \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, x \cdot i, t\_1\right)\right)\\
                                                        
                                                        \mathbf{else}:\\
                                                        \;\;\;\;t\_2\\
                                                        
                                                        
                                                        \end{array}
                                                        \end{array}
                                                        
                                                        Derivation
                                                        1. Split input into 3 regimes
                                                        2. if x < -7e103 or 1.8500000000000001e137 < x

                                                          1. Initial program 66.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-*.f6485.5

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

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

                                                          if -7e103 < x < 1.8500000000000001e-42

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

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

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

                                                          if 1.8500000000000001e-42 < x < 1.8500000000000001e137

                                                          1. Initial program 87.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-*.f6483.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 rewrites83.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)} \]
                                                        3. Recombined 3 regimes into one program.
                                                        4. Final simplification81.7%

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

                                                        Alternative 21: 81.7% 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} t_1 := \mathsf{fma}\left(x, \mathsf{fma}\left(-4, i, t \cdot \left(18 \cdot \left(z \cdot y\right)\right)\right), b \cdot c\right)\\ \mathbf{if}\;x \leq -1.75 \cdot 10^{+117}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 2 \cdot 10^{+137}:\\ \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), \left(k \cdot -27\right) \cdot j\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 x (fma -4.0 i (* t (* 18.0 (* z y)))) (* b c))))
                                                           (if (<= x -1.75e+117)
                                                             t_1
                                                             (if (<= x 2e+137)
                                                               (fma b c (fma -4.0 (fma a t (* x i)) (* (* k -27.0) j)))
                                                               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(x, fma(-4.0, i, (t * (18.0 * (z * y)))), (b * c));
                                                        	double tmp;
                                                        	if (x <= -1.75e+117) {
                                                        		tmp = t_1;
                                                        	} else if (x <= 2e+137) {
                                                        		tmp = fma(b, c, fma(-4.0, fma(a, t, (x * i)), ((k * -27.0) * j)));
                                                        	} 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(x, fma(-4.0, i, Float64(t * Float64(18.0 * Float64(z * y)))), Float64(b * c))
                                                        	tmp = 0.0
                                                        	if (x <= -1.75e+117)
                                                        		tmp = t_1;
                                                        	elseif (x <= 2e+137)
                                                        		tmp = fma(b, c, fma(-4.0, fma(a, t, Float64(x * i)), Float64(Float64(k * -27.0) * j)));
                                                        	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[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.75e+117], t$95$1, If[LessEqual[x, 2e+137], N[(b * c + N[(-4.0 * N[(a * t + N[(x * i), $MachinePrecision]), $MachinePrecision] + N[(N[(k * -27.0), $MachinePrecision] * j), $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(x, \mathsf{fma}\left(-4, i, t \cdot \left(18 \cdot \left(z \cdot y\right)\right)\right), b \cdot c\right)\\
                                                        \mathbf{if}\;x \leq -1.75 \cdot 10^{+117}:\\
                                                        \;\;\;\;t\_1\\
                                                        
                                                        \mathbf{elif}\;x \leq 2 \cdot 10^{+137}:\\
                                                        \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, \mathsf{fma}\left(a, t, x \cdot i\right), \left(k \cdot -27\right) \cdot j\right)\right)\\
                                                        
                                                        \mathbf{else}:\\
                                                        \;\;\;\;t\_1\\
                                                        
                                                        
                                                        \end{array}
                                                        \end{array}
                                                        
                                                        Derivation
                                                        1. Split input into 2 regimes
                                                        2. if x < -1.74999999999999991e117 or 2.0000000000000001e137 < x

                                                          1. Initial program 65.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 a 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(i \cdot x\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(i \cdot x\right)\right) - 27 \cdot \left(j \cdot k\right)} \]
                                                            2. cancel-sign-sub-invN/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) + \left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)\right)} - 27 \cdot \left(j \cdot k\right) \]
                                                            3. metadata-evalN/A

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

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

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

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

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

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

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

                                                            if -1.74999999999999991e117 < x < 2.0000000000000001e137

                                                            1. Initial program 90.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 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-*.f6487.8

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

                                                              \[\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)} \]
                                                          8. Recombined 2 regimes into one program.
                                                          9. Final simplification88.6%

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

                                                          Alternative 22: 58.2% 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} t_1 := x \cdot \mathsf{fma}\left(-4, i, t \cdot \left(18 \cdot \left(z \cdot y\right)\right)\right)\\ \mathbf{if}\;x \leq -1.55 \cdot 10^{+100}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq -2000000000:\\ \;\;\;\;\mathsf{fma}\left(k \cdot -27, j, -4 \cdot \left(t \cdot a\right)\right)\\ \mathbf{elif}\;x \leq 1.65 \cdot 10^{+137}:\\ \;\;\;\;\mathsf{fma}\left(k \cdot -27, j, 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 -4.0 i (* t (* 18.0 (* z y)))))))
                                                             (if (<= x -1.55e+100)
                                                               t_1
                                                               (if (<= x -2000000000.0)
                                                                 (fma (* k -27.0) j (* -4.0 (* t a)))
                                                                 (if (<= x 1.65e+137) (fma (* k -27.0) j (* 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(-4.0, i, (t * (18.0 * (z * y))));
                                                          	double tmp;
                                                          	if (x <= -1.55e+100) {
                                                          		tmp = t_1;
                                                          	} else if (x <= -2000000000.0) {
                                                          		tmp = fma((k * -27.0), j, (-4.0 * (t * a)));
                                                          	} else if (x <= 1.65e+137) {
                                                          		tmp = fma((k * -27.0), j, (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(-4.0, i, Float64(t * Float64(18.0 * Float64(z * y)))))
                                                          	tmp = 0.0
                                                          	if (x <= -1.55e+100)
                                                          		tmp = t_1;
                                                          	elseif (x <= -2000000000.0)
                                                          		tmp = fma(Float64(k * -27.0), j, Float64(-4.0 * Float64(t * a)));
                                                          	elseif (x <= 1.65e+137)
                                                          		tmp = fma(Float64(k * -27.0), j, 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[(-4.0 * i + N[(t * N[(18.0 * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.55e+100], t$95$1, If[LessEqual[x, -2000000000.0], N[(N[(k * -27.0), $MachinePrecision] * j + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.65e+137], N[(N[(k * -27.0), $MachinePrecision] * j + 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(-4, i, t \cdot \left(18 \cdot \left(z \cdot y\right)\right)\right)\\
                                                          \mathbf{if}\;x \leq -1.55 \cdot 10^{+100}:\\
                                                          \;\;\;\;t\_1\\
                                                          
                                                          \mathbf{elif}\;x \leq -2000000000:\\
                                                          \;\;\;\;\mathsf{fma}\left(k \cdot -27, j, -4 \cdot \left(t \cdot a\right)\right)\\
                                                          
                                                          \mathbf{elif}\;x \leq 1.65 \cdot 10^{+137}:\\
                                                          \;\;\;\;\mathsf{fma}\left(k \cdot -27, j, b \cdot c\right)\\
                                                          
                                                          \mathbf{else}:\\
                                                          \;\;\;\;t\_1\\
                                                          
                                                          
                                                          \end{array}
                                                          \end{array}
                                                          
                                                          Derivation
                                                          1. Split input into 3 regimes
                                                          2. if x < -1.55000000000000003e100 or 1.65000000000000001e137 < x

                                                            1. Initial program 66.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-*.f6485.5

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

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

                                                            if -1.55000000000000003e100 < x < -2e9

                                                            1. Initial program 90.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. Applied rewrites95.4%

                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(k \cdot -27, j, \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)} \]
                                                            4. Taylor expanded in a around inf

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

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

                                                                \[\leadsto \mathsf{fma}\left(k \cdot -27, j, -4 \cdot \color{blue}{\left(t \cdot a\right)}\right) \]
                                                              3. lower-*.f6473.4

                                                                \[\leadsto \mathsf{fma}\left(k \cdot -27, j, -4 \cdot \color{blue}{\left(t \cdot a\right)}\right) \]
                                                            6. Applied rewrites73.4%

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

                                                            if -2e9 < x < 1.65000000000000001e137

                                                            1. Initial program 90.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} - \left(j \cdot 27\right) \cdot k \]
                                                            4. Step-by-step derivation
                                                              1. lower-*.f6462.1

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

                                                              \[\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. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                          Alternative 23: 76.1% 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} t_1 := \mathsf{fma}\left(x, \mathsf{fma}\left(-4, i, t \cdot \left(18 \cdot \left(z \cdot y\right)\right)\right), b \cdot c\right)\\ \mathbf{if}\;x \leq -1.55 \cdot 10^{+100}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 3.3 \cdot 10^{+74}:\\ \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, t \cdot a, \left(k \cdot -27\right) \cdot j\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 x (fma -4.0 i (* t (* 18.0 (* z y)))) (* b c))))
                                                             (if (<= x -1.55e+100)
                                                               t_1
                                                               (if (<= x 3.3e+74) (fma b c (fma -4.0 (* t a) (* (* k -27.0) j))) 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(x, fma(-4.0, i, (t * (18.0 * (z * y)))), (b * c));
                                                          	double tmp;
                                                          	if (x <= -1.55e+100) {
                                                          		tmp = t_1;
                                                          	} else if (x <= 3.3e+74) {
                                                          		tmp = fma(b, c, fma(-4.0, (t * a), ((k * -27.0) * j)));
                                                          	} 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(x, fma(-4.0, i, Float64(t * Float64(18.0 * Float64(z * y)))), Float64(b * c))
                                                          	tmp = 0.0
                                                          	if (x <= -1.55e+100)
                                                          		tmp = t_1;
                                                          	elseif (x <= 3.3e+74)
                                                          		tmp = fma(b, c, fma(-4.0, Float64(t * a), Float64(Float64(k * -27.0) * j)));
                                                          	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[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.55e+100], t$95$1, If[LessEqual[x, 3.3e+74], N[(b * c + N[(-4.0 * N[(t * a), $MachinePrecision] + N[(N[(k * -27.0), $MachinePrecision] * j), $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(x, \mathsf{fma}\left(-4, i, t \cdot \left(18 \cdot \left(z \cdot y\right)\right)\right), b \cdot c\right)\\
                                                          \mathbf{if}\;x \leq -1.55 \cdot 10^{+100}:\\
                                                          \;\;\;\;t\_1\\
                                                          
                                                          \mathbf{elif}\;x \leq 3.3 \cdot 10^{+74}:\\
                                                          \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, t \cdot a, \left(k \cdot -27\right) \cdot j\right)\right)\\
                                                          
                                                          \mathbf{else}:\\
                                                          \;\;\;\;t\_1\\
                                                          
                                                          
                                                          \end{array}
                                                          \end{array}
                                                          
                                                          Derivation
                                                          1. Split input into 2 regimes
                                                          2. if x < -1.55000000000000003e100 or 3.3000000000000002e74 < x

                                                            1. Initial program 68.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 a 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(i \cdot x\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(i \cdot x\right)\right) - 27 \cdot \left(j \cdot k\right)} \]
                                                              2. cancel-sign-sub-invN/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) + \left(\mathsf{neg}\left(4\right)\right) \cdot \left(i \cdot x\right)\right)} - 27 \cdot \left(j \cdot k\right) \]
                                                              3. metadata-evalN/A

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

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

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

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

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

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

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

                                                              if -1.55000000000000003e100 < x < 3.3000000000000002e74

                                                              1. Initial program 91.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 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-*.f6479.2

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

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

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

                                                            Alternative 24: 36.0% 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(k \cdot j\right)\\ t_2 := k \cdot \left(j \cdot 27\right)\\ \mathbf{if}\;t\_2 \leq -1 \cdot 10^{+159}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{-16}:\\ \;\;\;\;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 (* k j))) (t_2 (* k (* j 27.0))))
                                                               (if (<= t_2 -1e+159) t_1 (if (<= t_2 5e-16) (* 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 * (k * j);
                                                            	double t_2 = k * (j * 27.0);
                                                            	double tmp;
                                                            	if (t_2 <= -1e+159) {
                                                            		tmp = t_1;
                                                            	} else if (t_2 <= 5e-16) {
                                                            		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) * (k * j)
                                                                t_2 = k * (j * 27.0d0)
                                                                if (t_2 <= (-1d+159)) then
                                                                    tmp = t_1
                                                                else if (t_2 <= 5d-16) 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 * (k * j);
                                                            	double t_2 = k * (j * 27.0);
                                                            	double tmp;
                                                            	if (t_2 <= -1e+159) {
                                                            		tmp = t_1;
                                                            	} else if (t_2 <= 5e-16) {
                                                            		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 * (k * j)
                                                            	t_2 = k * (j * 27.0)
                                                            	tmp = 0
                                                            	if t_2 <= -1e+159:
                                                            		tmp = t_1
                                                            	elif t_2 <= 5e-16:
                                                            		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(k * j))
                                                            	t_2 = Float64(k * Float64(j * 27.0))
                                                            	tmp = 0.0
                                                            	if (t_2 <= -1e+159)
                                                            		tmp = t_1;
                                                            	elseif (t_2 <= 5e-16)
                                                            		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 * (k * j);
                                                            	t_2 = k * (j * 27.0);
                                                            	tmp = 0.0;
                                                            	if (t_2 <= -1e+159)
                                                            		tmp = t_1;
                                                            	elseif (t_2 <= 5e-16)
                                                            		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[(k * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(j * 27.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e+159], t$95$1, If[LessEqual[t$95$2, 5e-16], 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(k \cdot j\right)\\
                                                            t_2 := k \cdot \left(j \cdot 27\right)\\
                                                            \mathbf{if}\;t\_2 \leq -1 \cdot 10^{+159}:\\
                                                            \;\;\;\;t\_1\\
                                                            
                                                            \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{-16}:\\
                                                            \;\;\;\;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.9999999999999993e158 or 5.0000000000000004e-16 < (*.f64 (*.f64 j #s(literal 27 binary64)) k)

                                                              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. Taylor expanded in a around -inf

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

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

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

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

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

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

                                                              if -9.9999999999999993e158 < (*.f64 (*.f64 j #s(literal 27 binary64)) k) < 5.0000000000000004e-16

                                                              1. Initial program 84.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-*.f6430.1

                                                                  \[\leadsto \color{blue}{b \cdot c} \]
                                                              5. Applied rewrites30.1%

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

                                                              \[\leadsto \begin{array}{l} \mathbf{if}\;k \cdot \left(j \cdot 27\right) \leq -1 \cdot 10^{+159}:\\ \;\;\;\;-27 \cdot \left(k \cdot j\right)\\ \mathbf{elif}\;k \cdot \left(j \cdot 27\right) \leq 5 \cdot 10^{-16}:\\ \;\;\;\;b \cdot c\\ \mathbf{else}:\\ \;\;\;\;-27 \cdot \left(k \cdot j\right)\\ \end{array} \]
                                                            5. Add Preprocessing

                                                            Alternative 25: 72.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(z \cdot y\right)\right)\right)\\ \mathbf{if}\;x \leq -7 \cdot 10^{+103}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 1.65 \cdot 10^{+137}:\\ \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, t \cdot a, \left(k \cdot -27\right) \cdot j\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 (* z y)))))))
                                                               (if (<= x -7e+103)
                                                                 t_1
                                                                 (if (<= x 1.65e+137)
                                                                   (fma b c (fma -4.0 (* t a) (* (* k -27.0) j)))
                                                                   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 * (z * y))));
                                                            	double tmp;
                                                            	if (x <= -7e+103) {
                                                            		tmp = t_1;
                                                            	} else if (x <= 1.65e+137) {
                                                            		tmp = fma(b, c, fma(-4.0, (t * a), ((k * -27.0) * j)));
                                                            	} 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(z * y)))))
                                                            	tmp = 0.0
                                                            	if (x <= -7e+103)
                                                            		tmp = t_1;
                                                            	elseif (x <= 1.65e+137)
                                                            		tmp = fma(b, c, fma(-4.0, Float64(t * a), Float64(Float64(k * -27.0) * j)));
                                                            	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[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -7e+103], t$95$1, If[LessEqual[x, 1.65e+137], N[(b * c + N[(-4.0 * N[(t * a), $MachinePrecision] + N[(N[(k * -27.0), $MachinePrecision] * j), $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(z \cdot y\right)\right)\right)\\
                                                            \mathbf{if}\;x \leq -7 \cdot 10^{+103}:\\
                                                            \;\;\;\;t\_1\\
                                                            
                                                            \mathbf{elif}\;x \leq 1.65 \cdot 10^{+137}:\\
                                                            \;\;\;\;\mathsf{fma}\left(b, c, \mathsf{fma}\left(-4, t \cdot a, \left(k \cdot -27\right) \cdot j\right)\right)\\
                                                            
                                                            \mathbf{else}:\\
                                                            \;\;\;\;t\_1\\
                                                            
                                                            
                                                            \end{array}
                                                            \end{array}
                                                            
                                                            Derivation
                                                            1. Split input into 2 regimes
                                                            2. if x < -7e103 or 1.65000000000000001e137 < x

                                                              1. Initial program 66.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-*.f6485.5

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

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

                                                              if -7e103 < x < 1.65000000000000001e137

                                                              1. Initial program 90.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-*.f6477.6

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

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

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

                                                            Alternative 26: 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.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-*.f6423.4

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

                                                              \[\leadsto \color{blue}{b \cdot c} \]
                                                            6. Add Preprocessing

                                                            Developer Target 1: 89.3% 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 2024226 
                                                            (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)))