Linear.Matrix:det33 from linear-1.19.1.3

Percentage Accurate: 73.8% → 84.8%
Time: 15.7s
Alternatives: 24
Speedup: 0.9×

Specification

?
\[\begin{array}{l} \\ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (+
  (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
  (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 24 alternatives:

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

Initial Program: 73.8% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (+
  (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
  (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

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

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

Alternative 1: 84.8% accurate, 0.3× speedup?

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

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

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

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


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

    1. Initial program 93.7%

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

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

    1. Initial program 81.6%

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

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

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

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

    1. Initial program 0.0%

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

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

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

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

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

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

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

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

      Alternative 2: 85.3% accurate, 0.5× speedup?

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

        1. Initial program 90.5%

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

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

        1. Initial program 0.0%

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

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

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

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

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

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

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

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

          Alternative 3: 74.4% accurate, 0.9× speedup?

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

            1. Initial program 58.4%

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

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

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

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

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

              if -2.55e157 < z < -3.59999999999999996e31

              1. Initial program 58.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if -3.59999999999999996e31 < z < 1.6500000000000001e108

              1. Initial program 81.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if 1.6500000000000001e108 < z

              1. Initial program 74.5%

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

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

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

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

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

                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.55 \cdot 10^{+157}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, b, x \cdot y\right), z, \mathsf{fma}\left(-j, y, a \cdot b\right) \cdot i\right)\\ \mathbf{elif}\;z \leq -3.6 \cdot 10^{+31}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot t\right), c, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\ \mathbf{elif}\;z \leq 1.65 \cdot 10^{+108}:\\ \;\;\;\;\mathsf{fma}\left(-a, t \cdot x, \mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b\right) + j \cdot \left(c \cdot t - i \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, b, x \cdot y\right), z, \mathsf{fma}\left(-t, x, i \cdot b\right) \cdot a\right)\\ \end{array} \]
              9. Add Preprocessing

              Alternative 4: 78.3% accurate, 0.9× speedup?

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

                1. Initial program 56.6%

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

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

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

                if -1.79999999999999989e156 < z < 9.8e105

                1. Initial program 78.6%

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

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

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

                if 9.8e105 < z

                1. Initial program 71.1%

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

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

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

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

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

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

                Alternative 5: 76.2% accurate, 0.9× speedup?

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

                  1. Initial program 70.7%

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

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

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

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

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

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

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

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

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

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

                  if -9.5000000000000001e24 < t < 5.5999999999999996e-43

                  1. Initial program 78.3%

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

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

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

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

                Alternative 6: 69.5% accurate, 1.0× speedup?

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

                  1. Initial program 70.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if -7.20000000000000028e184 < t < -2.0000000000000002e54

                  1. Initial program 69.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if -2.0000000000000002e54 < t < -8.49999999999999988e-132

                  1. Initial program 75.5%

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

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

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

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

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

                    if -8.49999999999999988e-132 < t < 6.99999999999999994e-43

                    1. Initial program 77.3%

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

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

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

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

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

                      if 6.99999999999999994e-43 < t

                      1. Initial program 73.0%

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -7.2 \cdot 10^{+184}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot t\right), j, \mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\right)\\ \mathbf{elif}\;t \leq -2 \cdot 10^{+54}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot t\right), c, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\ \mathbf{elif}\;t \leq -8.5 \cdot 10^{-132}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-t, x, i \cdot b\right), a, \mathsf{fma}\left(-z, b, t \cdot j\right) \cdot c\right)\\ \mathbf{elif}\;t \leq 7 \cdot 10^{-43}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, b, x \cdot y\right), z, \mathsf{fma}\left(-j, y, a \cdot b\right) \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot a\right), b, \mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\right)\\ \end{array} \]
                    9. Add Preprocessing

                    Alternative 7: 68.4% accurate, 1.0× speedup?

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

                      1. Initial program 70.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if -7.20000000000000028e184 < t < -2.0000000000000002e54 or 6.8000000000000005e-35 < t

                      1. Initial program 71.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if -2.0000000000000002e54 < t < -8.49999999999999988e-132

                      1. Initial program 75.5%

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

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

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

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

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

                        if -8.49999999999999988e-132 < t < 6.8000000000000005e-35

                        1. Initial program 77.5%

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

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

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

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

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

                          \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -7.2 \cdot 10^{+184}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot t\right), j, \mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\right)\\ \mathbf{elif}\;t \leq -2 \cdot 10^{+54}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot t\right), c, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\ \mathbf{elif}\;t \leq -8.5 \cdot 10^{-132}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-t, x, i \cdot b\right), a, \mathsf{fma}\left(-z, b, t \cdot j\right) \cdot c\right)\\ \mathbf{elif}\;t \leq 6.8 \cdot 10^{-35}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, b, x \cdot y\right), z, \mathsf{fma}\left(-j, y, a \cdot b\right) \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot t\right), c, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\ \end{array} \]
                        9. Add Preprocessing

                        Alternative 8: 69.4% accurate, 1.0× speedup?

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

                          1. Initial program 70.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          if -4.4e184 < t < -8.49999999999999988e-132 or 3.29999999999999983e-34 < t < 3.39999999999999987e182

                          1. Initial program 74.0%

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

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

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

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

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

                            if -8.49999999999999988e-132 < t < 3.29999999999999983e-34

                            1. Initial program 77.5%

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

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

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

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

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

                              if 3.39999999999999987e182 < t

                              1. Initial program 68.4%

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

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -4.4 \cdot 10^{+184}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot t\right), j, \mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\right)\\ \mathbf{elif}\;t \leq -8.5 \cdot 10^{-132}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-t, x, i \cdot b\right), a, \mathsf{fma}\left(-z, b, t \cdot j\right) \cdot c\right)\\ \mathbf{elif}\;t \leq 3.3 \cdot 10^{-34}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, b, x \cdot y\right), z, \mathsf{fma}\left(-j, y, a \cdot b\right) \cdot i\right)\\ \mathbf{elif}\;t \leq 3.4 \cdot 10^{+182}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-t, x, i \cdot b\right), a, \mathsf{fma}\left(-z, b, t \cdot j\right) \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\\ \end{array} \]
                            9. Add Preprocessing

                            Alternative 9: 58.2% accurate, 1.1× speedup?

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

                              1. Initial program 70.6%

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

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

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

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

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

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

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

                                  if -1.32e-48 < i < -1.9999999999999999e-225 or 1.5e-156 < i < 3.0000000000000001e-27

                                  1. Initial program 79.3%

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

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

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

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

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

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

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

                                      if -1.9999999999999999e-225 < i < 1.5e-156

                                      1. Initial program 77.8%

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

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

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

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

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

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

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

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

                                      \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -1.32 \cdot 10^{-48}:\\ \;\;\;\;\mathsf{fma}\left(y \cdot x, z, \mathsf{fma}\left(-j, y, a \cdot b\right) \cdot i\right)\\ \mathbf{elif}\;i \leq -2 \cdot 10^{-225}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-t, x, i \cdot b\right), a, \left(\left(-b\right) \cdot z\right) \cdot c\right)\\ \mathbf{elif}\;i \leq 1.5 \cdot 10^{-156}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y + j \cdot \left(c \cdot t - i \cdot y\right)\\ \mathbf{elif}\;i \leq 3 \cdot 10^{-27}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-t, x, i \cdot b\right), a, \left(\left(-b\right) \cdot z\right) \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y \cdot x, z, \mathsf{fma}\left(-j, y, a \cdot b\right) \cdot i\right)\\ \end{array} \]
                                    6. Add Preprocessing

                                    Alternative 10: 69.4% accurate, 1.1× speedup?

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

                                      1. Initial program 73.4%

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

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

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

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

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

                                        if -8.49999999999999988e-132 < t < 3.29999999999999983e-34

                                        1. Initial program 77.5%

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

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

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

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

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

                                          if 3.39999999999999987e182 < t

                                          1. Initial program 68.4%

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

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

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -8.5 \cdot 10^{-132}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-t, x, i \cdot b\right), a, \mathsf{fma}\left(-z, b, t \cdot j\right) \cdot c\right)\\ \mathbf{elif}\;t \leq 3.3 \cdot 10^{-34}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, b, x \cdot y\right), z, \mathsf{fma}\left(-j, y, a \cdot b\right) \cdot i\right)\\ \mathbf{elif}\;t \leq 3.4 \cdot 10^{+182}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-t, x, i \cdot b\right), a, \mathsf{fma}\left(-z, b, t \cdot j\right) \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\\ \end{array} \]
                                        9. Add Preprocessing

                                        Alternative 11: 69.4% accurate, 1.2× speedup?

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

                                          1. Initial program 76.0%

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

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

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

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

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

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

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

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

                                          if -2.9e20 < j < 1.15e161

                                          1. Initial program 74.5%

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

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

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

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

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

                                            if 1.15e161 < j

                                            1. Initial program 72.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            Alternative 12: 60.6% accurate, 1.3× speedup?

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

                                              1. Initial program 65.4%

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

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

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

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

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

                                                if -1.1000000000000001e42 < c < 2.1000000000000001e108

                                                1. Initial program 79.4%

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

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

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

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

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

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

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

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

                                                  Alternative 13: 60.9% accurate, 1.5× speedup?

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

                                                    1. Initial program 65.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                    if -1.1000000000000001e42 < c < 2.1000000000000001e108

                                                    1. Initial program 79.4%

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

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

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

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

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

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

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

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

                                                      Alternative 14: 52.6% accurate, 1.6× speedup?

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

                                                        1. Initial program 62.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                        if -3.7e20 < a < 2.20000000000000014e-303

                                                        1. Initial program 83.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                        if 2.20000000000000014e-303 < a < 8.19999999999999939e109

                                                        1. Initial program 81.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -3.7 \cdot 10^{+20}:\\ \;\;\;\;\mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\ \mathbf{elif}\;a \leq 2.2 \cdot 10^{-303}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{elif}\;a \leq 8.2 \cdot 10^{+109}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\ \end{array} \]
                                                      5. Add Preprocessing

                                                      Alternative 15: 43.4% accurate, 1.6× speedup?

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

                                                        1. Initial program 71.3%

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

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

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

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

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

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

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

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

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

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

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

                                                        if -7.49999999999999969e-79 < t < 7.00000000000000038e-269

                                                        1. Initial program 81.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                          if 7.00000000000000038e-269 < t < 4.5000000000000003e-80

                                                          1. Initial program 75.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -7.5 \cdot 10^{-79}:\\ \;\;\;\;\mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\\ \mathbf{elif}\;t \leq 7 \cdot 10^{-269}:\\ \;\;\;\;\left(\left(-c\right) \cdot z\right) \cdot b\\ \mathbf{elif}\;t \leq 4.5 \cdot 10^{-80}:\\ \;\;\;\;\left(a \cdot b\right) \cdot i\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\\ \end{array} \]
                                                          10. Add Preprocessing

                                                          Alternative 16: 29.5% accurate, 1.7× speedup?

                                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(a \cdot b\right) \cdot i\\ \mathbf{if}\;b \leq -7.8 \cdot 10^{+189}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq -5.5 \cdot 10^{-33}:\\ \;\;\;\;\left(\left(-b\right) \cdot c\right) \cdot z\\ \mathbf{elif}\;b \leq -7 \cdot 10^{-255}:\\ \;\;\;\;\left(t \cdot j\right) \cdot c\\ \mathbf{elif}\;b \leq 1.8 \cdot 10^{+66}:\\ \;\;\;\;\left(x \cdot y\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                          (FPCore (x y z t a b c i j)
                                                           :precision binary64
                                                           (let* ((t_1 (* (* a b) i)))
                                                             (if (<= b -7.8e+189)
                                                               t_1
                                                               (if (<= b -5.5e-33)
                                                                 (* (* (- b) c) z)
                                                                 (if (<= b -7e-255)
                                                                   (* (* t j) c)
                                                                   (if (<= b 1.8e+66) (* (* x y) z) t_1))))))
                                                          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                          	double t_1 = (a * b) * i;
                                                          	double tmp;
                                                          	if (b <= -7.8e+189) {
                                                          		tmp = t_1;
                                                          	} else if (b <= -5.5e-33) {
                                                          		tmp = (-b * c) * z;
                                                          	} else if (b <= -7e-255) {
                                                          		tmp = (t * j) * c;
                                                          	} else if (b <= 1.8e+66) {
                                                          		tmp = (x * y) * z;
                                                          	} else {
                                                          		tmp = t_1;
                                                          	}
                                                          	return tmp;
                                                          }
                                                          
                                                          module fmin_fmax_functions
                                                              implicit none
                                                              private
                                                              public fmax
                                                              public fmin
                                                          
                                                              interface fmax
                                                                  module procedure fmax88
                                                                  module procedure fmax44
                                                                  module procedure fmax84
                                                                  module procedure fmax48
                                                              end interface
                                                              interface fmin
                                                                  module procedure fmin88
                                                                  module procedure fmin44
                                                                  module procedure fmin84
                                                                  module procedure fmin48
                                                              end interface
                                                          contains
                                                              real(8) function fmax88(x, y) result (res)
                                                                  real(8), intent (in) :: x
                                                                  real(8), intent (in) :: y
                                                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                              end function
                                                              real(4) function fmax44(x, y) result (res)
                                                                  real(4), intent (in) :: x
                                                                  real(4), intent (in) :: y
                                                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                              end function
                                                              real(8) function fmax84(x, y) result(res)
                                                                  real(8), intent (in) :: x
                                                                  real(4), intent (in) :: y
                                                                  res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                              end function
                                                              real(8) function fmax48(x, y) result(res)
                                                                  real(4), intent (in) :: x
                                                                  real(8), intent (in) :: y
                                                                  res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                              end function
                                                              real(8) function fmin88(x, y) result (res)
                                                                  real(8), intent (in) :: x
                                                                  real(8), intent (in) :: y
                                                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                              end function
                                                              real(4) function fmin44(x, y) result (res)
                                                                  real(4), intent (in) :: x
                                                                  real(4), intent (in) :: y
                                                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                              end function
                                                              real(8) function fmin84(x, y) result(res)
                                                                  real(8), intent (in) :: x
                                                                  real(4), intent (in) :: y
                                                                  res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                              end function
                                                              real(8) function fmin48(x, y) result(res)
                                                                  real(4), intent (in) :: x
                                                                  real(8), intent (in) :: y
                                                                  res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                              end function
                                                          end module
                                                          
                                                          real(8) function code(x, y, z, t, a, b, c, i, j)
                                                          use fmin_fmax_functions
                                                              real(8), intent (in) :: x
                                                              real(8), intent (in) :: y
                                                              real(8), intent (in) :: z
                                                              real(8), intent (in) :: t
                                                              real(8), intent (in) :: a
                                                              real(8), intent (in) :: b
                                                              real(8), intent (in) :: c
                                                              real(8), intent (in) :: i
                                                              real(8), intent (in) :: j
                                                              real(8) :: t_1
                                                              real(8) :: tmp
                                                              t_1 = (a * b) * i
                                                              if (b <= (-7.8d+189)) then
                                                                  tmp = t_1
                                                              else if (b <= (-5.5d-33)) then
                                                                  tmp = (-b * c) * z
                                                              else if (b <= (-7d-255)) then
                                                                  tmp = (t * j) * c
                                                              else if (b <= 1.8d+66) then
                                                                  tmp = (x * y) * z
                                                              else
                                                                  tmp = t_1
                                                              end if
                                                              code = tmp
                                                          end function
                                                          
                                                          public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                          	double t_1 = (a * b) * i;
                                                          	double tmp;
                                                          	if (b <= -7.8e+189) {
                                                          		tmp = t_1;
                                                          	} else if (b <= -5.5e-33) {
                                                          		tmp = (-b * c) * z;
                                                          	} else if (b <= -7e-255) {
                                                          		tmp = (t * j) * c;
                                                          	} else if (b <= 1.8e+66) {
                                                          		tmp = (x * y) * z;
                                                          	} else {
                                                          		tmp = t_1;
                                                          	}
                                                          	return tmp;
                                                          }
                                                          
                                                          def code(x, y, z, t, a, b, c, i, j):
                                                          	t_1 = (a * b) * i
                                                          	tmp = 0
                                                          	if b <= -7.8e+189:
                                                          		tmp = t_1
                                                          	elif b <= -5.5e-33:
                                                          		tmp = (-b * c) * z
                                                          	elif b <= -7e-255:
                                                          		tmp = (t * j) * c
                                                          	elif b <= 1.8e+66:
                                                          		tmp = (x * y) * z
                                                          	else:
                                                          		tmp = t_1
                                                          	return tmp
                                                          
                                                          function code(x, y, z, t, a, b, c, i, j)
                                                          	t_1 = Float64(Float64(a * b) * i)
                                                          	tmp = 0.0
                                                          	if (b <= -7.8e+189)
                                                          		tmp = t_1;
                                                          	elseif (b <= -5.5e-33)
                                                          		tmp = Float64(Float64(Float64(-b) * c) * z);
                                                          	elseif (b <= -7e-255)
                                                          		tmp = Float64(Float64(t * j) * c);
                                                          	elseif (b <= 1.8e+66)
                                                          		tmp = Float64(Float64(x * y) * z);
                                                          	else
                                                          		tmp = t_1;
                                                          	end
                                                          	return tmp
                                                          end
                                                          
                                                          function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                          	t_1 = (a * b) * i;
                                                          	tmp = 0.0;
                                                          	if (b <= -7.8e+189)
                                                          		tmp = t_1;
                                                          	elseif (b <= -5.5e-33)
                                                          		tmp = (-b * c) * z;
                                                          	elseif (b <= -7e-255)
                                                          		tmp = (t * j) * c;
                                                          	elseif (b <= 1.8e+66)
                                                          		tmp = (x * y) * z;
                                                          	else
                                                          		tmp = t_1;
                                                          	end
                                                          	tmp_2 = tmp;
                                                          end
                                                          
                                                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(a * b), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[b, -7.8e+189], t$95$1, If[LessEqual[b, -5.5e-33], N[(N[((-b) * c), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[b, -7e-255], N[(N[(t * j), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[b, 1.8e+66], N[(N[(x * y), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]]
                                                          
                                                          \begin{array}{l}
                                                          
                                                          \\
                                                          \begin{array}{l}
                                                          t_1 := \left(a \cdot b\right) \cdot i\\
                                                          \mathbf{if}\;b \leq -7.8 \cdot 10^{+189}:\\
                                                          \;\;\;\;t\_1\\
                                                          
                                                          \mathbf{elif}\;b \leq -5.5 \cdot 10^{-33}:\\
                                                          \;\;\;\;\left(\left(-b\right) \cdot c\right) \cdot z\\
                                                          
                                                          \mathbf{elif}\;b \leq -7 \cdot 10^{-255}:\\
                                                          \;\;\;\;\left(t \cdot j\right) \cdot c\\
                                                          
                                                          \mathbf{elif}\;b \leq 1.8 \cdot 10^{+66}:\\
                                                          \;\;\;\;\left(x \cdot y\right) \cdot z\\
                                                          
                                                          \mathbf{else}:\\
                                                          \;\;\;\;t\_1\\
                                                          
                                                          
                                                          \end{array}
                                                          \end{array}
                                                          
                                                          Derivation
                                                          1. Split input into 4 regimes
                                                          2. if b < -7.7999999999999999e189 or 1.8e66 < b

                                                            1. Initial program 80.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                              if -7.7999999999999999e189 < b < -5.5e-33

                                                              1. Initial program 78.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                if -5.5e-33 < b < -6.99999999999999958e-255

                                                                1. Initial program 72.8%

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

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

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

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

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

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

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

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

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

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

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

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

                                                                    \[\leadsto \left(t \cdot j\right) \cdot \color{blue}{c} \]

                                                                  if -6.99999999999999958e-255 < b < 1.8e66

                                                                  1. Initial program 68.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                    \[\leadsto \left(x \cdot y\right) \cdot z \]
                                                                  9. Step-by-step derivation
                                                                    1. Applied rewrites33.8%

                                                                      \[\leadsto \left(x \cdot y\right) \cdot z \]
                                                                  10. Recombined 4 regimes into one program.
                                                                  11. Final simplification41.6%

                                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -7.8 \cdot 10^{+189}:\\ \;\;\;\;\left(a \cdot b\right) \cdot i\\ \mathbf{elif}\;b \leq -5.5 \cdot 10^{-33}:\\ \;\;\;\;\left(\left(-b\right) \cdot c\right) \cdot z\\ \mathbf{elif}\;b \leq -7 \cdot 10^{-255}:\\ \;\;\;\;\left(t \cdot j\right) \cdot c\\ \mathbf{elif}\;b \leq 1.8 \cdot 10^{+66}:\\ \;\;\;\;\left(x \cdot y\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\left(a \cdot b\right) \cdot i\\ \end{array} \]
                                                                  12. Add Preprocessing

                                                                  Alternative 17: 51.6% accurate, 2.0× speedup?

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

                                                                    1. Initial program 70.5%

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

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

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

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

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

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

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

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

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

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

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

                                                                    if -6.8000000000000003e-47 < t < 1.44999999999999997e-38

                                                                    1. Initial program 79.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                  Alternative 18: 29.2% accurate, 2.0× speedup?

                                                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -1.7 \cdot 10^{-8}:\\ \;\;\;\;\left(b \cdot i\right) \cdot a\\ \mathbf{elif}\;a \leq 4.4 \cdot 10^{-123}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{elif}\;a \leq 1.08 \cdot 10^{+175}:\\ \;\;\;\;\left(a \cdot b\right) \cdot i\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-a\right) \cdot x\right) \cdot t\\ \end{array} \end{array} \]
                                                                  (FPCore (x y z t a b c i j)
                                                                   :precision binary64
                                                                   (if (<= a -1.7e-8)
                                                                     (* (* b i) a)
                                                                     (if (<= a 4.4e-123)
                                                                       (* (* z y) x)
                                                                       (if (<= a 1.08e+175) (* (* a b) i) (* (* (- a) x) t)))))
                                                                  double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                  	double tmp;
                                                                  	if (a <= -1.7e-8) {
                                                                  		tmp = (b * i) * a;
                                                                  	} else if (a <= 4.4e-123) {
                                                                  		tmp = (z * y) * x;
                                                                  	} else if (a <= 1.08e+175) {
                                                                  		tmp = (a * b) * i;
                                                                  	} else {
                                                                  		tmp = (-a * x) * t;
                                                                  	}
                                                                  	return tmp;
                                                                  }
                                                                  
                                                                  module fmin_fmax_functions
                                                                      implicit none
                                                                      private
                                                                      public fmax
                                                                      public fmin
                                                                  
                                                                      interface fmax
                                                                          module procedure fmax88
                                                                          module procedure fmax44
                                                                          module procedure fmax84
                                                                          module procedure fmax48
                                                                      end interface
                                                                      interface fmin
                                                                          module procedure fmin88
                                                                          module procedure fmin44
                                                                          module procedure fmin84
                                                                          module procedure fmin48
                                                                      end interface
                                                                  contains
                                                                      real(8) function fmax88(x, y) result (res)
                                                                          real(8), intent (in) :: x
                                                                          real(8), intent (in) :: y
                                                                          res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                      end function
                                                                      real(4) function fmax44(x, y) result (res)
                                                                          real(4), intent (in) :: x
                                                                          real(4), intent (in) :: y
                                                                          res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                      end function
                                                                      real(8) function fmax84(x, y) result(res)
                                                                          real(8), intent (in) :: x
                                                                          real(4), intent (in) :: y
                                                                          res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                      end function
                                                                      real(8) function fmax48(x, y) result(res)
                                                                          real(4), intent (in) :: x
                                                                          real(8), intent (in) :: y
                                                                          res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                      end function
                                                                      real(8) function fmin88(x, y) result (res)
                                                                          real(8), intent (in) :: x
                                                                          real(8), intent (in) :: y
                                                                          res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                      end function
                                                                      real(4) function fmin44(x, y) result (res)
                                                                          real(4), intent (in) :: x
                                                                          real(4), intent (in) :: y
                                                                          res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                      end function
                                                                      real(8) function fmin84(x, y) result(res)
                                                                          real(8), intent (in) :: x
                                                                          real(4), intent (in) :: y
                                                                          res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                      end function
                                                                      real(8) function fmin48(x, y) result(res)
                                                                          real(4), intent (in) :: x
                                                                          real(8), intent (in) :: y
                                                                          res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                      end function
                                                                  end module
                                                                  
                                                                  real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                  use fmin_fmax_functions
                                                                      real(8), intent (in) :: x
                                                                      real(8), intent (in) :: y
                                                                      real(8), intent (in) :: z
                                                                      real(8), intent (in) :: t
                                                                      real(8), intent (in) :: a
                                                                      real(8), intent (in) :: b
                                                                      real(8), intent (in) :: c
                                                                      real(8), intent (in) :: i
                                                                      real(8), intent (in) :: j
                                                                      real(8) :: tmp
                                                                      if (a <= (-1.7d-8)) then
                                                                          tmp = (b * i) * a
                                                                      else if (a <= 4.4d-123) then
                                                                          tmp = (z * y) * x
                                                                      else if (a <= 1.08d+175) then
                                                                          tmp = (a * b) * i
                                                                      else
                                                                          tmp = (-a * x) * t
                                                                      end if
                                                                      code = tmp
                                                                  end function
                                                                  
                                                                  public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                  	double tmp;
                                                                  	if (a <= -1.7e-8) {
                                                                  		tmp = (b * i) * a;
                                                                  	} else if (a <= 4.4e-123) {
                                                                  		tmp = (z * y) * x;
                                                                  	} else if (a <= 1.08e+175) {
                                                                  		tmp = (a * b) * i;
                                                                  	} else {
                                                                  		tmp = (-a * x) * t;
                                                                  	}
                                                                  	return tmp;
                                                                  }
                                                                  
                                                                  def code(x, y, z, t, a, b, c, i, j):
                                                                  	tmp = 0
                                                                  	if a <= -1.7e-8:
                                                                  		tmp = (b * i) * a
                                                                  	elif a <= 4.4e-123:
                                                                  		tmp = (z * y) * x
                                                                  	elif a <= 1.08e+175:
                                                                  		tmp = (a * b) * i
                                                                  	else:
                                                                  		tmp = (-a * x) * t
                                                                  	return tmp
                                                                  
                                                                  function code(x, y, z, t, a, b, c, i, j)
                                                                  	tmp = 0.0
                                                                  	if (a <= -1.7e-8)
                                                                  		tmp = Float64(Float64(b * i) * a);
                                                                  	elseif (a <= 4.4e-123)
                                                                  		tmp = Float64(Float64(z * y) * x);
                                                                  	elseif (a <= 1.08e+175)
                                                                  		tmp = Float64(Float64(a * b) * i);
                                                                  	else
                                                                  		tmp = Float64(Float64(Float64(-a) * x) * t);
                                                                  	end
                                                                  	return tmp
                                                                  end
                                                                  
                                                                  function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                  	tmp = 0.0;
                                                                  	if (a <= -1.7e-8)
                                                                  		tmp = (b * i) * a;
                                                                  	elseif (a <= 4.4e-123)
                                                                  		tmp = (z * y) * x;
                                                                  	elseif (a <= 1.08e+175)
                                                                  		tmp = (a * b) * i;
                                                                  	else
                                                                  		tmp = (-a * x) * t;
                                                                  	end
                                                                  	tmp_2 = tmp;
                                                                  end
                                                                  
                                                                  code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.7e-8], N[(N[(b * i), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[a, 4.4e-123], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[a, 1.08e+175], N[(N[(a * b), $MachinePrecision] * i), $MachinePrecision], N[(N[((-a) * x), $MachinePrecision] * t), $MachinePrecision]]]]
                                                                  
                                                                  \begin{array}{l}
                                                                  
                                                                  \\
                                                                  \begin{array}{l}
                                                                  \mathbf{if}\;a \leq -1.7 \cdot 10^{-8}:\\
                                                                  \;\;\;\;\left(b \cdot i\right) \cdot a\\
                                                                  
                                                                  \mathbf{elif}\;a \leq 4.4 \cdot 10^{-123}:\\
                                                                  \;\;\;\;\left(z \cdot y\right) \cdot x\\
                                                                  
                                                                  \mathbf{elif}\;a \leq 1.08 \cdot 10^{+175}:\\
                                                                  \;\;\;\;\left(a \cdot b\right) \cdot i\\
                                                                  
                                                                  \mathbf{else}:\\
                                                                  \;\;\;\;\left(\left(-a\right) \cdot x\right) \cdot t\\
                                                                  
                                                                  
                                                                  \end{array}
                                                                  \end{array}
                                                                  
                                                                  Derivation
                                                                  1. Split input into 4 regimes
                                                                  2. if a < -1.7e-8

                                                                    1. Initial program 61.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                      if -1.7e-8 < a < 4.40000000000000013e-123

                                                                      1. Initial program 84.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                        if 4.40000000000000013e-123 < a < 1.08e175

                                                                        1. Initial program 76.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                          if 1.08e175 < a

                                                                          1. Initial program 65.2%

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

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

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

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

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

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

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

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

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

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

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

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

                                                                              \[\leadsto \left(\left(-a\right) \cdot x\right) \cdot t \]
                                                                          8. Recombined 4 regimes into one program.
                                                                          9. Final simplification39.5%

                                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.7 \cdot 10^{-8}:\\ \;\;\;\;\left(b \cdot i\right) \cdot a\\ \mathbf{elif}\;a \leq 4.4 \cdot 10^{-123}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{elif}\;a \leq 1.08 \cdot 10^{+175}:\\ \;\;\;\;\left(a \cdot b\right) \cdot i\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-a\right) \cdot x\right) \cdot t\\ \end{array} \]
                                                                          10. Add Preprocessing

                                                                          Alternative 19: 29.0% accurate, 2.0× speedup?

                                                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -1.7 \cdot 10^{-8}:\\ \;\;\;\;\left(b \cdot i\right) \cdot a\\ \mathbf{elif}\;a \leq 4.4 \cdot 10^{-123}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{elif}\;a \leq 1.08 \cdot 10^{+175}:\\ \;\;\;\;\left(a \cdot b\right) \cdot i\\ \mathbf{else}:\\ \;\;\;\;\left(-a\right) \cdot \left(x \cdot t\right)\\ \end{array} \end{array} \]
                                                                          (FPCore (x y z t a b c i j)
                                                                           :precision binary64
                                                                           (if (<= a -1.7e-8)
                                                                             (* (* b i) a)
                                                                             (if (<= a 4.4e-123)
                                                                               (* (* z y) x)
                                                                               (if (<= a 1.08e+175) (* (* a b) i) (* (- a) (* x t))))))
                                                                          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                          	double tmp;
                                                                          	if (a <= -1.7e-8) {
                                                                          		tmp = (b * i) * a;
                                                                          	} else if (a <= 4.4e-123) {
                                                                          		tmp = (z * y) * x;
                                                                          	} else if (a <= 1.08e+175) {
                                                                          		tmp = (a * b) * i;
                                                                          	} else {
                                                                          		tmp = -a * (x * t);
                                                                          	}
                                                                          	return tmp;
                                                                          }
                                                                          
                                                                          module fmin_fmax_functions
                                                                              implicit none
                                                                              private
                                                                              public fmax
                                                                              public fmin
                                                                          
                                                                              interface fmax
                                                                                  module procedure fmax88
                                                                                  module procedure fmax44
                                                                                  module procedure fmax84
                                                                                  module procedure fmax48
                                                                              end interface
                                                                              interface fmin
                                                                                  module procedure fmin88
                                                                                  module procedure fmin44
                                                                                  module procedure fmin84
                                                                                  module procedure fmin48
                                                                              end interface
                                                                          contains
                                                                              real(8) function fmax88(x, y) result (res)
                                                                                  real(8), intent (in) :: x
                                                                                  real(8), intent (in) :: y
                                                                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                              end function
                                                                              real(4) function fmax44(x, y) result (res)
                                                                                  real(4), intent (in) :: x
                                                                                  real(4), intent (in) :: y
                                                                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                              end function
                                                                              real(8) function fmax84(x, y) result(res)
                                                                                  real(8), intent (in) :: x
                                                                                  real(4), intent (in) :: y
                                                                                  res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                              end function
                                                                              real(8) function fmax48(x, y) result(res)
                                                                                  real(4), intent (in) :: x
                                                                                  real(8), intent (in) :: y
                                                                                  res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                              end function
                                                                              real(8) function fmin88(x, y) result (res)
                                                                                  real(8), intent (in) :: x
                                                                                  real(8), intent (in) :: y
                                                                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                              end function
                                                                              real(4) function fmin44(x, y) result (res)
                                                                                  real(4), intent (in) :: x
                                                                                  real(4), intent (in) :: y
                                                                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                              end function
                                                                              real(8) function fmin84(x, y) result(res)
                                                                                  real(8), intent (in) :: x
                                                                                  real(4), intent (in) :: y
                                                                                  res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                              end function
                                                                              real(8) function fmin48(x, y) result(res)
                                                                                  real(4), intent (in) :: x
                                                                                  real(8), intent (in) :: y
                                                                                  res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                              end function
                                                                          end module
                                                                          
                                                                          real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                          use fmin_fmax_functions
                                                                              real(8), intent (in) :: x
                                                                              real(8), intent (in) :: y
                                                                              real(8), intent (in) :: z
                                                                              real(8), intent (in) :: t
                                                                              real(8), intent (in) :: a
                                                                              real(8), intent (in) :: b
                                                                              real(8), intent (in) :: c
                                                                              real(8), intent (in) :: i
                                                                              real(8), intent (in) :: j
                                                                              real(8) :: tmp
                                                                              if (a <= (-1.7d-8)) then
                                                                                  tmp = (b * i) * a
                                                                              else if (a <= 4.4d-123) then
                                                                                  tmp = (z * y) * x
                                                                              else if (a <= 1.08d+175) then
                                                                                  tmp = (a * b) * i
                                                                              else
                                                                                  tmp = -a * (x * t)
                                                                              end if
                                                                              code = tmp
                                                                          end function
                                                                          
                                                                          public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                          	double tmp;
                                                                          	if (a <= -1.7e-8) {
                                                                          		tmp = (b * i) * a;
                                                                          	} else if (a <= 4.4e-123) {
                                                                          		tmp = (z * y) * x;
                                                                          	} else if (a <= 1.08e+175) {
                                                                          		tmp = (a * b) * i;
                                                                          	} else {
                                                                          		tmp = -a * (x * t);
                                                                          	}
                                                                          	return tmp;
                                                                          }
                                                                          
                                                                          def code(x, y, z, t, a, b, c, i, j):
                                                                          	tmp = 0
                                                                          	if a <= -1.7e-8:
                                                                          		tmp = (b * i) * a
                                                                          	elif a <= 4.4e-123:
                                                                          		tmp = (z * y) * x
                                                                          	elif a <= 1.08e+175:
                                                                          		tmp = (a * b) * i
                                                                          	else:
                                                                          		tmp = -a * (x * t)
                                                                          	return tmp
                                                                          
                                                                          function code(x, y, z, t, a, b, c, i, j)
                                                                          	tmp = 0.0
                                                                          	if (a <= -1.7e-8)
                                                                          		tmp = Float64(Float64(b * i) * a);
                                                                          	elseif (a <= 4.4e-123)
                                                                          		tmp = Float64(Float64(z * y) * x);
                                                                          	elseif (a <= 1.08e+175)
                                                                          		tmp = Float64(Float64(a * b) * i);
                                                                          	else
                                                                          		tmp = Float64(Float64(-a) * Float64(x * t));
                                                                          	end
                                                                          	return tmp
                                                                          end
                                                                          
                                                                          function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                          	tmp = 0.0;
                                                                          	if (a <= -1.7e-8)
                                                                          		tmp = (b * i) * a;
                                                                          	elseif (a <= 4.4e-123)
                                                                          		tmp = (z * y) * x;
                                                                          	elseif (a <= 1.08e+175)
                                                                          		tmp = (a * b) * i;
                                                                          	else
                                                                          		tmp = -a * (x * t);
                                                                          	end
                                                                          	tmp_2 = tmp;
                                                                          end
                                                                          
                                                                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.7e-8], N[(N[(b * i), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[a, 4.4e-123], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[a, 1.08e+175], N[(N[(a * b), $MachinePrecision] * i), $MachinePrecision], N[((-a) * N[(x * t), $MachinePrecision]), $MachinePrecision]]]]
                                                                          
                                                                          \begin{array}{l}
                                                                          
                                                                          \\
                                                                          \begin{array}{l}
                                                                          \mathbf{if}\;a \leq -1.7 \cdot 10^{-8}:\\
                                                                          \;\;\;\;\left(b \cdot i\right) \cdot a\\
                                                                          
                                                                          \mathbf{elif}\;a \leq 4.4 \cdot 10^{-123}:\\
                                                                          \;\;\;\;\left(z \cdot y\right) \cdot x\\
                                                                          
                                                                          \mathbf{elif}\;a \leq 1.08 \cdot 10^{+175}:\\
                                                                          \;\;\;\;\left(a \cdot b\right) \cdot i\\
                                                                          
                                                                          \mathbf{else}:\\
                                                                          \;\;\;\;\left(-a\right) \cdot \left(x \cdot t\right)\\
                                                                          
                                                                          
                                                                          \end{array}
                                                                          \end{array}
                                                                          
                                                                          Derivation
                                                                          1. Split input into 4 regimes
                                                                          2. if a < -1.7e-8

                                                                            1. Initial program 61.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                              if -1.7e-8 < a < 4.40000000000000013e-123

                                                                              1. Initial program 84.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                if 4.40000000000000013e-123 < a < 1.08e175

                                                                                1. Initial program 76.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                  if 1.08e175 < a

                                                                                  1. Initial program 65.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.7 \cdot 10^{-8}:\\ \;\;\;\;\left(b \cdot i\right) \cdot a\\ \mathbf{elif}\;a \leq 4.4 \cdot 10^{-123}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{elif}\;a \leq 1.08 \cdot 10^{+175}:\\ \;\;\;\;\left(a \cdot b\right) \cdot i\\ \mathbf{else}:\\ \;\;\;\;\left(-a\right) \cdot \left(x \cdot t\right)\\ \end{array} \]
                                                                                  10. Add Preprocessing

                                                                                  Alternative 20: 29.0% accurate, 2.6× speedup?

                                                                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -1.7 \cdot 10^{-8} \lor \neg \left(a \leq 4.4 \cdot 10^{-123}\right):\\ \;\;\;\;\left(b \cdot i\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \end{array} \end{array} \]
                                                                                  (FPCore (x y z t a b c i j)
                                                                                   :precision binary64
                                                                                   (if (or (<= a -1.7e-8) (not (<= a 4.4e-123))) (* (* b i) a) (* (* z y) x)))
                                                                                  double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                  	double tmp;
                                                                                  	if ((a <= -1.7e-8) || !(a <= 4.4e-123)) {
                                                                                  		tmp = (b * i) * a;
                                                                                  	} else {
                                                                                  		tmp = (z * y) * x;
                                                                                  	}
                                                                                  	return tmp;
                                                                                  }
                                                                                  
                                                                                  module fmin_fmax_functions
                                                                                      implicit none
                                                                                      private
                                                                                      public fmax
                                                                                      public fmin
                                                                                  
                                                                                      interface fmax
                                                                                          module procedure fmax88
                                                                                          module procedure fmax44
                                                                                          module procedure fmax84
                                                                                          module procedure fmax48
                                                                                      end interface
                                                                                      interface fmin
                                                                                          module procedure fmin88
                                                                                          module procedure fmin44
                                                                                          module procedure fmin84
                                                                                          module procedure fmin48
                                                                                      end interface
                                                                                  contains
                                                                                      real(8) function fmax88(x, y) result (res)
                                                                                          real(8), intent (in) :: x
                                                                                          real(8), intent (in) :: y
                                                                                          res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                      end function
                                                                                      real(4) function fmax44(x, y) result (res)
                                                                                          real(4), intent (in) :: x
                                                                                          real(4), intent (in) :: y
                                                                                          res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                      end function
                                                                                      real(8) function fmax84(x, y) result(res)
                                                                                          real(8), intent (in) :: x
                                                                                          real(4), intent (in) :: y
                                                                                          res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                                      end function
                                                                                      real(8) function fmax48(x, y) result(res)
                                                                                          real(4), intent (in) :: x
                                                                                          real(8), intent (in) :: y
                                                                                          res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                                      end function
                                                                                      real(8) function fmin88(x, y) result (res)
                                                                                          real(8), intent (in) :: x
                                                                                          real(8), intent (in) :: y
                                                                                          res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                      end function
                                                                                      real(4) function fmin44(x, y) result (res)
                                                                                          real(4), intent (in) :: x
                                                                                          real(4), intent (in) :: y
                                                                                          res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                      end function
                                                                                      real(8) function fmin84(x, y) result(res)
                                                                                          real(8), intent (in) :: x
                                                                                          real(4), intent (in) :: y
                                                                                          res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                                      end function
                                                                                      real(8) function fmin48(x, y) result(res)
                                                                                          real(4), intent (in) :: x
                                                                                          real(8), intent (in) :: y
                                                                                          res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                                      end function
                                                                                  end module
                                                                                  
                                                                                  real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                  use fmin_fmax_functions
                                                                                      real(8), intent (in) :: x
                                                                                      real(8), intent (in) :: y
                                                                                      real(8), intent (in) :: z
                                                                                      real(8), intent (in) :: t
                                                                                      real(8), intent (in) :: a
                                                                                      real(8), intent (in) :: b
                                                                                      real(8), intent (in) :: c
                                                                                      real(8), intent (in) :: i
                                                                                      real(8), intent (in) :: j
                                                                                      real(8) :: tmp
                                                                                      if ((a <= (-1.7d-8)) .or. (.not. (a <= 4.4d-123))) then
                                                                                          tmp = (b * i) * a
                                                                                      else
                                                                                          tmp = (z * y) * x
                                                                                      end if
                                                                                      code = tmp
                                                                                  end function
                                                                                  
                                                                                  public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                  	double tmp;
                                                                                  	if ((a <= -1.7e-8) || !(a <= 4.4e-123)) {
                                                                                  		tmp = (b * i) * a;
                                                                                  	} else {
                                                                                  		tmp = (z * y) * x;
                                                                                  	}
                                                                                  	return tmp;
                                                                                  }
                                                                                  
                                                                                  def code(x, y, z, t, a, b, c, i, j):
                                                                                  	tmp = 0
                                                                                  	if (a <= -1.7e-8) or not (a <= 4.4e-123):
                                                                                  		tmp = (b * i) * a
                                                                                  	else:
                                                                                  		tmp = (z * y) * x
                                                                                  	return tmp
                                                                                  
                                                                                  function code(x, y, z, t, a, b, c, i, j)
                                                                                  	tmp = 0.0
                                                                                  	if ((a <= -1.7e-8) || !(a <= 4.4e-123))
                                                                                  		tmp = Float64(Float64(b * i) * a);
                                                                                  	else
                                                                                  		tmp = Float64(Float64(z * y) * x);
                                                                                  	end
                                                                                  	return tmp
                                                                                  end
                                                                                  
                                                                                  function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                  	tmp = 0.0;
                                                                                  	if ((a <= -1.7e-8) || ~((a <= 4.4e-123)))
                                                                                  		tmp = (b * i) * a;
                                                                                  	else
                                                                                  		tmp = (z * y) * x;
                                                                                  	end
                                                                                  	tmp_2 = tmp;
                                                                                  end
                                                                                  
                                                                                  code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -1.7e-8], N[Not[LessEqual[a, 4.4e-123]], $MachinePrecision]], N[(N[(b * i), $MachinePrecision] * a), $MachinePrecision], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]]
                                                                                  
                                                                                  \begin{array}{l}
                                                                                  
                                                                                  \\
                                                                                  \begin{array}{l}
                                                                                  \mathbf{if}\;a \leq -1.7 \cdot 10^{-8} \lor \neg \left(a \leq 4.4 \cdot 10^{-123}\right):\\
                                                                                  \;\;\;\;\left(b \cdot i\right) \cdot a\\
                                                                                  
                                                                                  \mathbf{else}:\\
                                                                                  \;\;\;\;\left(z \cdot y\right) \cdot x\\
                                                                                  
                                                                                  
                                                                                  \end{array}
                                                                                  \end{array}
                                                                                  
                                                                                  Derivation
                                                                                  1. Split input into 2 regimes
                                                                                  2. if a < -1.7e-8 or 4.40000000000000013e-123 < a

                                                                                    1. Initial program 68.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                      if -1.7e-8 < a < 4.40000000000000013e-123

                                                                                      1. Initial program 84.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                          \[\leadsto \left(z \cdot y\right) \cdot \color{blue}{x} \]
                                                                                      10. Recombined 2 regimes into one program.
                                                                                      11. Final simplification35.9%

                                                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.7 \cdot 10^{-8} \lor \neg \left(a \leq 4.4 \cdot 10^{-123}\right):\\ \;\;\;\;\left(b \cdot i\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \end{array} \]
                                                                                      12. Add Preprocessing

                                                                                      Alternative 21: 28.8% accurate, 2.6× speedup?

                                                                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -5.8 \cdot 10^{-33} \lor \neg \left(x \leq 4.35 \cdot 10^{+39}\right):\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(t \cdot j\right) \cdot c\\ \end{array} \end{array} \]
                                                                                      (FPCore (x y z t a b c i j)
                                                                                       :precision binary64
                                                                                       (if (or (<= x -5.8e-33) (not (<= x 4.35e+39))) (* (* z y) x) (* (* t j) c)))
                                                                                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                      	double tmp;
                                                                                      	if ((x <= -5.8e-33) || !(x <= 4.35e+39)) {
                                                                                      		tmp = (z * y) * x;
                                                                                      	} else {
                                                                                      		tmp = (t * j) * c;
                                                                                      	}
                                                                                      	return tmp;
                                                                                      }
                                                                                      
                                                                                      module fmin_fmax_functions
                                                                                          implicit none
                                                                                          private
                                                                                          public fmax
                                                                                          public fmin
                                                                                      
                                                                                          interface fmax
                                                                                              module procedure fmax88
                                                                                              module procedure fmax44
                                                                                              module procedure fmax84
                                                                                              module procedure fmax48
                                                                                          end interface
                                                                                          interface fmin
                                                                                              module procedure fmin88
                                                                                              module procedure fmin44
                                                                                              module procedure fmin84
                                                                                              module procedure fmin48
                                                                                          end interface
                                                                                      contains
                                                                                          real(8) function fmax88(x, y) result (res)
                                                                                              real(8), intent (in) :: x
                                                                                              real(8), intent (in) :: y
                                                                                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                          end function
                                                                                          real(4) function fmax44(x, y) result (res)
                                                                                              real(4), intent (in) :: x
                                                                                              real(4), intent (in) :: y
                                                                                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                          end function
                                                                                          real(8) function fmax84(x, y) result(res)
                                                                                              real(8), intent (in) :: x
                                                                                              real(4), intent (in) :: y
                                                                                              res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                                          end function
                                                                                          real(8) function fmax48(x, y) result(res)
                                                                                              real(4), intent (in) :: x
                                                                                              real(8), intent (in) :: y
                                                                                              res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                                          end function
                                                                                          real(8) function fmin88(x, y) result (res)
                                                                                              real(8), intent (in) :: x
                                                                                              real(8), intent (in) :: y
                                                                                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                          end function
                                                                                          real(4) function fmin44(x, y) result (res)
                                                                                              real(4), intent (in) :: x
                                                                                              real(4), intent (in) :: y
                                                                                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                          end function
                                                                                          real(8) function fmin84(x, y) result(res)
                                                                                              real(8), intent (in) :: x
                                                                                              real(4), intent (in) :: y
                                                                                              res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                                          end function
                                                                                          real(8) function fmin48(x, y) result(res)
                                                                                              real(4), intent (in) :: x
                                                                                              real(8), intent (in) :: y
                                                                                              res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                                          end function
                                                                                      end module
                                                                                      
                                                                                      real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                      use fmin_fmax_functions
                                                                                          real(8), intent (in) :: x
                                                                                          real(8), intent (in) :: y
                                                                                          real(8), intent (in) :: z
                                                                                          real(8), intent (in) :: t
                                                                                          real(8), intent (in) :: a
                                                                                          real(8), intent (in) :: b
                                                                                          real(8), intent (in) :: c
                                                                                          real(8), intent (in) :: i
                                                                                          real(8), intent (in) :: j
                                                                                          real(8) :: tmp
                                                                                          if ((x <= (-5.8d-33)) .or. (.not. (x <= 4.35d+39))) then
                                                                                              tmp = (z * y) * x
                                                                                          else
                                                                                              tmp = (t * j) * c
                                                                                          end if
                                                                                          code = tmp
                                                                                      end function
                                                                                      
                                                                                      public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                      	double tmp;
                                                                                      	if ((x <= -5.8e-33) || !(x <= 4.35e+39)) {
                                                                                      		tmp = (z * y) * x;
                                                                                      	} else {
                                                                                      		tmp = (t * j) * c;
                                                                                      	}
                                                                                      	return tmp;
                                                                                      }
                                                                                      
                                                                                      def code(x, y, z, t, a, b, c, i, j):
                                                                                      	tmp = 0
                                                                                      	if (x <= -5.8e-33) or not (x <= 4.35e+39):
                                                                                      		tmp = (z * y) * x
                                                                                      	else:
                                                                                      		tmp = (t * j) * c
                                                                                      	return tmp
                                                                                      
                                                                                      function code(x, y, z, t, a, b, c, i, j)
                                                                                      	tmp = 0.0
                                                                                      	if ((x <= -5.8e-33) || !(x <= 4.35e+39))
                                                                                      		tmp = Float64(Float64(z * y) * x);
                                                                                      	else
                                                                                      		tmp = Float64(Float64(t * j) * c);
                                                                                      	end
                                                                                      	return tmp
                                                                                      end
                                                                                      
                                                                                      function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                      	tmp = 0.0;
                                                                                      	if ((x <= -5.8e-33) || ~((x <= 4.35e+39)))
                                                                                      		tmp = (z * y) * x;
                                                                                      	else
                                                                                      		tmp = (t * j) * c;
                                                                                      	end
                                                                                      	tmp_2 = tmp;
                                                                                      end
                                                                                      
                                                                                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[x, -5.8e-33], N[Not[LessEqual[x, 4.35e+39]], $MachinePrecision]], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], N[(N[(t * j), $MachinePrecision] * c), $MachinePrecision]]
                                                                                      
                                                                                      \begin{array}{l}
                                                                                      
                                                                                      \\
                                                                                      \begin{array}{l}
                                                                                      \mathbf{if}\;x \leq -5.8 \cdot 10^{-33} \lor \neg \left(x \leq 4.35 \cdot 10^{+39}\right):\\
                                                                                      \;\;\;\;\left(z \cdot y\right) \cdot x\\
                                                                                      
                                                                                      \mathbf{else}:\\
                                                                                      \;\;\;\;\left(t \cdot j\right) \cdot c\\
                                                                                      
                                                                                      
                                                                                      \end{array}
                                                                                      \end{array}
                                                                                      
                                                                                      Derivation
                                                                                      1. Split input into 2 regimes
                                                                                      2. if x < -5.80000000000000005e-33 or 4.35000000000000014e39 < x

                                                                                        1. Initial program 77.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                          if -5.80000000000000005e-33 < x < 4.35000000000000014e39

                                                                                          1. Initial program 71.6%

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                              \[\leadsto \left(t \cdot j\right) \cdot \color{blue}{c} \]
                                                                                          8. Recombined 2 regimes into one program.
                                                                                          9. Final simplification32.0%

                                                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -5.8 \cdot 10^{-33} \lor \neg \left(x \leq 4.35 \cdot 10^{+39}\right):\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(t \cdot j\right) \cdot c\\ \end{array} \]
                                                                                          10. Add Preprocessing

                                                                                          Alternative 22: 29.1% accurate, 2.6× speedup?

                                                                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -1.7 \cdot 10^{-8}:\\ \;\;\;\;\left(b \cdot i\right) \cdot a\\ \mathbf{elif}\;a \leq 4.4 \cdot 10^{-123}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(a \cdot b\right) \cdot i\\ \end{array} \end{array} \]
                                                                                          (FPCore (x y z t a b c i j)
                                                                                           :precision binary64
                                                                                           (if (<= a -1.7e-8)
                                                                                             (* (* b i) a)
                                                                                             (if (<= a 4.4e-123) (* (* z y) x) (* (* a b) i))))
                                                                                          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                          	double tmp;
                                                                                          	if (a <= -1.7e-8) {
                                                                                          		tmp = (b * i) * a;
                                                                                          	} else if (a <= 4.4e-123) {
                                                                                          		tmp = (z * y) * x;
                                                                                          	} else {
                                                                                          		tmp = (a * b) * i;
                                                                                          	}
                                                                                          	return tmp;
                                                                                          }
                                                                                          
                                                                                          module fmin_fmax_functions
                                                                                              implicit none
                                                                                              private
                                                                                              public fmax
                                                                                              public fmin
                                                                                          
                                                                                              interface fmax
                                                                                                  module procedure fmax88
                                                                                                  module procedure fmax44
                                                                                                  module procedure fmax84
                                                                                                  module procedure fmax48
                                                                                              end interface
                                                                                              interface fmin
                                                                                                  module procedure fmin88
                                                                                                  module procedure fmin44
                                                                                                  module procedure fmin84
                                                                                                  module procedure fmin48
                                                                                              end interface
                                                                                          contains
                                                                                              real(8) function fmax88(x, y) result (res)
                                                                                                  real(8), intent (in) :: x
                                                                                                  real(8), intent (in) :: y
                                                                                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                              end function
                                                                                              real(4) function fmax44(x, y) result (res)
                                                                                                  real(4), intent (in) :: x
                                                                                                  real(4), intent (in) :: y
                                                                                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                              end function
                                                                                              real(8) function fmax84(x, y) result(res)
                                                                                                  real(8), intent (in) :: x
                                                                                                  real(4), intent (in) :: y
                                                                                                  res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                                              end function
                                                                                              real(8) function fmax48(x, y) result(res)
                                                                                                  real(4), intent (in) :: x
                                                                                                  real(8), intent (in) :: y
                                                                                                  res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                                              end function
                                                                                              real(8) function fmin88(x, y) result (res)
                                                                                                  real(8), intent (in) :: x
                                                                                                  real(8), intent (in) :: y
                                                                                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                              end function
                                                                                              real(4) function fmin44(x, y) result (res)
                                                                                                  real(4), intent (in) :: x
                                                                                                  real(4), intent (in) :: y
                                                                                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                              end function
                                                                                              real(8) function fmin84(x, y) result(res)
                                                                                                  real(8), intent (in) :: x
                                                                                                  real(4), intent (in) :: y
                                                                                                  res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                                              end function
                                                                                              real(8) function fmin48(x, y) result(res)
                                                                                                  real(4), intent (in) :: x
                                                                                                  real(8), intent (in) :: y
                                                                                                  res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                                              end function
                                                                                          end module
                                                                                          
                                                                                          real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                          use fmin_fmax_functions
                                                                                              real(8), intent (in) :: x
                                                                                              real(8), intent (in) :: y
                                                                                              real(8), intent (in) :: z
                                                                                              real(8), intent (in) :: t
                                                                                              real(8), intent (in) :: a
                                                                                              real(8), intent (in) :: b
                                                                                              real(8), intent (in) :: c
                                                                                              real(8), intent (in) :: i
                                                                                              real(8), intent (in) :: j
                                                                                              real(8) :: tmp
                                                                                              if (a <= (-1.7d-8)) then
                                                                                                  tmp = (b * i) * a
                                                                                              else if (a <= 4.4d-123) then
                                                                                                  tmp = (z * y) * x
                                                                                              else
                                                                                                  tmp = (a * b) * i
                                                                                              end if
                                                                                              code = tmp
                                                                                          end function
                                                                                          
                                                                                          public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                          	double tmp;
                                                                                          	if (a <= -1.7e-8) {
                                                                                          		tmp = (b * i) * a;
                                                                                          	} else if (a <= 4.4e-123) {
                                                                                          		tmp = (z * y) * x;
                                                                                          	} else {
                                                                                          		tmp = (a * b) * i;
                                                                                          	}
                                                                                          	return tmp;
                                                                                          }
                                                                                          
                                                                                          def code(x, y, z, t, a, b, c, i, j):
                                                                                          	tmp = 0
                                                                                          	if a <= -1.7e-8:
                                                                                          		tmp = (b * i) * a
                                                                                          	elif a <= 4.4e-123:
                                                                                          		tmp = (z * y) * x
                                                                                          	else:
                                                                                          		tmp = (a * b) * i
                                                                                          	return tmp
                                                                                          
                                                                                          function code(x, y, z, t, a, b, c, i, j)
                                                                                          	tmp = 0.0
                                                                                          	if (a <= -1.7e-8)
                                                                                          		tmp = Float64(Float64(b * i) * a);
                                                                                          	elseif (a <= 4.4e-123)
                                                                                          		tmp = Float64(Float64(z * y) * x);
                                                                                          	else
                                                                                          		tmp = Float64(Float64(a * b) * i);
                                                                                          	end
                                                                                          	return tmp
                                                                                          end
                                                                                          
                                                                                          function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                          	tmp = 0.0;
                                                                                          	if (a <= -1.7e-8)
                                                                                          		tmp = (b * i) * a;
                                                                                          	elseif (a <= 4.4e-123)
                                                                                          		tmp = (z * y) * x;
                                                                                          	else
                                                                                          		tmp = (a * b) * i;
                                                                                          	end
                                                                                          	tmp_2 = tmp;
                                                                                          end
                                                                                          
                                                                                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.7e-8], N[(N[(b * i), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[a, 4.4e-123], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], N[(N[(a * b), $MachinePrecision] * i), $MachinePrecision]]]
                                                                                          
                                                                                          \begin{array}{l}
                                                                                          
                                                                                          \\
                                                                                          \begin{array}{l}
                                                                                          \mathbf{if}\;a \leq -1.7 \cdot 10^{-8}:\\
                                                                                          \;\;\;\;\left(b \cdot i\right) \cdot a\\
                                                                                          
                                                                                          \mathbf{elif}\;a \leq 4.4 \cdot 10^{-123}:\\
                                                                                          \;\;\;\;\left(z \cdot y\right) \cdot x\\
                                                                                          
                                                                                          \mathbf{else}:\\
                                                                                          \;\;\;\;\left(a \cdot b\right) \cdot i\\
                                                                                          
                                                                                          
                                                                                          \end{array}
                                                                                          \end{array}
                                                                                          
                                                                                          Derivation
                                                                                          1. Split input into 3 regimes
                                                                                          2. if a < -1.7e-8

                                                                                            1. Initial program 61.4%

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

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

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

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

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

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

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

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

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

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

                                                                                                \[\leadsto \left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a\right)\right) \cdot i\right)\right)}\right) \cdot b \]
                                                                                              10. distribute-neg-inN/A

                                                                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z + \left(\mathsf{neg}\left(a\right)\right) \cdot i\right)\right)\right)} \cdot b \]
                                                                                              11. fp-cancel-sub-sign-invN/A

                                                                                                \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z - a \cdot i\right)}\right)\right) \cdot b \]
                                                                                              12. mul-1-negN/A

                                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right)} \cdot b \]
                                                                                              13. lower-*.f64N/A

                                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right) \cdot b} \]
                                                                                            5. Applied rewrites47.1%

                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b} \]
                                                                                            6. Taylor expanded in z around 0

                                                                                              \[\leadsto a \cdot \color{blue}{\left(b \cdot i\right)} \]
                                                                                            7. Step-by-step derivation
                                                                                              1. Applied rewrites39.3%

                                                                                                \[\leadsto \left(b \cdot i\right) \cdot \color{blue}{a} \]

                                                                                              if -1.7e-8 < a < 4.40000000000000013e-123

                                                                                              1. Initial program 84.6%

                                                                                                \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                                                              2. Add Preprocessing
                                                                                              3. Taylor expanded in c around 0

                                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + \left(c \cdot \left(j \cdot t - b \cdot z\right) + x \cdot \left(y \cdot z - a \cdot t\right)\right)\right) - -1 \cdot \left(a \cdot \left(b \cdot i\right)\right)} \]
                                                                                              4. Applied rewrites86.7%

                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot t\right), c, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right) + \mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i} \]
                                                                                              5. Taylor expanded in z around inf

                                                                                                \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                              6. Step-by-step derivation
                                                                                                1. *-commutativeN/A

                                                                                                  \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                                                2. fp-cancel-sub-sign-invN/A

                                                                                                  \[\leadsto \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b\right)\right) \cdot c\right)} \cdot z \]
                                                                                                3. mul-1-negN/A

                                                                                                  \[\leadsto \left(x \cdot y + \color{blue}{\left(-1 \cdot b\right)} \cdot c\right) \cdot z \]
                                                                                                4. associate-*r*N/A

                                                                                                  \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                                                                5. +-commutativeN/A

                                                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \cdot z \]
                                                                                                6. lower-*.f64N/A

                                                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right) \cdot z} \]
                                                                                                7. mul-1-negN/A

                                                                                                  \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)} + x \cdot y\right) \cdot z \]
                                                                                                8. *-commutativeN/A

                                                                                                  \[\leadsto \left(\left(\mathsf{neg}\left(\color{blue}{c \cdot b}\right)\right) + x \cdot y\right) \cdot z \]
                                                                                                9. distribute-lft-neg-inN/A

                                                                                                  \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot b} + x \cdot y\right) \cdot z \]
                                                                                                10. mul-1-negN/A

                                                                                                  \[\leadsto \left(\color{blue}{\left(-1 \cdot c\right)} \cdot b + x \cdot y\right) \cdot z \]
                                                                                                11. lower-fma.f64N/A

                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                                                                                12. mul-1-negN/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                                                                                13. lower-neg.f64N/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                                                                                14. lower-*.f6458.4

                                                                                                  \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{x \cdot y}\right) \cdot z \]
                                                                                              7. Applied rewrites58.4%

                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-c, b, x \cdot y\right) \cdot z} \]
                                                                                              8. Taylor expanded in x around inf

                                                                                                \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                                                              9. Step-by-step derivation
                                                                                                1. Applied rewrites37.0%

                                                                                                  \[\leadsto \left(z \cdot y\right) \cdot \color{blue}{x} \]

                                                                                                if 4.40000000000000013e-123 < a

                                                                                                1. Initial program 72.0%

                                                                                                  \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                                                                2. Add Preprocessing
                                                                                                3. Taylor expanded in i around inf

                                                                                                  \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(a \cdot b\right)\right)} \]
                                                                                                4. Step-by-step derivation
                                                                                                  1. *-commutativeN/A

                                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(a \cdot b\right)\right) \cdot i} \]
                                                                                                  2. lower-*.f64N/A

                                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(a \cdot b\right)\right) \cdot i} \]
                                                                                                  3. *-commutativeN/A

                                                                                                    \[\leadsto \left(-1 \cdot \left(j \cdot y\right) - \color{blue}{\left(a \cdot b\right) \cdot -1}\right) \cdot i \]
                                                                                                  4. fp-cancel-sub-sign-invN/A

                                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) + \left(\mathsf{neg}\left(a \cdot b\right)\right) \cdot -1\right)} \cdot i \]
                                                                                                  5. *-commutativeN/A

                                                                                                    \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(a \cdot b\right)\right) \cdot -1\right) \cdot i \]
                                                                                                  6. associate-*r*N/A

                                                                                                    \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + \left(\mathsf{neg}\left(a \cdot b\right)\right) \cdot -1\right) \cdot i \]
                                                                                                  7. distribute-lft-neg-inN/A

                                                                                                    \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{\left(\mathsf{neg}\left(\left(a \cdot b\right) \cdot -1\right)\right)}\right) \cdot i \]
                                                                                                  8. *-commutativeN/A

                                                                                                    \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \left(\mathsf{neg}\left(\color{blue}{-1 \cdot \left(a \cdot b\right)}\right)\right)\right) \cdot i \]
                                                                                                  9. distribute-lft-neg-outN/A

                                                                                                    \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{\left(\mathsf{neg}\left(-1\right)\right) \cdot \left(a \cdot b\right)}\right) \cdot i \]
                                                                                                  10. metadata-evalN/A

                                                                                                    \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{1} \cdot \left(a \cdot b\right)\right) \cdot i \]
                                                                                                  11. *-lft-identityN/A

                                                                                                    \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{a \cdot b}\right) \cdot i \]
                                                                                                  12. lower-fma.f64N/A

                                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, a \cdot b\right)} \cdot i \]
                                                                                                  13. mul-1-negN/A

                                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, a \cdot b\right) \cdot i \]
                                                                                                  14. lower-neg.f64N/A

                                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, j, a \cdot b\right) \cdot i \]
                                                                                                  15. *-commutativeN/A

                                                                                                    \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot a}\right) \cdot i \]
                                                                                                  16. lower-*.f6451.2

                                                                                                    \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot a}\right) \cdot i \]
                                                                                                5. Applied rewrites51.2%

                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i} \]
                                                                                                6. Taylor expanded in y around 0

                                                                                                  \[\leadsto \left(a \cdot b\right) \cdot i \]
                                                                                                7. Step-by-step derivation
                                                                                                  1. Applied rewrites36.8%

                                                                                                    \[\leadsto \left(a \cdot b\right) \cdot i \]
                                                                                                8. Recombined 3 regimes into one program.
                                                                                                9. Final simplification37.4%

                                                                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.7 \cdot 10^{-8}:\\ \;\;\;\;\left(b \cdot i\right) \cdot a\\ \mathbf{elif}\;a \leq 4.4 \cdot 10^{-123}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(a \cdot b\right) \cdot i\\ \end{array} \]
                                                                                                10. Add Preprocessing

                                                                                                Alternative 23: 21.6% accurate, 5.5× speedup?

                                                                                                \[\begin{array}{l} \\ \left(t \cdot j\right) \cdot c \end{array} \]
                                                                                                (FPCore (x y z t a b c i j) :precision binary64 (* (* t j) c))
                                                                                                double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                	return (t * j) * c;
                                                                                                }
                                                                                                
                                                                                                module fmin_fmax_functions
                                                                                                    implicit none
                                                                                                    private
                                                                                                    public fmax
                                                                                                    public fmin
                                                                                                
                                                                                                    interface fmax
                                                                                                        module procedure fmax88
                                                                                                        module procedure fmax44
                                                                                                        module procedure fmax84
                                                                                                        module procedure fmax48
                                                                                                    end interface
                                                                                                    interface fmin
                                                                                                        module procedure fmin88
                                                                                                        module procedure fmin44
                                                                                                        module procedure fmin84
                                                                                                        module procedure fmin48
                                                                                                    end interface
                                                                                                contains
                                                                                                    real(8) function fmax88(x, y) result (res)
                                                                                                        real(8), intent (in) :: x
                                                                                                        real(8), intent (in) :: y
                                                                                                        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                    end function
                                                                                                    real(4) function fmax44(x, y) result (res)
                                                                                                        real(4), intent (in) :: x
                                                                                                        real(4), intent (in) :: y
                                                                                                        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                    end function
                                                                                                    real(8) function fmax84(x, y) result(res)
                                                                                                        real(8), intent (in) :: x
                                                                                                        real(4), intent (in) :: y
                                                                                                        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                                                    end function
                                                                                                    real(8) function fmax48(x, y) result(res)
                                                                                                        real(4), intent (in) :: x
                                                                                                        real(8), intent (in) :: y
                                                                                                        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                                                    end function
                                                                                                    real(8) function fmin88(x, y) result (res)
                                                                                                        real(8), intent (in) :: x
                                                                                                        real(8), intent (in) :: y
                                                                                                        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                    end function
                                                                                                    real(4) function fmin44(x, y) result (res)
                                                                                                        real(4), intent (in) :: x
                                                                                                        real(4), intent (in) :: y
                                                                                                        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                    end function
                                                                                                    real(8) function fmin84(x, y) result(res)
                                                                                                        real(8), intent (in) :: x
                                                                                                        real(4), intent (in) :: y
                                                                                                        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                                                    end function
                                                                                                    real(8) function fmin48(x, y) result(res)
                                                                                                        real(4), intent (in) :: x
                                                                                                        real(8), intent (in) :: y
                                                                                                        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                                                    end function
                                                                                                end module
                                                                                                
                                                                                                real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                                use fmin_fmax_functions
                                                                                                    real(8), intent (in) :: x
                                                                                                    real(8), intent (in) :: y
                                                                                                    real(8), intent (in) :: z
                                                                                                    real(8), intent (in) :: t
                                                                                                    real(8), intent (in) :: a
                                                                                                    real(8), intent (in) :: b
                                                                                                    real(8), intent (in) :: c
                                                                                                    real(8), intent (in) :: i
                                                                                                    real(8), intent (in) :: j
                                                                                                    code = (t * j) * c
                                                                                                end function
                                                                                                
                                                                                                public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                	return (t * j) * c;
                                                                                                }
                                                                                                
                                                                                                def code(x, y, z, t, a, b, c, i, j):
                                                                                                	return (t * j) * c
                                                                                                
                                                                                                function code(x, y, z, t, a, b, c, i, j)
                                                                                                	return Float64(Float64(t * j) * c)
                                                                                                end
                                                                                                
                                                                                                function tmp = code(x, y, z, t, a, b, c, i, j)
                                                                                                	tmp = (t * j) * c;
                                                                                                end
                                                                                                
                                                                                                code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(t * j), $MachinePrecision] * c), $MachinePrecision]
                                                                                                
                                                                                                \begin{array}{l}
                                                                                                
                                                                                                \\
                                                                                                \left(t \cdot j\right) \cdot c
                                                                                                \end{array}
                                                                                                
                                                                                                Derivation
                                                                                                1. Initial program 74.6%

                                                                                                  \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                                                                2. Add Preprocessing
                                                                                                3. Taylor expanded in t around inf

                                                                                                  \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right)} \]
                                                                                                4. Step-by-step derivation
                                                                                                  1. *-commutativeN/A

                                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right) \cdot t} \]
                                                                                                  2. lower-*.f64N/A

                                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right) \cdot t} \]
                                                                                                  3. associate-*r*N/A

                                                                                                    \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot x} + c \cdot j\right) \cdot t \]
                                                                                                  4. mul-1-negN/A

                                                                                                    \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot x + c \cdot j\right) \cdot t \]
                                                                                                  5. lower-fma.f64N/A

                                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), x, c \cdot j\right)} \cdot t \]
                                                                                                  6. lower-neg.f64N/A

                                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, x, c \cdot j\right) \cdot t \]
                                                                                                  7. *-commutativeN/A

                                                                                                    \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{j \cdot c}\right) \cdot t \]
                                                                                                  8. lower-*.f6437.4

                                                                                                    \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{j \cdot c}\right) \cdot t \]
                                                                                                5. Applied rewrites37.4%

                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t} \]
                                                                                                6. Taylor expanded in x around 0

                                                                                                  \[\leadsto c \cdot \color{blue}{\left(j \cdot t\right)} \]
                                                                                                7. Step-by-step derivation
                                                                                                  1. Applied rewrites20.7%

                                                                                                    \[\leadsto \left(t \cdot j\right) \cdot \color{blue}{c} \]
                                                                                                  2. Final simplification20.7%

                                                                                                    \[\leadsto \left(t \cdot j\right) \cdot c \]
                                                                                                  3. Add Preprocessing

                                                                                                  Alternative 24: 21.7% accurate, 5.5× speedup?

                                                                                                  \[\begin{array}{l} \\ \left(t \cdot c\right) \cdot j \end{array} \]
                                                                                                  (FPCore (x y z t a b c i j) :precision binary64 (* (* t c) j))
                                                                                                  double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                  	return (t * c) * j;
                                                                                                  }
                                                                                                  
                                                                                                  module fmin_fmax_functions
                                                                                                      implicit none
                                                                                                      private
                                                                                                      public fmax
                                                                                                      public fmin
                                                                                                  
                                                                                                      interface fmax
                                                                                                          module procedure fmax88
                                                                                                          module procedure fmax44
                                                                                                          module procedure fmax84
                                                                                                          module procedure fmax48
                                                                                                      end interface
                                                                                                      interface fmin
                                                                                                          module procedure fmin88
                                                                                                          module procedure fmin44
                                                                                                          module procedure fmin84
                                                                                                          module procedure fmin48
                                                                                                      end interface
                                                                                                  contains
                                                                                                      real(8) function fmax88(x, y) result (res)
                                                                                                          real(8), intent (in) :: x
                                                                                                          real(8), intent (in) :: y
                                                                                                          res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                      end function
                                                                                                      real(4) function fmax44(x, y) result (res)
                                                                                                          real(4), intent (in) :: x
                                                                                                          real(4), intent (in) :: y
                                                                                                          res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                      end function
                                                                                                      real(8) function fmax84(x, y) result(res)
                                                                                                          real(8), intent (in) :: x
                                                                                                          real(4), intent (in) :: y
                                                                                                          res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                                                      end function
                                                                                                      real(8) function fmax48(x, y) result(res)
                                                                                                          real(4), intent (in) :: x
                                                                                                          real(8), intent (in) :: y
                                                                                                          res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                                                      end function
                                                                                                      real(8) function fmin88(x, y) result (res)
                                                                                                          real(8), intent (in) :: x
                                                                                                          real(8), intent (in) :: y
                                                                                                          res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                      end function
                                                                                                      real(4) function fmin44(x, y) result (res)
                                                                                                          real(4), intent (in) :: x
                                                                                                          real(4), intent (in) :: y
                                                                                                          res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                      end function
                                                                                                      real(8) function fmin84(x, y) result(res)
                                                                                                          real(8), intent (in) :: x
                                                                                                          real(4), intent (in) :: y
                                                                                                          res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                                                      end function
                                                                                                      real(8) function fmin48(x, y) result(res)
                                                                                                          real(4), intent (in) :: x
                                                                                                          real(8), intent (in) :: y
                                                                                                          res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                                                      end function
                                                                                                  end module
                                                                                                  
                                                                                                  real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                                  use fmin_fmax_functions
                                                                                                      real(8), intent (in) :: x
                                                                                                      real(8), intent (in) :: y
                                                                                                      real(8), intent (in) :: z
                                                                                                      real(8), intent (in) :: t
                                                                                                      real(8), intent (in) :: a
                                                                                                      real(8), intent (in) :: b
                                                                                                      real(8), intent (in) :: c
                                                                                                      real(8), intent (in) :: i
                                                                                                      real(8), intent (in) :: j
                                                                                                      code = (t * c) * j
                                                                                                  end function
                                                                                                  
                                                                                                  public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                  	return (t * c) * j;
                                                                                                  }
                                                                                                  
                                                                                                  def code(x, y, z, t, a, b, c, i, j):
                                                                                                  	return (t * c) * j
                                                                                                  
                                                                                                  function code(x, y, z, t, a, b, c, i, j)
                                                                                                  	return Float64(Float64(t * c) * j)
                                                                                                  end
                                                                                                  
                                                                                                  function tmp = code(x, y, z, t, a, b, c, i, j)
                                                                                                  	tmp = (t * c) * j;
                                                                                                  end
                                                                                                  
                                                                                                  code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(t * c), $MachinePrecision] * j), $MachinePrecision]
                                                                                                  
                                                                                                  \begin{array}{l}
                                                                                                  
                                                                                                  \\
                                                                                                  \left(t \cdot c\right) \cdot j
                                                                                                  \end{array}
                                                                                                  
                                                                                                  Derivation
                                                                                                  1. Initial program 74.6%

                                                                                                    \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                                                                  2. Add Preprocessing
                                                                                                  3. Taylor expanded in t around inf

                                                                                                    \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right)} \]
                                                                                                  4. Step-by-step derivation
                                                                                                    1. *-commutativeN/A

                                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right) \cdot t} \]
                                                                                                    2. lower-*.f64N/A

                                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right) \cdot t} \]
                                                                                                    3. associate-*r*N/A

                                                                                                      \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot x} + c \cdot j\right) \cdot t \]
                                                                                                    4. mul-1-negN/A

                                                                                                      \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot x + c \cdot j\right) \cdot t \]
                                                                                                    5. lower-fma.f64N/A

                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), x, c \cdot j\right)} \cdot t \]
                                                                                                    6. lower-neg.f64N/A

                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, x, c \cdot j\right) \cdot t \]
                                                                                                    7. *-commutativeN/A

                                                                                                      \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{j \cdot c}\right) \cdot t \]
                                                                                                    8. lower-*.f6437.4

                                                                                                      \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{j \cdot c}\right) \cdot t \]
                                                                                                  5. Applied rewrites37.4%

                                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t} \]
                                                                                                  6. Taylor expanded in x around 0

                                                                                                    \[\leadsto c \cdot \color{blue}{\left(j \cdot t\right)} \]
                                                                                                  7. Step-by-step derivation
                                                                                                    1. Applied rewrites20.7%

                                                                                                      \[\leadsto \left(t \cdot j\right) \cdot \color{blue}{c} \]
                                                                                                    2. Step-by-step derivation
                                                                                                      1. Applied rewrites20.4%

                                                                                                        \[\leadsto \left(t \cdot c\right) \cdot j \]
                                                                                                      2. Final simplification20.4%

                                                                                                        \[\leadsto \left(t \cdot c\right) \cdot j \]
                                                                                                      3. Add Preprocessing

                                                                                                      Developer Target 1: 69.2% accurate, 0.2× speedup?

                                                                                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\ t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\ \mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                                                                                                      (FPCore (x y z t a b c i j)
                                                                                                       :precision binary64
                                                                                                       (let* ((t_1
                                                                                                               (+
                                                                                                                (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
                                                                                                                (/
                                                                                                                 (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
                                                                                                                 (+ (* c t) (* i y)))))
                                                                                                              (t_2
                                                                                                               (-
                                                                                                                (* x (- (* z y) (* a t)))
                                                                                                                (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
                                                                                                         (if (< t -8.120978919195912e-33)
                                                                                                           t_2
                                                                                                           (if (< t -4.712553818218485e-169)
                                                                                                             t_1
                                                                                                             (if (< t -7.633533346031584e-308)
                                                                                                               t_2
                                                                                                               (if (< t 1.0535888557455487e-139) t_1 t_2))))))
                                                                                                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                      	double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
                                                                                                      	double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
                                                                                                      	double tmp;
                                                                                                      	if (t < -8.120978919195912e-33) {
                                                                                                      		tmp = t_2;
                                                                                                      	} else if (t < -4.712553818218485e-169) {
                                                                                                      		tmp = t_1;
                                                                                                      	} else if (t < -7.633533346031584e-308) {
                                                                                                      		tmp = t_2;
                                                                                                      	} else if (t < 1.0535888557455487e-139) {
                                                                                                      		tmp = t_1;
                                                                                                      	} else {
                                                                                                      		tmp = t_2;
                                                                                                      	}
                                                                                                      	return tmp;
                                                                                                      }
                                                                                                      
                                                                                                      module fmin_fmax_functions
                                                                                                          implicit none
                                                                                                          private
                                                                                                          public fmax
                                                                                                          public fmin
                                                                                                      
                                                                                                          interface fmax
                                                                                                              module procedure fmax88
                                                                                                              module procedure fmax44
                                                                                                              module procedure fmax84
                                                                                                              module procedure fmax48
                                                                                                          end interface
                                                                                                          interface fmin
                                                                                                              module procedure fmin88
                                                                                                              module procedure fmin44
                                                                                                              module procedure fmin84
                                                                                                              module procedure fmin48
                                                                                                          end interface
                                                                                                      contains
                                                                                                          real(8) function fmax88(x, y) result (res)
                                                                                                              real(8), intent (in) :: x
                                                                                                              real(8), intent (in) :: y
                                                                                                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                          end function
                                                                                                          real(4) function fmax44(x, y) result (res)
                                                                                                              real(4), intent (in) :: x
                                                                                                              real(4), intent (in) :: y
                                                                                                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                                          end function
                                                                                                          real(8) function fmax84(x, y) result(res)
                                                                                                              real(8), intent (in) :: x
                                                                                                              real(4), intent (in) :: y
                                                                                                              res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                                                          end function
                                                                                                          real(8) function fmax48(x, y) result(res)
                                                                                                              real(4), intent (in) :: x
                                                                                                              real(8), intent (in) :: y
                                                                                                              res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                                                          end function
                                                                                                          real(8) function fmin88(x, y) result (res)
                                                                                                              real(8), intent (in) :: x
                                                                                                              real(8), intent (in) :: y
                                                                                                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                          end function
                                                                                                          real(4) function fmin44(x, y) result (res)
                                                                                                              real(4), intent (in) :: x
                                                                                                              real(4), intent (in) :: y
                                                                                                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                                          end function
                                                                                                          real(8) function fmin84(x, y) result(res)
                                                                                                              real(8), intent (in) :: x
                                                                                                              real(4), intent (in) :: y
                                                                                                              res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                                                          end function
                                                                                                          real(8) function fmin48(x, y) result(res)
                                                                                                              real(4), intent (in) :: x
                                                                                                              real(8), intent (in) :: y
                                                                                                              res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                                                          end function
                                                                                                      end module
                                                                                                      
                                                                                                      real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                                      use fmin_fmax_functions
                                                                                                          real(8), intent (in) :: x
                                                                                                          real(8), intent (in) :: y
                                                                                                          real(8), intent (in) :: z
                                                                                                          real(8), intent (in) :: t
                                                                                                          real(8), intent (in) :: a
                                                                                                          real(8), intent (in) :: b
                                                                                                          real(8), intent (in) :: c
                                                                                                          real(8), intent (in) :: i
                                                                                                          real(8), intent (in) :: j
                                                                                                          real(8) :: t_1
                                                                                                          real(8) :: t_2
                                                                                                          real(8) :: tmp
                                                                                                          t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
                                                                                                          t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
                                                                                                          if (t < (-8.120978919195912d-33)) then
                                                                                                              tmp = t_2
                                                                                                          else if (t < (-4.712553818218485d-169)) then
                                                                                                              tmp = t_1
                                                                                                          else if (t < (-7.633533346031584d-308)) then
                                                                                                              tmp = t_2
                                                                                                          else if (t < 1.0535888557455487d-139) then
                                                                                                              tmp = t_1
                                                                                                          else
                                                                                                              tmp = t_2
                                                                                                          end if
                                                                                                          code = tmp
                                                                                                      end function
                                                                                                      
                                                                                                      public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                      	double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
                                                                                                      	double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
                                                                                                      	double tmp;
                                                                                                      	if (t < -8.120978919195912e-33) {
                                                                                                      		tmp = t_2;
                                                                                                      	} else if (t < -4.712553818218485e-169) {
                                                                                                      		tmp = t_1;
                                                                                                      	} else if (t < -7.633533346031584e-308) {
                                                                                                      		tmp = t_2;
                                                                                                      	} else if (t < 1.0535888557455487e-139) {
                                                                                                      		tmp = t_1;
                                                                                                      	} else {
                                                                                                      		tmp = t_2;
                                                                                                      	}
                                                                                                      	return tmp;
                                                                                                      }
                                                                                                      
                                                                                                      def code(x, y, z, t, a, b, c, i, j):
                                                                                                      	t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y)))
                                                                                                      	t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
                                                                                                      	tmp = 0
                                                                                                      	if t < -8.120978919195912e-33:
                                                                                                      		tmp = t_2
                                                                                                      	elif t < -4.712553818218485e-169:
                                                                                                      		tmp = t_1
                                                                                                      	elif t < -7.633533346031584e-308:
                                                                                                      		tmp = t_2
                                                                                                      	elif t < 1.0535888557455487e-139:
                                                                                                      		tmp = t_1
                                                                                                      	else:
                                                                                                      		tmp = t_2
                                                                                                      	return tmp
                                                                                                      
                                                                                                      function code(x, y, z, t, a, b, c, i, j)
                                                                                                      	t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y))))
                                                                                                      	t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j)))
                                                                                                      	tmp = 0.0
                                                                                                      	if (t < -8.120978919195912e-33)
                                                                                                      		tmp = t_2;
                                                                                                      	elseif (t < -4.712553818218485e-169)
                                                                                                      		tmp = t_1;
                                                                                                      	elseif (t < -7.633533346031584e-308)
                                                                                                      		tmp = t_2;
                                                                                                      	elseif (t < 1.0535888557455487e-139)
                                                                                                      		tmp = t_1;
                                                                                                      	else
                                                                                                      		tmp = t_2;
                                                                                                      	end
                                                                                                      	return tmp
                                                                                                      end
                                                                                                      
                                                                                                      function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                                      	t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y)));
                                                                                                      	t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
                                                                                                      	tmp = 0.0;
                                                                                                      	if (t < -8.120978919195912e-33)
                                                                                                      		tmp = t_2;
                                                                                                      	elseif (t < -4.712553818218485e-169)
                                                                                                      		tmp = t_1;
                                                                                                      	elseif (t < -7.633533346031584e-308)
                                                                                                      		tmp = t_2;
                                                                                                      	elseif (t < 1.0535888557455487e-139)
                                                                                                      		tmp = t_1;
                                                                                                      	else
                                                                                                      		tmp = t_2;
                                                                                                      	end
                                                                                                      	tmp_2 = tmp;
                                                                                                      end
                                                                                                      
                                                                                                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
                                                                                                      
                                                                                                      \begin{array}{l}
                                                                                                      
                                                                                                      \\
                                                                                                      \begin{array}{l}
                                                                                                      t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
                                                                                                      t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
                                                                                                      \mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
                                                                                                      \;\;\;\;t\_2\\
                                                                                                      
                                                                                                      \mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
                                                                                                      \;\;\;\;t\_1\\
                                                                                                      
                                                                                                      \mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
                                                                                                      \;\;\;\;t\_2\\
                                                                                                      
                                                                                                      \mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
                                                                                                      \;\;\;\;t\_1\\
                                                                                                      
                                                                                                      \mathbf{else}:\\
                                                                                                      \;\;\;\;t\_2\\
                                                                                                      
                                                                                                      
                                                                                                      \end{array}
                                                                                                      \end{array}
                                                                                                      

                                                                                                      Reproduce

                                                                                                      ?
                                                                                                      herbie shell --seed 2025015 
                                                                                                      (FPCore (x y z t a b c i j)
                                                                                                        :name "Linear.Matrix:det33 from linear-1.19.1.3"
                                                                                                        :precision binary64
                                                                                                      
                                                                                                        :alt
                                                                                                        (! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))))))))
                                                                                                      
                                                                                                        (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))