Linear.Matrix:det44 from linear-1.19.1.3

Percentage Accurate: 30.1% → 52.5%
Time: 29.6s
Alternatives: 32
Speedup: 4.4×

Specification

?
\[\begin{array}{l} \\ \left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (+
  (-
   (+
    (+
     (-
      (* (- (* x y) (* z t)) (- (* a b) (* c i)))
      (* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
     (* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
    (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
   (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
  (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
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, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
	return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0))))
end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}

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 32 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: 30.1% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (+
  (-
   (+
    (+
     (-
      (* (- (* x y) (* z t)) (- (* a b) (* c i)))
      (* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
     (* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
    (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
   (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
  (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
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, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
	return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0))))
end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}

Alternative 1: 52.5% accurate, 1.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := c \cdot y0 - a \cdot y1\\ t_2 := c \cdot y4 - a \cdot y5\\ t_3 := a \cdot b - c \cdot i\\ t_4 := y1 \cdot y4 - y0 \cdot y5\\ \mathbf{if}\;t \leq -4.5 \cdot 10^{+154}:\\ \;\;\;\;-1 \cdot \left(z \cdot \left(t \cdot t\_3\right)\right)\\ \mathbf{elif}\;t \leq -2.4 \cdot 10^{+112}:\\ \;\;\;\;-1 \cdot \left(y3 \cdot \left(\mathsf{fma}\left(j, t\_4, z \cdot t\_1\right) - y \cdot t\_2\right)\right)\\ \mathbf{elif}\;t \leq -6.2 \cdot 10^{-107}:\\ \;\;\;\;\mathsf{fma}\left(b, y4 \cdot \left(j \cdot t - k \cdot y\right), \mathsf{fma}\left(y1, y4 \cdot \left(k \cdot y2 - j \cdot y3\right), \mathsf{fma}\left(t\_3, x \cdot y - t \cdot z, t\_1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right)\right) - -1 \cdot \left(c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\right)\\ \mathbf{elif}\;t \leq 3.7 \cdot 10^{-181}:\\ \;\;\;\;x \cdot \left(\mathsf{fma}\left(y, t\_3, y2 \cdot t\_1\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\ \mathbf{elif}\;t \leq 3.5 \cdot 10^{+116}:\\ \;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, t\_4, x \cdot t\_1\right) - t \cdot t\_2\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1 (- (* c y0) (* a y1)))
        (t_2 (- (* c y4) (* a y5)))
        (t_3 (- (* a b) (* c i)))
        (t_4 (- (* y1 y4) (* y0 y5))))
   (if (<= t -4.5e+154)
     (* -1.0 (* z (* t t_3)))
     (if (<= t -2.4e+112)
       (* -1.0 (* y3 (- (fma j t_4 (* z t_1)) (* y t_2))))
       (if (<= t -6.2e-107)
         (-
          (fma
           b
           (* y4 (- (* j t) (* k y)))
           (fma
            y1
            (* y4 (- (* k y2) (* j y3)))
            (fma t_3 (- (* x y) (* t z)) (* t_1 (- (* x y2) (* y3 z))))))
          (* -1.0 (* c (* y (* y3 y4)))))
         (if (<= t 3.7e-181)
           (* x (- (fma y t_3 (* y2 t_1)) (* j (- (* b y0) (* i y1)))))
           (if (<= t 3.5e+116)
             (* y2 (- (fma k t_4 (* x t_1)) (* t t_2)))
             (* b (* t (fma -1.0 (* a z) (* j y4)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (c * y0) - (a * y1);
	double t_2 = (c * y4) - (a * y5);
	double t_3 = (a * b) - (c * i);
	double t_4 = (y1 * y4) - (y0 * y5);
	double tmp;
	if (t <= -4.5e+154) {
		tmp = -1.0 * (z * (t * t_3));
	} else if (t <= -2.4e+112) {
		tmp = -1.0 * (y3 * (fma(j, t_4, (z * t_1)) - (y * t_2)));
	} else if (t <= -6.2e-107) {
		tmp = fma(b, (y4 * ((j * t) - (k * y))), fma(y1, (y4 * ((k * y2) - (j * y3))), fma(t_3, ((x * y) - (t * z)), (t_1 * ((x * y2) - (y3 * z)))))) - (-1.0 * (c * (y * (y3 * y4))));
	} else if (t <= 3.7e-181) {
		tmp = x * (fma(y, t_3, (y2 * t_1)) - (j * ((b * y0) - (i * y1))));
	} else if (t <= 3.5e+116) {
		tmp = y2 * (fma(k, t_4, (x * t_1)) - (t * t_2));
	} else {
		tmp = b * (t * fma(-1.0, (a * z), (j * y4)));
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(Float64(c * y0) - Float64(a * y1))
	t_2 = Float64(Float64(c * y4) - Float64(a * y5))
	t_3 = Float64(Float64(a * b) - Float64(c * i))
	t_4 = Float64(Float64(y1 * y4) - Float64(y0 * y5))
	tmp = 0.0
	if (t <= -4.5e+154)
		tmp = Float64(-1.0 * Float64(z * Float64(t * t_3)));
	elseif (t <= -2.4e+112)
		tmp = Float64(-1.0 * Float64(y3 * Float64(fma(j, t_4, Float64(z * t_1)) - Float64(y * t_2))));
	elseif (t <= -6.2e-107)
		tmp = Float64(fma(b, Float64(y4 * Float64(Float64(j * t) - Float64(k * y))), fma(y1, Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3))), fma(t_3, Float64(Float64(x * y) - Float64(t * z)), Float64(t_1 * Float64(Float64(x * y2) - Float64(y3 * z)))))) - Float64(-1.0 * Float64(c * Float64(y * Float64(y3 * y4)))));
	elseif (t <= 3.7e-181)
		tmp = Float64(x * Float64(fma(y, t_3, Float64(y2 * t_1)) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1)))));
	elseif (t <= 3.5e+116)
		tmp = Float64(y2 * Float64(fma(k, t_4, Float64(x * t_1)) - Float64(t * t_2)));
	else
		tmp = Float64(b * Float64(t * fma(-1.0, Float64(a * z), Float64(j * y4))));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.5e+154], N[(-1.0 * N[(z * N[(t * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.4e+112], N[(-1.0 * N[(y3 * N[(N[(j * t$95$4 + N[(z * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -6.2e-107], N[(N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$3 * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(-1.0 * N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.7e-181], N[(x * N[(N[(y * t$95$3 + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.5e+116], N[(y2 * N[(N[(k * t$95$4 + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(t * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := c \cdot y4 - a \cdot y5\\
t_3 := a \cdot b - c \cdot i\\
t_4 := y1 \cdot y4 - y0 \cdot y5\\
\mathbf{if}\;t \leq -4.5 \cdot 10^{+154}:\\
\;\;\;\;-1 \cdot \left(z \cdot \left(t \cdot t\_3\right)\right)\\

\mathbf{elif}\;t \leq -2.4 \cdot 10^{+112}:\\
\;\;\;\;-1 \cdot \left(y3 \cdot \left(\mathsf{fma}\left(j, t\_4, z \cdot t\_1\right) - y \cdot t\_2\right)\right)\\

\mathbf{elif}\;t \leq -6.2 \cdot 10^{-107}:\\
\;\;\;\;\mathsf{fma}\left(b, y4 \cdot \left(j \cdot t - k \cdot y\right), \mathsf{fma}\left(y1, y4 \cdot \left(k \cdot y2 - j \cdot y3\right), \mathsf{fma}\left(t\_3, x \cdot y - t \cdot z, t\_1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right)\right) - -1 \cdot \left(c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\right)\\

\mathbf{elif}\;t \leq 3.7 \cdot 10^{-181}:\\
\;\;\;\;x \cdot \left(\mathsf{fma}\left(y, t\_3, y2 \cdot t\_1\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\

\mathbf{elif}\;t \leq 3.5 \cdot 10^{+116}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, t\_4, x \cdot t\_1\right) - t \cdot t\_2\right)\\

\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if t < -4.50000000000000009e154

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in z around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \color{blue}{\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)}\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{k \cdot \left(b \cdot y0 - i \cdot y1\right)}\right)\right) \]
    4. Applied rewrites37.8%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in t around inf

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

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

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

        \[\leadsto -1 \cdot \left(z \cdot \left(t \cdot \left(a \cdot b - c \cdot i\right)\right)\right) \]
      4. lower-*.f6426.4

        \[\leadsto -1 \cdot \left(z \cdot \left(t \cdot \left(a \cdot b - c \cdot i\right)\right)\right) \]
    7. Applied rewrites26.4%

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

    if -4.50000000000000009e154 < t < -2.4e112

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y3 around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \color{blue}{\left(\left(j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)}\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{y \cdot \left(c \cdot y4 - a \cdot y5\right)}\right)\right) \]
    4. Applied rewrites37.4%

      \[\leadsto \color{blue}{-1 \cdot \left(y3 \cdot \left(\mathsf{fma}\left(j, y1 \cdot y4 - y0 \cdot y5, z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]

    if -2.4e112 < t < -6.20000000000000043e-107

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y5 around 0

      \[\leadsto \color{blue}{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right)\right) - \left(c \cdot \left(y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Applied rewrites32.0%

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

      \[\leadsto \mathsf{fma}\left(b, y4 \cdot \left(j \cdot t - k \cdot y\right), \mathsf{fma}\left(y1, y4 \cdot \left(k \cdot y2 - j \cdot y3\right), \mathsf{fma}\left(a \cdot b - c \cdot i, x \cdot y - t \cdot z, \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right)\right) - -1 \cdot \color{blue}{\left(c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\right)} \]
    5. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto \mathsf{fma}\left(b, y4 \cdot \left(j \cdot t - k \cdot y\right), \mathsf{fma}\left(y1, y4 \cdot \left(k \cdot y2 - j \cdot y3\right), \mathsf{fma}\left(a \cdot b - c \cdot i, x \cdot y - t \cdot z, \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right)\right) - -1 \cdot \left(c \cdot \color{blue}{\left(y \cdot \left(y3 \cdot y4\right)\right)}\right) \]
      2. lower-*.f64N/A

        \[\leadsto \mathsf{fma}\left(b, y4 \cdot \left(j \cdot t - k \cdot y\right), \mathsf{fma}\left(y1, y4 \cdot \left(k \cdot y2 - j \cdot y3\right), \mathsf{fma}\left(a \cdot b - c \cdot i, x \cdot y - t \cdot z, \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right)\right) - -1 \cdot \left(c \cdot \left(y \cdot \color{blue}{\left(y3 \cdot y4\right)}\right)\right) \]
      3. lower-*.f64N/A

        \[\leadsto \mathsf{fma}\left(b, y4 \cdot \left(j \cdot t - k \cdot y\right), \mathsf{fma}\left(y1, y4 \cdot \left(k \cdot y2 - j \cdot y3\right), \mathsf{fma}\left(a \cdot b - c \cdot i, x \cdot y - t \cdot z, \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right)\right) - -1 \cdot \left(c \cdot \left(y \cdot \left(y3 \cdot \color{blue}{y4}\right)\right)\right) \]
      4. lower-*.f6436.3

        \[\leadsto \mathsf{fma}\left(b, y4 \cdot \left(j \cdot t - k \cdot y\right), \mathsf{fma}\left(y1, y4 \cdot \left(k \cdot y2 - j \cdot y3\right), \mathsf{fma}\left(a \cdot b - c \cdot i, x \cdot y - t \cdot z, \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right)\right) - -1 \cdot \left(c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\right) \]
    6. Applied rewrites36.3%

      \[\leadsto \mathsf{fma}\left(b, y4 \cdot \left(j \cdot t - k \cdot y\right), \mathsf{fma}\left(y1, y4 \cdot \left(k \cdot y2 - j \cdot y3\right), \mathsf{fma}\left(a \cdot b - c \cdot i, x \cdot y - t \cdot z, \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right)\right) - -1 \cdot \color{blue}{\left(c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\right)} \]

    if -6.20000000000000043e-107 < t < 3.69999999999999984e-181

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in x around inf

      \[\leadsto \color{blue}{x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto x \cdot \color{blue}{\left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{j \cdot \left(b \cdot y0 - i \cdot y1\right)}\right) \]
    4. Applied rewrites37.8%

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

    if 3.69999999999999984e-181 < t < 3.49999999999999997e116

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]

    if 3.49999999999999997e116 < t

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

      \[\leadsto b \cdot \left(t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot z\right) + j \cdot y4\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

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

        \[\leadsto b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right) \]
      4. lower-*.f6427.4

        \[\leadsto b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right) \]
    7. Applied rewrites27.4%

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

Alternative 2: 42.4% accurate, 2.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y1 \cdot y4 - y0 \cdot y5\\ t_2 := y2 \cdot \left(\mathsf{fma}\left(k, t\_1, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\ t_3 := i \cdot \left(x \cdot y - t \cdot z\right)\\ t_4 := y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\\ \mathbf{if}\;c \leq -2.2 \cdot 10^{+120}:\\ \;\;\;\;c \cdot \left(\mathsf{fma}\left(-1, t\_3, y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - t\_4\right)\\ \mathbf{elif}\;c \leq -2.7 \cdot 10^{+66}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;c \leq 1.55 \cdot 10^{-170}:\\ \;\;\;\;k \cdot \left(\mathsf{fma}\left(-1, y \cdot \left(b \cdot y4 - i \cdot y5\right), y2 \cdot t\_1\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)\\ \mathbf{elif}\;c \leq 5.1 \cdot 10^{-137}:\\ \;\;\;\;a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)\\ \mathbf{elif}\;c \leq 2.1 \cdot 10^{+109}:\\ \;\;\;\;t\_2\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(-1 \cdot t\_3 - t\_4\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1 (- (* y1 y4) (* y0 y5)))
        (t_2
         (*
          y2
          (-
           (fma k t_1 (* x (- (* c y0) (* a y1))))
           (* t (- (* c y4) (* a y5))))))
        (t_3 (* i (- (* x y) (* t z))))
        (t_4 (* y4 (- (* t y2) (* y y3)))))
   (if (<= c -2.2e+120)
     (* c (- (fma -1.0 t_3 (* y0 (- (* x y2) (* y3 z)))) t_4))
     (if (<= c -2.7e+66)
       t_2
       (if (<= c 1.55e-170)
         (*
          k
          (-
           (fma -1.0 (* y (- (* b y4) (* i y5))) (* y2 t_1))
           (* -1.0 (* z (- (* b y0) (* i y1))))))
         (if (<= c 5.1e-137)
           (* a (* y (- (* b x) (* y3 y5))))
           (if (<= c 2.1e+109) t_2 (* c (- (* -1.0 t_3) t_4)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (y1 * y4) - (y0 * y5);
	double t_2 = y2 * (fma(k, t_1, (x * ((c * y0) - (a * y1)))) - (t * ((c * y4) - (a * y5))));
	double t_3 = i * ((x * y) - (t * z));
	double t_4 = y4 * ((t * y2) - (y * y3));
	double tmp;
	if (c <= -2.2e+120) {
		tmp = c * (fma(-1.0, t_3, (y0 * ((x * y2) - (y3 * z)))) - t_4);
	} else if (c <= -2.7e+66) {
		tmp = t_2;
	} else if (c <= 1.55e-170) {
		tmp = k * (fma(-1.0, (y * ((b * y4) - (i * y5))), (y2 * t_1)) - (-1.0 * (z * ((b * y0) - (i * y1)))));
	} else if (c <= 5.1e-137) {
		tmp = a * (y * ((b * x) - (y3 * y5)));
	} else if (c <= 2.1e+109) {
		tmp = t_2;
	} else {
		tmp = c * ((-1.0 * t_3) - t_4);
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(Float64(y1 * y4) - Float64(y0 * y5))
	t_2 = Float64(y2 * Float64(fma(k, t_1, Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5)))))
	t_3 = Float64(i * Float64(Float64(x * y) - Float64(t * z)))
	t_4 = Float64(y4 * Float64(Float64(t * y2) - Float64(y * y3)))
	tmp = 0.0
	if (c <= -2.2e+120)
		tmp = Float64(c * Float64(fma(-1.0, t_3, Float64(y0 * Float64(Float64(x * y2) - Float64(y3 * z)))) - t_4));
	elseif (c <= -2.7e+66)
		tmp = t_2;
	elseif (c <= 1.55e-170)
		tmp = Float64(k * Float64(fma(-1.0, Float64(y * Float64(Float64(b * y4) - Float64(i * y5))), Float64(y2 * t_1)) - Float64(-1.0 * Float64(z * Float64(Float64(b * y0) - Float64(i * y1))))));
	elseif (c <= 5.1e-137)
		tmp = Float64(a * Float64(y * Float64(Float64(b * x) - Float64(y3 * y5))));
	elseif (c <= 2.1e+109)
		tmp = t_2;
	else
		tmp = Float64(c * Float64(Float64(-1.0 * t_3) - t_4));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y2 * N[(N[(k * t$95$1 + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y4 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.2e+120], N[(c * N[(N[(-1.0 * t$95$3 + N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$4), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.7e+66], t$95$2, If[LessEqual[c, 1.55e-170], N[(k * N[(N[(-1.0 * N[(y * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(-1.0 * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.1e-137], N[(a * N[(y * N[(N[(b * x), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.1e+109], t$95$2, N[(c * N[(N[(-1.0 * t$95$3), $MachinePrecision] - t$95$4), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := y1 \cdot y4 - y0 \cdot y5\\
t_2 := y2 \cdot \left(\mathsf{fma}\left(k, t\_1, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
t_3 := i \cdot \left(x \cdot y - t \cdot z\right)\\
t_4 := y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\\
\mathbf{if}\;c \leq -2.2 \cdot 10^{+120}:\\
\;\;\;\;c \cdot \left(\mathsf{fma}\left(-1, t\_3, y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - t\_4\right)\\

\mathbf{elif}\;c \leq -2.7 \cdot 10^{+66}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;c \leq 1.55 \cdot 10^{-170}:\\
\;\;\;\;k \cdot \left(\mathsf{fma}\left(-1, y \cdot \left(b \cdot y4 - i \cdot y5\right), y2 \cdot t\_1\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)\\

\mathbf{elif}\;c \leq 5.1 \cdot 10^{-137}:\\
\;\;\;\;a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)\\

\mathbf{elif}\;c \leq 2.1 \cdot 10^{+109}:\\
\;\;\;\;t\_2\\

\mathbf{else}:\\
\;\;\;\;c \cdot \left(-1 \cdot t\_3 - t\_4\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if c < -2.2000000000000001e120

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in c around inf

      \[\leadsto \color{blue}{c \cdot \left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto c \cdot \color{blue}{\left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto c \cdot \left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - \color{blue}{y4 \cdot \left(t \cdot y2 - y \cdot y3\right)}\right) \]
    4. Applied rewrites36.3%

      \[\leadsto \color{blue}{c \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(x \cdot y - t \cdot z\right), y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]

    if -2.2000000000000001e120 < c < -2.7e66 or 5.1000000000000004e-137 < c < 2.1000000000000001e109

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]

    if -2.7e66 < c < 1.54999999999999993e-170

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in k around inf

      \[\leadsto \color{blue}{k \cdot \left(\left(-1 \cdot \left(y \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto k \cdot \color{blue}{\left(\left(-1 \cdot \left(y \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto k \cdot \left(\left(-1 \cdot \left(y \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - \color{blue}{-1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)}\right) \]
    4. Applied rewrites37.1%

      \[\leadsto \color{blue}{k \cdot \left(\mathsf{fma}\left(-1, y \cdot \left(b \cdot y4 - i \cdot y5\right), y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]

    if 1.54999999999999993e-170 < c < 5.1000000000000004e-137

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in a around inf

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(x \cdot y - t \cdot z\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto a \cdot \color{blue}{\left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(x \cdot y - t \cdot z\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(x \cdot y - t \cdot z\right)\right) - \color{blue}{-1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)}\right) \]
    4. Applied rewrites35.6%

      \[\leadsto \color{blue}{a \cdot \left(\mathsf{fma}\left(-1, y1 \cdot \left(x \cdot y2 - y3 \cdot z\right), b \cdot \left(x \cdot y - t \cdot z\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in y around inf

      \[\leadsto a \cdot \left(y \cdot \color{blue}{\left(b \cdot x - y3 \cdot y5\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto a \cdot \left(y \cdot \left(b \cdot x - \color{blue}{y3 \cdot y5}\right)\right) \]
      2. lower--.f64N/A

        \[\leadsto a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot \color{blue}{y5}\right)\right) \]
      3. lower-*.f64N/A

        \[\leadsto a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right) \]
      4. lower-*.f6426.5

        \[\leadsto a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right) \]
    7. Applied rewrites26.5%

      \[\leadsto a \cdot \left(y \cdot \color{blue}{\left(b \cdot x - y3 \cdot y5\right)}\right) \]

    if 2.1000000000000001e109 < c

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in c around inf

      \[\leadsto \color{blue}{c \cdot \left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto c \cdot \color{blue}{\left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto c \cdot \left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - \color{blue}{y4 \cdot \left(t \cdot y2 - y \cdot y3\right)}\right) \]
    4. Applied rewrites36.3%

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

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

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \color{blue}{\left(t \cdot y2 - y \cdot y3\right)}\right) \]
      2. lower-*.f64N/A

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

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot \color{blue}{y2} - y \cdot y3\right)\right) \]
      4. lower--.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
      5. lower-*.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
      6. lower-*.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
      7. lower-*.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - \color{blue}{y \cdot y3}\right)\right) \]
      8. lower--.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot \color{blue}{y3}\right)\right) \]
      9. lower-*.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
      10. lower-*.f6433.6

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
    7. Applied rewrites33.6%

      \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - \color{blue}{y4 \cdot \left(t \cdot y2 - y \cdot y3\right)}\right) \]
  3. Recombined 5 regimes into one program.
  4. Add Preprocessing

Alternative 3: 42.1% accurate, 2.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := c \cdot y0 - a \cdot y1\\ t_2 := c \cdot y4 - a \cdot y5\\ t_3 := a \cdot b - c \cdot i\\ t_4 := y1 \cdot y4 - y0 \cdot y5\\ t_5 := y2 \cdot \left(\mathsf{fma}\left(k, t\_4, x \cdot t\_1\right) - t \cdot t\_2\right)\\ \mathbf{if}\;t \leq -4.5 \cdot 10^{+154}:\\ \;\;\;\;-1 \cdot \left(z \cdot \left(t \cdot t\_3\right)\right)\\ \mathbf{elif}\;t \leq -1.65 \cdot 10^{+110}:\\ \;\;\;\;-1 \cdot \left(y3 \cdot \left(\mathsf{fma}\left(j, t\_4, z \cdot t\_1\right) - y \cdot t\_2\right)\right)\\ \mathbf{elif}\;t \leq -1.1 \cdot 10^{-57}:\\ \;\;\;\;t\_5\\ \mathbf{elif}\;t \leq 3.7 \cdot 10^{-181}:\\ \;\;\;\;x \cdot \left(\mathsf{fma}\left(y, t\_3, y2 \cdot t\_1\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\ \mathbf{elif}\;t \leq 3.5 \cdot 10^{+116}:\\ \;\;\;\;t\_5\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1 (- (* c y0) (* a y1)))
        (t_2 (- (* c y4) (* a y5)))
        (t_3 (- (* a b) (* c i)))
        (t_4 (- (* y1 y4) (* y0 y5)))
        (t_5 (* y2 (- (fma k t_4 (* x t_1)) (* t t_2)))))
   (if (<= t -4.5e+154)
     (* -1.0 (* z (* t t_3)))
     (if (<= t -1.65e+110)
       (* -1.0 (* y3 (- (fma j t_4 (* z t_1)) (* y t_2))))
       (if (<= t -1.1e-57)
         t_5
         (if (<= t 3.7e-181)
           (* x (- (fma y t_3 (* y2 t_1)) (* j (- (* b y0) (* i y1)))))
           (if (<= t 3.5e+116)
             t_5
             (* b (* t (fma -1.0 (* a z) (* j y4)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (c * y0) - (a * y1);
	double t_2 = (c * y4) - (a * y5);
	double t_3 = (a * b) - (c * i);
	double t_4 = (y1 * y4) - (y0 * y5);
	double t_5 = y2 * (fma(k, t_4, (x * t_1)) - (t * t_2));
	double tmp;
	if (t <= -4.5e+154) {
		tmp = -1.0 * (z * (t * t_3));
	} else if (t <= -1.65e+110) {
		tmp = -1.0 * (y3 * (fma(j, t_4, (z * t_1)) - (y * t_2)));
	} else if (t <= -1.1e-57) {
		tmp = t_5;
	} else if (t <= 3.7e-181) {
		tmp = x * (fma(y, t_3, (y2 * t_1)) - (j * ((b * y0) - (i * y1))));
	} else if (t <= 3.5e+116) {
		tmp = t_5;
	} else {
		tmp = b * (t * fma(-1.0, (a * z), (j * y4)));
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(Float64(c * y0) - Float64(a * y1))
	t_2 = Float64(Float64(c * y4) - Float64(a * y5))
	t_3 = Float64(Float64(a * b) - Float64(c * i))
	t_4 = Float64(Float64(y1 * y4) - Float64(y0 * y5))
	t_5 = Float64(y2 * Float64(fma(k, t_4, Float64(x * t_1)) - Float64(t * t_2)))
	tmp = 0.0
	if (t <= -4.5e+154)
		tmp = Float64(-1.0 * Float64(z * Float64(t * t_3)));
	elseif (t <= -1.65e+110)
		tmp = Float64(-1.0 * Float64(y3 * Float64(fma(j, t_4, Float64(z * t_1)) - Float64(y * t_2))));
	elseif (t <= -1.1e-57)
		tmp = t_5;
	elseif (t <= 3.7e-181)
		tmp = Float64(x * Float64(fma(y, t_3, Float64(y2 * t_1)) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1)))));
	elseif (t <= 3.5e+116)
		tmp = t_5;
	else
		tmp = Float64(b * Float64(t * fma(-1.0, Float64(a * z), Float64(j * y4))));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y2 * N[(N[(k * t$95$4 + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(t * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.5e+154], N[(-1.0 * N[(z * N[(t * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.65e+110], N[(-1.0 * N[(y3 * N[(N[(j * t$95$4 + N[(z * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.1e-57], t$95$5, If[LessEqual[t, 3.7e-181], N[(x * N[(N[(y * t$95$3 + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.5e+116], t$95$5, N[(b * N[(t * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := c \cdot y4 - a \cdot y5\\
t_3 := a \cdot b - c \cdot i\\
t_4 := y1 \cdot y4 - y0 \cdot y5\\
t_5 := y2 \cdot \left(\mathsf{fma}\left(k, t\_4, x \cdot t\_1\right) - t \cdot t\_2\right)\\
\mathbf{if}\;t \leq -4.5 \cdot 10^{+154}:\\
\;\;\;\;-1 \cdot \left(z \cdot \left(t \cdot t\_3\right)\right)\\

\mathbf{elif}\;t \leq -1.65 \cdot 10^{+110}:\\
\;\;\;\;-1 \cdot \left(y3 \cdot \left(\mathsf{fma}\left(j, t\_4, z \cdot t\_1\right) - y \cdot t\_2\right)\right)\\

\mathbf{elif}\;t \leq -1.1 \cdot 10^{-57}:\\
\;\;\;\;t\_5\\

\mathbf{elif}\;t \leq 3.7 \cdot 10^{-181}:\\
\;\;\;\;x \cdot \left(\mathsf{fma}\left(y, t\_3, y2 \cdot t\_1\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\

\mathbf{elif}\;t \leq 3.5 \cdot 10^{+116}:\\
\;\;\;\;t\_5\\

\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if t < -4.50000000000000009e154

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in z around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \color{blue}{\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)}\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{k \cdot \left(b \cdot y0 - i \cdot y1\right)}\right)\right) \]
    4. Applied rewrites37.8%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in t around inf

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

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

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

        \[\leadsto -1 \cdot \left(z \cdot \left(t \cdot \left(a \cdot b - c \cdot i\right)\right)\right) \]
      4. lower-*.f6426.4

        \[\leadsto -1 \cdot \left(z \cdot \left(t \cdot \left(a \cdot b - c \cdot i\right)\right)\right) \]
    7. Applied rewrites26.4%

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

    if -4.50000000000000009e154 < t < -1.64999999999999986e110

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y3 around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \color{blue}{\left(\left(j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)}\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{y \cdot \left(c \cdot y4 - a \cdot y5\right)}\right)\right) \]
    4. Applied rewrites37.4%

      \[\leadsto \color{blue}{-1 \cdot \left(y3 \cdot \left(\mathsf{fma}\left(j, y1 \cdot y4 - y0 \cdot y5, z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)} \]

    if -1.64999999999999986e110 < t < -1.09999999999999999e-57 or 3.69999999999999984e-181 < t < 3.49999999999999997e116

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]

    if -1.09999999999999999e-57 < t < 3.69999999999999984e-181

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in x around inf

      \[\leadsto \color{blue}{x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto x \cdot \color{blue}{\left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{j \cdot \left(b \cdot y0 - i \cdot y1\right)}\right) \]
    4. Applied rewrites37.8%

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

    if 3.49999999999999997e116 < t

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

      \[\leadsto b \cdot \left(t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot z\right) + j \cdot y4\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

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

        \[\leadsto b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right) \]
      4. lower-*.f6427.4

        \[\leadsto b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right) \]
    7. Applied rewrites27.4%

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

Alternative 4: 41.7% accurate, 2.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := c \cdot y0 - a \cdot y1\\ t_2 := a \cdot b - c \cdot i\\ \mathbf{if}\;t \leq -1.05 \cdot 10^{+180}:\\ \;\;\;\;-1 \cdot \left(z \cdot \left(t \cdot t\_2\right)\right)\\ \mathbf{elif}\;t \leq -5.6 \cdot 10^{-59}:\\ \;\;\;\;c \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(x \cdot y - t \cdot z\right), y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y2 \cdot \mathsf{fma}\left(-1, \frac{y \cdot \left(y3 \cdot y4\right)}{y2}, t \cdot y4\right)\right)\\ \mathbf{elif}\;t \leq 3.7 \cdot 10^{-181}:\\ \;\;\;\;x \cdot \left(\mathsf{fma}\left(y, t\_2, y2 \cdot t\_1\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\ \mathbf{elif}\;t \leq 3.5 \cdot 10^{+116}:\\ \;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot t\_1\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1 (- (* c y0) (* a y1))) (t_2 (- (* a b) (* c i))))
   (if (<= t -1.05e+180)
     (* -1.0 (* z (* t t_2)))
     (if (<= t -5.6e-59)
       (*
        c
        (-
         (fma -1.0 (* i (- (* x y) (* t z))) (* y0 (- (* x y2) (* y3 z))))
         (* y2 (fma -1.0 (/ (* y (* y3 y4)) y2) (* t y4)))))
       (if (<= t 3.7e-181)
         (* x (- (fma y t_2 (* y2 t_1)) (* j (- (* b y0) (* i y1)))))
         (if (<= t 3.5e+116)
           (*
            y2
            (-
             (fma k (- (* y1 y4) (* y0 y5)) (* x t_1))
             (* t (- (* c y4) (* a y5)))))
           (* b (* t (fma -1.0 (* a z) (* j y4))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (c * y0) - (a * y1);
	double t_2 = (a * b) - (c * i);
	double tmp;
	if (t <= -1.05e+180) {
		tmp = -1.0 * (z * (t * t_2));
	} else if (t <= -5.6e-59) {
		tmp = c * (fma(-1.0, (i * ((x * y) - (t * z))), (y0 * ((x * y2) - (y3 * z)))) - (y2 * fma(-1.0, ((y * (y3 * y4)) / y2), (t * y4))));
	} else if (t <= 3.7e-181) {
		tmp = x * (fma(y, t_2, (y2 * t_1)) - (j * ((b * y0) - (i * y1))));
	} else if (t <= 3.5e+116) {
		tmp = y2 * (fma(k, ((y1 * y4) - (y0 * y5)), (x * t_1)) - (t * ((c * y4) - (a * y5))));
	} else {
		tmp = b * (t * fma(-1.0, (a * z), (j * y4)));
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(Float64(c * y0) - Float64(a * y1))
	t_2 = Float64(Float64(a * b) - Float64(c * i))
	tmp = 0.0
	if (t <= -1.05e+180)
		tmp = Float64(-1.0 * Float64(z * Float64(t * t_2)));
	elseif (t <= -5.6e-59)
		tmp = Float64(c * Float64(fma(-1.0, Float64(i * Float64(Float64(x * y) - Float64(t * z))), Float64(y0 * Float64(Float64(x * y2) - Float64(y3 * z)))) - Float64(y2 * fma(-1.0, Float64(Float64(y * Float64(y3 * y4)) / y2), Float64(t * y4)))));
	elseif (t <= 3.7e-181)
		tmp = Float64(x * Float64(fma(y, t_2, Float64(y2 * t_1)) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1)))));
	elseif (t <= 3.5e+116)
		tmp = Float64(y2 * Float64(fma(k, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(x * t_1)) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5)))));
	else
		tmp = Float64(b * Float64(t * fma(-1.0, Float64(a * z), Float64(j * y4))));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.05e+180], N[(-1.0 * N[(z * N[(t * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5.6e-59], N[(c * N[(N[(-1.0 * N[(i * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y2 * N[(-1.0 * N[(N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision] / y2), $MachinePrecision] + N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.7e-181], N[(x * N[(N[(y * t$95$2 + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.5e+116], N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := a \cdot b - c \cdot i\\
\mathbf{if}\;t \leq -1.05 \cdot 10^{+180}:\\
\;\;\;\;-1 \cdot \left(z \cdot \left(t \cdot t\_2\right)\right)\\

\mathbf{elif}\;t \leq -5.6 \cdot 10^{-59}:\\
\;\;\;\;c \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(x \cdot y - t \cdot z\right), y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y2 \cdot \mathsf{fma}\left(-1, \frac{y \cdot \left(y3 \cdot y4\right)}{y2}, t \cdot y4\right)\right)\\

\mathbf{elif}\;t \leq 3.7 \cdot 10^{-181}:\\
\;\;\;\;x \cdot \left(\mathsf{fma}\left(y, t\_2, y2 \cdot t\_1\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\

\mathbf{elif}\;t \leq 3.5 \cdot 10^{+116}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot t\_1\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\

\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if t < -1.05e180

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in z around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \color{blue}{\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)}\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{k \cdot \left(b \cdot y0 - i \cdot y1\right)}\right)\right) \]
    4. Applied rewrites37.8%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in t around inf

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

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

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

        \[\leadsto -1 \cdot \left(z \cdot \left(t \cdot \left(a \cdot b - c \cdot i\right)\right)\right) \]
      4. lower-*.f6426.4

        \[\leadsto -1 \cdot \left(z \cdot \left(t \cdot \left(a \cdot b - c \cdot i\right)\right)\right) \]
    7. Applied rewrites26.4%

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

    if -1.05e180 < t < -5.59999999999999961e-59

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in c around inf

      \[\leadsto \color{blue}{c \cdot \left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto c \cdot \color{blue}{\left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto c \cdot \left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - \color{blue}{y4 \cdot \left(t \cdot y2 - y \cdot y3\right)}\right) \]
    4. Applied rewrites36.3%

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

      \[\leadsto c \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(x \cdot y - t \cdot z\right), y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y2 \cdot \color{blue}{\left(-1 \cdot \frac{y \cdot \left(y3 \cdot y4\right)}{y2} + t \cdot y4\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto c \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(x \cdot y - t \cdot z\right), y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y2 \cdot \left(-1 \cdot \frac{y \cdot \left(y3 \cdot y4\right)}{y2} + \color{blue}{t \cdot y4}\right)\right) \]
      2. lower-fma.f64N/A

        \[\leadsto c \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(x \cdot y - t \cdot z\right), y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y2 \cdot \mathsf{fma}\left(-1, \frac{y \cdot \left(y3 \cdot y4\right)}{\color{blue}{y2}}, t \cdot y4\right)\right) \]
      3. lower-/.f64N/A

        \[\leadsto c \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(x \cdot y - t \cdot z\right), y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y2 \cdot \mathsf{fma}\left(-1, \frac{y \cdot \left(y3 \cdot y4\right)}{y2}, t \cdot y4\right)\right) \]
      4. lower-*.f64N/A

        \[\leadsto c \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(x \cdot y - t \cdot z\right), y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y2 \cdot \mathsf{fma}\left(-1, \frac{y \cdot \left(y3 \cdot y4\right)}{y2}, t \cdot y4\right)\right) \]
      5. lower-*.f64N/A

        \[\leadsto c \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(x \cdot y - t \cdot z\right), y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y2 \cdot \mathsf{fma}\left(-1, \frac{y \cdot \left(y3 \cdot y4\right)}{y2}, t \cdot y4\right)\right) \]
      6. lower-*.f6435.8

        \[\leadsto c \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(x \cdot y - t \cdot z\right), y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y2 \cdot \mathsf{fma}\left(-1, \frac{y \cdot \left(y3 \cdot y4\right)}{y2}, t \cdot y4\right)\right) \]
    7. Applied rewrites35.8%

      \[\leadsto c \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(x \cdot y - t \cdot z\right), y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y2 \cdot \color{blue}{\mathsf{fma}\left(-1, \frac{y \cdot \left(y3 \cdot y4\right)}{y2}, t \cdot y4\right)}\right) \]

    if -5.59999999999999961e-59 < t < 3.69999999999999984e-181

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in x around inf

      \[\leadsto \color{blue}{x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto x \cdot \color{blue}{\left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{j \cdot \left(b \cdot y0 - i \cdot y1\right)}\right) \]
    4. Applied rewrites37.8%

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

    if 3.69999999999999984e-181 < t < 3.49999999999999997e116

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]

    if 3.49999999999999997e116 < t

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

      \[\leadsto b \cdot \left(t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot z\right) + j \cdot y4\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

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

        \[\leadsto b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right) \]
      4. lower-*.f6427.4

        \[\leadsto b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right) \]
    7. Applied rewrites27.4%

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

Alternative 5: 41.5% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\ \mathbf{if}\;t\_1 \leq \infty:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(x \cdot y - t \cdot z\right), -1 \cdot \left(y0 \cdot \left(y3 \cdot z\right)\right)\right) - -1 \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1
         (+
          (-
           (+
            (+
             (-
              (* (- (* x y) (* z t)) (- (* a b) (* c i)))
              (* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
             (* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
            (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
           (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
          (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))))
   (if (<= t_1 INFINITY)
     t_1
     (*
      c
      (-
       (fma -1.0 (* i (- (* x y) (* t z))) (* -1.0 (* y0 (* y3 z))))
       (* -1.0 (* y (* y3 y4))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
	double tmp;
	if (t_1 <= ((double) INFINITY)) {
		tmp = t_1;
	} else {
		tmp = c * (fma(-1.0, (i * ((x * y) - (t * z))), (-1.0 * (y0 * (y3 * z)))) - (-1.0 * (y * (y3 * y4))));
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0))))
	tmp = 0.0
	if (t_1 <= Inf)
		tmp = t_1;
	else
		tmp = Float64(c * Float64(fma(-1.0, Float64(i * Float64(Float64(x * y) - Float64(t * z))), Float64(-1.0 * Float64(y0 * Float64(y3 * z)))) - Float64(-1.0 * Float64(y * Float64(y3 * y4)))));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(c * N[(N[(-1.0 * N[(i * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-1.0 * N[(y0 * N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(-1.0 * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

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

\mathbf{else}:\\
\;\;\;\;c \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(x \cdot y - t \cdot z\right), -1 \cdot \left(y0 \cdot \left(y3 \cdot z\right)\right)\right) - -1 \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]

    if +inf.0 < (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0))))

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in c around inf

      \[\leadsto \color{blue}{c \cdot \left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto c \cdot \color{blue}{\left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto c \cdot \left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - \color{blue}{y4 \cdot \left(t \cdot y2 - y \cdot y3\right)}\right) \]
    4. Applied rewrites36.3%

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

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

        \[\leadsto c \cdot \left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + -1 \cdot \left(y0 \cdot \left(y3 \cdot z\right)\right)\right) - -1 \cdot \color{blue}{\left(y \cdot \left(y3 \cdot y4\right)\right)}\right) \]
      2. lower-fma.f64N/A

        \[\leadsto c \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(x \cdot y - t \cdot z\right), -1 \cdot \left(y0 \cdot \left(y3 \cdot z\right)\right)\right) - -1 \cdot \left(\color{blue}{y} \cdot \left(y3 \cdot y4\right)\right)\right) \]
      3. lower-*.f64N/A

        \[\leadsto c \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(x \cdot y - t \cdot z\right), -1 \cdot \left(y0 \cdot \left(y3 \cdot z\right)\right)\right) - -1 \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\right) \]
      4. lower--.f64N/A

        \[\leadsto c \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(x \cdot y - t \cdot z\right), -1 \cdot \left(y0 \cdot \left(y3 \cdot z\right)\right)\right) - -1 \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\right) \]
      5. lower-*.f64N/A

        \[\leadsto c \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(x \cdot y - t \cdot z\right), -1 \cdot \left(y0 \cdot \left(y3 \cdot z\right)\right)\right) - -1 \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\right) \]
      6. lower-*.f64N/A

        \[\leadsto c \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(x \cdot y - t \cdot z\right), -1 \cdot \left(y0 \cdot \left(y3 \cdot z\right)\right)\right) - -1 \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\right) \]
      7. lower-*.f64N/A

        \[\leadsto c \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(x \cdot y - t \cdot z\right), -1 \cdot \left(y0 \cdot \left(y3 \cdot z\right)\right)\right) - -1 \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\right) \]
      8. lower-*.f64N/A

        \[\leadsto c \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(x \cdot y - t \cdot z\right), -1 \cdot \left(y0 \cdot \left(y3 \cdot z\right)\right)\right) - -1 \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\right) \]
      9. lower-*.f64N/A

        \[\leadsto c \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(x \cdot y - t \cdot z\right), -1 \cdot \left(y0 \cdot \left(y3 \cdot z\right)\right)\right) - -1 \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\right) \]
      10. lower-*.f64N/A

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

        \[\leadsto c \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(x \cdot y - t \cdot z\right), -1 \cdot \left(y0 \cdot \left(y3 \cdot z\right)\right)\right) - -1 \cdot \left(y \cdot \left(y3 \cdot \color{blue}{y4}\right)\right)\right) \]
      12. lower-*.f6433.2

        \[\leadsto c \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(x \cdot y - t \cdot z\right), -1 \cdot \left(y0 \cdot \left(y3 \cdot z\right)\right)\right) - -1 \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\right) \]
    7. Applied rewrites33.2%

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

Alternative 6: 39.3% accurate, 2.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(c \cdot y4 - a \cdot y5\right)\\ t_2 := x \cdot y - t \cdot z\\ t_3 := i \cdot t\_2\\ t_4 := y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\\ \mathbf{if}\;c \leq -2.3 \cdot 10^{+109}:\\ \;\;\;\;c \cdot \left(\mathsf{fma}\left(-1, t\_3, y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - t\_4\right)\\ \mathbf{elif}\;c \leq -1.45 \cdot 10^{-24}:\\ \;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t\_1\right)\\ \mathbf{elif}\;c \leq 5 \cdot 10^{-137}:\\ \;\;\;\;b \cdot \left(\mathsf{fma}\left(a, t\_2, y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\ \mathbf{elif}\;c \leq 2.1 \cdot 10^{+109}:\\ \;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t\_1\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(-1 \cdot t\_3 - t\_4\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1 (* t (- (* c y4) (* a y5))))
        (t_2 (- (* x y) (* t z)))
        (t_3 (* i t_2))
        (t_4 (* y4 (- (* t y2) (* y y3)))))
   (if (<= c -2.3e+109)
     (* c (- (fma -1.0 t_3 (* y0 (- (* x y2) (* y3 z)))) t_4))
     (if (<= c -1.45e-24)
       (* y2 (- (* k (* y1 y4)) t_1))
       (if (<= c 5e-137)
         (*
          b
          (-
           (fma a t_2 (* y4 (- (* j t) (* k y))))
           (* y0 (- (* j x) (* k z)))))
         (if (<= c 2.1e+109)
           (*
            y2
            (-
             (fma k (- (* y1 y4) (* y0 y5)) (* x (- (* c y0) (* a y1))))
             t_1))
           (* c (- (* -1.0 t_3) t_4))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = t * ((c * y4) - (a * y5));
	double t_2 = (x * y) - (t * z);
	double t_3 = i * t_2;
	double t_4 = y4 * ((t * y2) - (y * y3));
	double tmp;
	if (c <= -2.3e+109) {
		tmp = c * (fma(-1.0, t_3, (y0 * ((x * y2) - (y3 * z)))) - t_4);
	} else if (c <= -1.45e-24) {
		tmp = y2 * ((k * (y1 * y4)) - t_1);
	} else if (c <= 5e-137) {
		tmp = b * (fma(a, t_2, (y4 * ((j * t) - (k * y)))) - (y0 * ((j * x) - (k * z))));
	} else if (c <= 2.1e+109) {
		tmp = y2 * (fma(k, ((y1 * y4) - (y0 * y5)), (x * ((c * y0) - (a * y1)))) - t_1);
	} else {
		tmp = c * ((-1.0 * t_3) - t_4);
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(t * Float64(Float64(c * y4) - Float64(a * y5)))
	t_2 = Float64(Float64(x * y) - Float64(t * z))
	t_3 = Float64(i * t_2)
	t_4 = Float64(y4 * Float64(Float64(t * y2) - Float64(y * y3)))
	tmp = 0.0
	if (c <= -2.3e+109)
		tmp = Float64(c * Float64(fma(-1.0, t_3, Float64(y0 * Float64(Float64(x * y2) - Float64(y3 * z)))) - t_4));
	elseif (c <= -1.45e-24)
		tmp = Float64(y2 * Float64(Float64(k * Float64(y1 * y4)) - t_1));
	elseif (c <= 5e-137)
		tmp = Float64(b * Float64(fma(a, t_2, Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))) - Float64(y0 * Float64(Float64(j * x) - Float64(k * z)))));
	elseif (c <= 2.1e+109)
		tmp = Float64(y2 * Float64(fma(k, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) - t_1));
	else
		tmp = Float64(c * Float64(Float64(-1.0 * t_3) - t_4));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * t$95$2), $MachinePrecision]}, Block[{t$95$4 = N[(y4 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.3e+109], N[(c * N[(N[(-1.0 * t$95$3 + N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$4), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.45e-24], N[(y2 * N[(N[(k * N[(y1 * y4), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5e-137], N[(b * N[(N[(a * t$95$2 + N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.1e+109], N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(-1.0 * t$95$3), $MachinePrecision] - t$95$4), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot y4 - a \cdot y5\right)\\
t_2 := x \cdot y - t \cdot z\\
t_3 := i \cdot t\_2\\
t_4 := y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\\
\mathbf{if}\;c \leq -2.3 \cdot 10^{+109}:\\
\;\;\;\;c \cdot \left(\mathsf{fma}\left(-1, t\_3, y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - t\_4\right)\\

\mathbf{elif}\;c \leq -1.45 \cdot 10^{-24}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t\_1\right)\\

\mathbf{elif}\;c \leq 5 \cdot 10^{-137}:\\
\;\;\;\;b \cdot \left(\mathsf{fma}\left(a, t\_2, y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\

\mathbf{elif}\;c \leq 2.1 \cdot 10^{+109}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t\_1\right)\\

\mathbf{else}:\\
\;\;\;\;c \cdot \left(-1 \cdot t\_3 - t\_4\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if c < -2.3000000000000001e109

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in c around inf

      \[\leadsto \color{blue}{c \cdot \left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto c \cdot \color{blue}{\left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto c \cdot \left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - \color{blue}{y4 \cdot \left(t \cdot y2 - y \cdot y3\right)}\right) \]
    4. Applied rewrites36.3%

      \[\leadsto \color{blue}{c \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(x \cdot y - t \cdot z\right), y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]

    if -2.3000000000000001e109 < c < -1.4499999999999999e-24

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in y4 around inf

      \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - \color{blue}{t} \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]
      2. lower-*.f6430.4

        \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]
    7. Applied rewrites30.4%

      \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - \color{blue}{t} \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]

    if -1.4499999999999999e-24 < c < 5.00000000000000001e-137

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

    if 5.00000000000000001e-137 < c < 2.1000000000000001e109

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]

    if 2.1000000000000001e109 < c

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in c around inf

      \[\leadsto \color{blue}{c \cdot \left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto c \cdot \color{blue}{\left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto c \cdot \left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - \color{blue}{y4 \cdot \left(t \cdot y2 - y \cdot y3\right)}\right) \]
    4. Applied rewrites36.3%

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

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

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \color{blue}{\left(t \cdot y2 - y \cdot y3\right)}\right) \]
      2. lower-*.f64N/A

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

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot \color{blue}{y2} - y \cdot y3\right)\right) \]
      4. lower--.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
      5. lower-*.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
      6. lower-*.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
      7. lower-*.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - \color{blue}{y \cdot y3}\right)\right) \]
      8. lower--.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot \color{blue}{y3}\right)\right) \]
      9. lower-*.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
      10. lower-*.f6433.6

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
    7. Applied rewrites33.6%

      \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - \color{blue}{y4 \cdot \left(t \cdot y2 - y \cdot y3\right)}\right) \]
  3. Recombined 5 regimes into one program.
  4. Add Preprocessing

Alternative 7: 39.3% accurate, 2.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\ \mathbf{if}\;c \leq -4.7 \cdot 10^{+176}:\\ \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)\\ \mathbf{elif}\;c \leq -2.8 \cdot 10^{+109}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq -4.4 \cdot 10^{-159}:\\ \;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\ \mathbf{elif}\;c \leq 5.6 \cdot 10^{-240}:\\ \;\;\;\;b \cdot \left(-1 \cdot \left(k \cdot \left(y \cdot y4 - y0 \cdot z\right)\right)\right)\\ \mathbf{elif}\;c \leq 4.2 \cdot 10^{-108}:\\ \;\;\;\;y2 \cdot \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\right)\\ \mathbf{elif}\;c \leq 2150000000000:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\ \mathbf{elif}\;c \leq 2.3 \cdot 10^{+89}:\\ \;\;\;\;-1 \cdot \left(z \cdot \left(-1 \cdot \left(y1 \cdot \left(a \cdot y3 - i \cdot k\right)\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1
         (*
          c
          (-
           (* -1.0 (* i (- (* x y) (* t z))))
           (* y4 (- (* t y2) (* y y3)))))))
   (if (<= c -4.7e+176)
     (* y0 (- (* c (- (* x y2) (* y3 z))) (* b (- (* j x) (* k z)))))
     (if (<= c -2.8e+109)
       t_1
       (if (<= c -4.4e-159)
         (* y2 (- (* k (* y1 y4)) (* t (- (* c y4) (* a y5)))))
         (if (<= c 5.6e-240)
           (* b (* -1.0 (* k (- (* y y4) (* y0 z)))))
           (if (<= c 4.2e-108)
             (* y2 (* -1.0 (* a (- (* x y1) (* t y5)))))
             (if (<= c 2150000000000.0)
               (* b (* y4 (- (* j t) (* k y))))
               (if (<= c 2.3e+89)
                 (* -1.0 (* z (* -1.0 (* y1 (- (* a y3) (* i k))))))
                 t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = c * ((-1.0 * (i * ((x * y) - (t * z)))) - (y4 * ((t * y2) - (y * y3))));
	double tmp;
	if (c <= -4.7e+176) {
		tmp = y0 * ((c * ((x * y2) - (y3 * z))) - (b * ((j * x) - (k * z))));
	} else if (c <= -2.8e+109) {
		tmp = t_1;
	} else if (c <= -4.4e-159) {
		tmp = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5))));
	} else if (c <= 5.6e-240) {
		tmp = b * (-1.0 * (k * ((y * y4) - (y0 * z))));
	} else if (c <= 4.2e-108) {
		tmp = y2 * (-1.0 * (a * ((x * y1) - (t * y5))));
	} else if (c <= 2150000000000.0) {
		tmp = b * (y4 * ((j * t) - (k * y)));
	} else if (c <= 2.3e+89) {
		tmp = -1.0 * (z * (-1.0 * (y1 * ((a * y3) - (i * k)))));
	} else {
		tmp = t_1;
	}
	return tmp;
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: t_1
    real(8) :: tmp
    t_1 = c * (((-1.0d0) * (i * ((x * y) - (t * z)))) - (y4 * ((t * y2) - (y * y3))))
    if (c <= (-4.7d+176)) then
        tmp = y0 * ((c * ((x * y2) - (y3 * z))) - (b * ((j * x) - (k * z))))
    else if (c <= (-2.8d+109)) then
        tmp = t_1
    else if (c <= (-4.4d-159)) then
        tmp = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5))))
    else if (c <= 5.6d-240) then
        tmp = b * ((-1.0d0) * (k * ((y * y4) - (y0 * z))))
    else if (c <= 4.2d-108) then
        tmp = y2 * ((-1.0d0) * (a * ((x * y1) - (t * y5))))
    else if (c <= 2150000000000.0d0) then
        tmp = b * (y4 * ((j * t) - (k * y)))
    else if (c <= 2.3d+89) then
        tmp = (-1.0d0) * (z * ((-1.0d0) * (y1 * ((a * y3) - (i * k)))))
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = c * ((-1.0 * (i * ((x * y) - (t * z)))) - (y4 * ((t * y2) - (y * y3))));
	double tmp;
	if (c <= -4.7e+176) {
		tmp = y0 * ((c * ((x * y2) - (y3 * z))) - (b * ((j * x) - (k * z))));
	} else if (c <= -2.8e+109) {
		tmp = t_1;
	} else if (c <= -4.4e-159) {
		tmp = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5))));
	} else if (c <= 5.6e-240) {
		tmp = b * (-1.0 * (k * ((y * y4) - (y0 * z))));
	} else if (c <= 4.2e-108) {
		tmp = y2 * (-1.0 * (a * ((x * y1) - (t * y5))));
	} else if (c <= 2150000000000.0) {
		tmp = b * (y4 * ((j * t) - (k * y)));
	} else if (c <= 2.3e+89) {
		tmp = -1.0 * (z * (-1.0 * (y1 * ((a * y3) - (i * k)))));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = c * ((-1.0 * (i * ((x * y) - (t * z)))) - (y4 * ((t * y2) - (y * y3))))
	tmp = 0
	if c <= -4.7e+176:
		tmp = y0 * ((c * ((x * y2) - (y3 * z))) - (b * ((j * x) - (k * z))))
	elif c <= -2.8e+109:
		tmp = t_1
	elif c <= -4.4e-159:
		tmp = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5))))
	elif c <= 5.6e-240:
		tmp = b * (-1.0 * (k * ((y * y4) - (y0 * z))))
	elif c <= 4.2e-108:
		tmp = y2 * (-1.0 * (a * ((x * y1) - (t * y5))))
	elif c <= 2150000000000.0:
		tmp = b * (y4 * ((j * t) - (k * y)))
	elif c <= 2.3e+89:
		tmp = -1.0 * (z * (-1.0 * (y1 * ((a * y3) - (i * k)))))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(c * Float64(Float64(-1.0 * Float64(i * Float64(Float64(x * y) - Float64(t * z)))) - Float64(y4 * Float64(Float64(t * y2) - Float64(y * y3)))))
	tmp = 0.0
	if (c <= -4.7e+176)
		tmp = Float64(y0 * Float64(Float64(c * Float64(Float64(x * y2) - Float64(y3 * z))) - Float64(b * Float64(Float64(j * x) - Float64(k * z)))));
	elseif (c <= -2.8e+109)
		tmp = t_1;
	elseif (c <= -4.4e-159)
		tmp = Float64(y2 * Float64(Float64(k * Float64(y1 * y4)) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5)))));
	elseif (c <= 5.6e-240)
		tmp = Float64(b * Float64(-1.0 * Float64(k * Float64(Float64(y * y4) - Float64(y0 * z)))));
	elseif (c <= 4.2e-108)
		tmp = Float64(y2 * Float64(-1.0 * Float64(a * Float64(Float64(x * y1) - Float64(t * y5)))));
	elseif (c <= 2150000000000.0)
		tmp = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y))));
	elseif (c <= 2.3e+89)
		tmp = Float64(-1.0 * Float64(z * Float64(-1.0 * Float64(y1 * Float64(Float64(a * y3) - Float64(i * k))))));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = c * ((-1.0 * (i * ((x * y) - (t * z)))) - (y4 * ((t * y2) - (y * y3))));
	tmp = 0.0;
	if (c <= -4.7e+176)
		tmp = y0 * ((c * ((x * y2) - (y3 * z))) - (b * ((j * x) - (k * z))));
	elseif (c <= -2.8e+109)
		tmp = t_1;
	elseif (c <= -4.4e-159)
		tmp = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5))));
	elseif (c <= 5.6e-240)
		tmp = b * (-1.0 * (k * ((y * y4) - (y0 * z))));
	elseif (c <= 4.2e-108)
		tmp = y2 * (-1.0 * (a * ((x * y1) - (t * y5))));
	elseif (c <= 2150000000000.0)
		tmp = b * (y4 * ((j * t) - (k * y)));
	elseif (c <= 2.3e+89)
		tmp = -1.0 * (z * (-1.0 * (y1 * ((a * y3) - (i * k)))));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(N[(-1.0 * N[(i * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y4 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.7e+176], N[(y0 * N[(N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.8e+109], t$95$1, If[LessEqual[c, -4.4e-159], N[(y2 * N[(N[(k * N[(y1 * y4), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.6e-240], N[(b * N[(-1.0 * N[(k * N[(N[(y * y4), $MachinePrecision] - N[(y0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.2e-108], N[(y2 * N[(-1.0 * N[(a * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2150000000000.0], N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.3e+89], N[(-1.0 * N[(z * N[(-1.0 * N[(y1 * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{if}\;c \leq -4.7 \cdot 10^{+176}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)\\

\mathbf{elif}\;c \leq -2.8 \cdot 10^{+109}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;c \leq -4.4 \cdot 10^{-159}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\

\mathbf{elif}\;c \leq 5.6 \cdot 10^{-240}:\\
\;\;\;\;b \cdot \left(-1 \cdot \left(k \cdot \left(y \cdot y4 - y0 \cdot z\right)\right)\right)\\

\mathbf{elif}\;c \leq 4.2 \cdot 10^{-108}:\\
\;\;\;\;y2 \cdot \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\right)\\

\mathbf{elif}\;c \leq 2150000000000:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\

\mathbf{elif}\;c \leq 2.3 \cdot 10^{+89}:\\
\;\;\;\;-1 \cdot \left(z \cdot \left(-1 \cdot \left(y1 \cdot \left(a \cdot y3 - i \cdot k\right)\right)\right)\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 7 regimes
  2. if c < -4.69999999999999981e176

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y5 around 0

      \[\leadsto \color{blue}{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right)\right) - \left(c \cdot \left(y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Applied rewrites32.0%

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

      \[\leadsto y0 \cdot \color{blue}{\left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    5. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - \color{blue}{b \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
      2. lower--.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \color{blue}{\left(j \cdot x - k \cdot z\right)}\right) \]
      3. lower-*.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(\color{blue}{j \cdot x} - k \cdot z\right)\right) \]
      4. lower--.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot \color{blue}{x} - k \cdot z\right)\right) \]
      5. lower-*.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right) \]
      6. lower-*.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right) \]
      7. lower-*.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - \color{blue}{k \cdot z}\right)\right) \]
      8. lower--.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot \color{blue}{z}\right)\right) \]
      9. lower-*.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right) \]
      10. lower-*.f6434.8

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right) \]
    6. Applied rewrites34.8%

      \[\leadsto y0 \cdot \color{blue}{\left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]

    if -4.69999999999999981e176 < c < -2.8000000000000002e109 or 2.2999999999999999e89 < c

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in c around inf

      \[\leadsto \color{blue}{c \cdot \left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto c \cdot \color{blue}{\left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto c \cdot \left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - \color{blue}{y4 \cdot \left(t \cdot y2 - y \cdot y3\right)}\right) \]
    4. Applied rewrites36.3%

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

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

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \color{blue}{\left(t \cdot y2 - y \cdot y3\right)}\right) \]
      2. lower-*.f64N/A

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

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot \color{blue}{y2} - y \cdot y3\right)\right) \]
      4. lower--.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
      5. lower-*.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
      6. lower-*.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
      7. lower-*.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - \color{blue}{y \cdot y3}\right)\right) \]
      8. lower--.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot \color{blue}{y3}\right)\right) \]
      9. lower-*.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
      10. lower-*.f6433.6

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
    7. Applied rewrites33.6%

      \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - \color{blue}{y4 \cdot \left(t \cdot y2 - y \cdot y3\right)}\right) \]

    if -2.8000000000000002e109 < c < -4.4e-159

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in y4 around inf

      \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - \color{blue}{t} \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]
      2. lower-*.f6430.4

        \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]
    7. Applied rewrites30.4%

      \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - \color{blue}{t} \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]

    if -4.4e-159 < c < 5.5999999999999998e-240

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

      \[\leadsto b \cdot \left(-1 \cdot \color{blue}{\left(k \cdot \left(y \cdot y4 - y0 \cdot z\right)\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto b \cdot \left(-1 \cdot \left(k \cdot \left(y \cdot y4 - \color{blue}{y0 \cdot z}\right)\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto b \cdot \left(-1 \cdot \left(k \cdot \left(y \cdot y4 - y0 \cdot \color{blue}{z}\right)\right)\right) \]
      4. lower-*.f64N/A

        \[\leadsto b \cdot \left(-1 \cdot \left(k \cdot \left(y \cdot y4 - y0 \cdot z\right)\right)\right) \]
      5. lower-*.f6427.2

        \[\leadsto b \cdot \left(-1 \cdot \left(k \cdot \left(y \cdot y4 - y0 \cdot z\right)\right)\right) \]
    7. Applied rewrites27.2%

      \[\leadsto b \cdot \left(-1 \cdot \color{blue}{\left(k \cdot \left(y \cdot y4 - y0 \cdot z\right)\right)}\right) \]

    if 5.5999999999999998e-240 < c < 4.1999999999999998e-108

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in a around -inf

      \[\leadsto y2 \cdot \left(-1 \cdot \color{blue}{\left(a \cdot \left(x \cdot y1 - t \cdot y5\right)\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto y2 \cdot \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - \color{blue}{t \cdot y5}\right)\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto y2 \cdot \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - t \cdot \color{blue}{y5}\right)\right)\right) \]
      4. lower-*.f64N/A

        \[\leadsto y2 \cdot \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\right) \]
      5. lower-*.f6426.2

        \[\leadsto y2 \cdot \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\right) \]
    7. Applied rewrites26.2%

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

    if 4.1999999999999998e-108 < c < 2.15e12

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

      \[\leadsto b \cdot \color{blue}{\left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto b \cdot \left(y4 \cdot \left(j \cdot t - \color{blue}{k \cdot y}\right)\right) \]
      3. lower--.f64N/A

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

        \[\leadsto b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) \]
      5. lower-*.f6427.0

        \[\leadsto b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) \]
    7. Applied rewrites27.0%

      \[\leadsto b \cdot \color{blue}{\left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]

    if 2.15e12 < c < 2.2999999999999999e89

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in z around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \color{blue}{\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)}\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{k \cdot \left(b \cdot y0 - i \cdot y1\right)}\right)\right) \]
    4. Applied rewrites37.8%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in y1 around -inf

      \[\leadsto -1 \cdot \left(z \cdot \left(-1 \cdot \color{blue}{\left(y1 \cdot \left(a \cdot y3 - i \cdot k\right)\right)}\right)\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(-1 \cdot \left(y1 \cdot \color{blue}{\left(a \cdot y3 - i \cdot k\right)}\right)\right)\right) \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(-1 \cdot \left(y1 \cdot \left(a \cdot y3 - \color{blue}{i \cdot k}\right)\right)\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(-1 \cdot \left(y1 \cdot \left(a \cdot y3 - i \cdot \color{blue}{k}\right)\right)\right)\right) \]
      4. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(-1 \cdot \left(y1 \cdot \left(a \cdot y3 - i \cdot k\right)\right)\right)\right) \]
      5. lower-*.f6426.5

        \[\leadsto -1 \cdot \left(z \cdot \left(-1 \cdot \left(y1 \cdot \left(a \cdot y3 - i \cdot k\right)\right)\right)\right) \]
    7. Applied rewrites26.5%

      \[\leadsto -1 \cdot \left(z \cdot \left(-1 \cdot \color{blue}{\left(y1 \cdot \left(a \cdot y3 - i \cdot k\right)\right)}\right)\right) \]
  3. Recombined 7 regimes into one program.
  4. Add Preprocessing

Alternative 8: 39.2% accurate, 2.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\ t_2 := y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\ \mathbf{if}\;c \leq -4.7 \cdot 10^{+176}:\\ \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)\\ \mathbf{elif}\;c \leq -2.8 \cdot 10^{+109}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq -4.4 \cdot 10^{-159}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;c \leq 6.2 \cdot 10^{-240}:\\ \;\;\;\;b \cdot \left(-1 \cdot \left(k \cdot \left(y \cdot y4 - y0 \cdot z\right)\right)\right)\\ \mathbf{elif}\;c \leq 9.2 \cdot 10^{-96}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;c \leq 3.5 \cdot 10^{+89}:\\ \;\;\;\;j \cdot \left(\mathsf{fma}\left(-1, y1 \cdot \left(y3 \cdot y4\right), b \cdot \left(t \cdot y4\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1
         (*
          c
          (- (* -1.0 (* i (- (* x y) (* t z)))) (* y4 (- (* t y2) (* y y3))))))
        (t_2 (* y2 (- (* k (* y1 y4)) (* t (- (* c y4) (* a y5)))))))
   (if (<= c -4.7e+176)
     (* y0 (- (* c (- (* x y2) (* y3 z))) (* b (- (* j x) (* k z)))))
     (if (<= c -2.8e+109)
       t_1
       (if (<= c -4.4e-159)
         t_2
         (if (<= c 6.2e-240)
           (* b (* -1.0 (* k (- (* y y4) (* y0 z)))))
           (if (<= c 9.2e-96)
             t_2
             (if (<= c 3.5e+89)
               (*
                j
                (-
                 (fma -1.0 (* y1 (* y3 y4)) (* b (* t y4)))
                 (* x (- (* b y0) (* i y1)))))
               t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = c * ((-1.0 * (i * ((x * y) - (t * z)))) - (y4 * ((t * y2) - (y * y3))));
	double t_2 = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5))));
	double tmp;
	if (c <= -4.7e+176) {
		tmp = y0 * ((c * ((x * y2) - (y3 * z))) - (b * ((j * x) - (k * z))));
	} else if (c <= -2.8e+109) {
		tmp = t_1;
	} else if (c <= -4.4e-159) {
		tmp = t_2;
	} else if (c <= 6.2e-240) {
		tmp = b * (-1.0 * (k * ((y * y4) - (y0 * z))));
	} else if (c <= 9.2e-96) {
		tmp = t_2;
	} else if (c <= 3.5e+89) {
		tmp = j * (fma(-1.0, (y1 * (y3 * y4)), (b * (t * y4))) - (x * ((b * y0) - (i * y1))));
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(c * Float64(Float64(-1.0 * Float64(i * Float64(Float64(x * y) - Float64(t * z)))) - Float64(y4 * Float64(Float64(t * y2) - Float64(y * y3)))))
	t_2 = Float64(y2 * Float64(Float64(k * Float64(y1 * y4)) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5)))))
	tmp = 0.0
	if (c <= -4.7e+176)
		tmp = Float64(y0 * Float64(Float64(c * Float64(Float64(x * y2) - Float64(y3 * z))) - Float64(b * Float64(Float64(j * x) - Float64(k * z)))));
	elseif (c <= -2.8e+109)
		tmp = t_1;
	elseif (c <= -4.4e-159)
		tmp = t_2;
	elseif (c <= 6.2e-240)
		tmp = Float64(b * Float64(-1.0 * Float64(k * Float64(Float64(y * y4) - Float64(y0 * z)))));
	elseif (c <= 9.2e-96)
		tmp = t_2;
	elseif (c <= 3.5e+89)
		tmp = Float64(j * Float64(fma(-1.0, Float64(y1 * Float64(y3 * y4)), Float64(b * Float64(t * y4))) - Float64(x * Float64(Float64(b * y0) - Float64(i * y1)))));
	else
		tmp = t_1;
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(N[(-1.0 * N[(i * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y4 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y2 * N[(N[(k * N[(y1 * y4), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.7e+176], N[(y0 * N[(N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.8e+109], t$95$1, If[LessEqual[c, -4.4e-159], t$95$2, If[LessEqual[c, 6.2e-240], N[(b * N[(-1.0 * N[(k * N[(N[(y * y4), $MachinePrecision] - N[(y0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9.2e-96], t$95$2, If[LessEqual[c, 3.5e+89], N[(j * N[(N[(-1.0 * N[(y1 * N[(y3 * y4), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
t_2 := y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{if}\;c \leq -4.7 \cdot 10^{+176}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)\\

\mathbf{elif}\;c \leq -2.8 \cdot 10^{+109}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;c \leq -4.4 \cdot 10^{-159}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;c \leq 6.2 \cdot 10^{-240}:\\
\;\;\;\;b \cdot \left(-1 \cdot \left(k \cdot \left(y \cdot y4 - y0 \cdot z\right)\right)\right)\\

\mathbf{elif}\;c \leq 9.2 \cdot 10^{-96}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;c \leq 3.5 \cdot 10^{+89}:\\
\;\;\;\;j \cdot \left(\mathsf{fma}\left(-1, y1 \cdot \left(y3 \cdot y4\right), b \cdot \left(t \cdot y4\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if c < -4.69999999999999981e176

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y5 around 0

      \[\leadsto \color{blue}{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right)\right) - \left(c \cdot \left(y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Applied rewrites32.0%

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

      \[\leadsto y0 \cdot \color{blue}{\left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    5. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - \color{blue}{b \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
      2. lower--.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \color{blue}{\left(j \cdot x - k \cdot z\right)}\right) \]
      3. lower-*.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(\color{blue}{j \cdot x} - k \cdot z\right)\right) \]
      4. lower--.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot \color{blue}{x} - k \cdot z\right)\right) \]
      5. lower-*.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right) \]
      6. lower-*.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right) \]
      7. lower-*.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - \color{blue}{k \cdot z}\right)\right) \]
      8. lower--.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot \color{blue}{z}\right)\right) \]
      9. lower-*.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right) \]
      10. lower-*.f6434.8

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right) \]
    6. Applied rewrites34.8%

      \[\leadsto y0 \cdot \color{blue}{\left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]

    if -4.69999999999999981e176 < c < -2.8000000000000002e109 or 3.5000000000000001e89 < c

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in c around inf

      \[\leadsto \color{blue}{c \cdot \left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto c \cdot \color{blue}{\left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto c \cdot \left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - \color{blue}{y4 \cdot \left(t \cdot y2 - y \cdot y3\right)}\right) \]
    4. Applied rewrites36.3%

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

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

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \color{blue}{\left(t \cdot y2 - y \cdot y3\right)}\right) \]
      2. lower-*.f64N/A

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

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot \color{blue}{y2} - y \cdot y3\right)\right) \]
      4. lower--.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
      5. lower-*.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
      6. lower-*.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
      7. lower-*.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - \color{blue}{y \cdot y3}\right)\right) \]
      8. lower--.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot \color{blue}{y3}\right)\right) \]
      9. lower-*.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
      10. lower-*.f6433.6

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
    7. Applied rewrites33.6%

      \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - \color{blue}{y4 \cdot \left(t \cdot y2 - y \cdot y3\right)}\right) \]

    if -2.8000000000000002e109 < c < -4.4e-159 or 6.20000000000000034e-240 < c < 9.2e-96

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in y4 around inf

      \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - \color{blue}{t} \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]
      2. lower-*.f6430.4

        \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]
    7. Applied rewrites30.4%

      \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - \color{blue}{t} \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]

    if -4.4e-159 < c < 6.20000000000000034e-240

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

      \[\leadsto b \cdot \left(-1 \cdot \color{blue}{\left(k \cdot \left(y \cdot y4 - y0 \cdot z\right)\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto b \cdot \left(-1 \cdot \left(k \cdot \left(y \cdot y4 - \color{blue}{y0 \cdot z}\right)\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto b \cdot \left(-1 \cdot \left(k \cdot \left(y \cdot y4 - y0 \cdot \color{blue}{z}\right)\right)\right) \]
      4. lower-*.f64N/A

        \[\leadsto b \cdot \left(-1 \cdot \left(k \cdot \left(y \cdot y4 - y0 \cdot z\right)\right)\right) \]
      5. lower-*.f6427.2

        \[\leadsto b \cdot \left(-1 \cdot \left(k \cdot \left(y \cdot y4 - y0 \cdot z\right)\right)\right) \]
    7. Applied rewrites27.2%

      \[\leadsto b \cdot \left(-1 \cdot \color{blue}{\left(k \cdot \left(y \cdot y4 - y0 \cdot z\right)\right)}\right) \]

    if 9.2e-96 < c < 3.5000000000000001e89

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y5 around 0

      \[\leadsto \color{blue}{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right)\right) - \left(c \cdot \left(y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Applied rewrites32.0%

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

      \[\leadsto j \cdot \color{blue}{\left(\left(-1 \cdot \left(y1 \cdot \left(y3 \cdot y4\right)\right) + b \cdot \left(t \cdot y4\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
    5. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto j \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(y3 \cdot y4\right)\right) + b \cdot \left(t \cdot y4\right)\right) - \color{blue}{x \cdot \left(b \cdot y0 - i \cdot y1\right)}\right) \]
      2. lower--.f64N/A

        \[\leadsto j \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(y3 \cdot y4\right)\right) + b \cdot \left(t \cdot y4\right)\right) - x \cdot \color{blue}{\left(b \cdot y0 - i \cdot y1\right)}\right) \]
      3. lower-fma.f64N/A

        \[\leadsto j \cdot \left(\mathsf{fma}\left(-1, y1 \cdot \left(y3 \cdot y4\right), b \cdot \left(t \cdot y4\right)\right) - x \cdot \left(\color{blue}{b \cdot y0} - i \cdot y1\right)\right) \]
      4. lower-*.f64N/A

        \[\leadsto j \cdot \left(\mathsf{fma}\left(-1, y1 \cdot \left(y3 \cdot y4\right), b \cdot \left(t \cdot y4\right)\right) - x \cdot \left(b \cdot \color{blue}{y0} - i \cdot y1\right)\right) \]
      5. lower-*.f64N/A

        \[\leadsto j \cdot \left(\mathsf{fma}\left(-1, y1 \cdot \left(y3 \cdot y4\right), b \cdot \left(t \cdot y4\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \]
      6. lower-*.f64N/A

        \[\leadsto j \cdot \left(\mathsf{fma}\left(-1, y1 \cdot \left(y3 \cdot y4\right), b \cdot \left(t \cdot y4\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \]
      7. lower-*.f64N/A

        \[\leadsto j \cdot \left(\mathsf{fma}\left(-1, y1 \cdot \left(y3 \cdot y4\right), b \cdot \left(t \cdot y4\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right) \]
      8. lower-*.f64N/A

        \[\leadsto j \cdot \left(\mathsf{fma}\left(-1, y1 \cdot \left(y3 \cdot y4\right), b \cdot \left(t \cdot y4\right)\right) - x \cdot \left(b \cdot y0 - \color{blue}{i \cdot y1}\right)\right) \]
    6. Applied rewrites34.5%

      \[\leadsto j \cdot \color{blue}{\left(\mathsf{fma}\left(-1, y1 \cdot \left(y3 \cdot y4\right), b \cdot \left(t \cdot y4\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)} \]
  3. Recombined 5 regimes into one program.
  4. Add Preprocessing

Alternative 9: 35.6% accurate, 2.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot x - k \cdot z\\ t_2 := x \cdot y - t \cdot z\\ t_3 := c \cdot \left(-1 \cdot \left(i \cdot t\_2\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\ \mathbf{if}\;c \leq -4.7 \cdot 10^{+176}:\\ \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot t\_1\right)\\ \mathbf{elif}\;c \leq -2.8 \cdot 10^{+109}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;c \leq -1.45 \cdot 10^{-24}:\\ \;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\ \mathbf{elif}\;c \leq 3.2 \cdot 10^{+92}:\\ \;\;\;\;b \cdot \left(\mathsf{fma}\left(a, t\_2, y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot t\_1\right)\\ \mathbf{else}:\\ \;\;\;\;t\_3\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1 (- (* j x) (* k z)))
        (t_2 (- (* x y) (* t z)))
        (t_3 (* c (- (* -1.0 (* i t_2)) (* y4 (- (* t y2) (* y y3)))))))
   (if (<= c -4.7e+176)
     (* y0 (- (* c (- (* x y2) (* y3 z))) (* b t_1)))
     (if (<= c -2.8e+109)
       t_3
       (if (<= c -1.45e-24)
         (* y2 (- (* k (* y1 y4)) (* t (- (* c y4) (* a y5)))))
         (if (<= c 3.2e+92)
           (* b (- (fma a t_2 (* y4 (- (* j t) (* k y)))) (* y0 t_1)))
           t_3))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (j * x) - (k * z);
	double t_2 = (x * y) - (t * z);
	double t_3 = c * ((-1.0 * (i * t_2)) - (y4 * ((t * y2) - (y * y3))));
	double tmp;
	if (c <= -4.7e+176) {
		tmp = y0 * ((c * ((x * y2) - (y3 * z))) - (b * t_1));
	} else if (c <= -2.8e+109) {
		tmp = t_3;
	} else if (c <= -1.45e-24) {
		tmp = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5))));
	} else if (c <= 3.2e+92) {
		tmp = b * (fma(a, t_2, (y4 * ((j * t) - (k * y)))) - (y0 * t_1));
	} else {
		tmp = t_3;
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(Float64(j * x) - Float64(k * z))
	t_2 = Float64(Float64(x * y) - Float64(t * z))
	t_3 = Float64(c * Float64(Float64(-1.0 * Float64(i * t_2)) - Float64(y4 * Float64(Float64(t * y2) - Float64(y * y3)))))
	tmp = 0.0
	if (c <= -4.7e+176)
		tmp = Float64(y0 * Float64(Float64(c * Float64(Float64(x * y2) - Float64(y3 * z))) - Float64(b * t_1)));
	elseif (c <= -2.8e+109)
		tmp = t_3;
	elseif (c <= -1.45e-24)
		tmp = Float64(y2 * Float64(Float64(k * Float64(y1 * y4)) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5)))));
	elseif (c <= 3.2e+92)
		tmp = Float64(b * Float64(fma(a, t_2, Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))) - Float64(y0 * t_1)));
	else
		tmp = t_3;
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(N[(-1.0 * N[(i * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(y4 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.7e+176], N[(y0 * N[(N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.8e+109], t$95$3, If[LessEqual[c, -1.45e-24], N[(y2 * N[(N[(k * N[(y1 * y4), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.2e+92], N[(b * N[(N[(a * t$95$2 + N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y0 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := j \cdot x - k \cdot z\\
t_2 := x \cdot y - t \cdot z\\
t_3 := c \cdot \left(-1 \cdot \left(i \cdot t\_2\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{if}\;c \leq -4.7 \cdot 10^{+176}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot t\_1\right)\\

\mathbf{elif}\;c \leq -2.8 \cdot 10^{+109}:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;c \leq -1.45 \cdot 10^{-24}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\

\mathbf{elif}\;c \leq 3.2 \cdot 10^{+92}:\\
\;\;\;\;b \cdot \left(\mathsf{fma}\left(a, t\_2, y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot t\_1\right)\\

\mathbf{else}:\\
\;\;\;\;t\_3\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if c < -4.69999999999999981e176

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y5 around 0

      \[\leadsto \color{blue}{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right)\right) - \left(c \cdot \left(y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Applied rewrites32.0%

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

      \[\leadsto y0 \cdot \color{blue}{\left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    5. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - \color{blue}{b \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
      2. lower--.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \color{blue}{\left(j \cdot x - k \cdot z\right)}\right) \]
      3. lower-*.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(\color{blue}{j \cdot x} - k \cdot z\right)\right) \]
      4. lower--.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot \color{blue}{x} - k \cdot z\right)\right) \]
      5. lower-*.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right) \]
      6. lower-*.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right) \]
      7. lower-*.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - \color{blue}{k \cdot z}\right)\right) \]
      8. lower--.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot \color{blue}{z}\right)\right) \]
      9. lower-*.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right) \]
      10. lower-*.f6434.8

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right) \]
    6. Applied rewrites34.8%

      \[\leadsto y0 \cdot \color{blue}{\left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]

    if -4.69999999999999981e176 < c < -2.8000000000000002e109 or 3.20000000000000025e92 < c

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in c around inf

      \[\leadsto \color{blue}{c \cdot \left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto c \cdot \color{blue}{\left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto c \cdot \left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - \color{blue}{y4 \cdot \left(t \cdot y2 - y \cdot y3\right)}\right) \]
    4. Applied rewrites36.3%

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

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

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \color{blue}{\left(t \cdot y2 - y \cdot y3\right)}\right) \]
      2. lower-*.f64N/A

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

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot \color{blue}{y2} - y \cdot y3\right)\right) \]
      4. lower--.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
      5. lower-*.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
      6. lower-*.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
      7. lower-*.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - \color{blue}{y \cdot y3}\right)\right) \]
      8. lower--.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot \color{blue}{y3}\right)\right) \]
      9. lower-*.f64N/A

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
      10. lower-*.f6433.6

        \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) \]
    7. Applied rewrites33.6%

      \[\leadsto c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - \color{blue}{y4 \cdot \left(t \cdot y2 - y \cdot y3\right)}\right) \]

    if -2.8000000000000002e109 < c < -1.4499999999999999e-24

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in y4 around inf

      \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - \color{blue}{t} \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]
      2. lower-*.f6430.4

        \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]
    7. Applied rewrites30.4%

      \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - \color{blue}{t} \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]

    if -1.4499999999999999e-24 < c < 3.20000000000000025e92

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

Alternative 10: 35.5% accurate, 2.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot y - t \cdot z\\ \mathbf{if}\;b \leq -1.45 \cdot 10^{+56}:\\ \;\;\;\;b \cdot \left(\mathsf{fma}\left(a, t\_1, y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\ \mathbf{elif}\;b \leq 1.4 \cdot 10^{+157}:\\ \;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot t\_1\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1 (- (* x y) (* t z))))
   (if (<= b -1.45e+56)
     (*
      b
      (- (fma a t_1 (* y4 (- (* j t) (* k y)))) (* y0 (- (* j x) (* k z)))))
     (if (<= b 1.4e+157)
       (*
        y2
        (-
         (fma k (- (* y1 y4) (* y0 y5)) (* x (- (* c y0) (* a y1))))
         (* t (- (* c y4) (* a y5)))))
       (* a (* b t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (x * y) - (t * z);
	double tmp;
	if (b <= -1.45e+56) {
		tmp = b * (fma(a, t_1, (y4 * ((j * t) - (k * y)))) - (y0 * ((j * x) - (k * z))));
	} else if (b <= 1.4e+157) {
		tmp = y2 * (fma(k, ((y1 * y4) - (y0 * y5)), (x * ((c * y0) - (a * y1)))) - (t * ((c * y4) - (a * y5))));
	} else {
		tmp = a * (b * t_1);
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(Float64(x * y) - Float64(t * z))
	tmp = 0.0
	if (b <= -1.45e+56)
		tmp = Float64(b * Float64(fma(a, t_1, Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))) - Float64(y0 * Float64(Float64(j * x) - Float64(k * z)))));
	elseif (b <= 1.4e+157)
		tmp = Float64(y2 * Float64(fma(k, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5)))));
	else
		tmp = Float64(a * Float64(b * t_1));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.45e+56], N[(b * N[(N[(a * t$95$1 + N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.4e+157], N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x \cdot y - t \cdot z\\
\mathbf{if}\;b \leq -1.45 \cdot 10^{+56}:\\
\;\;\;\;b \cdot \left(\mathsf{fma}\left(a, t\_1, y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\

\mathbf{elif}\;b \leq 1.4 \cdot 10^{+157}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\

\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot t\_1\right)\\


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

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

    if -1.45000000000000004e56 < b < 1.4000000000000001e157

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]

    if 1.4000000000000001e157 < b

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

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

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

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

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

        \[\leadsto a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) \]
      5. lower-*.f6426.9

        \[\leadsto a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) \]
    7. Applied rewrites26.9%

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

Alternative 11: 35.5% accurate, 3.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -8.4 \cdot 10^{+181}:\\ \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\ \mathbf{elif}\;z \leq -4.6 \cdot 10^{+70}:\\ \;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)\\ \mathbf{elif}\;z \leq -1.2 \cdot 10^{+23}:\\ \;\;\;\;-1 \cdot \left(y3 \cdot \left(y4 \cdot \left(j \cdot y1 - c \cdot y\right)\right)\right)\\ \mathbf{elif}\;z \leq 2.7 \cdot 10^{+26}:\\ \;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;-1 \cdot \left(t \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= z -8.4e+181)
   (* i (* z (- (* c t) (* k y1))))
   (if (<= z -4.6e+70)
     (* y0 (- (* c (- (* x y2) (* y3 z))) (* b (- (* j x) (* k z)))))
     (if (<= z -1.2e+23)
       (* -1.0 (* y3 (* y4 (- (* j y1) (* c y)))))
       (if (<= z 2.7e+26)
         (* y2 (- (* k (* y1 y4)) (* t (- (* c y4) (* a y5)))))
         (* -1.0 (* t (* z (- (* a b) (* c i))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (z <= -8.4e+181) {
		tmp = i * (z * ((c * t) - (k * y1)));
	} else if (z <= -4.6e+70) {
		tmp = y0 * ((c * ((x * y2) - (y3 * z))) - (b * ((j * x) - (k * z))));
	} else if (z <= -1.2e+23) {
		tmp = -1.0 * (y3 * (y4 * ((j * y1) - (c * y))));
	} else if (z <= 2.7e+26) {
		tmp = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5))));
	} else {
		tmp = -1.0 * (t * (z * ((a * b) - (c * i))));
	}
	return tmp;
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if (z <= (-8.4d+181)) then
        tmp = i * (z * ((c * t) - (k * y1)))
    else if (z <= (-4.6d+70)) then
        tmp = y0 * ((c * ((x * y2) - (y3 * z))) - (b * ((j * x) - (k * z))))
    else if (z <= (-1.2d+23)) then
        tmp = (-1.0d0) * (y3 * (y4 * ((j * y1) - (c * y))))
    else if (z <= 2.7d+26) then
        tmp = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5))))
    else
        tmp = (-1.0d0) * (t * (z * ((a * b) - (c * i))))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (z <= -8.4e+181) {
		tmp = i * (z * ((c * t) - (k * y1)));
	} else if (z <= -4.6e+70) {
		tmp = y0 * ((c * ((x * y2) - (y3 * z))) - (b * ((j * x) - (k * z))));
	} else if (z <= -1.2e+23) {
		tmp = -1.0 * (y3 * (y4 * ((j * y1) - (c * y))));
	} else if (z <= 2.7e+26) {
		tmp = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5))));
	} else {
		tmp = -1.0 * (t * (z * ((a * b) - (c * i))));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if z <= -8.4e+181:
		tmp = i * (z * ((c * t) - (k * y1)))
	elif z <= -4.6e+70:
		tmp = y0 * ((c * ((x * y2) - (y3 * z))) - (b * ((j * x) - (k * z))))
	elif z <= -1.2e+23:
		tmp = -1.0 * (y3 * (y4 * ((j * y1) - (c * y))))
	elif z <= 2.7e+26:
		tmp = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5))))
	else:
		tmp = -1.0 * (t * (z * ((a * b) - (c * i))))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (z <= -8.4e+181)
		tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1))));
	elseif (z <= -4.6e+70)
		tmp = Float64(y0 * Float64(Float64(c * Float64(Float64(x * y2) - Float64(y3 * z))) - Float64(b * Float64(Float64(j * x) - Float64(k * z)))));
	elseif (z <= -1.2e+23)
		tmp = Float64(-1.0 * Float64(y3 * Float64(y4 * Float64(Float64(j * y1) - Float64(c * y)))));
	elseif (z <= 2.7e+26)
		tmp = Float64(y2 * Float64(Float64(k * Float64(y1 * y4)) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5)))));
	else
		tmp = Float64(-1.0 * Float64(t * Float64(z * Float64(Float64(a * b) - Float64(c * i)))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if (z <= -8.4e+181)
		tmp = i * (z * ((c * t) - (k * y1)));
	elseif (z <= -4.6e+70)
		tmp = y0 * ((c * ((x * y2) - (y3 * z))) - (b * ((j * x) - (k * z))));
	elseif (z <= -1.2e+23)
		tmp = -1.0 * (y3 * (y4 * ((j * y1) - (c * y))));
	elseif (z <= 2.7e+26)
		tmp = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5))));
	else
		tmp = -1.0 * (t * (z * ((a * b) - (c * i))));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -8.4e+181], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.6e+70], N[(y0 * N[(N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.2e+23], N[(-1.0 * N[(y3 * N[(y4 * N[(N[(j * y1), $MachinePrecision] - N[(c * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.7e+26], N[(y2 * N[(N[(k * N[(y1 * y4), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-1.0 * N[(t * N[(z * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.4 \cdot 10^{+181}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\

\mathbf{elif}\;z \leq -4.6 \cdot 10^{+70}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)\\

\mathbf{elif}\;z \leq -1.2 \cdot 10^{+23}:\\
\;\;\;\;-1 \cdot \left(y3 \cdot \left(y4 \cdot \left(j \cdot y1 - c \cdot y\right)\right)\right)\\

\mathbf{elif}\;z \leq 2.7 \cdot 10^{+26}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\

\mathbf{else}:\\
\;\;\;\;-1 \cdot \left(t \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if z < -8.39999999999999989e181

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in z around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \color{blue}{\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)}\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{k \cdot \left(b \cdot y0 - i \cdot y1\right)}\right)\right) \]
    4. Applied rewrites37.8%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in i around -inf

      \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - \color{blue}{k \cdot y1}\right)\right) \]
      3. lower--.f64N/A

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

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
      5. lower-*.f6426.9

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
    7. Applied rewrites26.9%

      \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]

    if -8.39999999999999989e181 < z < -4.59999999999999987e70

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y5 around 0

      \[\leadsto \color{blue}{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right)\right) - \left(c \cdot \left(y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Applied rewrites32.0%

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

      \[\leadsto y0 \cdot \color{blue}{\left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    5. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - \color{blue}{b \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
      2. lower--.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \color{blue}{\left(j \cdot x - k \cdot z\right)}\right) \]
      3. lower-*.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(\color{blue}{j \cdot x} - k \cdot z\right)\right) \]
      4. lower--.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot \color{blue}{x} - k \cdot z\right)\right) \]
      5. lower-*.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right) \]
      6. lower-*.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right) \]
      7. lower-*.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - \color{blue}{k \cdot z}\right)\right) \]
      8. lower--.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot \color{blue}{z}\right)\right) \]
      9. lower-*.f64N/A

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right) \]
      10. lower-*.f6434.8

        \[\leadsto y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right) \]
    6. Applied rewrites34.8%

      \[\leadsto y0 \cdot \color{blue}{\left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)} \]

    if -4.59999999999999987e70 < z < -1.2e23

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y5 around 0

      \[\leadsto \color{blue}{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right)\right) - \left(c \cdot \left(y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Applied rewrites32.0%

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

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \left(y \cdot y4\right)\right)\right)} \]
    5. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \color{blue}{\left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \left(y \cdot y4\right)\right)}\right) \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{c \cdot \left(y \cdot y4\right)}\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \color{blue}{\left(y \cdot y4\right)}\right)\right) \]
    6. Applied rewrites34.2%

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(\mathsf{fma}\left(j, y1 \cdot y4, z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \left(y \cdot y4\right)\right)\right)} \]
    7. Taylor expanded in y4 around inf

      \[\leadsto -1 \cdot \left(y3 \cdot \left(y4 \cdot \left(j \cdot y1 - \color{blue}{c \cdot y}\right)\right)\right) \]
    8. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \left(y4 \cdot \left(j \cdot y1 - c \cdot \color{blue}{y}\right)\right)\right) \]
      2. lower--.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \left(y4 \cdot \left(j \cdot y1 - c \cdot y\right)\right)\right) \]
      3. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \left(y4 \cdot \left(j \cdot y1 - c \cdot y\right)\right)\right) \]
      4. lower-*.f6427.6

        \[\leadsto -1 \cdot \left(y3 \cdot \left(y4 \cdot \left(j \cdot y1 - c \cdot y\right)\right)\right) \]
    9. Applied rewrites27.6%

      \[\leadsto -1 \cdot \left(y3 \cdot \left(y4 \cdot \left(j \cdot y1 - \color{blue}{c \cdot y}\right)\right)\right) \]

    if -1.2e23 < z < 2.7e26

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in y4 around inf

      \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - \color{blue}{t} \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]
      2. lower-*.f6430.4

        \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]
    7. Applied rewrites30.4%

      \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - \color{blue}{t} \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]

    if 2.7e26 < z

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in z around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \color{blue}{\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)}\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{k \cdot \left(b \cdot y0 - i \cdot y1\right)}\right)\right) \]
    4. Applied rewrites37.8%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in t around inf

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

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

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

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

        \[\leadsto -1 \cdot \left(t \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right)\right) \]
      5. lower-*.f6426.4

        \[\leadsto -1 \cdot \left(t \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right)\right) \]
    7. Applied rewrites26.4%

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

Alternative 12: 34.2% accurate, 3.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot b - c \cdot i\\ \mathbf{if}\;t \leq -1.1 \cdot 10^{+188}:\\ \;\;\;\;-1 \cdot \left(z \cdot \left(t \cdot t\_1\right)\right)\\ \mathbf{elif}\;t \leq 1.6 \cdot 10^{-104}:\\ \;\;\;\;y \cdot \left(\mathsf{fma}\left(-1, b \cdot \left(k \cdot y4\right), x \cdot t\_1\right) - -1 \cdot \left(c \cdot \left(y3 \cdot y4\right)\right)\right)\\ \mathbf{elif}\;t \leq 1.5 \cdot 10^{+100}:\\ \;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1 (- (* a b) (* c i))))
   (if (<= t -1.1e+188)
     (* -1.0 (* z (* t t_1)))
     (if (<= t 1.6e-104)
       (* y (- (fma -1.0 (* b (* k y4)) (* x t_1)) (* -1.0 (* c (* y3 y4)))))
       (if (<= t 1.5e+100)
         (* y2 (- (* k (* y1 y4)) (* t (- (* c y4) (* a y5)))))
         (* b (* t (fma -1.0 (* a z) (* j y4)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = (a * b) - (c * i);
	double tmp;
	if (t <= -1.1e+188) {
		tmp = -1.0 * (z * (t * t_1));
	} else if (t <= 1.6e-104) {
		tmp = y * (fma(-1.0, (b * (k * y4)), (x * t_1)) - (-1.0 * (c * (y3 * y4))));
	} else if (t <= 1.5e+100) {
		tmp = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5))));
	} else {
		tmp = b * (t * fma(-1.0, (a * z), (j * y4)));
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(Float64(a * b) - Float64(c * i))
	tmp = 0.0
	if (t <= -1.1e+188)
		tmp = Float64(-1.0 * Float64(z * Float64(t * t_1)));
	elseif (t <= 1.6e-104)
		tmp = Float64(y * Float64(fma(-1.0, Float64(b * Float64(k * y4)), Float64(x * t_1)) - Float64(-1.0 * Float64(c * Float64(y3 * y4)))));
	elseif (t <= 1.5e+100)
		tmp = Float64(y2 * Float64(Float64(k * Float64(y1 * y4)) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5)))));
	else
		tmp = Float64(b * Float64(t * fma(-1.0, Float64(a * z), Float64(j * y4))));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.1e+188], N[(-1.0 * N[(z * N[(t * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.6e-104], N[(y * N[(N[(-1.0 * N[(b * N[(k * y4), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(-1.0 * N[(c * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.5e+100], N[(y2 * N[(N[(k * N[(y1 * y4), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}

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

\mathbf{elif}\;t \leq 1.6 \cdot 10^{-104}:\\
\;\;\;\;y \cdot \left(\mathsf{fma}\left(-1, b \cdot \left(k \cdot y4\right), x \cdot t\_1\right) - -1 \cdot \left(c \cdot \left(y3 \cdot y4\right)\right)\right)\\

\mathbf{elif}\;t \leq 1.5 \cdot 10^{+100}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\

\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -1.09999999999999999e188

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in z around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \color{blue}{\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)}\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{k \cdot \left(b \cdot y0 - i \cdot y1\right)}\right)\right) \]
    4. Applied rewrites37.8%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in t around inf

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

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

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

        \[\leadsto -1 \cdot \left(z \cdot \left(t \cdot \left(a \cdot b - c \cdot i\right)\right)\right) \]
      4. lower-*.f6426.4

        \[\leadsto -1 \cdot \left(z \cdot \left(t \cdot \left(a \cdot b - c \cdot i\right)\right)\right) \]
    7. Applied rewrites26.4%

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

    if -1.09999999999999999e188 < t < 1.59999999999999994e-104

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y5 around 0

      \[\leadsto \color{blue}{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right)\right) - \left(c \cdot \left(y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Applied rewrites32.0%

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

      \[\leadsto y \cdot \color{blue}{\left(\left(-1 \cdot \left(b \cdot \left(k \cdot y4\right)\right) + x \cdot \left(a \cdot b - c \cdot i\right)\right) - -1 \cdot \left(c \cdot \left(y3 \cdot y4\right)\right)\right)} \]
    5. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y \cdot \left(\left(-1 \cdot \left(b \cdot \left(k \cdot y4\right)\right) + x \cdot \left(a \cdot b - c \cdot i\right)\right) - \color{blue}{-1 \cdot \left(c \cdot \left(y3 \cdot y4\right)\right)}\right) \]
      2. lower--.f64N/A

        \[\leadsto y \cdot \left(\left(-1 \cdot \left(b \cdot \left(k \cdot y4\right)\right) + x \cdot \left(a \cdot b - c \cdot i\right)\right) - -1 \cdot \color{blue}{\left(c \cdot \left(y3 \cdot y4\right)\right)}\right) \]
    6. Applied rewrites33.9%

      \[\leadsto y \cdot \color{blue}{\left(\mathsf{fma}\left(-1, b \cdot \left(k \cdot y4\right), x \cdot \left(a \cdot b - c \cdot i\right)\right) - -1 \cdot \left(c \cdot \left(y3 \cdot y4\right)\right)\right)} \]

    if 1.59999999999999994e-104 < t < 1.49999999999999993e100

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in y4 around inf

      \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - \color{blue}{t} \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]
      2. lower-*.f6430.4

        \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]
    7. Applied rewrites30.4%

      \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - \color{blue}{t} \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]

    if 1.49999999999999993e100 < t

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

      \[\leadsto b \cdot \left(t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot z\right) + j \cdot y4\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

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

        \[\leadsto b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right) \]
      4. lower-*.f6427.4

        \[\leadsto b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right) \]
    7. Applied rewrites27.4%

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

Alternative 13: 32.9% accurate, 3.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -4 \cdot 10^{+147}:\\ \;\;\;\;-1 \cdot \left(z \cdot \left(t \cdot \left(a \cdot b - c \cdot i\right)\right)\right)\\ \mathbf{elif}\;t \leq -5.4 \cdot 10^{-52}:\\ \;\;\;\;y2 \cdot \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\right)\\ \mathbf{elif}\;t \leq 10^{-155}:\\ \;\;\;\;a \cdot \left(x \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right)\\ \mathbf{elif}\;t \leq 1.5 \cdot 10^{+100}:\\ \;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= t -4e+147)
   (* -1.0 (* z (* t (- (* a b) (* c i)))))
   (if (<= t -5.4e-52)
     (* y2 (* -1.0 (* a (- (* x y1) (* t y5)))))
     (if (<= t 1e-155)
       (* a (* x (fma -1.0 (* y1 y2) (* b y))))
       (if (<= t 1.5e+100)
         (* y2 (- (* k (* y1 y4)) (* t (- (* c y4) (* a y5)))))
         (* b (* t (fma -1.0 (* a z) (* j y4)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (t <= -4e+147) {
		tmp = -1.0 * (z * (t * ((a * b) - (c * i))));
	} else if (t <= -5.4e-52) {
		tmp = y2 * (-1.0 * (a * ((x * y1) - (t * y5))));
	} else if (t <= 1e-155) {
		tmp = a * (x * fma(-1.0, (y1 * y2), (b * y)));
	} else if (t <= 1.5e+100) {
		tmp = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5))));
	} else {
		tmp = b * (t * fma(-1.0, (a * z), (j * y4)));
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (t <= -4e+147)
		tmp = Float64(-1.0 * Float64(z * Float64(t * Float64(Float64(a * b) - Float64(c * i)))));
	elseif (t <= -5.4e-52)
		tmp = Float64(y2 * Float64(-1.0 * Float64(a * Float64(Float64(x * y1) - Float64(t * y5)))));
	elseif (t <= 1e-155)
		tmp = Float64(a * Float64(x * fma(-1.0, Float64(y1 * y2), Float64(b * y))));
	elseif (t <= 1.5e+100)
		tmp = Float64(y2 * Float64(Float64(k * Float64(y1 * y4)) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5)))));
	else
		tmp = Float64(b * Float64(t * fma(-1.0, Float64(a * z), Float64(j * y4))));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -4e+147], N[(-1.0 * N[(z * N[(t * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5.4e-52], N[(y2 * N[(-1.0 * N[(a * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e-155], N[(a * N[(x * N[(-1.0 * N[(y1 * y2), $MachinePrecision] + N[(b * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.5e+100], N[(y2 * N[(N[(k * N[(y1 * y4), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -4 \cdot 10^{+147}:\\
\;\;\;\;-1 \cdot \left(z \cdot \left(t \cdot \left(a \cdot b - c \cdot i\right)\right)\right)\\

\mathbf{elif}\;t \leq -5.4 \cdot 10^{-52}:\\
\;\;\;\;y2 \cdot \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\right)\\

\mathbf{elif}\;t \leq 10^{-155}:\\
\;\;\;\;a \cdot \left(x \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right)\\

\mathbf{elif}\;t \leq 1.5 \cdot 10^{+100}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\

\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if t < -3.9999999999999999e147

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in z around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \color{blue}{\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)}\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{k \cdot \left(b \cdot y0 - i \cdot y1\right)}\right)\right) \]
    4. Applied rewrites37.8%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in t around inf

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

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

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

        \[\leadsto -1 \cdot \left(z \cdot \left(t \cdot \left(a \cdot b - c \cdot i\right)\right)\right) \]
      4. lower-*.f6426.4

        \[\leadsto -1 \cdot \left(z \cdot \left(t \cdot \left(a \cdot b - c \cdot i\right)\right)\right) \]
    7. Applied rewrites26.4%

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

    if -3.9999999999999999e147 < t < -5.40000000000000019e-52

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in a around -inf

      \[\leadsto y2 \cdot \left(-1 \cdot \color{blue}{\left(a \cdot \left(x \cdot y1 - t \cdot y5\right)\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto y2 \cdot \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - \color{blue}{t \cdot y5}\right)\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto y2 \cdot \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - t \cdot \color{blue}{y5}\right)\right)\right) \]
      4. lower-*.f64N/A

        \[\leadsto y2 \cdot \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\right) \]
      5. lower-*.f6426.2

        \[\leadsto y2 \cdot \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\right) \]
    7. Applied rewrites26.2%

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

    if -5.40000000000000019e-52 < t < 1.00000000000000001e-155

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in a around inf

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(x \cdot y - t \cdot z\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto a \cdot \color{blue}{\left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(x \cdot y - t \cdot z\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(x \cdot y - t \cdot z\right)\right) - \color{blue}{-1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)}\right) \]
    4. Applied rewrites35.6%

      \[\leadsto \color{blue}{a \cdot \left(\mathsf{fma}\left(-1, y1 \cdot \left(x \cdot y2 - y3 \cdot z\right), b \cdot \left(x \cdot y - t \cdot z\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in x around inf

      \[\leadsto a \cdot \left(x \cdot \color{blue}{\left(-1 \cdot \left(y1 \cdot y2\right) + b \cdot y\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto a \cdot \left(x \cdot \left(-1 \cdot \left(y1 \cdot y2\right) + \color{blue}{b \cdot y}\right)\right) \]
      2. lower-fma.f64N/A

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

        \[\leadsto a \cdot \left(x \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right) \]
      4. lower-*.f6426.9

        \[\leadsto a \cdot \left(x \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right) \]
    7. Applied rewrites26.9%

      \[\leadsto a \cdot \left(x \cdot \color{blue}{\mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)}\right) \]

    if 1.00000000000000001e-155 < t < 1.49999999999999993e100

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in y4 around inf

      \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - \color{blue}{t} \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]
      2. lower-*.f6430.4

        \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]
    7. Applied rewrites30.4%

      \[\leadsto y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - \color{blue}{t} \cdot \left(c \cdot y4 - a \cdot y5\right)\right) \]

    if 1.49999999999999993e100 < t

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

      \[\leadsto b \cdot \left(t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot z\right) + j \cdot y4\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

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

        \[\leadsto b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right) \]
      4. lower-*.f6427.4

        \[\leadsto b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right) \]
    7. Applied rewrites27.4%

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

Alternative 14: 32.5% accurate, 3.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y5 \leq -5.4 \cdot 10^{+14}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{elif}\;y5 \leq -6.2 \cdot 10^{-93}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;y5 \leq -2.6 \cdot 10^{-301}:\\ \;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\ \mathbf{elif}\;y5 \leq 1.4 \cdot 10^{-129}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\ \mathbf{elif}\;y5 \leq 9.5 \cdot 10^{+157}:\\ \;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= y5 -5.4e+14)
   (* t (* y2 (- (* a y5) (* c y4))))
   (if (<= y5 -6.2e-93)
     (* c (* y (* y3 y4)))
     (if (<= y5 -2.6e-301)
       (* b (* t (fma -1.0 (* a z) (* j y4))))
       (if (<= y5 1.4e-129)
         (* a (* b (- (* x y) (* t z))))
         (if (<= y5 9.5e+157)
           (* y2 (* y4 (- (* k y1) (* c t))))
           (* a (* y (- (* b x) (* y3 y5))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (y5 <= -5.4e+14) {
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	} else if (y5 <= -6.2e-93) {
		tmp = c * (y * (y3 * y4));
	} else if (y5 <= -2.6e-301) {
		tmp = b * (t * fma(-1.0, (a * z), (j * y4)));
	} else if (y5 <= 1.4e-129) {
		tmp = a * (b * ((x * y) - (t * z)));
	} else if (y5 <= 9.5e+157) {
		tmp = y2 * (y4 * ((k * y1) - (c * t)));
	} else {
		tmp = a * (y * ((b * x) - (y3 * y5)));
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (y5 <= -5.4e+14)
		tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))));
	elseif (y5 <= -6.2e-93)
		tmp = Float64(c * Float64(y * Float64(y3 * y4)));
	elseif (y5 <= -2.6e-301)
		tmp = Float64(b * Float64(t * fma(-1.0, Float64(a * z), Float64(j * y4))));
	elseif (y5 <= 1.4e-129)
		tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z))));
	elseif (y5 <= 9.5e+157)
		tmp = Float64(y2 * Float64(y4 * Float64(Float64(k * y1) - Float64(c * t))));
	else
		tmp = Float64(a * Float64(y * Float64(Float64(b * x) - Float64(y3 * y5))));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -5.4e+14], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -6.2e-93], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -2.6e-301], N[(b * N[(t * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.4e-129], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 9.5e+157], N[(y2 * N[(y4 * N[(N[(k * y1), $MachinePrecision] - N[(c * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y * N[(N[(b * x), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -5.4 \cdot 10^{+14}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\

\mathbf{elif}\;y5 \leq -6.2 \cdot 10^{-93}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\

\mathbf{elif}\;y5 \leq -2.6 \cdot 10^{-301}:\\
\;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\

\mathbf{elif}\;y5 \leq 1.4 \cdot 10^{-129}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\

\mathbf{elif}\;y5 \leq 9.5 \cdot 10^{+157}:\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right)\\

\mathbf{else}:\\
\;\;\;\;a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if y5 < -5.4e14

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in t around inf

      \[\leadsto t \cdot \color{blue}{\left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \color{blue}{\left(a \cdot y5 - c \cdot y4\right)}\right) \]
      2. lower-*.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - \color{blue}{c \cdot y4}\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot \color{blue}{y4}\right)\right) \]
      4. lower-*.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right) \]
      5. lower-*.f6426.0

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right) \]
    7. Applied rewrites26.0%

      \[\leadsto t \cdot \color{blue}{\left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]

    if -5.4e14 < y5 < -6.19999999999999999e-93

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y5 around 0

      \[\leadsto \color{blue}{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right)\right) - \left(c \cdot \left(y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Applied rewrites32.0%

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

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \left(y \cdot y4\right)\right)\right)} \]
    5. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \color{blue}{\left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \left(y \cdot y4\right)\right)}\right) \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{c \cdot \left(y \cdot y4\right)}\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \color{blue}{\left(y \cdot y4\right)}\right)\right) \]
    6. Applied rewrites34.2%

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(\mathsf{fma}\left(j, y1 \cdot y4, z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \left(y \cdot y4\right)\right)\right)} \]
    7. Taylor expanded in y around inf

      \[\leadsto c \cdot \left(y \cdot \color{blue}{\left(y3 \cdot y4\right)}\right) \]
    8. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right) \]
      3. lower-*.f6417.5

        \[\leadsto c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right) \]
    9. Applied rewrites17.5%

      \[\leadsto c \cdot \left(y \cdot \color{blue}{\left(y3 \cdot y4\right)}\right) \]

    if -6.19999999999999999e-93 < y5 < -2.5999999999999998e-301

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

      \[\leadsto b \cdot \left(t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot z\right) + j \cdot y4\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

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

        \[\leadsto b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right) \]
      4. lower-*.f6427.4

        \[\leadsto b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right) \]
    7. Applied rewrites27.4%

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

    if -2.5999999999999998e-301 < y5 < 1.4e-129

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

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

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

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

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

        \[\leadsto a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) \]
      5. lower-*.f6426.9

        \[\leadsto a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) \]
    7. Applied rewrites26.9%

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

    if 1.4e-129 < y5 < 9.4999999999999996e157

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in y4 around inf

      \[\leadsto y2 \cdot \left(y4 \cdot \color{blue}{\left(k \cdot y1 - c \cdot t\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \left(y4 \cdot \left(k \cdot y1 - \color{blue}{c \cdot t}\right)\right) \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot \color{blue}{t}\right)\right) \]
      3. lower-*.f64N/A

        \[\leadsto y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right) \]
      4. lower-*.f6427.0

        \[\leadsto y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right) \]
    7. Applied rewrites27.0%

      \[\leadsto y2 \cdot \left(y4 \cdot \color{blue}{\left(k \cdot y1 - c \cdot t\right)}\right) \]

    if 9.4999999999999996e157 < y5

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in a around inf

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(x \cdot y - t \cdot z\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto a \cdot \color{blue}{\left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(x \cdot y - t \cdot z\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(x \cdot y - t \cdot z\right)\right) - \color{blue}{-1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)}\right) \]
    4. Applied rewrites35.6%

      \[\leadsto \color{blue}{a \cdot \left(\mathsf{fma}\left(-1, y1 \cdot \left(x \cdot y2 - y3 \cdot z\right), b \cdot \left(x \cdot y - t \cdot z\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in y around inf

      \[\leadsto a \cdot \left(y \cdot \color{blue}{\left(b \cdot x - y3 \cdot y5\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto a \cdot \left(y \cdot \left(b \cdot x - \color{blue}{y3 \cdot y5}\right)\right) \]
      2. lower--.f64N/A

        \[\leadsto a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot \color{blue}{y5}\right)\right) \]
      3. lower-*.f64N/A

        \[\leadsto a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right) \]
      4. lower-*.f6426.5

        \[\leadsto a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right) \]
    7. Applied rewrites26.5%

      \[\leadsto a \cdot \left(y \cdot \color{blue}{\left(b \cdot x - y3 \cdot y5\right)}\right) \]
  3. Recombined 6 regimes into one program.
  4. Add Preprocessing

Alternative 15: 31.9% accurate, 3.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y5 \leq -5.4 \cdot 10^{+14}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{elif}\;y5 \leq -3.3 \cdot 10^{-97}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;y5 \leq -6 \cdot 10^{-176}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\ \mathbf{elif}\;y5 \leq 8.4 \cdot 10^{-131}:\\ \;\;\;\;a \cdot \left(x \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right)\\ \mathbf{elif}\;y5 \leq 9.5 \cdot 10^{+157}:\\ \;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= y5 -5.4e+14)
   (* t (* y2 (- (* a y5) (* c y4))))
   (if (<= y5 -3.3e-97)
     (* c (* y (* y3 y4)))
     (if (<= y5 -6e-176)
       (* b (* y4 (- (* j t) (* k y))))
       (if (<= y5 8.4e-131)
         (* a (* x (fma -1.0 (* y1 y2) (* b y))))
         (if (<= y5 9.5e+157)
           (* y2 (* y4 (- (* k y1) (* c t))))
           (* a (* y (- (* b x) (* y3 y5))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (y5 <= -5.4e+14) {
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	} else if (y5 <= -3.3e-97) {
		tmp = c * (y * (y3 * y4));
	} else if (y5 <= -6e-176) {
		tmp = b * (y4 * ((j * t) - (k * y)));
	} else if (y5 <= 8.4e-131) {
		tmp = a * (x * fma(-1.0, (y1 * y2), (b * y)));
	} else if (y5 <= 9.5e+157) {
		tmp = y2 * (y4 * ((k * y1) - (c * t)));
	} else {
		tmp = a * (y * ((b * x) - (y3 * y5)));
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (y5 <= -5.4e+14)
		tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))));
	elseif (y5 <= -3.3e-97)
		tmp = Float64(c * Float64(y * Float64(y3 * y4)));
	elseif (y5 <= -6e-176)
		tmp = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y))));
	elseif (y5 <= 8.4e-131)
		tmp = Float64(a * Float64(x * fma(-1.0, Float64(y1 * y2), Float64(b * y))));
	elseif (y5 <= 9.5e+157)
		tmp = Float64(y2 * Float64(y4 * Float64(Float64(k * y1) - Float64(c * t))));
	else
		tmp = Float64(a * Float64(y * Float64(Float64(b * x) - Float64(y3 * y5))));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -5.4e+14], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -3.3e-97], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -6e-176], N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 8.4e-131], N[(a * N[(x * N[(-1.0 * N[(y1 * y2), $MachinePrecision] + N[(b * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 9.5e+157], N[(y2 * N[(y4 * N[(N[(k * y1), $MachinePrecision] - N[(c * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y * N[(N[(b * x), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -5.4 \cdot 10^{+14}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\

\mathbf{elif}\;y5 \leq -3.3 \cdot 10^{-97}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\

\mathbf{elif}\;y5 \leq -6 \cdot 10^{-176}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\

\mathbf{elif}\;y5 \leq 8.4 \cdot 10^{-131}:\\
\;\;\;\;a \cdot \left(x \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right)\\

\mathbf{elif}\;y5 \leq 9.5 \cdot 10^{+157}:\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right)\\

\mathbf{else}:\\
\;\;\;\;a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if y5 < -5.4e14

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in t around inf

      \[\leadsto t \cdot \color{blue}{\left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \color{blue}{\left(a \cdot y5 - c \cdot y4\right)}\right) \]
      2. lower-*.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - \color{blue}{c \cdot y4}\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot \color{blue}{y4}\right)\right) \]
      4. lower-*.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right) \]
      5. lower-*.f6426.0

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right) \]
    7. Applied rewrites26.0%

      \[\leadsto t \cdot \color{blue}{\left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]

    if -5.4e14 < y5 < -3.3000000000000001e-97

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y5 around 0

      \[\leadsto \color{blue}{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right)\right) - \left(c \cdot \left(y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Applied rewrites32.0%

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

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \left(y \cdot y4\right)\right)\right)} \]
    5. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \color{blue}{\left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \left(y \cdot y4\right)\right)}\right) \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{c \cdot \left(y \cdot y4\right)}\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \color{blue}{\left(y \cdot y4\right)}\right)\right) \]
    6. Applied rewrites34.2%

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(\mathsf{fma}\left(j, y1 \cdot y4, z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \left(y \cdot y4\right)\right)\right)} \]
    7. Taylor expanded in y around inf

      \[\leadsto c \cdot \left(y \cdot \color{blue}{\left(y3 \cdot y4\right)}\right) \]
    8. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right) \]
      3. lower-*.f6417.5

        \[\leadsto c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right) \]
    9. Applied rewrites17.5%

      \[\leadsto c \cdot \left(y \cdot \color{blue}{\left(y3 \cdot y4\right)}\right) \]

    if -3.3000000000000001e-97 < y5 < -6e-176

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

      \[\leadsto b \cdot \color{blue}{\left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto b \cdot \left(y4 \cdot \left(j \cdot t - \color{blue}{k \cdot y}\right)\right) \]
      3. lower--.f64N/A

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

        \[\leadsto b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) \]
      5. lower-*.f6427.0

        \[\leadsto b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) \]
    7. Applied rewrites27.0%

      \[\leadsto b \cdot \color{blue}{\left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]

    if -6e-176 < y5 < 8.39999999999999988e-131

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in a around inf

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(x \cdot y - t \cdot z\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto a \cdot \color{blue}{\left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(x \cdot y - t \cdot z\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(x \cdot y - t \cdot z\right)\right) - \color{blue}{-1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)}\right) \]
    4. Applied rewrites35.6%

      \[\leadsto \color{blue}{a \cdot \left(\mathsf{fma}\left(-1, y1 \cdot \left(x \cdot y2 - y3 \cdot z\right), b \cdot \left(x \cdot y - t \cdot z\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in x around inf

      \[\leadsto a \cdot \left(x \cdot \color{blue}{\left(-1 \cdot \left(y1 \cdot y2\right) + b \cdot y\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto a \cdot \left(x \cdot \left(-1 \cdot \left(y1 \cdot y2\right) + \color{blue}{b \cdot y}\right)\right) \]
      2. lower-fma.f64N/A

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

        \[\leadsto a \cdot \left(x \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right) \]
      4. lower-*.f6426.9

        \[\leadsto a \cdot \left(x \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right) \]
    7. Applied rewrites26.9%

      \[\leadsto a \cdot \left(x \cdot \color{blue}{\mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)}\right) \]

    if 8.39999999999999988e-131 < y5 < 9.4999999999999996e157

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in y4 around inf

      \[\leadsto y2 \cdot \left(y4 \cdot \color{blue}{\left(k \cdot y1 - c \cdot t\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \left(y4 \cdot \left(k \cdot y1 - \color{blue}{c \cdot t}\right)\right) \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot \color{blue}{t}\right)\right) \]
      3. lower-*.f64N/A

        \[\leadsto y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right) \]
      4. lower-*.f6427.0

        \[\leadsto y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right) \]
    7. Applied rewrites27.0%

      \[\leadsto y2 \cdot \left(y4 \cdot \color{blue}{\left(k \cdot y1 - c \cdot t\right)}\right) \]

    if 9.4999999999999996e157 < y5

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in a around inf

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(x \cdot y - t \cdot z\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto a \cdot \color{blue}{\left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(x \cdot y - t \cdot z\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(x \cdot y - t \cdot z\right)\right) - \color{blue}{-1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)}\right) \]
    4. Applied rewrites35.6%

      \[\leadsto \color{blue}{a \cdot \left(\mathsf{fma}\left(-1, y1 \cdot \left(x \cdot y2 - y3 \cdot z\right), b \cdot \left(x \cdot y - t \cdot z\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in y around inf

      \[\leadsto a \cdot \left(y \cdot \color{blue}{\left(b \cdot x - y3 \cdot y5\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto a \cdot \left(y \cdot \left(b \cdot x - \color{blue}{y3 \cdot y5}\right)\right) \]
      2. lower--.f64N/A

        \[\leadsto a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot \color{blue}{y5}\right)\right) \]
      3. lower-*.f64N/A

        \[\leadsto a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right) \]
      4. lower-*.f6426.5

        \[\leadsto a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right) \]
    7. Applied rewrites26.5%

      \[\leadsto a \cdot \left(y \cdot \color{blue}{\left(b \cdot x - y3 \cdot y5\right)}\right) \]
  3. Recombined 6 regimes into one program.
  4. Add Preprocessing

Alternative 16: 31.5% accurate, 3.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y5 \leq -5.4 \cdot 10^{+14}:\\ \;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\ \mathbf{elif}\;y5 \leq -2.8 \cdot 10^{-94}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;y5 \leq -3.7 \cdot 10^{-301}:\\ \;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\ \mathbf{elif}\;y5 \leq 1.4 \cdot 10^{-129}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\ \mathbf{elif}\;y5 \leq 9.5 \cdot 10^{+157}:\\ \;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= y5 -5.4e+14)
   (* t (* y2 (- (* a y5) (* c y4))))
   (if (<= y5 -2.8e-94)
     (* c (* y (* y3 y4)))
     (if (<= y5 -3.7e-301)
       (* b (* j (- (* t y4) (* x y0))))
       (if (<= y5 1.4e-129)
         (* a (* b (- (* x y) (* t z))))
         (if (<= y5 9.5e+157)
           (* y2 (* y4 (- (* k y1) (* c t))))
           (* a (* y (- (* b x) (* y3 y5))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (y5 <= -5.4e+14) {
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	} else if (y5 <= -2.8e-94) {
		tmp = c * (y * (y3 * y4));
	} else if (y5 <= -3.7e-301) {
		tmp = b * (j * ((t * y4) - (x * y0)));
	} else if (y5 <= 1.4e-129) {
		tmp = a * (b * ((x * y) - (t * z)));
	} else if (y5 <= 9.5e+157) {
		tmp = y2 * (y4 * ((k * y1) - (c * t)));
	} else {
		tmp = a * (y * ((b * x) - (y3 * y5)));
	}
	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, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if (y5 <= (-5.4d+14)) then
        tmp = t * (y2 * ((a * y5) - (c * y4)))
    else if (y5 <= (-2.8d-94)) then
        tmp = c * (y * (y3 * y4))
    else if (y5 <= (-3.7d-301)) then
        tmp = b * (j * ((t * y4) - (x * y0)))
    else if (y5 <= 1.4d-129) then
        tmp = a * (b * ((x * y) - (t * z)))
    else if (y5 <= 9.5d+157) then
        tmp = y2 * (y4 * ((k * y1) - (c * t)))
    else
        tmp = a * (y * ((b * x) - (y3 * y5)))
    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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (y5 <= -5.4e+14) {
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	} else if (y5 <= -2.8e-94) {
		tmp = c * (y * (y3 * y4));
	} else if (y5 <= -3.7e-301) {
		tmp = b * (j * ((t * y4) - (x * y0)));
	} else if (y5 <= 1.4e-129) {
		tmp = a * (b * ((x * y) - (t * z)));
	} else if (y5 <= 9.5e+157) {
		tmp = y2 * (y4 * ((k * y1) - (c * t)));
	} else {
		tmp = a * (y * ((b * x) - (y3 * y5)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if y5 <= -5.4e+14:
		tmp = t * (y2 * ((a * y5) - (c * y4)))
	elif y5 <= -2.8e-94:
		tmp = c * (y * (y3 * y4))
	elif y5 <= -3.7e-301:
		tmp = b * (j * ((t * y4) - (x * y0)))
	elif y5 <= 1.4e-129:
		tmp = a * (b * ((x * y) - (t * z)))
	elif y5 <= 9.5e+157:
		tmp = y2 * (y4 * ((k * y1) - (c * t)))
	else:
		tmp = a * (y * ((b * x) - (y3 * y5)))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (y5 <= -5.4e+14)
		tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))));
	elseif (y5 <= -2.8e-94)
		tmp = Float64(c * Float64(y * Float64(y3 * y4)));
	elseif (y5 <= -3.7e-301)
		tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0))));
	elseif (y5 <= 1.4e-129)
		tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z))));
	elseif (y5 <= 9.5e+157)
		tmp = Float64(y2 * Float64(y4 * Float64(Float64(k * y1) - Float64(c * t))));
	else
		tmp = Float64(a * Float64(y * Float64(Float64(b * x) - Float64(y3 * y5))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if (y5 <= -5.4e+14)
		tmp = t * (y2 * ((a * y5) - (c * y4)));
	elseif (y5 <= -2.8e-94)
		tmp = c * (y * (y3 * y4));
	elseif (y5 <= -3.7e-301)
		tmp = b * (j * ((t * y4) - (x * y0)));
	elseif (y5 <= 1.4e-129)
		tmp = a * (b * ((x * y) - (t * z)));
	elseif (y5 <= 9.5e+157)
		tmp = y2 * (y4 * ((k * y1) - (c * t)));
	else
		tmp = a * (y * ((b * x) - (y3 * y5)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -5.4e+14], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -2.8e-94], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -3.7e-301], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.4e-129], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 9.5e+157], N[(y2 * N[(y4 * N[(N[(k * y1), $MachinePrecision] - N[(c * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y * N[(N[(b * x), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -5.4 \cdot 10^{+14}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\

\mathbf{elif}\;y5 \leq -2.8 \cdot 10^{-94}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\

\mathbf{elif}\;y5 \leq -3.7 \cdot 10^{-301}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\

\mathbf{elif}\;y5 \leq 1.4 \cdot 10^{-129}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\

\mathbf{elif}\;y5 \leq 9.5 \cdot 10^{+157}:\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right)\\

\mathbf{else}:\\
\;\;\;\;a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if y5 < -5.4e14

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in t around inf

      \[\leadsto t \cdot \color{blue}{\left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \color{blue}{\left(a \cdot y5 - c \cdot y4\right)}\right) \]
      2. lower-*.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - \color{blue}{c \cdot y4}\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot \color{blue}{y4}\right)\right) \]
      4. lower-*.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right) \]
      5. lower-*.f6426.0

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right) \]
    7. Applied rewrites26.0%

      \[\leadsto t \cdot \color{blue}{\left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]

    if -5.4e14 < y5 < -2.7999999999999998e-94

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y5 around 0

      \[\leadsto \color{blue}{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right)\right) - \left(c \cdot \left(y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Applied rewrites32.0%

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

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \left(y \cdot y4\right)\right)\right)} \]
    5. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \color{blue}{\left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \left(y \cdot y4\right)\right)}\right) \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{c \cdot \left(y \cdot y4\right)}\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \color{blue}{\left(y \cdot y4\right)}\right)\right) \]
    6. Applied rewrites34.2%

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(\mathsf{fma}\left(j, y1 \cdot y4, z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \left(y \cdot y4\right)\right)\right)} \]
    7. Taylor expanded in y around inf

      \[\leadsto c \cdot \left(y \cdot \color{blue}{\left(y3 \cdot y4\right)}\right) \]
    8. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right) \]
      3. lower-*.f6417.5

        \[\leadsto c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right) \]
    9. Applied rewrites17.5%

      \[\leadsto c \cdot \left(y \cdot \color{blue}{\left(y3 \cdot y4\right)}\right) \]

    if -2.7999999999999998e-94 < y5 < -3.6999999999999998e-301

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

      \[\leadsto b \cdot \left(j \cdot \color{blue}{\left(t \cdot y4 - x \cdot y0\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \left(j \cdot \left(t \cdot y4 - \color{blue}{x \cdot y0}\right)\right) \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot \color{blue}{y0}\right)\right) \]
      3. lower-*.f64N/A

        \[\leadsto b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right) \]
      4. lower-*.f6427.3

        \[\leadsto b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right) \]
    7. Applied rewrites27.3%

      \[\leadsto b \cdot \left(j \cdot \color{blue}{\left(t \cdot y4 - x \cdot y0\right)}\right) \]

    if -3.6999999999999998e-301 < y5 < 1.4e-129

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

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

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

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

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

        \[\leadsto a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) \]
      5. lower-*.f6426.9

        \[\leadsto a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) \]
    7. Applied rewrites26.9%

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

    if 1.4e-129 < y5 < 9.4999999999999996e157

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in y4 around inf

      \[\leadsto y2 \cdot \left(y4 \cdot \color{blue}{\left(k \cdot y1 - c \cdot t\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \left(y4 \cdot \left(k \cdot y1 - \color{blue}{c \cdot t}\right)\right) \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot \color{blue}{t}\right)\right) \]
      3. lower-*.f64N/A

        \[\leadsto y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right) \]
      4. lower-*.f6427.0

        \[\leadsto y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right) \]
    7. Applied rewrites27.0%

      \[\leadsto y2 \cdot \left(y4 \cdot \color{blue}{\left(k \cdot y1 - c \cdot t\right)}\right) \]

    if 9.4999999999999996e157 < y5

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in a around inf

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(x \cdot y - t \cdot z\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto a \cdot \color{blue}{\left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(x \cdot y - t \cdot z\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(x \cdot y - t \cdot z\right)\right) - \color{blue}{-1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)}\right) \]
    4. Applied rewrites35.6%

      \[\leadsto \color{blue}{a \cdot \left(\mathsf{fma}\left(-1, y1 \cdot \left(x \cdot y2 - y3 \cdot z\right), b \cdot \left(x \cdot y - t \cdot z\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in y around inf

      \[\leadsto a \cdot \left(y \cdot \color{blue}{\left(b \cdot x - y3 \cdot y5\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto a \cdot \left(y \cdot \left(b \cdot x - \color{blue}{y3 \cdot y5}\right)\right) \]
      2. lower--.f64N/A

        \[\leadsto a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot \color{blue}{y5}\right)\right) \]
      3. lower-*.f64N/A

        \[\leadsto a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right) \]
      4. lower-*.f6426.5

        \[\leadsto a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right) \]
    7. Applied rewrites26.5%

      \[\leadsto a \cdot \left(y \cdot \color{blue}{\left(b \cdot x - y3 \cdot y5\right)}\right) \]
  3. Recombined 6 regimes into one program.
  4. Add Preprocessing

Alternative 17: 31.1% accurate, 4.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -4 \cdot 10^{+147}:\\ \;\;\;\;-1 \cdot \left(z \cdot \left(t \cdot \left(a \cdot b - c \cdot i\right)\right)\right)\\ \mathbf{elif}\;t \leq -5.4 \cdot 10^{-52}:\\ \;\;\;\;y2 \cdot \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\right)\\ \mathbf{elif}\;t \leq 3.1 \cdot 10^{-152}:\\ \;\;\;\;a \cdot \left(x \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right)\\ \mathbf{elif}\;t \leq 1.05 \cdot 10^{+96}:\\ \;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= t -4e+147)
   (* -1.0 (* z (* t (- (* a b) (* c i)))))
   (if (<= t -5.4e-52)
     (* y2 (* -1.0 (* a (- (* x y1) (* t y5)))))
     (if (<= t 3.1e-152)
       (* a (* x (fma -1.0 (* y1 y2) (* b y))))
       (if (<= t 1.05e+96)
         (* k (* y2 (- (* y1 y4) (* y0 y5))))
         (* b (* t (fma -1.0 (* a z) (* j y4)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (t <= -4e+147) {
		tmp = -1.0 * (z * (t * ((a * b) - (c * i))));
	} else if (t <= -5.4e-52) {
		tmp = y2 * (-1.0 * (a * ((x * y1) - (t * y5))));
	} else if (t <= 3.1e-152) {
		tmp = a * (x * fma(-1.0, (y1 * y2), (b * y)));
	} else if (t <= 1.05e+96) {
		tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
	} else {
		tmp = b * (t * fma(-1.0, (a * z), (j * y4)));
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (t <= -4e+147)
		tmp = Float64(-1.0 * Float64(z * Float64(t * Float64(Float64(a * b) - Float64(c * i)))));
	elseif (t <= -5.4e-52)
		tmp = Float64(y2 * Float64(-1.0 * Float64(a * Float64(Float64(x * y1) - Float64(t * y5)))));
	elseif (t <= 3.1e-152)
		tmp = Float64(a * Float64(x * fma(-1.0, Float64(y1 * y2), Float64(b * y))));
	elseif (t <= 1.05e+96)
		tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5))));
	else
		tmp = Float64(b * Float64(t * fma(-1.0, Float64(a * z), Float64(j * y4))));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -4e+147], N[(-1.0 * N[(z * N[(t * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5.4e-52], N[(y2 * N[(-1.0 * N[(a * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.1e-152], N[(a * N[(x * N[(-1.0 * N[(y1 * y2), $MachinePrecision] + N[(b * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.05e+96], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -4 \cdot 10^{+147}:\\
\;\;\;\;-1 \cdot \left(z \cdot \left(t \cdot \left(a \cdot b - c \cdot i\right)\right)\right)\\

\mathbf{elif}\;t \leq -5.4 \cdot 10^{-52}:\\
\;\;\;\;y2 \cdot \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\right)\\

\mathbf{elif}\;t \leq 3.1 \cdot 10^{-152}:\\
\;\;\;\;a \cdot \left(x \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right)\\

\mathbf{elif}\;t \leq 1.05 \cdot 10^{+96}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\

\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if t < -3.9999999999999999e147

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in z around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \color{blue}{\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)}\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{k \cdot \left(b \cdot y0 - i \cdot y1\right)}\right)\right) \]
    4. Applied rewrites37.8%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in t around inf

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

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

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

        \[\leadsto -1 \cdot \left(z \cdot \left(t \cdot \left(a \cdot b - c \cdot i\right)\right)\right) \]
      4. lower-*.f6426.4

        \[\leadsto -1 \cdot \left(z \cdot \left(t \cdot \left(a \cdot b - c \cdot i\right)\right)\right) \]
    7. Applied rewrites26.4%

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

    if -3.9999999999999999e147 < t < -5.40000000000000019e-52

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in a around -inf

      \[\leadsto y2 \cdot \left(-1 \cdot \color{blue}{\left(a \cdot \left(x \cdot y1 - t \cdot y5\right)\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto y2 \cdot \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - \color{blue}{t \cdot y5}\right)\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto y2 \cdot \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - t \cdot \color{blue}{y5}\right)\right)\right) \]
      4. lower-*.f64N/A

        \[\leadsto y2 \cdot \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\right) \]
      5. lower-*.f6426.2

        \[\leadsto y2 \cdot \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\right) \]
    7. Applied rewrites26.2%

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

    if -5.40000000000000019e-52 < t < 3.0999999999999998e-152

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in a around inf

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(x \cdot y - t \cdot z\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto a \cdot \color{blue}{\left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(x \cdot y - t \cdot z\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(x \cdot y - t \cdot z\right)\right) - \color{blue}{-1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)}\right) \]
    4. Applied rewrites35.6%

      \[\leadsto \color{blue}{a \cdot \left(\mathsf{fma}\left(-1, y1 \cdot \left(x \cdot y2 - y3 \cdot z\right), b \cdot \left(x \cdot y - t \cdot z\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in x around inf

      \[\leadsto a \cdot \left(x \cdot \color{blue}{\left(-1 \cdot \left(y1 \cdot y2\right) + b \cdot y\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto a \cdot \left(x \cdot \left(-1 \cdot \left(y1 \cdot y2\right) + \color{blue}{b \cdot y}\right)\right) \]
      2. lower-fma.f64N/A

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

        \[\leadsto a \cdot \left(x \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right) \]
      4. lower-*.f6426.9

        \[\leadsto a \cdot \left(x \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right) \]
    7. Applied rewrites26.9%

      \[\leadsto a \cdot \left(x \cdot \color{blue}{\mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)}\right) \]

    if 3.0999999999999998e-152 < t < 1.0500000000000001e96

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in k around inf

      \[\leadsto k \cdot \color{blue}{\left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto k \cdot \left(y2 \cdot \color{blue}{\left(y1 \cdot y4 - y0 \cdot y5\right)}\right) \]
      2. lower-*.f64N/A

        \[\leadsto k \cdot \left(y2 \cdot \left(y1 \cdot y4 - \color{blue}{y0 \cdot y5}\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot \color{blue}{y5}\right)\right) \]
      4. lower-*.f64N/A

        \[\leadsto k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) \]
      5. lower-*.f6427.6

        \[\leadsto k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) \]
    7. Applied rewrites27.6%

      \[\leadsto k \cdot \color{blue}{\left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]

    if 1.0500000000000001e96 < t

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

      \[\leadsto b \cdot \left(t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot z\right) + j \cdot y4\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

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

        \[\leadsto b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right) \]
      4. lower-*.f6427.4

        \[\leadsto b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right) \]
    7. Applied rewrites27.4%

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

Alternative 18: 31.1% accurate, 4.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -2.5 \cdot 10^{+76}:\\ \;\;\;\;i \cdot \left(t \cdot \mathsf{fma}\left(-1, j \cdot y5, c \cdot z\right)\right)\\ \mathbf{elif}\;t \leq -8.2 \cdot 10^{-118}:\\ \;\;\;\;y2 \cdot \left(y0 \cdot \mathsf{fma}\left(-1, k \cdot y5, c \cdot x\right)\right)\\ \mathbf{elif}\;t \leq 3.1 \cdot 10^{-152}:\\ \;\;\;\;a \cdot \left(x \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right)\\ \mathbf{elif}\;t \leq 1.05 \cdot 10^{+96}:\\ \;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= t -2.5e+76)
   (* i (* t (fma -1.0 (* j y5) (* c z))))
   (if (<= t -8.2e-118)
     (* y2 (* y0 (fma -1.0 (* k y5) (* c x))))
     (if (<= t 3.1e-152)
       (* a (* x (fma -1.0 (* y1 y2) (* b y))))
       (if (<= t 1.05e+96)
         (* k (* y2 (- (* y1 y4) (* y0 y5))))
         (* b (* t (fma -1.0 (* a z) (* j y4)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (t <= -2.5e+76) {
		tmp = i * (t * fma(-1.0, (j * y5), (c * z)));
	} else if (t <= -8.2e-118) {
		tmp = y2 * (y0 * fma(-1.0, (k * y5), (c * x)));
	} else if (t <= 3.1e-152) {
		tmp = a * (x * fma(-1.0, (y1 * y2), (b * y)));
	} else if (t <= 1.05e+96) {
		tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
	} else {
		tmp = b * (t * fma(-1.0, (a * z), (j * y4)));
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (t <= -2.5e+76)
		tmp = Float64(i * Float64(t * fma(-1.0, Float64(j * y5), Float64(c * z))));
	elseif (t <= -8.2e-118)
		tmp = Float64(y2 * Float64(y0 * fma(-1.0, Float64(k * y5), Float64(c * x))));
	elseif (t <= 3.1e-152)
		tmp = Float64(a * Float64(x * fma(-1.0, Float64(y1 * y2), Float64(b * y))));
	elseif (t <= 1.05e+96)
		tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5))));
	else
		tmp = Float64(b * Float64(t * fma(-1.0, Float64(a * z), Float64(j * y4))));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -2.5e+76], N[(i * N[(t * N[(-1.0 * N[(j * y5), $MachinePrecision] + N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -8.2e-118], N[(y2 * N[(y0 * N[(-1.0 * N[(k * y5), $MachinePrecision] + N[(c * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.1e-152], N[(a * N[(x * N[(-1.0 * N[(y1 * y2), $MachinePrecision] + N[(b * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.05e+96], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.5 \cdot 10^{+76}:\\
\;\;\;\;i \cdot \left(t \cdot \mathsf{fma}\left(-1, j \cdot y5, c \cdot z\right)\right)\\

\mathbf{elif}\;t \leq -8.2 \cdot 10^{-118}:\\
\;\;\;\;y2 \cdot \left(y0 \cdot \mathsf{fma}\left(-1, k \cdot y5, c \cdot x\right)\right)\\

\mathbf{elif}\;t \leq 3.1 \cdot 10^{-152}:\\
\;\;\;\;a \cdot \left(x \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right)\\

\mathbf{elif}\;t \leq 1.05 \cdot 10^{+96}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\

\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if t < -2.49999999999999996e76

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in i around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(\left(c \cdot \left(x \cdot y - t \cdot z\right) + y5 \cdot \left(j \cdot t - k \cdot y\right)\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

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

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

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

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

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

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

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

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

        \[\leadsto i \cdot \left(t \cdot \mathsf{fma}\left(-1, j \cdot y5, c \cdot z\right)\right) \]
      5. lower-*.f6427.0

        \[\leadsto i \cdot \left(t \cdot \mathsf{fma}\left(-1, j \cdot y5, c \cdot z\right)\right) \]
    7. Applied rewrites27.0%

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

    if -2.49999999999999996e76 < t < -8.2000000000000006e-118

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in y0 around inf

      \[\leadsto y2 \cdot \left(y0 \cdot \color{blue}{\left(-1 \cdot \left(k \cdot y5\right) + c \cdot x\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \left(y0 \cdot \left(-1 \cdot \left(k \cdot y5\right) + \color{blue}{c \cdot x}\right)\right) \]
      2. lower-fma.f64N/A

        \[\leadsto y2 \cdot \left(y0 \cdot \mathsf{fma}\left(-1, k \cdot \color{blue}{y5}, c \cdot x\right)\right) \]
      3. lower-*.f64N/A

        \[\leadsto y2 \cdot \left(y0 \cdot \mathsf{fma}\left(-1, k \cdot y5, c \cdot x\right)\right) \]
      4. lower-*.f6427.0

        \[\leadsto y2 \cdot \left(y0 \cdot \mathsf{fma}\left(-1, k \cdot y5, c \cdot x\right)\right) \]
    7. Applied rewrites27.0%

      \[\leadsto y2 \cdot \left(y0 \cdot \color{blue}{\mathsf{fma}\left(-1, k \cdot y5, c \cdot x\right)}\right) \]

    if -8.2000000000000006e-118 < t < 3.0999999999999998e-152

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in a around inf

      \[\leadsto \color{blue}{a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(x \cdot y - t \cdot z\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto a \cdot \color{blue}{\left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(x \cdot y - t \cdot z\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto a \cdot \left(\left(-1 \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + b \cdot \left(x \cdot y - t \cdot z\right)\right) - \color{blue}{-1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)}\right) \]
    4. Applied rewrites35.6%

      \[\leadsto \color{blue}{a \cdot \left(\mathsf{fma}\left(-1, y1 \cdot \left(x \cdot y2 - y3 \cdot z\right), b \cdot \left(x \cdot y - t \cdot z\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)} \]
    5. Taylor expanded in x around inf

      \[\leadsto a \cdot \left(x \cdot \color{blue}{\left(-1 \cdot \left(y1 \cdot y2\right) + b \cdot y\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto a \cdot \left(x \cdot \left(-1 \cdot \left(y1 \cdot y2\right) + \color{blue}{b \cdot y}\right)\right) \]
      2. lower-fma.f64N/A

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

        \[\leadsto a \cdot \left(x \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right) \]
      4. lower-*.f6426.9

        \[\leadsto a \cdot \left(x \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right) \]
    7. Applied rewrites26.9%

      \[\leadsto a \cdot \left(x \cdot \color{blue}{\mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)}\right) \]

    if 3.0999999999999998e-152 < t < 1.0500000000000001e96

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in k around inf

      \[\leadsto k \cdot \color{blue}{\left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto k \cdot \left(y2 \cdot \color{blue}{\left(y1 \cdot y4 - y0 \cdot y5\right)}\right) \]
      2. lower-*.f64N/A

        \[\leadsto k \cdot \left(y2 \cdot \left(y1 \cdot y4 - \color{blue}{y0 \cdot y5}\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot \color{blue}{y5}\right)\right) \]
      4. lower-*.f64N/A

        \[\leadsto k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) \]
      5. lower-*.f6427.6

        \[\leadsto k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) \]
    7. Applied rewrites27.6%

      \[\leadsto k \cdot \color{blue}{\left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]

    if 1.0500000000000001e96 < t

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

      \[\leadsto b \cdot \left(t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot z\right) + j \cdot y4\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

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

        \[\leadsto b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right) \]
      4. lower-*.f6427.4

        \[\leadsto b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right) \]
    7. Applied rewrites27.4%

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

Alternative 19: 31.0% accurate, 4.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\ \mathbf{if}\;y4 \leq -8.5 \cdot 10^{+80}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y4 \leq -8.1 \cdot 10^{-141}:\\ \;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\ \mathbf{elif}\;y4 \leq 1.8 \cdot 10^{+69}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\ \mathbf{elif}\;y4 \leq 8.5 \cdot 10^{+224}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1 (* c (* y4 (- (* y y3) (* t y2))))))
   (if (<= y4 -8.5e+80)
     t_1
     (if (<= y4 -8.1e-141)
       (* x (* y2 (- (* c y0) (* a y1))))
       (if (<= y4 1.8e+69)
         (* a (* b (- (* x y) (* t z))))
         (if (<= y4 8.5e+224) (* b (* y4 (- (* j t) (* k y)))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = c * (y4 * ((y * y3) - (t * y2)));
	double tmp;
	if (y4 <= -8.5e+80) {
		tmp = t_1;
	} else if (y4 <= -8.1e-141) {
		tmp = x * (y2 * ((c * y0) - (a * y1)));
	} else if (y4 <= 1.8e+69) {
		tmp = a * (b * ((x * y) - (t * z)));
	} else if (y4 <= 8.5e+224) {
		tmp = b * (y4 * ((j * t) - (k * y)));
	} else {
		tmp = t_1;
	}
	return tmp;
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: t_1
    real(8) :: tmp
    t_1 = c * (y4 * ((y * y3) - (t * y2)))
    if (y4 <= (-8.5d+80)) then
        tmp = t_1
    else if (y4 <= (-8.1d-141)) then
        tmp = x * (y2 * ((c * y0) - (a * y1)))
    else if (y4 <= 1.8d+69) then
        tmp = a * (b * ((x * y) - (t * z)))
    else if (y4 <= 8.5d+224) then
        tmp = b * (y4 * ((j * t) - (k * y)))
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = c * (y4 * ((y * y3) - (t * y2)));
	double tmp;
	if (y4 <= -8.5e+80) {
		tmp = t_1;
	} else if (y4 <= -8.1e-141) {
		tmp = x * (y2 * ((c * y0) - (a * y1)));
	} else if (y4 <= 1.8e+69) {
		tmp = a * (b * ((x * y) - (t * z)));
	} else if (y4 <= 8.5e+224) {
		tmp = b * (y4 * ((j * t) - (k * y)));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = c * (y4 * ((y * y3) - (t * y2)))
	tmp = 0
	if y4 <= -8.5e+80:
		tmp = t_1
	elif y4 <= -8.1e-141:
		tmp = x * (y2 * ((c * y0) - (a * y1)))
	elif y4 <= 1.8e+69:
		tmp = a * (b * ((x * y) - (t * z)))
	elif y4 <= 8.5e+224:
		tmp = b * (y4 * ((j * t) - (k * y)))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))))
	tmp = 0.0
	if (y4 <= -8.5e+80)
		tmp = t_1;
	elseif (y4 <= -8.1e-141)
		tmp = Float64(x * Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1))));
	elseif (y4 <= 1.8e+69)
		tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z))));
	elseif (y4 <= 8.5e+224)
		tmp = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y))));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = c * (y4 * ((y * y3) - (t * y2)));
	tmp = 0.0;
	if (y4 <= -8.5e+80)
		tmp = t_1;
	elseif (y4 <= -8.1e-141)
		tmp = x * (y2 * ((c * y0) - (a * y1)));
	elseif (y4 <= 1.8e+69)
		tmp = a * (b * ((x * y) - (t * z)));
	elseif (y4 <= 8.5e+224)
		tmp = b * (y4 * ((j * t) - (k * y)));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -8.5e+80], t$95$1, If[LessEqual[y4, -8.1e-141], N[(x * N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.8e+69], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 8.5e+224], N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{if}\;y4 \leq -8.5 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y4 \leq -8.1 \cdot 10^{-141}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\

\mathbf{elif}\;y4 \leq 1.8 \cdot 10^{+69}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\

\mathbf{elif}\;y4 \leq 8.5 \cdot 10^{+224}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y4 < -8.50000000000000007e80 or 8.50000000000000046e224 < y4

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in c around inf

      \[\leadsto \color{blue}{c \cdot \left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto c \cdot \color{blue}{\left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto c \cdot \left(\left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) + y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - \color{blue}{y4 \cdot \left(t \cdot y2 - y \cdot y3\right)}\right) \]
    4. Applied rewrites36.3%

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

      \[\leadsto c \cdot \left(y4 \cdot \color{blue}{\left(y \cdot y3 - t \cdot y2\right)}\right) \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto c \cdot \left(y4 \cdot \left(y \cdot y3 - \color{blue}{t \cdot y2}\right)\right) \]
      2. lower--.f64N/A

        \[\leadsto c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot \color{blue}{y2}\right)\right) \]
      3. lower-*.f64N/A

        \[\leadsto c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right) \]
      4. lower-*.f6426.8

        \[\leadsto c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right) \]
    7. Applied rewrites26.8%

      \[\leadsto c \cdot \left(y4 \cdot \color{blue}{\left(y \cdot y3 - t \cdot y2\right)}\right) \]

    if -8.50000000000000007e80 < y4 < -8.0999999999999996e-141

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in x around inf

      \[\leadsto x \cdot \color{blue}{\left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto x \cdot \left(y2 \cdot \color{blue}{\left(c \cdot y0 - a \cdot y1\right)}\right) \]
      2. lower-*.f64N/A

        \[\leadsto x \cdot \left(y2 \cdot \left(c \cdot y0 - \color{blue}{a \cdot y1}\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot \color{blue}{y1}\right)\right) \]
      4. lower-*.f64N/A

        \[\leadsto x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) \]
      5. lower-*.f6426.7

        \[\leadsto x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) \]
    7. Applied rewrites26.7%

      \[\leadsto x \cdot \color{blue}{\left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)} \]

    if -8.0999999999999996e-141 < y4 < 1.8000000000000001e69

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

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

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

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

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

        \[\leadsto a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) \]
      5. lower-*.f6426.9

        \[\leadsto a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) \]
    7. Applied rewrites26.9%

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

    if 1.8000000000000001e69 < y4 < 8.50000000000000046e224

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

      \[\leadsto b \cdot \color{blue}{\left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto b \cdot \left(y4 \cdot \left(j \cdot t - \color{blue}{k \cdot y}\right)\right) \]
      3. lower--.f64N/A

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

        \[\leadsto b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) \]
      5. lower-*.f6427.0

        \[\leadsto b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) \]
    7. Applied rewrites27.0%

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

Alternative 20: 29.4% accurate, 5.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.25 \cdot 10^{+194}:\\ \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\ \mathbf{elif}\;z \leq 5.3 \cdot 10^{-154}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\ \mathbf{elif}\;z \leq 2.1 \cdot 10^{-11}:\\ \;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(a \cdot \left(x \cdot y - t \cdot z\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= z -1.25e+194)
   (* i (* z (- (* c t) (* k y1))))
   (if (<= z 5.3e-154)
     (* b (* y4 (- (* j t) (* k y))))
     (if (<= z 2.1e-11)
       (* k (* y2 (- (* y1 y4) (* y0 y5))))
       (* b (* a (- (* x y) (* t z))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (z <= -1.25e+194) {
		tmp = i * (z * ((c * t) - (k * y1)));
	} else if (z <= 5.3e-154) {
		tmp = b * (y4 * ((j * t) - (k * y)));
	} else if (z <= 2.1e-11) {
		tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
	} else {
		tmp = b * (a * ((x * y) - (t * z)));
	}
	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, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if (z <= (-1.25d+194)) then
        tmp = i * (z * ((c * t) - (k * y1)))
    else if (z <= 5.3d-154) then
        tmp = b * (y4 * ((j * t) - (k * y)))
    else if (z <= 2.1d-11) then
        tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
    else
        tmp = b * (a * ((x * y) - (t * z)))
    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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (z <= -1.25e+194) {
		tmp = i * (z * ((c * t) - (k * y1)));
	} else if (z <= 5.3e-154) {
		tmp = b * (y4 * ((j * t) - (k * y)));
	} else if (z <= 2.1e-11) {
		tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
	} else {
		tmp = b * (a * ((x * y) - (t * z)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if z <= -1.25e+194:
		tmp = i * (z * ((c * t) - (k * y1)))
	elif z <= 5.3e-154:
		tmp = b * (y4 * ((j * t) - (k * y)))
	elif z <= 2.1e-11:
		tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
	else:
		tmp = b * (a * ((x * y) - (t * z)))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (z <= -1.25e+194)
		tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1))));
	elseif (z <= 5.3e-154)
		tmp = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y))));
	elseif (z <= 2.1e-11)
		tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5))));
	else
		tmp = Float64(b * Float64(a * Float64(Float64(x * y) - Float64(t * z))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if (z <= -1.25e+194)
		tmp = i * (z * ((c * t) - (k * y1)));
	elseif (z <= 5.3e-154)
		tmp = b * (y4 * ((j * t) - (k * y)));
	elseif (z <= 2.1e-11)
		tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
	else
		tmp = b * (a * ((x * y) - (t * z)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -1.25e+194], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.3e-154], N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.1e-11], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.25 \cdot 10^{+194}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\

\mathbf{elif}\;z \leq 5.3 \cdot 10^{-154}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\

\mathbf{elif}\;z \leq 2.1 \cdot 10^{-11}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if z < -1.24999999999999997e194

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in z around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \color{blue}{\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)}\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{k \cdot \left(b \cdot y0 - i \cdot y1\right)}\right)\right) \]
    4. Applied rewrites37.8%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in i around -inf

      \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - \color{blue}{k \cdot y1}\right)\right) \]
      3. lower--.f64N/A

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

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
      5. lower-*.f6426.9

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
    7. Applied rewrites26.9%

      \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]

    if -1.24999999999999997e194 < z < 5.3000000000000002e-154

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

      \[\leadsto b \cdot \color{blue}{\left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto b \cdot \left(y4 \cdot \left(j \cdot t - \color{blue}{k \cdot y}\right)\right) \]
      3. lower--.f64N/A

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

        \[\leadsto b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) \]
      5. lower-*.f6427.0

        \[\leadsto b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) \]
    7. Applied rewrites27.0%

      \[\leadsto b \cdot \color{blue}{\left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]

    if 5.3000000000000002e-154 < z < 2.0999999999999999e-11

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in k around inf

      \[\leadsto k \cdot \color{blue}{\left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto k \cdot \left(y2 \cdot \color{blue}{\left(y1 \cdot y4 - y0 \cdot y5\right)}\right) \]
      2. lower-*.f64N/A

        \[\leadsto k \cdot \left(y2 \cdot \left(y1 \cdot y4 - \color{blue}{y0 \cdot y5}\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot \color{blue}{y5}\right)\right) \]
      4. lower-*.f64N/A

        \[\leadsto k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) \]
      5. lower-*.f6427.6

        \[\leadsto k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) \]
    7. Applied rewrites27.6%

      \[\leadsto k \cdot \color{blue}{\left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]

    if 2.0999999999999999e-11 < z

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

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

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

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

        \[\leadsto b \cdot \left(a \cdot \left(x \cdot y - t \cdot z\right)\right) \]
      4. lower-*.f6426.7

        \[\leadsto b \cdot \left(a \cdot \left(x \cdot y - t \cdot z\right)\right) \]
    7. Applied rewrites26.7%

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

Alternative 21: 29.3% accurate, 5.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.25 \cdot 10^{+194}:\\ \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\ \mathbf{elif}\;z \leq 5.3 \cdot 10^{-154}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\ \mathbf{elif}\;z \leq 2.1 \cdot 10^{-11}:\\ \;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= z -1.25e+194)
   (* i (* z (- (* c t) (* k y1))))
   (if (<= z 5.3e-154)
     (* b (* y4 (- (* j t) (* k y))))
     (if (<= z 2.1e-11)
       (* k (* y2 (- (* y1 y4) (* y0 y5))))
       (* a (* b (- (* x y) (* t z))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (z <= -1.25e+194) {
		tmp = i * (z * ((c * t) - (k * y1)));
	} else if (z <= 5.3e-154) {
		tmp = b * (y4 * ((j * t) - (k * y)));
	} else if (z <= 2.1e-11) {
		tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
	} else {
		tmp = a * (b * ((x * y) - (t * z)));
	}
	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, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if (z <= (-1.25d+194)) then
        tmp = i * (z * ((c * t) - (k * y1)))
    else if (z <= 5.3d-154) then
        tmp = b * (y4 * ((j * t) - (k * y)))
    else if (z <= 2.1d-11) then
        tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
    else
        tmp = a * (b * ((x * y) - (t * z)))
    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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (z <= -1.25e+194) {
		tmp = i * (z * ((c * t) - (k * y1)));
	} else if (z <= 5.3e-154) {
		tmp = b * (y4 * ((j * t) - (k * y)));
	} else if (z <= 2.1e-11) {
		tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
	} else {
		tmp = a * (b * ((x * y) - (t * z)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if z <= -1.25e+194:
		tmp = i * (z * ((c * t) - (k * y1)))
	elif z <= 5.3e-154:
		tmp = b * (y4 * ((j * t) - (k * y)))
	elif z <= 2.1e-11:
		tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
	else:
		tmp = a * (b * ((x * y) - (t * z)))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (z <= -1.25e+194)
		tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1))));
	elseif (z <= 5.3e-154)
		tmp = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y))));
	elseif (z <= 2.1e-11)
		tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5))));
	else
		tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if (z <= -1.25e+194)
		tmp = i * (z * ((c * t) - (k * y1)));
	elseif (z <= 5.3e-154)
		tmp = b * (y4 * ((j * t) - (k * y)));
	elseif (z <= 2.1e-11)
		tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
	else
		tmp = a * (b * ((x * y) - (t * z)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -1.25e+194], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.3e-154], N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.1e-11], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.25 \cdot 10^{+194}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\

\mathbf{elif}\;z \leq 5.3 \cdot 10^{-154}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\

\mathbf{elif}\;z \leq 2.1 \cdot 10^{-11}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if z < -1.24999999999999997e194

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in z around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \color{blue}{\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)}\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{k \cdot \left(b \cdot y0 - i \cdot y1\right)}\right)\right) \]
    4. Applied rewrites37.8%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in i around -inf

      \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - \color{blue}{k \cdot y1}\right)\right) \]
      3. lower--.f64N/A

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

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
      5. lower-*.f6426.9

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
    7. Applied rewrites26.9%

      \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]

    if -1.24999999999999997e194 < z < 5.3000000000000002e-154

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

      \[\leadsto b \cdot \color{blue}{\left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto b \cdot \left(y4 \cdot \left(j \cdot t - \color{blue}{k \cdot y}\right)\right) \]
      3. lower--.f64N/A

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

        \[\leadsto b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) \]
      5. lower-*.f6427.0

        \[\leadsto b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) \]
    7. Applied rewrites27.0%

      \[\leadsto b \cdot \color{blue}{\left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]

    if 5.3000000000000002e-154 < z < 2.0999999999999999e-11

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in k around inf

      \[\leadsto k \cdot \color{blue}{\left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto k \cdot \left(y2 \cdot \color{blue}{\left(y1 \cdot y4 - y0 \cdot y5\right)}\right) \]
      2. lower-*.f64N/A

        \[\leadsto k \cdot \left(y2 \cdot \left(y1 \cdot y4 - \color{blue}{y0 \cdot y5}\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot \color{blue}{y5}\right)\right) \]
      4. lower-*.f64N/A

        \[\leadsto k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) \]
      5. lower-*.f6427.6

        \[\leadsto k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) \]
    7. Applied rewrites27.6%

      \[\leadsto k \cdot \color{blue}{\left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)} \]

    if 2.0999999999999999e-11 < z

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

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

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

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

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

        \[\leadsto a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) \]
      5. lower-*.f6426.9

        \[\leadsto a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) \]
    7. Applied rewrites26.9%

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

Alternative 22: 29.3% accurate, 5.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.25 \cdot 10^{+194}:\\ \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\ \mathbf{elif}\;z \leq 7.4 \cdot 10^{-6}:\\ \;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= z -1.25e+194)
   (* i (* z (- (* c t) (* k y1))))
   (if (<= z 7.4e-6)
     (* b (* y4 (- (* j t) (* k y))))
     (* a (* b (- (* x y) (* t z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (z <= -1.25e+194) {
		tmp = i * (z * ((c * t) - (k * y1)));
	} else if (z <= 7.4e-6) {
		tmp = b * (y4 * ((j * t) - (k * y)));
	} else {
		tmp = a * (b * ((x * y) - (t * z)));
	}
	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, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if (z <= (-1.25d+194)) then
        tmp = i * (z * ((c * t) - (k * y1)))
    else if (z <= 7.4d-6) then
        tmp = b * (y4 * ((j * t) - (k * y)))
    else
        tmp = a * (b * ((x * y) - (t * z)))
    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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (z <= -1.25e+194) {
		tmp = i * (z * ((c * t) - (k * y1)));
	} else if (z <= 7.4e-6) {
		tmp = b * (y4 * ((j * t) - (k * y)));
	} else {
		tmp = a * (b * ((x * y) - (t * z)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if z <= -1.25e+194:
		tmp = i * (z * ((c * t) - (k * y1)))
	elif z <= 7.4e-6:
		tmp = b * (y4 * ((j * t) - (k * y)))
	else:
		tmp = a * (b * ((x * y) - (t * z)))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (z <= -1.25e+194)
		tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1))));
	elseif (z <= 7.4e-6)
		tmp = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y))));
	else
		tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if (z <= -1.25e+194)
		tmp = i * (z * ((c * t) - (k * y1)));
	elseif (z <= 7.4e-6)
		tmp = b * (y4 * ((j * t) - (k * y)));
	else
		tmp = a * (b * ((x * y) - (t * z)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -1.25e+194], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.4e-6], N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.25 \cdot 10^{+194}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\

\mathbf{elif}\;z \leq 7.4 \cdot 10^{-6}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -1.24999999999999997e194

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in z around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \color{blue}{\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)}\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{k \cdot \left(b \cdot y0 - i \cdot y1\right)}\right)\right) \]
    4. Applied rewrites37.8%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in i around -inf

      \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - \color{blue}{k \cdot y1}\right)\right) \]
      3. lower--.f64N/A

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

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
      5. lower-*.f6426.9

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
    7. Applied rewrites26.9%

      \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]

    if -1.24999999999999997e194 < z < 7.4000000000000003e-6

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

      \[\leadsto b \cdot \color{blue}{\left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto b \cdot \left(y4 \cdot \left(j \cdot t - \color{blue}{k \cdot y}\right)\right) \]
      3. lower--.f64N/A

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

        \[\leadsto b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) \]
      5. lower-*.f6427.0

        \[\leadsto b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) \]
    7. Applied rewrites27.0%

      \[\leadsto b \cdot \color{blue}{\left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)} \]

    if 7.4000000000000003e-6 < z

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

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

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

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

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

        \[\leadsto a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) \]
      5. lower-*.f6426.9

        \[\leadsto a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) \]
    7. Applied rewrites26.9%

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

Alternative 23: 29.0% accurate, 5.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -3.5 \cdot 10^{+155}:\\ \;\;\;\;i \cdot \left(c \cdot \left(t \cdot z\right)\right)\\ \mathbf{elif}\;t \leq -2.6 \cdot 10^{+125}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;t \leq 1.75 \cdot 10^{+95}:\\ \;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)\\ \mathbf{else}:\\ \;\;\;\;-1 \cdot \left(a \cdot \left(\left(b \cdot t\right) \cdot z\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= t -3.5e+155)
   (* i (* c (* t z)))
   (if (<= t -2.6e+125)
     (* c (* y (* y3 y4)))
     (if (<= t 1.75e+95)
       (* i (* k (- (* y y5) (* y1 z))))
       (* -1.0 (* a (* (* b t) z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (t <= -3.5e+155) {
		tmp = i * (c * (t * z));
	} else if (t <= -2.6e+125) {
		tmp = c * (y * (y3 * y4));
	} else if (t <= 1.75e+95) {
		tmp = i * (k * ((y * y5) - (y1 * z)));
	} else {
		tmp = -1.0 * (a * ((b * t) * z));
	}
	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, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if (t <= (-3.5d+155)) then
        tmp = i * (c * (t * z))
    else if (t <= (-2.6d+125)) then
        tmp = c * (y * (y3 * y4))
    else if (t <= 1.75d+95) then
        tmp = i * (k * ((y * y5) - (y1 * z)))
    else
        tmp = (-1.0d0) * (a * ((b * t) * z))
    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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (t <= -3.5e+155) {
		tmp = i * (c * (t * z));
	} else if (t <= -2.6e+125) {
		tmp = c * (y * (y3 * y4));
	} else if (t <= 1.75e+95) {
		tmp = i * (k * ((y * y5) - (y1 * z)));
	} else {
		tmp = -1.0 * (a * ((b * t) * z));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if t <= -3.5e+155:
		tmp = i * (c * (t * z))
	elif t <= -2.6e+125:
		tmp = c * (y * (y3 * y4))
	elif t <= 1.75e+95:
		tmp = i * (k * ((y * y5) - (y1 * z)))
	else:
		tmp = -1.0 * (a * ((b * t) * z))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (t <= -3.5e+155)
		tmp = Float64(i * Float64(c * Float64(t * z)));
	elseif (t <= -2.6e+125)
		tmp = Float64(c * Float64(y * Float64(y3 * y4)));
	elseif (t <= 1.75e+95)
		tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(y1 * z))));
	else
		tmp = Float64(-1.0 * Float64(a * Float64(Float64(b * t) * z)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if (t <= -3.5e+155)
		tmp = i * (c * (t * z));
	elseif (t <= -2.6e+125)
		tmp = c * (y * (y3 * y4));
	elseif (t <= 1.75e+95)
		tmp = i * (k * ((y * y5) - (y1 * z)));
	else
		tmp = -1.0 * (a * ((b * t) * z));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -3.5e+155], N[(i * N[(c * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.6e+125], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.75e+95], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-1.0 * N[(a * N[(N[(b * t), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.5 \cdot 10^{+155}:\\
\;\;\;\;i \cdot \left(c \cdot \left(t \cdot z\right)\right)\\

\mathbf{elif}\;t \leq -2.6 \cdot 10^{+125}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\

\mathbf{elif}\;t \leq 1.75 \cdot 10^{+95}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)\\

\mathbf{else}:\\
\;\;\;\;-1 \cdot \left(a \cdot \left(\left(b \cdot t\right) \cdot z\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -3.49999999999999985e155

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in z around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \color{blue}{\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)}\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{k \cdot \left(b \cdot y0 - i \cdot y1\right)}\right)\right) \]
    4. Applied rewrites37.8%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in i around -inf

      \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - \color{blue}{k \cdot y1}\right)\right) \]
      3. lower--.f64N/A

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

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
      5. lower-*.f6426.9

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
    7. Applied rewrites26.9%

      \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]
    8. Taylor expanded in t around inf

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

        \[\leadsto i \cdot \left(c \cdot \left(t \cdot z\right)\right) \]
      2. lower-*.f6417.0

        \[\leadsto i \cdot \left(c \cdot \left(t \cdot z\right)\right) \]
    10. Applied rewrites17.0%

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

    if -3.49999999999999985e155 < t < -2.60000000000000003e125

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y5 around 0

      \[\leadsto \color{blue}{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right)\right) - \left(c \cdot \left(y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Applied rewrites32.0%

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

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \left(y \cdot y4\right)\right)\right)} \]
    5. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \color{blue}{\left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \left(y \cdot y4\right)\right)}\right) \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{c \cdot \left(y \cdot y4\right)}\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \color{blue}{\left(y \cdot y4\right)}\right)\right) \]
    6. Applied rewrites34.2%

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(\mathsf{fma}\left(j, y1 \cdot y4, z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \left(y \cdot y4\right)\right)\right)} \]
    7. Taylor expanded in y around inf

      \[\leadsto c \cdot \left(y \cdot \color{blue}{\left(y3 \cdot y4\right)}\right) \]
    8. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right) \]
      3. lower-*.f6417.5

        \[\leadsto c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right) \]
    9. Applied rewrites17.5%

      \[\leadsto c \cdot \left(y \cdot \color{blue}{\left(y3 \cdot y4\right)}\right) \]

    if -2.60000000000000003e125 < t < 1.75e95

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in i around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(\left(c \cdot \left(x \cdot y - t \cdot z\right) + y5 \cdot \left(j \cdot t - k \cdot y\right)\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

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

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

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

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

      \[\leadsto i \cdot \color{blue}{\left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto i \cdot \left(k \cdot \color{blue}{\left(y \cdot y5 - y1 \cdot z\right)}\right) \]
      2. lower-*.f64N/A

        \[\leadsto i \cdot \left(k \cdot \left(y \cdot y5 - \color{blue}{y1 \cdot z}\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto i \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot \color{blue}{z}\right)\right) \]
      4. lower-*.f64N/A

        \[\leadsto i \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right) \]
      5. lower-*.f6427.4

        \[\leadsto i \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right) \]
    7. Applied rewrites27.4%

      \[\leadsto i \cdot \color{blue}{\left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)} \]

    if 1.75e95 < t

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in z around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \color{blue}{\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)}\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{k \cdot \left(b \cdot y0 - i \cdot y1\right)}\right)\right) \]
    4. Applied rewrites37.8%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in t around inf

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

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

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

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

        \[\leadsto -1 \cdot \left(t \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right)\right) \]
      5. lower-*.f6426.4

        \[\leadsto -1 \cdot \left(t \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right)\right) \]
    7. Applied rewrites26.4%

      \[\leadsto -1 \cdot \left(t \cdot \color{blue}{\left(z \cdot \left(a \cdot b - c \cdot i\right)\right)}\right) \]
    8. Taylor expanded in a around inf

      \[\leadsto -1 \cdot \left(a \cdot \left(b \cdot \color{blue}{\left(t \cdot z\right)}\right)\right) \]
    9. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto -1 \cdot \left(a \cdot \left(b \cdot \left(t \cdot z\right)\right)\right) \]
      3. lower-*.f6417.5

        \[\leadsto -1 \cdot \left(a \cdot \left(b \cdot \left(t \cdot z\right)\right)\right) \]
    10. Applied rewrites17.5%

      \[\leadsto -1 \cdot \left(a \cdot \left(b \cdot \color{blue}{\left(t \cdot z\right)}\right)\right) \]
    11. Step-by-step derivation
      1. lift-*.f64N/A

        \[\leadsto -1 \cdot \left(a \cdot \left(b \cdot \left(t \cdot z\right)\right)\right) \]
      2. lift-*.f64N/A

        \[\leadsto -1 \cdot \left(a \cdot \left(b \cdot \left(t \cdot z\right)\right)\right) \]
      3. associate-*r*N/A

        \[\leadsto -1 \cdot \left(a \cdot \left(\left(b \cdot t\right) \cdot z\right)\right) \]
      4. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(a \cdot \left(\left(b \cdot t\right) \cdot z\right)\right) \]
      5. lower-*.f6417.4

        \[\leadsto -1 \cdot \left(a \cdot \left(\left(b \cdot t\right) \cdot z\right)\right) \]
    12. Applied rewrites17.4%

      \[\leadsto -1 \cdot \left(a \cdot \left(\left(b \cdot t\right) \cdot z\right)\right) \]
  3. Recombined 4 regimes into one program.
  4. Add Preprocessing

Alternative 24: 28.9% accurate, 7.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y1 \leq 2.65 \cdot 10^{+112}:\\ \;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= y1 2.65e+112)
   (* a (* b (- (* x y) (* t z))))
   (* i (* z (- (* c t) (* k y1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (y1 <= 2.65e+112) {
		tmp = a * (b * ((x * y) - (t * z)));
	} else {
		tmp = i * (z * ((c * t) - (k * y1)));
	}
	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, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if (y1 <= 2.65d+112) then
        tmp = a * (b * ((x * y) - (t * z)))
    else
        tmp = i * (z * ((c * t) - (k * y1)))
    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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (y1 <= 2.65e+112) {
		tmp = a * (b * ((x * y) - (t * z)));
	} else {
		tmp = i * (z * ((c * t) - (k * y1)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if y1 <= 2.65e+112:
		tmp = a * (b * ((x * y) - (t * z)))
	else:
		tmp = i * (z * ((c * t) - (k * y1)))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (y1 <= 2.65e+112)
		tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z))));
	else
		tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if (y1 <= 2.65e+112)
		tmp = a * (b * ((x * y) - (t * z)));
	else
		tmp = i * (z * ((c * t) - (k * y1)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y1, 2.65e+112], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y1 \leq 2.65 \cdot 10^{+112}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\

\mathbf{else}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y1 < 2.65000000000000009e112

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto b \cdot \left(\left(a \cdot \left(x \cdot y - t \cdot z\right) + y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - \color{blue}{y0 \cdot \left(j \cdot x - k \cdot z\right)}\right) \]
    4. Applied rewrites38.0%

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

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

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

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

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

        \[\leadsto a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) \]
      5. lower-*.f6426.9

        \[\leadsto a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right) \]
    7. Applied rewrites26.9%

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

    if 2.65000000000000009e112 < y1

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in z around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \color{blue}{\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)}\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{k \cdot \left(b \cdot y0 - i \cdot y1\right)}\right)\right) \]
    4. Applied rewrites37.8%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in i around -inf

      \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - \color{blue}{k \cdot y1}\right)\right) \]
      3. lower--.f64N/A

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

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
      5. lower-*.f6426.9

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
    7. Applied rewrites26.9%

      \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 25: 28.5% accurate, 5.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -3.2 \cdot 10^{-61}:\\ \;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\ \mathbf{elif}\;t \leq 1.75 \cdot 10^{+95}:\\ \;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)\\ \mathbf{else}:\\ \;\;\;\;-1 \cdot \left(a \cdot \left(\left(b \cdot t\right) \cdot z\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= t -3.2e-61)
   (* i (* z (- (* c t) (* k y1))))
   (if (<= t 1.75e+95)
     (* i (* k (- (* y y5) (* y1 z))))
     (* -1.0 (* a (* (* b t) z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (t <= -3.2e-61) {
		tmp = i * (z * ((c * t) - (k * y1)));
	} else if (t <= 1.75e+95) {
		tmp = i * (k * ((y * y5) - (y1 * z)));
	} else {
		tmp = -1.0 * (a * ((b * t) * z));
	}
	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, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if (t <= (-3.2d-61)) then
        tmp = i * (z * ((c * t) - (k * y1)))
    else if (t <= 1.75d+95) then
        tmp = i * (k * ((y * y5) - (y1 * z)))
    else
        tmp = (-1.0d0) * (a * ((b * t) * z))
    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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (t <= -3.2e-61) {
		tmp = i * (z * ((c * t) - (k * y1)));
	} else if (t <= 1.75e+95) {
		tmp = i * (k * ((y * y5) - (y1 * z)));
	} else {
		tmp = -1.0 * (a * ((b * t) * z));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if t <= -3.2e-61:
		tmp = i * (z * ((c * t) - (k * y1)))
	elif t <= 1.75e+95:
		tmp = i * (k * ((y * y5) - (y1 * z)))
	else:
		tmp = -1.0 * (a * ((b * t) * z))
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (t <= -3.2e-61)
		tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1))));
	elseif (t <= 1.75e+95)
		tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(y1 * z))));
	else
		tmp = Float64(-1.0 * Float64(a * Float64(Float64(b * t) * z)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if (t <= -3.2e-61)
		tmp = i * (z * ((c * t) - (k * y1)));
	elseif (t <= 1.75e+95)
		tmp = i * (k * ((y * y5) - (y1 * z)));
	else
		tmp = -1.0 * (a * ((b * t) * z));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -3.2e-61], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.75e+95], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-1.0 * N[(a * N[(N[(b * t), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.2 \cdot 10^{-61}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\

\mathbf{elif}\;t \leq 1.75 \cdot 10^{+95}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)\\

\mathbf{else}:\\
\;\;\;\;-1 \cdot \left(a \cdot \left(\left(b \cdot t\right) \cdot z\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -3.2000000000000001e-61

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in z around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \color{blue}{\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)}\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{k \cdot \left(b \cdot y0 - i \cdot y1\right)}\right)\right) \]
    4. Applied rewrites37.8%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in i around -inf

      \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - \color{blue}{k \cdot y1}\right)\right) \]
      3. lower--.f64N/A

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

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
      5. lower-*.f6426.9

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
    7. Applied rewrites26.9%

      \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]

    if -3.2000000000000001e-61 < t < 1.75e95

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in i around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(\left(c \cdot \left(x \cdot y - t \cdot z\right) + y5 \cdot \left(j \cdot t - k \cdot y\right)\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

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

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

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

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

      \[\leadsto i \cdot \color{blue}{\left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto i \cdot \left(k \cdot \color{blue}{\left(y \cdot y5 - y1 \cdot z\right)}\right) \]
      2. lower-*.f64N/A

        \[\leadsto i \cdot \left(k \cdot \left(y \cdot y5 - \color{blue}{y1 \cdot z}\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto i \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot \color{blue}{z}\right)\right) \]
      4. lower-*.f64N/A

        \[\leadsto i \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right) \]
      5. lower-*.f6427.4

        \[\leadsto i \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right) \]
    7. Applied rewrites27.4%

      \[\leadsto i \cdot \color{blue}{\left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)} \]

    if 1.75e95 < t

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in z around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \color{blue}{\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)}\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{k \cdot \left(b \cdot y0 - i \cdot y1\right)}\right)\right) \]
    4. Applied rewrites37.8%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in t around inf

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

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

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

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

        \[\leadsto -1 \cdot \left(t \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right)\right) \]
      5. lower-*.f6426.4

        \[\leadsto -1 \cdot \left(t \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right)\right) \]
    7. Applied rewrites26.4%

      \[\leadsto -1 \cdot \left(t \cdot \color{blue}{\left(z \cdot \left(a \cdot b - c \cdot i\right)\right)}\right) \]
    8. Taylor expanded in a around inf

      \[\leadsto -1 \cdot \left(a \cdot \left(b \cdot \color{blue}{\left(t \cdot z\right)}\right)\right) \]
    9. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto -1 \cdot \left(a \cdot \left(b \cdot \left(t \cdot z\right)\right)\right) \]
      3. lower-*.f6417.5

        \[\leadsto -1 \cdot \left(a \cdot \left(b \cdot \left(t \cdot z\right)\right)\right) \]
    10. Applied rewrites17.5%

      \[\leadsto -1 \cdot \left(a \cdot \left(b \cdot \color{blue}{\left(t \cdot z\right)}\right)\right) \]
    11. Step-by-step derivation
      1. lift-*.f64N/A

        \[\leadsto -1 \cdot \left(a \cdot \left(b \cdot \left(t \cdot z\right)\right)\right) \]
      2. lift-*.f64N/A

        \[\leadsto -1 \cdot \left(a \cdot \left(b \cdot \left(t \cdot z\right)\right)\right) \]
      3. associate-*r*N/A

        \[\leadsto -1 \cdot \left(a \cdot \left(\left(b \cdot t\right) \cdot z\right)\right) \]
      4. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(a \cdot \left(\left(b \cdot t\right) \cdot z\right)\right) \]
      5. lower-*.f6417.4

        \[\leadsto -1 \cdot \left(a \cdot \left(\left(b \cdot t\right) \cdot z\right)\right) \]
    12. Applied rewrites17.4%

      \[\leadsto -1 \cdot \left(a \cdot \left(\left(b \cdot t\right) \cdot z\right)\right) \]
  3. Recombined 3 regimes into one program.
  4. Add Preprocessing

Alternative 26: 21.8% accurate, 6.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -3.5 \cdot 10^{+155}:\\ \;\;\;\;i \cdot \left(c \cdot \left(t \cdot z\right)\right)\\ \mathbf{elif}\;t \leq 2.4 \cdot 10^{-26}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;t \leq 5 \cdot 10^{+145}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;-\left(\left(t \cdot z\right) \cdot b\right) \cdot a\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= t -3.5e+155)
   (* i (* c (* t z)))
   (if (<= t 2.4e-26)
     (* c (* y (* y3 y4)))
     (if (<= t 5e+145) (* a (* t (* y2 y5))) (- (* (* (* t z) b) a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (t <= -3.5e+155) {
		tmp = i * (c * (t * z));
	} else if (t <= 2.4e-26) {
		tmp = c * (y * (y3 * y4));
	} else if (t <= 5e+145) {
		tmp = a * (t * (y2 * y5));
	} else {
		tmp = -(((t * z) * b) * 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, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if (t <= (-3.5d+155)) then
        tmp = i * (c * (t * z))
    else if (t <= 2.4d-26) then
        tmp = c * (y * (y3 * y4))
    else if (t <= 5d+145) then
        tmp = a * (t * (y2 * y5))
    else
        tmp = -(((t * z) * b) * 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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (t <= -3.5e+155) {
		tmp = i * (c * (t * z));
	} else if (t <= 2.4e-26) {
		tmp = c * (y * (y3 * y4));
	} else if (t <= 5e+145) {
		tmp = a * (t * (y2 * y5));
	} else {
		tmp = -(((t * z) * b) * a);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if t <= -3.5e+155:
		tmp = i * (c * (t * z))
	elif t <= 2.4e-26:
		tmp = c * (y * (y3 * y4))
	elif t <= 5e+145:
		tmp = a * (t * (y2 * y5))
	else:
		tmp = -(((t * z) * b) * a)
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (t <= -3.5e+155)
		tmp = Float64(i * Float64(c * Float64(t * z)));
	elseif (t <= 2.4e-26)
		tmp = Float64(c * Float64(y * Float64(y3 * y4)));
	elseif (t <= 5e+145)
		tmp = Float64(a * Float64(t * Float64(y2 * y5)));
	else
		tmp = Float64(-Float64(Float64(Float64(t * z) * b) * a));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if (t <= -3.5e+155)
		tmp = i * (c * (t * z));
	elseif (t <= 2.4e-26)
		tmp = c * (y * (y3 * y4));
	elseif (t <= 5e+145)
		tmp = a * (t * (y2 * y5));
	else
		tmp = -(((t * z) * b) * a);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -3.5e+155], N[(i * N[(c * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.4e-26], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5e+145], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], (-N[(N[(N[(t * z), $MachinePrecision] * b), $MachinePrecision] * a), $MachinePrecision])]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.5 \cdot 10^{+155}:\\
\;\;\;\;i \cdot \left(c \cdot \left(t \cdot z\right)\right)\\

\mathbf{elif}\;t \leq 2.4 \cdot 10^{-26}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\

\mathbf{elif}\;t \leq 5 \cdot 10^{+145}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\

\mathbf{else}:\\
\;\;\;\;-\left(\left(t \cdot z\right) \cdot b\right) \cdot a\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -3.49999999999999985e155

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in z around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \color{blue}{\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)}\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{k \cdot \left(b \cdot y0 - i \cdot y1\right)}\right)\right) \]
    4. Applied rewrites37.8%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in i around -inf

      \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - \color{blue}{k \cdot y1}\right)\right) \]
      3. lower--.f64N/A

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

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
      5. lower-*.f6426.9

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
    7. Applied rewrites26.9%

      \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]
    8. Taylor expanded in t around inf

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

        \[\leadsto i \cdot \left(c \cdot \left(t \cdot z\right)\right) \]
      2. lower-*.f6417.0

        \[\leadsto i \cdot \left(c \cdot \left(t \cdot z\right)\right) \]
    10. Applied rewrites17.0%

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

    if -3.49999999999999985e155 < t < 2.4000000000000001e-26

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y5 around 0

      \[\leadsto \color{blue}{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right)\right) - \left(c \cdot \left(y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Applied rewrites32.0%

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

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \left(y \cdot y4\right)\right)\right)} \]
    5. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \color{blue}{\left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \left(y \cdot y4\right)\right)}\right) \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{c \cdot \left(y \cdot y4\right)}\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \color{blue}{\left(y \cdot y4\right)}\right)\right) \]
    6. Applied rewrites34.2%

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(\mathsf{fma}\left(j, y1 \cdot y4, z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \left(y \cdot y4\right)\right)\right)} \]
    7. Taylor expanded in y around inf

      \[\leadsto c \cdot \left(y \cdot \color{blue}{\left(y3 \cdot y4\right)}\right) \]
    8. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right) \]
      3. lower-*.f6417.5

        \[\leadsto c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right) \]
    9. Applied rewrites17.5%

      \[\leadsto c \cdot \left(y \cdot \color{blue}{\left(y3 \cdot y4\right)}\right) \]

    if 2.4000000000000001e-26 < t < 4.99999999999999967e145

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in t around inf

      \[\leadsto t \cdot \color{blue}{\left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \color{blue}{\left(a \cdot y5 - c \cdot y4\right)}\right) \]
      2. lower-*.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - \color{blue}{c \cdot y4}\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot \color{blue}{y4}\right)\right) \]
      4. lower-*.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right) \]
      5. lower-*.f6426.0

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right) \]
    7. Applied rewrites26.0%

      \[\leadsto t \cdot \color{blue}{\left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    8. Taylor expanded in a around inf

      \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(y2 \cdot y5\right)}\right) \]
    9. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto a \cdot \left(t \cdot \left(y2 \cdot \color{blue}{y5}\right)\right) \]
      2. lower-*.f64N/A

        \[\leadsto a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right) \]
      3. lower-*.f6417.2

        \[\leadsto a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right) \]
    10. Applied rewrites17.2%

      \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(y2 \cdot y5\right)}\right) \]

    if 4.99999999999999967e145 < t

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in z around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \color{blue}{\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)}\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{k \cdot \left(b \cdot y0 - i \cdot y1\right)}\right)\right) \]
    4. Applied rewrites37.8%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in t around inf

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

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

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

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

        \[\leadsto -1 \cdot \left(t \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right)\right) \]
      5. lower-*.f6426.4

        \[\leadsto -1 \cdot \left(t \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right)\right) \]
    7. Applied rewrites26.4%

      \[\leadsto -1 \cdot \left(t \cdot \color{blue}{\left(z \cdot \left(a \cdot b - c \cdot i\right)\right)}\right) \]
    8. Taylor expanded in a around inf

      \[\leadsto -1 \cdot \left(a \cdot \left(b \cdot \color{blue}{\left(t \cdot z\right)}\right)\right) \]
    9. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto -1 \cdot \left(a \cdot \left(b \cdot \left(t \cdot z\right)\right)\right) \]
      3. lower-*.f6417.5

        \[\leadsto -1 \cdot \left(a \cdot \left(b \cdot \left(t \cdot z\right)\right)\right) \]
    10. Applied rewrites17.5%

      \[\leadsto -1 \cdot \left(a \cdot \left(b \cdot \color{blue}{\left(t \cdot z\right)}\right)\right) \]
    11. Step-by-step derivation
      1. lift-*.f64N/A

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

        \[\leadsto \mathsf{neg}\left(a \cdot \left(b \cdot \left(t \cdot z\right)\right)\right) \]
    12. Applied rewrites17.5%

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

Alternative 27: 21.8% accurate, 6.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -3.5 \cdot 10^{+155}:\\ \;\;\;\;i \cdot \left(c \cdot \left(t \cdot z\right)\right)\\ \mathbf{elif}\;t \leq 2.4 \cdot 10^{-26}:\\ \;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\ \mathbf{elif}\;t \leq 5.5 \cdot 10^{+137}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(\left(i \cdot t\right) \cdot z\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (if (<= t -3.5e+155)
   (* i (* c (* t z)))
   (if (<= t 2.4e-26)
     (* c (* y (* y3 y4)))
     (if (<= t 5.5e+137) (* a (* t (* y2 y5))) (* c (* (* i t) z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (t <= -3.5e+155) {
		tmp = i * (c * (t * z));
	} else if (t <= 2.4e-26) {
		tmp = c * (y * (y3 * y4));
	} else if (t <= 5.5e+137) {
		tmp = a * (t * (y2 * y5));
	} else {
		tmp = c * ((i * t) * z);
	}
	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, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: tmp
    if (t <= (-3.5d+155)) then
        tmp = i * (c * (t * z))
    else if (t <= 2.4d-26) then
        tmp = c * (y * (y3 * y4))
    else if (t <= 5.5d+137) then
        tmp = a * (t * (y2 * y5))
    else
        tmp = c * ((i * t) * z)
    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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double tmp;
	if (t <= -3.5e+155) {
		tmp = i * (c * (t * z));
	} else if (t <= 2.4e-26) {
		tmp = c * (y * (y3 * y4));
	} else if (t <= 5.5e+137) {
		tmp = a * (t * (y2 * y5));
	} else {
		tmp = c * ((i * t) * z);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	tmp = 0
	if t <= -3.5e+155:
		tmp = i * (c * (t * z))
	elif t <= 2.4e-26:
		tmp = c * (y * (y3 * y4))
	elif t <= 5.5e+137:
		tmp = a * (t * (y2 * y5))
	else:
		tmp = c * ((i * t) * z)
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0
	if (t <= -3.5e+155)
		tmp = Float64(i * Float64(c * Float64(t * z)));
	elseif (t <= 2.4e-26)
		tmp = Float64(c * Float64(y * Float64(y3 * y4)));
	elseif (t <= 5.5e+137)
		tmp = Float64(a * Float64(t * Float64(y2 * y5)));
	else
		tmp = Float64(c * Float64(Float64(i * t) * z));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = 0.0;
	if (t <= -3.5e+155)
		tmp = i * (c * (t * z));
	elseif (t <= 2.4e-26)
		tmp = c * (y * (y3 * y4));
	elseif (t <= 5.5e+137)
		tmp = a * (t * (y2 * y5));
	else
		tmp = c * ((i * t) * z);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -3.5e+155], N[(i * N[(c * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.4e-26], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.5e+137], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(i * t), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.5 \cdot 10^{+155}:\\
\;\;\;\;i \cdot \left(c \cdot \left(t \cdot z\right)\right)\\

\mathbf{elif}\;t \leq 2.4 \cdot 10^{-26}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\

\mathbf{elif}\;t \leq 5.5 \cdot 10^{+137}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\

\mathbf{else}:\\
\;\;\;\;c \cdot \left(\left(i \cdot t\right) \cdot z\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -3.49999999999999985e155

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in z around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \color{blue}{\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)}\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{k \cdot \left(b \cdot y0 - i \cdot y1\right)}\right)\right) \]
    4. Applied rewrites37.8%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in i around -inf

      \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - \color{blue}{k \cdot y1}\right)\right) \]
      3. lower--.f64N/A

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

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
      5. lower-*.f6426.9

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
    7. Applied rewrites26.9%

      \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]
    8. Taylor expanded in t around inf

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

        \[\leadsto i \cdot \left(c \cdot \left(t \cdot z\right)\right) \]
      2. lower-*.f6417.0

        \[\leadsto i \cdot \left(c \cdot \left(t \cdot z\right)\right) \]
    10. Applied rewrites17.0%

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

    if -3.49999999999999985e155 < t < 2.4000000000000001e-26

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y5 around 0

      \[\leadsto \color{blue}{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right)\right) - \left(c \cdot \left(y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Applied rewrites32.0%

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

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \left(y \cdot y4\right)\right)\right)} \]
    5. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \color{blue}{\left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \left(y \cdot y4\right)\right)}\right) \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{c \cdot \left(y \cdot y4\right)}\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \color{blue}{\left(y \cdot y4\right)}\right)\right) \]
    6. Applied rewrites34.2%

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(\mathsf{fma}\left(j, y1 \cdot y4, z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \left(y \cdot y4\right)\right)\right)} \]
    7. Taylor expanded in y around inf

      \[\leadsto c \cdot \left(y \cdot \color{blue}{\left(y3 \cdot y4\right)}\right) \]
    8. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right) \]
      3. lower-*.f6417.5

        \[\leadsto c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right) \]
    9. Applied rewrites17.5%

      \[\leadsto c \cdot \left(y \cdot \color{blue}{\left(y3 \cdot y4\right)}\right) \]

    if 2.4000000000000001e-26 < t < 5.5000000000000002e137

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in t around inf

      \[\leadsto t \cdot \color{blue}{\left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \color{blue}{\left(a \cdot y5 - c \cdot y4\right)}\right) \]
      2. lower-*.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - \color{blue}{c \cdot y4}\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot \color{blue}{y4}\right)\right) \]
      4. lower-*.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right) \]
      5. lower-*.f6426.0

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right) \]
    7. Applied rewrites26.0%

      \[\leadsto t \cdot \color{blue}{\left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    8. Taylor expanded in a around inf

      \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(y2 \cdot y5\right)}\right) \]
    9. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto a \cdot \left(t \cdot \left(y2 \cdot \color{blue}{y5}\right)\right) \]
      2. lower-*.f64N/A

        \[\leadsto a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right) \]
      3. lower-*.f6417.2

        \[\leadsto a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right) \]
    10. Applied rewrites17.2%

      \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(y2 \cdot y5\right)}\right) \]

    if 5.5000000000000002e137 < t

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in z around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \color{blue}{\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)}\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{k \cdot \left(b \cdot y0 - i \cdot y1\right)}\right)\right) \]
    4. Applied rewrites37.8%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in i around -inf

      \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - \color{blue}{k \cdot y1}\right)\right) \]
      3. lower--.f64N/A

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

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
      5. lower-*.f6426.9

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
    7. Applied rewrites26.9%

      \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]
    8. Taylor expanded in t around inf

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

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

        \[\leadsto c \cdot \left(i \cdot \left(t \cdot z\right)\right) \]
      3. lower-*.f6416.8

        \[\leadsto c \cdot \left(i \cdot \left(t \cdot z\right)\right) \]
    10. Applied rewrites16.8%

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

        \[\leadsto c \cdot \left(i \cdot \left(t \cdot z\right)\right) \]
      2. lift-*.f64N/A

        \[\leadsto c \cdot \left(i \cdot \left(t \cdot z\right)\right) \]
      3. associate-*r*N/A

        \[\leadsto c \cdot \left(\left(i \cdot t\right) \cdot z\right) \]
      4. lower-*.f64N/A

        \[\leadsto c \cdot \left(\left(i \cdot t\right) \cdot z\right) \]
      5. lower-*.f6417.0

        \[\leadsto c \cdot \left(\left(i \cdot t\right) \cdot z\right) \]
    12. Applied rewrites17.0%

      \[\leadsto c \cdot \left(\left(i \cdot t\right) \cdot z\right) \]
  3. Recombined 4 regimes into one program.
  4. Add Preprocessing

Alternative 28: 21.6% accurate, 6.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := i \cdot \left(c \cdot \left(t \cdot z\right)\right)\\ \mathbf{if}\;z \leq -9.2 \cdot 10^{+108}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -7.2 \cdot 10^{+48}:\\ \;\;\;\;a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right)\\ \mathbf{elif}\;z \leq 4.2 \cdot 10^{-42}:\\ \;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1 (* i (* c (* t z)))))
   (if (<= z -9.2e+108)
     t_1
     (if (<= z -7.2e+48)
       (* a (* y1 (* y3 z)))
       (if (<= z 4.2e-42) (* t (* a (* y2 y5))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = i * (c * (t * z));
	double tmp;
	if (z <= -9.2e+108) {
		tmp = t_1;
	} else if (z <= -7.2e+48) {
		tmp = a * (y1 * (y3 * z));
	} else if (z <= 4.2e-42) {
		tmp = t * (a * (y2 * y5));
	} else {
		tmp = t_1;
	}
	return tmp;
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: t_1
    real(8) :: tmp
    t_1 = i * (c * (t * z))
    if (z <= (-9.2d+108)) then
        tmp = t_1
    else if (z <= (-7.2d+48)) then
        tmp = a * (y1 * (y3 * z))
    else if (z <= 4.2d-42) then
        tmp = t * (a * (y2 * y5))
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = i * (c * (t * z));
	double tmp;
	if (z <= -9.2e+108) {
		tmp = t_1;
	} else if (z <= -7.2e+48) {
		tmp = a * (y1 * (y3 * z));
	} else if (z <= 4.2e-42) {
		tmp = t * (a * (y2 * y5));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = i * (c * (t * z))
	tmp = 0
	if z <= -9.2e+108:
		tmp = t_1
	elif z <= -7.2e+48:
		tmp = a * (y1 * (y3 * z))
	elif z <= 4.2e-42:
		tmp = t * (a * (y2 * y5))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(i * Float64(c * Float64(t * z)))
	tmp = 0.0
	if (z <= -9.2e+108)
		tmp = t_1;
	elseif (z <= -7.2e+48)
		tmp = Float64(a * Float64(y1 * Float64(y3 * z)));
	elseif (z <= 4.2e-42)
		tmp = Float64(t * Float64(a * Float64(y2 * y5)));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = i * (c * (t * z));
	tmp = 0.0;
	if (z <= -9.2e+108)
		tmp = t_1;
	elseif (z <= -7.2e+48)
		tmp = a * (y1 * (y3 * z));
	elseif (z <= 4.2e-42)
		tmp = t * (a * (y2 * y5));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(i * N[(c * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -9.2e+108], t$95$1, If[LessEqual[z, -7.2e+48], N[(a * N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.2e-42], N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := i \cdot \left(c \cdot \left(t \cdot z\right)\right)\\
\mathbf{if}\;z \leq -9.2 \cdot 10^{+108}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq -7.2 \cdot 10^{+48}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right)\\

\mathbf{elif}\;z \leq 4.2 \cdot 10^{-42}:\\
\;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -9.1999999999999996e108 or 4.20000000000000013e-42 < z

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in z around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \color{blue}{\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)}\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{k \cdot \left(b \cdot y0 - i \cdot y1\right)}\right)\right) \]
    4. Applied rewrites37.8%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in i around -inf

      \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - \color{blue}{k \cdot y1}\right)\right) \]
      3. lower--.f64N/A

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

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
      5. lower-*.f6426.9

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
    7. Applied rewrites26.9%

      \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]
    8. Taylor expanded in t around inf

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

        \[\leadsto i \cdot \left(c \cdot \left(t \cdot z\right)\right) \]
      2. lower-*.f6417.0

        \[\leadsto i \cdot \left(c \cdot \left(t \cdot z\right)\right) \]
    10. Applied rewrites17.0%

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

    if -9.1999999999999996e108 < z < -7.19999999999999967e48

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y5 around 0

      \[\leadsto \color{blue}{\left(b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right) + \left(y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + \left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - t \cdot z\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right)\right) - \left(c \cdot \left(y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)\right)} \]
    3. Applied rewrites32.0%

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

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \left(y \cdot y4\right)\right)\right)} \]
    5. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \color{blue}{\left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \left(y \cdot y4\right)\right)}\right) \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{c \cdot \left(y \cdot y4\right)}\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(y3 \cdot \left(\left(j \cdot \left(y1 \cdot y4\right) + z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \color{blue}{\left(y \cdot y4\right)}\right)\right) \]
    6. Applied rewrites34.2%

      \[\leadsto -1 \cdot \color{blue}{\left(y3 \cdot \left(\mathsf{fma}\left(j, y1 \cdot y4, z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \left(y \cdot y4\right)\right)\right)} \]
    7. Taylor expanded in a around inf

      \[\leadsto a \cdot \left(y1 \cdot \color{blue}{\left(y3 \cdot z\right)}\right) \]
    8. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right) \]
      3. lower-*.f6416.6

        \[\leadsto a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right) \]
    9. Applied rewrites16.6%

      \[\leadsto a \cdot \left(y1 \cdot \color{blue}{\left(y3 \cdot z\right)}\right) \]

    if -7.19999999999999967e48 < z < 4.20000000000000013e-42

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in t around inf

      \[\leadsto t \cdot \color{blue}{\left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \color{blue}{\left(a \cdot y5 - c \cdot y4\right)}\right) \]
      2. lower-*.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - \color{blue}{c \cdot y4}\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot \color{blue}{y4}\right)\right) \]
      4. lower-*.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right) \]
      5. lower-*.f6426.0

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right) \]
    7. Applied rewrites26.0%

      \[\leadsto t \cdot \color{blue}{\left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    8. Taylor expanded in a around inf

      \[\leadsto t \cdot \left(a \cdot \left(y2 \cdot \color{blue}{y5}\right)\right) \]
    9. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right) \]
      2. lower-*.f6417.1

        \[\leadsto t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right) \]
    10. Applied rewrites17.1%

      \[\leadsto t \cdot \left(a \cdot \left(y2 \cdot \color{blue}{y5}\right)\right) \]
  3. Recombined 3 regimes into one program.
  4. Add Preprocessing

Alternative 29: 21.3% accurate, 7.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := i \cdot \left(c \cdot \left(t \cdot z\right)\right)\\ \mathbf{if}\;z \leq -5.8 \cdot 10^{+51}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 4.2 \cdot 10^{-42}:\\ \;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1 (* i (* c (* t z)))))
   (if (<= z -5.8e+51) t_1 (if (<= z 4.2e-42) (* t (* a (* y2 y5))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = i * (c * (t * z));
	double tmp;
	if (z <= -5.8e+51) {
		tmp = t_1;
	} else if (z <= 4.2e-42) {
		tmp = t * (a * (y2 * y5));
	} else {
		tmp = t_1;
	}
	return tmp;
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: t_1
    real(8) :: tmp
    t_1 = i * (c * (t * z))
    if (z <= (-5.8d+51)) then
        tmp = t_1
    else if (z <= 4.2d-42) then
        tmp = t * (a * (y2 * y5))
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = i * (c * (t * z));
	double tmp;
	if (z <= -5.8e+51) {
		tmp = t_1;
	} else if (z <= 4.2e-42) {
		tmp = t * (a * (y2 * y5));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = i * (c * (t * z))
	tmp = 0
	if z <= -5.8e+51:
		tmp = t_1
	elif z <= 4.2e-42:
		tmp = t * (a * (y2 * y5))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(i * Float64(c * Float64(t * z)))
	tmp = 0.0
	if (z <= -5.8e+51)
		tmp = t_1;
	elseif (z <= 4.2e-42)
		tmp = Float64(t * Float64(a * Float64(y2 * y5)));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = i * (c * (t * z));
	tmp = 0.0;
	if (z <= -5.8e+51)
		tmp = t_1;
	elseif (z <= 4.2e-42)
		tmp = t * (a * (y2 * y5));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(i * N[(c * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.8e+51], t$95$1, If[LessEqual[z, 4.2e-42], N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := i \cdot \left(c \cdot \left(t \cdot z\right)\right)\\
\mathbf{if}\;z \leq -5.8 \cdot 10^{+51}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq 4.2 \cdot 10^{-42}:\\
\;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -5.7999999999999997e51 or 4.20000000000000013e-42 < z

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in z around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \color{blue}{\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)}\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{k \cdot \left(b \cdot y0 - i \cdot y1\right)}\right)\right) \]
    4. Applied rewrites37.8%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in i around -inf

      \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - \color{blue}{k \cdot y1}\right)\right) \]
      3. lower--.f64N/A

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

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
      5. lower-*.f6426.9

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
    7. Applied rewrites26.9%

      \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]
    8. Taylor expanded in t around inf

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

        \[\leadsto i \cdot \left(c \cdot \left(t \cdot z\right)\right) \]
      2. lower-*.f6417.0

        \[\leadsto i \cdot \left(c \cdot \left(t \cdot z\right)\right) \]
    10. Applied rewrites17.0%

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

    if -5.7999999999999997e51 < z < 4.20000000000000013e-42

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in t around inf

      \[\leadsto t \cdot \color{blue}{\left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \color{blue}{\left(a \cdot y5 - c \cdot y4\right)}\right) \]
      2. lower-*.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - \color{blue}{c \cdot y4}\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot \color{blue}{y4}\right)\right) \]
      4. lower-*.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right) \]
      5. lower-*.f6426.0

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right) \]
    7. Applied rewrites26.0%

      \[\leadsto t \cdot \color{blue}{\left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    8. Taylor expanded in a around inf

      \[\leadsto t \cdot \left(a \cdot \left(y2 \cdot \color{blue}{y5}\right)\right) \]
    9. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right) \]
      2. lower-*.f6417.1

        \[\leadsto t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right) \]
    10. Applied rewrites17.1%

      \[\leadsto t \cdot \left(a \cdot \left(y2 \cdot \color{blue}{y5}\right)\right) \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 30: 21.2% accurate, 7.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := i \cdot \left(c \cdot \left(t \cdot z\right)\right)\\ \mathbf{if}\;z \leq -2.4 \cdot 10^{+50}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 3.4 \cdot 10^{-42}:\\ \;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (let* ((t_1 (* i (* c (* t z)))))
   (if (<= z -2.4e+50) t_1 (if (<= z 3.4e-42) (* a (* t (* y2 y5))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = i * (c * (t * z));
	double tmp;
	if (z <= -2.4e+50) {
		tmp = t_1;
	} else if (z <= 3.4e-42) {
		tmp = a * (t * (y2 * y5));
	} else {
		tmp = t_1;
	}
	return tmp;
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    real(8) :: t_1
    real(8) :: tmp
    t_1 = i * (c * (t * z))
    if (z <= (-2.4d+50)) then
        tmp = t_1
    else if (z <= 3.4d-42) then
        tmp = a * (t * (y2 * y5))
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	double t_1 = i * (c * (t * z));
	double tmp;
	if (z <= -2.4e+50) {
		tmp = t_1;
	} else if (z <= 3.4e-42) {
		tmp = a * (t * (y2 * y5));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	t_1 = i * (c * (t * z))
	tmp = 0
	if z <= -2.4e+50:
		tmp = t_1
	elif z <= 3.4e-42:
		tmp = a * (t * (y2 * y5))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = Float64(i * Float64(c * Float64(t * z)))
	tmp = 0.0
	if (z <= -2.4e+50)
		tmp = t_1;
	elseif (z <= 3.4e-42)
		tmp = Float64(a * Float64(t * Float64(y2 * y5)));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	t_1 = i * (c * (t * z));
	tmp = 0.0;
	if (z <= -2.4e+50)
		tmp = t_1;
	elseif (z <= 3.4e-42)
		tmp = a * (t * (y2 * y5));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(i * N[(c * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.4e+50], t$95$1, If[LessEqual[z, 3.4e-42], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := i \cdot \left(c \cdot \left(t \cdot z\right)\right)\\
\mathbf{if}\;z \leq -2.4 \cdot 10^{+50}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq 3.4 \cdot 10^{-42}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -2.4000000000000002e50 or 3.40000000000000022e-42 < z

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in z around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto -1 \cdot \color{blue}{\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
      2. lower-*.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)}\right) \]
      3. lower--.f64N/A

        \[\leadsto -1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{k \cdot \left(b \cdot y0 - i \cdot y1\right)}\right)\right) \]
    4. Applied rewrites37.8%

      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    5. Taylor expanded in i around -inf

      \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

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

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - \color{blue}{k \cdot y1}\right)\right) \]
      3. lower--.f64N/A

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

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
      5. lower-*.f6426.9

        \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
    7. Applied rewrites26.9%

      \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]
    8. Taylor expanded in t around inf

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

        \[\leadsto i \cdot \left(c \cdot \left(t \cdot z\right)\right) \]
      2. lower-*.f6417.0

        \[\leadsto i \cdot \left(c \cdot \left(t \cdot z\right)\right) \]
    10. Applied rewrites17.0%

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

    if -2.4000000000000002e50 < z < 3.40000000000000022e-42

    1. Initial program 30.1%

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
    2. Taylor expanded in y2 around inf

      \[\leadsto \color{blue}{y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    3. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto y2 \cdot \color{blue}{\left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
      2. lower--.f64N/A

        \[\leadsto y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{t \cdot \left(c \cdot y4 - a \cdot y5\right)}\right) \]
    4. Applied rewrites37.0%

      \[\leadsto \color{blue}{y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)} \]
    5. Taylor expanded in t around inf

      \[\leadsto t \cdot \color{blue}{\left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \color{blue}{\left(a \cdot y5 - c \cdot y4\right)}\right) \]
      2. lower-*.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - \color{blue}{c \cdot y4}\right)\right) \]
      3. lower--.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot \color{blue}{y4}\right)\right) \]
      4. lower-*.f64N/A

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right) \]
      5. lower-*.f6426.0

        \[\leadsto t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right) \]
    7. Applied rewrites26.0%

      \[\leadsto t \cdot \color{blue}{\left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)} \]
    8. Taylor expanded in a around inf

      \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(y2 \cdot y5\right)}\right) \]
    9. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto a \cdot \left(t \cdot \left(y2 \cdot \color{blue}{y5}\right)\right) \]
      2. lower-*.f64N/A

        \[\leadsto a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right) \]
      3. lower-*.f6417.2

        \[\leadsto a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right) \]
    10. Applied rewrites17.2%

      \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(y2 \cdot y5\right)}\right) \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 31: 16.8% accurate, 13.6× speedup?

\[\begin{array}{l} \\ \left(i \cdot c\right) \cdot \left(t \cdot z\right) \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (* (* i c) (* t z)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	return (i * c) * (t * z);
}
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, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    code = (i * c) * (t * z)
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
	return (i * c) * (t * z);
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	return (i * c) * (t * z)
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	return Float64(Float64(i * c) * Float64(t * z))
end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = (i * c) * (t * z);
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(i * c), $MachinePrecision] * N[(t * z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left(i \cdot c\right) \cdot \left(t \cdot z\right)
\end{array}
Derivation
  1. Initial program 30.1%

    \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
  2. Taylor expanded in z around -inf

    \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
  3. Step-by-step derivation
    1. lower-*.f64N/A

      \[\leadsto -1 \cdot \color{blue}{\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    2. lower-*.f64N/A

      \[\leadsto -1 \cdot \left(z \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)}\right) \]
    3. lower--.f64N/A

      \[\leadsto -1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{k \cdot \left(b \cdot y0 - i \cdot y1\right)}\right)\right) \]
  4. Applied rewrites37.8%

    \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
  5. Taylor expanded in i around -inf

    \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]
  6. Step-by-step derivation
    1. lower-*.f64N/A

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

      \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - \color{blue}{k \cdot y1}\right)\right) \]
    3. lower--.f64N/A

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

      \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
    5. lower-*.f6426.9

      \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
  7. Applied rewrites26.9%

    \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]
  8. Taylor expanded in t around inf

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

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

      \[\leadsto c \cdot \left(i \cdot \left(t \cdot z\right)\right) \]
    3. lower-*.f6416.8

      \[\leadsto c \cdot \left(i \cdot \left(t \cdot z\right)\right) \]
  10. Applied rewrites16.8%

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

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

      \[\leadsto c \cdot \left(i \cdot \left(t \cdot z\right)\right) \]
    3. associate-*r*N/A

      \[\leadsto \left(c \cdot i\right) \cdot \left(t \cdot z\right) \]
    4. lower-*.f64N/A

      \[\leadsto \left(c \cdot i\right) \cdot \left(t \cdot z\right) \]
    5. *-commutativeN/A

      \[\leadsto \left(i \cdot c\right) \cdot \left(t \cdot z\right) \]
    6. lower-*.f6416.1

      \[\leadsto \left(i \cdot c\right) \cdot \left(t \cdot z\right) \]
  12. Applied rewrites16.1%

    \[\leadsto \left(i \cdot c\right) \cdot \left(t \cdot z\right) \]
  13. Add Preprocessing

Alternative 32: 16.1% accurate, 13.6× speedup?

\[\begin{array}{l} \\ c \cdot \left(i \cdot \left(t \cdot z\right)\right) \end{array} \]
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
 :precision binary64
 (* c (* i (* t z))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
	return c * (i * (t * z));
}
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, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
    real(8), intent (in) :: y0
    real(8), intent (in) :: y1
    real(8), intent (in) :: y2
    real(8), intent (in) :: y3
    real(8), intent (in) :: y4
    real(8), intent (in) :: y5
    code = c * (i * (t * z))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
	return c * (i * (t * z));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5):
	return c * (i * (t * z))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	return Float64(c * Float64(i * Float64(t * z)))
end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
	tmp = c * (i * (t * z));
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(c * N[(i * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
c \cdot \left(i \cdot \left(t \cdot z\right)\right)
\end{array}
Derivation
  1. Initial program 30.1%

    \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \]
  2. Taylor expanded in z around -inf

    \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
  3. Step-by-step derivation
    1. lower-*.f64N/A

      \[\leadsto -1 \cdot \color{blue}{\left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
    2. lower-*.f64N/A

      \[\leadsto -1 \cdot \left(z \cdot \color{blue}{\left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)}\right) \]
    3. lower--.f64N/A

      \[\leadsto -1 \cdot \left(z \cdot \left(\left(t \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - \color{blue}{k \cdot \left(b \cdot y0 - i \cdot y1\right)}\right)\right) \]
  4. Applied rewrites37.8%

    \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)} \]
  5. Taylor expanded in i around -inf

    \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]
  6. Step-by-step derivation
    1. lower-*.f64N/A

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

      \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - \color{blue}{k \cdot y1}\right)\right) \]
    3. lower--.f64N/A

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

      \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
    5. lower-*.f6426.9

      \[\leadsto i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right) \]
  7. Applied rewrites26.9%

    \[\leadsto i \cdot \color{blue}{\left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)} \]
  8. Taylor expanded in t around inf

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

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

      \[\leadsto c \cdot \left(i \cdot \left(t \cdot z\right)\right) \]
    3. lower-*.f6416.8

      \[\leadsto c \cdot \left(i \cdot \left(t \cdot z\right)\right) \]
  10. Applied rewrites16.8%

    \[\leadsto c \cdot \left(i \cdot \color{blue}{\left(t \cdot z\right)}\right) \]
  11. Add Preprocessing

Reproduce

?
herbie shell --seed 2025142 
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
  :name "Linear.Matrix:det44 from linear-1.19.1.3"
  :precision binary64
  (+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (* (- (* x j) (* z k)) (- (* y0 b) (* y1 i)))) (* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a)))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))