Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, J

Percentage Accurate: 79.5% → 94.1%
Time: 6.5s
Alternatives: 19
Speedup: 0.9×

Specification

?
\[\begin{array}{l} \\ \frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \end{array} \]
(FPCore (x y z t a b c)
 :precision binary64
 (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)))
double code(double x, double y, double z, double t, double a, double b, double c) {
	return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
}
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)
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
    code = ((((x * 9.0d0) * y) - (((z * 4.0d0) * t) * a)) + b) / (z * c)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
}
def code(x, y, z, t, a, b, c):
	return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c)
function code(x, y, z, t, a, b, c)
	return Float64(Float64(Float64(Float64(Float64(x * 9.0) * y) - Float64(Float64(Float64(z * 4.0) * t) * a)) + b) / Float64(z * c))
end
function tmp = code(x, y, z, t, a, b, c)
	tmp = ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
end
code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(N[(N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision] - N[(N[(N[(z * 4.0), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c}
\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 19 alternatives:

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

Initial Program: 79.5% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \end{array} \]
(FPCore (x y z t a b c)
 :precision binary64
 (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)))
double code(double x, double y, double z, double t, double a, double b, double c) {
	return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
}
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)
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
    code = ((((x * 9.0d0) * y) - (((z * 4.0d0) * t) * a)) + b) / (z * c)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
	return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
}
def code(x, y, z, t, a, b, c):
	return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c)
function code(x, y, z, t, a, b, c)
	return Float64(Float64(Float64(Float64(Float64(x * 9.0) * y) - Float64(Float64(Float64(z * 4.0) * t) * a)) + b) / Float64(z * c))
end
function tmp = code(x, y, z, t, a, b, c)
	tmp = ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
end
code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(N[(N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision] - N[(N[(N[(z * 4.0), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c}
\end{array}

Alternative 1: 94.1% accurate, 0.8× speedup?

\[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} \mathbf{if}\;z \leq -2.4 \cdot 10^{+14}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\frac{x}{z} \cdot y, 9, \mathsf{fma}\left(t, -4 \cdot a, \frac{b}{z}\right)\right)}{c}\\ \mathbf{elif}\;z \leq 1.8 \cdot 10^{-39}:\\ \;\;\;\;\frac{b - \mathsf{fma}\left(a \cdot \left(4 \cdot z\right), t, -9 \cdot \left(x \cdot y\right)\right)}{z \cdot c}\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \mathsf{fma}\left(a \cdot -4, t, \frac{b}{z}\right)\right)}{c}\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c)
 :precision binary64
 (if (<= z -2.4e+14)
   (/ (fma (* (/ x z) y) 9.0 (fma t (* -4.0 a) (/ b z))) c)
   (if (<= z 1.8e-39)
     (/ (- b (fma (* a (* 4.0 z)) t (* -9.0 (* x y)))) (* z c))
     (/ (fma (* y 9.0) (/ x z) (fma (* a -4.0) t (/ b z))) c))))
assert(x < y && y < z && z < t && t < a && a < b && b < c);
assert(x < y && y < z && z < t && t < a && a < b && b < c);
double code(double x, double y, double z, double t, double a, double b, double c) {
	double tmp;
	if (z <= -2.4e+14) {
		tmp = fma(((x / z) * y), 9.0, fma(t, (-4.0 * a), (b / z))) / c;
	} else if (z <= 1.8e-39) {
		tmp = (b - fma((a * (4.0 * z)), t, (-9.0 * (x * y)))) / (z * c);
	} else {
		tmp = fma((y * 9.0), (x / z), fma((a * -4.0), t, (b / z))) / c;
	}
	return tmp;
}
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
function code(x, y, z, t, a, b, c)
	tmp = 0.0
	if (z <= -2.4e+14)
		tmp = Float64(fma(Float64(Float64(x / z) * y), 9.0, fma(t, Float64(-4.0 * a), Float64(b / z))) / c);
	elseif (z <= 1.8e-39)
		tmp = Float64(Float64(b - fma(Float64(a * Float64(4.0 * z)), t, Float64(-9.0 * Float64(x * y)))) / Float64(z * c));
	else
		tmp = Float64(fma(Float64(y * 9.0), Float64(x / z), fma(Float64(a * -4.0), t, Float64(b / z))) / c);
	end
	return tmp
end
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[z, -2.4e+14], N[(N[(N[(N[(x / z), $MachinePrecision] * y), $MachinePrecision] * 9.0 + N[(t * N[(-4.0 * a), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[z, 1.8e-39], N[(N[(b - N[(N[(a * N[(4.0 * z), $MachinePrecision]), $MachinePrecision] * t + N[(-9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(N[(N[(y * 9.0), $MachinePrecision] * N[(x / z), $MachinePrecision] + N[(N[(a * -4.0), $MachinePrecision] * t + N[(b / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
[x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.4 \cdot 10^{+14}:\\
\;\;\;\;\frac{\mathsf{fma}\left(\frac{x}{z} \cdot y, 9, \mathsf{fma}\left(t, -4 \cdot a, \frac{b}{z}\right)\right)}{c}\\

\mathbf{elif}\;z \leq 1.8 \cdot 10^{-39}:\\
\;\;\;\;\frac{b - \mathsf{fma}\left(a \cdot \left(4 \cdot z\right), t, -9 \cdot \left(x \cdot y\right)\right)}{z \cdot c}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -2.4e14

    1. Initial program 79.5%

      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
    2. Step-by-step derivation
      1. lift-/.f64N/A

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{\frac{\mathsf{fma}\left(9 \cdot y, x, \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)\right)}{z}}{c}} \]
      2. Step-by-step derivation
        1. lift-/.f64N/A

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

          \[\leadsto \frac{\frac{\color{blue}{\left(9 \cdot y\right) \cdot x + \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}}{z}}{c} \]
        3. div-addN/A

          \[\leadsto \frac{\color{blue}{\frac{\left(9 \cdot y\right) \cdot x}{z} + \frac{\mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}{z}}}{c} \]
        4. associate-/l*N/A

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

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

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

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

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

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

          \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \frac{\color{blue}{\left(-4 \cdot \left(t \cdot a\right)\right) \cdot z + b}}{z}\right)}{c} \]
        11. add-to-fraction-revN/A

          \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right) + \frac{b}{z}}\right)}{c} \]
        12. lift-*.f64N/A

          \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right)} + \frac{b}{z}\right)}{c} \]
        13. lift-*.f64N/A

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

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \mathsf{fma}\left(a \cdot -4, t, \frac{b}{z}\right)\right)}}{c} \]
      4. Step-by-step derivation
        1. lift-fma.f64N/A

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

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

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

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

          \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{x}{z} \cdot y, 9, \mathsf{fma}\left(a \cdot -4, t, \frac{b}{z}\right)\right)}}{c} \]
        6. lower-*.f6484.4

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

          \[\leadsto \frac{\mathsf{fma}\left(\frac{x}{z} \cdot y, 9, \color{blue}{\left(a \cdot -4\right) \cdot t + \frac{b}{z}}\right)}{c} \]
        8. add-flipN/A

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

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

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

          \[\leadsto \frac{\mathsf{fma}\left(\frac{x}{z} \cdot y, 9, t \cdot \left(a \cdot -4\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(\color{blue}{\frac{b}{z}}\right)\right)\right)\right)\right)}{c} \]
        12. distribute-neg-fracN/A

          \[\leadsto \frac{\mathsf{fma}\left(\frac{x}{z} \cdot y, 9, t \cdot \left(a \cdot -4\right) + \left(\mathsf{neg}\left(\color{blue}{\frac{\mathsf{neg}\left(b\right)}{z}}\right)\right)\right)}{c} \]
        13. distribute-frac-neg2N/A

          \[\leadsto \frac{\mathsf{fma}\left(\frac{x}{z} \cdot y, 9, t \cdot \left(a \cdot -4\right) + \color{blue}{\frac{\mathsf{neg}\left(b\right)}{\mathsf{neg}\left(z\right)}}\right)}{c} \]
        14. frac-2negN/A

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

          \[\leadsto \frac{\mathsf{fma}\left(\frac{x}{z} \cdot y, 9, t \cdot \left(a \cdot -4\right) + \color{blue}{\frac{b}{z}}\right)}{c} \]
        16. lower-fma.f6484.4

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

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

          \[\leadsto \frac{\mathsf{fma}\left(\frac{x}{z} \cdot y, 9, \mathsf{fma}\left(t, \color{blue}{-4 \cdot a}, \frac{b}{z}\right)\right)}{c} \]
        19. lower-*.f6484.4

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

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

      if -2.4e14 < z < 1.8e-39

      1. Initial program 79.5%

        \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. Step-by-step derivation
        1. lift-+.f64N/A

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

          \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right)}}{z \cdot c} \]
        3. add-flipN/A

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

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

          \[\leadsto \frac{b - \left(\mathsf{neg}\left(\color{blue}{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right)}\right)\right)}{z \cdot c} \]
        6. sub-negate-revN/A

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

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

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

          \[\leadsto \frac{b - \left(\left(\left(z \cdot 4\right) \cdot t\right) \cdot a - \color{blue}{\left(9 \cdot x\right)} \cdot y\right)}{z \cdot c} \]
        10. associate-*l*N/A

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \frac{b - \mathsf{fma}\left(a \cdot \left(4 \cdot z\right), t, \color{blue}{-9} \cdot \left(x \cdot y\right)\right)}{z \cdot c} \]
        23. lower-*.f6480.0

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

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

      if 1.8e-39 < z

      1. Initial program 79.5%

        \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
      2. Step-by-step derivation
        1. lift-/.f64N/A

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

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

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

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

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

          \[\leadsto \color{blue}{\frac{\frac{\mathsf{fma}\left(9 \cdot y, x, \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)\right)}{z}}{c}} \]
        2. Step-by-step derivation
          1. lift-/.f64N/A

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

            \[\leadsto \frac{\frac{\color{blue}{\left(9 \cdot y\right) \cdot x + \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}}{z}}{c} \]
          3. div-addN/A

            \[\leadsto \frac{\color{blue}{\frac{\left(9 \cdot y\right) \cdot x}{z} + \frac{\mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}{z}}}{c} \]
          4. associate-/l*N/A

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

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

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

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

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

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

            \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \frac{\color{blue}{\left(-4 \cdot \left(t \cdot a\right)\right) \cdot z + b}}{z}\right)}{c} \]
          11. add-to-fraction-revN/A

            \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right) + \frac{b}{z}}\right)}{c} \]
          12. lift-*.f64N/A

            \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right)} + \frac{b}{z}\right)}{c} \]
          13. lift-*.f64N/A

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

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

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

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

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

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

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

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

      Alternative 2: 94.1% accurate, 0.8× speedup?

      \[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} t_1 := \mathsf{fma}\left(a \cdot -4, t, \frac{b}{z}\right)\\ \mathbf{if}\;z \leq -2.4 \cdot 10^{+14}:\\ \;\;\;\;\frac{\mathsf{fma}\left(x \cdot 9, \frac{y}{z}, t\_1\right)}{c}\\ \mathbf{elif}\;z \leq 1.8 \cdot 10^{-39}:\\ \;\;\;\;\frac{b - \mathsf{fma}\left(a \cdot \left(4 \cdot z\right), t, -9 \cdot \left(x \cdot y\right)\right)}{z \cdot c}\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, t\_1\right)}{c}\\ \end{array} \end{array} \]
      NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
      NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
      (FPCore (x y z t a b c)
       :precision binary64
       (let* ((t_1 (fma (* a -4.0) t (/ b z))))
         (if (<= z -2.4e+14)
           (/ (fma (* x 9.0) (/ y z) t_1) c)
           (if (<= z 1.8e-39)
             (/ (- b (fma (* a (* 4.0 z)) t (* -9.0 (* x y)))) (* z c))
             (/ (fma (* y 9.0) (/ x z) t_1) c)))))
      assert(x < y && y < z && z < t && t < a && a < b && b < c);
      assert(x < y && y < z && z < t && t < a && a < b && b < c);
      double code(double x, double y, double z, double t, double a, double b, double c) {
      	double t_1 = fma((a * -4.0), t, (b / z));
      	double tmp;
      	if (z <= -2.4e+14) {
      		tmp = fma((x * 9.0), (y / z), t_1) / c;
      	} else if (z <= 1.8e-39) {
      		tmp = (b - fma((a * (4.0 * z)), t, (-9.0 * (x * y)))) / (z * c);
      	} else {
      		tmp = fma((y * 9.0), (x / z), t_1) / c;
      	}
      	return tmp;
      }
      
      x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
      x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
      function code(x, y, z, t, a, b, c)
      	t_1 = fma(Float64(a * -4.0), t, Float64(b / z))
      	tmp = 0.0
      	if (z <= -2.4e+14)
      		tmp = Float64(fma(Float64(x * 9.0), Float64(y / z), t_1) / c);
      	elseif (z <= 1.8e-39)
      		tmp = Float64(Float64(b - fma(Float64(a * Float64(4.0 * z)), t, Float64(-9.0 * Float64(x * y)))) / Float64(z * c));
      	else
      		tmp = Float64(fma(Float64(y * 9.0), Float64(x / z), t_1) / c);
      	end
      	return tmp
      end
      
      NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
      NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
      code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(a * -4.0), $MachinePrecision] * t + N[(b / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.4e+14], N[(N[(N[(x * 9.0), $MachinePrecision] * N[(y / z), $MachinePrecision] + t$95$1), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[z, 1.8e-39], N[(N[(b - N[(N[(a * N[(4.0 * z), $MachinePrecision]), $MachinePrecision] * t + N[(-9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], N[(N[(N[(y * 9.0), $MachinePrecision] * N[(x / z), $MachinePrecision] + t$95$1), $MachinePrecision] / c), $MachinePrecision]]]]
      
      \begin{array}{l}
      [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
      [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
      \\
      \begin{array}{l}
      t_1 := \mathsf{fma}\left(a \cdot -4, t, \frac{b}{z}\right)\\
      \mathbf{if}\;z \leq -2.4 \cdot 10^{+14}:\\
      \;\;\;\;\frac{\mathsf{fma}\left(x \cdot 9, \frac{y}{z}, t\_1\right)}{c}\\
      
      \mathbf{elif}\;z \leq 1.8 \cdot 10^{-39}:\\
      \;\;\;\;\frac{b - \mathsf{fma}\left(a \cdot \left(4 \cdot z\right), t, -9 \cdot \left(x \cdot y\right)\right)}{z \cdot c}\\
      
      \mathbf{else}:\\
      \;\;\;\;\frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, t\_1\right)}{c}\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if z < -2.4e14

        1. Initial program 79.5%

          \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
        2. Step-by-step derivation
          1. lift-/.f64N/A

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

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

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

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

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

            \[\leadsto \color{blue}{\frac{\frac{\mathsf{fma}\left(9 \cdot y, x, \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)\right)}{z}}{c}} \]
          2. Step-by-step derivation
            1. lift-/.f64N/A

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

              \[\leadsto \frac{\frac{\color{blue}{\left(9 \cdot y\right) \cdot x + \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}}{z}}{c} \]
            3. div-addN/A

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

              \[\leadsto \frac{\frac{\color{blue}{x \cdot \left(9 \cdot y\right)}}{z} + \frac{\mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}{z}}{c} \]
            5. lift-*.f64N/A

              \[\leadsto \frac{\frac{x \cdot \color{blue}{\left(9 \cdot y\right)}}{z} + \frac{\mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}{z}}{c} \]
            6. associate-*l*N/A

              \[\leadsto \frac{\frac{\color{blue}{\left(x \cdot 9\right) \cdot y}}{z} + \frac{\mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}{z}}{c} \]
            7. associate-/l*N/A

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

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

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

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

              \[\leadsto \frac{\mathsf{fma}\left(x \cdot 9, \frac{y}{z}, \frac{\color{blue}{\left(-4 \cdot \left(t \cdot a\right)\right) \cdot z + b}}{z}\right)}{c} \]
            12. add-to-fraction-revN/A

              \[\leadsto \frac{\mathsf{fma}\left(x \cdot 9, \frac{y}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right) + \frac{b}{z}}\right)}{c} \]
            13. lift-*.f64N/A

              \[\leadsto \frac{\mathsf{fma}\left(x \cdot 9, \frac{y}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right)} + \frac{b}{z}\right)}{c} \]
            14. lift-*.f64N/A

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

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

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

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

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

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

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

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

          if -2.4e14 < z < 1.8e-39

          1. Initial program 79.5%

            \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
          2. Step-by-step derivation
            1. lift-+.f64N/A

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

              \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right)}}{z \cdot c} \]
            3. add-flipN/A

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

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

              \[\leadsto \frac{b - \left(\mathsf{neg}\left(\color{blue}{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right)}\right)\right)}{z \cdot c} \]
            6. sub-negate-revN/A

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

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

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

              \[\leadsto \frac{b - \left(\left(\left(z \cdot 4\right) \cdot t\right) \cdot a - \color{blue}{\left(9 \cdot x\right)} \cdot y\right)}{z \cdot c} \]
            10. associate-*l*N/A

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \frac{b - \mathsf{fma}\left(a \cdot \left(4 \cdot z\right), t, \color{blue}{-9} \cdot \left(x \cdot y\right)\right)}{z \cdot c} \]
            23. lower-*.f6480.0

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

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

          if 1.8e-39 < z

          1. Initial program 79.5%

            \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
          2. Step-by-step derivation
            1. lift-/.f64N/A

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

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

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

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

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

              \[\leadsto \color{blue}{\frac{\frac{\mathsf{fma}\left(9 \cdot y, x, \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)\right)}{z}}{c}} \]
            2. Step-by-step derivation
              1. lift-/.f64N/A

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

                \[\leadsto \frac{\frac{\color{blue}{\left(9 \cdot y\right) \cdot x + \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}}{z}}{c} \]
              3. div-addN/A

                \[\leadsto \frac{\color{blue}{\frac{\left(9 \cdot y\right) \cdot x}{z} + \frac{\mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}{z}}}{c} \]
              4. associate-/l*N/A

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

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

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

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

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

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

                \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \frac{\color{blue}{\left(-4 \cdot \left(t \cdot a\right)\right) \cdot z + b}}{z}\right)}{c} \]
              11. add-to-fraction-revN/A

                \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right) + \frac{b}{z}}\right)}{c} \]
              12. lift-*.f64N/A

                \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right)} + \frac{b}{z}\right)}{c} \]
              13. lift-*.f64N/A

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

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

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

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

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

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

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

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

          Alternative 3: 94.1% accurate, 0.8× speedup?

          \[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} t_1 := \frac{\mathsf{fma}\left(x \cdot 9, \frac{y}{z}, \mathsf{fma}\left(a \cdot -4, t, \frac{b}{z}\right)\right)}{c}\\ \mathbf{if}\;z \leq -2.4 \cdot 10^{+14}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.8 \cdot 10^{-39}:\\ \;\;\;\;\frac{b - \mathsf{fma}\left(a \cdot \left(4 \cdot z\right), t, -9 \cdot \left(x \cdot y\right)\right)}{z \cdot c}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
          NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
          NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
          (FPCore (x y z t a b c)
           :precision binary64
           (let* ((t_1 (/ (fma (* x 9.0) (/ y z) (fma (* a -4.0) t (/ b z))) c)))
             (if (<= z -2.4e+14)
               t_1
               (if (<= z 1.8e-39)
                 (/ (- b (fma (* a (* 4.0 z)) t (* -9.0 (* x y)))) (* z c))
                 t_1))))
          assert(x < y && y < z && z < t && t < a && a < b && b < c);
          assert(x < y && y < z && z < t && t < a && a < b && b < c);
          double code(double x, double y, double z, double t, double a, double b, double c) {
          	double t_1 = fma((x * 9.0), (y / z), fma((a * -4.0), t, (b / z))) / c;
          	double tmp;
          	if (z <= -2.4e+14) {
          		tmp = t_1;
          	} else if (z <= 1.8e-39) {
          		tmp = (b - fma((a * (4.0 * z)), t, (-9.0 * (x * y)))) / (z * c);
          	} else {
          		tmp = t_1;
          	}
          	return tmp;
          }
          
          x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
          x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
          function code(x, y, z, t, a, b, c)
          	t_1 = Float64(fma(Float64(x * 9.0), Float64(y / z), fma(Float64(a * -4.0), t, Float64(b / z))) / c)
          	tmp = 0.0
          	if (z <= -2.4e+14)
          		tmp = t_1;
          	elseif (z <= 1.8e-39)
          		tmp = Float64(Float64(b - fma(Float64(a * Float64(4.0 * z)), t, Float64(-9.0 * Float64(x * y)))) / Float64(z * c));
          	else
          		tmp = t_1;
          	end
          	return tmp
          end
          
          NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
          NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
          code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(x * 9.0), $MachinePrecision] * N[(y / z), $MachinePrecision] + N[(N[(a * -4.0), $MachinePrecision] * t + N[(b / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]}, If[LessEqual[z, -2.4e+14], t$95$1, If[LessEqual[z, 1.8e-39], N[(N[(b - N[(N[(a * N[(4.0 * z), $MachinePrecision]), $MachinePrecision] * t + N[(-9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]
          
          \begin{array}{l}
          [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
          [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
          \\
          \begin{array}{l}
          t_1 := \frac{\mathsf{fma}\left(x \cdot 9, \frac{y}{z}, \mathsf{fma}\left(a \cdot -4, t, \frac{b}{z}\right)\right)}{c}\\
          \mathbf{if}\;z \leq -2.4 \cdot 10^{+14}:\\
          \;\;\;\;t\_1\\
          
          \mathbf{elif}\;z \leq 1.8 \cdot 10^{-39}:\\
          \;\;\;\;\frac{b - \mathsf{fma}\left(a \cdot \left(4 \cdot z\right), t, -9 \cdot \left(x \cdot y\right)\right)}{z \cdot c}\\
          
          \mathbf{else}:\\
          \;\;\;\;t\_1\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if z < -2.4e14 or 1.8e-39 < z

            1. Initial program 79.5%

              \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
            2. Step-by-step derivation
              1. lift-/.f64N/A

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

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

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

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

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

                \[\leadsto \color{blue}{\frac{\frac{\mathsf{fma}\left(9 \cdot y, x, \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)\right)}{z}}{c}} \]
              2. Step-by-step derivation
                1. lift-/.f64N/A

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

                  \[\leadsto \frac{\frac{\color{blue}{\left(9 \cdot y\right) \cdot x + \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}}{z}}{c} \]
                3. div-addN/A

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

                  \[\leadsto \frac{\frac{\color{blue}{x \cdot \left(9 \cdot y\right)}}{z} + \frac{\mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}{z}}{c} \]
                5. lift-*.f64N/A

                  \[\leadsto \frac{\frac{x \cdot \color{blue}{\left(9 \cdot y\right)}}{z} + \frac{\mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}{z}}{c} \]
                6. associate-*l*N/A

                  \[\leadsto \frac{\frac{\color{blue}{\left(x \cdot 9\right) \cdot y}}{z} + \frac{\mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}{z}}{c} \]
                7. associate-/l*N/A

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

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

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

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

                  \[\leadsto \frac{\mathsf{fma}\left(x \cdot 9, \frac{y}{z}, \frac{\color{blue}{\left(-4 \cdot \left(t \cdot a\right)\right) \cdot z + b}}{z}\right)}{c} \]
                12. add-to-fraction-revN/A

                  \[\leadsto \frac{\mathsf{fma}\left(x \cdot 9, \frac{y}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right) + \frac{b}{z}}\right)}{c} \]
                13. lift-*.f64N/A

                  \[\leadsto \frac{\mathsf{fma}\left(x \cdot 9, \frac{y}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right)} + \frac{b}{z}\right)}{c} \]
                14. lift-*.f64N/A

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

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

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

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

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

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

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

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

              if -2.4e14 < z < 1.8e-39

              1. Initial program 79.5%

                \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
              2. Step-by-step derivation
                1. lift-+.f64N/A

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

                  \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right)}}{z \cdot c} \]
                3. add-flipN/A

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

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

                  \[\leadsto \frac{b - \left(\mathsf{neg}\left(\color{blue}{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right)}\right)\right)}{z \cdot c} \]
                6. sub-negate-revN/A

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

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

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

                  \[\leadsto \frac{b - \left(\left(\left(z \cdot 4\right) \cdot t\right) \cdot a - \color{blue}{\left(9 \cdot x\right)} \cdot y\right)}{z \cdot c} \]
                10. associate-*l*N/A

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \frac{b - \mathsf{fma}\left(a \cdot \left(4 \cdot z\right), t, \color{blue}{-9} \cdot \left(x \cdot y\right)\right)}{z \cdot c} \]
                23. lower-*.f6480.0

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

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

            Alternative 4: 88.7% accurate, 0.7× speedup?

            \[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} t_1 := \frac{\frac{\mathsf{fma}\left(9 \cdot y, x, \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)\right)}{z}}{c}\\ \mathbf{if}\;z \leq -7 \cdot 10^{+204}:\\ \;\;\;\;\frac{\mathsf{fma}\left(-4, a \cdot t, \frac{b}{z}\right)}{c}\\ \mathbf{elif}\;z \leq -2.5 \cdot 10^{+14}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 20:\\ \;\;\;\;\frac{b - \mathsf{fma}\left(a \cdot \left(4 \cdot z\right), t, -9 \cdot \left(x \cdot y\right)\right)}{z \cdot c}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
            NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
            NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
            (FPCore (x y z t a b c)
             :precision binary64
             (let* ((t_1 (/ (/ (fma (* 9.0 y) x (fma (* -4.0 (* t a)) z b)) z) c)))
               (if (<= z -7e+204)
                 (/ (fma -4.0 (* a t) (/ b z)) c)
                 (if (<= z -2.5e+14)
                   t_1
                   (if (<= z 20.0)
                     (/ (- b (fma (* a (* 4.0 z)) t (* -9.0 (* x y)))) (* z c))
                     t_1)))))
            assert(x < y && y < z && z < t && t < a && a < b && b < c);
            assert(x < y && y < z && z < t && t < a && a < b && b < c);
            double code(double x, double y, double z, double t, double a, double b, double c) {
            	double t_1 = (fma((9.0 * y), x, fma((-4.0 * (t * a)), z, b)) / z) / c;
            	double tmp;
            	if (z <= -7e+204) {
            		tmp = fma(-4.0, (a * t), (b / z)) / c;
            	} else if (z <= -2.5e+14) {
            		tmp = t_1;
            	} else if (z <= 20.0) {
            		tmp = (b - fma((a * (4.0 * z)), t, (-9.0 * (x * y)))) / (z * c);
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
            x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
            function code(x, y, z, t, a, b, c)
            	t_1 = Float64(Float64(fma(Float64(9.0 * y), x, fma(Float64(-4.0 * Float64(t * a)), z, b)) / z) / c)
            	tmp = 0.0
            	if (z <= -7e+204)
            		tmp = Float64(fma(-4.0, Float64(a * t), Float64(b / z)) / c);
            	elseif (z <= -2.5e+14)
            		tmp = t_1;
            	elseif (z <= 20.0)
            		tmp = Float64(Float64(b - fma(Float64(a * Float64(4.0 * z)), t, Float64(-9.0 * Float64(x * y)))) / Float64(z * c));
            	else
            		tmp = t_1;
            	end
            	return tmp
            end
            
            NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
            NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
            code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(N[(9.0 * y), $MachinePrecision] * x + N[(N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] * z + b), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] / c), $MachinePrecision]}, If[LessEqual[z, -7e+204], N[(N[(-4.0 * N[(a * t), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[z, -2.5e+14], t$95$1, If[LessEqual[z, 20.0], N[(N[(b - N[(N[(a * N[(4.0 * z), $MachinePrecision]), $MachinePrecision] * t + N[(-9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
            
            \begin{array}{l}
            [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
            [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
            \\
            \begin{array}{l}
            t_1 := \frac{\frac{\mathsf{fma}\left(9 \cdot y, x, \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)\right)}{z}}{c}\\
            \mathbf{if}\;z \leq -7 \cdot 10^{+204}:\\
            \;\;\;\;\frac{\mathsf{fma}\left(-4, a \cdot t, \frac{b}{z}\right)}{c}\\
            
            \mathbf{elif}\;z \leq -2.5 \cdot 10^{+14}:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;z \leq 20:\\
            \;\;\;\;\frac{b - \mathsf{fma}\left(a \cdot \left(4 \cdot z\right), t, -9 \cdot \left(x \cdot y\right)\right)}{z \cdot c}\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_1\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if z < -6.99999999999999978e204

              1. Initial program 79.5%

                \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
              2. Step-by-step derivation
                1. lift-/.f64N/A

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

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

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

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

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

                  \[\leadsto \color{blue}{\frac{\frac{\mathsf{fma}\left(9 \cdot y, x, \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)\right)}{z}}{c}} \]
                2. Step-by-step derivation
                  1. lift-/.f64N/A

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

                    \[\leadsto \frac{\frac{\color{blue}{\left(9 \cdot y\right) \cdot x + \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}}{z}}{c} \]
                  3. div-addN/A

                    \[\leadsto \frac{\color{blue}{\frac{\left(9 \cdot y\right) \cdot x}{z} + \frac{\mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}{z}}}{c} \]
                  4. associate-/l*N/A

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

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

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

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

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

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

                    \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \frac{\color{blue}{\left(-4 \cdot \left(t \cdot a\right)\right) \cdot z + b}}{z}\right)}{c} \]
                  11. add-to-fraction-revN/A

                    \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right) + \frac{b}{z}}\right)}{c} \]
                  12. lift-*.f64N/A

                    \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right)} + \frac{b}{z}\right)}{c} \]
                  13. lift-*.f64N/A

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

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

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

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

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

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

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

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

                  \[\leadsto \frac{\color{blue}{-4 \cdot \left(a \cdot t\right) + \frac{b}{z}}}{c} \]
                5. Step-by-step derivation
                  1. lower-fma.f64N/A

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

                    \[\leadsto \frac{\mathsf{fma}\left(-4, a \cdot \color{blue}{t}, \frac{b}{z}\right)}{c} \]
                  3. lower-/.f6463.2

                    \[\leadsto \frac{\mathsf{fma}\left(-4, a \cdot t, \frac{b}{z}\right)}{c} \]
                6. Applied rewrites63.2%

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

                if -6.99999999999999978e204 < z < -2.5e14 or 20 < z

                1. Initial program 79.5%

                  \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                2. Step-by-step derivation
                  1. lift-/.f64N/A

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

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

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

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

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

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

                  if -2.5e14 < z < 20

                  1. Initial program 79.5%

                    \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                  2. Step-by-step derivation
                    1. lift-+.f64N/A

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

                      \[\leadsto \frac{\color{blue}{b + \left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right)}}{z \cdot c} \]
                    3. add-flipN/A

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

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

                      \[\leadsto \frac{b - \left(\mathsf{neg}\left(\color{blue}{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right)}\right)\right)}{z \cdot c} \]
                    6. sub-negate-revN/A

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

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

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

                      \[\leadsto \frac{b - \left(\left(\left(z \cdot 4\right) \cdot t\right) \cdot a - \color{blue}{\left(9 \cdot x\right)} \cdot y\right)}{z \cdot c} \]
                    10. associate-*l*N/A

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \frac{b - \mathsf{fma}\left(a \cdot \left(4 \cdot z\right), t, \color{blue}{-9} \cdot \left(x \cdot y\right)\right)}{z \cdot c} \]
                    23. lower-*.f6480.0

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

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

                Alternative 5: 86.1% accurate, 0.5× speedup?

                \[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} \mathbf{if}\;\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \leq \infty:\\ \;\;\;\;\frac{\frac{\mathsf{fma}\left(9 \cdot y, x, \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)\right)}{z}}{c}\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(-4 \cdot \frac{t}{c}\right)\\ \end{array} \end{array} \]
                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                (FPCore (x y z t a b c)
                 :precision binary64
                 (if (<= (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)) INFINITY)
                   (/ (/ (fma (* 9.0 y) x (fma (* -4.0 (* t a)) z b)) z) c)
                   (* a (* -4.0 (/ t c)))))
                assert(x < y && y < z && z < t && t < a && a < b && b < c);
                assert(x < y && y < z && z < t && t < a && a < b && b < c);
                double code(double x, double y, double z, double t, double a, double b, double c) {
                	double tmp;
                	if ((((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c)) <= ((double) INFINITY)) {
                		tmp = (fma((9.0 * y), x, fma((-4.0 * (t * a)), z, b)) / z) / c;
                	} else {
                		tmp = a * (-4.0 * (t / c));
                	}
                	return tmp;
                }
                
                x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                function code(x, y, z, t, a, b, c)
                	tmp = 0.0
                	if (Float64(Float64(Float64(Float64(Float64(x * 9.0) * y) - Float64(Float64(Float64(z * 4.0) * t) * a)) + b) / Float64(z * c)) <= Inf)
                		tmp = Float64(Float64(fma(Float64(9.0 * y), x, fma(Float64(-4.0 * Float64(t * a)), z, b)) / z) / c);
                	else
                		tmp = Float64(a * Float64(-4.0 * Float64(t / c)));
                	end
                	return tmp
                end
                
                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(N[(N[(N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision] - N[(N[(N[(z * 4.0), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(N[(N[(9.0 * y), $MachinePrecision] * x + N[(N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] * z + b), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] / c), $MachinePrecision], N[(a * N[(-4.0 * N[(t / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
                
                \begin{array}{l}
                [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
                [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
                \\
                \begin{array}{l}
                \mathbf{if}\;\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \leq \infty:\\
                \;\;\;\;\frac{\frac{\mathsf{fma}\left(9 \cdot y, x, \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)\right)}{z}}{c}\\
                
                \mathbf{else}:\\
                \;\;\;\;a \cdot \left(-4 \cdot \frac{t}{c}\right)\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) < +inf.0

                  1. Initial program 79.5%

                    \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                  2. Step-by-step derivation
                    1. lift-/.f64N/A

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

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

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

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

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

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

                    if +inf.0 < (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c))

                    1. Initial program 79.5%

                      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                    2. Taylor expanded in a around inf

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto a \cdot \mathsf{fma}\left(-4, \frac{t}{c}, \mathsf{fma}\left(9, \frac{x \cdot y}{a \cdot \left(c \cdot z\right)}, \frac{b}{a \cdot \left(c \cdot z\right)}\right)\right) \]
                      11. lower-*.f6468.8

                        \[\leadsto a \cdot \mathsf{fma}\left(-4, \frac{t}{c}, \mathsf{fma}\left(9, \frac{x \cdot y}{a \cdot \left(c \cdot z\right)}, \frac{b}{a \cdot \left(c \cdot z\right)}\right)\right) \]
                    4. Applied rewrites68.8%

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

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

                        \[\leadsto a \cdot \left(-4 \cdot \frac{t}{\color{blue}{c}}\right) \]
                      2. lower-/.f6440.1

                        \[\leadsto a \cdot \left(-4 \cdot \frac{t}{c}\right) \]
                    7. Applied rewrites40.1%

                      \[\leadsto a \cdot \left(-4 \cdot \color{blue}{\frac{t}{c}}\right) \]
                  5. Recombined 2 regimes into one program.
                  6. Add Preprocessing

                  Alternative 6: 80.5% accurate, 0.9× speedup?

                  \[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} \mathbf{if}\;c \leq 4 \cdot 10^{+210}:\\ \;\;\;\;\frac{\mathsf{fma}\left(9 \cdot y, x, \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)\right)}{c \cdot z}\\ \mathbf{else}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(-4, \frac{t}{c}, \frac{b}{a \cdot \left(c \cdot z\right)}\right)\\ \end{array} \end{array} \]
                  NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                  NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                  (FPCore (x y z t a b c)
                   :precision binary64
                   (if (<= c 4e+210)
                     (/ (fma (* 9.0 y) x (fma (* -4.0 (* t a)) z b)) (* c z))
                     (* a (fma -4.0 (/ t c) (/ b (* a (* c z)))))))
                  assert(x < y && y < z && z < t && t < a && a < b && b < c);
                  assert(x < y && y < z && z < t && t < a && a < b && b < c);
                  double code(double x, double y, double z, double t, double a, double b, double c) {
                  	double tmp;
                  	if (c <= 4e+210) {
                  		tmp = fma((9.0 * y), x, fma((-4.0 * (t * a)), z, b)) / (c * z);
                  	} else {
                  		tmp = a * fma(-4.0, (t / c), (b / (a * (c * z))));
                  	}
                  	return tmp;
                  }
                  
                  x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                  x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                  function code(x, y, z, t, a, b, c)
                  	tmp = 0.0
                  	if (c <= 4e+210)
                  		tmp = Float64(fma(Float64(9.0 * y), x, fma(Float64(-4.0 * Float64(t * a)), z, b)) / Float64(c * z));
                  	else
                  		tmp = Float64(a * fma(-4.0, Float64(t / c), Float64(b / Float64(a * Float64(c * z)))));
                  	end
                  	return tmp
                  end
                  
                  NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                  NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                  code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 4e+210], N[(N[(N[(9.0 * y), $MachinePrecision] * x + N[(N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision] * z + b), $MachinePrecision]), $MachinePrecision] / N[(c * z), $MachinePrecision]), $MachinePrecision], N[(a * N[(-4.0 * N[(t / c), $MachinePrecision] + N[(b / N[(a * N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
                  
                  \begin{array}{l}
                  [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
                  [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
                  \\
                  \begin{array}{l}
                  \mathbf{if}\;c \leq 4 \cdot 10^{+210}:\\
                  \;\;\;\;\frac{\mathsf{fma}\left(9 \cdot y, x, \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)\right)}{c \cdot z}\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;a \cdot \mathsf{fma}\left(-4, \frac{t}{c}, \frac{b}{a \cdot \left(c \cdot z\right)}\right)\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 2 regimes
                  2. if c < 3.99999999999999971e210

                    1. Initial program 79.5%

                      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                    2. Step-by-step derivation
                      1. lift-/.f64N/A

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

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

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

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

                      \[\leadsto \color{blue}{\frac{\frac{\mathsf{fma}\left(y \cdot x, 9, b - a \cdot \left(t \cdot \left(4 \cdot z\right)\right)\right)}{z}}{c}} \]
                    4. Step-by-step derivation
                      1. lift-/.f64N/A

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

                        \[\leadsto \frac{\color{blue}{\frac{\mathsf{fma}\left(y \cdot x, 9, b - a \cdot \left(t \cdot \left(4 \cdot z\right)\right)\right)}{z}}}{c} \]
                      3. associate-/l/N/A

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

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

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

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

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

                    if 3.99999999999999971e210 < c

                    1. Initial program 79.5%

                      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                    2. Taylor expanded in a around inf

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto a \cdot \mathsf{fma}\left(-4, \frac{t}{c}, \mathsf{fma}\left(9, \frac{x \cdot y}{a \cdot \left(c \cdot z\right)}, \frac{b}{a \cdot \left(c \cdot z\right)}\right)\right) \]
                      11. lower-*.f6468.8

                        \[\leadsto a \cdot \mathsf{fma}\left(-4, \frac{t}{c}, \mathsf{fma}\left(9, \frac{x \cdot y}{a \cdot \left(c \cdot z\right)}, \frac{b}{a \cdot \left(c \cdot z\right)}\right)\right) \]
                    4. Applied rewrites68.8%

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

                      \[\leadsto a \cdot \mathsf{fma}\left(-4, \frac{t}{c}, \frac{b}{a \cdot \left(c \cdot z\right)}\right) \]
                    6. Step-by-step derivation
                      1. lower-/.f64N/A

                        \[\leadsto a \cdot \mathsf{fma}\left(-4, \frac{t}{c}, \frac{b}{a \cdot \left(c \cdot z\right)}\right) \]
                      2. lower-*.f64N/A

                        \[\leadsto a \cdot \mathsf{fma}\left(-4, \frac{t}{c}, \frac{b}{a \cdot \left(c \cdot z\right)}\right) \]
                      3. lower-*.f6459.2

                        \[\leadsto a \cdot \mathsf{fma}\left(-4, \frac{t}{c}, \frac{b}{a \cdot \left(c \cdot z\right)}\right) \]
                    7. Applied rewrites59.2%

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

                  Alternative 7: 75.3% accurate, 0.8× speedup?

                  \[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} \mathbf{if}\;b \leq -2.55 \cdot 10^{+247}:\\ \;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\ \mathbf{elif}\;b \leq -1.95 \cdot 10^{+36}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(-4, \frac{t}{c}, \frac{b}{a \cdot \left(c \cdot z\right)}\right)\\ \mathbf{elif}\;b \leq 1.5 \cdot 10^{-32}:\\ \;\;\;\;\frac{\mathsf{fma}\left(-4, a \cdot t, 9 \cdot \frac{x \cdot y}{z}\right)}{c}\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(-4, a \cdot t, \frac{b}{z}\right)}{c}\\ \end{array} \end{array} \]
                  NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                  NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                  (FPCore (x y z t a b c)
                   :precision binary64
                   (if (<= b -2.55e+247)
                     (/ (+ b (* 9.0 (* x y))) (* z c))
                     (if (<= b -1.95e+36)
                       (* a (fma -4.0 (/ t c) (/ b (* a (* c z)))))
                       (if (<= b 1.5e-32)
                         (/ (fma -4.0 (* a t) (* 9.0 (/ (* x y) z))) c)
                         (/ (fma -4.0 (* a t) (/ b z)) c)))))
                  assert(x < y && y < z && z < t && t < a && a < b && b < c);
                  assert(x < y && y < z && z < t && t < a && a < b && b < c);
                  double code(double x, double y, double z, double t, double a, double b, double c) {
                  	double tmp;
                  	if (b <= -2.55e+247) {
                  		tmp = (b + (9.0 * (x * y))) / (z * c);
                  	} else if (b <= -1.95e+36) {
                  		tmp = a * fma(-4.0, (t / c), (b / (a * (c * z))));
                  	} else if (b <= 1.5e-32) {
                  		tmp = fma(-4.0, (a * t), (9.0 * ((x * y) / z))) / c;
                  	} else {
                  		tmp = fma(-4.0, (a * t), (b / z)) / c;
                  	}
                  	return tmp;
                  }
                  
                  x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                  x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                  function code(x, y, z, t, a, b, c)
                  	tmp = 0.0
                  	if (b <= -2.55e+247)
                  		tmp = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(z * c));
                  	elseif (b <= -1.95e+36)
                  		tmp = Float64(a * fma(-4.0, Float64(t / c), Float64(b / Float64(a * Float64(c * z)))));
                  	elseif (b <= 1.5e-32)
                  		tmp = Float64(fma(-4.0, Float64(a * t), Float64(9.0 * Float64(Float64(x * y) / z))) / c);
                  	else
                  		tmp = Float64(fma(-4.0, Float64(a * t), Float64(b / z)) / c);
                  	end
                  	return tmp
                  end
                  
                  NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                  NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                  code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -2.55e+247], N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.95e+36], N[(a * N[(-4.0 * N[(t / c), $MachinePrecision] + N[(b / N[(a * N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.5e-32], N[(N[(-4.0 * N[(a * t), $MachinePrecision] + N[(9.0 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(-4.0 * N[(a * t), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]]]]
                  
                  \begin{array}{l}
                  [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
                  [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
                  \\
                  \begin{array}{l}
                  \mathbf{if}\;b \leq -2.55 \cdot 10^{+247}:\\
                  \;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\
                  
                  \mathbf{elif}\;b \leq -1.95 \cdot 10^{+36}:\\
                  \;\;\;\;a \cdot \mathsf{fma}\left(-4, \frac{t}{c}, \frac{b}{a \cdot \left(c \cdot z\right)}\right)\\
                  
                  \mathbf{elif}\;b \leq 1.5 \cdot 10^{-32}:\\
                  \;\;\;\;\frac{\mathsf{fma}\left(-4, a \cdot t, 9 \cdot \frac{x \cdot y}{z}\right)}{c}\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;\frac{\mathsf{fma}\left(-4, a \cdot t, \frac{b}{z}\right)}{c}\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 4 regimes
                  2. if b < -2.55000000000000001e247

                    1. Initial program 79.5%

                      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                    2. Taylor expanded in z around 0

                      \[\leadsto \frac{\color{blue}{b + 9 \cdot \left(x \cdot y\right)}}{z \cdot c} \]
                    3. Step-by-step derivation
                      1. lower-+.f64N/A

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

                        \[\leadsto \frac{b + 9 \cdot \color{blue}{\left(x \cdot y\right)}}{z \cdot c} \]
                      3. lower-*.f6460.1

                        \[\leadsto \frac{b + 9 \cdot \left(x \cdot \color{blue}{y}\right)}{z \cdot c} \]
                    4. Applied rewrites60.1%

                      \[\leadsto \frac{\color{blue}{b + 9 \cdot \left(x \cdot y\right)}}{z \cdot c} \]

                    if -2.55000000000000001e247 < b < -1.9500000000000001e36

                    1. Initial program 79.5%

                      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                    2. Taylor expanded in a around inf

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto a \cdot \mathsf{fma}\left(-4, \frac{t}{c}, \mathsf{fma}\left(9, \frac{x \cdot y}{a \cdot \left(c \cdot z\right)}, \frac{b}{a \cdot \left(c \cdot z\right)}\right)\right) \]
                      11. lower-*.f6468.8

                        \[\leadsto a \cdot \mathsf{fma}\left(-4, \frac{t}{c}, \mathsf{fma}\left(9, \frac{x \cdot y}{a \cdot \left(c \cdot z\right)}, \frac{b}{a \cdot \left(c \cdot z\right)}\right)\right) \]
                    4. Applied rewrites68.8%

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

                      \[\leadsto a \cdot \mathsf{fma}\left(-4, \frac{t}{c}, \frac{b}{a \cdot \left(c \cdot z\right)}\right) \]
                    6. Step-by-step derivation
                      1. lower-/.f64N/A

                        \[\leadsto a \cdot \mathsf{fma}\left(-4, \frac{t}{c}, \frac{b}{a \cdot \left(c \cdot z\right)}\right) \]
                      2. lower-*.f64N/A

                        \[\leadsto a \cdot \mathsf{fma}\left(-4, \frac{t}{c}, \frac{b}{a \cdot \left(c \cdot z\right)}\right) \]
                      3. lower-*.f6459.2

                        \[\leadsto a \cdot \mathsf{fma}\left(-4, \frac{t}{c}, \frac{b}{a \cdot \left(c \cdot z\right)}\right) \]
                    7. Applied rewrites59.2%

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

                    if -1.9500000000000001e36 < b < 1.5e-32

                    1. Initial program 79.5%

                      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                    2. Step-by-step derivation
                      1. lift-/.f64N/A

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

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

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

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

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

                        \[\leadsto \color{blue}{\frac{\frac{\mathsf{fma}\left(9 \cdot y, x, \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)\right)}{z}}{c}} \]
                      2. Step-by-step derivation
                        1. lift-/.f64N/A

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

                          \[\leadsto \frac{\frac{\color{blue}{\left(9 \cdot y\right) \cdot x + \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}}{z}}{c} \]
                        3. div-addN/A

                          \[\leadsto \frac{\color{blue}{\frac{\left(9 \cdot y\right) \cdot x}{z} + \frac{\mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}{z}}}{c} \]
                        4. associate-/l*N/A

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

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

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

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

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

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

                          \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \frac{\color{blue}{\left(-4 \cdot \left(t \cdot a\right)\right) \cdot z + b}}{z}\right)}{c} \]
                        11. add-to-fraction-revN/A

                          \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right) + \frac{b}{z}}\right)}{c} \]
                        12. lift-*.f64N/A

                          \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right)} + \frac{b}{z}\right)}{c} \]
                        13. lift-*.f64N/A

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

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

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

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

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

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

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

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

                        \[\leadsto \frac{\color{blue}{-4 \cdot \left(a \cdot t\right) + 9 \cdot \frac{x \cdot y}{z}}}{c} \]
                      5. Step-by-step derivation
                        1. lower-fma.f64N/A

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

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

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

                          \[\leadsto \frac{\mathsf{fma}\left(-4, a \cdot t, 9 \cdot \frac{x \cdot y}{z}\right)}{c} \]
                        5. lower-*.f6463.8

                          \[\leadsto \frac{\mathsf{fma}\left(-4, a \cdot t, 9 \cdot \frac{x \cdot y}{z}\right)}{c} \]
                      6. Applied rewrites63.8%

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

                      if 1.5e-32 < b

                      1. Initial program 79.5%

                        \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                      2. Step-by-step derivation
                        1. lift-/.f64N/A

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

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

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

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

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

                          \[\leadsto \color{blue}{\frac{\frac{\mathsf{fma}\left(9 \cdot y, x, \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)\right)}{z}}{c}} \]
                        2. Step-by-step derivation
                          1. lift-/.f64N/A

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

                            \[\leadsto \frac{\frac{\color{blue}{\left(9 \cdot y\right) \cdot x + \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}}{z}}{c} \]
                          3. div-addN/A

                            \[\leadsto \frac{\color{blue}{\frac{\left(9 \cdot y\right) \cdot x}{z} + \frac{\mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}{z}}}{c} \]
                          4. associate-/l*N/A

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

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

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

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

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

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

                            \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \frac{\color{blue}{\left(-4 \cdot \left(t \cdot a\right)\right) \cdot z + b}}{z}\right)}{c} \]
                          11. add-to-fraction-revN/A

                            \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right) + \frac{b}{z}}\right)}{c} \]
                          12. lift-*.f64N/A

                            \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right)} + \frac{b}{z}\right)}{c} \]
                          13. lift-*.f64N/A

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

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

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

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

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

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

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

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

                          \[\leadsto \frac{\color{blue}{-4 \cdot \left(a \cdot t\right) + \frac{b}{z}}}{c} \]
                        5. Step-by-step derivation
                          1. lower-fma.f64N/A

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

                            \[\leadsto \frac{\mathsf{fma}\left(-4, a \cdot \color{blue}{t}, \frac{b}{z}\right)}{c} \]
                          3. lower-/.f6463.2

                            \[\leadsto \frac{\mathsf{fma}\left(-4, a \cdot t, \frac{b}{z}\right)}{c} \]
                        6. Applied rewrites63.2%

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

                      Alternative 8: 75.1% accurate, 0.9× speedup?

                      \[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} \mathbf{if}\;b \leq -8.8 \cdot 10^{+49}:\\ \;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\ \mathbf{elif}\;b \leq 1.5 \cdot 10^{-32}:\\ \;\;\;\;\frac{\mathsf{fma}\left(-4, a \cdot t, 9 \cdot \frac{x \cdot y}{z}\right)}{c}\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(-4, a \cdot t, \frac{b}{z}\right)}{c}\\ \end{array} \end{array} \]
                      NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                      NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                      (FPCore (x y z t a b c)
                       :precision binary64
                       (if (<= b -8.8e+49)
                         (/ (+ b (* 9.0 (* x y))) (* z c))
                         (if (<= b 1.5e-32)
                           (/ (fma -4.0 (* a t) (* 9.0 (/ (* x y) z))) c)
                           (/ (fma -4.0 (* a t) (/ b z)) c))))
                      assert(x < y && y < z && z < t && t < a && a < b && b < c);
                      assert(x < y && y < z && z < t && t < a && a < b && b < c);
                      double code(double x, double y, double z, double t, double a, double b, double c) {
                      	double tmp;
                      	if (b <= -8.8e+49) {
                      		tmp = (b + (9.0 * (x * y))) / (z * c);
                      	} else if (b <= 1.5e-32) {
                      		tmp = fma(-4.0, (a * t), (9.0 * ((x * y) / z))) / c;
                      	} else {
                      		tmp = fma(-4.0, (a * t), (b / z)) / c;
                      	}
                      	return tmp;
                      }
                      
                      x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                      x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                      function code(x, y, z, t, a, b, c)
                      	tmp = 0.0
                      	if (b <= -8.8e+49)
                      		tmp = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(z * c));
                      	elseif (b <= 1.5e-32)
                      		tmp = Float64(fma(-4.0, Float64(a * t), Float64(9.0 * Float64(Float64(x * y) / z))) / c);
                      	else
                      		tmp = Float64(fma(-4.0, Float64(a * t), Float64(b / z)) / c);
                      	end
                      	return tmp
                      end
                      
                      NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                      NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                      code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -8.8e+49], N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.5e-32], N[(N[(-4.0 * N[(a * t), $MachinePrecision] + N[(9.0 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(-4.0 * N[(a * t), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]]]
                      
                      \begin{array}{l}
                      [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
                      [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
                      \\
                      \begin{array}{l}
                      \mathbf{if}\;b \leq -8.8 \cdot 10^{+49}:\\
                      \;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\
                      
                      \mathbf{elif}\;b \leq 1.5 \cdot 10^{-32}:\\
                      \;\;\;\;\frac{\mathsf{fma}\left(-4, a \cdot t, 9 \cdot \frac{x \cdot y}{z}\right)}{c}\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;\frac{\mathsf{fma}\left(-4, a \cdot t, \frac{b}{z}\right)}{c}\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 3 regimes
                      2. if b < -8.8000000000000003e49

                        1. Initial program 79.5%

                          \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                        2. Taylor expanded in z around 0

                          \[\leadsto \frac{\color{blue}{b + 9 \cdot \left(x \cdot y\right)}}{z \cdot c} \]
                        3. Step-by-step derivation
                          1. lower-+.f64N/A

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

                            \[\leadsto \frac{b + 9 \cdot \color{blue}{\left(x \cdot y\right)}}{z \cdot c} \]
                          3. lower-*.f6460.1

                            \[\leadsto \frac{b + 9 \cdot \left(x \cdot \color{blue}{y}\right)}{z \cdot c} \]
                        4. Applied rewrites60.1%

                          \[\leadsto \frac{\color{blue}{b + 9 \cdot \left(x \cdot y\right)}}{z \cdot c} \]

                        if -8.8000000000000003e49 < b < 1.5e-32

                        1. Initial program 79.5%

                          \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                        2. Step-by-step derivation
                          1. lift-/.f64N/A

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

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

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

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

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

                            \[\leadsto \color{blue}{\frac{\frac{\mathsf{fma}\left(9 \cdot y, x, \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)\right)}{z}}{c}} \]
                          2. Step-by-step derivation
                            1. lift-/.f64N/A

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

                              \[\leadsto \frac{\frac{\color{blue}{\left(9 \cdot y\right) \cdot x + \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}}{z}}{c} \]
                            3. div-addN/A

                              \[\leadsto \frac{\color{blue}{\frac{\left(9 \cdot y\right) \cdot x}{z} + \frac{\mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}{z}}}{c} \]
                            4. associate-/l*N/A

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

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

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

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

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

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

                              \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \frac{\color{blue}{\left(-4 \cdot \left(t \cdot a\right)\right) \cdot z + b}}{z}\right)}{c} \]
                            11. add-to-fraction-revN/A

                              \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right) + \frac{b}{z}}\right)}{c} \]
                            12. lift-*.f64N/A

                              \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right)} + \frac{b}{z}\right)}{c} \]
                            13. lift-*.f64N/A

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

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

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

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

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

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

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

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

                            \[\leadsto \frac{\color{blue}{-4 \cdot \left(a \cdot t\right) + 9 \cdot \frac{x \cdot y}{z}}}{c} \]
                          5. Step-by-step derivation
                            1. lower-fma.f64N/A

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

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

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

                              \[\leadsto \frac{\mathsf{fma}\left(-4, a \cdot t, 9 \cdot \frac{x \cdot y}{z}\right)}{c} \]
                            5. lower-*.f6463.8

                              \[\leadsto \frac{\mathsf{fma}\left(-4, a \cdot t, 9 \cdot \frac{x \cdot y}{z}\right)}{c} \]
                          6. Applied rewrites63.8%

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

                          if 1.5e-32 < b

                          1. Initial program 79.5%

                            \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                          2. Step-by-step derivation
                            1. lift-/.f64N/A

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

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

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

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

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

                              \[\leadsto \color{blue}{\frac{\frac{\mathsf{fma}\left(9 \cdot y, x, \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)\right)}{z}}{c}} \]
                            2. Step-by-step derivation
                              1. lift-/.f64N/A

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

                                \[\leadsto \frac{\frac{\color{blue}{\left(9 \cdot y\right) \cdot x + \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}}{z}}{c} \]
                              3. div-addN/A

                                \[\leadsto \frac{\color{blue}{\frac{\left(9 \cdot y\right) \cdot x}{z} + \frac{\mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}{z}}}{c} \]
                              4. associate-/l*N/A

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

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

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

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

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

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

                                \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \frac{\color{blue}{\left(-4 \cdot \left(t \cdot a\right)\right) \cdot z + b}}{z}\right)}{c} \]
                              11. add-to-fraction-revN/A

                                \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right) + \frac{b}{z}}\right)}{c} \]
                              12. lift-*.f64N/A

                                \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right)} + \frac{b}{z}\right)}{c} \]
                              13. lift-*.f64N/A

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

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

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

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

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

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

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

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

                              \[\leadsto \frac{\color{blue}{-4 \cdot \left(a \cdot t\right) + \frac{b}{z}}}{c} \]
                            5. Step-by-step derivation
                              1. lower-fma.f64N/A

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

                                \[\leadsto \frac{\mathsf{fma}\left(-4, a \cdot \color{blue}{t}, \frac{b}{z}\right)}{c} \]
                              3. lower-/.f6463.2

                                \[\leadsto \frac{\mathsf{fma}\left(-4, a \cdot t, \frac{b}{z}\right)}{c} \]
                            6. Applied rewrites63.2%

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

                          Alternative 9: 74.8% accurate, 0.8× speedup?

                          \[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} t_1 := \left(x \cdot 9\right) \cdot y\\ \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+87}:\\ \;\;\;\;\frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \frac{b}{z}\right)}{c}\\ \mathbf{elif}\;t\_1 \leq 10^{+104}:\\ \;\;\;\;\frac{\mathsf{fma}\left(-4, a \cdot t, \frac{b}{z}\right)}{c}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{\mathsf{fma}\left(9 \cdot y, x, b\right)}{z}}{c}\\ \end{array} \end{array} \]
                          NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                          NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                          (FPCore (x y z t a b c)
                           :precision binary64
                           (let* ((t_1 (* (* x 9.0) y)))
                             (if (<= t_1 -1e+87)
                               (/ (fma (* y 9.0) (/ x z) (/ b z)) c)
                               (if (<= t_1 1e+104)
                                 (/ (fma -4.0 (* a t) (/ b z)) c)
                                 (/ (/ (fma (* 9.0 y) x b) z) c)))))
                          assert(x < y && y < z && z < t && t < a && a < b && b < c);
                          assert(x < y && y < z && z < t && t < a && a < b && b < c);
                          double code(double x, double y, double z, double t, double a, double b, double c) {
                          	double t_1 = (x * 9.0) * y;
                          	double tmp;
                          	if (t_1 <= -1e+87) {
                          		tmp = fma((y * 9.0), (x / z), (b / z)) / c;
                          	} else if (t_1 <= 1e+104) {
                          		tmp = fma(-4.0, (a * t), (b / z)) / c;
                          	} else {
                          		tmp = (fma((9.0 * y), x, b) / z) / c;
                          	}
                          	return tmp;
                          }
                          
                          x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                          x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                          function code(x, y, z, t, a, b, c)
                          	t_1 = Float64(Float64(x * 9.0) * y)
                          	tmp = 0.0
                          	if (t_1 <= -1e+87)
                          		tmp = Float64(fma(Float64(y * 9.0), Float64(x / z), Float64(b / z)) / c);
                          	elseif (t_1 <= 1e+104)
                          		tmp = Float64(fma(-4.0, Float64(a * t), Float64(b / z)) / c);
                          	else
                          		tmp = Float64(Float64(fma(Float64(9.0 * y), x, b) / z) / c);
                          	end
                          	return tmp
                          end
                          
                          NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                          NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                          code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+87], N[(N[(N[(y * 9.0), $MachinePrecision] * N[(x / z), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[t$95$1, 1e+104], N[(N[(-4.0 * N[(a * t), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(N[(N[(9.0 * y), $MachinePrecision] * x + b), $MachinePrecision] / z), $MachinePrecision] / c), $MachinePrecision]]]]
                          
                          \begin{array}{l}
                          [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
                          [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
                          \\
                          \begin{array}{l}
                          t_1 := \left(x \cdot 9\right) \cdot y\\
                          \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+87}:\\
                          \;\;\;\;\frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \frac{b}{z}\right)}{c}\\
                          
                          \mathbf{elif}\;t\_1 \leq 10^{+104}:\\
                          \;\;\;\;\frac{\mathsf{fma}\left(-4, a \cdot t, \frac{b}{z}\right)}{c}\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;\frac{\frac{\mathsf{fma}\left(9 \cdot y, x, b\right)}{z}}{c}\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 3 regimes
                          2. if (*.f64 (*.f64 x #s(literal 9 binary64)) y) < -9.9999999999999996e86

                            1. Initial program 79.5%

                              \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                            2. Step-by-step derivation
                              1. lift-/.f64N/A

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

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

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

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

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

                                \[\leadsto \color{blue}{\frac{\frac{\mathsf{fma}\left(9 \cdot y, x, \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)\right)}{z}}{c}} \]
                              2. Step-by-step derivation
                                1. lift-/.f64N/A

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

                                  \[\leadsto \frac{\frac{\color{blue}{\left(9 \cdot y\right) \cdot x + \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}}{z}}{c} \]
                                3. div-addN/A

                                  \[\leadsto \frac{\color{blue}{\frac{\left(9 \cdot y\right) \cdot x}{z} + \frac{\mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}{z}}}{c} \]
                                4. associate-/l*N/A

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

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

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

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

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

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

                                  \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \frac{\color{blue}{\left(-4 \cdot \left(t \cdot a\right)\right) \cdot z + b}}{z}\right)}{c} \]
                                11. add-to-fraction-revN/A

                                  \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right) + \frac{b}{z}}\right)}{c} \]
                                12. lift-*.f64N/A

                                  \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right)} + \frac{b}{z}\right)}{c} \]
                                13. lift-*.f64N/A

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

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

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

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

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

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

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

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

                                \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \color{blue}{\frac{b}{z}}\right)}{c} \]
                              5. Step-by-step derivation
                                1. lower-/.f6456.7

                                  \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \frac{b}{\color{blue}{z}}\right)}{c} \]
                              6. Applied rewrites56.7%

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

                              if -9.9999999999999996e86 < (*.f64 (*.f64 x #s(literal 9 binary64)) y) < 1e104

                              1. Initial program 79.5%

                                \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                              2. Step-by-step derivation
                                1. lift-/.f64N/A

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

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

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

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

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

                                  \[\leadsto \color{blue}{\frac{\frac{\mathsf{fma}\left(9 \cdot y, x, \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)\right)}{z}}{c}} \]
                                2. Step-by-step derivation
                                  1. lift-/.f64N/A

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

                                    \[\leadsto \frac{\frac{\color{blue}{\left(9 \cdot y\right) \cdot x + \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}}{z}}{c} \]
                                  3. div-addN/A

                                    \[\leadsto \frac{\color{blue}{\frac{\left(9 \cdot y\right) \cdot x}{z} + \frac{\mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}{z}}}{c} \]
                                  4. associate-/l*N/A

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

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

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

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

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

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

                                    \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \frac{\color{blue}{\left(-4 \cdot \left(t \cdot a\right)\right) \cdot z + b}}{z}\right)}{c} \]
                                  11. add-to-fraction-revN/A

                                    \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right) + \frac{b}{z}}\right)}{c} \]
                                  12. lift-*.f64N/A

                                    \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right)} + \frac{b}{z}\right)}{c} \]
                                  13. lift-*.f64N/A

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

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

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

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

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

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

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

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

                                  \[\leadsto \frac{\color{blue}{-4 \cdot \left(a \cdot t\right) + \frac{b}{z}}}{c} \]
                                5. Step-by-step derivation
                                  1. lower-fma.f64N/A

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

                                    \[\leadsto \frac{\mathsf{fma}\left(-4, a \cdot \color{blue}{t}, \frac{b}{z}\right)}{c} \]
                                  3. lower-/.f6463.2

                                    \[\leadsto \frac{\mathsf{fma}\left(-4, a \cdot t, \frac{b}{z}\right)}{c} \]
                                6. Applied rewrites63.2%

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

                                if 1e104 < (*.f64 (*.f64 x #s(literal 9 binary64)) y)

                                1. Initial program 79.5%

                                  \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                                2. Step-by-step derivation
                                  1. lift-/.f64N/A

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

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

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

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

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

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

                                    \[\leadsto \frac{\frac{\mathsf{fma}\left(9 \cdot y, x, \color{blue}{b}\right)}{z}}{c} \]
                                  3. Step-by-step derivation
                                    1. Applied rewrites59.1%

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

                                  Alternative 10: 74.4% accurate, 0.8× speedup?

                                  \[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} t_1 := \left(x \cdot 9\right) \cdot y\\ \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+87}:\\ \;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\ \mathbf{elif}\;t\_1 \leq 10^{+104}:\\ \;\;\;\;\frac{\mathsf{fma}\left(-4, a \cdot t, \frac{b}{z}\right)}{c}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{\mathsf{fma}\left(9 \cdot y, x, b\right)}{z}}{c}\\ \end{array} \end{array} \]
                                  NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                  NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                  (FPCore (x y z t a b c)
                                   :precision binary64
                                   (let* ((t_1 (* (* x 9.0) y)))
                                     (if (<= t_1 -1e+87)
                                       (/ (+ b (* 9.0 (* x y))) (* z c))
                                       (if (<= t_1 1e+104)
                                         (/ (fma -4.0 (* a t) (/ b z)) c)
                                         (/ (/ (fma (* 9.0 y) x b) z) c)))))
                                  assert(x < y && y < z && z < t && t < a && a < b && b < c);
                                  assert(x < y && y < z && z < t && t < a && a < b && b < c);
                                  double code(double x, double y, double z, double t, double a, double b, double c) {
                                  	double t_1 = (x * 9.0) * y;
                                  	double tmp;
                                  	if (t_1 <= -1e+87) {
                                  		tmp = (b + (9.0 * (x * y))) / (z * c);
                                  	} else if (t_1 <= 1e+104) {
                                  		tmp = fma(-4.0, (a * t), (b / z)) / c;
                                  	} else {
                                  		tmp = (fma((9.0 * y), x, b) / z) / c;
                                  	}
                                  	return tmp;
                                  }
                                  
                                  x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                                  x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                                  function code(x, y, z, t, a, b, c)
                                  	t_1 = Float64(Float64(x * 9.0) * y)
                                  	tmp = 0.0
                                  	if (t_1 <= -1e+87)
                                  		tmp = Float64(Float64(b + Float64(9.0 * Float64(x * y))) / Float64(z * c));
                                  	elseif (t_1 <= 1e+104)
                                  		tmp = Float64(fma(-4.0, Float64(a * t), Float64(b / z)) / c);
                                  	else
                                  		tmp = Float64(Float64(fma(Float64(9.0 * y), x, b) / z) / c);
                                  	end
                                  	return tmp
                                  end
                                  
                                  NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                  NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                  code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+87], N[(N[(b + N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+104], N[(N[(-4.0 * N[(a * t), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(N[(N[(N[(9.0 * y), $MachinePrecision] * x + b), $MachinePrecision] / z), $MachinePrecision] / c), $MachinePrecision]]]]
                                  
                                  \begin{array}{l}
                                  [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
                                  [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
                                  \\
                                  \begin{array}{l}
                                  t_1 := \left(x \cdot 9\right) \cdot y\\
                                  \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+87}:\\
                                  \;\;\;\;\frac{b + 9 \cdot \left(x \cdot y\right)}{z \cdot c}\\
                                  
                                  \mathbf{elif}\;t\_1 \leq 10^{+104}:\\
                                  \;\;\;\;\frac{\mathsf{fma}\left(-4, a \cdot t, \frac{b}{z}\right)}{c}\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;\frac{\frac{\mathsf{fma}\left(9 \cdot y, x, b\right)}{z}}{c}\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 3 regimes
                                  2. if (*.f64 (*.f64 x #s(literal 9 binary64)) y) < -9.9999999999999996e86

                                    1. Initial program 79.5%

                                      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                                    2. Taylor expanded in z around 0

                                      \[\leadsto \frac{\color{blue}{b + 9 \cdot \left(x \cdot y\right)}}{z \cdot c} \]
                                    3. Step-by-step derivation
                                      1. lower-+.f64N/A

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

                                        \[\leadsto \frac{b + 9 \cdot \color{blue}{\left(x \cdot y\right)}}{z \cdot c} \]
                                      3. lower-*.f6460.1

                                        \[\leadsto \frac{b + 9 \cdot \left(x \cdot \color{blue}{y}\right)}{z \cdot c} \]
                                    4. Applied rewrites60.1%

                                      \[\leadsto \frac{\color{blue}{b + 9 \cdot \left(x \cdot y\right)}}{z \cdot c} \]

                                    if -9.9999999999999996e86 < (*.f64 (*.f64 x #s(literal 9 binary64)) y) < 1e104

                                    1. Initial program 79.5%

                                      \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                                    2. Step-by-step derivation
                                      1. lift-/.f64N/A

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

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

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

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

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

                                        \[\leadsto \color{blue}{\frac{\frac{\mathsf{fma}\left(9 \cdot y, x, \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)\right)}{z}}{c}} \]
                                      2. Step-by-step derivation
                                        1. lift-/.f64N/A

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

                                          \[\leadsto \frac{\frac{\color{blue}{\left(9 \cdot y\right) \cdot x + \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}}{z}}{c} \]
                                        3. div-addN/A

                                          \[\leadsto \frac{\color{blue}{\frac{\left(9 \cdot y\right) \cdot x}{z} + \frac{\mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}{z}}}{c} \]
                                        4. associate-/l*N/A

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

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

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

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

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

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

                                          \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \frac{\color{blue}{\left(-4 \cdot \left(t \cdot a\right)\right) \cdot z + b}}{z}\right)}{c} \]
                                        11. add-to-fraction-revN/A

                                          \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right) + \frac{b}{z}}\right)}{c} \]
                                        12. lift-*.f64N/A

                                          \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right)} + \frac{b}{z}\right)}{c} \]
                                        13. lift-*.f64N/A

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

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

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

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

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

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

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

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

                                        \[\leadsto \frac{\color{blue}{-4 \cdot \left(a \cdot t\right) + \frac{b}{z}}}{c} \]
                                      5. Step-by-step derivation
                                        1. lower-fma.f64N/A

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

                                          \[\leadsto \frac{\mathsf{fma}\left(-4, a \cdot \color{blue}{t}, \frac{b}{z}\right)}{c} \]
                                        3. lower-/.f6463.2

                                          \[\leadsto \frac{\mathsf{fma}\left(-4, a \cdot t, \frac{b}{z}\right)}{c} \]
                                      6. Applied rewrites63.2%

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

                                      if 1e104 < (*.f64 (*.f64 x #s(literal 9 binary64)) y)

                                      1. Initial program 79.5%

                                        \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                                      2. Step-by-step derivation
                                        1. lift-/.f64N/A

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

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

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

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

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

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

                                          \[\leadsto \frac{\frac{\mathsf{fma}\left(9 \cdot y, x, \color{blue}{b}\right)}{z}}{c} \]
                                        3. Step-by-step derivation
                                          1. Applied rewrites59.1%

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

                                        Alternative 11: 74.0% accurate, 0.8× speedup?

                                        \[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} t_1 := \left(x \cdot 9\right) \cdot y\\ t_2 := \frac{\frac{\mathsf{fma}\left(9 \cdot y, x, b\right)}{z}}{c}\\ \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+87}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_1 \leq 10^{+104}:\\ \;\;\;\;\frac{\mathsf{fma}\left(-4, a \cdot t, \frac{b}{z}\right)}{c}\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                                        NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                        NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                        (FPCore (x y z t a b c)
                                         :precision binary64
                                         (let* ((t_1 (* (* x 9.0) y)) (t_2 (/ (/ (fma (* 9.0 y) x b) z) c)))
                                           (if (<= t_1 -1e+87)
                                             t_2
                                             (if (<= t_1 1e+104) (/ (fma -4.0 (* a t) (/ b z)) c) t_2))))
                                        assert(x < y && y < z && z < t && t < a && a < b && b < c);
                                        assert(x < y && y < z && z < t && t < a && a < b && b < c);
                                        double code(double x, double y, double z, double t, double a, double b, double c) {
                                        	double t_1 = (x * 9.0) * y;
                                        	double t_2 = (fma((9.0 * y), x, b) / z) / c;
                                        	double tmp;
                                        	if (t_1 <= -1e+87) {
                                        		tmp = t_2;
                                        	} else if (t_1 <= 1e+104) {
                                        		tmp = fma(-4.0, (a * t), (b / z)) / c;
                                        	} else {
                                        		tmp = t_2;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                                        x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                                        function code(x, y, z, t, a, b, c)
                                        	t_1 = Float64(Float64(x * 9.0) * y)
                                        	t_2 = Float64(Float64(fma(Float64(9.0 * y), x, b) / z) / c)
                                        	tmp = 0.0
                                        	if (t_1 <= -1e+87)
                                        		tmp = t_2;
                                        	elseif (t_1 <= 1e+104)
                                        		tmp = Float64(fma(-4.0, Float64(a * t), Float64(b / z)) / c);
                                        	else
                                        		tmp = t_2;
                                        	end
                                        	return tmp
                                        end
                                        
                                        NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                        NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                        code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(9.0 * y), $MachinePrecision] * x + b), $MachinePrecision] / z), $MachinePrecision] / c), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+87], t$95$2, If[LessEqual[t$95$1, 1e+104], N[(N[(-4.0 * N[(a * t), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], t$95$2]]]]
                                        
                                        \begin{array}{l}
                                        [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
                                        [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
                                        \\
                                        \begin{array}{l}
                                        t_1 := \left(x \cdot 9\right) \cdot y\\
                                        t_2 := \frac{\frac{\mathsf{fma}\left(9 \cdot y, x, b\right)}{z}}{c}\\
                                        \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+87}:\\
                                        \;\;\;\;t\_2\\
                                        
                                        \mathbf{elif}\;t\_1 \leq 10^{+104}:\\
                                        \;\;\;\;\frac{\mathsf{fma}\left(-4, a \cdot t, \frac{b}{z}\right)}{c}\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;t\_2\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 2 regimes
                                        2. if (*.f64 (*.f64 x #s(literal 9 binary64)) y) < -9.9999999999999996e86 or 1e104 < (*.f64 (*.f64 x #s(literal 9 binary64)) y)

                                          1. Initial program 79.5%

                                            \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                                          2. Step-by-step derivation
                                            1. lift-/.f64N/A

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

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

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

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

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

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

                                              \[\leadsto \frac{\frac{\mathsf{fma}\left(9 \cdot y, x, \color{blue}{b}\right)}{z}}{c} \]
                                            3. Step-by-step derivation
                                              1. Applied rewrites59.1%

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

                                              if -9.9999999999999996e86 < (*.f64 (*.f64 x #s(literal 9 binary64)) y) < 1e104

                                              1. Initial program 79.5%

                                                \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                                              2. Step-by-step derivation
                                                1. lift-/.f64N/A

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

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

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

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

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

                                                  \[\leadsto \color{blue}{\frac{\frac{\mathsf{fma}\left(9 \cdot y, x, \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)\right)}{z}}{c}} \]
                                                2. Step-by-step derivation
                                                  1. lift-/.f64N/A

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

                                                    \[\leadsto \frac{\frac{\color{blue}{\left(9 \cdot y\right) \cdot x + \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}}{z}}{c} \]
                                                  3. div-addN/A

                                                    \[\leadsto \frac{\color{blue}{\frac{\left(9 \cdot y\right) \cdot x}{z} + \frac{\mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}{z}}}{c} \]
                                                  4. associate-/l*N/A

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

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

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

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

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

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

                                                    \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \frac{\color{blue}{\left(-4 \cdot \left(t \cdot a\right)\right) \cdot z + b}}{z}\right)}{c} \]
                                                  11. add-to-fraction-revN/A

                                                    \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right) + \frac{b}{z}}\right)}{c} \]
                                                  12. lift-*.f64N/A

                                                    \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right)} + \frac{b}{z}\right)}{c} \]
                                                  13. lift-*.f64N/A

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

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

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

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

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

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

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

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

                                                  \[\leadsto \frac{\color{blue}{-4 \cdot \left(a \cdot t\right) + \frac{b}{z}}}{c} \]
                                                5. Step-by-step derivation
                                                  1. lower-fma.f64N/A

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

                                                    \[\leadsto \frac{\mathsf{fma}\left(-4, a \cdot \color{blue}{t}, \frac{b}{z}\right)}{c} \]
                                                  3. lower-/.f6463.2

                                                    \[\leadsto \frac{\mathsf{fma}\left(-4, a \cdot t, \frac{b}{z}\right)}{c} \]
                                                6. Applied rewrites63.2%

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

                                              Alternative 12: 73.7% accurate, 0.8× speedup?

                                              \[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} t_1 := \left(x \cdot 9\right) \cdot y\\ \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+93}:\\ \;\;\;\;\frac{\frac{9 \cdot \left(x \cdot y\right)}{c}}{z}\\ \mathbf{elif}\;t\_1 \leq 10^{+104}:\\ \;\;\;\;\frac{\mathsf{fma}\left(-4, a \cdot t, \frac{b}{z}\right)}{c}\\ \mathbf{else}:\\ \;\;\;\;9 \cdot \frac{x \cdot y}{c \cdot z}\\ \end{array} \end{array} \]
                                              NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                              NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                              (FPCore (x y z t a b c)
                                               :precision binary64
                                               (let* ((t_1 (* (* x 9.0) y)))
                                                 (if (<= t_1 -1e+93)
                                                   (/ (/ (* 9.0 (* x y)) c) z)
                                                   (if (<= t_1 1e+104)
                                                     (/ (fma -4.0 (* a t) (/ b z)) c)
                                                     (* 9.0 (/ (* x y) (* c z)))))))
                                              assert(x < y && y < z && z < t && t < a && a < b && b < c);
                                              assert(x < y && y < z && z < t && t < a && a < b && b < c);
                                              double code(double x, double y, double z, double t, double a, double b, double c) {
                                              	double t_1 = (x * 9.0) * y;
                                              	double tmp;
                                              	if (t_1 <= -1e+93) {
                                              		tmp = ((9.0 * (x * y)) / c) / z;
                                              	} else if (t_1 <= 1e+104) {
                                              		tmp = fma(-4.0, (a * t), (b / z)) / c;
                                              	} else {
                                              		tmp = 9.0 * ((x * y) / (c * z));
                                              	}
                                              	return tmp;
                                              }
                                              
                                              x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                                              x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                                              function code(x, y, z, t, a, b, c)
                                              	t_1 = Float64(Float64(x * 9.0) * y)
                                              	tmp = 0.0
                                              	if (t_1 <= -1e+93)
                                              		tmp = Float64(Float64(Float64(9.0 * Float64(x * y)) / c) / z);
                                              	elseif (t_1 <= 1e+104)
                                              		tmp = Float64(fma(-4.0, Float64(a * t), Float64(b / z)) / c);
                                              	else
                                              		tmp = Float64(9.0 * Float64(Float64(x * y) / Float64(c * z)));
                                              	end
                                              	return tmp
                                              end
                                              
                                              NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                              NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                              code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+93], N[(N[(N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[t$95$1, 1e+104], N[(N[(-4.0 * N[(a * t), $MachinePrecision] + N[(b / z), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision], N[(9.0 * N[(N[(x * y), $MachinePrecision] / N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
                                              
                                              \begin{array}{l}
                                              [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
                                              [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
                                              \\
                                              \begin{array}{l}
                                              t_1 := \left(x \cdot 9\right) \cdot y\\
                                              \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+93}:\\
                                              \;\;\;\;\frac{\frac{9 \cdot \left(x \cdot y\right)}{c}}{z}\\
                                              
                                              \mathbf{elif}\;t\_1 \leq 10^{+104}:\\
                                              \;\;\;\;\frac{\mathsf{fma}\left(-4, a \cdot t, \frac{b}{z}\right)}{c}\\
                                              
                                              \mathbf{else}:\\
                                              \;\;\;\;9 \cdot \frac{x \cdot y}{c \cdot z}\\
                                              
                                              
                                              \end{array}
                                              \end{array}
                                              
                                              Derivation
                                              1. Split input into 3 regimes
                                              2. if (*.f64 (*.f64 x #s(literal 9 binary64)) y) < -1.00000000000000004e93

                                                1. Initial program 79.5%

                                                  \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                                                2. Step-by-step derivation
                                                  1. lift-/.f64N/A

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

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

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

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

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

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

                                                  \[\leadsto \frac{\frac{\color{blue}{9 \cdot \left(x \cdot y\right)}}{c}}{z} \]
                                                5. Step-by-step derivation
                                                  1. lower-*.f64N/A

                                                    \[\leadsto \frac{\frac{9 \cdot \color{blue}{\left(x \cdot y\right)}}{c}}{z} \]
                                                  2. lower-*.f6436.1

                                                    \[\leadsto \frac{\frac{9 \cdot \left(x \cdot \color{blue}{y}\right)}{c}}{z} \]
                                                6. Applied rewrites36.1%

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

                                                if -1.00000000000000004e93 < (*.f64 (*.f64 x #s(literal 9 binary64)) y) < 1e104

                                                1. Initial program 79.5%

                                                  \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                                                2. Step-by-step derivation
                                                  1. lift-/.f64N/A

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

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

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

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

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

                                                    \[\leadsto \color{blue}{\frac{\frac{\mathsf{fma}\left(9 \cdot y, x, \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)\right)}{z}}{c}} \]
                                                  2. Step-by-step derivation
                                                    1. lift-/.f64N/A

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

                                                      \[\leadsto \frac{\frac{\color{blue}{\left(9 \cdot y\right) \cdot x + \mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}}{z}}{c} \]
                                                    3. div-addN/A

                                                      \[\leadsto \frac{\color{blue}{\frac{\left(9 \cdot y\right) \cdot x}{z} + \frac{\mathsf{fma}\left(-4 \cdot \left(t \cdot a\right), z, b\right)}{z}}}{c} \]
                                                    4. associate-/l*N/A

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

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

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

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

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

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

                                                      \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \frac{\color{blue}{\left(-4 \cdot \left(t \cdot a\right)\right) \cdot z + b}}{z}\right)}{c} \]
                                                    11. add-to-fraction-revN/A

                                                      \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right) + \frac{b}{z}}\right)}{c} \]
                                                    12. lift-*.f64N/A

                                                      \[\leadsto \frac{\mathsf{fma}\left(y \cdot 9, \frac{x}{z}, \color{blue}{-4 \cdot \left(t \cdot a\right)} + \frac{b}{z}\right)}{c} \]
                                                    13. lift-*.f64N/A

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

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

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

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

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

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

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

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

                                                    \[\leadsto \frac{\color{blue}{-4 \cdot \left(a \cdot t\right) + \frac{b}{z}}}{c} \]
                                                  5. Step-by-step derivation
                                                    1. lower-fma.f64N/A

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

                                                      \[\leadsto \frac{\mathsf{fma}\left(-4, a \cdot \color{blue}{t}, \frac{b}{z}\right)}{c} \]
                                                    3. lower-/.f6463.2

                                                      \[\leadsto \frac{\mathsf{fma}\left(-4, a \cdot t, \frac{b}{z}\right)}{c} \]
                                                  6. Applied rewrites63.2%

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

                                                  if 1e104 < (*.f64 (*.f64 x #s(literal 9 binary64)) y)

                                                  1. Initial program 79.5%

                                                    \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                                                  2. Taylor expanded in x around inf

                                                    \[\leadsto \color{blue}{9 \cdot \frac{x \cdot y}{c \cdot z}} \]
                                                  3. Step-by-step derivation
                                                    1. lower-*.f64N/A

                                                      \[\leadsto 9 \cdot \color{blue}{\frac{x \cdot y}{c \cdot z}} \]
                                                    2. lower-/.f64N/A

                                                      \[\leadsto 9 \cdot \frac{x \cdot y}{\color{blue}{c \cdot z}} \]
                                                    3. lower-*.f64N/A

                                                      \[\leadsto 9 \cdot \frac{x \cdot y}{\color{blue}{c} \cdot z} \]
                                                    4. lower-*.f6436.5

                                                      \[\leadsto 9 \cdot \frac{x \cdot y}{c \cdot \color{blue}{z}} \]
                                                  4. Applied rewrites36.5%

                                                    \[\leadsto \color{blue}{9 \cdot \frac{x \cdot y}{c \cdot z}} \]
                                                5. Recombined 3 regimes into one program.
                                                6. Add Preprocessing

                                                Alternative 13: 52.5% accurate, 0.5× speedup?

                                                \[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} t_1 := a \cdot \left(-4 \cdot \frac{t}{c}\right)\\ t_2 := \left(x \cdot 9\right) \cdot y\\ \mathbf{if}\;t\_2 \leq -1 \cdot 10^{+87}:\\ \;\;\;\;\frac{\frac{9 \cdot \left(x \cdot y\right)}{z}}{c}\\ \mathbf{elif}\;t\_2 \leq -1 \cdot 10^{-45}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq -1 \cdot 10^{-320}:\\ \;\;\;\;\frac{b}{c \cdot z}\\ \mathbf{elif}\;t\_2 \leq 10^{+89}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;9 \cdot \frac{x \cdot y}{c \cdot z}\\ \end{array} \end{array} \]
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                (FPCore (x y z t a b c)
                                                 :precision binary64
                                                 (let* ((t_1 (* a (* -4.0 (/ t c)))) (t_2 (* (* x 9.0) y)))
                                                   (if (<= t_2 -1e+87)
                                                     (/ (/ (* 9.0 (* x y)) z) c)
                                                     (if (<= t_2 -1e-45)
                                                       t_1
                                                       (if (<= t_2 -1e-320)
                                                         (/ b (* c z))
                                                         (if (<= t_2 1e+89) t_1 (* 9.0 (/ (* x y) (* c z)))))))))
                                                assert(x < y && y < z && z < t && t < a && a < b && b < c);
                                                assert(x < y && y < z && z < t && t < a && a < b && b < c);
                                                double code(double x, double y, double z, double t, double a, double b, double c) {
                                                	double t_1 = a * (-4.0 * (t / c));
                                                	double t_2 = (x * 9.0) * y;
                                                	double tmp;
                                                	if (t_2 <= -1e+87) {
                                                		tmp = ((9.0 * (x * y)) / z) / c;
                                                	} else if (t_2 <= -1e-45) {
                                                		tmp = t_1;
                                                	} else if (t_2 <= -1e-320) {
                                                		tmp = b / (c * z);
                                                	} else if (t_2 <= 1e+89) {
                                                		tmp = t_1;
                                                	} else {
                                                		tmp = 9.0 * ((x * y) / (c * z));
                                                	}
                                                	return tmp;
                                                }
                                                
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                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)
                                                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) :: t_1
                                                    real(8) :: t_2
                                                    real(8) :: tmp
                                                    t_1 = a * ((-4.0d0) * (t / c))
                                                    t_2 = (x * 9.0d0) * y
                                                    if (t_2 <= (-1d+87)) then
                                                        tmp = ((9.0d0 * (x * y)) / z) / c
                                                    else if (t_2 <= (-1d-45)) then
                                                        tmp = t_1
                                                    else if (t_2 <= (-1d-320)) then
                                                        tmp = b / (c * z)
                                                    else if (t_2 <= 1d+89) then
                                                        tmp = t_1
                                                    else
                                                        tmp = 9.0d0 * ((x * y) / (c * z))
                                                    end if
                                                    code = tmp
                                                end function
                                                
                                                assert x < y && y < z && z < t && t < a && a < b && b < c;
                                                assert x < y && y < z && z < t && t < a && a < b && b < c;
                                                public static double code(double x, double y, double z, double t, double a, double b, double c) {
                                                	double t_1 = a * (-4.0 * (t / c));
                                                	double t_2 = (x * 9.0) * y;
                                                	double tmp;
                                                	if (t_2 <= -1e+87) {
                                                		tmp = ((9.0 * (x * y)) / z) / c;
                                                	} else if (t_2 <= -1e-45) {
                                                		tmp = t_1;
                                                	} else if (t_2 <= -1e-320) {
                                                		tmp = b / (c * z);
                                                	} else if (t_2 <= 1e+89) {
                                                		tmp = t_1;
                                                	} else {
                                                		tmp = 9.0 * ((x * y) / (c * z));
                                                	}
                                                	return tmp;
                                                }
                                                
                                                [x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
                                                [x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
                                                def code(x, y, z, t, a, b, c):
                                                	t_1 = a * (-4.0 * (t / c))
                                                	t_2 = (x * 9.0) * y
                                                	tmp = 0
                                                	if t_2 <= -1e+87:
                                                		tmp = ((9.0 * (x * y)) / z) / c
                                                	elif t_2 <= -1e-45:
                                                		tmp = t_1
                                                	elif t_2 <= -1e-320:
                                                		tmp = b / (c * z)
                                                	elif t_2 <= 1e+89:
                                                		tmp = t_1
                                                	else:
                                                		tmp = 9.0 * ((x * y) / (c * z))
                                                	return tmp
                                                
                                                x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                                                x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                                                function code(x, y, z, t, a, b, c)
                                                	t_1 = Float64(a * Float64(-4.0 * Float64(t / c)))
                                                	t_2 = Float64(Float64(x * 9.0) * y)
                                                	tmp = 0.0
                                                	if (t_2 <= -1e+87)
                                                		tmp = Float64(Float64(Float64(9.0 * Float64(x * y)) / z) / c);
                                                	elseif (t_2 <= -1e-45)
                                                		tmp = t_1;
                                                	elseif (t_2 <= -1e-320)
                                                		tmp = Float64(b / Float64(c * z));
                                                	elseif (t_2 <= 1e+89)
                                                		tmp = t_1;
                                                	else
                                                		tmp = Float64(9.0 * Float64(Float64(x * y) / Float64(c * z)));
                                                	end
                                                	return tmp
                                                end
                                                
                                                x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
                                                x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
                                                function tmp_2 = code(x, y, z, t, a, b, c)
                                                	t_1 = a * (-4.0 * (t / c));
                                                	t_2 = (x * 9.0) * y;
                                                	tmp = 0.0;
                                                	if (t_2 <= -1e+87)
                                                		tmp = ((9.0 * (x * y)) / z) / c;
                                                	elseif (t_2 <= -1e-45)
                                                		tmp = t_1;
                                                	elseif (t_2 <= -1e-320)
                                                		tmp = b / (c * z);
                                                	elseif (t_2 <= 1e+89)
                                                		tmp = t_1;
                                                	else
                                                		tmp = 9.0 * ((x * y) / (c * z));
                                                	end
                                                	tmp_2 = tmp;
                                                end
                                                
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(a * N[(-4.0 * N[(t / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[t$95$2, -1e+87], N[(N[(N[(9.0 * N[(x * y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] / c), $MachinePrecision], If[LessEqual[t$95$2, -1e-45], t$95$1, If[LessEqual[t$95$2, -1e-320], N[(b / N[(c * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+89], t$95$1, N[(9.0 * N[(N[(x * y), $MachinePrecision] / N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
                                                
                                                \begin{array}{l}
                                                [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
                                                [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
                                                \\
                                                \begin{array}{l}
                                                t_1 := a \cdot \left(-4 \cdot \frac{t}{c}\right)\\
                                                t_2 := \left(x \cdot 9\right) \cdot y\\
                                                \mathbf{if}\;t\_2 \leq -1 \cdot 10^{+87}:\\
                                                \;\;\;\;\frac{\frac{9 \cdot \left(x \cdot y\right)}{z}}{c}\\
                                                
                                                \mathbf{elif}\;t\_2 \leq -1 \cdot 10^{-45}:\\
                                                \;\;\;\;t\_1\\
                                                
                                                \mathbf{elif}\;t\_2 \leq -1 \cdot 10^{-320}:\\
                                                \;\;\;\;\frac{b}{c \cdot z}\\
                                                
                                                \mathbf{elif}\;t\_2 \leq 10^{+89}:\\
                                                \;\;\;\;t\_1\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;9 \cdot \frac{x \cdot y}{c \cdot z}\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 4 regimes
                                                2. if (*.f64 (*.f64 x #s(literal 9 binary64)) y) < -9.9999999999999996e86

                                                  1. Initial program 79.5%

                                                    \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                                                  2. Step-by-step derivation
                                                    1. lift-/.f64N/A

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

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

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

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

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

                                                    \[\leadsto \frac{\frac{\color{blue}{9 \cdot \left(x \cdot y\right)}}{z}}{c} \]
                                                  5. Step-by-step derivation
                                                    1. lower-*.f64N/A

                                                      \[\leadsto \frac{\frac{9 \cdot \color{blue}{\left(x \cdot y\right)}}{z}}{c} \]
                                                    2. lower-*.f6435.3

                                                      \[\leadsto \frac{\frac{9 \cdot \left(x \cdot \color{blue}{y}\right)}{z}}{c} \]
                                                  6. Applied rewrites35.3%

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

                                                  if -9.9999999999999996e86 < (*.f64 (*.f64 x #s(literal 9 binary64)) y) < -9.99999999999999984e-46 or -9.99989e-321 < (*.f64 (*.f64 x #s(literal 9 binary64)) y) < 9.99999999999999995e88

                                                  1. Initial program 79.5%

                                                    \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                                                  2. Taylor expanded in a around inf

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

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

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

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

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

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

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

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

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

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

                                                      \[\leadsto a \cdot \mathsf{fma}\left(-4, \frac{t}{c}, \mathsf{fma}\left(9, \frac{x \cdot y}{a \cdot \left(c \cdot z\right)}, \frac{b}{a \cdot \left(c \cdot z\right)}\right)\right) \]
                                                    11. lower-*.f6468.8

                                                      \[\leadsto a \cdot \mathsf{fma}\left(-4, \frac{t}{c}, \mathsf{fma}\left(9, \frac{x \cdot y}{a \cdot \left(c \cdot z\right)}, \frac{b}{a \cdot \left(c \cdot z\right)}\right)\right) \]
                                                  4. Applied rewrites68.8%

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

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

                                                      \[\leadsto a \cdot \left(-4 \cdot \frac{t}{\color{blue}{c}}\right) \]
                                                    2. lower-/.f6440.1

                                                      \[\leadsto a \cdot \left(-4 \cdot \frac{t}{c}\right) \]
                                                  7. Applied rewrites40.1%

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

                                                  if -9.99999999999999984e-46 < (*.f64 (*.f64 x #s(literal 9 binary64)) y) < -9.99989e-321

                                                  1. Initial program 79.5%

                                                    \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                                                  2. Taylor expanded in b around inf

                                                    \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
                                                  3. Step-by-step derivation
                                                    1. lower-/.f64N/A

                                                      \[\leadsto \frac{b}{\color{blue}{c \cdot z}} \]
                                                    2. lower-*.f6434.6

                                                      \[\leadsto \frac{b}{c \cdot \color{blue}{z}} \]
                                                  4. Applied rewrites34.6%

                                                    \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]

                                                  if 9.99999999999999995e88 < (*.f64 (*.f64 x #s(literal 9 binary64)) y)

                                                  1. Initial program 79.5%

                                                    \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                                                  2. Taylor expanded in x around inf

                                                    \[\leadsto \color{blue}{9 \cdot \frac{x \cdot y}{c \cdot z}} \]
                                                  3. Step-by-step derivation
                                                    1. lower-*.f64N/A

                                                      \[\leadsto 9 \cdot \color{blue}{\frac{x \cdot y}{c \cdot z}} \]
                                                    2. lower-/.f64N/A

                                                      \[\leadsto 9 \cdot \frac{x \cdot y}{\color{blue}{c \cdot z}} \]
                                                    3. lower-*.f64N/A

                                                      \[\leadsto 9 \cdot \frac{x \cdot y}{\color{blue}{c} \cdot z} \]
                                                    4. lower-*.f6436.5

                                                      \[\leadsto 9 \cdot \frac{x \cdot y}{c \cdot \color{blue}{z}} \]
                                                  4. Applied rewrites36.5%

                                                    \[\leadsto \color{blue}{9 \cdot \frac{x \cdot y}{c \cdot z}} \]
                                                3. Recombined 4 regimes into one program.
                                                4. Add Preprocessing

                                                Alternative 14: 52.4% accurate, 0.5× speedup?

                                                \[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} t_1 := a \cdot \left(-4 \cdot \frac{t}{c}\right)\\ t_2 := \left(x \cdot 9\right) \cdot y\\ t_3 := 9 \cdot \frac{x \cdot y}{c \cdot z}\\ \mathbf{if}\;t\_2 \leq -1 \cdot 10^{+87}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;t\_2 \leq -1 \cdot 10^{-45}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq -1 \cdot 10^{-320}:\\ \;\;\;\;\frac{b}{c \cdot z}\\ \mathbf{elif}\;t\_2 \leq 10^{+89}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_3\\ \end{array} \end{array} \]
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                (FPCore (x y z t a b c)
                                                 :precision binary64
                                                 (let* ((t_1 (* a (* -4.0 (/ t c))))
                                                        (t_2 (* (* x 9.0) y))
                                                        (t_3 (* 9.0 (/ (* x y) (* c z)))))
                                                   (if (<= t_2 -1e+87)
                                                     t_3
                                                     (if (<= t_2 -1e-45)
                                                       t_1
                                                       (if (<= t_2 -1e-320) (/ b (* c z)) (if (<= t_2 1e+89) t_1 t_3))))))
                                                assert(x < y && y < z && z < t && t < a && a < b && b < c);
                                                assert(x < y && y < z && z < t && t < a && a < b && b < c);
                                                double code(double x, double y, double z, double t, double a, double b, double c) {
                                                	double t_1 = a * (-4.0 * (t / c));
                                                	double t_2 = (x * 9.0) * y;
                                                	double t_3 = 9.0 * ((x * y) / (c * z));
                                                	double tmp;
                                                	if (t_2 <= -1e+87) {
                                                		tmp = t_3;
                                                	} else if (t_2 <= -1e-45) {
                                                		tmp = t_1;
                                                	} else if (t_2 <= -1e-320) {
                                                		tmp = b / (c * z);
                                                	} else if (t_2 <= 1e+89) {
                                                		tmp = t_1;
                                                	} else {
                                                		tmp = t_3;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                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)
                                                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) :: t_1
                                                    real(8) :: t_2
                                                    real(8) :: t_3
                                                    real(8) :: tmp
                                                    t_1 = a * ((-4.0d0) * (t / c))
                                                    t_2 = (x * 9.0d0) * y
                                                    t_3 = 9.0d0 * ((x * y) / (c * z))
                                                    if (t_2 <= (-1d+87)) then
                                                        tmp = t_3
                                                    else if (t_2 <= (-1d-45)) then
                                                        tmp = t_1
                                                    else if (t_2 <= (-1d-320)) then
                                                        tmp = b / (c * z)
                                                    else if (t_2 <= 1d+89) then
                                                        tmp = t_1
                                                    else
                                                        tmp = t_3
                                                    end if
                                                    code = tmp
                                                end function
                                                
                                                assert x < y && y < z && z < t && t < a && a < b && b < c;
                                                assert x < y && y < z && z < t && t < a && a < b && b < c;
                                                public static double code(double x, double y, double z, double t, double a, double b, double c) {
                                                	double t_1 = a * (-4.0 * (t / c));
                                                	double t_2 = (x * 9.0) * y;
                                                	double t_3 = 9.0 * ((x * y) / (c * z));
                                                	double tmp;
                                                	if (t_2 <= -1e+87) {
                                                		tmp = t_3;
                                                	} else if (t_2 <= -1e-45) {
                                                		tmp = t_1;
                                                	} else if (t_2 <= -1e-320) {
                                                		tmp = b / (c * z);
                                                	} else if (t_2 <= 1e+89) {
                                                		tmp = t_1;
                                                	} else {
                                                		tmp = t_3;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                [x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
                                                [x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
                                                def code(x, y, z, t, a, b, c):
                                                	t_1 = a * (-4.0 * (t / c))
                                                	t_2 = (x * 9.0) * y
                                                	t_3 = 9.0 * ((x * y) / (c * z))
                                                	tmp = 0
                                                	if t_2 <= -1e+87:
                                                		tmp = t_3
                                                	elif t_2 <= -1e-45:
                                                		tmp = t_1
                                                	elif t_2 <= -1e-320:
                                                		tmp = b / (c * z)
                                                	elif t_2 <= 1e+89:
                                                		tmp = t_1
                                                	else:
                                                		tmp = t_3
                                                	return tmp
                                                
                                                x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                                                x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                                                function code(x, y, z, t, a, b, c)
                                                	t_1 = Float64(a * Float64(-4.0 * Float64(t / c)))
                                                	t_2 = Float64(Float64(x * 9.0) * y)
                                                	t_3 = Float64(9.0 * Float64(Float64(x * y) / Float64(c * z)))
                                                	tmp = 0.0
                                                	if (t_2 <= -1e+87)
                                                		tmp = t_3;
                                                	elseif (t_2 <= -1e-45)
                                                		tmp = t_1;
                                                	elseif (t_2 <= -1e-320)
                                                		tmp = Float64(b / Float64(c * z));
                                                	elseif (t_2 <= 1e+89)
                                                		tmp = t_1;
                                                	else
                                                		tmp = t_3;
                                                	end
                                                	return tmp
                                                end
                                                
                                                x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
                                                x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
                                                function tmp_2 = code(x, y, z, t, a, b, c)
                                                	t_1 = a * (-4.0 * (t / c));
                                                	t_2 = (x * 9.0) * y;
                                                	t_3 = 9.0 * ((x * y) / (c * z));
                                                	tmp = 0.0;
                                                	if (t_2 <= -1e+87)
                                                		tmp = t_3;
                                                	elseif (t_2 <= -1e-45)
                                                		tmp = t_1;
                                                	elseif (t_2 <= -1e-320)
                                                		tmp = b / (c * z);
                                                	elseif (t_2 <= 1e+89)
                                                		tmp = t_1;
                                                	else
                                                		tmp = t_3;
                                                	end
                                                	tmp_2 = tmp;
                                                end
                                                
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(a * N[(-4.0 * N[(t / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision]}, Block[{t$95$3 = N[(9.0 * N[(N[(x * y), $MachinePrecision] / N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e+87], t$95$3, If[LessEqual[t$95$2, -1e-45], t$95$1, If[LessEqual[t$95$2, -1e-320], N[(b / N[(c * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+89], t$95$1, t$95$3]]]]]]]
                                                
                                                \begin{array}{l}
                                                [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
                                                [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
                                                \\
                                                \begin{array}{l}
                                                t_1 := a \cdot \left(-4 \cdot \frac{t}{c}\right)\\
                                                t_2 := \left(x \cdot 9\right) \cdot y\\
                                                t_3 := 9 \cdot \frac{x \cdot y}{c \cdot z}\\
                                                \mathbf{if}\;t\_2 \leq -1 \cdot 10^{+87}:\\
                                                \;\;\;\;t\_3\\
                                                
                                                \mathbf{elif}\;t\_2 \leq -1 \cdot 10^{-45}:\\
                                                \;\;\;\;t\_1\\
                                                
                                                \mathbf{elif}\;t\_2 \leq -1 \cdot 10^{-320}:\\
                                                \;\;\;\;\frac{b}{c \cdot z}\\
                                                
                                                \mathbf{elif}\;t\_2 \leq 10^{+89}:\\
                                                \;\;\;\;t\_1\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;t\_3\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 3 regimes
                                                2. if (*.f64 (*.f64 x #s(literal 9 binary64)) y) < -9.9999999999999996e86 or 9.99999999999999995e88 < (*.f64 (*.f64 x #s(literal 9 binary64)) y)

                                                  1. Initial program 79.5%

                                                    \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                                                  2. Taylor expanded in x around inf

                                                    \[\leadsto \color{blue}{9 \cdot \frac{x \cdot y}{c \cdot z}} \]
                                                  3. Step-by-step derivation
                                                    1. lower-*.f64N/A

                                                      \[\leadsto 9 \cdot \color{blue}{\frac{x \cdot y}{c \cdot z}} \]
                                                    2. lower-/.f64N/A

                                                      \[\leadsto 9 \cdot \frac{x \cdot y}{\color{blue}{c \cdot z}} \]
                                                    3. lower-*.f64N/A

                                                      \[\leadsto 9 \cdot \frac{x \cdot y}{\color{blue}{c} \cdot z} \]
                                                    4. lower-*.f6436.5

                                                      \[\leadsto 9 \cdot \frac{x \cdot y}{c \cdot \color{blue}{z}} \]
                                                  4. Applied rewrites36.5%

                                                    \[\leadsto \color{blue}{9 \cdot \frac{x \cdot y}{c \cdot z}} \]

                                                  if -9.9999999999999996e86 < (*.f64 (*.f64 x #s(literal 9 binary64)) y) < -9.99999999999999984e-46 or -9.99989e-321 < (*.f64 (*.f64 x #s(literal 9 binary64)) y) < 9.99999999999999995e88

                                                  1. Initial program 79.5%

                                                    \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                                                  2. Taylor expanded in a around inf

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

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

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

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

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

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

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

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

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

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

                                                      \[\leadsto a \cdot \mathsf{fma}\left(-4, \frac{t}{c}, \mathsf{fma}\left(9, \frac{x \cdot y}{a \cdot \left(c \cdot z\right)}, \frac{b}{a \cdot \left(c \cdot z\right)}\right)\right) \]
                                                    11. lower-*.f6468.8

                                                      \[\leadsto a \cdot \mathsf{fma}\left(-4, \frac{t}{c}, \mathsf{fma}\left(9, \frac{x \cdot y}{a \cdot \left(c \cdot z\right)}, \frac{b}{a \cdot \left(c \cdot z\right)}\right)\right) \]
                                                  4. Applied rewrites68.8%

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

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

                                                      \[\leadsto a \cdot \left(-4 \cdot \frac{t}{\color{blue}{c}}\right) \]
                                                    2. lower-/.f6440.1

                                                      \[\leadsto a \cdot \left(-4 \cdot \frac{t}{c}\right) \]
                                                  7. Applied rewrites40.1%

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

                                                  if -9.99999999999999984e-46 < (*.f64 (*.f64 x #s(literal 9 binary64)) y) < -9.99989e-321

                                                  1. Initial program 79.5%

                                                    \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                                                  2. Taylor expanded in b around inf

                                                    \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
                                                  3. Step-by-step derivation
                                                    1. lower-/.f64N/A

                                                      \[\leadsto \frac{b}{\color{blue}{c \cdot z}} \]
                                                    2. lower-*.f6434.6

                                                      \[\leadsto \frac{b}{c \cdot \color{blue}{z}} \]
                                                  4. Applied rewrites34.6%

                                                    \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
                                                3. Recombined 3 regimes into one program.
                                                4. Add Preprocessing

                                                Alternative 15: 48.2% accurate, 1.5× speedup?

                                                \[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} \mathbf{if}\;b \leq -6.5 \cdot 10^{+66}:\\ \;\;\;\;\frac{b}{c \cdot z}\\ \mathbf{elif}\;b \leq 1.05 \cdot 10^{+163}:\\ \;\;\;\;a \cdot \left(-4 \cdot \frac{t}{c}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{b}{z}}{c}\\ \end{array} \end{array} \]
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                (FPCore (x y z t a b c)
                                                 :precision binary64
                                                 (if (<= b -6.5e+66)
                                                   (/ b (* c z))
                                                   (if (<= b 1.05e+163) (* a (* -4.0 (/ t c))) (/ (/ b z) c))))
                                                assert(x < y && y < z && z < t && t < a && a < b && b < c);
                                                assert(x < y && y < z && z < t && t < a && a < b && b < c);
                                                double code(double x, double y, double z, double t, double a, double b, double c) {
                                                	double tmp;
                                                	if (b <= -6.5e+66) {
                                                		tmp = b / (c * z);
                                                	} else if (b <= 1.05e+163) {
                                                		tmp = a * (-4.0 * (t / c));
                                                	} else {
                                                		tmp = (b / z) / c;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                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)
                                                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) :: tmp
                                                    if (b <= (-6.5d+66)) then
                                                        tmp = b / (c * z)
                                                    else if (b <= 1.05d+163) then
                                                        tmp = a * ((-4.0d0) * (t / c))
                                                    else
                                                        tmp = (b / z) / c
                                                    end if
                                                    code = tmp
                                                end function
                                                
                                                assert x < y && y < z && z < t && t < a && a < b && b < c;
                                                assert x < y && y < z && z < t && t < a && a < b && b < c;
                                                public static double code(double x, double y, double z, double t, double a, double b, double c) {
                                                	double tmp;
                                                	if (b <= -6.5e+66) {
                                                		tmp = b / (c * z);
                                                	} else if (b <= 1.05e+163) {
                                                		tmp = a * (-4.0 * (t / c));
                                                	} else {
                                                		tmp = (b / z) / c;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                [x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
                                                [x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
                                                def code(x, y, z, t, a, b, c):
                                                	tmp = 0
                                                	if b <= -6.5e+66:
                                                		tmp = b / (c * z)
                                                	elif b <= 1.05e+163:
                                                		tmp = a * (-4.0 * (t / c))
                                                	else:
                                                		tmp = (b / z) / c
                                                	return tmp
                                                
                                                x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                                                x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                                                function code(x, y, z, t, a, b, c)
                                                	tmp = 0.0
                                                	if (b <= -6.5e+66)
                                                		tmp = Float64(b / Float64(c * z));
                                                	elseif (b <= 1.05e+163)
                                                		tmp = Float64(a * Float64(-4.0 * Float64(t / c)));
                                                	else
                                                		tmp = Float64(Float64(b / z) / c);
                                                	end
                                                	return tmp
                                                end
                                                
                                                x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
                                                x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
                                                function tmp_2 = code(x, y, z, t, a, b, c)
                                                	tmp = 0.0;
                                                	if (b <= -6.5e+66)
                                                		tmp = b / (c * z);
                                                	elseif (b <= 1.05e+163)
                                                		tmp = a * (-4.0 * (t / c));
                                                	else
                                                		tmp = (b / z) / c;
                                                	end
                                                	tmp_2 = tmp;
                                                end
                                                
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -6.5e+66], N[(b / N[(c * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.05e+163], N[(a * N[(-4.0 * N[(t / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b / z), $MachinePrecision] / c), $MachinePrecision]]]
                                                
                                                \begin{array}{l}
                                                [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
                                                [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
                                                \\
                                                \begin{array}{l}
                                                \mathbf{if}\;b \leq -6.5 \cdot 10^{+66}:\\
                                                \;\;\;\;\frac{b}{c \cdot z}\\
                                                
                                                \mathbf{elif}\;b \leq 1.05 \cdot 10^{+163}:\\
                                                \;\;\;\;a \cdot \left(-4 \cdot \frac{t}{c}\right)\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;\frac{\frac{b}{z}}{c}\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 3 regimes
                                                2. if b < -6.5000000000000001e66

                                                  1. Initial program 79.5%

                                                    \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                                                  2. Taylor expanded in b around inf

                                                    \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
                                                  3. Step-by-step derivation
                                                    1. lower-/.f64N/A

                                                      \[\leadsto \frac{b}{\color{blue}{c \cdot z}} \]
                                                    2. lower-*.f6434.6

                                                      \[\leadsto \frac{b}{c \cdot \color{blue}{z}} \]
                                                  4. Applied rewrites34.6%

                                                    \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]

                                                  if -6.5000000000000001e66 < b < 1.05e163

                                                  1. Initial program 79.5%

                                                    \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                                                  2. Taylor expanded in a around inf

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

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

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

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

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

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

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

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

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

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

                                                      \[\leadsto a \cdot \mathsf{fma}\left(-4, \frac{t}{c}, \mathsf{fma}\left(9, \frac{x \cdot y}{a \cdot \left(c \cdot z\right)}, \frac{b}{a \cdot \left(c \cdot z\right)}\right)\right) \]
                                                    11. lower-*.f6468.8

                                                      \[\leadsto a \cdot \mathsf{fma}\left(-4, \frac{t}{c}, \mathsf{fma}\left(9, \frac{x \cdot y}{a \cdot \left(c \cdot z\right)}, \frac{b}{a \cdot \left(c \cdot z\right)}\right)\right) \]
                                                  4. Applied rewrites68.8%

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

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

                                                      \[\leadsto a \cdot \left(-4 \cdot \frac{t}{\color{blue}{c}}\right) \]
                                                    2. lower-/.f6440.1

                                                      \[\leadsto a \cdot \left(-4 \cdot \frac{t}{c}\right) \]
                                                  7. Applied rewrites40.1%

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

                                                  if 1.05e163 < b

                                                  1. Initial program 79.5%

                                                    \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                                                  2. Step-by-step derivation
                                                    1. lift-/.f64N/A

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

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

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

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

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

                                                    \[\leadsto \frac{\color{blue}{\frac{b}{z}}}{c} \]
                                                  5. Step-by-step derivation
                                                    1. lower-/.f6433.0

                                                      \[\leadsto \frac{\frac{b}{\color{blue}{z}}}{c} \]
                                                  6. Applied rewrites33.0%

                                                    \[\leadsto \frac{\color{blue}{\frac{b}{z}}}{c} \]
                                                3. Recombined 3 regimes into one program.
                                                4. Add Preprocessing

                                                Alternative 16: 47.3% accurate, 1.5× speedup?

                                                \[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} \mathbf{if}\;b \leq -6.1 \cdot 10^{+66}:\\ \;\;\;\;\frac{b}{c \cdot z}\\ \mathbf{elif}\;b \leq 1.05 \cdot 10^{+163}:\\ \;\;\;\;-4 \cdot \frac{a \cdot t}{c}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{b}{z}}{c}\\ \end{array} \end{array} \]
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                (FPCore (x y z t a b c)
                                                 :precision binary64
                                                 (if (<= b -6.1e+66)
                                                   (/ b (* c z))
                                                   (if (<= b 1.05e+163) (* -4.0 (/ (* a t) c)) (/ (/ b z) c))))
                                                assert(x < y && y < z && z < t && t < a && a < b && b < c);
                                                assert(x < y && y < z && z < t && t < a && a < b && b < c);
                                                double code(double x, double y, double z, double t, double a, double b, double c) {
                                                	double tmp;
                                                	if (b <= -6.1e+66) {
                                                		tmp = b / (c * z);
                                                	} else if (b <= 1.05e+163) {
                                                		tmp = -4.0 * ((a * t) / c);
                                                	} else {
                                                		tmp = (b / z) / c;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                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)
                                                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) :: tmp
                                                    if (b <= (-6.1d+66)) then
                                                        tmp = b / (c * z)
                                                    else if (b <= 1.05d+163) then
                                                        tmp = (-4.0d0) * ((a * t) / c)
                                                    else
                                                        tmp = (b / z) / c
                                                    end if
                                                    code = tmp
                                                end function
                                                
                                                assert x < y && y < z && z < t && t < a && a < b && b < c;
                                                assert x < y && y < z && z < t && t < a && a < b && b < c;
                                                public static double code(double x, double y, double z, double t, double a, double b, double c) {
                                                	double tmp;
                                                	if (b <= -6.1e+66) {
                                                		tmp = b / (c * z);
                                                	} else if (b <= 1.05e+163) {
                                                		tmp = -4.0 * ((a * t) / c);
                                                	} else {
                                                		tmp = (b / z) / c;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                [x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
                                                [x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
                                                def code(x, y, z, t, a, b, c):
                                                	tmp = 0
                                                	if b <= -6.1e+66:
                                                		tmp = b / (c * z)
                                                	elif b <= 1.05e+163:
                                                		tmp = -4.0 * ((a * t) / c)
                                                	else:
                                                		tmp = (b / z) / c
                                                	return tmp
                                                
                                                x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                                                x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                                                function code(x, y, z, t, a, b, c)
                                                	tmp = 0.0
                                                	if (b <= -6.1e+66)
                                                		tmp = Float64(b / Float64(c * z));
                                                	elseif (b <= 1.05e+163)
                                                		tmp = Float64(-4.0 * Float64(Float64(a * t) / c));
                                                	else
                                                		tmp = Float64(Float64(b / z) / c);
                                                	end
                                                	return tmp
                                                end
                                                
                                                x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
                                                x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
                                                function tmp_2 = code(x, y, z, t, a, b, c)
                                                	tmp = 0.0;
                                                	if (b <= -6.1e+66)
                                                		tmp = b / (c * z);
                                                	elseif (b <= 1.05e+163)
                                                		tmp = -4.0 * ((a * t) / c);
                                                	else
                                                		tmp = (b / z) / c;
                                                	end
                                                	tmp_2 = tmp;
                                                end
                                                
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -6.1e+66], N[(b / N[(c * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.05e+163], N[(-4.0 * N[(N[(a * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], N[(N[(b / z), $MachinePrecision] / c), $MachinePrecision]]]
                                                
                                                \begin{array}{l}
                                                [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
                                                [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
                                                \\
                                                \begin{array}{l}
                                                \mathbf{if}\;b \leq -6.1 \cdot 10^{+66}:\\
                                                \;\;\;\;\frac{b}{c \cdot z}\\
                                                
                                                \mathbf{elif}\;b \leq 1.05 \cdot 10^{+163}:\\
                                                \;\;\;\;-4 \cdot \frac{a \cdot t}{c}\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;\frac{\frac{b}{z}}{c}\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 3 regimes
                                                2. if b < -6.10000000000000021e66

                                                  1. Initial program 79.5%

                                                    \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                                                  2. Taylor expanded in b around inf

                                                    \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
                                                  3. Step-by-step derivation
                                                    1. lower-/.f64N/A

                                                      \[\leadsto \frac{b}{\color{blue}{c \cdot z}} \]
                                                    2. lower-*.f6434.6

                                                      \[\leadsto \frac{b}{c \cdot \color{blue}{z}} \]
                                                  4. Applied rewrites34.6%

                                                    \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]

                                                  if -6.10000000000000021e66 < b < 1.05e163

                                                  1. Initial program 79.5%

                                                    \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                                                  2. Taylor expanded in z around inf

                                                    \[\leadsto \color{blue}{-4 \cdot \frac{a \cdot t}{c}} \]
                                                  3. Step-by-step derivation
                                                    1. lower-*.f64N/A

                                                      \[\leadsto -4 \cdot \color{blue}{\frac{a \cdot t}{c}} \]
                                                    2. lower-/.f64N/A

                                                      \[\leadsto -4 \cdot \frac{a \cdot t}{\color{blue}{c}} \]
                                                    3. lower-*.f6438.2

                                                      \[\leadsto -4 \cdot \frac{a \cdot t}{c} \]
                                                  4. Applied rewrites38.2%

                                                    \[\leadsto \color{blue}{-4 \cdot \frac{a \cdot t}{c}} \]

                                                  if 1.05e163 < b

                                                  1. Initial program 79.5%

                                                    \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                                                  2. Step-by-step derivation
                                                    1. lift-/.f64N/A

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

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

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

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

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

                                                    \[\leadsto \frac{\color{blue}{\frac{b}{z}}}{c} \]
                                                  5. Step-by-step derivation
                                                    1. lower-/.f6433.0

                                                      \[\leadsto \frac{\frac{b}{\color{blue}{z}}}{c} \]
                                                  6. Applied rewrites33.0%

                                                    \[\leadsto \frac{\color{blue}{\frac{b}{z}}}{c} \]
                                                3. Recombined 3 regimes into one program.
                                                4. Add Preprocessing

                                                Alternative 17: 35.2% accurate, 0.7× speedup?

                                                \[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} \mathbf{if}\;\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \leq -5 \cdot 10^{+99}:\\ \;\;\;\;\frac{b}{c \cdot z}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{b}{z}}{c}\\ \end{array} \end{array} \]
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                (FPCore (x y z t a b c)
                                                 :precision binary64
                                                 (if (<= (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)) -5e+99)
                                                   (/ b (* c z))
                                                   (/ (/ b z) c)))
                                                assert(x < y && y < z && z < t && t < a && a < b && b < c);
                                                assert(x < y && y < z && z < t && t < a && a < b && b < c);
                                                double code(double x, double y, double z, double t, double a, double b, double c) {
                                                	double tmp;
                                                	if ((((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c)) <= -5e+99) {
                                                		tmp = b / (c * z);
                                                	} else {
                                                		tmp = (b / z) / c;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                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)
                                                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) :: tmp
                                                    if ((((((x * 9.0d0) * y) - (((z * 4.0d0) * t) * a)) + b) / (z * c)) <= (-5d+99)) then
                                                        tmp = b / (c * z)
                                                    else
                                                        tmp = (b / z) / c
                                                    end if
                                                    code = tmp
                                                end function
                                                
                                                assert x < y && y < z && z < t && t < a && a < b && b < c;
                                                assert x < y && y < z && z < t && t < a && a < b && b < c;
                                                public static double code(double x, double y, double z, double t, double a, double b, double c) {
                                                	double tmp;
                                                	if ((((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c)) <= -5e+99) {
                                                		tmp = b / (c * z);
                                                	} else {
                                                		tmp = (b / z) / c;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                [x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
                                                [x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
                                                def code(x, y, z, t, a, b, c):
                                                	tmp = 0
                                                	if (((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c)) <= -5e+99:
                                                		tmp = b / (c * z)
                                                	else:
                                                		tmp = (b / z) / c
                                                	return tmp
                                                
                                                x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                                                x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                                                function code(x, y, z, t, a, b, c)
                                                	tmp = 0.0
                                                	if (Float64(Float64(Float64(Float64(Float64(x * 9.0) * y) - Float64(Float64(Float64(z * 4.0) * t) * a)) + b) / Float64(z * c)) <= -5e+99)
                                                		tmp = Float64(b / Float64(c * z));
                                                	else
                                                		tmp = Float64(Float64(b / z) / c);
                                                	end
                                                	return tmp
                                                end
                                                
                                                x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
                                                x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
                                                function tmp_2 = code(x, y, z, t, a, b, c)
                                                	tmp = 0.0;
                                                	if ((((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c)) <= -5e+99)
                                                		tmp = b / (c * z);
                                                	else
                                                		tmp = (b / z) / c;
                                                	end
                                                	tmp_2 = tmp;
                                                end
                                                
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(N[(N[(N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision] - N[(N[(N[(z * 4.0), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision], -5e+99], N[(b / N[(c * z), $MachinePrecision]), $MachinePrecision], N[(N[(b / z), $MachinePrecision] / c), $MachinePrecision]]
                                                
                                                \begin{array}{l}
                                                [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
                                                [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
                                                \\
                                                \begin{array}{l}
                                                \mathbf{if}\;\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \leq -5 \cdot 10^{+99}:\\
                                                \;\;\;\;\frac{b}{c \cdot z}\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;\frac{\frac{b}{z}}{c}\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 2 regimes
                                                2. if (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c)) < -5.00000000000000008e99

                                                  1. Initial program 79.5%

                                                    \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                                                  2. Taylor expanded in b around inf

                                                    \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
                                                  3. Step-by-step derivation
                                                    1. lower-/.f64N/A

                                                      \[\leadsto \frac{b}{\color{blue}{c \cdot z}} \]
                                                    2. lower-*.f6434.6

                                                      \[\leadsto \frac{b}{c \cdot \color{blue}{z}} \]
                                                  4. Applied rewrites34.6%

                                                    \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]

                                                  if -5.00000000000000008e99 < (/.f64 (+.f64 (-.f64 (*.f64 (*.f64 x #s(literal 9 binary64)) y) (*.f64 (*.f64 (*.f64 z #s(literal 4 binary64)) t) a)) b) (*.f64 z c))

                                                  1. Initial program 79.5%

                                                    \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                                                  2. Step-by-step derivation
                                                    1. lift-/.f64N/A

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

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

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

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

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

                                                    \[\leadsto \frac{\color{blue}{\frac{b}{z}}}{c} \]
                                                  5. Step-by-step derivation
                                                    1. lower-/.f6433.0

                                                      \[\leadsto \frac{\frac{b}{\color{blue}{z}}}{c} \]
                                                  6. Applied rewrites33.0%

                                                    \[\leadsto \frac{\color{blue}{\frac{b}{z}}}{c} \]
                                                3. Recombined 2 regimes into one program.
                                                4. Add Preprocessing

                                                Alternative 18: 34.6% accurate, 2.4× speedup?

                                                \[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \begin{array}{l} \mathbf{if}\;c \leq 10^{+29}:\\ \;\;\;\;\frac{b}{c \cdot z}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{b}{c}}{z}\\ \end{array} \end{array} \]
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                (FPCore (x y z t a b c)
                                                 :precision binary64
                                                 (if (<= c 1e+29) (/ b (* c z)) (/ (/ b c) z)))
                                                assert(x < y && y < z && z < t && t < a && a < b && b < c);
                                                assert(x < y && y < z && z < t && t < a && a < b && b < c);
                                                double code(double x, double y, double z, double t, double a, double b, double c) {
                                                	double tmp;
                                                	if (c <= 1e+29) {
                                                		tmp = b / (c * z);
                                                	} else {
                                                		tmp = (b / c) / z;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                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)
                                                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) :: tmp
                                                    if (c <= 1d+29) then
                                                        tmp = b / (c * z)
                                                    else
                                                        tmp = (b / c) / z
                                                    end if
                                                    code = tmp
                                                end function
                                                
                                                assert x < y && y < z && z < t && t < a && a < b && b < c;
                                                assert x < y && y < z && z < t && t < a && a < b && b < c;
                                                public static double code(double x, double y, double z, double t, double a, double b, double c) {
                                                	double tmp;
                                                	if (c <= 1e+29) {
                                                		tmp = b / (c * z);
                                                	} else {
                                                		tmp = (b / c) / z;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                [x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
                                                [x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
                                                def code(x, y, z, t, a, b, c):
                                                	tmp = 0
                                                	if c <= 1e+29:
                                                		tmp = b / (c * z)
                                                	else:
                                                		tmp = (b / c) / z
                                                	return tmp
                                                
                                                x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                                                x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                                                function code(x, y, z, t, a, b, c)
                                                	tmp = 0.0
                                                	if (c <= 1e+29)
                                                		tmp = Float64(b / Float64(c * z));
                                                	else
                                                		tmp = Float64(Float64(b / c) / z);
                                                	end
                                                	return tmp
                                                end
                                                
                                                x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
                                                x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
                                                function tmp_2 = code(x, y, z, t, a, b, c)
                                                	tmp = 0.0;
                                                	if (c <= 1e+29)
                                                		tmp = b / (c * z);
                                                	else
                                                		tmp = (b / c) / z;
                                                	end
                                                	tmp_2 = tmp;
                                                end
                                                
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 1e+29], N[(b / N[(c * z), $MachinePrecision]), $MachinePrecision], N[(N[(b / c), $MachinePrecision] / z), $MachinePrecision]]
                                                
                                                \begin{array}{l}
                                                [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
                                                [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
                                                \\
                                                \begin{array}{l}
                                                \mathbf{if}\;c \leq 10^{+29}:\\
                                                \;\;\;\;\frac{b}{c \cdot z}\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;\frac{\frac{b}{c}}{z}\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 2 regimes
                                                2. if c < 9.99999999999999914e28

                                                  1. Initial program 79.5%

                                                    \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                                                  2. Taylor expanded in b around inf

                                                    \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
                                                  3. Step-by-step derivation
                                                    1. lower-/.f64N/A

                                                      \[\leadsto \frac{b}{\color{blue}{c \cdot z}} \]
                                                    2. lower-*.f6434.6

                                                      \[\leadsto \frac{b}{c \cdot \color{blue}{z}} \]
                                                  4. Applied rewrites34.6%

                                                    \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]

                                                  if 9.99999999999999914e28 < c

                                                  1. Initial program 79.5%

                                                    \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                                                  2. Step-by-step derivation
                                                    1. lift-/.f64N/A

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

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

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

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

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

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

                                                    \[\leadsto \frac{\color{blue}{\frac{b}{c}}}{z} \]
                                                  5. Step-by-step derivation
                                                    1. lower-/.f6434.2

                                                      \[\leadsto \frac{\frac{b}{\color{blue}{c}}}{z} \]
                                                  6. Applied rewrites34.2%

                                                    \[\leadsto \frac{\color{blue}{\frac{b}{c}}}{z} \]
                                                3. Recombined 2 regimes into one program.
                                                4. Add Preprocessing

                                                Alternative 19: 34.3% accurate, 3.8× speedup?

                                                \[\begin{array}{l} [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\ [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\ \\ \frac{b}{c \cdot z} \end{array} \]
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                (FPCore (x y z t a b c) :precision binary64 (/ b (* c z)))
                                                assert(x < y && y < z && z < t && t < a && a < b && b < c);
                                                assert(x < y && y < z && z < t && t < a && a < b && b < c);
                                                double code(double x, double y, double z, double t, double a, double b, double c) {
                                                	return b / (c * z);
                                                }
                                                
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                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)
                                                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
                                                    code = b / (c * z)
                                                end function
                                                
                                                assert x < y && y < z && z < t && t < a && a < b && b < c;
                                                assert x < y && y < z && z < t && t < a && a < b && b < c;
                                                public static double code(double x, double y, double z, double t, double a, double b, double c) {
                                                	return b / (c * z);
                                                }
                                                
                                                [x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
                                                [x, y, z, t, a, b, c] = sort([x, y, z, t, a, b, c])
                                                def code(x, y, z, t, a, b, c):
                                                	return b / (c * z)
                                                
                                                x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                                                x, y, z, t, a, b, c = sort([x, y, z, t, a, b, c])
                                                function code(x, y, z, t, a, b, c)
                                                	return Float64(b / Float64(c * z))
                                                end
                                                
                                                x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
                                                x, y, z, t, a, b, c = num2cell(sort([x, y, z, t, a, b, c])){:}
                                                function tmp = code(x, y, z, t, a, b, c)
                                                	tmp = b / (c * z);
                                                end
                                                
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                NOTE: x, y, z, t, a, b, and c should be sorted in increasing order before calling this function.
                                                code[x_, y_, z_, t_, a_, b_, c_] := N[(b / N[(c * z), $MachinePrecision]), $MachinePrecision]
                                                
                                                \begin{array}{l}
                                                [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\\\
                                                [x, y, z, t, a, b, c] = \mathsf{sort}([x, y, z, t, a, b, c])\\
                                                \\
                                                \frac{b}{c \cdot z}
                                                \end{array}
                                                
                                                Derivation
                                                1. Initial program 79.5%

                                                  \[\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c} \]
                                                2. Taylor expanded in b around inf

                                                  \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
                                                3. Step-by-step derivation
                                                  1. lower-/.f64N/A

                                                    \[\leadsto \frac{b}{\color{blue}{c \cdot z}} \]
                                                  2. lower-*.f6434.6

                                                    \[\leadsto \frac{b}{c \cdot \color{blue}{z}} \]
                                                4. Applied rewrites34.6%

                                                  \[\leadsto \color{blue}{\frac{b}{c \cdot z}} \]
                                                5. Add Preprocessing

                                                Reproduce

                                                ?
                                                herbie shell --seed 2025156 
                                                (FPCore (x y z t a b c)
                                                  :name "Diagrams.Solve.Polynomial:cubForm  from diagrams-solve-0.1, J"
                                                  :precision binary64
                                                  (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)))