Linear.Matrix:det33 from linear-1.19.1.3

Percentage Accurate: 73.7% → 78.6%
Time: 11.2s
Alternatives: 19
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 19 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.7% 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: 78.6% accurate, 0.9× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if i < -1.28000000000000005e123

    1. Initial program 45.2%

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

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

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

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

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

      if -1.28000000000000005e123 < i < 5e152

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

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

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

      if 5e152 < i

      1. Initial program 42.8%

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

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

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

          \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(a \cdot b\right)\right) \cdot i} \]
        3. *-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-*.f6479.2

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

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

        \[\leadsto \left(j \cdot \left(-1 \cdot y + \frac{a \cdot b}{j}\right)\right) \cdot i \]
      7. Step-by-step derivation
        1. Applied rewrites82.5%

          \[\leadsto \left(\mathsf{fma}\left(a, \frac{b}{j}, -y\right) \cdot j\right) \cdot i \]
      8. Recombined 3 regimes into one program.
      9. Final simplification86.4%

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

      Alternative 2: 84.4% 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}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \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
       (let* ((t_1
               (+
                (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
                (* j (- (* c t) (* i y))))))
         (if (<= t_1 INFINITY)
           t_1
           (fma (fma (- j) y (* b a)) i (* (fma (- a) x (* j c)) t)))))
      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
      	double 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 = fma(fma(-j, y, (b * a)), i, (fma(-a, x, (j * c)) * t));
      	}
      	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 = fma(fma(Float64(-j), y, Float64(b * a)), i, 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[(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[(N[((-j) * y + N[(b * a), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $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}:\\
      \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\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.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

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

        1. Initial program 0.0%

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

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

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

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

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

          \[\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}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\right)\\ \end{array} \]
        9. Add Preprocessing

        Alternative 3: 68.6% accurate, 0.9× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\\ t_2 := \mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot a\right), b, t\_1\right)\\ \mathbf{if}\;i \leq -1.65 \cdot 10^{+49}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, t\_1\right)\\ \mathbf{elif}\;i \leq -2 \cdot 10^{-47}:\\ \;\;\;\;\mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\right)\\ \mathbf{elif}\;i \leq -7.8 \cdot 10^{-259}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;i \leq 1.45 \cdot 10^{-82}:\\ \;\;\;\;\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}\;i \leq 1.75 \cdot 10^{+134}:\\ \;\;\;\;t\_2\\ \mathbf{else}:\\ \;\;\;\;\left(\mathsf{fma}\left(a, \frac{b}{j}, -y\right) \cdot j\right) \cdot i\\ \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))
                (t_2 (fma (fma (- z) c (* i a)) b t_1)))
           (if (<= i -1.65e+49)
             (fma (fma (- j) y (* b a)) i t_1)
             (if (<= i -2e-47)
               (fma (* i a) b (* (fma (- j) i (* z x)) y))
               (if (<= i -7.8e-259)
                 t_2
                 (if (<= i 1.45e-82)
                   (fma (fma (- z) b (* j t)) c (* (fma (- a) t (* z y)) x))
                   (if (<= i 1.75e+134) t_2 (* (* (fma a (/ b j) (- y)) j) i))))))))
        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 t_2 = fma(fma(-z, c, (i * a)), b, t_1);
        	double tmp;
        	if (i <= -1.65e+49) {
        		tmp = fma(fma(-j, y, (b * a)), i, t_1);
        	} else if (i <= -2e-47) {
        		tmp = fma((i * a), b, (fma(-j, i, (z * x)) * y));
        	} else if (i <= -7.8e-259) {
        		tmp = t_2;
        	} else if (i <= 1.45e-82) {
        		tmp = fma(fma(-z, b, (j * t)), c, (fma(-a, t, (z * y)) * x));
        	} else if (i <= 1.75e+134) {
        		tmp = t_2;
        	} else {
        		tmp = (fma(a, (b / j), -y) * j) * i;
        	}
        	return tmp;
        }
        
        function code(x, y, z, t, a, b, c, i, j)
        	t_1 = Float64(fma(Float64(-a), x, Float64(j * c)) * t)
        	t_2 = fma(fma(Float64(-z), c, Float64(i * a)), b, t_1)
        	tmp = 0.0
        	if (i <= -1.65e+49)
        		tmp = fma(fma(Float64(-j), y, Float64(b * a)), i, t_1);
        	elseif (i <= -2e-47)
        		tmp = fma(Float64(i * a), b, Float64(fma(Float64(-j), i, Float64(z * x)) * y));
        	elseif (i <= -7.8e-259)
        		tmp = t_2;
        	elseif (i <= 1.45e-82)
        		tmp = fma(fma(Float64(-z), b, Float64(j * t)), c, Float64(fma(Float64(-a), t, Float64(z * y)) * x));
        	elseif (i <= 1.75e+134)
        		tmp = t_2;
        	else
        		tmp = Float64(Float64(fma(a, Float64(b / j), Float64(-y)) * j) * i);
        	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]}, Block[{t$95$2 = N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b + t$95$1), $MachinePrecision]}, If[LessEqual[i, -1.65e+49], N[(N[((-j) * y + N[(b * a), $MachinePrecision]), $MachinePrecision] * i + t$95$1), $MachinePrecision], If[LessEqual[i, -2e-47], N[(N[(i * a), $MachinePrecision] * b + N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -7.8e-259], t$95$2, If[LessEqual[i, 1.45e-82], N[(N[((-z) * b + N[(j * t), $MachinePrecision]), $MachinePrecision] * c + N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.75e+134], t$95$2, N[(N[(N[(a * N[(b / j), $MachinePrecision] + (-y)), $MachinePrecision] * j), $MachinePrecision] * i), $MachinePrecision]]]]]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := \mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\\
        t_2 := \mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot a\right), b, t\_1\right)\\
        \mathbf{if}\;i \leq -1.65 \cdot 10^{+49}:\\
        \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, t\_1\right)\\
        
        \mathbf{elif}\;i \leq -2 \cdot 10^{-47}:\\
        \;\;\;\;\mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\right)\\
        
        \mathbf{elif}\;i \leq -7.8 \cdot 10^{-259}:\\
        \;\;\;\;t\_2\\
        
        \mathbf{elif}\;i \leq 1.45 \cdot 10^{-82}:\\
        \;\;\;\;\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}\;i \leq 1.75 \cdot 10^{+134}:\\
        \;\;\;\;t\_2\\
        
        \mathbf{else}:\\
        \;\;\;\;\left(\mathsf{fma}\left(a, \frac{b}{j}, -y\right) \cdot j\right) \cdot i\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 5 regimes
        2. if i < -1.6499999999999999e49

          1. Initial program 51.2%

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

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

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

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

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

            if -1.6499999999999999e49 < i < -1.9999999999999999e-47

            1. Initial program 76.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if -1.9999999999999999e-47 < i < -7.80000000000000031e-259 or 1.44999999999999989e-82 < i < 1.75000000000000001e134

              1. Initial program 75.1%

                \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
              2. Add Preprocessing
              3. Taylor expanded in y around 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 rewrites79.4%

                \[\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 -7.80000000000000031e-259 < i < 1.44999999999999989e-82

              1. Initial program 83.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(\color{blue}{\left(j \cdot t\right) \cdot c} + \left(\mathsf{neg}\left(b\right)\right) \cdot \left(c \cdot z\right)\right) \]
                5. *-commutativeN/A

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

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

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

                  \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(\left(j \cdot t\right) \cdot c + \color{blue}{\left(-1 \cdot \left(b \cdot z\right)\right)} \cdot c\right) \]
                9. distribute-rgt-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 rewrites80.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 1.75000000000000001e134 < i

              1. Initial program 47.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 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-*.f6478.2

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

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

                \[\leadsto \left(j \cdot \left(-1 \cdot y + \frac{a \cdot b}{j}\right)\right) \cdot i \]
              7. Step-by-step derivation
                1. Applied rewrites81.2%

                  \[\leadsto \left(\mathsf{fma}\left(a, \frac{b}{j}, -y\right) \cdot j\right) \cdot i \]
              8. Recombined 5 regimes into one program.
              9. Final simplification83.0%

                \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -1.65 \cdot 10^{+49}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\right)\\ \mathbf{elif}\;i \leq -2 \cdot 10^{-47}:\\ \;\;\;\;\mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\right)\\ \mathbf{elif}\;i \leq -7.8 \cdot 10^{-259}:\\ \;\;\;\;\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{elif}\;i \leq 1.45 \cdot 10^{-82}:\\ \;\;\;\;\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}\;i \leq 1.75 \cdot 10^{+134}:\\ \;\;\;\;\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}:\\ \;\;\;\;\left(\mathsf{fma}\left(a, \frac{b}{j}, -y\right) \cdot j\right) \cdot i\\ \end{array} \]
              10. Add Preprocessing

              Alternative 4: 70.8% accurate, 1.1× speedup?

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

                1. Initial program 56.5%

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

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

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

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

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

                  if -1.6499999999999999e49 < i < -1.9999999999999999e-47

                  1. Initial program 76.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if -1.9999999999999999e-47 < i < 4.59999999999999989e-117

                    1. Initial program 81.5%

                      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                    2. Add Preprocessing
                    3. Taylor expanded in i around 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(\color{blue}{\left(j \cdot t\right) \cdot c} + \left(\mathsf{neg}\left(b\right)\right) \cdot \left(c \cdot z\right)\right) \]
                      5. *-commutativeN/A

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

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

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

                        \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(\left(j \cdot t\right) \cdot c + \color{blue}{\left(-1 \cdot \left(b \cdot z\right)\right)} \cdot c\right) \]
                      9. distribute-rgt-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 rewrites72.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)} \]
                  8. Recombined 3 regimes into one program.
                  9. Final simplification78.9%

                    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -1.65 \cdot 10^{+49}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\right)\\ \mathbf{elif}\;i \leq -2 \cdot 10^{-47}:\\ \;\;\;\;\mathsf{fma}\left(i \cdot a, b, \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\right)\\ \mathbf{elif}\;i \leq 4.6 \cdot 10^{-117}:\\ \;\;\;\;\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{else}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\right)\\ \end{array} \]
                  10. Add Preprocessing

                  Alternative 5: 71.1% accurate, 1.2× speedup?

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

                    1. Initial program 57.4%

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

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

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

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

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

                      if -4.8000000000000004e50 < t < 1.86000000000000005e-44

                      1. Initial program 82.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if 1.86000000000000005e-44 < t

                      1. Initial program 52.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 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 rewrites77.5%

                        \[\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 3 regimes into one program.
                    8. Final simplification79.1%

                      \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -4.8 \cdot 10^{+50}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\right)\\ \mathbf{elif}\;t \leq 1.86 \cdot 10^{-44}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot a\right), b, \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-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 6: 66.4% accurate, 1.2× speedup?

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

                      1. Initial program 51.5%

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

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

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

                          \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                        3. 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-*.f6464.9

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

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

                      if -4.40000000000000006e86 < z < 1.22e162

                      1. Initial program 74.1%

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

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

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

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

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

                        if 1.22e162 < z

                        1. Initial program 52.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        Alternative 7: 59.7% accurate, 1.5× speedup?

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

                          1. Initial program 62.1%

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

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

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

                              \[\leadsto \color{blue}{\left(j \cdot t - b \cdot z\right) \cdot c} \]
                            3. *-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.8

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

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

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

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

                            if -2.65000000000000009e54 < c < 2.1499999999999998e84

                            1. Initial program 73.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              if 2.1499999999999998e84 < c

                              1. Initial program 54.9%

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

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

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

                                  \[\leadsto \color{blue}{\left(j \cdot t - b \cdot z\right) \cdot c} \]
                                3. *-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-*.f6468.1

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

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

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

                            Alternative 8: 29.9% accurate, 1.6× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -0.18:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{elif}\;b \leq -3.2 \cdot 10^{-190}:\\ \;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\ \mathbf{elif}\;b \leq 2.2 \cdot 10^{-212}:\\ \;\;\;\;\left(j \cdot t\right) \cdot c\\ \mathbf{elif}\;b \leq 6.6 \cdot 10^{+36}:\\ \;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(b \cdot a\right) \cdot i\\ \end{array} \end{array} \]
                            (FPCore (x y z t a b c i j)
                             :precision binary64
                             (if (<= b -0.18)
                               (* (* i b) a)
                               (if (<= b -3.2e-190)
                                 (* (* (- j) y) i)
                                 (if (<= b 2.2e-212)
                                   (* (* j t) c)
                                   (if (<= b 6.6e+36) (* (* (- t) x) a) (* (* b a) i))))))
                            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                            	double tmp;
                            	if (b <= -0.18) {
                            		tmp = (i * b) * a;
                            	} else if (b <= -3.2e-190) {
                            		tmp = (-j * y) * i;
                            	} else if (b <= 2.2e-212) {
                            		tmp = (j * t) * c;
                            	} else if (b <= 6.6e+36) {
                            		tmp = (-t * x) * a;
                            	} else {
                            		tmp = (b * a) * 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 (b <= (-0.18d0)) then
                                    tmp = (i * b) * a
                                else if (b <= (-3.2d-190)) then
                                    tmp = (-j * y) * i
                                else if (b <= 2.2d-212) then
                                    tmp = (j * t) * c
                                else if (b <= 6.6d+36) then
                                    tmp = (-t * x) * a
                                else
                                    tmp = (b * a) * i
                                end if
                                code = tmp
                            end function
                            
                            public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                            	double tmp;
                            	if (b <= -0.18) {
                            		tmp = (i * b) * a;
                            	} else if (b <= -3.2e-190) {
                            		tmp = (-j * y) * i;
                            	} else if (b <= 2.2e-212) {
                            		tmp = (j * t) * c;
                            	} else if (b <= 6.6e+36) {
                            		tmp = (-t * x) * a;
                            	} else {
                            		tmp = (b * a) * i;
                            	}
                            	return tmp;
                            }
                            
                            def code(x, y, z, t, a, b, c, i, j):
                            	tmp = 0
                            	if b <= -0.18:
                            		tmp = (i * b) * a
                            	elif b <= -3.2e-190:
                            		tmp = (-j * y) * i
                            	elif b <= 2.2e-212:
                            		tmp = (j * t) * c
                            	elif b <= 6.6e+36:
                            		tmp = (-t * x) * a
                            	else:
                            		tmp = (b * a) * i
                            	return tmp
                            
                            function code(x, y, z, t, a, b, c, i, j)
                            	tmp = 0.0
                            	if (b <= -0.18)
                            		tmp = Float64(Float64(i * b) * a);
                            	elseif (b <= -3.2e-190)
                            		tmp = Float64(Float64(Float64(-j) * y) * i);
                            	elseif (b <= 2.2e-212)
                            		tmp = Float64(Float64(j * t) * c);
                            	elseif (b <= 6.6e+36)
                            		tmp = Float64(Float64(Float64(-t) * x) * a);
                            	else
                            		tmp = Float64(Float64(b * a) * i);
                            	end
                            	return tmp
                            end
                            
                            function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                            	tmp = 0.0;
                            	if (b <= -0.18)
                            		tmp = (i * b) * a;
                            	elseif (b <= -3.2e-190)
                            		tmp = (-j * y) * i;
                            	elseif (b <= 2.2e-212)
                            		tmp = (j * t) * c;
                            	elseif (b <= 6.6e+36)
                            		tmp = (-t * x) * a;
                            	else
                            		tmp = (b * a) * i;
                            	end
                            	tmp_2 = tmp;
                            end
                            
                            code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -0.18], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[b, -3.2e-190], N[(N[((-j) * y), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[b, 2.2e-212], N[(N[(j * t), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[b, 6.6e+36], N[(N[((-t) * x), $MachinePrecision] * a), $MachinePrecision], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision]]]]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            \mathbf{if}\;b \leq -0.18:\\
                            \;\;\;\;\left(i \cdot b\right) \cdot a\\
                            
                            \mathbf{elif}\;b \leq -3.2 \cdot 10^{-190}:\\
                            \;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\
                            
                            \mathbf{elif}\;b \leq 2.2 \cdot 10^{-212}:\\
                            \;\;\;\;\left(j \cdot t\right) \cdot c\\
                            
                            \mathbf{elif}\;b \leq 6.6 \cdot 10^{+36}:\\
                            \;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;\left(b \cdot a\right) \cdot i\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 5 regimes
                            2. if b < -0.17999999999999999

                              1. Initial program 70.0%

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

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

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

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

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

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

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

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

                                  \[\leadsto \left(\left(\mathsf{neg}\left(x\right)\right) \cdot t + \color{blue}{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-*.f6449.6

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

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

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

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

                                if -0.17999999999999999 < b < -3.2000000000000001e-190

                                1. Initial program 64.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 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-*.f6452.3

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

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

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

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

                                  if -3.2000000000000001e-190 < b < 2.20000000000000003e-212

                                  1. Initial program 49.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-*.f6473.3

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

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

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

                                    if 2.20000000000000003e-212 < b < 6.5999999999999997e36

                                    1. Initial program 69.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 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. mul-1-negN/A

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

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

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

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

                                        \[\leadsto \left(\left(\mathsf{neg}\left(x\right)\right) \cdot t + \color{blue}{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-*.f6443.1

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

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

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

                                        \[\leadsto \left(\left(-t\right) \cdot x\right) \cdot a \]

                                      if 6.5999999999999997e36 < b

                                      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 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-*.f6458.7

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

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

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

                                        \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -0.18:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{elif}\;b \leq -3.2 \cdot 10^{-190}:\\ \;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\ \mathbf{elif}\;b \leq 2.2 \cdot 10^{-212}:\\ \;\;\;\;\left(j \cdot t\right) \cdot c\\ \mathbf{elif}\;b \leq 6.6 \cdot 10^{+36}:\\ \;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(b \cdot a\right) \cdot i\\ \end{array} \]
                                      10. Add Preprocessing

                                      Alternative 9: 52.5% accurate, 1.6× speedup?

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

                                        1. Initial program 71.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 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 rewrites66.8%

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

                                        if -1.80000000000000011e-4 < b < -7.8000000000000003e-120

                                        1. Initial program 62.9%

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

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

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

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

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

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

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

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

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

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

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

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

                                        if -7.8000000000000003e-120 < b < 4.89999999999999979e83

                                        1. Initial program 65.3%

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

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

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

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

                                      Alternative 10: 52.7% 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 -1.55 \cdot 10^{+98}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 1.42 \cdot 10^{-124}:\\ \;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\ \mathbf{elif}\;t \leq 2.9 \cdot 10^{-7}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                      (FPCore (x y z t a b c i j)
                                       :precision binary64
                                       (let* ((t_1 (* (fma (- a) x (* j c)) t)))
                                         (if (<= t -1.55e+98)
                                           t_1
                                           (if (<= t 1.42e-124)
                                             (* (fma (- j) i (* z x)) y)
                                             (if (<= t 2.9e-7) (* (fma (- b) c (* y x)) z) t_1)))))
                                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                      	double t_1 = fma(-a, x, (j * c)) * t;
                                      	double tmp;
                                      	if (t <= -1.55e+98) {
                                      		tmp = t_1;
                                      	} else if (t <= 1.42e-124) {
                                      		tmp = fma(-j, i, (z * x)) * y;
                                      	} else if (t <= 2.9e-7) {
                                      		tmp = fma(-b, c, (y * x)) * z;
                                      	} else {
                                      		tmp = t_1;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      function code(x, y, z, t, a, b, c, i, j)
                                      	t_1 = Float64(fma(Float64(-a), x, Float64(j * c)) * t)
                                      	tmp = 0.0
                                      	if (t <= -1.55e+98)
                                      		tmp = t_1;
                                      	elseif (t <= 1.42e-124)
                                      		tmp = Float64(fma(Float64(-j), i, Float64(z * x)) * y);
                                      	elseif (t <= 2.9e-7)
                                      		tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z);
                                      	else
                                      		tmp = t_1;
                                      	end
                                      	return tmp
                                      end
                                      
                                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -1.55e+98], t$95$1, If[LessEqual[t, 1.42e-124], N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[t, 2.9e-7], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      t_1 := \mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\\
                                      \mathbf{if}\;t \leq -1.55 \cdot 10^{+98}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      \mathbf{elif}\;t \leq 1.42 \cdot 10^{-124}:\\
                                      \;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\
                                      
                                      \mathbf{elif}\;t \leq 2.9 \cdot 10^{-7}:\\
                                      \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 3 regimes
                                      2. if t < -1.5500000000000001e98 or 2.8999999999999998e-7 < t

                                        1. Initial program 51.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-*.f6465.6

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

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

                                        if -1.5500000000000001e98 < t < 1.42000000000000004e-124

                                        1. Initial program 80.4%

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

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

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

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

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

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

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

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

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

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

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

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

                                        if 1.42000000000000004e-124 < t < 2.8999999999999998e-7

                                        1. Initial program 85.7%

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

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

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

                                            \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                          3. 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-*.f6451.5

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

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

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

                                      Alternative 11: 48.3% accurate, 1.7× speedup?

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

                                        1. Initial program 68.8%

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

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

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

                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(a \cdot b\right)\right) \cdot i} \]
                                          3. *-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-*.f6453.9

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

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

                                          \[\leadsto \left(j \cdot \left(-1 \cdot y + \frac{a \cdot b}{j}\right)\right) \cdot i \]
                                        7. Step-by-step derivation
                                          1. Applied rewrites57.2%

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

                                          if -3.1000000000000001e-118 < b < 4.89999999999999979e83

                                          1. Initial program 64.8%

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

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

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

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

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

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

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

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

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

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

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

                                          if 4.89999999999999979e83 < b

                                          1. Initial program 73.6%

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

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

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

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

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

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

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

                                              \[\leadsto \left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \left(\color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} \cdot a\right) \cdot i\right) \cdot b \]
                                            7. distribute-lft-neg-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 rewrites73.9%

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

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

                                        Alternative 12: 52.2% accurate, 2.0× speedup?

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

                                          1. Initial program 55.5%

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

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

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

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

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

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

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

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

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

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

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

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

                                          if -8.5000000000000004e72 < y < 2.3999999999999999e51

                                          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 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. mul-1-negN/A

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

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

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

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

                                              \[\leadsto \left(\left(\mathsf{neg}\left(x\right)\right) \cdot t + \color{blue}{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-*.f6455.2

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

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

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

                                        Alternative 13: 51.5% accurate, 2.0× speedup?

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

                                          1. Initial program 54.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          if -7.49999999999999978e-22 < z < 6.4999999999999997e143

                                          1. Initial program 76.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-*.f6448.4

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

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

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

                                        Alternative 14: 28.6% accurate, 2.0× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -1.1 \cdot 10^{-139}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{elif}\;b \leq 2.2 \cdot 10^{-212}:\\ \;\;\;\;\left(j \cdot t\right) \cdot c\\ \mathbf{elif}\;b \leq 6.6 \cdot 10^{+36}:\\ \;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(b \cdot a\right) \cdot i\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a b c i j)
                                         :precision binary64
                                         (if (<= b -1.1e-139)
                                           (* (* i b) a)
                                           (if (<= b 2.2e-212)
                                             (* (* j t) c)
                                             (if (<= b 6.6e+36) (* (* (- t) x) a) (* (* b a) i)))))
                                        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                        	double tmp;
                                        	if (b <= -1.1e-139) {
                                        		tmp = (i * b) * a;
                                        	} else if (b <= 2.2e-212) {
                                        		tmp = (j * t) * c;
                                        	} else if (b <= 6.6e+36) {
                                        		tmp = (-t * x) * a;
                                        	} else {
                                        		tmp = (b * a) * 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 (b <= (-1.1d-139)) then
                                                tmp = (i * b) * a
                                            else if (b <= 2.2d-212) then
                                                tmp = (j * t) * c
                                            else if (b <= 6.6d+36) then
                                                tmp = (-t * x) * a
                                            else
                                                tmp = (b * a) * i
                                            end if
                                            code = tmp
                                        end function
                                        
                                        public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                        	double tmp;
                                        	if (b <= -1.1e-139) {
                                        		tmp = (i * b) * a;
                                        	} else if (b <= 2.2e-212) {
                                        		tmp = (j * t) * c;
                                        	} else if (b <= 6.6e+36) {
                                        		tmp = (-t * x) * a;
                                        	} else {
                                        		tmp = (b * a) * i;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        def code(x, y, z, t, a, b, c, i, j):
                                        	tmp = 0
                                        	if b <= -1.1e-139:
                                        		tmp = (i * b) * a
                                        	elif b <= 2.2e-212:
                                        		tmp = (j * t) * c
                                        	elif b <= 6.6e+36:
                                        		tmp = (-t * x) * a
                                        	else:
                                        		tmp = (b * a) * i
                                        	return tmp
                                        
                                        function code(x, y, z, t, a, b, c, i, j)
                                        	tmp = 0.0
                                        	if (b <= -1.1e-139)
                                        		tmp = Float64(Float64(i * b) * a);
                                        	elseif (b <= 2.2e-212)
                                        		tmp = Float64(Float64(j * t) * c);
                                        	elseif (b <= 6.6e+36)
                                        		tmp = Float64(Float64(Float64(-t) * x) * a);
                                        	else
                                        		tmp = Float64(Float64(b * a) * i);
                                        	end
                                        	return tmp
                                        end
                                        
                                        function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                        	tmp = 0.0;
                                        	if (b <= -1.1e-139)
                                        		tmp = (i * b) * a;
                                        	elseif (b <= 2.2e-212)
                                        		tmp = (j * t) * c;
                                        	elseif (b <= 6.6e+36)
                                        		tmp = (-t * x) * a;
                                        	else
                                        		tmp = (b * a) * i;
                                        	end
                                        	tmp_2 = tmp;
                                        end
                                        
                                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -1.1e-139], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[b, 2.2e-212], N[(N[(j * t), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[b, 6.6e+36], N[(N[((-t) * x), $MachinePrecision] * a), $MachinePrecision], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision]]]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        \mathbf{if}\;b \leq -1.1 \cdot 10^{-139}:\\
                                        \;\;\;\;\left(i \cdot b\right) \cdot a\\
                                        
                                        \mathbf{elif}\;b \leq 2.2 \cdot 10^{-212}:\\
                                        \;\;\;\;\left(j \cdot t\right) \cdot c\\
                                        
                                        \mathbf{elif}\;b \leq 6.6 \cdot 10^{+36}:\\
                                        \;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;\left(b \cdot a\right) \cdot i\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 4 regimes
                                        2. if b < -1.10000000000000005e-139

                                          1. Initial program 67.7%

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

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

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

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

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

                                              \[\leadsto \left(\left(\mathsf{neg}\left(x\right)\right) \cdot t + \color{blue}{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-*.f6447.4

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

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

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

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

                                            if -1.10000000000000005e-139 < b < 2.20000000000000003e-212

                                            1. Initial program 54.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-*.f6470.4

                                                \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{j \cdot c}\right) \cdot t \]
                                            5. Applied rewrites70.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 rewrites50.1%

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

                                              if 2.20000000000000003e-212 < b < 6.5999999999999997e36

                                              1. Initial program 69.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 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. mul-1-negN/A

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

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

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

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

                                                  \[\leadsto \left(\left(\mathsf{neg}\left(x\right)\right) \cdot t + \color{blue}{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-*.f6443.1

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

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

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

                                                  \[\leadsto \left(\left(-t\right) \cdot x\right) \cdot a \]

                                                if 6.5999999999999997e36 < b

                                                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 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-*.f6458.7

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

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

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

                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.1 \cdot 10^{-139}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{elif}\;b \leq 2.2 \cdot 10^{-212}:\\ \;\;\;\;\left(j \cdot t\right) \cdot c\\ \mathbf{elif}\;b \leq 6.6 \cdot 10^{+36}:\\ \;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(b \cdot a\right) \cdot i\\ \end{array} \]
                                                10. Add Preprocessing

                                                Alternative 15: 40.3% accurate, 2.0× speedup?

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

                                                  1. Initial program 69.7%

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

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

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

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

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

                                                      \[\leadsto \left(\left(\mathsf{neg}\left(x\right)\right) \cdot t + \color{blue}{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-*.f6449.6

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

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

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

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

                                                    if -2.00000000000000001e-41 < b < 9.1999999999999996e85

                                                    1. Initial program 64.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-*.f6458.9

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

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

                                                    if 9.1999999999999996e85 < b

                                                    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-*.f6458.9

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

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

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

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

                                                    Alternative 16: 28.4% accurate, 2.6× speedup?

                                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -1.1 \cdot 10^{-139} \lor \neg \left(b \leq 3 \cdot 10^{+84}\right):\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot t\right) \cdot c\\ \end{array} \end{array} \]
                                                    (FPCore (x y z t a b c i j)
                                                     :precision binary64
                                                     (if (or (<= b -1.1e-139) (not (<= b 3e+84))) (* (* i b) a) (* (* j t) c)))
                                                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                    	double tmp;
                                                    	if ((b <= -1.1e-139) || !(b <= 3e+84)) {
                                                    		tmp = (i * b) * a;
                                                    	} else {
                                                    		tmp = (j * t) * 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 ((b <= (-1.1d-139)) .or. (.not. (b <= 3d+84))) then
                                                            tmp = (i * b) * a
                                                        else
                                                            tmp = (j * t) * 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 ((b <= -1.1e-139) || !(b <= 3e+84)) {
                                                    		tmp = (i * b) * a;
                                                    	} else {
                                                    		tmp = (j * t) * c;
                                                    	}
                                                    	return tmp;
                                                    }
                                                    
                                                    def code(x, y, z, t, a, b, c, i, j):
                                                    	tmp = 0
                                                    	if (b <= -1.1e-139) or not (b <= 3e+84):
                                                    		tmp = (i * b) * a
                                                    	else:
                                                    		tmp = (j * t) * c
                                                    	return tmp
                                                    
                                                    function code(x, y, z, t, a, b, c, i, j)
                                                    	tmp = 0.0
                                                    	if ((b <= -1.1e-139) || !(b <= 3e+84))
                                                    		tmp = Float64(Float64(i * b) * a);
                                                    	else
                                                    		tmp = Float64(Float64(j * t) * c);
                                                    	end
                                                    	return tmp
                                                    end
                                                    
                                                    function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                    	tmp = 0.0;
                                                    	if ((b <= -1.1e-139) || ~((b <= 3e+84)))
                                                    		tmp = (i * b) * a;
                                                    	else
                                                    		tmp = (j * t) * c;
                                                    	end
                                                    	tmp_2 = tmp;
                                                    end
                                                    
                                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -1.1e-139], N[Not[LessEqual[b, 3e+84]], $MachinePrecision]], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], N[(N[(j * t), $MachinePrecision] * c), $MachinePrecision]]
                                                    
                                                    \begin{array}{l}
                                                    
                                                    \\
                                                    \begin{array}{l}
                                                    \mathbf{if}\;b \leq -1.1 \cdot 10^{-139} \lor \neg \left(b \leq 3 \cdot 10^{+84}\right):\\
                                                    \;\;\;\;\left(i \cdot b\right) \cdot a\\
                                                    
                                                    \mathbf{else}:\\
                                                    \;\;\;\;\left(j \cdot t\right) \cdot c\\
                                                    
                                                    
                                                    \end{array}
                                                    \end{array}
                                                    
                                                    Derivation
                                                    1. Split input into 2 regimes
                                                    2. if b < -1.10000000000000005e-139 or 2.99999999999999996e84 < b

                                                      1. Initial program 70.2%

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

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

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

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

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

                                                          \[\leadsto \left(\left(\mathsf{neg}\left(x\right)\right) \cdot t + \color{blue}{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-*.f6447.3

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

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

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

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

                                                        if -1.10000000000000005e-139 < b < 2.99999999999999996e84

                                                        1. Initial program 65.0%

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

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

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

                                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right) \cdot t} \]
                                                          3. 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-*.f6463.5

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

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

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

                                                            \[\leadsto \left(j \cdot t\right) \cdot \color{blue}{c} \]
                                                        8. Recombined 2 regimes into one program.
                                                        9. Final simplification38.8%

                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.1 \cdot 10^{-139} \lor \neg \left(b \leq 3 \cdot 10^{+84}\right):\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot t\right) \cdot c\\ \end{array} \]
                                                        10. Add Preprocessing

                                                        Alternative 17: 28.4% accurate, 2.6× speedup?

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

                                                          1. Initial program 67.7%

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

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

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

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

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

                                                              \[\leadsto \left(\left(\mathsf{neg}\left(x\right)\right) \cdot t + \color{blue}{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-*.f6447.4

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

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

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

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

                                                            if -1.10000000000000005e-139 < b < 2.94999999999999992e84

                                                            1. Initial program 65.0%

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

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

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

                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right) \cdot t} \]
                                                              3. 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-*.f6463.5

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

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

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

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

                                                              if 2.94999999999999992e84 < b

                                                              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-*.f6458.9

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

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

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

                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.1 \cdot 10^{-139}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{elif}\;b \leq 2.95 \cdot 10^{+84}:\\ \;\;\;\;\left(j \cdot t\right) \cdot c\\ \mathbf{else}:\\ \;\;\;\;\left(b \cdot a\right) \cdot i\\ \end{array} \]
                                                              10. Add Preprocessing

                                                              Alternative 18: 29.8% accurate, 2.6× speedup?

                                                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -2.1 \cdot 10^{+110}:\\ \;\;\;\;\left(c \cdot t\right) \cdot j\\ \mathbf{elif}\;t \leq 3.15 \cdot 10^{-24}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot t\right) \cdot c\\ \end{array} \end{array} \]
                                                              (FPCore (x y z t a b c i j)
                                                               :precision binary64
                                                               (if (<= t -2.1e+110)
                                                                 (* (* c t) j)
                                                                 (if (<= t 3.15e-24) (* (* z y) x) (* (* j t) c))))
                                                              double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                              	double tmp;
                                                              	if (t <= -2.1e+110) {
                                                              		tmp = (c * t) * j;
                                                              	} else if (t <= 3.15e-24) {
                                                              		tmp = (z * y) * x;
                                                              	} else {
                                                              		tmp = (j * t) * 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 (t <= (-2.1d+110)) then
                                                                      tmp = (c * t) * j
                                                                  else if (t <= 3.15d-24) then
                                                                      tmp = (z * y) * x
                                                                  else
                                                                      tmp = (j * t) * 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 (t <= -2.1e+110) {
                                                              		tmp = (c * t) * j;
                                                              	} else if (t <= 3.15e-24) {
                                                              		tmp = (z * y) * x;
                                                              	} else {
                                                              		tmp = (j * t) * c;
                                                              	}
                                                              	return tmp;
                                                              }
                                                              
                                                              def code(x, y, z, t, a, b, c, i, j):
                                                              	tmp = 0
                                                              	if t <= -2.1e+110:
                                                              		tmp = (c * t) * j
                                                              	elif t <= 3.15e-24:
                                                              		tmp = (z * y) * x
                                                              	else:
                                                              		tmp = (j * t) * c
                                                              	return tmp
                                                              
                                                              function code(x, y, z, t, a, b, c, i, j)
                                                              	tmp = 0.0
                                                              	if (t <= -2.1e+110)
                                                              		tmp = Float64(Float64(c * t) * j);
                                                              	elseif (t <= 3.15e-24)
                                                              		tmp = Float64(Float64(z * y) * x);
                                                              	else
                                                              		tmp = Float64(Float64(j * t) * c);
                                                              	end
                                                              	return tmp
                                                              end
                                                              
                                                              function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                              	tmp = 0.0;
                                                              	if (t <= -2.1e+110)
                                                              		tmp = (c * t) * j;
                                                              	elseif (t <= 3.15e-24)
                                                              		tmp = (z * y) * x;
                                                              	else
                                                              		tmp = (j * t) * c;
                                                              	end
                                                              	tmp_2 = tmp;
                                                              end
                                                              
                                                              code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -2.1e+110], N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[t, 3.15e-24], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], N[(N[(j * t), $MachinePrecision] * c), $MachinePrecision]]]
                                                              
                                                              \begin{array}{l}
                                                              
                                                              \\
                                                              \begin{array}{l}
                                                              \mathbf{if}\;t \leq -2.1 \cdot 10^{+110}:\\
                                                              \;\;\;\;\left(c \cdot t\right) \cdot j\\
                                                              
                                                              \mathbf{elif}\;t \leq 3.15 \cdot 10^{-24}:\\
                                                              \;\;\;\;\left(z \cdot y\right) \cdot x\\
                                                              
                                                              \mathbf{else}:\\
                                                              \;\;\;\;\left(j \cdot t\right) \cdot c\\
                                                              
                                                              
                                                              \end{array}
                                                              \end{array}
                                                              
                                                              Derivation
                                                              1. Split input into 3 regimes
                                                              2. if t < -2.10000000000000015e110

                                                                1. Initial program 53.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                    if -2.10000000000000015e110 < t < 3.1499999999999999e-24

                                                                    1. Initial program 81.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                      if 3.1499999999999999e-24 < t

                                                                      1. Initial program 52.1%

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

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

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

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

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

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

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

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

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

                                                                          \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{j \cdot c}\right) \cdot t \]
                                                                      5. Applied rewrites60.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 rewrites39.9%

                                                                          \[\leadsto \left(j \cdot t\right) \cdot \color{blue}{c} \]
                                                                      8. Recombined 3 regimes into one program.
                                                                      9. Final simplification34.7%

                                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -2.1 \cdot 10^{+110}:\\ \;\;\;\;\left(c \cdot t\right) \cdot j\\ \mathbf{elif}\;t \leq 3.15 \cdot 10^{-24}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot t\right) \cdot c\\ \end{array} \]
                                                                      10. Add Preprocessing

                                                                      Alternative 19: 22.4% accurate, 5.5× speedup?

                                                                      \[\begin{array}{l} \\ \left(c \cdot t\right) \cdot j \end{array} \]
                                                                      (FPCore (x y z t a b c i j) :precision binary64 (* (* c t) j))
                                                                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                      	return (c * t) * 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 = (c * t) * 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 (c * t) * j;
                                                                      }
                                                                      
                                                                      def code(x, y, z, t, a, b, c, i, j):
                                                                      	return (c * t) * j
                                                                      
                                                                      function code(x, y, z, t, a, b, c, i, j)
                                                                      	return Float64(Float64(c * t) * j)
                                                                      end
                                                                      
                                                                      function tmp = code(x, y, z, t, a, b, c, i, j)
                                                                      	tmp = (c * t) * j;
                                                                      end
                                                                      
                                                                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision]
                                                                      
                                                                      \begin{array}{l}
                                                                      
                                                                      \\
                                                                      \left(c \cdot t\right) \cdot j
                                                                      \end{array}
                                                                      
                                                                      Derivation
                                                                      1. Initial program 67.9%

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

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

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

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

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

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

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

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

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

                                                                          \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{j \cdot c}\right) \cdot t \]
                                                                      5. Applied rewrites43.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 rewrites25.0%

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

                                                                            \[\leadsto \left(c \cdot t\right) \cdot j \]
                                                                          2. Final simplification25.2%

                                                                            \[\leadsto \left(c \cdot t\right) \cdot j \]
                                                                          3. Add Preprocessing

                                                                          Developer Target 1: 69.0% 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 2025016 
                                                                          (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)))))