Data.Colour.Matrix:determinant from colour-2.3.3, A

Percentage Accurate: 73.4% → 82.6%
Time: 11.2s
Alternatives: 18
Speedup: 0.5×

Specification

?
\[\begin{array}{l} \\ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (+
  (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i))))
  (* j (- (* c a) (* y i)))))
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) - (t * i)))) + (j * ((c * a) - (y * i)));
}
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) - (t * i)))) + (j * ((c * a) - (y * i)))
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) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j):
	return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
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(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i))))
end
function tmp = code(x, y, z, t, a, b, c, i, j)
	tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
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[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

\[\begin{array}{l} \\ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (+
  (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i))))
  (* j (- (* c a) (* y i)))))
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) - (t * i)))) + (j * ((c * a) - (y * i)));
}
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) - (t * i)))) + (j * ((c * a) - (y * i)))
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) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j):
	return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
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(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i))))
end
function tmp = code(x, y, z, t, a, b, c, i, j)
	tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
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[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Alternative 1: 82.6% accurate, 0.5× speedup?

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

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

\mathbf{else}:\\
\;\;\;\;\left(\left(x - \frac{c \cdot b}{y}\right) \cdot y\right) \cdot z\\


\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 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0

    1. Initial program 95.3%

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

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

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

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

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

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

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

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

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

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

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

    1. Initial program 0.0%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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-*.f6449.6

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

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

      \[\leadsto \left(y \cdot \left(x + -1 \cdot \frac{b \cdot c}{y}\right)\right) \cdot z \]
    7. Step-by-step derivation
      1. Applied rewrites53.3%

        \[\leadsto \left(\left(x - \frac{c \cdot b}{y}\right) \cdot y\right) \cdot z \]
    8. Recombined 2 regimes into one program.
    9. Add Preprocessing

    Alternative 2: 57.0% accurate, 1.1× speedup?

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

      1. Initial program 68.7%

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

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

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

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

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

        if -7.79999999999999952e53 < i < -5.25e-163 or -4.19999999999999994e-266 < i < 5.3999999999999999e165

        1. Initial program 77.0%

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \color{blue}{-1 \cdot \left(b \cdot \left(c \cdot z\right)\right)}\right) \]
        6. Step-by-step derivation
          1. associate-*r*N/A

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

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

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

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

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

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

        if -5.25e-163 < i < -4.19999999999999994e-266

        1. Initial program 73.8%

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

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

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

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

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

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

          \[\leadsto \color{blue}{\left(z \cdot x\right) \cdot y} + j \cdot \left(c \cdot a - y \cdot i\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 a - y \cdot i\right)} \]
          2. +-commutativeN/A

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

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

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(\color{blue}{\left(-y\right) \cdot i + c \cdot a}, j, \left(z \cdot x\right) \cdot y\right) \]
          11. lift-fma.f6474.8

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

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

          \[\leadsto \mathsf{fma}\left(\color{blue}{a \cdot c}, j, \left(x \cdot y\right) \cdot z\right) \]
        9. Step-by-step derivation
          1. *-commutativeN/A

            \[\leadsto \mathsf{fma}\left(\color{blue}{c \cdot a}, j, \left(x \cdot y\right) \cdot z\right) \]
          2. lower-*.f6483.1

            \[\leadsto \mathsf{fma}\left(\color{blue}{c \cdot a}, j, \left(x \cdot y\right) \cdot z\right) \]
        10. Applied rewrites83.1%

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

        if 5.3999999999999999e165 < i

        1. Initial program 89.6%

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

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

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

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

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

        Alternative 3: 50.5% accurate, 1.1× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\ t_2 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{if}\;z \leq -2.55 \cdot 10^{-79}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;z \leq -1.3 \cdot 10^{-259}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 2.2 \cdot 10^{-238}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \mathbf{elif}\;z \leq 9.6 \cdot 10^{-160}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 5200000000000:\\ \;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\ \mathbf{elif}\;z \leq 3.3 \cdot 10^{+77}:\\ \;\;\;\;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 (- a) x (* i b)) t)) (t_2 (* (fma (- b) c (* y x)) z)))
           (if (<= z -2.55e-79)
             t_2
             (if (<= z -1.3e-259)
               t_1
               (if (<= z 2.2e-238)
                 (* (fma (- i) y (* c a)) j)
                 (if (<= z 9.6e-160)
                   t_1
                   (if (<= z 5200000000000.0)
                     (* (fma (- j) i (* z x)) y)
                     (if (<= z 3.3e+77) 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(-a, x, (i * b)) * t;
        	double t_2 = fma(-b, c, (y * x)) * z;
        	double tmp;
        	if (z <= -2.55e-79) {
        		tmp = t_2;
        	} else if (z <= -1.3e-259) {
        		tmp = t_1;
        	} else if (z <= 2.2e-238) {
        		tmp = fma(-i, y, (c * a)) * j;
        	} else if (z <= 9.6e-160) {
        		tmp = t_1;
        	} else if (z <= 5200000000000.0) {
        		tmp = fma(-j, i, (z * x)) * y;
        	} else if (z <= 3.3e+77) {
        		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(-a), x, Float64(i * b)) * t)
        	t_2 = Float64(fma(Float64(-b), c, Float64(y * x)) * z)
        	tmp = 0.0
        	if (z <= -2.55e-79)
        		tmp = t_2;
        	elseif (z <= -1.3e-259)
        		tmp = t_1;
        	elseif (z <= 2.2e-238)
        		tmp = Float64(fma(Float64(-i), y, Float64(c * a)) * j);
        	elseif (z <= 9.6e-160)
        		tmp = t_1;
        	elseif (z <= 5200000000000.0)
        		tmp = Float64(fma(Float64(-j), i, Float64(z * x)) * y);
        	elseif (z <= 3.3e+77)
        		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[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -2.55e-79], t$95$2, If[LessEqual[z, -1.3e-259], t$95$1, If[LessEqual[z, 2.2e-238], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[z, 9.6e-160], t$95$1, If[LessEqual[z, 5200000000000.0], N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[z, 3.3e+77], t$95$1, t$95$2]]]]]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := \mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\
        t_2 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
        \mathbf{if}\;z \leq -2.55 \cdot 10^{-79}:\\
        \;\;\;\;t\_2\\
        
        \mathbf{elif}\;z \leq -1.3 \cdot 10^{-259}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;z \leq 2.2 \cdot 10^{-238}:\\
        \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
        
        \mathbf{elif}\;z \leq 9.6 \cdot 10^{-160}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;z \leq 5200000000000:\\
        \;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\
        
        \mathbf{elif}\;z \leq 3.3 \cdot 10^{+77}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_2\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 4 regimes
        2. if z < -2.55e-79 or 3.2999999999999998e77 < z

          1. Initial program 68.8%

            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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-*.f6469.3

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

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

          if -2.55e-79 < z < -1.3e-259 or 2.19999999999999991e-238 < z < 9.59999999999999964e-160 or 5.2e12 < z < 3.2999999999999998e77

          1. Initial program 85.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -1.3e-259 < z < 2.19999999999999991e-238

          1. Initial program 74.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
            12. lower-*.f6470.2

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

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

          if 9.59999999999999964e-160 < z < 5.2e12

          1. Initial program 88.2%

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

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

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

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

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

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

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

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

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

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

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

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

        Alternative 4: 60.6% accurate, 1.1× speedup?

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

          1. Initial program 67.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -1.8e168 < c < -2.7000000000000001e-39

          1. Initial program 73.6%

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

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

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

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

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

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

            \[\leadsto \color{blue}{\left(z \cdot x\right) \cdot y} + j \cdot \left(c \cdot a - y \cdot i\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 a - y \cdot i\right)} \]
            2. +-commutativeN/A

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(\color{blue}{\left(-y\right) \cdot i + c \cdot a}, j, \left(z \cdot x\right) \cdot y\right) \]
            11. lift-fma.f6474.5

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

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

          if -2.7000000000000001e-39 < c < -2.79999999999999998e-93

          1. Initial program 73.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -2.79999999999999998e-93 < c < 5.5000000000000001e113

            1. Initial program 81.6%

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

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

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

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

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

            Alternative 5: 60.5% accurate, 1.1× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c\\ \mathbf{if}\;c \leq -1.8 \cdot 10^{+168}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq -2.75 \cdot 10^{-39}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, i, c \cdot a\right), j, \left(x \cdot y\right) \cdot z\right)\\ \mathbf{elif}\;c \leq -8.8 \cdot 10^{-93}:\\ \;\;\;\;\left(\mathsf{fma}\left(-a, \frac{x}{i}, b\right) \cdot i\right) \cdot t\\ \mathbf{elif}\;c \leq 5.5 \cdot 10^{+113}:\\ \;\;\;\;\mathsf{fma}\left(i \cdot t, b, \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
            (FPCore (x y z t a b c i j)
             :precision binary64
             (let* ((t_1 (* (fma (- z) b (* j a)) c)))
               (if (<= c -1.8e+168)
                 t_1
                 (if (<= c -2.75e-39)
                   (fma (fma (- y) i (* c a)) j (* (* x y) z))
                   (if (<= c -8.8e-93)
                     (* (* (fma (- a) (/ x i) b) i) t)
                     (if (<= c 5.5e+113)
                       (fma (* i t) b (* (fma (- j) i (* z x)) y))
                       t_1))))))
            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
            	double t_1 = fma(-z, b, (j * a)) * c;
            	double tmp;
            	if (c <= -1.8e+168) {
            		tmp = t_1;
            	} else if (c <= -2.75e-39) {
            		tmp = fma(fma(-y, i, (c * a)), j, ((x * y) * z));
            	} else if (c <= -8.8e-93) {
            		tmp = (fma(-a, (x / i), b) * i) * t;
            	} else if (c <= 5.5e+113) {
            		tmp = fma((i * t), b, (fma(-j, i, (z * x)) * y));
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a, b, c, i, j)
            	t_1 = Float64(fma(Float64(-z), b, Float64(j * a)) * c)
            	tmp = 0.0
            	if (c <= -1.8e+168)
            		tmp = t_1;
            	elseif (c <= -2.75e-39)
            		tmp = fma(fma(Float64(-y), i, Float64(c * a)), j, Float64(Float64(x * y) * z));
            	elseif (c <= -8.8e-93)
            		tmp = Float64(Float64(fma(Float64(-a), Float64(x / i), b) * i) * t);
            	elseif (c <= 5.5e+113)
            		tmp = fma(Float64(i * t), b, Float64(fma(Float64(-j), i, Float64(z * x)) * y));
            	else
            		tmp = t_1;
            	end
            	return tmp
            end
            
            code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[c, -1.8e+168], t$95$1, If[LessEqual[c, -2.75e-39], N[(N[((-y) * i + N[(c * a), $MachinePrecision]), $MachinePrecision] * j + N[(N[(x * y), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -8.8e-93], N[(N[(N[((-a) * N[(x / i), $MachinePrecision] + b), $MachinePrecision] * i), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[c, 5.5e+113], N[(N[(i * t), $MachinePrecision] * b + N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c\\
            \mathbf{if}\;c \leq -1.8 \cdot 10^{+168}:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;c \leq -2.75 \cdot 10^{-39}:\\
            \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, i, c \cdot a\right), j, \left(x \cdot y\right) \cdot z\right)\\
            
            \mathbf{elif}\;c \leq -8.8 \cdot 10^{-93}:\\
            \;\;\;\;\left(\mathsf{fma}\left(-a, \frac{x}{i}, b\right) \cdot i\right) \cdot t\\
            
            \mathbf{elif}\;c \leq 5.5 \cdot 10^{+113}:\\
            \;\;\;\;\mathsf{fma}\left(i \cdot t, b, \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\right)\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_1\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 4 regimes
            2. if c < -1.8e168 or 5.5000000000000001e113 < c

              1. Initial program 67.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if -1.8e168 < c < -2.75000000000000009e-39

              1. Initial program 73.6%

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

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

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

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

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

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

                \[\leadsto \color{blue}{\left(z \cdot x\right) \cdot y} + j \cdot \left(c \cdot a - y \cdot i\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 a - y \cdot i\right)} \]
                2. +-commutativeN/A

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

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{fma}\left(\color{blue}{\left(-y\right) \cdot i + c \cdot a}, j, \left(z \cdot x\right) \cdot y\right) \]
                11. lift-fma.f6474.5

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

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

              if -2.75000000000000009e-39 < c < -8.79999999999999983e-93

              1. Initial program 73.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                if -8.79999999999999983e-93 < c < 5.5000000000000001e113

                1. Initial program 81.6%

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

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

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

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

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

                Alternative 6: 69.9% accurate, 1.2× speedup?

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

                  1. Initial program 73.1%

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

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

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

                  if -7.9999999999999998e101 < b < 6.00000000000000037e-140

                  1. Initial program 79.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                Alternative 7: 66.6% accurate, 1.2× speedup?

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

                  1. Initial program 72.9%

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

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

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

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

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

                    if -4.8000000000000001e116 < b < 8.60000000000000062e-33

                    1. Initial program 78.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if 8.60000000000000062e-33 < b

                    1. Initial program 73.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  Alternative 8: 51.8% accurate, 1.4× speedup?

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

                    1. Initial program 73.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if -2.9000000000000001e116 < b < -3.69999999999999984e-274

                    1. Initial program 75.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if -3.69999999999999984e-274 < b < 3.99999999999999983e-268

                    1. Initial program 79.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                      12. lower-*.f6459.9

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

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

                    if 3.99999999999999983e-268 < b < 2.75000000000000009e-39

                    1. Initial program 83.3%

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

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

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

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

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

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

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

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

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

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

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

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

                  Alternative 9: 51.9% accurate, 1.4× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\ t_2 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{if}\;z \leq -2.55 \cdot 10^{-79}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;z \leq -1.3 \cdot 10^{-259}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 2.2 \cdot 10^{-238}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \mathbf{elif}\;z \leq 3.3 \cdot 10^{+77}:\\ \;\;\;\;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 (- a) x (* i b)) t)) (t_2 (* (fma (- b) c (* y x)) z)))
                     (if (<= z -2.55e-79)
                       t_2
                       (if (<= z -1.3e-259)
                         t_1
                         (if (<= z 2.2e-238)
                           (* (fma (- i) y (* c a)) j)
                           (if (<= z 3.3e+77) 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(-a, x, (i * b)) * t;
                  	double t_2 = fma(-b, c, (y * x)) * z;
                  	double tmp;
                  	if (z <= -2.55e-79) {
                  		tmp = t_2;
                  	} else if (z <= -1.3e-259) {
                  		tmp = t_1;
                  	} else if (z <= 2.2e-238) {
                  		tmp = fma(-i, y, (c * a)) * j;
                  	} else if (z <= 3.3e+77) {
                  		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(-a), x, Float64(i * b)) * t)
                  	t_2 = Float64(fma(Float64(-b), c, Float64(y * x)) * z)
                  	tmp = 0.0
                  	if (z <= -2.55e-79)
                  		tmp = t_2;
                  	elseif (z <= -1.3e-259)
                  		tmp = t_1;
                  	elseif (z <= 2.2e-238)
                  		tmp = Float64(fma(Float64(-i), y, Float64(c * a)) * j);
                  	elseif (z <= 3.3e+77)
                  		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[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -2.55e-79], t$95$2, If[LessEqual[z, -1.3e-259], t$95$1, If[LessEqual[z, 2.2e-238], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[z, 3.3e+77], t$95$1, t$95$2]]]]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_1 := \mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\
                  t_2 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
                  \mathbf{if}\;z \leq -2.55 \cdot 10^{-79}:\\
                  \;\;\;\;t\_2\\
                  
                  \mathbf{elif}\;z \leq -1.3 \cdot 10^{-259}:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{elif}\;z \leq 2.2 \cdot 10^{-238}:\\
                  \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
                  
                  \mathbf{elif}\;z \leq 3.3 \cdot 10^{+77}:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;t\_2\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 3 regimes
                  2. if z < -2.55e-79 or 3.2999999999999998e77 < z

                    1. Initial program 68.8%

                      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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-*.f6469.3

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

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

                    if -2.55e-79 < z < -1.3e-259 or 2.19999999999999991e-238 < z < 3.2999999999999998e77

                    1. Initial program 86.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if -1.3e-259 < z < 2.19999999999999991e-238

                    1. Initial program 74.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                      12. lower-*.f6470.2

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

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

                  Alternative 10: 61.3% accurate, 1.5× speedup?

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

                    1. Initial program 68.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if -7.99999999999999996e89 < c < 5.5000000000000001e113

                    1. Initial program 79.8%

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

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

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

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

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

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

                    Alternative 11: 29.4% accurate, 1.6× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(z \cdot y\right) \cdot x\\ \mathbf{if}\;x \leq -6.5 \cdot 10^{+100}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq -2 \cdot 10^{-293}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{elif}\;x \leq 2.9 \cdot 10^{-74}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{elif}\;x \leq 3.3 \cdot 10^{+109}:\\ \;\;\;\;\left(\left(-a\right) \cdot x\right) \cdot t\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                    (FPCore (x y z t a b c i j)
                     :precision binary64
                     (let* ((t_1 (* (* z y) x)))
                       (if (<= x -6.5e+100)
                         t_1
                         (if (<= x -2e-293)
                           (* (* i t) b)
                           (if (<= x 2.9e-74)
                             (* (* j a) c)
                             (if (<= x 3.3e+109) (* (* (- a) x) t) t_1))))))
                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                    	double t_1 = (z * y) * x;
                    	double tmp;
                    	if (x <= -6.5e+100) {
                    		tmp = t_1;
                    	} else if (x <= -2e-293) {
                    		tmp = (i * t) * b;
                    	} else if (x <= 2.9e-74) {
                    		tmp = (j * a) * c;
                    	} else if (x <= 3.3e+109) {
                    		tmp = (-a * x) * t;
                    	} 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 = (z * y) * x
                        if (x <= (-6.5d+100)) then
                            tmp = t_1
                        else if (x <= (-2d-293)) then
                            tmp = (i * t) * b
                        else if (x <= 2.9d-74) then
                            tmp = (j * a) * c
                        else if (x <= 3.3d+109) then
                            tmp = (-a * x) * t
                        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 = (z * y) * x;
                    	double tmp;
                    	if (x <= -6.5e+100) {
                    		tmp = t_1;
                    	} else if (x <= -2e-293) {
                    		tmp = (i * t) * b;
                    	} else if (x <= 2.9e-74) {
                    		tmp = (j * a) * c;
                    	} else if (x <= 3.3e+109) {
                    		tmp = (-a * x) * t;
                    	} else {
                    		tmp = t_1;
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y, z, t, a, b, c, i, j):
                    	t_1 = (z * y) * x
                    	tmp = 0
                    	if x <= -6.5e+100:
                    		tmp = t_1
                    	elif x <= -2e-293:
                    		tmp = (i * t) * b
                    	elif x <= 2.9e-74:
                    		tmp = (j * a) * c
                    	elif x <= 3.3e+109:
                    		tmp = (-a * x) * t
                    	else:
                    		tmp = t_1
                    	return tmp
                    
                    function code(x, y, z, t, a, b, c, i, j)
                    	t_1 = Float64(Float64(z * y) * x)
                    	tmp = 0.0
                    	if (x <= -6.5e+100)
                    		tmp = t_1;
                    	elseif (x <= -2e-293)
                    		tmp = Float64(Float64(i * t) * b);
                    	elseif (x <= 2.9e-74)
                    		tmp = Float64(Float64(j * a) * c);
                    	elseif (x <= 3.3e+109)
                    		tmp = Float64(Float64(Float64(-a) * x) * t);
                    	else
                    		tmp = t_1;
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                    	t_1 = (z * y) * x;
                    	tmp = 0.0;
                    	if (x <= -6.5e+100)
                    		tmp = t_1;
                    	elseif (x <= -2e-293)
                    		tmp = (i * t) * b;
                    	elseif (x <= 2.9e-74)
                    		tmp = (j * a) * c;
                    	elseif (x <= 3.3e+109)
                    		tmp = (-a * x) * t;
                    	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[(z * y), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -6.5e+100], t$95$1, If[LessEqual[x, -2e-293], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[x, 2.9e-74], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[x, 3.3e+109], N[(N[((-a) * x), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    t_1 := \left(z \cdot y\right) \cdot x\\
                    \mathbf{if}\;x \leq -6.5 \cdot 10^{+100}:\\
                    \;\;\;\;t\_1\\
                    
                    \mathbf{elif}\;x \leq -2 \cdot 10^{-293}:\\
                    \;\;\;\;\left(i \cdot t\right) \cdot b\\
                    
                    \mathbf{elif}\;x \leq 2.9 \cdot 10^{-74}:\\
                    \;\;\;\;\left(j \cdot a\right) \cdot c\\
                    
                    \mathbf{elif}\;x \leq 3.3 \cdot 10^{+109}:\\
                    \;\;\;\;\left(\left(-a\right) \cdot x\right) \cdot t\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;t\_1\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 4 regimes
                    2. if x < -6.50000000000000001e100 or 3.2999999999999999e109 < x

                      1. Initial program 76.6%

                        \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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-*.f6458.3

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

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

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

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

                        if -6.50000000000000001e100 < x < -2.0000000000000001e-293

                        1. Initial program 72.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          if -2.0000000000000001e-293 < x < 2.9e-74

                          1. Initial program 71.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            if 2.9e-74 < x < 3.2999999999999999e109

                            1. Initial program 89.5%

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

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

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, i \cdot b\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 rewrites32.2%

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

                            Alternative 12: 39.4% accurate, 1.6× speedup?

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

                              1. Initial program 63.5%

                                \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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-*.f6475.8

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

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

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

                                  \[\leadsto \left(-b\right) \cdot \color{blue}{\left(c \cdot z\right)} \]

                                if -3.5500000000000001e227 < z < -1.0500000000000001e-75

                                1. Initial program 73.6%

                                  \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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-*.f6462.5

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

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

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

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

                                  if -1.0500000000000001e-75 < z < 9.5999999999999994e77

                                  1. Initial program 84.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                Alternative 13: 29.1% accurate, 1.7× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(i \cdot t\right) \cdot b\\ t_2 := \left(z \cdot y\right) \cdot x\\ \mathbf{if}\;x \leq -6.5 \cdot 10^{+100}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;x \leq -2 \cdot 10^{-293}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 8 \cdot 10^{-113}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{elif}\;x \leq 1.32 \cdot 10^{+88}:\\ \;\;\;\;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 (* (* i t) b)) (t_2 (* (* z y) x)))
                                   (if (<= x -6.5e+100)
                                     t_2
                                     (if (<= x -2e-293)
                                       t_1
                                       (if (<= x 8e-113) (* (* j a) c) (if (<= x 1.32e+88) 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 = (i * t) * b;
                                	double t_2 = (z * y) * x;
                                	double tmp;
                                	if (x <= -6.5e+100) {
                                		tmp = t_2;
                                	} else if (x <= -2e-293) {
                                		tmp = t_1;
                                	} else if (x <= 8e-113) {
                                		tmp = (j * a) * c;
                                	} else if (x <= 1.32e+88) {
                                		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 = (i * t) * b
                                    t_2 = (z * y) * x
                                    if (x <= (-6.5d+100)) then
                                        tmp = t_2
                                    else if (x <= (-2d-293)) then
                                        tmp = t_1
                                    else if (x <= 8d-113) then
                                        tmp = (j * a) * c
                                    else if (x <= 1.32d+88) 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 = (i * t) * b;
                                	double t_2 = (z * y) * x;
                                	double tmp;
                                	if (x <= -6.5e+100) {
                                		tmp = t_2;
                                	} else if (x <= -2e-293) {
                                		tmp = t_1;
                                	} else if (x <= 8e-113) {
                                		tmp = (j * a) * c;
                                	} else if (x <= 1.32e+88) {
                                		tmp = t_1;
                                	} else {
                                		tmp = t_2;
                                	}
                                	return tmp;
                                }
                                
                                def code(x, y, z, t, a, b, c, i, j):
                                	t_1 = (i * t) * b
                                	t_2 = (z * y) * x
                                	tmp = 0
                                	if x <= -6.5e+100:
                                		tmp = t_2
                                	elif x <= -2e-293:
                                		tmp = t_1
                                	elif x <= 8e-113:
                                		tmp = (j * a) * c
                                	elif x <= 1.32e+88:
                                		tmp = t_1
                                	else:
                                		tmp = t_2
                                	return tmp
                                
                                function code(x, y, z, t, a, b, c, i, j)
                                	t_1 = Float64(Float64(i * t) * b)
                                	t_2 = Float64(Float64(z * y) * x)
                                	tmp = 0.0
                                	if (x <= -6.5e+100)
                                		tmp = t_2;
                                	elseif (x <= -2e-293)
                                		tmp = t_1;
                                	elseif (x <= 8e-113)
                                		tmp = Float64(Float64(j * a) * c);
                                	elseif (x <= 1.32e+88)
                                		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 = (i * t) * b;
                                	t_2 = (z * y) * x;
                                	tmp = 0.0;
                                	if (x <= -6.5e+100)
                                		tmp = t_2;
                                	elseif (x <= -2e-293)
                                		tmp = t_1;
                                	elseif (x <= 8e-113)
                                		tmp = (j * a) * c;
                                	elseif (x <= 1.32e+88)
                                		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[(i * t), $MachinePrecision] * b), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -6.5e+100], t$95$2, If[LessEqual[x, -2e-293], t$95$1, If[LessEqual[x, 8e-113], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[x, 1.32e+88], t$95$1, t$95$2]]]]]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                t_1 := \left(i \cdot t\right) \cdot b\\
                                t_2 := \left(z \cdot y\right) \cdot x\\
                                \mathbf{if}\;x \leq -6.5 \cdot 10^{+100}:\\
                                \;\;\;\;t\_2\\
                                
                                \mathbf{elif}\;x \leq -2 \cdot 10^{-293}:\\
                                \;\;\;\;t\_1\\
                                
                                \mathbf{elif}\;x \leq 8 \cdot 10^{-113}:\\
                                \;\;\;\;\left(j \cdot a\right) \cdot c\\
                                
                                \mathbf{elif}\;x \leq 1.32 \cdot 10^{+88}:\\
                                \;\;\;\;t\_1\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;t\_2\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 3 regimes
                                2. if x < -6.50000000000000001e100 or 1.3200000000000001e88 < x

                                  1. Initial program 77.0%

                                    \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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-*.f6457.3

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

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

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

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

                                    if -6.50000000000000001e100 < x < -2.0000000000000001e-293 or 7.99999999999999983e-113 < x < 1.3200000000000001e88

                                    1. Initial program 75.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      if -2.0000000000000001e-293 < x < 7.99999999999999983e-113

                                      1. Initial program 75.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \left(j \cdot a\right) \cdot c \]
                                      8. Recombined 3 regimes into one program.
                                      9. Add Preprocessing

                                      Alternative 14: 51.6% accurate, 2.0× speedup?

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

                                        1. Initial program 68.8%

                                          \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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-*.f6469.3

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

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

                                        if -2.55e-79 < z < 3.2999999999999998e77

                                        1. Initial program 84.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      Alternative 15: 29.6% accurate, 2.0× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(i \cdot t\right) \cdot b\\ \mathbf{if}\;i \leq -2.8 \cdot 10^{-15}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;i \leq 7.1 \cdot 10^{-71}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{elif}\;i \leq 3 \cdot 10^{+111}:\\ \;\;\;\;\left(\left(-t\right) \cdot a\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                      (FPCore (x y z t a b c i j)
                                       :precision binary64
                                       (let* ((t_1 (* (* i t) b)))
                                         (if (<= i -2.8e-15)
                                           t_1
                                           (if (<= i 7.1e-71)
                                             (* (* z y) x)
                                             (if (<= i 3e+111) (* (* (- t) a) x) t_1)))))
                                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                      	double t_1 = (i * t) * b;
                                      	double tmp;
                                      	if (i <= -2.8e-15) {
                                      		tmp = t_1;
                                      	} else if (i <= 7.1e-71) {
                                      		tmp = (z * y) * x;
                                      	} else if (i <= 3e+111) {
                                      		tmp = (-t * a) * x;
                                      	} 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 = (i * t) * b
                                          if (i <= (-2.8d-15)) then
                                              tmp = t_1
                                          else if (i <= 7.1d-71) then
                                              tmp = (z * y) * x
                                          else if (i <= 3d+111) then
                                              tmp = (-t * a) * x
                                          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 = (i * t) * b;
                                      	double tmp;
                                      	if (i <= -2.8e-15) {
                                      		tmp = t_1;
                                      	} else if (i <= 7.1e-71) {
                                      		tmp = (z * y) * x;
                                      	} else if (i <= 3e+111) {
                                      		tmp = (-t * a) * x;
                                      	} else {
                                      		tmp = t_1;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      def code(x, y, z, t, a, b, c, i, j):
                                      	t_1 = (i * t) * b
                                      	tmp = 0
                                      	if i <= -2.8e-15:
                                      		tmp = t_1
                                      	elif i <= 7.1e-71:
                                      		tmp = (z * y) * x
                                      	elif i <= 3e+111:
                                      		tmp = (-t * a) * x
                                      	else:
                                      		tmp = t_1
                                      	return tmp
                                      
                                      function code(x, y, z, t, a, b, c, i, j)
                                      	t_1 = Float64(Float64(i * t) * b)
                                      	tmp = 0.0
                                      	if (i <= -2.8e-15)
                                      		tmp = t_1;
                                      	elseif (i <= 7.1e-71)
                                      		tmp = Float64(Float64(z * y) * x);
                                      	elseif (i <= 3e+111)
                                      		tmp = Float64(Float64(Float64(-t) * a) * x);
                                      	else
                                      		tmp = t_1;
                                      	end
                                      	return tmp
                                      end
                                      
                                      function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                      	t_1 = (i * t) * b;
                                      	tmp = 0.0;
                                      	if (i <= -2.8e-15)
                                      		tmp = t_1;
                                      	elseif (i <= 7.1e-71)
                                      		tmp = (z * y) * x;
                                      	elseif (i <= 3e+111)
                                      		tmp = (-t * a) * x;
                                      	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[(i * t), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[i, -2.8e-15], t$95$1, If[LessEqual[i, 7.1e-71], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[i, 3e+111], N[(N[((-t) * a), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      t_1 := \left(i \cdot t\right) \cdot b\\
                                      \mathbf{if}\;i \leq -2.8 \cdot 10^{-15}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      \mathbf{elif}\;i \leq 7.1 \cdot 10^{-71}:\\
                                      \;\;\;\;\left(z \cdot y\right) \cdot x\\
                                      
                                      \mathbf{elif}\;i \leq 3 \cdot 10^{+111}:\\
                                      \;\;\;\;\left(\left(-t\right) \cdot a\right) \cdot x\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 3 regimes
                                      2. if i < -2.80000000000000014e-15 or 3e111 < i

                                        1. Initial program 73.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          if -2.80000000000000014e-15 < i < 7.10000000000000008e-71

                                          1. Initial program 78.4%

                                            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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-*.f6457.8

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

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

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

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

                                            if 7.10000000000000008e-71 < i < 3e111

                                            1. Initial program 79.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                \[\leadsto \left(\left(-t\right) \cdot a\right) \cdot x \]
                                            10. Recombined 3 regimes into one program.
                                            11. Add Preprocessing

                                            Alternative 16: 28.9% accurate, 2.6× speedup?

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

                                              1. Initial program 76.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                if -2.80000000000000014e-15 < i < 9.00000000000000044e170

                                                1. Initial program 76.2%

                                                  \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\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-*.f6452.6

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

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

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

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

                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -2.8 \cdot 10^{-15} \lor \neg \left(i \leq 9 \cdot 10^{+170}\right):\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \end{array} \]
                                                10. Add Preprocessing

                                                Alternative 17: 21.9% accurate, 5.5× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                    \[\leadsto \left(i \cdot t\right) \cdot \color{blue}{b} \]
                                                  2. Add Preprocessing

                                                  Alternative 18: 22.0% accurate, 5.5× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                        \[\leadsto \left(b \cdot t\right) \cdot i \]
                                                      2. Add Preprocessing

                                                      Developer Target 1: 59.0% accurate, 0.2× speedup?

                                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\ t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\ \mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\ \;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                                                      (FPCore (x y z t a b c i j)
                                                       :precision binary64
                                                       (let* ((t_1 (* j (- (* c a) (* y i))))
                                                              (t_2
                                                               (+
                                                                (-
                                                                 (* x (- (* y z) (* t a)))
                                                                 (/
                                                                  (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
                                                                  (+ (* c z) (* t i))))
                                                                t_1)))
                                                         (if (< x -1.469694296777705e-64)
                                                           t_2
                                                           (if (< x 3.2113527362226803e-147)
                                                             (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) 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 = j * ((c * a) - (y * i));
                                                      	double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
                                                      	double tmp;
                                                      	if (x < -1.469694296777705e-64) {
                                                      		tmp = t_2;
                                                      	} else if (x < 3.2113527362226803e-147) {
                                                      		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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 = j * ((c * a) - (y * i))
                                                          t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
                                                          if (x < (-1.469694296777705d-64)) then
                                                              tmp = t_2
                                                          else if (x < 3.2113527362226803d-147) then
                                                              tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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 = j * ((c * a) - (y * i));
                                                      	double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
                                                      	double tmp;
                                                      	if (x < -1.469694296777705e-64) {
                                                      		tmp = t_2;
                                                      	} else if (x < 3.2113527362226803e-147) {
                                                      		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
                                                      	} else {
                                                      		tmp = t_2;
                                                      	}
                                                      	return tmp;
                                                      }
                                                      
                                                      def code(x, y, z, t, a, b, c, i, j):
                                                      	t_1 = j * ((c * a) - (y * i))
                                                      	t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1
                                                      	tmp = 0
                                                      	if x < -1.469694296777705e-64:
                                                      		tmp = t_2
                                                      	elif x < 3.2113527362226803e-147:
                                                      		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
                                                      	else:
                                                      		tmp = t_2
                                                      	return tmp
                                                      
                                                      function code(x, y, z, t, a, b, c, i, j)
                                                      	t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i)))
                                                      	t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1)
                                                      	tmp = 0.0
                                                      	if (x < -1.469694296777705e-64)
                                                      		tmp = t_2;
                                                      	elseif (x < 3.2113527362226803e-147)
                                                      		tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - 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 = j * ((c * a) - (y * i));
                                                      	t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1;
                                                      	tmp = 0.0;
                                                      	if (x < -1.469694296777705e-64)
                                                      		tmp = t_2;
                                                      	elseif (x < 3.2113527362226803e-147)
                                                      		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
                                                      
                                                      \begin{array}{l}
                                                      
                                                      \\
                                                      \begin{array}{l}
                                                      t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
                                                      t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
                                                      \mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
                                                      \;\;\;\;t\_2\\
                                                      
                                                      \mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
                                                      \;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
                                                      
                                                      \mathbf{else}:\\
                                                      \;\;\;\;t\_2\\
                                                      
                                                      
                                                      \end{array}
                                                      \end{array}
                                                      

                                                      Reproduce

                                                      ?
                                                      herbie shell --seed 2025017 
                                                      (FPCore (x y z t a b c i j)
                                                        :name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
                                                        :precision binary64
                                                      
                                                        :alt
                                                        (! :herbie-platform default (if (< x -293938859355541/2000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 32113527362226803/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))))))
                                                      
                                                        (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))