Linear.Matrix:det33 from linear-1.19.1.3

Percentage Accurate: 73.3% → 82.5%
Time: 11.2s
Alternatives: 17
Speedup: 0.5×

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 17 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.3% 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: 82.5% accurate, 0.5× speedup?

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

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

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


\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.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

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

    1. Initial program 0.0%

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

      \[\leadsto \color{blue}{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. distribute-lft-neg-inN/A

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

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

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

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

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

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

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

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

    Alternative 2: 56.2% accurate, 1.0× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -2.6e18 < b < 4.5999999999999998e-35

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \mathsf{fma}\left(c \cdot t - \color{blue}{i \cdot y}, j, \left(z \cdot x\right) \cdot y\right) \]
        8. fp-cancel-sub-sign-invN/A

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

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

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

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

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

      if 4.5999999999999998e-35 < b < 1850

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

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

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

      if 1850 < b < 1.70000000000000005e97

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

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(-j, y, \frac{\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)}{i} + b \cdot a\right) \cdot i} \]
      5. Taylor expanded in a around -inf

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

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

        if 1.70000000000000005e97 < b

        1. Initial program 79.0%

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

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

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

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

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

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

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

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

        Alternative 3: 62.0% accurate, 1.1× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -2.7 \cdot 10^{+173}:\\ \;\;\;\;\mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b\\ \mathbf{elif}\;b \leq -3.8 \cdot 10^{-35} \lor \neg \left(b \leq 3.5 \cdot 10^{-96}\right):\\ \;\;\;\;\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(-i, y, c \cdot t\right), j, \left(z \cdot x\right) \cdot y\right)\\ \end{array} \end{array} \]
        (FPCore (x y z t a b c i j)
         :precision binary64
         (if (<= b -2.7e+173)
           (* (fma (- z) c (* i a)) b)
           (if (or (<= b -3.8e-35) (not (<= b 3.5e-96)))
             (fma (fma (- z) b (* j t)) c (* (fma (- a) t (* z y)) x))
             (fma (fma (- i) y (* c t)) j (* (* 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 (b <= -2.7e+173) {
        		tmp = fma(-z, c, (i * a)) * b;
        	} else if ((b <= -3.8e-35) || !(b <= 3.5e-96)) {
        		tmp = fma(fma(-z, b, (j * t)), c, (fma(-a, t, (z * y)) * x));
        	} else {
        		tmp = fma(fma(-i, y, (c * t)), j, ((z * x) * y));
        	}
        	return tmp;
        }
        
        function code(x, y, z, t, a, b, c, i, j)
        	tmp = 0.0
        	if (b <= -2.7e+173)
        		tmp = Float64(fma(Float64(-z), c, Float64(i * a)) * b);
        	elseif ((b <= -3.8e-35) || !(b <= 3.5e-96))
        		tmp = fma(fma(Float64(-z), b, Float64(j * t)), c, Float64(fma(Float64(-a), t, Float64(z * y)) * x));
        	else
        		tmp = fma(fma(Float64(-i), y, Float64(c * t)), j, Float64(Float64(z * x) * y));
        	end
        	return tmp
        end
        
        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -2.7e+173], N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[Or[LessEqual[b, -3.8e-35], N[Not[LessEqual[b, 3.5e-96]], $MachinePrecision]], N[(N[((-z) * b + N[(j * t), $MachinePrecision]), $MachinePrecision] * c + N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j + N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;b \leq -2.7 \cdot 10^{+173}:\\
        \;\;\;\;\mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b\\
        
        \mathbf{elif}\;b \leq -3.8 \cdot 10^{-35} \lor \neg \left(b \leq 3.5 \cdot 10^{-96}\right):\\
        \;\;\;\;\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(-i, y, c \cdot t\right), j, \left(z \cdot x\right) \cdot y\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if b < -2.7000000000000001e173

          1. Initial program 78.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 b around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -2.7000000000000001e173 < b < -3.8000000000000001e-35 or 3.4999999999999999e-96 < b

          1. Initial program 74.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -3.8000000000000001e-35 < b < 3.4999999999999999e-96

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(c \cdot t - \color{blue}{i \cdot y}, j, \left(z \cdot x\right) \cdot y\right) \]
            8. fp-cancel-sub-sign-invN/A

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

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

              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i\right), y, c \cdot t\right)}, j, \left(z \cdot x\right) \cdot y\right) \]
            11. lower-neg.f6472.1

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

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

          \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -2.7 \cdot 10^{+173}:\\ \;\;\;\;\mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b\\ \mathbf{elif}\;b \leq -3.8 \cdot 10^{-35} \lor \neg \left(b \leq 3.5 \cdot 10^{-96}\right):\\ \;\;\;\;\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(-i, y, c \cdot t\right), j, \left(z \cdot x\right) \cdot y\right)\\ \end{array} \]
        5. Add Preprocessing

        Alternative 4: 56.9% accurate, 1.1× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -2.6 \cdot 10^{+18}:\\ \;\;\;\;\mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b\\ \mathbf{elif}\;b \leq 4.6 \cdot 10^{-35}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot t\right), j, \left(z \cdot x\right) \cdot y\right)\\ \mathbf{elif}\;b \leq 1850:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{elif}\;b \leq 1.7 \cdot 10^{+97}:\\ \;\;\;\;\left(\left(-a\right) \cdot i\right) \cdot \mathsf{fma}\left(t, \frac{x}{i}, -b\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 (<= b -2.6e+18)
           (* (fma (- z) c (* i a)) b)
           (if (<= b 4.6e-35)
             (fma (fma (- i) y (* c t)) j (* (* z x) y))
             (if (<= b 1850.0)
               (* (fma (- b) c (* y x)) z)
               (if (<= b 1.7e+97)
                 (* (* (- a) i) (fma t (/ x i) (- b)))
                 (* (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 (b <= -2.6e+18) {
        		tmp = fma(-z, c, (i * a)) * b;
        	} else if (b <= 4.6e-35) {
        		tmp = fma(fma(-i, y, (c * t)), j, ((z * x) * y));
        	} else if (b <= 1850.0) {
        		tmp = fma(-b, c, (y * x)) * z;
        	} else if (b <= 1.7e+97) {
        		tmp = (-a * i) * fma(t, (x / i), -b);
        	} 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 (b <= -2.6e+18)
        		tmp = Float64(fma(Float64(-z), c, Float64(i * a)) * b);
        	elseif (b <= 4.6e-35)
        		tmp = fma(fma(Float64(-i), y, Float64(c * t)), j, Float64(Float64(z * x) * y));
        	elseif (b <= 1850.0)
        		tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z);
        	elseif (b <= 1.7e+97)
        		tmp = Float64(Float64(Float64(-a) * i) * fma(t, Float64(x / i), Float64(-b)));
        	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[b, -2.6e+18], N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[b, 4.6e-35], N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j + N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1850.0], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[b, 1.7e+97], N[(N[((-a) * i), $MachinePrecision] * N[(t * N[(x / i), $MachinePrecision] + (-b)), $MachinePrecision]), $MachinePrecision], N[(N[((-z) * b + N[(j * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;b \leq -2.6 \cdot 10^{+18}:\\
        \;\;\;\;\mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b\\
        
        \mathbf{elif}\;b \leq 4.6 \cdot 10^{-35}:\\
        \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot t\right), j, \left(z \cdot x\right) \cdot y\right)\\
        
        \mathbf{elif}\;b \leq 1850:\\
        \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
        
        \mathbf{elif}\;b \leq 1.7 \cdot 10^{+97}:\\
        \;\;\;\;\left(\left(-a\right) \cdot i\right) \cdot \mathsf{fma}\left(t, \frac{x}{i}, -b\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;\mathsf{fma}\left(-z, b, j \cdot t\right) \cdot c\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 5 regimes
        2. if b < -2.6e18

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -2.6e18 < b < 4.5999999999999998e-35

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(c \cdot t - \color{blue}{i \cdot y}, j, \left(z \cdot x\right) \cdot y\right) \]
            8. fp-cancel-sub-sign-invN/A

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

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

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

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

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

          if 4.5999999999999998e-35 < b < 1850

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

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

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

          if 1850 < b < 1.70000000000000005e97

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

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

            \[\leadsto \color{blue}{\mathsf{fma}\left(-j, y, \frac{\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)}{i} + b \cdot a\right) \cdot i} \]
          5. Taylor expanded in a around -inf

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

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

            if 1.70000000000000005e97 < b

            1. Initial program 79.0%

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

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

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

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

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

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

          Alternative 5: 57.1% accurate, 1.4× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -2.6 \cdot 10^{+18}:\\ \;\;\;\;\mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b\\ \mathbf{elif}\;b \leq 4.6 \cdot 10^{-35}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot t\right), j, \left(z \cdot x\right) \cdot y\right)\\ \mathbf{elif}\;b \leq 1850:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{elif}\;b \leq 1.6 \cdot 10^{+97}:\\ \;\;\;\;\mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\ \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 (<= b -2.6e+18)
             (* (fma (- z) c (* i a)) b)
             (if (<= b 4.6e-35)
               (fma (fma (- i) y (* c t)) j (* (* z x) y))
               (if (<= b 1850.0)
                 (* (fma (- b) c (* y x)) z)
                 (if (<= b 1.6e+97)
                   (* (fma (- x) t (* i b)) a)
                   (* (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 (b <= -2.6e+18) {
          		tmp = fma(-z, c, (i * a)) * b;
          	} else if (b <= 4.6e-35) {
          		tmp = fma(fma(-i, y, (c * t)), j, ((z * x) * y));
          	} else if (b <= 1850.0) {
          		tmp = fma(-b, c, (y * x)) * z;
          	} else if (b <= 1.6e+97) {
          		tmp = fma(-x, t, (i * b)) * a;
          	} 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 (b <= -2.6e+18)
          		tmp = Float64(fma(Float64(-z), c, Float64(i * a)) * b);
          	elseif (b <= 4.6e-35)
          		tmp = fma(fma(Float64(-i), y, Float64(c * t)), j, Float64(Float64(z * x) * y));
          	elseif (b <= 1850.0)
          		tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z);
          	elseif (b <= 1.6e+97)
          		tmp = Float64(fma(Float64(-x), t, Float64(i * b)) * a);
          	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[b, -2.6e+18], N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[b, 4.6e-35], N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j + N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1850.0], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[b, 1.6e+97], N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], N[(N[((-z) * b + N[(j * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;b \leq -2.6 \cdot 10^{+18}:\\
          \;\;\;\;\mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b\\
          
          \mathbf{elif}\;b \leq 4.6 \cdot 10^{-35}:\\
          \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot t\right), j, \left(z \cdot x\right) \cdot y\right)\\
          
          \mathbf{elif}\;b \leq 1850:\\
          \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
          
          \mathbf{elif}\;b \leq 1.6 \cdot 10^{+97}:\\
          \;\;\;\;\mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\
          
          \mathbf{else}:\\
          \;\;\;\;\mathsf{fma}\left(-z, b, j \cdot t\right) \cdot c\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 5 regimes
          2. if b < -2.6e18

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -2.6e18 < b < 4.5999999999999998e-35

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(c \cdot t - \color{blue}{i \cdot y}, j, \left(z \cdot x\right) \cdot y\right) \]
              8. fp-cancel-sub-sign-invN/A

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

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

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

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

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

            if 4.5999999999999998e-35 < b < 1850

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

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

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

            if 1850 < b < 1.60000000000000008e97

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if 1.60000000000000008e97 < b

            1. Initial program 79.0%

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

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

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

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

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

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

          Alternative 6: 52.4% accurate, 1.4× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\\ \mathbf{if}\;t \leq -26000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -5.8 \cdot 10^{-240}:\\ \;\;\;\;\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i\\ \mathbf{elif}\;t \leq 3.2 \cdot 10^{-247}:\\ \;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\ \mathbf{elif}\;t \leq 29500000000:\\ \;\;\;\;\mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b\\ \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 -26000.0)
               t_1
               (if (<= t -5.8e-240)
                 (* (fma (- y) j (* b a)) i)
                 (if (<= t 3.2e-247)
                   (* (fma (- i) j (* z x)) y)
                   (if (<= t 29500000000.0) (* (fma (- z) c (* i a)) b) 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 <= -26000.0) {
          		tmp = t_1;
          	} else if (t <= -5.8e-240) {
          		tmp = fma(-y, j, (b * a)) * i;
          	} else if (t <= 3.2e-247) {
          		tmp = fma(-i, j, (z * x)) * y;
          	} else if (t <= 29500000000.0) {
          		tmp = fma(-z, c, (i * a)) * b;
          	} 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 <= -26000.0)
          		tmp = t_1;
          	elseif (t <= -5.8e-240)
          		tmp = Float64(fma(Float64(-y), j, Float64(b * a)) * i);
          	elseif (t <= 3.2e-247)
          		tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y);
          	elseif (t <= 29500000000.0)
          		tmp = Float64(fma(Float64(-z), c, Float64(i * a)) * b);
          	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, -26000.0], t$95$1, If[LessEqual[t, -5.8e-240], N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[t, 3.2e-247], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[t, 29500000000.0], N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $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 -26000:\\
          \;\;\;\;t\_1\\
          
          \mathbf{elif}\;t \leq -5.8 \cdot 10^{-240}:\\
          \;\;\;\;\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i\\
          
          \mathbf{elif}\;t \leq 3.2 \cdot 10^{-247}:\\
          \;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
          
          \mathbf{elif}\;t \leq 29500000000:\\
          \;\;\;\;\mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b\\
          
          \mathbf{else}:\\
          \;\;\;\;t\_1\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 4 regimes
          2. if t < -26000 or 2.95e10 < t

            1. Initial program 65.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-*.f6473.6

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

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

            if -26000 < t < -5.8000000000000004e-240

            1. Initial program 77.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -5.8000000000000004e-240 < t < 3.19999999999999993e-247

            1. Initial program 82.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 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. distribute-lft-neg-inN/A

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

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

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

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

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

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

            if 3.19999999999999993e-247 < t < 2.95e10

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 7: 52.7% accurate, 1.4× speedup?

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

            1. Initial program 65.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-*.f6473.6

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

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

            if -26000 < t < -9.0000000000000004e-233 or 2.4999999999999999e-189 < t < 3.45e10

            1. Initial program 76.8%

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

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

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

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

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

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

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

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

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

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

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

            if -9.0000000000000004e-233 < t < 2.4999999999999999e-189

            1. Initial program 80.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-*.f6461.3

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

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

          Alternative 8: 42.3% accurate, 1.4× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\\ \mathbf{if}\;b \leq -5.5 \cdot 10^{+83}:\\ \;\;\;\;\left(\left(-b\right) \cdot c\right) \cdot z\\ \mathbf{elif}\;b \leq -3.2 \cdot 10^{-180}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 6.7 \cdot 10^{-102}:\\ \;\;\;\;\mathsf{fma}\left(c, t, \left(-y\right) \cdot i\right) \cdot j\\ \mathbf{elif}\;b \leq 3.4 \cdot 10^{+200}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-b\right) \cdot z\right) \cdot c\\ \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 (<= b -5.5e+83)
               (* (* (- b) c) z)
               (if (<= b -3.2e-180)
                 t_1
                 (if (<= b 6.7e-102)
                   (* (fma c t (* (- y) i)) j)
                   (if (<= b 3.4e+200) t_1 (* (* (- b) z) c)))))))
          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 (b <= -5.5e+83) {
          		tmp = (-b * c) * z;
          	} else if (b <= -3.2e-180) {
          		tmp = t_1;
          	} else if (b <= 6.7e-102) {
          		tmp = fma(c, t, (-y * i)) * j;
          	} else if (b <= 3.4e+200) {
          		tmp = t_1;
          	} else {
          		tmp = (-b * z) * c;
          	}
          	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 (b <= -5.5e+83)
          		tmp = Float64(Float64(Float64(-b) * c) * z);
          	elseif (b <= -3.2e-180)
          		tmp = t_1;
          	elseif (b <= 6.7e-102)
          		tmp = Float64(fma(c, t, Float64(Float64(-y) * i)) * j);
          	elseif (b <= 3.4e+200)
          		tmp = t_1;
          	else
          		tmp = Float64(Float64(Float64(-b) * z) * c);
          	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[b, -5.5e+83], N[(N[((-b) * c), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[b, -3.2e-180], t$95$1, If[LessEqual[b, 6.7e-102], N[(N[(c * t + N[((-y) * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[b, 3.4e+200], t$95$1, N[(N[((-b) * z), $MachinePrecision] * c), $MachinePrecision]]]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := \mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\\
          \mathbf{if}\;b \leq -5.5 \cdot 10^{+83}:\\
          \;\;\;\;\left(\left(-b\right) \cdot c\right) \cdot z\\
          
          \mathbf{elif}\;b \leq -3.2 \cdot 10^{-180}:\\
          \;\;\;\;t\_1\\
          
          \mathbf{elif}\;b \leq 6.7 \cdot 10^{-102}:\\
          \;\;\;\;\mathsf{fma}\left(c, t, \left(-y\right) \cdot i\right) \cdot j\\
          
          \mathbf{elif}\;b \leq 3.4 \cdot 10^{+200}:\\
          \;\;\;\;t\_1\\
          
          \mathbf{else}:\\
          \;\;\;\;\left(\left(-b\right) \cdot z\right) \cdot c\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 4 regimes
          2. if b < -5.4999999999999996e83

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

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

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

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

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

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

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

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

              \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
            7. 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. fp-cancel-sub-sign-invN/A

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

                \[\leadsto \left(x \cdot y + \color{blue}{\left(-1 \cdot b\right)} \cdot c\right) \cdot z \]
              5. associate-*r*N/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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

              if -5.4999999999999996e83 < b < -3.20000000000000015e-180 or 6.7e-102 < b < 3.39999999999999969e200

              1. Initial program 67.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-*.f6448.5

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

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

              if -3.20000000000000015e-180 < b < 6.7e-102

              1. Initial program 76.7%

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

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

                \[\leadsto \color{blue}{\mathsf{fma}\left(-j, y, \frac{\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)}{i} + b \cdot a\right) \cdot i} \]
              5. Taylor expanded in j around inf

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{fma}\left(c, t, \color{blue}{\left(\mathsf{neg}\left(y\right)\right)} \cdot i\right) \cdot j \]
                13. lower-neg.f6470.9

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

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

              if 3.39999999999999969e200 < b

              1. Initial program 65.2%

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

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

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

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

                  \[\leadsto \left(\left(-b\right) \cdot z\right) \cdot c \]
              8. Recombined 4 regimes into one program.
              9. Add Preprocessing

              Alternative 9: 30.4% accurate, 1.5× speedup?

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

                1. Initial program 70.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-*.f6464.5

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

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

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

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

                  if -2.9999999999999999e141 < x < -1.16e27

                  1. Initial program 79.0%

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

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

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

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

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

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

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

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

                    \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                  7. 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. fp-cancel-sub-sign-invN/A

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

                      \[\leadsto \left(x \cdot y + \color{blue}{\left(-1 \cdot b\right)} \cdot c\right) \cdot z \]
                    5. associate-*r*N/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. *-commutativeN/A

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

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

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

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

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

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

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

                    \[\leadsto \left(x \cdot y\right) \cdot z \]
                  10. Step-by-step derivation
                    1. Applied rewrites51.5%

                      \[\leadsto \left(x \cdot y\right) \cdot z \]

                    if -1.16e27 < x < -3.7499999999999998e-205

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

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

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

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

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

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

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

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

                      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                    7. 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. fp-cancel-sub-sign-invN/A

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

                        \[\leadsto \left(x \cdot y + \color{blue}{\left(-1 \cdot b\right)} \cdot c\right) \cdot z \]
                      5. associate-*r*N/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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

                      if -3.7499999999999998e-205 < x < 4.2e-217

                      1. Initial program 68.6%

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

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

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

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

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

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

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

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

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

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

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

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

                        if 4.2e-217 < x < 0.10000000000000001

                        1. Initial program 63.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

                          if 0.10000000000000001 < x

                          1. Initial program 73.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 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. distribute-lft-neg-inN/A

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

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

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

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

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

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

                            \[\leadsto \left(x \cdot z\right) \cdot y \]
                          7. Step-by-step derivation
                            1. Applied rewrites48.6%

                              \[\leadsto \left(x \cdot z\right) \cdot y \]
                          8. Recombined 6 regimes into one program.
                          9. Add Preprocessing

                          Alternative 10: 53.1% 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 -2.3:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 1.95 \cdot 10^{-90}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{elif}\;t \leq 24000000000:\\ \;\;\;\;\mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                          (FPCore (x y z t a b c i j)
                           :precision binary64
                           (let* ((t_1 (* (fma (- a) x (* j c)) t)))
                             (if (<= t -2.3)
                               t_1
                               (if (<= t 1.95e-90)
                                 (* (fma (- b) c (* y x)) z)
                                 (if (<= t 24000000000.0) (* (fma (- x) t (* i b)) a) t_1)))))
                          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                          	double t_1 = fma(-a, x, (j * c)) * t;
                          	double tmp;
                          	if (t <= -2.3) {
                          		tmp = t_1;
                          	} else if (t <= 1.95e-90) {
                          		tmp = fma(-b, c, (y * x)) * z;
                          	} else if (t <= 24000000000.0) {
                          		tmp = fma(-x, t, (i * b)) * a;
                          	} 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 <= -2.3)
                          		tmp = t_1;
                          	elseif (t <= 1.95e-90)
                          		tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z);
                          	elseif (t <= 24000000000.0)
                          		tmp = Float64(fma(Float64(-x), t, Float64(i * b)) * a);
                          	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, -2.3], t$95$1, If[LessEqual[t, 1.95e-90], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[t, 24000000000.0], N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a), $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 -2.3:\\
                          \;\;\;\;t\_1\\
                          
                          \mathbf{elif}\;t \leq 1.95 \cdot 10^{-90}:\\
                          \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
                          
                          \mathbf{elif}\;t \leq 24000000000:\\
                          \;\;\;\;\mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;t\_1\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 3 regimes
                          2. if t < -2.2999999999999998 or 2.4e10 < t

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

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

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

                            if -2.2999999999999998 < t < 1.95000000000000002e-90

                            1. Initial program 79.4%

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

                            if 1.95000000000000002e-90 < t < 2.4e10

                            1. Initial program 64.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          Alternative 11: 52.4% accurate, 2.0× speedup?

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

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

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

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

                            if -2.2999999999999998 < t < 1.69999999999999995e-101

                            1. Initial program 79.1%

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

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

                          Alternative 12: 42.0% accurate, 2.0× speedup?

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

                            1. Initial program 72.4%

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

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

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

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

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

                              if -2.4e136 < x < 2.6e7

                              1. Initial program 72.1%

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

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

                                \[\leadsto \color{blue}{\mathsf{fma}\left(-j, y, \frac{\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)}{i} + b \cdot a\right) \cdot i} \]
                              5. Taylor expanded in j around inf

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \mathsf{fma}\left(c, t, \color{blue}{\left(\mathsf{neg}\left(y\right)\right)} \cdot i\right) \cdot j \]
                                13. lower-neg.f6449.2

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

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

                              if 2.6e7 < x

                              1. Initial program 72.8%

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

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

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

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

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

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

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

                                \[\leadsto \left(x \cdot z\right) \cdot y \]
                              7. Step-by-step derivation
                                1. Applied rewrites49.3%

                                  \[\leadsto \left(x \cdot z\right) \cdot y \]
                              8. Recombined 3 regimes into one program.
                              9. Add Preprocessing

                              Alternative 13: 30.4% accurate, 2.1× speedup?

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

                                1. Initial program 70.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-*.f6464.5

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

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

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

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

                                  if -2.9999999999999999e141 < x < -2.1000000000000001e26

                                  1. Initial program 75.8%

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

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

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

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

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

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

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

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

                                    \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                  7. 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. fp-cancel-sub-sign-invN/A

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

                                      \[\leadsto \left(x \cdot y + \color{blue}{\left(-1 \cdot b\right)} \cdot c\right) \cdot z \]
                                    5. associate-*r*N/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. *-commutativeN/A

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

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

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

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

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

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

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

                                    \[\leadsto \left(x \cdot y\right) \cdot z \]
                                  10. Step-by-step derivation
                                    1. Applied rewrites49.6%

                                      \[\leadsto \left(x \cdot y\right) \cdot z \]

                                    if -2.1000000000000001e26 < x < 1.50000000000000001e-23

                                    1. Initial program 71.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        if 1.50000000000000001e-23 < x

                                        1. Initial program 73.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 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. distribute-lft-neg-inN/A

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

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

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

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

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

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

                                          \[\leadsto \left(x \cdot z\right) \cdot y \]
                                        7. Step-by-step derivation
                                          1. Applied rewrites48.6%

                                            \[\leadsto \left(x \cdot z\right) \cdot y \]
                                        8. Recombined 4 regimes into one program.
                                        9. Add Preprocessing

                                        Alternative 14: 30.6% accurate, 2.1× speedup?

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

                                          1. Initial program 70.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-*.f6464.5

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

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

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

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

                                            if -2.9999999999999999e141 < x < -2.1000000000000001e26

                                            1. Initial program 75.8%

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

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

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

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

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

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

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

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

                                              \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                            7. 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. fp-cancel-sub-sign-invN/A

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

                                                \[\leadsto \left(x \cdot y + \color{blue}{\left(-1 \cdot b\right)} \cdot c\right) \cdot z \]
                                              5. associate-*r*N/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. *-commutativeN/A

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

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

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

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

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

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

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

                                              \[\leadsto \left(x \cdot y\right) \cdot z \]
                                            10. Step-by-step derivation
                                              1. Applied rewrites49.6%

                                                \[\leadsto \left(x \cdot y\right) \cdot z \]

                                              if -2.1000000000000001e26 < x < 1.50000000000000001e-23

                                              1. Initial program 71.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                  if 1.50000000000000001e-23 < x

                                                  1. Initial program 73.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 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. distribute-lft-neg-inN/A

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

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

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

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

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

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

                                                    \[\leadsto \left(x \cdot z\right) \cdot y \]
                                                  7. Step-by-step derivation
                                                    1. Applied rewrites48.6%

                                                      \[\leadsto \left(x \cdot z\right) \cdot y \]
                                                  8. Recombined 4 regimes into one program.
                                                  9. Add Preprocessing

                                                  Alternative 15: 30.5% accurate, 2.1× speedup?

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

                                                    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-*.f6469.0

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

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

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

                                                        if -9.19999999999999967e-45 < t < 2.4499999999999999e-189

                                                        1. Initial program 76.9%

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

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

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

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

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

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

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

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

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

                                                          if 2.4499999999999999e-189 < t < 2.4e10

                                                          1. Initial program 77.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                          Alternative 16: 29.7% accurate, 2.6× speedup?

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

                                                            1. Initial program 68.0%

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

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

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

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

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

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

                                                                if -9.19999999999999967e-45 < t < 1.69999999999999995e-101

                                                                1. Initial program 78.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. distribute-lft-neg-inN/A

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

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

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

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

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

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

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

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

                                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -9.2 \cdot 10^{-45} \lor \neg \left(t \leq 1.7 \cdot 10^{-101}\right):\\ \;\;\;\;\left(c \cdot t\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;\left(y \cdot z\right) \cdot x\\ \end{array} \]
                                                                10. Add Preprocessing

                                                                Alternative 17: 22.5% 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 72.3%

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

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

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

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

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

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

                                                                    Developer Target 1: 68.8% 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 2024359 
                                                                    (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)))))