AI.Clustering.Hierarchical.Internal:ward from clustering-0.2.1

Percentage Accurate: 60.6% → 93.5%
Time: 9.9s
Alternatives: 17
Speedup: 1.2×

Specification

?
\[\begin{array}{l} \\ \frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y)))
double code(double x, double y, double z, double t, double a, double b) {
	return ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y);
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z, t, a, b)
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
    code = ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	return ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y);
}
def code(x, y, z, t, a, b):
	return ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y)
function code(x, y, z, t, a, b)
	return Float64(Float64(Float64(Float64(Float64(x + y) * z) + Float64(Float64(t + y) * a)) - Float64(y * b)) / Float64(Float64(x + t) + y))
end
function tmp = code(x, y, z, t, a, b)
	tmp = ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y);
end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(N[(N[(x + y), $MachinePrecision] * z), $MachinePrecision] + N[(N[(t + y), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / N[(N[(x + t), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

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

Initial Program: 60.6% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y)))
double code(double x, double y, double z, double t, double a, double b) {
	return ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y);
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z, t, a, b)
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
    code = ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	return ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y);
}
def code(x, y, z, t, a, b):
	return ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y)
function code(x, y, z, t, a, b)
	return Float64(Float64(Float64(Float64(Float64(x + y) * z) + Float64(Float64(t + y) * a)) - Float64(y * b)) / Float64(Float64(x + t) + y))
end
function tmp = code(x, y, z, t, a, b)
	tmp = ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y);
end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(N[(N[(x + y), $MachinePrecision] * z), $MachinePrecision] + N[(N[(t + y), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / N[(N[(x + t), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Alternative 1: 93.5% accurate, 0.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(y + x\right) + t\\ t_2 := \frac{y + x}{t\_1}\\ t_3 := \left(\left(\frac{t + y}{t\_1} + \frac{z}{a} \cdot t\_2\right) - \frac{b}{a} \cdot \frac{y}{t\_1}\right) \cdot a\\ \mathbf{if}\;a \leq -4 \cdot 10^{-27}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;a \leq 6.4 \cdot 10^{-65}:\\ \;\;\;\;\mathsf{fma}\left(t\_2, z, \frac{\mathsf{fma}\left(t + y, a, \left(-b\right) \cdot y\right)}{t\_1}\right)\\ \mathbf{else}:\\ \;\;\;\;t\_3\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (+ (+ y x) t))
        (t_2 (/ (+ y x) t_1))
        (t_3
         (* (- (+ (/ (+ t y) t_1) (* (/ z a) t_2)) (* (/ b a) (/ y t_1))) a)))
   (if (<= a -4e-27)
     t_3
     (if (<= a 6.4e-65) (fma t_2 z (/ (fma (+ t y) a (* (- b) y)) t_1)) t_3))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (y + x) + t;
	double t_2 = (y + x) / t_1;
	double t_3 = ((((t + y) / t_1) + ((z / a) * t_2)) - ((b / a) * (y / t_1))) * a;
	double tmp;
	if (a <= -4e-27) {
		tmp = t_3;
	} else if (a <= 6.4e-65) {
		tmp = fma(t_2, z, (fma((t + y), a, (-b * y)) / t_1));
	} else {
		tmp = t_3;
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(y + x) + t)
	t_2 = Float64(Float64(y + x) / t_1)
	t_3 = Float64(Float64(Float64(Float64(Float64(t + y) / t_1) + Float64(Float64(z / a) * t_2)) - Float64(Float64(b / a) * Float64(y / t_1))) * a)
	tmp = 0.0
	if (a <= -4e-27)
		tmp = t_3;
	elseif (a <= 6.4e-65)
		tmp = fma(t_2, z, Float64(fma(Float64(t + y), a, Float64(Float64(-b) * y)) / t_1));
	else
		tmp = t_3;
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y + x), $MachinePrecision] + t), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y + x), $MachinePrecision] / t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(N[(N[(t + y), $MachinePrecision] / t$95$1), $MachinePrecision] + N[(N[(z / a), $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(N[(b / a), $MachinePrecision] * N[(y / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[a, -4e-27], t$95$3, If[LessEqual[a, 6.4e-65], N[(t$95$2 * z + N[(N[(N[(t + y), $MachinePrecision] * a + N[((-b) * y), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \left(y + x\right) + t\\
t_2 := \frac{y + x}{t\_1}\\
t_3 := \left(\left(\frac{t + y}{t\_1} + \frac{z}{a} \cdot t\_2\right) - \frac{b}{a} \cdot \frac{y}{t\_1}\right) \cdot a\\
\mathbf{if}\;a \leq -4 \cdot 10^{-27}:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;a \leq 6.4 \cdot 10^{-65}:\\
\;\;\;\;\mathsf{fma}\left(t\_2, z, \frac{\mathsf{fma}\left(t + y, a, \left(-b\right) \cdot y\right)}{t\_1}\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -4.0000000000000002e-27 or 6.3999999999999998e-65 < a

    1. Initial program 51.3%

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

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

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

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

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

    if -4.0000000000000002e-27 < a < 6.3999999999999998e-65

    1. Initial program 73.1%

      \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
    2. Applied rewrites87.7%

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

Alternative 2: 76.6% accurate, 0.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(x + t\right) + y\\ t_2 := \frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{t\_1}\\ t_3 := \left(y + x\right) + t\\ \mathbf{if}\;t\_2 \leq -2 \cdot 10^{+221}:\\ \;\;\;\;\left(a + z\right) - b\\ \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{-75}:\\ \;\;\;\;\frac{\mathsf{fma}\left(t + y, a, \left(y + x\right) \cdot z\right)}{t\_1}\\ \mathbf{elif}\;t\_2 \leq 10^{+261}:\\ \;\;\;\;\mathsf{fma}\left(1, z, \frac{\mathsf{fma}\left(t + y, a, \left(-b\right) \cdot y\right)}{t\_3}\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y + x}{t\_3}, z, a\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (+ (+ x t) y))
        (t_2 (/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) t_1))
        (t_3 (+ (+ y x) t)))
   (if (<= t_2 -2e+221)
     (- (+ a z) b)
     (if (<= t_2 2e-75)
       (/ (fma (+ t y) a (* (+ y x) z)) t_1)
       (if (<= t_2 1e+261)
         (fma 1.0 z (/ (fma (+ t y) a (* (- b) y)) t_3))
         (fma (/ (+ y x) t_3) z a))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (x + t) + y;
	double t_2 = ((((x + y) * z) + ((t + y) * a)) - (y * b)) / t_1;
	double t_3 = (y + x) + t;
	double tmp;
	if (t_2 <= -2e+221) {
		tmp = (a + z) - b;
	} else if (t_2 <= 2e-75) {
		tmp = fma((t + y), a, ((y + x) * z)) / t_1;
	} else if (t_2 <= 1e+261) {
		tmp = fma(1.0, z, (fma((t + y), a, (-b * y)) / t_3));
	} else {
		tmp = fma(((y + x) / t_3), z, a);
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(x + t) + y)
	t_2 = Float64(Float64(Float64(Float64(Float64(x + y) * z) + Float64(Float64(t + y) * a)) - Float64(y * b)) / t_1)
	t_3 = Float64(Float64(y + x) + t)
	tmp = 0.0
	if (t_2 <= -2e+221)
		tmp = Float64(Float64(a + z) - b);
	elseif (t_2 <= 2e-75)
		tmp = Float64(fma(Float64(t + y), a, Float64(Float64(y + x) * z)) / t_1);
	elseif (t_2 <= 1e+261)
		tmp = fma(1.0, z, Float64(fma(Float64(t + y), a, Float64(Float64(-b) * y)) / t_3));
	else
		tmp = fma(Float64(Float64(y + x) / t_3), z, a);
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + t), $MachinePrecision] + y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(N[(x + y), $MachinePrecision] * z), $MachinePrecision] + N[(N[(t + y), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y + x), $MachinePrecision] + t), $MachinePrecision]}, If[LessEqual[t$95$2, -2e+221], N[(N[(a + z), $MachinePrecision] - b), $MachinePrecision], If[LessEqual[t$95$2, 2e-75], N[(N[(N[(t + y), $MachinePrecision] * a + N[(N[(y + x), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[t$95$2, 1e+261], N[(1.0 * z + N[(N[(N[(t + y), $MachinePrecision] * a + N[((-b) * y), $MachinePrecision]), $MachinePrecision] / t$95$3), $MachinePrecision]), $MachinePrecision], N[(N[(N[(y + x), $MachinePrecision] / t$95$3), $MachinePrecision] * z + a), $MachinePrecision]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \left(x + t\right) + y\\
t_2 := \frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{t\_1}\\
t_3 := \left(y + x\right) + t\\
\mathbf{if}\;t\_2 \leq -2 \cdot 10^{+221}:\\
\;\;\;\;\left(a + z\right) - b\\

\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{-75}:\\
\;\;\;\;\frac{\mathsf{fma}\left(t + y, a, \left(y + x\right) \cdot z\right)}{t\_1}\\

\mathbf{elif}\;t\_2 \leq 10^{+261}:\\
\;\;\;\;\mathsf{fma}\left(1, z, \frac{\mathsf{fma}\left(t + y, a, \left(-b\right) \cdot y\right)}{t\_3}\right)\\

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y + x}{t\_3}, z, a\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < -2.0000000000000001e221

    1. Initial program 17.2%

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

      \[\leadsto \color{blue}{\left(a + z\right) - b} \]
    3. Step-by-step derivation
      1. lower--.f64N/A

        \[\leadsto \left(a + z\right) - \color{blue}{b} \]
      2. lower-+.f6472.6

        \[\leadsto \left(a + z\right) - b \]
    4. Applied rewrites72.6%

      \[\leadsto \color{blue}{\left(a + z\right) - b} \]

    if -2.0000000000000001e221 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 1.9999999999999999e-75

    1. Initial program 99.5%

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

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

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

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

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

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

        \[\leadsto \frac{\mathsf{fma}\left(t + y, a, \left(x + y\right) \cdot z\right)}{\left(x + t\right) + y} \]
      6. +-commutativeN/A

        \[\leadsto \frac{\mathsf{fma}\left(t + y, a, \left(y + x\right) \cdot z\right)}{\left(x + t\right) + y} \]
      7. lower-+.f6478.7

        \[\leadsto \frac{\mathsf{fma}\left(t + y, a, \left(y + x\right) \cdot z\right)}{\left(x + t\right) + y} \]
    4. Applied rewrites78.7%

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

    if 1.9999999999999999e-75 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 9.9999999999999993e260

    1. Initial program 99.7%

      \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
    2. Applied rewrites99.7%

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

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

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

      if 9.9999999999999993e260 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y))

      1. Initial program 8.6%

        \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
      2. Applied rewrites31.6%

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

        \[\leadsto \mathsf{fma}\left(\frac{y + x}{\left(y + x\right) + t}, z, \color{blue}{a}\right) \]
      4. Step-by-step derivation
        1. Applied rewrites70.5%

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

      Alternative 3: 74.3% accurate, 0.2× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(x + t\right) + y\\ t_2 := \frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{t\_1}\\ t_3 := \left(y + x\right) + t\\ \mathbf{if}\;t\_2 \leq -2 \cdot 10^{+221}:\\ \;\;\;\;\left(a + z\right) - b\\ \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+121}:\\ \;\;\;\;\frac{\mathsf{fma}\left(t + y, a, \left(y + x\right) \cdot z\right)}{t\_1}\\ \mathbf{elif}\;t\_2 \leq 10^{+261}:\\ \;\;\;\;\frac{\mathsf{fma}\left(-b, y, z \cdot \left(x + y\right)\right)}{t\_3}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y + x}{t\_3}, z, a\right)\\ \end{array} \end{array} \]
      (FPCore (x y z t a b)
       :precision binary64
       (let* ((t_1 (+ (+ x t) y))
              (t_2 (/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) t_1))
              (t_3 (+ (+ y x) t)))
         (if (<= t_2 -2e+221)
           (- (+ a z) b)
           (if (<= t_2 2e+121)
             (/ (fma (+ t y) a (* (+ y x) z)) t_1)
             (if (<= t_2 1e+261)
               (/ (fma (- b) y (* z (+ x y))) t_3)
               (fma (/ (+ y x) t_3) z a))))))
      double code(double x, double y, double z, double t, double a, double b) {
      	double t_1 = (x + t) + y;
      	double t_2 = ((((x + y) * z) + ((t + y) * a)) - (y * b)) / t_1;
      	double t_3 = (y + x) + t;
      	double tmp;
      	if (t_2 <= -2e+221) {
      		tmp = (a + z) - b;
      	} else if (t_2 <= 2e+121) {
      		tmp = fma((t + y), a, ((y + x) * z)) / t_1;
      	} else if (t_2 <= 1e+261) {
      		tmp = fma(-b, y, (z * (x + y))) / t_3;
      	} else {
      		tmp = fma(((y + x) / t_3), z, a);
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a, b)
      	t_1 = Float64(Float64(x + t) + y)
      	t_2 = Float64(Float64(Float64(Float64(Float64(x + y) * z) + Float64(Float64(t + y) * a)) - Float64(y * b)) / t_1)
      	t_3 = Float64(Float64(y + x) + t)
      	tmp = 0.0
      	if (t_2 <= -2e+221)
      		tmp = Float64(Float64(a + z) - b);
      	elseif (t_2 <= 2e+121)
      		tmp = Float64(fma(Float64(t + y), a, Float64(Float64(y + x) * z)) / t_1);
      	elseif (t_2 <= 1e+261)
      		tmp = Float64(fma(Float64(-b), y, Float64(z * Float64(x + y))) / t_3);
      	else
      		tmp = fma(Float64(Float64(y + x) / t_3), z, a);
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + t), $MachinePrecision] + y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(N[(x + y), $MachinePrecision] * z), $MachinePrecision] + N[(N[(t + y), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y + x), $MachinePrecision] + t), $MachinePrecision]}, If[LessEqual[t$95$2, -2e+221], N[(N[(a + z), $MachinePrecision] - b), $MachinePrecision], If[LessEqual[t$95$2, 2e+121], N[(N[(N[(t + y), $MachinePrecision] * a + N[(N[(y + x), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[t$95$2, 1e+261], N[(N[((-b) * y + N[(z * N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$3), $MachinePrecision], N[(N[(N[(y + x), $MachinePrecision] / t$95$3), $MachinePrecision] * z + a), $MachinePrecision]]]]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \left(x + t\right) + y\\
      t_2 := \frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{t\_1}\\
      t_3 := \left(y + x\right) + t\\
      \mathbf{if}\;t\_2 \leq -2 \cdot 10^{+221}:\\
      \;\;\;\;\left(a + z\right) - b\\
      
      \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+121}:\\
      \;\;\;\;\frac{\mathsf{fma}\left(t + y, a, \left(y + x\right) \cdot z\right)}{t\_1}\\
      
      \mathbf{elif}\;t\_2 \leq 10^{+261}:\\
      \;\;\;\;\frac{\mathsf{fma}\left(-b, y, z \cdot \left(x + y\right)\right)}{t\_3}\\
      
      \mathbf{else}:\\
      \;\;\;\;\mathsf{fma}\left(\frac{y + x}{t\_3}, z, a\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 4 regimes
      2. if (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < -2.0000000000000001e221

        1. Initial program 17.2%

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

          \[\leadsto \color{blue}{\left(a + z\right) - b} \]
        3. Step-by-step derivation
          1. lower--.f64N/A

            \[\leadsto \left(a + z\right) - \color{blue}{b} \]
          2. lower-+.f6472.6

            \[\leadsto \left(a + z\right) - b \]
        4. Applied rewrites72.6%

          \[\leadsto \color{blue}{\left(a + z\right) - b} \]

        if -2.0000000000000001e221 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 2.00000000000000007e121

        1. Initial program 99.6%

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

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

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

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

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

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

            \[\leadsto \frac{\mathsf{fma}\left(t + y, a, \left(x + y\right) \cdot z\right)}{\left(x + t\right) + y} \]
          6. +-commutativeN/A

            \[\leadsto \frac{\mathsf{fma}\left(t + y, a, \left(y + x\right) \cdot z\right)}{\left(x + t\right) + y} \]
          7. lower-+.f6478.1

            \[\leadsto \frac{\mathsf{fma}\left(t + y, a, \left(y + x\right) \cdot z\right)}{\left(x + t\right) + y} \]
        4. Applied rewrites78.1%

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

        if 2.00000000000000007e121 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 9.9999999999999993e260

        1. Initial program 99.7%

          \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
        2. Step-by-step derivation
          1. Applied rewrites99.7%

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

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

              \[\leadsto \frac{\mathsf{fma}\left(-b, y, z \cdot \color{blue}{\left(x + y\right)}\right)}{\left(y + x\right) + t} \]
            2. lower-+.f6465.4

              \[\leadsto \frac{\mathsf{fma}\left(-b, y, z \cdot \left(x + \color{blue}{y}\right)\right)}{\left(y + x\right) + t} \]
          4. Applied rewrites65.4%

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

          if 9.9999999999999993e260 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y))

          1. Initial program 8.6%

            \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
          2. Applied rewrites31.6%

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

            \[\leadsto \mathsf{fma}\left(\frac{y + x}{\left(y + x\right) + t}, z, \color{blue}{a}\right) \]
          4. Step-by-step derivation
            1. Applied rewrites70.5%

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

          Alternative 4: 86.9% accurate, 0.3× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(y + x\right) + t\\ t_2 := \frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y}\\ t_3 := \frac{y + x}{t\_1}\\ \mathbf{if}\;t\_2 \leq -2 \cdot 10^{+221}:\\ \;\;\;\;\left(a + z\right) - b\\ \mathbf{elif}\;t\_2 \leq 10^{+261}:\\ \;\;\;\;\mathsf{fma}\left(t\_3, z, \frac{\mathsf{fma}\left(t + y, a, \left(-b\right) \cdot y\right)}{t\_1}\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(t\_3, z, a\right)\\ \end{array} \end{array} \]
          (FPCore (x y z t a b)
           :precision binary64
           (let* ((t_1 (+ (+ y x) t))
                  (t_2 (/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y)))
                  (t_3 (/ (+ y x) t_1)))
             (if (<= t_2 -2e+221)
               (- (+ a z) b)
               (if (<= t_2 1e+261)
                 (fma t_3 z (/ (fma (+ t y) a (* (- b) y)) t_1))
                 (fma t_3 z a)))))
          double code(double x, double y, double z, double t, double a, double b) {
          	double t_1 = (y + x) + t;
          	double t_2 = ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y);
          	double t_3 = (y + x) / t_1;
          	double tmp;
          	if (t_2 <= -2e+221) {
          		tmp = (a + z) - b;
          	} else if (t_2 <= 1e+261) {
          		tmp = fma(t_3, z, (fma((t + y), a, (-b * y)) / t_1));
          	} else {
          		tmp = fma(t_3, z, a);
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a, b)
          	t_1 = Float64(Float64(y + x) + t)
          	t_2 = Float64(Float64(Float64(Float64(Float64(x + y) * z) + Float64(Float64(t + y) * a)) - Float64(y * b)) / Float64(Float64(x + t) + y))
          	t_3 = Float64(Float64(y + x) / t_1)
          	tmp = 0.0
          	if (t_2 <= -2e+221)
          		tmp = Float64(Float64(a + z) - b);
          	elseif (t_2 <= 1e+261)
          		tmp = fma(t_3, z, Float64(fma(Float64(t + y), a, Float64(Float64(-b) * y)) / t_1));
          	else
          		tmp = fma(t_3, z, a);
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y + x), $MachinePrecision] + t), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(N[(x + y), $MachinePrecision] * z), $MachinePrecision] + N[(N[(t + y), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / N[(N[(x + t), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y + x), $MachinePrecision] / t$95$1), $MachinePrecision]}, If[LessEqual[t$95$2, -2e+221], N[(N[(a + z), $MachinePrecision] - b), $MachinePrecision], If[LessEqual[t$95$2, 1e+261], N[(t$95$3 * z + N[(N[(N[(t + y), $MachinePrecision] * a + N[((-b) * y), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision], N[(t$95$3 * z + a), $MachinePrecision]]]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := \left(y + x\right) + t\\
          t_2 := \frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y}\\
          t_3 := \frac{y + x}{t\_1}\\
          \mathbf{if}\;t\_2 \leq -2 \cdot 10^{+221}:\\
          \;\;\;\;\left(a + z\right) - b\\
          
          \mathbf{elif}\;t\_2 \leq 10^{+261}:\\
          \;\;\;\;\mathsf{fma}\left(t\_3, z, \frac{\mathsf{fma}\left(t + y, a, \left(-b\right) \cdot y\right)}{t\_1}\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;\mathsf{fma}\left(t\_3, z, a\right)\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < -2.0000000000000001e221

            1. Initial program 17.2%

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

              \[\leadsto \color{blue}{\left(a + z\right) - b} \]
            3. Step-by-step derivation
              1. lower--.f64N/A

                \[\leadsto \left(a + z\right) - \color{blue}{b} \]
              2. lower-+.f6472.6

                \[\leadsto \left(a + z\right) - b \]
            4. Applied rewrites72.6%

              \[\leadsto \color{blue}{\left(a + z\right) - b} \]

            if -2.0000000000000001e221 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 9.9999999999999993e260

            1. Initial program 99.6%

              \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
            2. Applied rewrites99.4%

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

            if 9.9999999999999993e260 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y))

            1. Initial program 8.6%

              \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
            2. Applied rewrites31.6%

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

              \[\leadsto \mathsf{fma}\left(\frac{y + x}{\left(y + x\right) + t}, z, \color{blue}{a}\right) \]
            4. Step-by-step derivation
              1. Applied rewrites70.5%

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

            Alternative 5: 86.8% accurate, 0.3× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(y + x\right) + t\\ t_2 := \frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y}\\ \mathbf{if}\;t\_2 \leq -2 \cdot 10^{+221}:\\ \;\;\;\;\left(a + z\right) - b\\ \mathbf{elif}\;t\_2 \leq 10^{+261}:\\ \;\;\;\;\mathsf{fma}\left(\frac{t + y}{t\_1}, a, \frac{\mathsf{fma}\left(y + x, z, \left(-b\right) \cdot y\right)}{t\_1}\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y + x}{t\_1}, z, a\right)\\ \end{array} \end{array} \]
            (FPCore (x y z t a b)
             :precision binary64
             (let* ((t_1 (+ (+ y x) t))
                    (t_2 (/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y))))
               (if (<= t_2 -2e+221)
                 (- (+ a z) b)
                 (if (<= t_2 1e+261)
                   (fma (/ (+ t y) t_1) a (/ (fma (+ y x) z (* (- b) y)) t_1))
                   (fma (/ (+ y x) t_1) z a)))))
            double code(double x, double y, double z, double t, double a, double b) {
            	double t_1 = (y + x) + t;
            	double t_2 = ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y);
            	double tmp;
            	if (t_2 <= -2e+221) {
            		tmp = (a + z) - b;
            	} else if (t_2 <= 1e+261) {
            		tmp = fma(((t + y) / t_1), a, (fma((y + x), z, (-b * y)) / t_1));
            	} else {
            		tmp = fma(((y + x) / t_1), z, a);
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a, b)
            	t_1 = Float64(Float64(y + x) + t)
            	t_2 = Float64(Float64(Float64(Float64(Float64(x + y) * z) + Float64(Float64(t + y) * a)) - Float64(y * b)) / Float64(Float64(x + t) + y))
            	tmp = 0.0
            	if (t_2 <= -2e+221)
            		tmp = Float64(Float64(a + z) - b);
            	elseif (t_2 <= 1e+261)
            		tmp = fma(Float64(Float64(t + y) / t_1), a, Float64(fma(Float64(y + x), z, Float64(Float64(-b) * y)) / t_1));
            	else
            		tmp = fma(Float64(Float64(y + x) / t_1), z, a);
            	end
            	return tmp
            end
            
            code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y + x), $MachinePrecision] + t), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(N[(x + y), $MachinePrecision] * z), $MachinePrecision] + N[(N[(t + y), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / N[(N[(x + t), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -2e+221], N[(N[(a + z), $MachinePrecision] - b), $MachinePrecision], If[LessEqual[t$95$2, 1e+261], N[(N[(N[(t + y), $MachinePrecision] / t$95$1), $MachinePrecision] * a + N[(N[(N[(y + x), $MachinePrecision] * z + N[((-b) * y), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(N[(y + x), $MachinePrecision] / t$95$1), $MachinePrecision] * z + a), $MachinePrecision]]]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \left(y + x\right) + t\\
            t_2 := \frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y}\\
            \mathbf{if}\;t\_2 \leq -2 \cdot 10^{+221}:\\
            \;\;\;\;\left(a + z\right) - b\\
            
            \mathbf{elif}\;t\_2 \leq 10^{+261}:\\
            \;\;\;\;\mathsf{fma}\left(\frac{t + y}{t\_1}, a, \frac{\mathsf{fma}\left(y + x, z, \left(-b\right) \cdot y\right)}{t\_1}\right)\\
            
            \mathbf{else}:\\
            \;\;\;\;\mathsf{fma}\left(\frac{y + x}{t\_1}, z, a\right)\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < -2.0000000000000001e221

              1. Initial program 17.2%

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

                \[\leadsto \color{blue}{\left(a + z\right) - b} \]
              3. Step-by-step derivation
                1. lower--.f64N/A

                  \[\leadsto \left(a + z\right) - \color{blue}{b} \]
                2. lower-+.f6472.6

                  \[\leadsto \left(a + z\right) - b \]
              4. Applied rewrites72.6%

                \[\leadsto \color{blue}{\left(a + z\right) - b} \]

              if -2.0000000000000001e221 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 9.9999999999999993e260

              1. Initial program 99.6%

                \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
              2. Applied rewrites99.3%

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

              if 9.9999999999999993e260 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y))

              1. Initial program 8.6%

                \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
              2. Applied rewrites31.6%

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

                \[\leadsto \mathsf{fma}\left(\frac{y + x}{\left(y + x\right) + t}, z, \color{blue}{a}\right) \]
              4. Step-by-step derivation
                1. Applied rewrites70.5%

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

              Alternative 6: 87.5% accurate, 0.3× speedup?

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

                1. Initial program 6.3%

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

                  \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                3. Step-by-step derivation
                  1. lower--.f64N/A

                    \[\leadsto \left(a + z\right) - \color{blue}{b} \]
                  2. lower-+.f6472.0

                    \[\leadsto \left(a + z\right) - b \]
                4. Applied rewrites72.0%

                  \[\leadsto \color{blue}{\left(a + z\right) - b} \]

                if -inf.0 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 9.9999999999999993e260

                1. Initial program 99.6%

                  \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
                2. Step-by-step derivation
                  1. Applied rewrites99.6%

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

                  if 9.9999999999999993e260 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y))

                  1. Initial program 8.6%

                    \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
                  2. Applied rewrites31.6%

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

                    \[\leadsto \mathsf{fma}\left(\frac{y + x}{\left(y + x\right) + t}, z, \color{blue}{a}\right) \]
                  4. Step-by-step derivation
                    1. Applied rewrites70.5%

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

                  Alternative 7: 65.7% accurate, 0.4× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y}\\ t_2 := \left(a + z\right) - b\\ \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+100}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_1 \leq 10^{+184}:\\ \;\;\;\;\frac{\mathsf{fma}\left(a, t, z \cdot x\right)}{t + x}\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                  (FPCore (x y z t a b)
                   :precision binary64
                   (let* ((t_1 (/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y)))
                          (t_2 (- (+ a z) b)))
                     (if (<= t_1 -1e+100)
                       t_2
                       (if (<= t_1 1e+184) (/ (fma a t (* z x)) (+ t x)) t_2))))
                  double code(double x, double y, double z, double t, double a, double b) {
                  	double t_1 = ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y);
                  	double t_2 = (a + z) - b;
                  	double tmp;
                  	if (t_1 <= -1e+100) {
                  		tmp = t_2;
                  	} else if (t_1 <= 1e+184) {
                  		tmp = fma(a, t, (z * x)) / (t + x);
                  	} else {
                  		tmp = t_2;
                  	}
                  	return tmp;
                  }
                  
                  function code(x, y, z, t, a, b)
                  	t_1 = Float64(Float64(Float64(Float64(Float64(x + y) * z) + Float64(Float64(t + y) * a)) - Float64(y * b)) / Float64(Float64(x + t) + y))
                  	t_2 = Float64(Float64(a + z) - b)
                  	tmp = 0.0
                  	if (t_1 <= -1e+100)
                  		tmp = t_2;
                  	elseif (t_1 <= 1e+184)
                  		tmp = Float64(fma(a, t, Float64(z * x)) / Float64(t + x));
                  	else
                  		tmp = t_2;
                  	end
                  	return tmp
                  end
                  
                  code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(N[(N[(x + y), $MachinePrecision] * z), $MachinePrecision] + N[(N[(t + y), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / N[(N[(x + t), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a + z), $MachinePrecision] - b), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+100], t$95$2, If[LessEqual[t$95$1, 1e+184], N[(N[(a * t + N[(z * x), $MachinePrecision]), $MachinePrecision] / N[(t + x), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_1 := \frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y}\\
                  t_2 := \left(a + z\right) - b\\
                  \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+100}:\\
                  \;\;\;\;t\_2\\
                  
                  \mathbf{elif}\;t\_1 \leq 10^{+184}:\\
                  \;\;\;\;\frac{\mathsf{fma}\left(a, t, z \cdot x\right)}{t + x}\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;t\_2\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 2 regimes
                  2. if (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < -1.00000000000000002e100 or 1.00000000000000002e184 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y))

                    1. Initial program 28.0%

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

                      \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                    3. Step-by-step derivation
                      1. lower--.f64N/A

                        \[\leadsto \left(a + z\right) - \color{blue}{b} \]
                      2. lower-+.f6470.4

                        \[\leadsto \left(a + z\right) - b \]
                    4. Applied rewrites70.4%

                      \[\leadsto \color{blue}{\left(a + z\right) - b} \]

                    if -1.00000000000000002e100 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 1.00000000000000002e184

                    1. Initial program 99.6%

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

                      \[\leadsto \color{blue}{\frac{a \cdot t + x \cdot z}{t + x}} \]
                    3. Step-by-step derivation
                      1. lower-/.f64N/A

                        \[\leadsto \frac{a \cdot t + x \cdot z}{\color{blue}{t + x}} \]
                      2. lower-fma.f64N/A

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

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

                        \[\leadsto \frac{\mathsf{fma}\left(a, t, z \cdot x\right)}{t + x} \]
                      5. lower-+.f6460.0

                        \[\leadsto \frac{\mathsf{fma}\left(a, t, z \cdot x\right)}{t + \color{blue}{x}} \]
                    4. Applied rewrites60.0%

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

                  Alternative 8: 74.0% accurate, 1.2× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(y + x\right) + t\\ t_2 := \mathsf{fma}\left(\frac{y + x}{t\_1}, z, a\right)\\ \mathbf{if}\;z \leq -0.00046:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;z \leq 4.5 \cdot 10^{+14}:\\ \;\;\;\;a - b \cdot \frac{y}{t\_1}\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                  (FPCore (x y z t a b)
                   :precision binary64
                   (let* ((t_1 (+ (+ y x) t)) (t_2 (fma (/ (+ y x) t_1) z a)))
                     (if (<= z -0.00046) t_2 (if (<= z 4.5e+14) (- a (* b (/ y t_1))) t_2))))
                  double code(double x, double y, double z, double t, double a, double b) {
                  	double t_1 = (y + x) + t;
                  	double t_2 = fma(((y + x) / t_1), z, a);
                  	double tmp;
                  	if (z <= -0.00046) {
                  		tmp = t_2;
                  	} else if (z <= 4.5e+14) {
                  		tmp = a - (b * (y / t_1));
                  	} else {
                  		tmp = t_2;
                  	}
                  	return tmp;
                  }
                  
                  function code(x, y, z, t, a, b)
                  	t_1 = Float64(Float64(y + x) + t)
                  	t_2 = fma(Float64(Float64(y + x) / t_1), z, a)
                  	tmp = 0.0
                  	if (z <= -0.00046)
                  		tmp = t_2;
                  	elseif (z <= 4.5e+14)
                  		tmp = Float64(a - Float64(b * Float64(y / t_1)));
                  	else
                  		tmp = t_2;
                  	end
                  	return tmp
                  end
                  
                  code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y + x), $MachinePrecision] + t), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(y + x), $MachinePrecision] / t$95$1), $MachinePrecision] * z + a), $MachinePrecision]}, If[LessEqual[z, -0.00046], t$95$2, If[LessEqual[z, 4.5e+14], N[(a - N[(b * N[(y / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_1 := \left(y + x\right) + t\\
                  t_2 := \mathsf{fma}\left(\frac{y + x}{t\_1}, z, a\right)\\
                  \mathbf{if}\;z \leq -0.00046:\\
                  \;\;\;\;t\_2\\
                  
                  \mathbf{elif}\;z \leq 4.5 \cdot 10^{+14}:\\
                  \;\;\;\;a - b \cdot \frac{y}{t\_1}\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;t\_2\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 2 regimes
                  2. if z < -4.6000000000000001e-4 or 4.5e14 < z

                    1. Initial program 47.8%

                      \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
                    2. Applied rewrites71.3%

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

                      \[\leadsto \mathsf{fma}\left(\frac{y + x}{\left(y + x\right) + t}, z, \color{blue}{a}\right) \]
                    4. Step-by-step derivation
                      1. Applied rewrites81.0%

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

                      if -4.6000000000000001e-4 < z < 4.5e14

                      1. Initial program 72.7%

                        \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
                      2. Applied rewrites79.2%

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

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

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

                      Alternative 9: 63.7% accurate, 1.2× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \frac{y}{\left(y + x\right) + t}\\ t_2 := z - t\_1\\ \mathbf{if}\;x \leq -5.4 \cdot 10^{+57}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;x \leq 1.15 \cdot 10^{+113}:\\ \;\;\;\;a - t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                      (FPCore (x y z t a b)
                       :precision binary64
                       (let* ((t_1 (* b (/ y (+ (+ y x) t)))) (t_2 (- z t_1)))
                         (if (<= x -5.4e+57) t_2 (if (<= x 1.15e+113) (- a t_1) t_2))))
                      double code(double x, double y, double z, double t, double a, double b) {
                      	double t_1 = b * (y / ((y + x) + t));
                      	double t_2 = z - t_1;
                      	double tmp;
                      	if (x <= -5.4e+57) {
                      		tmp = t_2;
                      	} else if (x <= 1.15e+113) {
                      		tmp = a - t_1;
                      	} else {
                      		tmp = t_2;
                      	}
                      	return tmp;
                      }
                      
                      module fmin_fmax_functions
                          implicit none
                          private
                          public fmax
                          public fmin
                      
                          interface fmax
                              module procedure fmax88
                              module procedure fmax44
                              module procedure fmax84
                              module procedure fmax48
                          end interface
                          interface fmin
                              module procedure fmin88
                              module procedure fmin44
                              module procedure fmin84
                              module procedure fmin48
                          end interface
                      contains
                          real(8) function fmax88(x, y) result (res)
                              real(8), intent (in) :: x
                              real(8), intent (in) :: y
                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                          end function
                          real(4) function fmax44(x, y) result (res)
                              real(4), intent (in) :: x
                              real(4), intent (in) :: y
                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                          end function
                          real(8) function fmax84(x, y) result(res)
                              real(8), intent (in) :: x
                              real(4), intent (in) :: y
                              res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                          end function
                          real(8) function fmax48(x, y) result(res)
                              real(4), intent (in) :: x
                              real(8), intent (in) :: y
                              res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                          end function
                          real(8) function fmin88(x, y) result (res)
                              real(8), intent (in) :: x
                              real(8), intent (in) :: y
                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                          end function
                          real(4) function fmin44(x, y) result (res)
                              real(4), intent (in) :: x
                              real(4), intent (in) :: y
                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                          end function
                          real(8) function fmin84(x, y) result(res)
                              real(8), intent (in) :: x
                              real(4), intent (in) :: y
                              res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                          end function
                          real(8) function fmin48(x, y) result(res)
                              real(4), intent (in) :: x
                              real(8), intent (in) :: y
                              res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                          end function
                      end module
                      
                      real(8) function code(x, y, z, t, a, b)
                      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) :: t_1
                          real(8) :: t_2
                          real(8) :: tmp
                          t_1 = b * (y / ((y + x) + t))
                          t_2 = z - t_1
                          if (x <= (-5.4d+57)) then
                              tmp = t_2
                          else if (x <= 1.15d+113) then
                              tmp = a - t_1
                          else
                              tmp = t_2
                          end if
                          code = tmp
                      end function
                      
                      public static double code(double x, double y, double z, double t, double a, double b) {
                      	double t_1 = b * (y / ((y + x) + t));
                      	double t_2 = z - t_1;
                      	double tmp;
                      	if (x <= -5.4e+57) {
                      		tmp = t_2;
                      	} else if (x <= 1.15e+113) {
                      		tmp = a - t_1;
                      	} else {
                      		tmp = t_2;
                      	}
                      	return tmp;
                      }
                      
                      def code(x, y, z, t, a, b):
                      	t_1 = b * (y / ((y + x) + t))
                      	t_2 = z - t_1
                      	tmp = 0
                      	if x <= -5.4e+57:
                      		tmp = t_2
                      	elif x <= 1.15e+113:
                      		tmp = a - t_1
                      	else:
                      		tmp = t_2
                      	return tmp
                      
                      function code(x, y, z, t, a, b)
                      	t_1 = Float64(b * Float64(y / Float64(Float64(y + x) + t)))
                      	t_2 = Float64(z - t_1)
                      	tmp = 0.0
                      	if (x <= -5.4e+57)
                      		tmp = t_2;
                      	elseif (x <= 1.15e+113)
                      		tmp = Float64(a - t_1);
                      	else
                      		tmp = t_2;
                      	end
                      	return tmp
                      end
                      
                      function tmp_2 = code(x, y, z, t, a, b)
                      	t_1 = b * (y / ((y + x) + t));
                      	t_2 = z - t_1;
                      	tmp = 0.0;
                      	if (x <= -5.4e+57)
                      		tmp = t_2;
                      	elseif (x <= 1.15e+113)
                      		tmp = a - t_1;
                      	else
                      		tmp = t_2;
                      	end
                      	tmp_2 = tmp;
                      end
                      
                      code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(y / N[(N[(y + x), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z - t$95$1), $MachinePrecision]}, If[LessEqual[x, -5.4e+57], t$95$2, If[LessEqual[x, 1.15e+113], N[(a - t$95$1), $MachinePrecision], t$95$2]]]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      t_1 := b \cdot \frac{y}{\left(y + x\right) + t}\\
                      t_2 := z - t\_1\\
                      \mathbf{if}\;x \leq -5.4 \cdot 10^{+57}:\\
                      \;\;\;\;t\_2\\
                      
                      \mathbf{elif}\;x \leq 1.15 \cdot 10^{+113}:\\
                      \;\;\;\;a - t\_1\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;t\_2\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 2 regimes
                      2. if x < -5.3999999999999997e57 or 1.14999999999999998e113 < x

                        1. Initial program 50.6%

                          \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
                        2. Applied rewrites54.2%

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

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

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

                          if -5.3999999999999997e57 < x < 1.14999999999999998e113

                          1. Initial program 66.3%

                            \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
                          2. Applied rewrites71.1%

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

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

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

                          Alternative 10: 64.6% accurate, 1.2× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := z \cdot \frac{x + y}{t + \left(x + y\right)}\\ \mathbf{if}\;z \leq -4.1 \cdot 10^{-5}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 2.05 \cdot 10^{+163}:\\ \;\;\;\;a - b \cdot \frac{y}{\left(y + x\right) + t}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                          (FPCore (x y z t a b)
                           :precision binary64
                           (let* ((t_1 (* z (/ (+ x y) (+ t (+ x y))))))
                             (if (<= z -4.1e-5)
                               t_1
                               (if (<= z 2.05e+163) (- a (* b (/ y (+ (+ y x) t)))) t_1))))
                          double code(double x, double y, double z, double t, double a, double b) {
                          	double t_1 = z * ((x + y) / (t + (x + y)));
                          	double tmp;
                          	if (z <= -4.1e-5) {
                          		tmp = t_1;
                          	} else if (z <= 2.05e+163) {
                          		tmp = a - (b * (y / ((y + x) + t)));
                          	} else {
                          		tmp = t_1;
                          	}
                          	return tmp;
                          }
                          
                          module fmin_fmax_functions
                              implicit none
                              private
                              public fmax
                              public fmin
                          
                              interface fmax
                                  module procedure fmax88
                                  module procedure fmax44
                                  module procedure fmax84
                                  module procedure fmax48
                              end interface
                              interface fmin
                                  module procedure fmin88
                                  module procedure fmin44
                                  module procedure fmin84
                                  module procedure fmin48
                              end interface
                          contains
                              real(8) function fmax88(x, y) result (res)
                                  real(8), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                              end function
                              real(4) function fmax44(x, y) result (res)
                                  real(4), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                              end function
                              real(8) function fmax84(x, y) result(res)
                                  real(8), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                              end function
                              real(8) function fmax48(x, y) result(res)
                                  real(4), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                              end function
                              real(8) function fmin88(x, y) result (res)
                                  real(8), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                              end function
                              real(4) function fmin44(x, y) result (res)
                                  real(4), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                              end function
                              real(8) function fmin84(x, y) result(res)
                                  real(8), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                              end function
                              real(8) function fmin48(x, y) result(res)
                                  real(4), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                              end function
                          end module
                          
                          real(8) function code(x, y, z, t, a, b)
                          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) :: t_1
                              real(8) :: tmp
                              t_1 = z * ((x + y) / (t + (x + y)))
                              if (z <= (-4.1d-5)) then
                                  tmp = t_1
                              else if (z <= 2.05d+163) then
                                  tmp = a - (b * (y / ((y + x) + t)))
                              else
                                  tmp = t_1
                              end if
                              code = tmp
                          end function
                          
                          public static double code(double x, double y, double z, double t, double a, double b) {
                          	double t_1 = z * ((x + y) / (t + (x + y)));
                          	double tmp;
                          	if (z <= -4.1e-5) {
                          		tmp = t_1;
                          	} else if (z <= 2.05e+163) {
                          		tmp = a - (b * (y / ((y + x) + t)));
                          	} else {
                          		tmp = t_1;
                          	}
                          	return tmp;
                          }
                          
                          def code(x, y, z, t, a, b):
                          	t_1 = z * ((x + y) / (t + (x + y)))
                          	tmp = 0
                          	if z <= -4.1e-5:
                          		tmp = t_1
                          	elif z <= 2.05e+163:
                          		tmp = a - (b * (y / ((y + x) + t)))
                          	else:
                          		tmp = t_1
                          	return tmp
                          
                          function code(x, y, z, t, a, b)
                          	t_1 = Float64(z * Float64(Float64(x + y) / Float64(t + Float64(x + y))))
                          	tmp = 0.0
                          	if (z <= -4.1e-5)
                          		tmp = t_1;
                          	elseif (z <= 2.05e+163)
                          		tmp = Float64(a - Float64(b * Float64(y / Float64(Float64(y + x) + t))));
                          	else
                          		tmp = t_1;
                          	end
                          	return tmp
                          end
                          
                          function tmp_2 = code(x, y, z, t, a, b)
                          	t_1 = z * ((x + y) / (t + (x + y)));
                          	tmp = 0.0;
                          	if (z <= -4.1e-5)
                          		tmp = t_1;
                          	elseif (z <= 2.05e+163)
                          		tmp = a - (b * (y / ((y + x) + t)));
                          	else
                          		tmp = t_1;
                          	end
                          	tmp_2 = tmp;
                          end
                          
                          code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(N[(x + y), $MachinePrecision] / N[(t + N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.1e-5], t$95$1, If[LessEqual[z, 2.05e+163], N[(a - N[(b * N[(y / N[(N[(y + x), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          t_1 := z \cdot \frac{x + y}{t + \left(x + y\right)}\\
                          \mathbf{if}\;z \leq -4.1 \cdot 10^{-5}:\\
                          \;\;\;\;t\_1\\
                          
                          \mathbf{elif}\;z \leq 2.05 \cdot 10^{+163}:\\
                          \;\;\;\;a - b \cdot \frac{y}{\left(y + x\right) + t}\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;t\_1\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 2 regimes
                          2. if z < -4.10000000000000005e-5 or 2.05e163 < z

                            1. Initial program 44.4%

                              \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
                            2. Applied rewrites70.8%

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

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

                                \[\leadsto z \cdot \color{blue}{\left(\frac{x}{t + \left(x + y\right)} + \frac{y}{t + \left(x + y\right)}\right)} \]
                              2. div-add-revN/A

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

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

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

                                \[\leadsto z \cdot \frac{x + y}{t + \color{blue}{\left(x + y\right)}} \]
                              6. lower-+.f6467.6

                                \[\leadsto z \cdot \frac{x + y}{t + \left(x + \color{blue}{y}\right)} \]
                            5. Applied rewrites67.6%

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

                            if -4.10000000000000005e-5 < z < 2.05e163

                            1. Initial program 69.9%

                              \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
                            2. Applied rewrites75.7%

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

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

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

                            Alternative 11: 60.0% accurate, 1.3× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := z + t \cdot \frac{a - z}{x}\\ \mathbf{if}\;x \leq -5.6 \cdot 10^{+91}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 4.6 \cdot 10^{+120}:\\ \;\;\;\;\left(a + z\right) - b\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                            (FPCore (x y z t a b)
                             :precision binary64
                             (let* ((t_1 (+ z (* t (/ (- a z) x)))))
                               (if (<= x -5.6e+91) t_1 (if (<= x 4.6e+120) (- (+ a z) b) t_1))))
                            double code(double x, double y, double z, double t, double a, double b) {
                            	double t_1 = z + (t * ((a - z) / x));
                            	double tmp;
                            	if (x <= -5.6e+91) {
                            		tmp = t_1;
                            	} else if (x <= 4.6e+120) {
                            		tmp = (a + z) - b;
                            	} else {
                            		tmp = t_1;
                            	}
                            	return tmp;
                            }
                            
                            module fmin_fmax_functions
                                implicit none
                                private
                                public fmax
                                public fmin
                            
                                interface fmax
                                    module procedure fmax88
                                    module procedure fmax44
                                    module procedure fmax84
                                    module procedure fmax48
                                end interface
                                interface fmin
                                    module procedure fmin88
                                    module procedure fmin44
                                    module procedure fmin84
                                    module procedure fmin48
                                end interface
                            contains
                                real(8) function fmax88(x, y) result (res)
                                    real(8), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                end function
                                real(4) function fmax44(x, y) result (res)
                                    real(4), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                end function
                                real(8) function fmax84(x, y) result(res)
                                    real(8), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                end function
                                real(8) function fmax48(x, y) result(res)
                                    real(4), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                end function
                                real(8) function fmin88(x, y) result (res)
                                    real(8), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                end function
                                real(4) function fmin44(x, y) result (res)
                                    real(4), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                end function
                                real(8) function fmin84(x, y) result(res)
                                    real(8), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                end function
                                real(8) function fmin48(x, y) result(res)
                                    real(4), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                end function
                            end module
                            
                            real(8) function code(x, y, z, t, a, b)
                            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) :: t_1
                                real(8) :: tmp
                                t_1 = z + (t * ((a - z) / x))
                                if (x <= (-5.6d+91)) then
                                    tmp = t_1
                                else if (x <= 4.6d+120) then
                                    tmp = (a + z) - b
                                else
                                    tmp = t_1
                                end if
                                code = tmp
                            end function
                            
                            public static double code(double x, double y, double z, double t, double a, double b) {
                            	double t_1 = z + (t * ((a - z) / x));
                            	double tmp;
                            	if (x <= -5.6e+91) {
                            		tmp = t_1;
                            	} else if (x <= 4.6e+120) {
                            		tmp = (a + z) - b;
                            	} else {
                            		tmp = t_1;
                            	}
                            	return tmp;
                            }
                            
                            def code(x, y, z, t, a, b):
                            	t_1 = z + (t * ((a - z) / x))
                            	tmp = 0
                            	if x <= -5.6e+91:
                            		tmp = t_1
                            	elif x <= 4.6e+120:
                            		tmp = (a + z) - b
                            	else:
                            		tmp = t_1
                            	return tmp
                            
                            function code(x, y, z, t, a, b)
                            	t_1 = Float64(z + Float64(t * Float64(Float64(a - z) / x)))
                            	tmp = 0.0
                            	if (x <= -5.6e+91)
                            		tmp = t_1;
                            	elseif (x <= 4.6e+120)
                            		tmp = Float64(Float64(a + z) - b);
                            	else
                            		tmp = t_1;
                            	end
                            	return tmp
                            end
                            
                            function tmp_2 = code(x, y, z, t, a, b)
                            	t_1 = z + (t * ((a - z) / x));
                            	tmp = 0.0;
                            	if (x <= -5.6e+91)
                            		tmp = t_1;
                            	elseif (x <= 4.6e+120)
                            		tmp = (a + z) - b;
                            	else
                            		tmp = t_1;
                            	end
                            	tmp_2 = tmp;
                            end
                            
                            code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z + N[(t * N[(N[(a - z), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.6e+91], t$95$1, If[LessEqual[x, 4.6e+120], N[(N[(a + z), $MachinePrecision] - b), $MachinePrecision], t$95$1]]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            t_1 := z + t \cdot \frac{a - z}{x}\\
                            \mathbf{if}\;x \leq -5.6 \cdot 10^{+91}:\\
                            \;\;\;\;t\_1\\
                            
                            \mathbf{elif}\;x \leq 4.6 \cdot 10^{+120}:\\
                            \;\;\;\;\left(a + z\right) - b\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;t\_1\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 2 regimes
                            2. if x < -5.5999999999999997e91 or 4.59999999999999985e120 < x

                              1. Initial program 49.8%

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

                                \[\leadsto \color{blue}{\frac{a \cdot t + x \cdot z}{t + x}} \]
                              3. Step-by-step derivation
                                1. lower-/.f64N/A

                                  \[\leadsto \frac{a \cdot t + x \cdot z}{\color{blue}{t + x}} \]
                                2. lower-fma.f64N/A

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

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

                                  \[\leadsto \frac{\mathsf{fma}\left(a, t, z \cdot x\right)}{t + x} \]
                                5. lower-+.f6436.1

                                  \[\leadsto \frac{\mathsf{fma}\left(a, t, z \cdot x\right)}{t + \color{blue}{x}} \]
                              4. Applied rewrites36.1%

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

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

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

                                  \[\leadsto z + t \cdot \left(\frac{a}{x} - \color{blue}{\frac{z}{x}}\right) \]
                                3. sub-divN/A

                                  \[\leadsto z + t \cdot \frac{a - z}{x} \]
                                4. lower-/.f64N/A

                                  \[\leadsto z + t \cdot \frac{a - z}{x} \]
                                5. lower--.f6457.9

                                  \[\leadsto z + t \cdot \frac{a - z}{x} \]
                              7. Applied rewrites57.9%

                                \[\leadsto z + \color{blue}{t \cdot \frac{a - z}{x}} \]

                              if -5.5999999999999997e91 < x < 4.59999999999999985e120

                              1. Initial program 65.9%

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

                                \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                              3. Step-by-step derivation
                                1. lower--.f64N/A

                                  \[\leadsto \left(a + z\right) - \color{blue}{b} \]
                                2. lower-+.f6461.1

                                  \[\leadsto \left(a + z\right) - b \]
                              4. Applied rewrites61.1%

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

                            Alternative 12: 58.8% accurate, 1.4× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := z \cdot \frac{x}{t + x}\\ \mathbf{if}\;x \leq -2.35 \cdot 10^{+92}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 2.25 \cdot 10^{+231}:\\ \;\;\;\;\left(a + z\right) - b\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                            (FPCore (x y z t a b)
                             :precision binary64
                             (let* ((t_1 (* z (/ x (+ t x)))))
                               (if (<= x -2.35e+92) t_1 (if (<= x 2.25e+231) (- (+ a z) b) t_1))))
                            double code(double x, double y, double z, double t, double a, double b) {
                            	double t_1 = z * (x / (t + x));
                            	double tmp;
                            	if (x <= -2.35e+92) {
                            		tmp = t_1;
                            	} else if (x <= 2.25e+231) {
                            		tmp = (a + z) - b;
                            	} else {
                            		tmp = t_1;
                            	}
                            	return tmp;
                            }
                            
                            module fmin_fmax_functions
                                implicit none
                                private
                                public fmax
                                public fmin
                            
                                interface fmax
                                    module procedure fmax88
                                    module procedure fmax44
                                    module procedure fmax84
                                    module procedure fmax48
                                end interface
                                interface fmin
                                    module procedure fmin88
                                    module procedure fmin44
                                    module procedure fmin84
                                    module procedure fmin48
                                end interface
                            contains
                                real(8) function fmax88(x, y) result (res)
                                    real(8), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                end function
                                real(4) function fmax44(x, y) result (res)
                                    real(4), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                end function
                                real(8) function fmax84(x, y) result(res)
                                    real(8), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                end function
                                real(8) function fmax48(x, y) result(res)
                                    real(4), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                end function
                                real(8) function fmin88(x, y) result (res)
                                    real(8), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                end function
                                real(4) function fmin44(x, y) result (res)
                                    real(4), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                end function
                                real(8) function fmin84(x, y) result(res)
                                    real(8), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                end function
                                real(8) function fmin48(x, y) result(res)
                                    real(4), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                end function
                            end module
                            
                            real(8) function code(x, y, z, t, a, b)
                            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) :: t_1
                                real(8) :: tmp
                                t_1 = z * (x / (t + x))
                                if (x <= (-2.35d+92)) then
                                    tmp = t_1
                                else if (x <= 2.25d+231) then
                                    tmp = (a + z) - b
                                else
                                    tmp = t_1
                                end if
                                code = tmp
                            end function
                            
                            public static double code(double x, double y, double z, double t, double a, double b) {
                            	double t_1 = z * (x / (t + x));
                            	double tmp;
                            	if (x <= -2.35e+92) {
                            		tmp = t_1;
                            	} else if (x <= 2.25e+231) {
                            		tmp = (a + z) - b;
                            	} else {
                            		tmp = t_1;
                            	}
                            	return tmp;
                            }
                            
                            def code(x, y, z, t, a, b):
                            	t_1 = z * (x / (t + x))
                            	tmp = 0
                            	if x <= -2.35e+92:
                            		tmp = t_1
                            	elif x <= 2.25e+231:
                            		tmp = (a + z) - b
                            	else:
                            		tmp = t_1
                            	return tmp
                            
                            function code(x, y, z, t, a, b)
                            	t_1 = Float64(z * Float64(x / Float64(t + x)))
                            	tmp = 0.0
                            	if (x <= -2.35e+92)
                            		tmp = t_1;
                            	elseif (x <= 2.25e+231)
                            		tmp = Float64(Float64(a + z) - b);
                            	else
                            		tmp = t_1;
                            	end
                            	return tmp
                            end
                            
                            function tmp_2 = code(x, y, z, t, a, b)
                            	t_1 = z * (x / (t + x));
                            	tmp = 0.0;
                            	if (x <= -2.35e+92)
                            		tmp = t_1;
                            	elseif (x <= 2.25e+231)
                            		tmp = (a + z) - b;
                            	else
                            		tmp = t_1;
                            	end
                            	tmp_2 = tmp;
                            end
                            
                            code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(x / N[(t + x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.35e+92], t$95$1, If[LessEqual[x, 2.25e+231], N[(N[(a + z), $MachinePrecision] - b), $MachinePrecision], t$95$1]]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            t_1 := z \cdot \frac{x}{t + x}\\
                            \mathbf{if}\;x \leq -2.35 \cdot 10^{+92}:\\
                            \;\;\;\;t\_1\\
                            
                            \mathbf{elif}\;x \leq 2.25 \cdot 10^{+231}:\\
                            \;\;\;\;\left(a + z\right) - b\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;t\_1\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 2 regimes
                            2. if x < -2.35e92 or 2.24999999999999995e231 < x

                              1. Initial program 48.9%

                                \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
                              2. Applied rewrites74.0%

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

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

                                  \[\leadsto z \cdot \color{blue}{\left(\frac{x}{t + \left(x + y\right)} + \frac{y}{t + \left(x + y\right)}\right)} \]
                                2. div-add-revN/A

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

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

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

                                  \[\leadsto z \cdot \frac{x + y}{t + \color{blue}{\left(x + y\right)}} \]
                                6. lower-+.f6458.6

                                  \[\leadsto z \cdot \frac{x + y}{t + \left(x + \color{blue}{y}\right)} \]
                              5. Applied rewrites58.6%

                                \[\leadsto \color{blue}{z \cdot \frac{x + y}{t + \left(x + y\right)}} \]
                              6. Taylor expanded in y around 0

                                \[\leadsto z \cdot \frac{x}{\color{blue}{t + x}} \]
                              7. Step-by-step derivation
                                1. lower-/.f64N/A

                                  \[\leadsto z \cdot \frac{x}{t + \color{blue}{x}} \]
                                2. lower-+.f6457.9

                                  \[\leadsto z \cdot \frac{x}{t + x} \]
                              8. Applied rewrites57.9%

                                \[\leadsto z \cdot \frac{x}{\color{blue}{t + x}} \]

                              if -2.35e92 < x < 2.24999999999999995e231

                              1. Initial program 64.2%

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

                                \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                              3. Step-by-step derivation
                                1. lower--.f64N/A

                                  \[\leadsto \left(a + z\right) - \color{blue}{b} \]
                                2. lower-+.f6459.1

                                  \[\leadsto \left(a + z\right) - b \]
                              4. Applied rewrites59.1%

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

                            Alternative 13: 57.8% accurate, 2.4× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -6.5 \cdot 10^{+92}:\\ \;\;\;\;z\\ \mathbf{elif}\;x \leq 8.2 \cdot 10^{+247}:\\ \;\;\;\;\left(a + z\right) - b\\ \mathbf{else}:\\ \;\;\;\;z\\ \end{array} \end{array} \]
                            (FPCore (x y z t a b)
                             :precision binary64
                             (if (<= x -6.5e+92) z (if (<= x 8.2e+247) (- (+ a z) b) z)))
                            double code(double x, double y, double z, double t, double a, double b) {
                            	double tmp;
                            	if (x <= -6.5e+92) {
                            		tmp = z;
                            	} else if (x <= 8.2e+247) {
                            		tmp = (a + z) - b;
                            	} else {
                            		tmp = z;
                            	}
                            	return tmp;
                            }
                            
                            module fmin_fmax_functions
                                implicit none
                                private
                                public fmax
                                public fmin
                            
                                interface fmax
                                    module procedure fmax88
                                    module procedure fmax44
                                    module procedure fmax84
                                    module procedure fmax48
                                end interface
                                interface fmin
                                    module procedure fmin88
                                    module procedure fmin44
                                    module procedure fmin84
                                    module procedure fmin48
                                end interface
                            contains
                                real(8) function fmax88(x, y) result (res)
                                    real(8), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                end function
                                real(4) function fmax44(x, y) result (res)
                                    real(4), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                end function
                                real(8) function fmax84(x, y) result(res)
                                    real(8), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                end function
                                real(8) function fmax48(x, y) result(res)
                                    real(4), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                end function
                                real(8) function fmin88(x, y) result (res)
                                    real(8), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                end function
                                real(4) function fmin44(x, y) result (res)
                                    real(4), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                end function
                                real(8) function fmin84(x, y) result(res)
                                    real(8), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                end function
                                real(8) function fmin48(x, y) result(res)
                                    real(4), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                end function
                            end module
                            
                            real(8) function code(x, y, z, t, a, b)
                            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) :: tmp
                                if (x <= (-6.5d+92)) then
                                    tmp = z
                                else if (x <= 8.2d+247) then
                                    tmp = (a + z) - b
                                else
                                    tmp = z
                                end if
                                code = tmp
                            end function
                            
                            public static double code(double x, double y, double z, double t, double a, double b) {
                            	double tmp;
                            	if (x <= -6.5e+92) {
                            		tmp = z;
                            	} else if (x <= 8.2e+247) {
                            		tmp = (a + z) - b;
                            	} else {
                            		tmp = z;
                            	}
                            	return tmp;
                            }
                            
                            def code(x, y, z, t, a, b):
                            	tmp = 0
                            	if x <= -6.5e+92:
                            		tmp = z
                            	elif x <= 8.2e+247:
                            		tmp = (a + z) - b
                            	else:
                            		tmp = z
                            	return tmp
                            
                            function code(x, y, z, t, a, b)
                            	tmp = 0.0
                            	if (x <= -6.5e+92)
                            		tmp = z;
                            	elseif (x <= 8.2e+247)
                            		tmp = Float64(Float64(a + z) - b);
                            	else
                            		tmp = z;
                            	end
                            	return tmp
                            end
                            
                            function tmp_2 = code(x, y, z, t, a, b)
                            	tmp = 0.0;
                            	if (x <= -6.5e+92)
                            		tmp = z;
                            	elseif (x <= 8.2e+247)
                            		tmp = (a + z) - b;
                            	else
                            		tmp = z;
                            	end
                            	tmp_2 = tmp;
                            end
                            
                            code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -6.5e+92], z, If[LessEqual[x, 8.2e+247], N[(N[(a + z), $MachinePrecision] - b), $MachinePrecision], z]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            \mathbf{if}\;x \leq -6.5 \cdot 10^{+92}:\\
                            \;\;\;\;z\\
                            
                            \mathbf{elif}\;x \leq 8.2 \cdot 10^{+247}:\\
                            \;\;\;\;\left(a + z\right) - b\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;z\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 2 regimes
                            2. if x < -6.49999999999999999e92 or 8.2000000000000004e247 < x

                              1. Initial program 49.2%

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

                                \[\leadsto \color{blue}{z} \]
                              3. Step-by-step derivation
                                1. Applied rewrites54.4%

                                  \[\leadsto \color{blue}{z} \]

                                if -6.49999999999999999e92 < x < 8.2000000000000004e247

                                1. Initial program 63.9%

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

                                  \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                                3. Step-by-step derivation
                                  1. lower--.f64N/A

                                    \[\leadsto \left(a + z\right) - \color{blue}{b} \]
                                  2. lower-+.f6458.8

                                    \[\leadsto \left(a + z\right) - b \]
                                4. Applied rewrites58.8%

                                  \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                              4. Recombined 2 regimes into one program.
                              5. Add Preprocessing

                              Alternative 14: 52.6% accurate, 2.8× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -2.2 \cdot 10^{-43}:\\ \;\;\;\;a + z\\ \mathbf{elif}\;z \leq 4.3 \cdot 10^{+14}:\\ \;\;\;\;a - b\\ \mathbf{else}:\\ \;\;\;\;a + z\\ \end{array} \end{array} \]
                              (FPCore (x y z t a b)
                               :precision binary64
                               (if (<= z -2.2e-43) (+ a z) (if (<= z 4.3e+14) (- a b) (+ a z))))
                              double code(double x, double y, double z, double t, double a, double b) {
                              	double tmp;
                              	if (z <= -2.2e-43) {
                              		tmp = a + z;
                              	} else if (z <= 4.3e+14) {
                              		tmp = a - b;
                              	} else {
                              		tmp = a + z;
                              	}
                              	return tmp;
                              }
                              
                              module fmin_fmax_functions
                                  implicit none
                                  private
                                  public fmax
                                  public fmin
                              
                                  interface fmax
                                      module procedure fmax88
                                      module procedure fmax44
                                      module procedure fmax84
                                      module procedure fmax48
                                  end interface
                                  interface fmin
                                      module procedure fmin88
                                      module procedure fmin44
                                      module procedure fmin84
                                      module procedure fmin48
                                  end interface
                              contains
                                  real(8) function fmax88(x, y) result (res)
                                      real(8), intent (in) :: x
                                      real(8), intent (in) :: y
                                      res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                  end function
                                  real(4) function fmax44(x, y) result (res)
                                      real(4), intent (in) :: x
                                      real(4), intent (in) :: y
                                      res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                  end function
                                  real(8) function fmax84(x, y) result(res)
                                      real(8), intent (in) :: x
                                      real(4), intent (in) :: y
                                      res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                  end function
                                  real(8) function fmax48(x, y) result(res)
                                      real(4), intent (in) :: x
                                      real(8), intent (in) :: y
                                      res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                  end function
                                  real(8) function fmin88(x, y) result (res)
                                      real(8), intent (in) :: x
                                      real(8), intent (in) :: y
                                      res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                  end function
                                  real(4) function fmin44(x, y) result (res)
                                      real(4), intent (in) :: x
                                      real(4), intent (in) :: y
                                      res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                  end function
                                  real(8) function fmin84(x, y) result(res)
                                      real(8), intent (in) :: x
                                      real(4), intent (in) :: y
                                      res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                  end function
                                  real(8) function fmin48(x, y) result(res)
                                      real(4), intent (in) :: x
                                      real(8), intent (in) :: y
                                      res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                  end function
                              end module
                              
                              real(8) function code(x, y, z, t, a, b)
                              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) :: tmp
                                  if (z <= (-2.2d-43)) then
                                      tmp = a + z
                                  else if (z <= 4.3d+14) then
                                      tmp = a - b
                                  else
                                      tmp = a + z
                                  end if
                                  code = tmp
                              end function
                              
                              public static double code(double x, double y, double z, double t, double a, double b) {
                              	double tmp;
                              	if (z <= -2.2e-43) {
                              		tmp = a + z;
                              	} else if (z <= 4.3e+14) {
                              		tmp = a - b;
                              	} else {
                              		tmp = a + z;
                              	}
                              	return tmp;
                              }
                              
                              def code(x, y, z, t, a, b):
                              	tmp = 0
                              	if z <= -2.2e-43:
                              		tmp = a + z
                              	elif z <= 4.3e+14:
                              		tmp = a - b
                              	else:
                              		tmp = a + z
                              	return tmp
                              
                              function code(x, y, z, t, a, b)
                              	tmp = 0.0
                              	if (z <= -2.2e-43)
                              		tmp = Float64(a + z);
                              	elseif (z <= 4.3e+14)
                              		tmp = Float64(a - b);
                              	else
                              		tmp = Float64(a + z);
                              	end
                              	return tmp
                              end
                              
                              function tmp_2 = code(x, y, z, t, a, b)
                              	tmp = 0.0;
                              	if (z <= -2.2e-43)
                              		tmp = a + z;
                              	elseif (z <= 4.3e+14)
                              		tmp = a - b;
                              	else
                              		tmp = a + z;
                              	end
                              	tmp_2 = tmp;
                              end
                              
                              code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -2.2e-43], N[(a + z), $MachinePrecision], If[LessEqual[z, 4.3e+14], N[(a - b), $MachinePrecision], N[(a + z), $MachinePrecision]]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              \mathbf{if}\;z \leq -2.2 \cdot 10^{-43}:\\
                              \;\;\;\;a + z\\
                              
                              \mathbf{elif}\;z \leq 4.3 \cdot 10^{+14}:\\
                              \;\;\;\;a - b\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;a + z\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 2 regimes
                              2. if z < -2.19999999999999997e-43 or 4.3e14 < z

                                1. Initial program 49.5%

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

                                  \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                                3. Step-by-step derivation
                                  1. lower--.f64N/A

                                    \[\leadsto \left(a + z\right) - \color{blue}{b} \]
                                  2. lower-+.f6459.6

                                    \[\leadsto \left(a + z\right) - b \]
                                4. Applied rewrites59.6%

                                  \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                                5. Taylor expanded in b around 0

                                  \[\leadsto a + \color{blue}{z} \]
                                6. Step-by-step derivation
                                  1. lift-+.f6458.4

                                    \[\leadsto a + z \]
                                7. Applied rewrites58.4%

                                  \[\leadsto a + \color{blue}{z} \]

                                if -2.19999999999999997e-43 < z < 4.3e14

                                1. Initial program 72.7%

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

                                  \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                                3. Step-by-step derivation
                                  1. lower--.f64N/A

                                    \[\leadsto \left(a + z\right) - \color{blue}{b} \]
                                  2. lower-+.f6449.9

                                    \[\leadsto \left(a + z\right) - b \]
                                4. Applied rewrites49.9%

                                  \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                                5. Taylor expanded in z around 0

                                  \[\leadsto a - b \]
                                6. Step-by-step derivation
                                  1. Applied rewrites46.2%

                                    \[\leadsto a - b \]
                                7. Recombined 2 regimes into one program.
                                8. Add Preprocessing

                                Alternative 15: 53.3% accurate, 2.8× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.15 \cdot 10^{+117}:\\ \;\;\;\;a\\ \mathbf{elif}\;t \leq 9.6 \cdot 10^{+174}:\\ \;\;\;\;a + z\\ \mathbf{else}:\\ \;\;\;\;a\\ \end{array} \end{array} \]
                                (FPCore (x y z t a b)
                                 :precision binary64
                                 (if (<= t -1.15e+117) a (if (<= t 9.6e+174) (+ a z) a)))
                                double code(double x, double y, double z, double t, double a, double b) {
                                	double tmp;
                                	if (t <= -1.15e+117) {
                                		tmp = a;
                                	} else if (t <= 9.6e+174) {
                                		tmp = a + z;
                                	} else {
                                		tmp = a;
                                	}
                                	return tmp;
                                }
                                
                                module fmin_fmax_functions
                                    implicit none
                                    private
                                    public fmax
                                    public fmin
                                
                                    interface fmax
                                        module procedure fmax88
                                        module procedure fmax44
                                        module procedure fmax84
                                        module procedure fmax48
                                    end interface
                                    interface fmin
                                        module procedure fmin88
                                        module procedure fmin44
                                        module procedure fmin84
                                        module procedure fmin48
                                    end interface
                                contains
                                    real(8) function fmax88(x, y) result (res)
                                        real(8), intent (in) :: x
                                        real(8), intent (in) :: y
                                        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                    end function
                                    real(4) function fmax44(x, y) result (res)
                                        real(4), intent (in) :: x
                                        real(4), intent (in) :: y
                                        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                    end function
                                    real(8) function fmax84(x, y) result(res)
                                        real(8), intent (in) :: x
                                        real(4), intent (in) :: y
                                        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                    end function
                                    real(8) function fmax48(x, y) result(res)
                                        real(4), intent (in) :: x
                                        real(8), intent (in) :: y
                                        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                    end function
                                    real(8) function fmin88(x, y) result (res)
                                        real(8), intent (in) :: x
                                        real(8), intent (in) :: y
                                        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                    end function
                                    real(4) function fmin44(x, y) result (res)
                                        real(4), intent (in) :: x
                                        real(4), intent (in) :: y
                                        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                    end function
                                    real(8) function fmin84(x, y) result(res)
                                        real(8), intent (in) :: x
                                        real(4), intent (in) :: y
                                        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                    end function
                                    real(8) function fmin48(x, y) result(res)
                                        real(4), intent (in) :: x
                                        real(8), intent (in) :: y
                                        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                    end function
                                end module
                                
                                real(8) function code(x, y, z, t, a, b)
                                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) :: tmp
                                    if (t <= (-1.15d+117)) then
                                        tmp = a
                                    else if (t <= 9.6d+174) then
                                        tmp = a + z
                                    else
                                        tmp = a
                                    end if
                                    code = tmp
                                end function
                                
                                public static double code(double x, double y, double z, double t, double a, double b) {
                                	double tmp;
                                	if (t <= -1.15e+117) {
                                		tmp = a;
                                	} else if (t <= 9.6e+174) {
                                		tmp = a + z;
                                	} else {
                                		tmp = a;
                                	}
                                	return tmp;
                                }
                                
                                def code(x, y, z, t, a, b):
                                	tmp = 0
                                	if t <= -1.15e+117:
                                		tmp = a
                                	elif t <= 9.6e+174:
                                		tmp = a + z
                                	else:
                                		tmp = a
                                	return tmp
                                
                                function code(x, y, z, t, a, b)
                                	tmp = 0.0
                                	if (t <= -1.15e+117)
                                		tmp = a;
                                	elseif (t <= 9.6e+174)
                                		tmp = Float64(a + z);
                                	else
                                		tmp = a;
                                	end
                                	return tmp
                                end
                                
                                function tmp_2 = code(x, y, z, t, a, b)
                                	tmp = 0.0;
                                	if (t <= -1.15e+117)
                                		tmp = a;
                                	elseif (t <= 9.6e+174)
                                		tmp = a + z;
                                	else
                                		tmp = a;
                                	end
                                	tmp_2 = tmp;
                                end
                                
                                code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -1.15e+117], a, If[LessEqual[t, 9.6e+174], N[(a + z), $MachinePrecision], a]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                \mathbf{if}\;t \leq -1.15 \cdot 10^{+117}:\\
                                \;\;\;\;a\\
                                
                                \mathbf{elif}\;t \leq 9.6 \cdot 10^{+174}:\\
                                \;\;\;\;a + z\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;a\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 2 regimes
                                2. if t < -1.14999999999999994e117 or 9.5999999999999993e174 < t

                                  1. Initial program 47.7%

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

                                    \[\leadsto \color{blue}{a} \]
                                  3. Step-by-step derivation
                                    1. Applied rewrites53.3%

                                      \[\leadsto \color{blue}{a} \]

                                    if -1.14999999999999994e117 < t < 9.5999999999999993e174

                                    1. Initial program 65.0%

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

                                      \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                                    3. Step-by-step derivation
                                      1. lower--.f64N/A

                                        \[\leadsto \left(a + z\right) - \color{blue}{b} \]
                                      2. lower-+.f6459.9

                                        \[\leadsto \left(a + z\right) - b \]
                                    4. Applied rewrites59.9%

                                      \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                                    5. Taylor expanded in b around 0

                                      \[\leadsto a + \color{blue}{z} \]
                                    6. Step-by-step derivation
                                      1. lift-+.f6453.3

                                        \[\leadsto a + z \]
                                    7. Applied rewrites53.3%

                                      \[\leadsto a + \color{blue}{z} \]
                                  4. Recombined 2 regimes into one program.
                                  5. Add Preprocessing

                                  Alternative 16: 44.6% accurate, 3.5× speedup?

                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -4.5 \cdot 10^{+57}:\\ \;\;\;\;z\\ \mathbf{elif}\;x \leq 1.7 \cdot 10^{+114}:\\ \;\;\;\;a\\ \mathbf{else}:\\ \;\;\;\;z\\ \end{array} \end{array} \]
                                  (FPCore (x y z t a b)
                                   :precision binary64
                                   (if (<= x -4.5e+57) z (if (<= x 1.7e+114) a z)))
                                  double code(double x, double y, double z, double t, double a, double b) {
                                  	double tmp;
                                  	if (x <= -4.5e+57) {
                                  		tmp = z;
                                  	} else if (x <= 1.7e+114) {
                                  		tmp = a;
                                  	} else {
                                  		tmp = z;
                                  	}
                                  	return tmp;
                                  }
                                  
                                  module fmin_fmax_functions
                                      implicit none
                                      private
                                      public fmax
                                      public fmin
                                  
                                      interface fmax
                                          module procedure fmax88
                                          module procedure fmax44
                                          module procedure fmax84
                                          module procedure fmax48
                                      end interface
                                      interface fmin
                                          module procedure fmin88
                                          module procedure fmin44
                                          module procedure fmin84
                                          module procedure fmin48
                                      end interface
                                  contains
                                      real(8) function fmax88(x, y) result (res)
                                          real(8), intent (in) :: x
                                          real(8), intent (in) :: y
                                          res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                      end function
                                      real(4) function fmax44(x, y) result (res)
                                          real(4), intent (in) :: x
                                          real(4), intent (in) :: y
                                          res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                      end function
                                      real(8) function fmax84(x, y) result(res)
                                          real(8), intent (in) :: x
                                          real(4), intent (in) :: y
                                          res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                      end function
                                      real(8) function fmax48(x, y) result(res)
                                          real(4), intent (in) :: x
                                          real(8), intent (in) :: y
                                          res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                      end function
                                      real(8) function fmin88(x, y) result (res)
                                          real(8), intent (in) :: x
                                          real(8), intent (in) :: y
                                          res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                      end function
                                      real(4) function fmin44(x, y) result (res)
                                          real(4), intent (in) :: x
                                          real(4), intent (in) :: y
                                          res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                      end function
                                      real(8) function fmin84(x, y) result(res)
                                          real(8), intent (in) :: x
                                          real(4), intent (in) :: y
                                          res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                      end function
                                      real(8) function fmin48(x, y) result(res)
                                          real(4), intent (in) :: x
                                          real(8), intent (in) :: y
                                          res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                      end function
                                  end module
                                  
                                  real(8) function code(x, y, z, t, a, b)
                                  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) :: tmp
                                      if (x <= (-4.5d+57)) then
                                          tmp = z
                                      else if (x <= 1.7d+114) then
                                          tmp = a
                                      else
                                          tmp = z
                                      end if
                                      code = tmp
                                  end function
                                  
                                  public static double code(double x, double y, double z, double t, double a, double b) {
                                  	double tmp;
                                  	if (x <= -4.5e+57) {
                                  		tmp = z;
                                  	} else if (x <= 1.7e+114) {
                                  		tmp = a;
                                  	} else {
                                  		tmp = z;
                                  	}
                                  	return tmp;
                                  }
                                  
                                  def code(x, y, z, t, a, b):
                                  	tmp = 0
                                  	if x <= -4.5e+57:
                                  		tmp = z
                                  	elif x <= 1.7e+114:
                                  		tmp = a
                                  	else:
                                  		tmp = z
                                  	return tmp
                                  
                                  function code(x, y, z, t, a, b)
                                  	tmp = 0.0
                                  	if (x <= -4.5e+57)
                                  		tmp = z;
                                  	elseif (x <= 1.7e+114)
                                  		tmp = a;
                                  	else
                                  		tmp = z;
                                  	end
                                  	return tmp
                                  end
                                  
                                  function tmp_2 = code(x, y, z, t, a, b)
                                  	tmp = 0.0;
                                  	if (x <= -4.5e+57)
                                  		tmp = z;
                                  	elseif (x <= 1.7e+114)
                                  		tmp = a;
                                  	else
                                  		tmp = z;
                                  	end
                                  	tmp_2 = tmp;
                                  end
                                  
                                  code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -4.5e+57], z, If[LessEqual[x, 1.7e+114], a, z]]
                                  
                                  \begin{array}{l}
                                  
                                  \\
                                  \begin{array}{l}
                                  \mathbf{if}\;x \leq -4.5 \cdot 10^{+57}:\\
                                  \;\;\;\;z\\
                                  
                                  \mathbf{elif}\;x \leq 1.7 \cdot 10^{+114}:\\
                                  \;\;\;\;a\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;z\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 2 regimes
                                  2. if x < -4.49999999999999996e57 or 1.7e114 < x

                                    1. Initial program 50.5%

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

                                      \[\leadsto \color{blue}{z} \]
                                    3. Step-by-step derivation
                                      1. Applied rewrites49.6%

                                        \[\leadsto \color{blue}{z} \]

                                      if -4.49999999999999996e57 < x < 1.7e114

                                      1. Initial program 66.3%

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

                                        \[\leadsto \color{blue}{a} \]
                                      3. Step-by-step derivation
                                        1. Applied rewrites41.7%

                                          \[\leadsto \color{blue}{a} \]
                                      4. Recombined 2 regimes into one program.
                                      5. Add Preprocessing

                                      Alternative 17: 32.5% accurate, 45.0× speedup?

                                      \[\begin{array}{l} \\ a \end{array} \]
                                      (FPCore (x y z t a b) :precision binary64 a)
                                      double code(double x, double y, double z, double t, double a, double b) {
                                      	return a;
                                      }
                                      
                                      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)
                                      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
                                          code = a
                                      end function
                                      
                                      public static double code(double x, double y, double z, double t, double a, double b) {
                                      	return a;
                                      }
                                      
                                      def code(x, y, z, t, a, b):
                                      	return a
                                      
                                      function code(x, y, z, t, a, b)
                                      	return a
                                      end
                                      
                                      function tmp = code(x, y, z, t, a, b)
                                      	tmp = a;
                                      end
                                      
                                      code[x_, y_, z_, t_, a_, b_] := a
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      a
                                      \end{array}
                                      
                                      Derivation
                                      1. Initial program 60.6%

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

                                        \[\leadsto \color{blue}{a} \]
                                      3. Step-by-step derivation
                                        1. Applied rewrites32.5%

                                          \[\leadsto \color{blue}{a} \]
                                        2. Add Preprocessing

                                        Developer Target 1: 82.1% accurate, 0.3× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(x + t\right) + y\\ t_2 := \left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b\\ t_3 := \frac{t\_2}{t\_1}\\ t_4 := \left(z + a\right) - b\\ \mathbf{if}\;t\_3 < -3.5813117084150564 \cdot 10^{+153}:\\ \;\;\;\;t\_4\\ \mathbf{elif}\;t\_3 < 1.2285964308315609 \cdot 10^{+82}:\\ \;\;\;\;\frac{1}{\frac{t\_1}{t\_2}}\\ \mathbf{else}:\\ \;\;\;\;t\_4\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a b)
                                         :precision binary64
                                         (let* ((t_1 (+ (+ x t) y))
                                                (t_2 (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)))
                                                (t_3 (/ t_2 t_1))
                                                (t_4 (- (+ z a) b)))
                                           (if (< t_3 -3.5813117084150564e+153)
                                             t_4
                                             (if (< t_3 1.2285964308315609e+82) (/ 1.0 (/ t_1 t_2)) t_4))))
                                        double code(double x, double y, double z, double t, double a, double b) {
                                        	double t_1 = (x + t) + y;
                                        	double t_2 = (((x + y) * z) + ((t + y) * a)) - (y * b);
                                        	double t_3 = t_2 / t_1;
                                        	double t_4 = (z + a) - b;
                                        	double tmp;
                                        	if (t_3 < -3.5813117084150564e+153) {
                                        		tmp = t_4;
                                        	} else if (t_3 < 1.2285964308315609e+82) {
                                        		tmp = 1.0 / (t_1 / t_2);
                                        	} else {
                                        		tmp = t_4;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        module fmin_fmax_functions
                                            implicit none
                                            private
                                            public fmax
                                            public fmin
                                        
                                            interface fmax
                                                module procedure fmax88
                                                module procedure fmax44
                                                module procedure fmax84
                                                module procedure fmax48
                                            end interface
                                            interface fmin
                                                module procedure fmin88
                                                module procedure fmin44
                                                module procedure fmin84
                                                module procedure fmin48
                                            end interface
                                        contains
                                            real(8) function fmax88(x, y) result (res)
                                                real(8), intent (in) :: x
                                                real(8), intent (in) :: y
                                                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                            end function
                                            real(4) function fmax44(x, y) result (res)
                                                real(4), intent (in) :: x
                                                real(4), intent (in) :: y
                                                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                            end function
                                            real(8) function fmax84(x, y) result(res)
                                                real(8), intent (in) :: x
                                                real(4), intent (in) :: y
                                                res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                            end function
                                            real(8) function fmax48(x, y) result(res)
                                                real(4), intent (in) :: x
                                                real(8), intent (in) :: y
                                                res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                            end function
                                            real(8) function fmin88(x, y) result (res)
                                                real(8), intent (in) :: x
                                                real(8), intent (in) :: y
                                                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                            end function
                                            real(4) function fmin44(x, y) result (res)
                                                real(4), intent (in) :: x
                                                real(4), intent (in) :: y
                                                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                            end function
                                            real(8) function fmin84(x, y) result(res)
                                                real(8), intent (in) :: x
                                                real(4), intent (in) :: y
                                                res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                            end function
                                            real(8) function fmin48(x, y) result(res)
                                                real(4), intent (in) :: x
                                                real(8), intent (in) :: y
                                                res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                            end function
                                        end module
                                        
                                        real(8) function code(x, y, z, t, a, b)
                                        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) :: t_1
                                            real(8) :: t_2
                                            real(8) :: t_3
                                            real(8) :: t_4
                                            real(8) :: tmp
                                            t_1 = (x + t) + y
                                            t_2 = (((x + y) * z) + ((t + y) * a)) - (y * b)
                                            t_3 = t_2 / t_1
                                            t_4 = (z + a) - b
                                            if (t_3 < (-3.5813117084150564d+153)) then
                                                tmp = t_4
                                            else if (t_3 < 1.2285964308315609d+82) then
                                                tmp = 1.0d0 / (t_1 / t_2)
                                            else
                                                tmp = t_4
                                            end if
                                            code = tmp
                                        end function
                                        
                                        public static double code(double x, double y, double z, double t, double a, double b) {
                                        	double t_1 = (x + t) + y;
                                        	double t_2 = (((x + y) * z) + ((t + y) * a)) - (y * b);
                                        	double t_3 = t_2 / t_1;
                                        	double t_4 = (z + a) - b;
                                        	double tmp;
                                        	if (t_3 < -3.5813117084150564e+153) {
                                        		tmp = t_4;
                                        	} else if (t_3 < 1.2285964308315609e+82) {
                                        		tmp = 1.0 / (t_1 / t_2);
                                        	} else {
                                        		tmp = t_4;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        def code(x, y, z, t, a, b):
                                        	t_1 = (x + t) + y
                                        	t_2 = (((x + y) * z) + ((t + y) * a)) - (y * b)
                                        	t_3 = t_2 / t_1
                                        	t_4 = (z + a) - b
                                        	tmp = 0
                                        	if t_3 < -3.5813117084150564e+153:
                                        		tmp = t_4
                                        	elif t_3 < 1.2285964308315609e+82:
                                        		tmp = 1.0 / (t_1 / t_2)
                                        	else:
                                        		tmp = t_4
                                        	return tmp
                                        
                                        function code(x, y, z, t, a, b)
                                        	t_1 = Float64(Float64(x + t) + y)
                                        	t_2 = Float64(Float64(Float64(Float64(x + y) * z) + Float64(Float64(t + y) * a)) - Float64(y * b))
                                        	t_3 = Float64(t_2 / t_1)
                                        	t_4 = Float64(Float64(z + a) - b)
                                        	tmp = 0.0
                                        	if (t_3 < -3.5813117084150564e+153)
                                        		tmp = t_4;
                                        	elseif (t_3 < 1.2285964308315609e+82)
                                        		tmp = Float64(1.0 / Float64(t_1 / t_2));
                                        	else
                                        		tmp = t_4;
                                        	end
                                        	return tmp
                                        end
                                        
                                        function tmp_2 = code(x, y, z, t, a, b)
                                        	t_1 = (x + t) + y;
                                        	t_2 = (((x + y) * z) + ((t + y) * a)) - (y * b);
                                        	t_3 = t_2 / t_1;
                                        	t_4 = (z + a) - b;
                                        	tmp = 0.0;
                                        	if (t_3 < -3.5813117084150564e+153)
                                        		tmp = t_4;
                                        	elseif (t_3 < 1.2285964308315609e+82)
                                        		tmp = 1.0 / (t_1 / t_2);
                                        	else
                                        		tmp = t_4;
                                        	end
                                        	tmp_2 = tmp;
                                        end
                                        
                                        code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + t), $MachinePrecision] + y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(x + y), $MachinePrecision] * z), $MachinePrecision] + N[(N[(t + y), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 / t$95$1), $MachinePrecision]}, Block[{t$95$4 = N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision]}, If[Less[t$95$3, -3.5813117084150564e+153], t$95$4, If[Less[t$95$3, 1.2285964308315609e+82], N[(1.0 / N[(t$95$1 / t$95$2), $MachinePrecision]), $MachinePrecision], t$95$4]]]]]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        t_1 := \left(x + t\right) + y\\
                                        t_2 := \left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b\\
                                        t_3 := \frac{t\_2}{t\_1}\\
                                        t_4 := \left(z + a\right) - b\\
                                        \mathbf{if}\;t\_3 < -3.5813117084150564 \cdot 10^{+153}:\\
                                        \;\;\;\;t\_4\\
                                        
                                        \mathbf{elif}\;t\_3 < 1.2285964308315609 \cdot 10^{+82}:\\
                                        \;\;\;\;\frac{1}{\frac{t\_1}{t\_2}}\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;t\_4\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        

                                        Reproduce

                                        ?
                                        herbie shell --seed 2025100 
                                        (FPCore (x y z t a b)
                                          :name "AI.Clustering.Hierarchical.Internal:ward from clustering-0.2.1"
                                          :precision binary64
                                        
                                          :alt
                                          (! :herbie-platform default (if (< (/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y)) -3581311708415056400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (+ z a) b) (if (< (/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y)) 12285964308315609000000000000000000000000000000000000000000000000000000000000000000) (/ 1 (/ (+ (+ x t) y) (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)))) (- (+ z a) b))))
                                        
                                          (/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y)))