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

Percentage Accurate: 73.8% → 81.4%
Time: 13.6s
Alternatives: 26
Speedup: 1.0×

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 26 alternatives:

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

Initial Program: 73.8% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - 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: 81.4% accurate, 0.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -8 \cdot 10^{-10} \lor \neg \left(z \leq 3.3 \cdot 10^{-55}\right):\\
\;\;\;\;\left(\mathsf{fma}\left(y, x, \frac{\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\right)}{z}\right) - c \cdot b\right) \cdot z\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -8.00000000000000029e-10 or 3.2999999999999999e-55 < z

    1. Initial program 70.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(\left(-1 \cdot \frac{a \cdot \left(t \cdot x\right)}{z} + \left(x \cdot y + \frac{j \cdot \left(a \cdot c - i \cdot y\right)}{z}\right)\right) - \left(-1 \cdot \frac{b \cdot \left(i \cdot t\right)}{z} + b \cdot c\right)\right)} \]
    4. Applied rewrites86.1%

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

    if -8.00000000000000029e-10 < z < 3.2999999999999999e-55

    1. Initial program 81.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 y around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 83.9% accurate, 0.3× speedup?

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

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

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

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


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

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

    if -1e30 < (+.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 87.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 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 3: 79.9% accurate, 0.9× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < 3.2000000000000001e-25

    1. Initial program 78.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 0

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t + \left(\left(x \cdot y\right) \cdot z - \color{blue}{\left(b \cdot c\right) \cdot z}\right)\right) \]
      14. distribute-rgt-out--N/A

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

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

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

    if 3.2000000000000001e-25 < a

    1. Initial program 68.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 y around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 4: 79.0% accurate, 1.0× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < 9.50000000000000015e71

    1. Initial program 77.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 0

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t + \left(\left(x \cdot y\right) \cdot z - \color{blue}{\left(b \cdot c\right) \cdot z}\right)\right) \]
      14. distribute-rgt-out--N/A

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

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

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

    if 9.50000000000000015e71 < a

    1. Initial program 68.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 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}{\left(a \cdot c - i \cdot y\right) \cdot j} + x \cdot \left(y \cdot z - a \cdot t\right) \]
      2. lower-fma.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 5: 66.6% accurate, 1.0× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.5 \cdot 10^{+50}:\\
\;\;\;\;\mathsf{fma}\left(-z, c, i \cdot t\right) \cdot b\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -7.4999999999999999e50

    1. Initial program 80.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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{-z}, c, i \cdot t\right) \cdot b \]
      12. lower-*.f6475.0

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

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

    if -7.4999999999999999e50 < b < 8e19

    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 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}{\left(a \cdot c - i \cdot y\right) \cdot j} + x \cdot \left(y \cdot z - a \cdot t\right) \]
      2. lower-fma.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 8e19 < b

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

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

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

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

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

    Alternative 6: 69.2% accurate, 1.2× speedup?

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

      1. Initial program 66.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 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. Applied rewrites73.9%

        \[\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)} \]

      if -3.0000000000000002e-33 < c < 11500

      1. Initial program 84.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 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}{\left(a \cdot c - i \cdot y\right) \cdot j} + x \cdot \left(y \cdot z - a \cdot t\right) \]
        2. lower-fma.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -3 \cdot 10^{-33} \lor \neg \left(c \leq 11500\right):\\ \;\;\;\;\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)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\ \end{array} \]
    5. Add Preprocessing

    Alternative 7: 67.6% accurate, 1.2× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -2.4000000000000002e50 < b < 1.76000000000000001e65

      1. Initial program 70.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}{\left(a \cdot c - i \cdot y\right) \cdot j} + x \cdot \left(y \cdot z - a \cdot t\right) \]
        2. lower-fma.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 8: 60.7% accurate, 1.4× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -2.4000000000000002e50 < b < 1.84999999999999997e65

      1. Initial program 70.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}{\left(a \cdot c - i \cdot y\right) \cdot j} + x \cdot \left(y \cdot z - a \cdot t\right) \]
        2. lower-fma.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 9: 52.9% accurate, 1.4× speedup?

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

        1. Initial program 63.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 y around inf

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

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

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

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

          if -1.4500000000000001e46 < x < 8.2e-255

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(\color{blue}{-z}, c, i \cdot t\right) \cdot b \]
            12. lower-*.f6453.1

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

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

          if 8.2e-255 < x < 1.04000000000000002e-134

          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 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}{\left(a \cdot c - i \cdot y\right) \cdot j} + x \cdot \left(y \cdot z - a \cdot t\right) \]
            2. lower-fma.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if 1.04000000000000002e-134 < x < 7.19999999999999969e39

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, j, b \cdot t\right) \cdot i \]
              15. lower-*.f6459.2

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

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

            if 7.19999999999999969e39 < x

            1. Initial program 81.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 0

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \color{blue}{\mathsf{fma}\left(-b, \mathsf{fma}\left(-i, t, c \cdot z\right), \mathsf{fma}\left(\mathsf{fma}\left(-x, t, j \cdot c\right), a, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\right)} \]
            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. lower-*.f64N/A

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

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

                \[\leadsto \left(y \cdot z + \color{blue}{-1 \cdot \left(a \cdot t\right)}\right) \cdot x \]
              6. +-commutativeN/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-*.f6469.0

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

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

          Alternative 10: 53.3% accurate, 1.4× speedup?

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

            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 0

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \color{blue}{\mathsf{fma}\left(-b, \mathsf{fma}\left(-i, t, c \cdot z\right), \mathsf{fma}\left(\mathsf{fma}\left(-x, t, j \cdot c\right), a, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\right)} \]
            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. lower-*.f64N/A

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

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

                \[\leadsto \left(y \cdot z + \color{blue}{-1 \cdot \left(a \cdot t\right)}\right) \cdot x \]
              6. +-commutativeN/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-*.f6471.5

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

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

            if -1.55e54 < x < 8.2e-255

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(\color{blue}{-z}, c, i \cdot t\right) \cdot b \]
              12. lower-*.f6453.1

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

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

            if 8.2e-255 < x < 1.04000000000000002e-134

            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 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}{\left(a \cdot c - i \cdot y\right) \cdot j} + x \cdot \left(y \cdot z - a \cdot t\right) \]
              2. lower-fma.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if 1.04000000000000002e-134 < x < 7.19999999999999969e39

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, j, b \cdot t\right) \cdot i \]
                15. lower-*.f6459.2

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

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

            Alternative 11: 51.8% accurate, 1.4× speedup?

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

              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 0

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \color{blue}{\mathsf{fma}\left(-b, \mathsf{fma}\left(-i, t, c \cdot z\right), \mathsf{fma}\left(\mathsf{fma}\left(-x, t, j \cdot c\right), a, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\right)} \]
              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. lower-*.f64N/A

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

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

                  \[\leadsto \left(y \cdot z + \color{blue}{-1 \cdot \left(a \cdot t\right)}\right) \cdot x \]
                6. +-commutativeN/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-*.f6471.5

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

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

              if -6.2000000000000001e60 < x < -6.19999999999999999e-183

              1. Initial program 76.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 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-*.f6444.6

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

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

              if -6.19999999999999999e-183 < x < 1.04000000000000002e-134

              1. Initial program 79.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 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}{\left(a \cdot c - i \cdot y\right) \cdot j} + x \cdot \left(y \cdot z - a \cdot t\right) \]
                2. lower-fma.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                if 1.04000000000000002e-134 < x < 7.19999999999999969e39

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, j, b \cdot t\right) \cdot i \]
                  15. lower-*.f6459.2

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

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

              Alternative 12: 51.2% accurate, 1.4× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-t, a, y \cdot z\right) \cdot x\\ \mathbf{if}\;x \leq -6.2 \cdot 10^{+60}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq -6.2 \cdot 10^{-183}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{elif}\;x \leq 7 \cdot 10^{-112}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, a \cdot c\right) \cdot j\\ \mathbf{elif}\;x \leq 8.4 \cdot 10^{+39}:\\ \;\;\;\;\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 (* (fma (- t) a (* y z)) x)))
                 (if (<= x -6.2e+60)
                   t_1
                   (if (<= x -6.2e-183)
                     (* (fma (- b) c (* y x)) z)
                     (if (<= x 7e-112)
                       (* (fma (- i) y (* a c)) j)
                       (if (<= x 8.4e+39) (* (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 = fma(-t, a, (y * z)) * x;
              	double tmp;
              	if (x <= -6.2e+60) {
              		tmp = t_1;
              	} else if (x <= -6.2e-183) {
              		tmp = fma(-b, c, (y * x)) * z;
              	} else if (x <= 7e-112) {
              		tmp = fma(-i, y, (a * c)) * j;
              	} else if (x <= 8.4e+39) {
              		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(fma(Float64(-t), a, Float64(y * z)) * x)
              	tmp = 0.0
              	if (x <= -6.2e+60)
              		tmp = t_1;
              	elseif (x <= -6.2e-183)
              		tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z);
              	elseif (x <= 7e-112)
              		tmp = Float64(fma(Float64(-i), y, Float64(a * c)) * j);
              	elseif (x <= 8.4e+39)
              		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[(N[((-t) * a + N[(y * z), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -6.2e+60], t$95$1, If[LessEqual[x, -6.2e-183], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[x, 7e-112], N[(N[((-i) * y + N[(a * c), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[x, 8.4e+39], N[(N[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              t_1 := \mathsf{fma}\left(-t, a, y \cdot z\right) \cdot x\\
              \mathbf{if}\;x \leq -6.2 \cdot 10^{+60}:\\
              \;\;\;\;t\_1\\
              
              \mathbf{elif}\;x \leq -6.2 \cdot 10^{-183}:\\
              \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
              
              \mathbf{elif}\;x \leq 7 \cdot 10^{-112}:\\
              \;\;\;\;\mathsf{fma}\left(-i, y, a \cdot c\right) \cdot j\\
              
              \mathbf{elif}\;x \leq 8.4 \cdot 10^{+39}:\\
              \;\;\;\;\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\
              
              \mathbf{else}:\\
              \;\;\;\;t\_1\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 4 regimes
              2. if x < -6.2000000000000001e60 or 8.3999999999999994e39 < x

                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 0

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \color{blue}{\mathsf{fma}\left(-b, \mathsf{fma}\left(-i, t, c \cdot z\right), \mathsf{fma}\left(\mathsf{fma}\left(-x, t, j \cdot c\right), a, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\right)} \]
                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. lower-*.f64N/A

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

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

                    \[\leadsto \left(y \cdot z + \color{blue}{-1 \cdot \left(a \cdot t\right)}\right) \cdot x \]
                  6. +-commutativeN/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-*.f6471.5

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

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

                if -6.2000000000000001e60 < x < -6.19999999999999999e-183

                1. Initial program 76.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 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-*.f6444.6

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

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

                if -6.19999999999999999e-183 < x < 6.99999999999999988e-112

                1. Initial program 77.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 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}{\left(a \cdot c - i \cdot y\right) \cdot j} + x \cdot \left(y \cdot z - a \cdot t\right) \]
                  2. lower-fma.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if 6.99999999999999988e-112 < x < 8.3999999999999994e39

                  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-*.f6451.4

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

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

                Alternative 13: 60.1% accurate, 1.5× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if -7.00000000000000012e50 < b < 1.05000000000000003e66

                  1. Initial program 70.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}{\left(a \cdot c - i \cdot y\right) \cdot j} + x \cdot \left(y \cdot z - a \cdot t\right) \]
                    2. lower-fma.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  Alternative 14: 54.0% accurate, 1.6× speedup?

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

                    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 0

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \color{blue}{\mathsf{fma}\left(-b, \mathsf{fma}\left(-i, t, c \cdot z\right), \mathsf{fma}\left(\mathsf{fma}\left(-x, t, j \cdot c\right), a, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\right)} \]
                    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. lower-*.f64N/A

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

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

                        \[\leadsto \left(y \cdot z + \color{blue}{-1 \cdot \left(a \cdot t\right)}\right) \cdot x \]
                      6. +-commutativeN/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-*.f6471.5

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

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

                    if -4.59999999999999975e55 < x < 1.6000000000000001e-134

                    1. Initial program 78.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 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if 1.6000000000000001e-134 < x < 7.19999999999999969e39

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, j, b \cdot t\right) \cdot i \]
                      15. lower-*.f6459.2

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

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

                  Alternative 15: 52.3% accurate, 1.6× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\ \mathbf{if}\;t \leq -3.1 \cdot 10^{-78}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 10^{-86}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{elif}\;t \leq 6800000:\\ \;\;\;\;\mathsf{fma}\left(-i, j, 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 (- a) x (* i b)) t)))
                     (if (<= t -3.1e-78)
                       t_1
                       (if (<= t 1e-86)
                         (* (fma (- b) c (* y x)) z)
                         (if (<= t 6800000.0) (* (fma (- i) j (* 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(-a, x, (i * b)) * t;
                  	double tmp;
                  	if (t <= -3.1e-78) {
                  		tmp = t_1;
                  	} else if (t <= 1e-86) {
                  		tmp = fma(-b, c, (y * x)) * z;
                  	} else if (t <= 6800000.0) {
                  		tmp = fma(-i, j, (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(-a), x, Float64(i * b)) * t)
                  	tmp = 0.0
                  	if (t <= -3.1e-78)
                  		tmp = t_1;
                  	elseif (t <= 1e-86)
                  		tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z);
                  	elseif (t <= 6800000.0)
                  		tmp = Float64(fma(Float64(-i), j, 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[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -3.1e-78], t$95$1, If[LessEqual[t, 1e-86], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[t, 6800000.0], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_1 := \mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\
                  \mathbf{if}\;t \leq -3.1 \cdot 10^{-78}:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{elif}\;t \leq 10^{-86}:\\
                  \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
                  
                  \mathbf{elif}\;t \leq 6800000:\\
                  \;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;t\_1\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 3 regimes
                  2. if t < -3.10000000000000018e-78 or 6.8e6 < t

                    1. Initial program 74.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-*.f6459.7

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

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

                    if -3.10000000000000018e-78 < t < 1.00000000000000008e-86

                    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 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-*.f6454.2

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

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

                    if 1.00000000000000008e-86 < t < 6.8e6

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

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

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

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

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

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

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

                  Alternative 16: 30.2% accurate, 1.7× speedup?

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

                    1. Initial program 76.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 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if -4.00000000000000022e-32 < b < 7.79999999999999971e-274

                      1. Initial program 73.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 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        if 7.79999999999999971e-274 < b < 1.34999999999999991e-196

                        1. Initial program 69.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 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-*.f6446.8

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

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

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

                          if 1.34999999999999991e-196 < b < 2.05e10

                          1. Initial program 69.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 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}{\left(a \cdot c - i \cdot y\right) \cdot j} + x \cdot \left(y \cdot z - a \cdot t\right) \]
                            2. lower-fma.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              if 2.05e10 < b

                              1. Initial program 81.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-*.f6454.3

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

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

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

                                  \[\leadsto \left(i \cdot b\right) \cdot t \]
                              8. Recombined 5 regimes into one program.
                              9. Add Preprocessing

                              Alternative 17: 52.6% accurate, 2.0× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

                                if -2.8999999999999998e104 < a < 3.0000000000000001e23

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

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

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

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

                              Alternative 18: 52.4% accurate, 2.0× speedup?

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

                                1. Initial program 74.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-*.f6459.7

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

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

                                if -3.10000000000000018e-78 < t < 9.5e5

                                1. Initial program 75.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-*.f6450.8

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

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

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

                              Alternative 19: 52.8% accurate, 2.0× speedup?

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

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

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

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

                                if -3.7999999999999999e49 < t < 8e6

                                1. Initial program 75.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 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}{\left(a \cdot c - i \cdot y\right) \cdot j} + x \cdot \left(y \cdot z - a \cdot t\right) \]
                                  2. lower-fma.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \mathsf{fma}\left(-i, y, a \cdot c\right) \cdot \color{blue}{j} \]
                                8. Recombined 2 regimes into one program.
                                9. Final simplification52.6%

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

                                Alternative 20: 42.2% accurate, 2.0× speedup?

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

                                  1. Initial program 81.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 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    if -1.44999999999999993e80 < b < 8.1999999999999999e33

                                    1. Initial program 71.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 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}{\left(a \cdot c - i \cdot y\right) \cdot j} + x \cdot \left(y \cdot z - a \cdot t\right) \]
                                      2. lower-fma.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      if 8.1999999999999999e33 < b

                                      1. Initial program 80.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-*.f6454.8

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

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

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

                                          \[\leadsto \left(i \cdot b\right) \cdot t \]
                                      8. Recombined 3 regimes into one program.
                                      9. Add Preprocessing

                                      Alternative 21: 29.8% accurate, 2.1× speedup?

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

                                        1. Initial program 63.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 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}{\left(a \cdot c - i \cdot y\right) \cdot j} + x \cdot \left(y \cdot z - a \cdot t\right) \]
                                          2. lower-fma.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            if -1.7e-8 < a < 3.0499999999999999e-124

                                            1. Initial program 85.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 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}{\left(a \cdot c - i \cdot y\right) \cdot j} + x \cdot \left(y \cdot z - a \cdot t\right) \]
                                              2. lower-fma.f64N/A

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

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

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

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

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

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

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

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

                                                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x}\right) \]
                                              11. fp-cancel-sub-sign-invN/A

                                                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a\right)\right) \cdot t\right)} \cdot x\right) \]
                                              12. mul-1-negN/A

                                                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(y \cdot z + \color{blue}{\left(-1 \cdot a\right)} \cdot t\right) \cdot x\right) \]
                                              13. associate-*r*N/A

                                                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(y \cdot z + \color{blue}{-1 \cdot \left(a \cdot t\right)}\right) \cdot x\right) \]
                                              14. +-commutativeN/A

                                                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(-1 \cdot \left(a \cdot t\right) + y \cdot z\right)} \cdot x\right) \]
                                              15. associate-*r*N/A

                                                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(\color{blue}{\left(-1 \cdot a\right) \cdot t} + y \cdot z\right) \cdot x\right) \]
                                              16. mul-1-negN/A

                                                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot t + y \cdot z\right) \cdot x\right) \]
                                              17. lower-fma.f64N/A

                                                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), t, y \cdot z\right)} \cdot x\right) \]
                                              18. lower-neg.f64N/A

                                                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(\color{blue}{-a}, t, y \cdot z\right) \cdot x\right) \]
                                              19. *-commutativeN/A

                                                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x\right) \]
                                              20. lower-*.f6462.7

                                                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x\right) \]
                                            5. Applied rewrites62.7%

                                              \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)} \]
                                            6. Taylor expanded in x around 0

                                              \[\leadsto j \cdot \color{blue}{\left(-1 \cdot \left(i \cdot y\right) + a \cdot c\right)} \]
                                            7. Step-by-step derivation
                                              1. Applied rewrites26.3%

                                                \[\leadsto \mathsf{fma}\left(-i, y, a \cdot c\right) \cdot \color{blue}{j} \]
                                              2. Taylor expanded in y around 0

                                                \[\leadsto a \cdot \left(c \cdot \color{blue}{j}\right) \]
                                              3. Step-by-step derivation
                                                1. Applied rewrites8.3%

                                                  \[\leadsto \left(j \cdot c\right) \cdot a \]
                                                2. Taylor expanded in z around inf

                                                  \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                3. Step-by-step derivation
                                                  1. Applied rewrites35.2%

                                                    \[\leadsto \left(y \cdot x\right) \cdot \color{blue}{z} \]

                                                  if 3.0499999999999999e-124 < a < 7.0000000000000002e33

                                                  1. Initial program 77.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 i around inf

                                                    \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
                                                  4. Step-by-step derivation
                                                    1. *-commutativeN/A

                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                                                    2. lower-*.f64N/A

                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                                                    3. *-commutativeN/A

                                                      \[\leadsto \left(-1 \cdot \left(j \cdot y\right) - \color{blue}{\left(b \cdot t\right) \cdot -1}\right) \cdot i \]
                                                    4. fp-cancel-sub-sign-invN/A

                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) + \left(\mathsf{neg}\left(b \cdot t\right)\right) \cdot -1\right)} \cdot i \]
                                                    5. *-commutativeN/A

                                                      \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(b \cdot t\right)\right) \cdot -1\right) \cdot i \]
                                                    6. associate-*r*N/A

                                                      \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + \left(\mathsf{neg}\left(b \cdot t\right)\right) \cdot -1\right) \cdot i \]
                                                    7. distribute-lft-neg-inN/A

                                                      \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{\left(\mathsf{neg}\left(\left(b \cdot t\right) \cdot -1\right)\right)}\right) \cdot i \]
                                                    8. *-commutativeN/A

                                                      \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \left(\mathsf{neg}\left(\color{blue}{-1 \cdot \left(b \cdot t\right)}\right)\right)\right) \cdot i \]
                                                    9. distribute-lft-neg-outN/A

                                                      \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{\left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot t\right)}\right) \cdot i \]
                                                    10. metadata-evalN/A

                                                      \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{1} \cdot \left(b \cdot t\right)\right) \cdot i \]
                                                    11. *-lft-identityN/A

                                                      \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{b \cdot t}\right) \cdot i \]
                                                    12. lower-fma.f64N/A

                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, b \cdot t\right)} \cdot i \]
                                                    13. mul-1-negN/A

                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, b \cdot t\right) \cdot i \]
                                                    14. lower-neg.f64N/A

                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, j, b \cdot t\right) \cdot i \]
                                                    15. lower-*.f6441.4

                                                      \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot t}\right) \cdot i \]
                                                  5. Applied rewrites41.4%

                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i} \]
                                                  6. Taylor expanded in y around 0

                                                    \[\leadsto \left(b \cdot t\right) \cdot i \]
                                                  7. Step-by-step derivation
                                                    1. Applied rewrites34.7%

                                                      \[\leadsto \left(t \cdot b\right) \cdot i \]

                                                    if 7.0000000000000002e33 < a

                                                    1. Initial program 68.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 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. *-commutativeN/A

                                                        \[\leadsto \left(a \cdot j - \color{blue}{z \cdot b}\right) \cdot c \]
                                                      4. cancel-sign-sub-invN/A

                                                        \[\leadsto \color{blue}{\left(a \cdot j + \left(\mathsf{neg}\left(z\right)\right) \cdot b\right)} \cdot c \]
                                                      5. distribute-lft-neg-inN/A

                                                        \[\leadsto \left(a \cdot j + \color{blue}{\left(\mathsf{neg}\left(z \cdot b\right)\right)}\right) \cdot c \]
                                                      6. *-commutativeN/A

                                                        \[\leadsto \left(a \cdot j + \left(\mathsf{neg}\left(\color{blue}{b \cdot z}\right)\right)\right) \cdot c \]
                                                      7. mul-1-negN/A

                                                        \[\leadsto \left(a \cdot j + \color{blue}{-1 \cdot \left(b \cdot z\right)}\right) \cdot c \]
                                                      8. +-commutativeN/A

                                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot z\right) + a \cdot j\right)} \cdot c \]
                                                      9. *-commutativeN/A

                                                        \[\leadsto \left(-1 \cdot \color{blue}{\left(z \cdot b\right)} + a \cdot j\right) \cdot c \]
                                                      10. associate-*r*N/A

                                                        \[\leadsto \left(\color{blue}{\left(-1 \cdot z\right) \cdot b} + a \cdot j\right) \cdot c \]
                                                      11. lower-fma.f64N/A

                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot z, b, a \cdot j\right)} \cdot c \]
                                                      12. mul-1-negN/A

                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(z\right)}, b, a \cdot j\right) \cdot c \]
                                                      13. lower-neg.f64N/A

                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{-z}, b, a \cdot j\right) \cdot c \]
                                                      14. *-commutativeN/A

                                                        \[\leadsto \mathsf{fma}\left(-z, b, \color{blue}{j \cdot a}\right) \cdot c \]
                                                      15. lower-*.f6457.4

                                                        \[\leadsto \mathsf{fma}\left(-z, b, \color{blue}{j \cdot a}\right) \cdot c \]
                                                    5. Applied rewrites57.4%

                                                      \[\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 rewrites46.1%

                                                        \[\leadsto \left(a \cdot j\right) \cdot c \]
                                                    8. Recombined 4 regimes into one program.
                                                    9. Add Preprocessing

                                                    Alternative 22: 29.5% accurate, 2.1× speedup?

                                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -1.7 \cdot 10^{-8}:\\ \;\;\;\;\left(c \cdot a\right) \cdot j\\ \mathbf{elif}\;a \leq 3.05 \cdot 10^{-124}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{elif}\;a \leq 2.6 \cdot 10^{+38}:\\ \;\;\;\;\left(t \cdot b\right) \cdot i\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \end{array} \end{array} \]
                                                    (FPCore (x y z t a b c i j)
                                                     :precision binary64
                                                     (if (<= a -1.7e-8)
                                                       (* (* c a) j)
                                                       (if (<= a 3.05e-124)
                                                         (* (* y x) z)
                                                         (if (<= a 2.6e+38) (* (* t b) i) (* (* j c) a)))))
                                                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                    	double tmp;
                                                    	if (a <= -1.7e-8) {
                                                    		tmp = (c * a) * j;
                                                    	} else if (a <= 3.05e-124) {
                                                    		tmp = (y * x) * z;
                                                    	} else if (a <= 2.6e+38) {
                                                    		tmp = (t * b) * i;
                                                    	} else {
                                                    		tmp = (j * c) * a;
                                                    	}
                                                    	return tmp;
                                                    }
                                                    
                                                    module fmin_fmax_functions
                                                        implicit none
                                                        private
                                                        public fmax
                                                        public fmin
                                                    
                                                        interface fmax
                                                            module procedure fmax88
                                                            module procedure fmax44
                                                            module procedure fmax84
                                                            module procedure fmax48
                                                        end interface
                                                        interface fmin
                                                            module procedure fmin88
                                                            module procedure fmin44
                                                            module procedure fmin84
                                                            module procedure fmin48
                                                        end interface
                                                    contains
                                                        real(8) function fmax88(x, y) result (res)
                                                            real(8), intent (in) :: x
                                                            real(8), intent (in) :: y
                                                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                        end function
                                                        real(4) function fmax44(x, y) result (res)
                                                            real(4), intent (in) :: x
                                                            real(4), intent (in) :: y
                                                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                        end function
                                                        real(8) function fmax84(x, y) result(res)
                                                            real(8), intent (in) :: x
                                                            real(4), intent (in) :: y
                                                            res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                        end function
                                                        real(8) function fmax48(x, y) result(res)
                                                            real(4), intent (in) :: x
                                                            real(8), intent (in) :: y
                                                            res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                        end function
                                                        real(8) function fmin88(x, y) result (res)
                                                            real(8), intent (in) :: x
                                                            real(8), intent (in) :: y
                                                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                        end function
                                                        real(4) function fmin44(x, y) result (res)
                                                            real(4), intent (in) :: x
                                                            real(4), intent (in) :: y
                                                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                        end function
                                                        real(8) function fmin84(x, y) result(res)
                                                            real(8), intent (in) :: x
                                                            real(4), intent (in) :: y
                                                            res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                        end function
                                                        real(8) function fmin48(x, y) result(res)
                                                            real(4), intent (in) :: x
                                                            real(8), intent (in) :: y
                                                            res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                        end function
                                                    end module
                                                    
                                                    real(8) function code(x, y, z, t, a, b, c, i, j)
                                                    use fmin_fmax_functions
                                                        real(8), intent (in) :: x
                                                        real(8), intent (in) :: y
                                                        real(8), intent (in) :: z
                                                        real(8), intent (in) :: t
                                                        real(8), intent (in) :: a
                                                        real(8), intent (in) :: b
                                                        real(8), intent (in) :: c
                                                        real(8), intent (in) :: i
                                                        real(8), intent (in) :: j
                                                        real(8) :: tmp
                                                        if (a <= (-1.7d-8)) then
                                                            tmp = (c * a) * j
                                                        else if (a <= 3.05d-124) then
                                                            tmp = (y * x) * z
                                                        else if (a <= 2.6d+38) then
                                                            tmp = (t * b) * i
                                                        else
                                                            tmp = (j * c) * a
                                                        end if
                                                        code = tmp
                                                    end function
                                                    
                                                    public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                    	double tmp;
                                                    	if (a <= -1.7e-8) {
                                                    		tmp = (c * a) * j;
                                                    	} else if (a <= 3.05e-124) {
                                                    		tmp = (y * x) * z;
                                                    	} else if (a <= 2.6e+38) {
                                                    		tmp = (t * b) * i;
                                                    	} else {
                                                    		tmp = (j * c) * a;
                                                    	}
                                                    	return tmp;
                                                    }
                                                    
                                                    def code(x, y, z, t, a, b, c, i, j):
                                                    	tmp = 0
                                                    	if a <= -1.7e-8:
                                                    		tmp = (c * a) * j
                                                    	elif a <= 3.05e-124:
                                                    		tmp = (y * x) * z
                                                    	elif a <= 2.6e+38:
                                                    		tmp = (t * b) * i
                                                    	else:
                                                    		tmp = (j * c) * a
                                                    	return tmp
                                                    
                                                    function code(x, y, z, t, a, b, c, i, j)
                                                    	tmp = 0.0
                                                    	if (a <= -1.7e-8)
                                                    		tmp = Float64(Float64(c * a) * j);
                                                    	elseif (a <= 3.05e-124)
                                                    		tmp = Float64(Float64(y * x) * z);
                                                    	elseif (a <= 2.6e+38)
                                                    		tmp = Float64(Float64(t * b) * i);
                                                    	else
                                                    		tmp = Float64(Float64(j * c) * a);
                                                    	end
                                                    	return tmp
                                                    end
                                                    
                                                    function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                    	tmp = 0.0;
                                                    	if (a <= -1.7e-8)
                                                    		tmp = (c * a) * j;
                                                    	elseif (a <= 3.05e-124)
                                                    		tmp = (y * x) * z;
                                                    	elseif (a <= 2.6e+38)
                                                    		tmp = (t * b) * i;
                                                    	else
                                                    		tmp = (j * c) * a;
                                                    	end
                                                    	tmp_2 = tmp;
                                                    end
                                                    
                                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.7e-8], N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[a, 3.05e-124], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[a, 2.6e+38], N[(N[(t * b), $MachinePrecision] * i), $MachinePrecision], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]]]]
                                                    
                                                    \begin{array}{l}
                                                    
                                                    \\
                                                    \begin{array}{l}
                                                    \mathbf{if}\;a \leq -1.7 \cdot 10^{-8}:\\
                                                    \;\;\;\;\left(c \cdot a\right) \cdot j\\
                                                    
                                                    \mathbf{elif}\;a \leq 3.05 \cdot 10^{-124}:\\
                                                    \;\;\;\;\left(y \cdot x\right) \cdot z\\
                                                    
                                                    \mathbf{elif}\;a \leq 2.6 \cdot 10^{+38}:\\
                                                    \;\;\;\;\left(t \cdot b\right) \cdot i\\
                                                    
                                                    \mathbf{else}:\\
                                                    \;\;\;\;\left(j \cdot c\right) \cdot a\\
                                                    
                                                    
                                                    \end{array}
                                                    \end{array}
                                                    
                                                    Derivation
                                                    1. Split input into 4 regimes
                                                    2. if a < -1.7e-8

                                                      1. Initial program 63.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 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}{\left(a \cdot c - i \cdot y\right) \cdot j} + x \cdot \left(y \cdot z - a \cdot t\right) \]
                                                        2. lower-fma.f64N/A

                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(a \cdot c - i \cdot y, j, x \cdot \left(y \cdot z - a \cdot t\right)\right)} \]
                                                        3. fp-cancel-sub-sign-invN/A

                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{a \cdot c + \left(\mathsf{neg}\left(i\right)\right) \cdot y}, j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                        4. +-commutativeN/A

                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(i\right)\right) \cdot y + a \cdot c}, j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                        5. lower-fma.f64N/A

                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i\right), y, a \cdot c\right)}, j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                        6. lower-neg.f64N/A

                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-i}, y, a \cdot c\right), j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                        7. *-commutativeN/A

                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right), j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                        8. lower-*.f64N/A

                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right), j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                        9. *-commutativeN/A

                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x}\right) \]
                                                        10. lower-*.f64N/A

                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x}\right) \]
                                                        11. fp-cancel-sub-sign-invN/A

                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a\right)\right) \cdot t\right)} \cdot x\right) \]
                                                        12. mul-1-negN/A

                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(y \cdot z + \color{blue}{\left(-1 \cdot a\right)} \cdot t\right) \cdot x\right) \]
                                                        13. associate-*r*N/A

                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(y \cdot z + \color{blue}{-1 \cdot \left(a \cdot t\right)}\right) \cdot x\right) \]
                                                        14. +-commutativeN/A

                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(-1 \cdot \left(a \cdot t\right) + y \cdot z\right)} \cdot x\right) \]
                                                        15. associate-*r*N/A

                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(\color{blue}{\left(-1 \cdot a\right) \cdot t} + y \cdot z\right) \cdot x\right) \]
                                                        16. mul-1-negN/A

                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot t + y \cdot z\right) \cdot x\right) \]
                                                        17. lower-fma.f64N/A

                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), t, y \cdot z\right)} \cdot x\right) \]
                                                        18. lower-neg.f64N/A

                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(\color{blue}{-a}, t, y \cdot z\right) \cdot x\right) \]
                                                        19. *-commutativeN/A

                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x\right) \]
                                                        20. lower-*.f6453.0

                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x\right) \]
                                                      5. Applied rewrites53.0%

                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)} \]
                                                      6. Taylor expanded in x around 0

                                                        \[\leadsto j \cdot \color{blue}{\left(-1 \cdot \left(i \cdot y\right) + a \cdot c\right)} \]
                                                      7. Step-by-step derivation
                                                        1. Applied rewrites41.2%

                                                          \[\leadsto \mathsf{fma}\left(-i, y, a \cdot c\right) \cdot \color{blue}{j} \]
                                                        2. Taylor expanded in y around 0

                                                          \[\leadsto \left(a \cdot c\right) \cdot j \]
                                                        3. Step-by-step derivation
                                                          1. Applied rewrites33.3%

                                                            \[\leadsto \left(c \cdot a\right) \cdot j \]

                                                          if -1.7e-8 < a < 3.0499999999999999e-124

                                                          1. Initial program 85.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 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}{\left(a \cdot c - i \cdot y\right) \cdot j} + x \cdot \left(y \cdot z - a \cdot t\right) \]
                                                            2. lower-fma.f64N/A

                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(a \cdot c - i \cdot y, j, x \cdot \left(y \cdot z - a \cdot t\right)\right)} \]
                                                            3. fp-cancel-sub-sign-invN/A

                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{a \cdot c + \left(\mathsf{neg}\left(i\right)\right) \cdot y}, j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                            4. +-commutativeN/A

                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(i\right)\right) \cdot y + a \cdot c}, j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                            5. lower-fma.f64N/A

                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i\right), y, a \cdot c\right)}, j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                            6. lower-neg.f64N/A

                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-i}, y, a \cdot c\right), j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                            7. *-commutativeN/A

                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right), j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                            8. lower-*.f64N/A

                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right), j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                            9. *-commutativeN/A

                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x}\right) \]
                                                            10. lower-*.f64N/A

                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x}\right) \]
                                                            11. fp-cancel-sub-sign-invN/A

                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a\right)\right) \cdot t\right)} \cdot x\right) \]
                                                            12. mul-1-negN/A

                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(y \cdot z + \color{blue}{\left(-1 \cdot a\right)} \cdot t\right) \cdot x\right) \]
                                                            13. associate-*r*N/A

                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(y \cdot z + \color{blue}{-1 \cdot \left(a \cdot t\right)}\right) \cdot x\right) \]
                                                            14. +-commutativeN/A

                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(-1 \cdot \left(a \cdot t\right) + y \cdot z\right)} \cdot x\right) \]
                                                            15. associate-*r*N/A

                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(\color{blue}{\left(-1 \cdot a\right) \cdot t} + y \cdot z\right) \cdot x\right) \]
                                                            16. mul-1-negN/A

                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot t + y \cdot z\right) \cdot x\right) \]
                                                            17. lower-fma.f64N/A

                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), t, y \cdot z\right)} \cdot x\right) \]
                                                            18. lower-neg.f64N/A

                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(\color{blue}{-a}, t, y \cdot z\right) \cdot x\right) \]
                                                            19. *-commutativeN/A

                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x\right) \]
                                                            20. lower-*.f6462.7

                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x\right) \]
                                                          5. Applied rewrites62.7%

                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)} \]
                                                          6. Taylor expanded in x around 0

                                                            \[\leadsto j \cdot \color{blue}{\left(-1 \cdot \left(i \cdot y\right) + a \cdot c\right)} \]
                                                          7. Step-by-step derivation
                                                            1. Applied rewrites26.3%

                                                              \[\leadsto \mathsf{fma}\left(-i, y, a \cdot c\right) \cdot \color{blue}{j} \]
                                                            2. Taylor expanded in y around 0

                                                              \[\leadsto a \cdot \left(c \cdot \color{blue}{j}\right) \]
                                                            3. Step-by-step derivation
                                                              1. Applied rewrites8.3%

                                                                \[\leadsto \left(j \cdot c\right) \cdot a \]
                                                              2. Taylor expanded in z around inf

                                                                \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                              3. Step-by-step derivation
                                                                1. Applied rewrites35.2%

                                                                  \[\leadsto \left(y \cdot x\right) \cdot \color{blue}{z} \]

                                                                if 3.0499999999999999e-124 < a < 2.5999999999999999e38

                                                                1. Initial program 74.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 i around inf

                                                                  \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
                                                                4. Step-by-step derivation
                                                                  1. *-commutativeN/A

                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                                                                  2. lower-*.f64N/A

                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                                                                  3. *-commutativeN/A

                                                                    \[\leadsto \left(-1 \cdot \left(j \cdot y\right) - \color{blue}{\left(b \cdot t\right) \cdot -1}\right) \cdot i \]
                                                                  4. fp-cancel-sub-sign-invN/A

                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) + \left(\mathsf{neg}\left(b \cdot t\right)\right) \cdot -1\right)} \cdot i \]
                                                                  5. *-commutativeN/A

                                                                    \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(b \cdot t\right)\right) \cdot -1\right) \cdot i \]
                                                                  6. associate-*r*N/A

                                                                    \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + \left(\mathsf{neg}\left(b \cdot t\right)\right) \cdot -1\right) \cdot i \]
                                                                  7. distribute-lft-neg-inN/A

                                                                    \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{\left(\mathsf{neg}\left(\left(b \cdot t\right) \cdot -1\right)\right)}\right) \cdot i \]
                                                                  8. *-commutativeN/A

                                                                    \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \left(\mathsf{neg}\left(\color{blue}{-1 \cdot \left(b \cdot t\right)}\right)\right)\right) \cdot i \]
                                                                  9. distribute-lft-neg-outN/A

                                                                    \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{\left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot t\right)}\right) \cdot i \]
                                                                  10. metadata-evalN/A

                                                                    \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{1} \cdot \left(b \cdot t\right)\right) \cdot i \]
                                                                  11. *-lft-identityN/A

                                                                    \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{b \cdot t}\right) \cdot i \]
                                                                  12. lower-fma.f64N/A

                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, b \cdot t\right)} \cdot i \]
                                                                  13. mul-1-negN/A

                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, b \cdot t\right) \cdot i \]
                                                                  14. lower-neg.f64N/A

                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, j, b \cdot t\right) \cdot i \]
                                                                  15. lower-*.f6443.2

                                                                    \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot t}\right) \cdot i \]
                                                                5. Applied rewrites43.2%

                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i} \]
                                                                6. Taylor expanded in y around 0

                                                                  \[\leadsto \left(b \cdot t\right) \cdot i \]
                                                                7. Step-by-step derivation
                                                                  1. Applied rewrites33.5%

                                                                    \[\leadsto \left(t \cdot b\right) \cdot i \]

                                                                  if 2.5999999999999999e38 < a

                                                                  1. Initial program 69.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 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}{\left(a \cdot c - i \cdot y\right) \cdot j} + x \cdot \left(y \cdot z - a \cdot t\right) \]
                                                                    2. lower-fma.f64N/A

                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(a \cdot c - i \cdot y, j, x \cdot \left(y \cdot z - a \cdot t\right)\right)} \]
                                                                    3. fp-cancel-sub-sign-invN/A

                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{a \cdot c + \left(\mathsf{neg}\left(i\right)\right) \cdot y}, j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                    4. +-commutativeN/A

                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(i\right)\right) \cdot y + a \cdot c}, j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                    5. lower-fma.f64N/A

                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i\right), y, a \cdot c\right)}, j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                    6. lower-neg.f64N/A

                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-i}, y, a \cdot c\right), j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                    7. *-commutativeN/A

                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right), j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                    8. lower-*.f64N/A

                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right), j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                    9. *-commutativeN/A

                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x}\right) \]
                                                                    10. lower-*.f64N/A

                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x}\right) \]
                                                                    11. fp-cancel-sub-sign-invN/A

                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a\right)\right) \cdot t\right)} \cdot x\right) \]
                                                                    12. mul-1-negN/A

                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(y \cdot z + \color{blue}{\left(-1 \cdot a\right)} \cdot t\right) \cdot x\right) \]
                                                                    13. associate-*r*N/A

                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(y \cdot z + \color{blue}{-1 \cdot \left(a \cdot t\right)}\right) \cdot x\right) \]
                                                                    14. +-commutativeN/A

                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(-1 \cdot \left(a \cdot t\right) + y \cdot z\right)} \cdot x\right) \]
                                                                    15. associate-*r*N/A

                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(\color{blue}{\left(-1 \cdot a\right) \cdot t} + y \cdot z\right) \cdot x\right) \]
                                                                    16. mul-1-negN/A

                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot t + y \cdot z\right) \cdot x\right) \]
                                                                    17. lower-fma.f64N/A

                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), t, y \cdot z\right)} \cdot x\right) \]
                                                                    18. lower-neg.f64N/A

                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(\color{blue}{-a}, t, y \cdot z\right) \cdot x\right) \]
                                                                    19. *-commutativeN/A

                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x\right) \]
                                                                    20. lower-*.f6471.3

                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x\right) \]
                                                                  5. Applied rewrites71.3%

                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)} \]
                                                                  6. Taylor expanded in x around 0

                                                                    \[\leadsto j \cdot \color{blue}{\left(-1 \cdot \left(i \cdot y\right) + a \cdot c\right)} \]
                                                                  7. Step-by-step derivation
                                                                    1. Applied rewrites55.9%

                                                                      \[\leadsto \mathsf{fma}\left(-i, y, a \cdot c\right) \cdot \color{blue}{j} \]
                                                                    2. Taylor expanded in y around 0

                                                                      \[\leadsto a \cdot \left(c \cdot \color{blue}{j}\right) \]
                                                                    3. Step-by-step derivation
                                                                      1. Applied rewrites42.9%

                                                                        \[\leadsto \left(j \cdot c\right) \cdot a \]
                                                                    4. Recombined 4 regimes into one program.
                                                                    5. Add Preprocessing

                                                                    Alternative 23: 29.4% accurate, 2.1× speedup?

                                                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -1.7 \cdot 10^{-8}:\\ \;\;\;\;\left(c \cdot a\right) \cdot j\\ \mathbf{elif}\;a \leq 4.5 \cdot 10^{-124}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{elif}\;a \leq 2 \cdot 10^{-6}:\\ \;\;\;\;\left(t \cdot i\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \end{array} \end{array} \]
                                                                    (FPCore (x y z t a b c i j)
                                                                     :precision binary64
                                                                     (if (<= a -1.7e-8)
                                                                       (* (* c a) j)
                                                                       (if (<= a 4.5e-124)
                                                                         (* (* y x) z)
                                                                         (if (<= a 2e-6) (* (* t i) b) (* (* j c) a)))))
                                                                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                    	double tmp;
                                                                    	if (a <= -1.7e-8) {
                                                                    		tmp = (c * a) * j;
                                                                    	} else if (a <= 4.5e-124) {
                                                                    		tmp = (y * x) * z;
                                                                    	} else if (a <= 2e-6) {
                                                                    		tmp = (t * i) * b;
                                                                    	} else {
                                                                    		tmp = (j * c) * a;
                                                                    	}
                                                                    	return tmp;
                                                                    }
                                                                    
                                                                    module fmin_fmax_functions
                                                                        implicit none
                                                                        private
                                                                        public fmax
                                                                        public fmin
                                                                    
                                                                        interface fmax
                                                                            module procedure fmax88
                                                                            module procedure fmax44
                                                                            module procedure fmax84
                                                                            module procedure fmax48
                                                                        end interface
                                                                        interface fmin
                                                                            module procedure fmin88
                                                                            module procedure fmin44
                                                                            module procedure fmin84
                                                                            module procedure fmin48
                                                                        end interface
                                                                    contains
                                                                        real(8) function fmax88(x, y) result (res)
                                                                            real(8), intent (in) :: x
                                                                            real(8), intent (in) :: y
                                                                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                        end function
                                                                        real(4) function fmax44(x, y) result (res)
                                                                            real(4), intent (in) :: x
                                                                            real(4), intent (in) :: y
                                                                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                        end function
                                                                        real(8) function fmax84(x, y) result(res)
                                                                            real(8), intent (in) :: x
                                                                            real(4), intent (in) :: y
                                                                            res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                        end function
                                                                        real(8) function fmax48(x, y) result(res)
                                                                            real(4), intent (in) :: x
                                                                            real(8), intent (in) :: y
                                                                            res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                        end function
                                                                        real(8) function fmin88(x, y) result (res)
                                                                            real(8), intent (in) :: x
                                                                            real(8), intent (in) :: y
                                                                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                        end function
                                                                        real(4) function fmin44(x, y) result (res)
                                                                            real(4), intent (in) :: x
                                                                            real(4), intent (in) :: y
                                                                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                        end function
                                                                        real(8) function fmin84(x, y) result(res)
                                                                            real(8), intent (in) :: x
                                                                            real(4), intent (in) :: y
                                                                            res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                        end function
                                                                        real(8) function fmin48(x, y) result(res)
                                                                            real(4), intent (in) :: x
                                                                            real(8), intent (in) :: y
                                                                            res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                        end function
                                                                    end module
                                                                    
                                                                    real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                    use fmin_fmax_functions
                                                                        real(8), intent (in) :: x
                                                                        real(8), intent (in) :: y
                                                                        real(8), intent (in) :: z
                                                                        real(8), intent (in) :: t
                                                                        real(8), intent (in) :: a
                                                                        real(8), intent (in) :: b
                                                                        real(8), intent (in) :: c
                                                                        real(8), intent (in) :: i
                                                                        real(8), intent (in) :: j
                                                                        real(8) :: tmp
                                                                        if (a <= (-1.7d-8)) then
                                                                            tmp = (c * a) * j
                                                                        else if (a <= 4.5d-124) then
                                                                            tmp = (y * x) * z
                                                                        else if (a <= 2d-6) then
                                                                            tmp = (t * i) * b
                                                                        else
                                                                            tmp = (j * c) * a
                                                                        end if
                                                                        code = tmp
                                                                    end function
                                                                    
                                                                    public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                    	double tmp;
                                                                    	if (a <= -1.7e-8) {
                                                                    		tmp = (c * a) * j;
                                                                    	} else if (a <= 4.5e-124) {
                                                                    		tmp = (y * x) * z;
                                                                    	} else if (a <= 2e-6) {
                                                                    		tmp = (t * i) * b;
                                                                    	} else {
                                                                    		tmp = (j * c) * a;
                                                                    	}
                                                                    	return tmp;
                                                                    }
                                                                    
                                                                    def code(x, y, z, t, a, b, c, i, j):
                                                                    	tmp = 0
                                                                    	if a <= -1.7e-8:
                                                                    		tmp = (c * a) * j
                                                                    	elif a <= 4.5e-124:
                                                                    		tmp = (y * x) * z
                                                                    	elif a <= 2e-6:
                                                                    		tmp = (t * i) * b
                                                                    	else:
                                                                    		tmp = (j * c) * a
                                                                    	return tmp
                                                                    
                                                                    function code(x, y, z, t, a, b, c, i, j)
                                                                    	tmp = 0.0
                                                                    	if (a <= -1.7e-8)
                                                                    		tmp = Float64(Float64(c * a) * j);
                                                                    	elseif (a <= 4.5e-124)
                                                                    		tmp = Float64(Float64(y * x) * z);
                                                                    	elseif (a <= 2e-6)
                                                                    		tmp = Float64(Float64(t * i) * b);
                                                                    	else
                                                                    		tmp = Float64(Float64(j * c) * a);
                                                                    	end
                                                                    	return tmp
                                                                    end
                                                                    
                                                                    function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                    	tmp = 0.0;
                                                                    	if (a <= -1.7e-8)
                                                                    		tmp = (c * a) * j;
                                                                    	elseif (a <= 4.5e-124)
                                                                    		tmp = (y * x) * z;
                                                                    	elseif (a <= 2e-6)
                                                                    		tmp = (t * i) * b;
                                                                    	else
                                                                    		tmp = (j * c) * a;
                                                                    	end
                                                                    	tmp_2 = tmp;
                                                                    end
                                                                    
                                                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.7e-8], N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[a, 4.5e-124], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[a, 2e-6], N[(N[(t * i), $MachinePrecision] * b), $MachinePrecision], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]]]]
                                                                    
                                                                    \begin{array}{l}
                                                                    
                                                                    \\
                                                                    \begin{array}{l}
                                                                    \mathbf{if}\;a \leq -1.7 \cdot 10^{-8}:\\
                                                                    \;\;\;\;\left(c \cdot a\right) \cdot j\\
                                                                    
                                                                    \mathbf{elif}\;a \leq 4.5 \cdot 10^{-124}:\\
                                                                    \;\;\;\;\left(y \cdot x\right) \cdot z\\
                                                                    
                                                                    \mathbf{elif}\;a \leq 2 \cdot 10^{-6}:\\
                                                                    \;\;\;\;\left(t \cdot i\right) \cdot b\\
                                                                    
                                                                    \mathbf{else}:\\
                                                                    \;\;\;\;\left(j \cdot c\right) \cdot a\\
                                                                    
                                                                    
                                                                    \end{array}
                                                                    \end{array}
                                                                    
                                                                    Derivation
                                                                    1. Split input into 4 regimes
                                                                    2. if a < -1.7e-8

                                                                      1. Initial program 63.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 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}{\left(a \cdot c - i \cdot y\right) \cdot j} + x \cdot \left(y \cdot z - a \cdot t\right) \]
                                                                        2. lower-fma.f64N/A

                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(a \cdot c - i \cdot y, j, x \cdot \left(y \cdot z - a \cdot t\right)\right)} \]
                                                                        3. fp-cancel-sub-sign-invN/A

                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{a \cdot c + \left(\mathsf{neg}\left(i\right)\right) \cdot y}, j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                        4. +-commutativeN/A

                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(i\right)\right) \cdot y + a \cdot c}, j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                        5. lower-fma.f64N/A

                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i\right), y, a \cdot c\right)}, j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                        6. lower-neg.f64N/A

                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-i}, y, a \cdot c\right), j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                        7. *-commutativeN/A

                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right), j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                        8. lower-*.f64N/A

                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right), j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                        9. *-commutativeN/A

                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x}\right) \]
                                                                        10. lower-*.f64N/A

                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x}\right) \]
                                                                        11. fp-cancel-sub-sign-invN/A

                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a\right)\right) \cdot t\right)} \cdot x\right) \]
                                                                        12. mul-1-negN/A

                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(y \cdot z + \color{blue}{\left(-1 \cdot a\right)} \cdot t\right) \cdot x\right) \]
                                                                        13. associate-*r*N/A

                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(y \cdot z + \color{blue}{-1 \cdot \left(a \cdot t\right)}\right) \cdot x\right) \]
                                                                        14. +-commutativeN/A

                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(-1 \cdot \left(a \cdot t\right) + y \cdot z\right)} \cdot x\right) \]
                                                                        15. associate-*r*N/A

                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(\color{blue}{\left(-1 \cdot a\right) \cdot t} + y \cdot z\right) \cdot x\right) \]
                                                                        16. mul-1-negN/A

                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot t + y \cdot z\right) \cdot x\right) \]
                                                                        17. lower-fma.f64N/A

                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), t, y \cdot z\right)} \cdot x\right) \]
                                                                        18. lower-neg.f64N/A

                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(\color{blue}{-a}, t, y \cdot z\right) \cdot x\right) \]
                                                                        19. *-commutativeN/A

                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x\right) \]
                                                                        20. lower-*.f6453.0

                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x\right) \]
                                                                      5. Applied rewrites53.0%

                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)} \]
                                                                      6. Taylor expanded in x around 0

                                                                        \[\leadsto j \cdot \color{blue}{\left(-1 \cdot \left(i \cdot y\right) + a \cdot c\right)} \]
                                                                      7. Step-by-step derivation
                                                                        1. Applied rewrites41.2%

                                                                          \[\leadsto \mathsf{fma}\left(-i, y, a \cdot c\right) \cdot \color{blue}{j} \]
                                                                        2. Taylor expanded in y around 0

                                                                          \[\leadsto \left(a \cdot c\right) \cdot j \]
                                                                        3. Step-by-step derivation
                                                                          1. Applied rewrites33.3%

                                                                            \[\leadsto \left(c \cdot a\right) \cdot j \]

                                                                          if -1.7e-8 < a < 4.4999999999999996e-124

                                                                          1. Initial program 85.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 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}{\left(a \cdot c - i \cdot y\right) \cdot j} + x \cdot \left(y \cdot z - a \cdot t\right) \]
                                                                            2. lower-fma.f64N/A

                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(a \cdot c - i \cdot y, j, x \cdot \left(y \cdot z - a \cdot t\right)\right)} \]
                                                                            3. fp-cancel-sub-sign-invN/A

                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{a \cdot c + \left(\mathsf{neg}\left(i\right)\right) \cdot y}, j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                            4. +-commutativeN/A

                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(i\right)\right) \cdot y + a \cdot c}, j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                            5. lower-fma.f64N/A

                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i\right), y, a \cdot c\right)}, j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                            6. lower-neg.f64N/A

                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-i}, y, a \cdot c\right), j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                            7. *-commutativeN/A

                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right), j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                            8. lower-*.f64N/A

                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right), j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                            9. *-commutativeN/A

                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x}\right) \]
                                                                            10. lower-*.f64N/A

                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x}\right) \]
                                                                            11. fp-cancel-sub-sign-invN/A

                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a\right)\right) \cdot t\right)} \cdot x\right) \]
                                                                            12. mul-1-negN/A

                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(y \cdot z + \color{blue}{\left(-1 \cdot a\right)} \cdot t\right) \cdot x\right) \]
                                                                            13. associate-*r*N/A

                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(y \cdot z + \color{blue}{-1 \cdot \left(a \cdot t\right)}\right) \cdot x\right) \]
                                                                            14. +-commutativeN/A

                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(-1 \cdot \left(a \cdot t\right) + y \cdot z\right)} \cdot x\right) \]
                                                                            15. associate-*r*N/A

                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(\color{blue}{\left(-1 \cdot a\right) \cdot t} + y \cdot z\right) \cdot x\right) \]
                                                                            16. mul-1-negN/A

                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot t + y \cdot z\right) \cdot x\right) \]
                                                                            17. lower-fma.f64N/A

                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), t, y \cdot z\right)} \cdot x\right) \]
                                                                            18. lower-neg.f64N/A

                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(\color{blue}{-a}, t, y \cdot z\right) \cdot x\right) \]
                                                                            19. *-commutativeN/A

                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x\right) \]
                                                                            20. lower-*.f6462.7

                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x\right) \]
                                                                          5. Applied rewrites62.7%

                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)} \]
                                                                          6. Taylor expanded in x around 0

                                                                            \[\leadsto j \cdot \color{blue}{\left(-1 \cdot \left(i \cdot y\right) + a \cdot c\right)} \]
                                                                          7. Step-by-step derivation
                                                                            1. Applied rewrites26.3%

                                                                              \[\leadsto \mathsf{fma}\left(-i, y, a \cdot c\right) \cdot \color{blue}{j} \]
                                                                            2. Taylor expanded in y around 0

                                                                              \[\leadsto a \cdot \left(c \cdot \color{blue}{j}\right) \]
                                                                            3. Step-by-step derivation
                                                                              1. Applied rewrites8.3%

                                                                                \[\leadsto \left(j \cdot c\right) \cdot a \]
                                                                              2. Taylor expanded in z around inf

                                                                                \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                                              3. Step-by-step derivation
                                                                                1. Applied rewrites35.2%

                                                                                  \[\leadsto \left(y \cdot x\right) \cdot \color{blue}{z} \]

                                                                                if 4.4999999999999996e-124 < a < 1.99999999999999991e-6

                                                                                1. Initial program 77.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 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-*.f6442.7

                                                                                    \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                                5. Applied rewrites42.7%

                                                                                  \[\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 rewrites42.0%

                                                                                    \[\leadsto \left(t \cdot i\right) \cdot \color{blue}{b} \]

                                                                                  if 1.99999999999999991e-6 < a

                                                                                  1. Initial program 69.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}{\left(a \cdot c - i \cdot y\right) \cdot j} + x \cdot \left(y \cdot z - a \cdot t\right) \]
                                                                                    2. lower-fma.f64N/A

                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(a \cdot c - i \cdot y, j, x \cdot \left(y \cdot z - a \cdot t\right)\right)} \]
                                                                                    3. fp-cancel-sub-sign-invN/A

                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{a \cdot c + \left(\mathsf{neg}\left(i\right)\right) \cdot y}, j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                                    4. +-commutativeN/A

                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(i\right)\right) \cdot y + a \cdot c}, j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                                    5. lower-fma.f64N/A

                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i\right), y, a \cdot c\right)}, j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                                    6. lower-neg.f64N/A

                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-i}, y, a \cdot c\right), j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                                    7. *-commutativeN/A

                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right), j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                                    8. lower-*.f64N/A

                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right), j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                                    9. *-commutativeN/A

                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x}\right) \]
                                                                                    10. lower-*.f64N/A

                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x}\right) \]
                                                                                    11. fp-cancel-sub-sign-invN/A

                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a\right)\right) \cdot t\right)} \cdot x\right) \]
                                                                                    12. mul-1-negN/A

                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(y \cdot z + \color{blue}{\left(-1 \cdot a\right)} \cdot t\right) \cdot x\right) \]
                                                                                    13. associate-*r*N/A

                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(y \cdot z + \color{blue}{-1 \cdot \left(a \cdot t\right)}\right) \cdot x\right) \]
                                                                                    14. +-commutativeN/A

                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(-1 \cdot \left(a \cdot t\right) + y \cdot z\right)} \cdot x\right) \]
                                                                                    15. associate-*r*N/A

                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(\color{blue}{\left(-1 \cdot a\right) \cdot t} + y \cdot z\right) \cdot x\right) \]
                                                                                    16. mul-1-negN/A

                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot t + y \cdot z\right) \cdot x\right) \]
                                                                                    17. lower-fma.f64N/A

                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), t, y \cdot z\right)} \cdot x\right) \]
                                                                                    18. lower-neg.f64N/A

                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(\color{blue}{-a}, t, y \cdot z\right) \cdot x\right) \]
                                                                                    19. *-commutativeN/A

                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x\right) \]
                                                                                    20. lower-*.f6469.7

                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x\right) \]
                                                                                  5. Applied rewrites69.7%

                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)} \]
                                                                                  6. Taylor expanded in x around 0

                                                                                    \[\leadsto j \cdot \color{blue}{\left(-1 \cdot \left(i \cdot y\right) + a \cdot c\right)} \]
                                                                                  7. Step-by-step derivation
                                                                                    1. Applied rewrites51.3%

                                                                                      \[\leadsto \mathsf{fma}\left(-i, y, a \cdot c\right) \cdot \color{blue}{j} \]
                                                                                    2. Taylor expanded in y around 0

                                                                                      \[\leadsto a \cdot \left(c \cdot \color{blue}{j}\right) \]
                                                                                    3. Step-by-step derivation
                                                                                      1. Applied rewrites39.5%

                                                                                        \[\leadsto \left(j \cdot c\right) \cdot a \]
                                                                                    4. Recombined 4 regimes into one program.
                                                                                    5. Add Preprocessing

                                                                                    Alternative 24: 29.1% accurate, 2.6× speedup?

                                                                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -8.5 \cdot 10^{+75} \lor \neg \left(b \leq 20500000000\right):\\ \;\;\;\;\left(t \cdot i\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\left(c \cdot a\right) \cdot j\\ \end{array} \end{array} \]
                                                                                    (FPCore (x y z t a b c i j)
                                                                                     :precision binary64
                                                                                     (if (or (<= b -8.5e+75) (not (<= b 20500000000.0)))
                                                                                       (* (* t i) b)
                                                                                       (* (* 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 <= -8.5e+75) || !(b <= 20500000000.0)) {
                                                                                    		tmp = (t * i) * b;
                                                                                    	} else {
                                                                                    		tmp = (c * a) * j;
                                                                                    	}
                                                                                    	return tmp;
                                                                                    }
                                                                                    
                                                                                    module fmin_fmax_functions
                                                                                        implicit none
                                                                                        private
                                                                                        public fmax
                                                                                        public fmin
                                                                                    
                                                                                        interface fmax
                                                                                            module procedure fmax88
                                                                                            module procedure fmax44
                                                                                            module procedure fmax84
                                                                                            module procedure fmax48
                                                                                        end interface
                                                                                        interface fmin
                                                                                            module procedure fmin88
                                                                                            module procedure fmin44
                                                                                            module procedure fmin84
                                                                                            module procedure fmin48
                                                                                        end interface
                                                                                    contains
                                                                                        real(8) function fmax88(x, y) result (res)
                                                                                            real(8), intent (in) :: x
                                                                                            real(8), intent (in) :: y
                                                                                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                        end function
                                                                                        real(4) function fmax44(x, y) result (res)
                                                                                            real(4), intent (in) :: x
                                                                                            real(4), intent (in) :: y
                                                                                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                        end function
                                                                                        real(8) function fmax84(x, y) result(res)
                                                                                            real(8), intent (in) :: x
                                                                                            real(4), intent (in) :: y
                                                                                            res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                                        end function
                                                                                        real(8) function fmax48(x, y) result(res)
                                                                                            real(4), intent (in) :: x
                                                                                            real(8), intent (in) :: y
                                                                                            res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                                        end function
                                                                                        real(8) function fmin88(x, y) result (res)
                                                                                            real(8), intent (in) :: x
                                                                                            real(8), intent (in) :: y
                                                                                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                        end function
                                                                                        real(4) function fmin44(x, y) result (res)
                                                                                            real(4), intent (in) :: x
                                                                                            real(4), intent (in) :: y
                                                                                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                        end function
                                                                                        real(8) function fmin84(x, y) result(res)
                                                                                            real(8), intent (in) :: x
                                                                                            real(4), intent (in) :: y
                                                                                            res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                                        end function
                                                                                        real(8) function fmin48(x, y) result(res)
                                                                                            real(4), intent (in) :: x
                                                                                            real(8), intent (in) :: y
                                                                                            res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                                        end function
                                                                                    end module
                                                                                    
                                                                                    real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                    use fmin_fmax_functions
                                                                                        real(8), intent (in) :: x
                                                                                        real(8), intent (in) :: y
                                                                                        real(8), intent (in) :: z
                                                                                        real(8), intent (in) :: t
                                                                                        real(8), intent (in) :: a
                                                                                        real(8), intent (in) :: b
                                                                                        real(8), intent (in) :: c
                                                                                        real(8), intent (in) :: i
                                                                                        real(8), intent (in) :: j
                                                                                        real(8) :: tmp
                                                                                        if ((b <= (-8.5d+75)) .or. (.not. (b <= 20500000000.0d0))) then
                                                                                            tmp = (t * i) * b
                                                                                        else
                                                                                            tmp = (c * a) * j
                                                                                        end if
                                                                                        code = tmp
                                                                                    end function
                                                                                    
                                                                                    public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                    	double tmp;
                                                                                    	if ((b <= -8.5e+75) || !(b <= 20500000000.0)) {
                                                                                    		tmp = (t * i) * b;
                                                                                    	} else {
                                                                                    		tmp = (c * a) * j;
                                                                                    	}
                                                                                    	return tmp;
                                                                                    }
                                                                                    
                                                                                    def code(x, y, z, t, a, b, c, i, j):
                                                                                    	tmp = 0
                                                                                    	if (b <= -8.5e+75) or not (b <= 20500000000.0):
                                                                                    		tmp = (t * i) * b
                                                                                    	else:
                                                                                    		tmp = (c * a) * j
                                                                                    	return tmp
                                                                                    
                                                                                    function code(x, y, z, t, a, b, c, i, j)
                                                                                    	tmp = 0.0
                                                                                    	if ((b <= -8.5e+75) || !(b <= 20500000000.0))
                                                                                    		tmp = Float64(Float64(t * i) * b);
                                                                                    	else
                                                                                    		tmp = Float64(Float64(c * a) * j);
                                                                                    	end
                                                                                    	return tmp
                                                                                    end
                                                                                    
                                                                                    function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                    	tmp = 0.0;
                                                                                    	if ((b <= -8.5e+75) || ~((b <= 20500000000.0)))
                                                                                    		tmp = (t * i) * b;
                                                                                    	else
                                                                                    		tmp = (c * a) * j;
                                                                                    	end
                                                                                    	tmp_2 = tmp;
                                                                                    end
                                                                                    
                                                                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -8.5e+75], N[Not[LessEqual[b, 20500000000.0]], $MachinePrecision]], N[(N[(t * i), $MachinePrecision] * b), $MachinePrecision], N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision]]
                                                                                    
                                                                                    \begin{array}{l}
                                                                                    
                                                                                    \\
                                                                                    \begin{array}{l}
                                                                                    \mathbf{if}\;b \leq -8.5 \cdot 10^{+75} \lor \neg \left(b \leq 20500000000\right):\\
                                                                                    \;\;\;\;\left(t \cdot i\right) \cdot b\\
                                                                                    
                                                                                    \mathbf{else}:\\
                                                                                    \;\;\;\;\left(c \cdot a\right) \cdot j\\
                                                                                    
                                                                                    
                                                                                    \end{array}
                                                                                    \end{array}
                                                                                    
                                                                                    Derivation
                                                                                    1. Split input into 2 regimes
                                                                                    2. if b < -8.4999999999999993e75 or 2.05e10 < b

                                                                                      1. Initial program 81.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-*.f6450.2

                                                                                          \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                                      5. Applied rewrites50.2%

                                                                                        \[\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 rewrites39.6%

                                                                                          \[\leadsto \left(t \cdot i\right) \cdot \color{blue}{b} \]

                                                                                        if -8.4999999999999993e75 < b < 2.05e10

                                                                                        1. Initial program 70.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}{\left(a \cdot c - i \cdot y\right) \cdot j} + x \cdot \left(y \cdot z - a \cdot t\right) \]
                                                                                          2. lower-fma.f64N/A

                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(a \cdot c - i \cdot y, j, x \cdot \left(y \cdot z - a \cdot t\right)\right)} \]
                                                                                          3. fp-cancel-sub-sign-invN/A

                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{a \cdot c + \left(\mathsf{neg}\left(i\right)\right) \cdot y}, j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                                          4. +-commutativeN/A

                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(i\right)\right) \cdot y + a \cdot c}, j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                                          5. lower-fma.f64N/A

                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i\right), y, a \cdot c\right)}, j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                                          6. lower-neg.f64N/A

                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-i}, y, a \cdot c\right), j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                                          7. *-commutativeN/A

                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right), j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                                          8. lower-*.f64N/A

                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right), j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                                          9. *-commutativeN/A

                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x}\right) \]
                                                                                          10. lower-*.f64N/A

                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x}\right) \]
                                                                                          11. fp-cancel-sub-sign-invN/A

                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a\right)\right) \cdot t\right)} \cdot x\right) \]
                                                                                          12. mul-1-negN/A

                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(y \cdot z + \color{blue}{\left(-1 \cdot a\right)} \cdot t\right) \cdot x\right) \]
                                                                                          13. associate-*r*N/A

                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(y \cdot z + \color{blue}{-1 \cdot \left(a \cdot t\right)}\right) \cdot x\right) \]
                                                                                          14. +-commutativeN/A

                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(-1 \cdot \left(a \cdot t\right) + y \cdot z\right)} \cdot x\right) \]
                                                                                          15. associate-*r*N/A

                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(\color{blue}{\left(-1 \cdot a\right) \cdot t} + y \cdot z\right) \cdot x\right) \]
                                                                                          16. mul-1-negN/A

                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot t + y \cdot z\right) \cdot x\right) \]
                                                                                          17. lower-fma.f64N/A

                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), t, y \cdot z\right)} \cdot x\right) \]
                                                                                          18. lower-neg.f64N/A

                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(\color{blue}{-a}, t, y \cdot z\right) \cdot x\right) \]
                                                                                          19. *-commutativeN/A

                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x\right) \]
                                                                                          20. lower-*.f6471.3

                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x\right) \]
                                                                                        5. Applied rewrites71.3%

                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)} \]
                                                                                        6. Taylor expanded in x around 0

                                                                                          \[\leadsto j \cdot \color{blue}{\left(-1 \cdot \left(i \cdot y\right) + a \cdot c\right)} \]
                                                                                        7. Step-by-step derivation
                                                                                          1. Applied rewrites47.1%

                                                                                            \[\leadsto \mathsf{fma}\left(-i, y, a \cdot c\right) \cdot \color{blue}{j} \]
                                                                                          2. Taylor expanded in y around 0

                                                                                            \[\leadsto \left(a \cdot c\right) \cdot j \]
                                                                                          3. Step-by-step derivation
                                                                                            1. Applied rewrites30.1%

                                                                                              \[\leadsto \left(c \cdot a\right) \cdot j \]
                                                                                          4. Recombined 2 regimes into one program.
                                                                                          5. Final simplification34.0%

                                                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -8.5 \cdot 10^{+75} \lor \neg \left(b \leq 20500000000\right):\\ \;\;\;\;\left(t \cdot i\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\left(c \cdot a\right) \cdot j\\ \end{array} \]
                                                                                          6. Add Preprocessing

                                                                                          Alternative 25: 29.4% accurate, 2.6× speedup?

                                                                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -6.4 \cdot 10^{+84} \lor \neg \left(b \leq 14500000000\right):\\ \;\;\;\;\left(t \cdot i\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \end{array} \end{array} \]
                                                                                          (FPCore (x y z t a b c i j)
                                                                                           :precision binary64
                                                                                           (if (or (<= b -6.4e+84) (not (<= b 14500000000.0)))
                                                                                             (* (* t i) b)
                                                                                             (* (* j c) a)))
                                                                                          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                          	double tmp;
                                                                                          	if ((b <= -6.4e+84) || !(b <= 14500000000.0)) {
                                                                                          		tmp = (t * i) * b;
                                                                                          	} else {
                                                                                          		tmp = (j * c) * a;
                                                                                          	}
                                                                                          	return tmp;
                                                                                          }
                                                                                          
                                                                                          module fmin_fmax_functions
                                                                                              implicit none
                                                                                              private
                                                                                              public fmax
                                                                                              public fmin
                                                                                          
                                                                                              interface fmax
                                                                                                  module procedure fmax88
                                                                                                  module procedure fmax44
                                                                                                  module procedure fmax84
                                                                                                  module procedure fmax48
                                                                                              end interface
                                                                                              interface fmin
                                                                                                  module procedure fmin88
                                                                                                  module procedure fmin44
                                                                                                  module procedure fmin84
                                                                                                  module procedure fmin48
                                                                                              end interface
                                                                                          contains
                                                                                              real(8) function fmax88(x, y) result (res)
                                                                                                  real(8), intent (in) :: x
                                                                                                  real(8), intent (in) :: y
                                                                                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                              end function
                                                                                              real(4) function fmax44(x, y) result (res)
                                                                                                  real(4), intent (in) :: x
                                                                                                  real(4), intent (in) :: y
                                                                                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                                                              end function
                                                                                              real(8) function fmax84(x, y) result(res)
                                                                                                  real(8), intent (in) :: x
                                                                                                  real(4), intent (in) :: y
                                                                                                  res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                                                              end function
                                                                                              real(8) function fmax48(x, y) result(res)
                                                                                                  real(4), intent (in) :: x
                                                                                                  real(8), intent (in) :: y
                                                                                                  res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                                                              end function
                                                                                              real(8) function fmin88(x, y) result (res)
                                                                                                  real(8), intent (in) :: x
                                                                                                  real(8), intent (in) :: y
                                                                                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                              end function
                                                                                              real(4) function fmin44(x, y) result (res)
                                                                                                  real(4), intent (in) :: x
                                                                                                  real(4), intent (in) :: y
                                                                                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                                                              end function
                                                                                              real(8) function fmin84(x, y) result(res)
                                                                                                  real(8), intent (in) :: x
                                                                                                  real(4), intent (in) :: y
                                                                                                  res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                                                              end function
                                                                                              real(8) function fmin48(x, y) result(res)
                                                                                                  real(4), intent (in) :: x
                                                                                                  real(8), intent (in) :: y
                                                                                                  res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                                                              end function
                                                                                          end module
                                                                                          
                                                                                          real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                          use fmin_fmax_functions
                                                                                              real(8), intent (in) :: x
                                                                                              real(8), intent (in) :: y
                                                                                              real(8), intent (in) :: z
                                                                                              real(8), intent (in) :: t
                                                                                              real(8), intent (in) :: a
                                                                                              real(8), intent (in) :: b
                                                                                              real(8), intent (in) :: c
                                                                                              real(8), intent (in) :: i
                                                                                              real(8), intent (in) :: j
                                                                                              real(8) :: tmp
                                                                                              if ((b <= (-6.4d+84)) .or. (.not. (b <= 14500000000.0d0))) then
                                                                                                  tmp = (t * i) * b
                                                                                              else
                                                                                                  tmp = (j * c) * a
                                                                                              end if
                                                                                              code = tmp
                                                                                          end function
                                                                                          
                                                                                          public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                          	double tmp;
                                                                                          	if ((b <= -6.4e+84) || !(b <= 14500000000.0)) {
                                                                                          		tmp = (t * i) * b;
                                                                                          	} else {
                                                                                          		tmp = (j * c) * a;
                                                                                          	}
                                                                                          	return tmp;
                                                                                          }
                                                                                          
                                                                                          def code(x, y, z, t, a, b, c, i, j):
                                                                                          	tmp = 0
                                                                                          	if (b <= -6.4e+84) or not (b <= 14500000000.0):
                                                                                          		tmp = (t * i) * b
                                                                                          	else:
                                                                                          		tmp = (j * c) * a
                                                                                          	return tmp
                                                                                          
                                                                                          function code(x, y, z, t, a, b, c, i, j)
                                                                                          	tmp = 0.0
                                                                                          	if ((b <= -6.4e+84) || !(b <= 14500000000.0))
                                                                                          		tmp = Float64(Float64(t * i) * b);
                                                                                          	else
                                                                                          		tmp = Float64(Float64(j * c) * a);
                                                                                          	end
                                                                                          	return tmp
                                                                                          end
                                                                                          
                                                                                          function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                          	tmp = 0.0;
                                                                                          	if ((b <= -6.4e+84) || ~((b <= 14500000000.0)))
                                                                                          		tmp = (t * i) * b;
                                                                                          	else
                                                                                          		tmp = (j * c) * a;
                                                                                          	end
                                                                                          	tmp_2 = tmp;
                                                                                          end
                                                                                          
                                                                                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -6.4e+84], N[Not[LessEqual[b, 14500000000.0]], $MachinePrecision]], N[(N[(t * i), $MachinePrecision] * b), $MachinePrecision], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]]
                                                                                          
                                                                                          \begin{array}{l}
                                                                                          
                                                                                          \\
                                                                                          \begin{array}{l}
                                                                                          \mathbf{if}\;b \leq -6.4 \cdot 10^{+84} \lor \neg \left(b \leq 14500000000\right):\\
                                                                                          \;\;\;\;\left(t \cdot i\right) \cdot b\\
                                                                                          
                                                                                          \mathbf{else}:\\
                                                                                          \;\;\;\;\left(j \cdot c\right) \cdot a\\
                                                                                          
                                                                                          
                                                                                          \end{array}
                                                                                          \end{array}
                                                                                          
                                                                                          Derivation
                                                                                          1. Split input into 2 regimes
                                                                                          2. if b < -6.4000000000000002e84 or 1.45e10 < b

                                                                                            1. Initial program 82.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 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-*.f6450.2

                                                                                                \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                                            5. Applied rewrites50.2%

                                                                                              \[\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 rewrites40.3%

                                                                                                \[\leadsto \left(t \cdot i\right) \cdot \color{blue}{b} \]

                                                                                              if -6.4000000000000002e84 < b < 1.45e10

                                                                                              1. Initial program 70.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 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}{\left(a \cdot c - i \cdot y\right) \cdot j} + x \cdot \left(y \cdot z - a \cdot t\right) \]
                                                                                                2. lower-fma.f64N/A

                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(a \cdot c - i \cdot y, j, x \cdot \left(y \cdot z - a \cdot t\right)\right)} \]
                                                                                                3. fp-cancel-sub-sign-invN/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{a \cdot c + \left(\mathsf{neg}\left(i\right)\right) \cdot y}, j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                                                4. +-commutativeN/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(i\right)\right) \cdot y + a \cdot c}, j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                                                5. lower-fma.f64N/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i\right), y, a \cdot c\right)}, j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                                                6. lower-neg.f64N/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-i}, y, a \cdot c\right), j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                                                7. *-commutativeN/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right), j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                                                8. lower-*.f64N/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right), j, x \cdot \left(y \cdot z - a \cdot t\right)\right) \]
                                                                                                9. *-commutativeN/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x}\right) \]
                                                                                                10. lower-*.f64N/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x}\right) \]
                                                                                                11. fp-cancel-sub-sign-invN/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a\right)\right) \cdot t\right)} \cdot x\right) \]
                                                                                                12. mul-1-negN/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(y \cdot z + \color{blue}{\left(-1 \cdot a\right)} \cdot t\right) \cdot x\right) \]
                                                                                                13. associate-*r*N/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(y \cdot z + \color{blue}{-1 \cdot \left(a \cdot t\right)}\right) \cdot x\right) \]
                                                                                                14. +-commutativeN/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\left(-1 \cdot \left(a \cdot t\right) + y \cdot z\right)} \cdot x\right) \]
                                                                                                15. associate-*r*N/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(\color{blue}{\left(-1 \cdot a\right) \cdot t} + y \cdot z\right) \cdot x\right) \]
                                                                                                16. mul-1-negN/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot t + y \cdot z\right) \cdot x\right) \]
                                                                                                17. lower-fma.f64N/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), t, y \cdot z\right)} \cdot x\right) \]
                                                                                                18. lower-neg.f64N/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(\color{blue}{-a}, t, y \cdot z\right) \cdot x\right) \]
                                                                                                19. *-commutativeN/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x\right) \]
                                                                                                20. lower-*.f6471.1

                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x\right) \]
                                                                                              5. Applied rewrites71.1%

                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)} \]
                                                                                              6. Taylor expanded in x around 0

                                                                                                \[\leadsto j \cdot \color{blue}{\left(-1 \cdot \left(i \cdot y\right) + a \cdot c\right)} \]
                                                                                              7. Step-by-step derivation
                                                                                                1. Applied rewrites47.1%

                                                                                                  \[\leadsto \mathsf{fma}\left(-i, y, a \cdot c\right) \cdot \color{blue}{j} \]
                                                                                                2. Taylor expanded in y around 0

                                                                                                  \[\leadsto a \cdot \left(c \cdot \color{blue}{j}\right) \]
                                                                                                3. Step-by-step derivation
                                                                                                  1. Applied rewrites28.4%

                                                                                                    \[\leadsto \left(j \cdot c\right) \cdot a \]
                                                                                                4. Recombined 2 regimes into one program.
                                                                                                5. Final simplification33.3%

                                                                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -6.4 \cdot 10^{+84} \lor \neg \left(b \leq 14500000000\right):\\ \;\;\;\;\left(t \cdot i\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \end{array} \]
                                                                                                6. Add Preprocessing

                                                                                                Alternative 26: 21.8% accurate, 5.5× speedup?

                                                                                                \[\begin{array}{l} \\ \left(t \cdot i\right) \cdot b \end{array} \]
                                                                                                (FPCore (x y z t a b c i j) :precision binary64 (* (* t i) b))
                                                                                                double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                	return (t * i) * 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 = (t * i) * 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 (t * i) * b;
                                                                                                }
                                                                                                
                                                                                                def code(x, y, z, t, a, b, c, i, j):
                                                                                                	return (t * i) * b
                                                                                                
                                                                                                function code(x, y, z, t, a, b, c, i, j)
                                                                                                	return Float64(Float64(t * i) * b)
                                                                                                end
                                                                                                
                                                                                                function tmp = code(x, y, z, t, a, b, c, i, j)
                                                                                                	tmp = (t * i) * b;
                                                                                                end
                                                                                                
                                                                                                code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(t * i), $MachinePrecision] * b), $MachinePrecision]
                                                                                                
                                                                                                \begin{array}{l}
                                                                                                
                                                                                                \\
                                                                                                \left(t \cdot i\right) \cdot b
                                                                                                \end{array}
                                                                                                
                                                                                                Derivation
                                                                                                1. Initial program 75.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-*.f6439.3

                                                                                                    \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                                                5. Applied rewrites39.3%

                                                                                                  \[\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 rewrites21.7%

                                                                                                    \[\leadsto \left(t \cdot i\right) \cdot \color{blue}{b} \]
                                                                                                  2. Add Preprocessing

                                                                                                  Developer Target 1: 59.8% 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 2025015 
                                                                                                  (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)))))