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

Percentage Accurate: 60.8% → 93.8%
Time: 6.8s
Alternatives: 16
Speedup: 1.4×

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 16 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.8% 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.8% accurate, 0.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(y + x\right) + t\\ t_2 := \frac{y + x}{t\_1}\\ \mathbf{if}\;a \leq -5.8 \cdot 10^{-55} \lor \neg \left(a \leq 1.7 \cdot 10^{-78}\right):\\ \;\;\;\;\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{else}:\\ \;\;\;\;\mathsf{fma}\left(t\_2, z, \frac{\mathsf{fma}\left(t + y, a, \left(-b\right) \cdot y\right)}{t\_1}\right)\\ \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)))
   (if (or (<= a -5.8e-55) (not (<= a 1.7e-78)))
     (* (- (+ (/ (+ t y) t_1) (* (/ z a) t_2)) (* (/ b a) (/ y t_1))) a)
     (fma t_2 z (/ (fma (+ t y) a (* (- b) y)) t_1)))))
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 tmp;
	if ((a <= -5.8e-55) || !(a <= 1.7e-78)) {
		tmp = ((((t + y) / t_1) + ((z / a) * t_2)) - ((b / a) * (y / t_1))) * a;
	} else {
		tmp = fma(t_2, z, (fma((t + y), a, (-b * y)) / t_1));
	}
	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)
	tmp = 0.0
	if ((a <= -5.8e-55) || !(a <= 1.7e-78))
		tmp = Float64(Float64(Float64(Float64(Float64(t + y) / t_1) + Float64(Float64(z / a) * t_2)) - Float64(Float64(b / a) * Float64(y / t_1))) * a);
	else
		tmp = fma(t_2, z, Float64(fma(Float64(t + y), a, Float64(Float64(-b) * y)) / t_1));
	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]}, If[Or[LessEqual[a, -5.8e-55], N[Not[LessEqual[a, 1.7e-78]], $MachinePrecision]], 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], N[(t$95$2 * z + N[(N[(N[(t + y), $MachinePrecision] * a + N[((-b) * y), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \left(y + x\right) + t\\
t_2 := \frac{y + x}{t\_1}\\
\mathbf{if}\;a \leq -5.8 \cdot 10^{-55} \lor \neg \left(a \leq 1.7 \cdot 10^{-78}\right):\\
\;\;\;\;\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{else}:\\
\;\;\;\;\mathsf{fma}\left(t\_2, z, \frac{\mathsf{fma}\left(t + y, a, \left(-b\right) \cdot y\right)}{t\_1}\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -5.8e-55 or 1.70000000000000006e-78 < a

    1. Initial program 48.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. Add Preprocessing
    3. 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)} \]
    4. 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} \]
    5. Applied rewrites98.7%

      \[\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 -5.8e-55 < a < 1.70000000000000006e-78

    1. Initial program 70.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. Add Preprocessing
    3. Applied rewrites88.9%

      \[\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. Final simplification94.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -5.8 \cdot 10^{-55} \lor \neg \left(a \leq 1.7 \cdot 10^{-78}\right):\\ \;\;\;\;\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\\ \mathbf{else}:\\ \;\;\;\;\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)\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 87.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}\\ t_3 := \frac{y + x}{t\_1}\\ \mathbf{if}\;t\_2 \leq -\infty \lor \neg \left(t\_2 \leq 2 \cdot 10^{+294}\right):\\ \;\;\;\;\mathsf{fma}\left(t\_3, z, a\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(t\_3, z, \frac{\mathsf{fma}\left(t + y, a, \left(-b\right) \cdot y\right)}{t\_1}\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 (or (<= t_2 (- INFINITY)) (not (<= t_2 2e+294)))
     (fma t_3 z a)
     (fma t_3 z (/ (fma (+ t y) a (* (- b) y)) t_1)))))
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 <= -((double) INFINITY)) || !(t_2 <= 2e+294)) {
		tmp = fma(t_3, z, a);
	} else {
		tmp = fma(t_3, z, (fma((t + y), a, (-b * y)) / t_1));
	}
	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 <= Float64(-Inf)) || !(t_2 <= 2e+294))
		tmp = fma(t_3, z, a);
	else
		tmp = fma(t_3, z, Float64(fma(Float64(t + y), a, Float64(Float64(-b) * y)) / t_1));
	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[Or[LessEqual[t$95$2, (-Infinity)], N[Not[LessEqual[t$95$2, 2e+294]], $MachinePrecision]], N[(t$95$3 * z + a), $MachinePrecision], N[(t$95$3 * z + N[(N[(N[(t + y), $MachinePrecision] * a + N[((-b) * y), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]), $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 -\infty \lor \neg \left(t\_2 \leq 2 \cdot 10^{+294}\right):\\
\;\;\;\;\mathsf{fma}\left(t\_3, z, a\right)\\

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


\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)) < -inf.0 or 2.00000000000000013e294 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y))

    1. Initial program 5.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. Add Preprocessing
    3. Applied rewrites32.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)} \]
    4. Taylor expanded in t around inf

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

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

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

      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. Add Preprocessing
      3. Applied rewrites99.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)} \]
    6. Recombined 2 regimes into one program.
    7. Final simplification89.4%

      \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \leq -\infty \lor \neg \left(\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \leq 2 \cdot 10^{+294}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{y + x}{\left(y + x\right) + t}, z, a\right)\\ \mathbf{else}:\\ \;\;\;\;\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)\\ \end{array} \]
    8. Add Preprocessing

    Alternative 3: 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}\\ \mathbf{if}\;t\_2 \leq -4 \cdot 10^{+229} \lor \neg \left(t\_2 \leq 2 \cdot 10^{+294}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{y + x}{t\_1}, z, a\right)\\ \mathbf{else}:\\ \;\;\;\;\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)\\ \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 (or (<= t_2 -4e+229) (not (<= t_2 2e+294)))
         (fma (/ (+ y x) t_1) z a)
         (fma (/ (+ t y) t_1) a (/ (fma (+ y x) z (* (- b) y)) t_1)))))
    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 <= -4e+229) || !(t_2 <= 2e+294)) {
    		tmp = fma(((y + x) / t_1), z, a);
    	} else {
    		tmp = fma(((t + y) / t_1), a, (fma((y + x), z, (-b * y)) / t_1));
    	}
    	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 <= -4e+229) || !(t_2 <= 2e+294))
    		tmp = fma(Float64(Float64(y + x) / t_1), z, a);
    	else
    		tmp = fma(Float64(Float64(t + y) / t_1), a, Float64(fma(Float64(y + x), z, Float64(Float64(-b) * y)) / t_1));
    	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[Or[LessEqual[t$95$2, -4e+229], N[Not[LessEqual[t$95$2, 2e+294]], $MachinePrecision]], N[(N[(N[(y + x), $MachinePrecision] / t$95$1), $MachinePrecision] * z + a), $MachinePrecision], 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]]]]
    
    \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 -4 \cdot 10^{+229} \lor \neg \left(t\_2 \leq 2 \cdot 10^{+294}\right):\\
    \;\;\;\;\mathsf{fma}\left(\frac{y + x}{t\_1}, z, a\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;\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)\\
    
    
    \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)) < -4e229 or 2.00000000000000013e294 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y))

      1. Initial program 6.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. Add Preprocessing
      3. Applied rewrites33.1%

        \[\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)} \]
      4. Taylor expanded in t around inf

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

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

        if -4e229 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 2.00000000000000013e294

        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. Add Preprocessing
        3. Applied rewrites99.7%

          \[\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)} \]
      6. Recombined 2 regimes into one program.
      7. Final simplification89.4%

        \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \leq -4 \cdot 10^{+229} \lor \neg \left(\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \leq 2 \cdot 10^{+294}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{y + x}{\left(y + x\right) + t}, z, a\right)\\ \mathbf{else}:\\ \;\;\;\;\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)\\ \end{array} \]
      8. Add Preprocessing

      Alternative 4: 87.1% accurate, 0.3× 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}\\ \mathbf{if}\;t\_1 \leq -4 \cdot 10^{+229} \lor \neg \left(t\_1 \leq 2 \cdot 10^{+294}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{y + x}{\left(y + x\right) + t}, z, a\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \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))))
         (if (or (<= t_1 -4e+229) (not (<= t_1 2e+294)))
           (fma (/ (+ y x) (+ (+ y x) t)) z a)
           t_1)))
      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 tmp;
      	if ((t_1 <= -4e+229) || !(t_1 <= 2e+294)) {
      		tmp = fma(((y + x) / ((y + x) + t)), z, a);
      	} else {
      		tmp = t_1;
      	}
      	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))
      	tmp = 0.0
      	if ((t_1 <= -4e+229) || !(t_1 <= 2e+294))
      		tmp = fma(Float64(Float64(y + x) / Float64(Float64(y + x) + t)), z, a);
      	else
      		tmp = t_1;
      	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]}, If[Or[LessEqual[t$95$1, -4e+229], N[Not[LessEqual[t$95$1, 2e+294]], $MachinePrecision]], N[(N[(N[(y + x), $MachinePrecision] / N[(N[(y + x), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] * z + a), $MachinePrecision], t$95$1]]
      
      \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}\\
      \mathbf{if}\;t\_1 \leq -4 \cdot 10^{+229} \lor \neg \left(t\_1 \leq 2 \cdot 10^{+294}\right):\\
      \;\;\;\;\mathsf{fma}\left(\frac{y + x}{\left(y + x\right) + t}, z, a\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \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)) < -4e229 or 2.00000000000000013e294 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y))

        1. Initial program 6.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. Add Preprocessing
        3. Applied rewrites33.1%

          \[\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)} \]
        4. Taylor expanded in t around inf

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

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

          if -4e229 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 2.00000000000000013e294

          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. Add Preprocessing
        6. Recombined 2 regimes into one program.
        7. Final simplification89.3%

          \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \leq -4 \cdot 10^{+229} \lor \neg \left(\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \leq 2 \cdot 10^{+294}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{y + x}{\left(y + x\right) + t}, z, a\right)\\ \mathbf{else}:\\ \;\;\;\;\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} \]
        8. Add Preprocessing

        Alternative 5: 74.6% accurate, 0.3× 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}\\ \mathbf{if}\;t\_2 \leq -2 \cdot 10^{+201}:\\ \;\;\;\;\left(a + z\right) - b\\ \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+286}:\\ \;\;\;\;\frac{\mathsf{fma}\left(t + y, a, \left(y + x\right) \cdot z\right)}{t\_1}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y + x}{\left(y + x\right) + t}, 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)))
           (if (<= t_2 -2e+201)
             (- (+ a z) b)
             (if (<= t_2 5e+286)
               (/ (fma (+ t y) a (* (+ y x) z)) t_1)
               (fma (/ (+ y x) (+ (+ y x) t)) 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 tmp;
        	if (t_2 <= -2e+201) {
        		tmp = (a + z) - b;
        	} else if (t_2 <= 5e+286) {
        		tmp = fma((t + y), a, ((y + x) * z)) / t_1;
        	} else {
        		tmp = fma(((y + x) / ((y + x) + t)), 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)
        	tmp = 0.0
        	if (t_2 <= -2e+201)
        		tmp = Float64(Float64(a + z) - b);
        	elseif (t_2 <= 5e+286)
        		tmp = Float64(fma(Float64(t + y), a, Float64(Float64(y + x) * z)) / t_1);
        	else
        		tmp = fma(Float64(Float64(y + x) / Float64(Float64(y + x) + t)), 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]}, If[LessEqual[t$95$2, -2e+201], N[(N[(a + z), $MachinePrecision] - b), $MachinePrecision], If[LessEqual[t$95$2, 5e+286], N[(N[(N[(t + y), $MachinePrecision] * a + N[(N[(y + x), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], N[(N[(N[(y + x), $MachinePrecision] / N[(N[(y + x), $MachinePrecision] + t), $MachinePrecision]), $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}\\
        \mathbf{if}\;t\_2 \leq -2 \cdot 10^{+201}:\\
        \;\;\;\;\left(a + z\right) - b\\
        
        \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+286}:\\
        \;\;\;\;\frac{\mathsf{fma}\left(t + y, a, \left(y + x\right) \cdot z\right)}{t\_1}\\
        
        \mathbf{else}:\\
        \;\;\;\;\mathsf{fma}\left(\frac{y + x}{\left(y + x\right) + t}, 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.00000000000000008e201

          1. Initial program 12.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. Add Preprocessing
          3. Taylor expanded in y around inf

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

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

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

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

          if -2.00000000000000008e201 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 5.0000000000000004e286

          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. Add Preprocessing
          3. 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} \]
          4. 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-+.f6475.5

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

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

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

          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. Add Preprocessing
          3. Applied rewrites29.5%

            \[\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)} \]
          4. Taylor expanded in t around inf

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

              \[\leadsto \mathsf{fma}\left(\frac{y + x}{\left(y + x\right) + t}, z, \color{blue}{a}\right) \]
          6. Recombined 3 regimes into one program.
          7. Final simplification75.9%

            \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \leq -2 \cdot 10^{+201}:\\ \;\;\;\;\left(a + z\right) - b\\ \mathbf{elif}\;\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \leq 5 \cdot 10^{+286}:\\ \;\;\;\;\frac{\mathsf{fma}\left(t + y, a, \left(y + x\right) \cdot z\right)}{\left(x + t\right) + y}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y + x}{\left(y + x\right) + t}, z, a\right)\\ \end{array} \]
          8. Add Preprocessing

          Alternative 6: 66.2% accurate, 0.3× 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}\\ \mathbf{if}\;t\_2 \leq -5 \cdot 10^{+131} \lor \neg \left(t\_2 \leq 2 \cdot 10^{-10}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{y + x}{\left(y + x\right) + t}, z, a\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(y + x, z, \left(-b\right) \cdot y\right)}{t\_1}\\ \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)))
             (if (or (<= t_2 -5e+131) (not (<= t_2 2e-10)))
               (fma (/ (+ y x) (+ (+ y x) t)) z a)
               (/ (fma (+ y x) z (* (- b) y)) t_1))))
          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 tmp;
          	if ((t_2 <= -5e+131) || !(t_2 <= 2e-10)) {
          		tmp = fma(((y + x) / ((y + x) + t)), z, a);
          	} else {
          		tmp = fma((y + x), z, (-b * y)) / t_1;
          	}
          	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)
          	tmp = 0.0
          	if ((t_2 <= -5e+131) || !(t_2 <= 2e-10))
          		tmp = fma(Float64(Float64(y + x) / Float64(Float64(y + x) + t)), z, a);
          	else
          		tmp = Float64(fma(Float64(y + x), z, Float64(Float64(-b) * y)) / t_1);
          	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]}, If[Or[LessEqual[t$95$2, -5e+131], N[Not[LessEqual[t$95$2, 2e-10]], $MachinePrecision]], N[(N[(N[(y + x), $MachinePrecision] / N[(N[(y + x), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] * z + a), $MachinePrecision], N[(N[(N[(y + x), $MachinePrecision] * z + N[((-b) * y), $MachinePrecision]), $MachinePrecision] / t$95$1), $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}\\
          \mathbf{if}\;t\_2 \leq -5 \cdot 10^{+131} \lor \neg \left(t\_2 \leq 2 \cdot 10^{-10}\right):\\
          \;\;\;\;\mathsf{fma}\left(\frac{y + x}{\left(y + x\right) + t}, z, a\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;\frac{\mathsf{fma}\left(y + x, z, \left(-b\right) \cdot y\right)}{t\_1}\\
          
          
          \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)) < -4.99999999999999995e131 or 2.00000000000000007e-10 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y))

            1. Initial program 34.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. Add Preprocessing
            3. Applied rewrites53.2%

              \[\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)} \]
            4. Taylor expanded in t around inf

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

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

              if -4.99999999999999995e131 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 2.00000000000000007e-10

              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. Add Preprocessing
              3. Taylor expanded in a around 0

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

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

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

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

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

                  \[\leadsto \frac{\left(x + y\right) \cdot z + \left(\mathsf{neg}\left(b \cdot y\right)\right)}{\left(x + t\right) + y} \]
                6. lower-fma.f64N/A

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

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

                  \[\leadsto \frac{\mathsf{fma}\left(y + x, z, \mathsf{neg}\left(b \cdot y\right)\right)}{\left(x + t\right) + y} \]
                9. mul-1-negN/A

                  \[\leadsto \frac{\mathsf{fma}\left(y + x, z, -1 \cdot \left(b \cdot y\right)\right)}{\left(x + t\right) + y} \]
                10. associate-*r*N/A

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

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

                  \[\leadsto \frac{\mathsf{fma}\left(y + x, z, \left(\mathsf{neg}\left(b\right)\right) \cdot y\right)}{\left(x + t\right) + y} \]
                13. lower-neg.f6473.8

                  \[\leadsto \frac{\mathsf{fma}\left(y + x, z, \left(-b\right) \cdot y\right)}{\left(x + t\right) + y} \]
              5. Applied rewrites73.8%

                \[\leadsto \frac{\color{blue}{\mathsf{fma}\left(y + x, z, \left(-b\right) \cdot y\right)}}{\left(x + t\right) + y} \]
            6. Recombined 2 regimes into one program.
            7. Final simplification73.9%

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

            Alternative 7: 69.5% accurate, 1.2× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -3.1 \cdot 10^{+198} \lor \neg \left(y \leq 56000000000\right):\\ \;\;\;\;\left(a + z\right) - b\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y + x}{\left(y + x\right) + t}, z, a\right)\\ \end{array} \end{array} \]
            (FPCore (x y z t a b)
             :precision binary64
             (if (or (<= y -3.1e+198) (not (<= y 56000000000.0)))
               (- (+ a z) b)
               (fma (/ (+ y x) (+ (+ y x) t)) z a)))
            double code(double x, double y, double z, double t, double a, double b) {
            	double tmp;
            	if ((y <= -3.1e+198) || !(y <= 56000000000.0)) {
            		tmp = (a + z) - b;
            	} else {
            		tmp = fma(((y + x) / ((y + x) + t)), z, a);
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a, b)
            	tmp = 0.0
            	if ((y <= -3.1e+198) || !(y <= 56000000000.0))
            		tmp = Float64(Float64(a + z) - b);
            	else
            		tmp = fma(Float64(Float64(y + x) / Float64(Float64(y + x) + t)), z, a);
            	end
            	return tmp
            end
            
            code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -3.1e+198], N[Not[LessEqual[y, 56000000000.0]], $MachinePrecision]], N[(N[(a + z), $MachinePrecision] - b), $MachinePrecision], N[(N[(N[(y + x), $MachinePrecision] / N[(N[(y + x), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] * z + a), $MachinePrecision]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;y \leq -3.1 \cdot 10^{+198} \lor \neg \left(y \leq 56000000000\right):\\
            \;\;\;\;\left(a + z\right) - b\\
            
            \mathbf{else}:\\
            \;\;\;\;\mathsf{fma}\left(\frac{y + x}{\left(y + x\right) + t}, z, a\right)\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if y < -3.09999999999999975e198 or 5.6e10 < y

              1. Initial program 40.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. Add Preprocessing
              3. Taylor expanded in y around inf

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

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

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

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

              if -3.09999999999999975e198 < y < 5.6e10

              1. Initial program 66.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. Add Preprocessing
              3. Applied rewrites79.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)} \]
              4. Taylor expanded in t around inf

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

                  \[\leadsto \mathsf{fma}\left(\frac{y + x}{\left(y + x\right) + t}, z, \color{blue}{a}\right) \]
              6. Recombined 2 regimes into one program.
              7. Final simplification73.7%

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

              Alternative 8: 64.1% accurate, 1.2× speedup?

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

                1. Initial program 42.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. Add Preprocessing
                3. Taylor expanded in y around inf

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

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

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

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

                if -3.09999999999999984e-63 < y < 1.7999999999999999e-90

                1. Initial program 81.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. Add Preprocessing
                3. Taylor expanded in y around 0

                  \[\leadsto \color{blue}{\frac{a \cdot t + x \cdot z}{t + x}} \]
                4. 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-+.f6463.2

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

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

                if 1.7999999999999999e-90 < y < 32500

                1. Initial program 59.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. Add Preprocessing
                3. Taylor expanded in y around inf

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

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

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

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

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

                    \[\leadsto a + z \]
                8. Applied rewrites58.6%

                  \[\leadsto a + \color{blue}{z} \]
              3. Recombined 3 regimes into one program.
              4. Final simplification69.6%

                \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3.1 \cdot 10^{-63}:\\ \;\;\;\;\left(a + z\right) - b\\ \mathbf{elif}\;y \leq 1.8 \cdot 10^{-90}:\\ \;\;\;\;\frac{\mathsf{fma}\left(a, t, z \cdot x\right)}{t + x}\\ \mathbf{elif}\;y \leq 32500:\\ \;\;\;\;a + z\\ \mathbf{else}:\\ \;\;\;\;\left(a + z\right) - b\\ \end{array} \]
              5. Add Preprocessing

              Alternative 9: 61.6% accurate, 1.4× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.9 \cdot 10^{+130} \lor \neg \left(t \leq 4.5 \cdot 10^{+227}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{y + x}{t}, z, a\right)\\ \mathbf{else}:\\ \;\;\;\;\left(a + z\right) - b\\ \end{array} \end{array} \]
              (FPCore (x y z t a b)
               :precision binary64
               (if (or (<= t -1.9e+130) (not (<= t 4.5e+227)))
                 (fma (/ (+ y x) t) z a)
                 (- (+ a z) b)))
              double code(double x, double y, double z, double t, double a, double b) {
              	double tmp;
              	if ((t <= -1.9e+130) || !(t <= 4.5e+227)) {
              		tmp = fma(((y + x) / t), z, a);
              	} else {
              		tmp = (a + z) - b;
              	}
              	return tmp;
              }
              
              function code(x, y, z, t, a, b)
              	tmp = 0.0
              	if ((t <= -1.9e+130) || !(t <= 4.5e+227))
              		tmp = fma(Float64(Float64(y + x) / t), z, a);
              	else
              		tmp = Float64(Float64(a + z) - b);
              	end
              	return tmp
              end
              
              code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1.9e+130], N[Not[LessEqual[t, 4.5e+227]], $MachinePrecision]], N[(N[(N[(y + x), $MachinePrecision] / t), $MachinePrecision] * z + a), $MachinePrecision], N[(N[(a + z), $MachinePrecision] - b), $MachinePrecision]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              \mathbf{if}\;t \leq -1.9 \cdot 10^{+130} \lor \neg \left(t \leq 4.5 \cdot 10^{+227}\right):\\
              \;\;\;\;\mathsf{fma}\left(\frac{y + x}{t}, z, a\right)\\
              
              \mathbf{else}:\\
              \;\;\;\;\left(a + z\right) - b\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 2 regimes
              2. if t < -1.9000000000000001e130 or 4.5e227 < t

                1. Initial program 45.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. Add Preprocessing
                3. Applied rewrites52.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)} \]
                4. Taylor expanded in t around inf

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

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

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

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

                    if -1.9000000000000001e130 < t < 4.5e227

                    1. Initial program 60.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. Add Preprocessing
                    3. Taylor expanded in y around inf

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

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

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

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

                    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.9 \cdot 10^{+130} \lor \neg \left(t \leq 4.5 \cdot 10^{+227}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{y + x}{t}, z, a\right)\\ \mathbf{else}:\\ \;\;\;\;\left(a + z\right) - b\\ \end{array} \]
                  6. Add Preprocessing

                  Alternative 10: 59.3% accurate, 1.4× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -4.8 \cdot 10^{+107} \lor \neg \left(x \leq 1.08 \cdot 10^{+113}\right):\\ \;\;\;\;z \cdot \frac{x}{t + x}\\ \mathbf{else}:\\ \;\;\;\;\left(a + z\right) - b\\ \end{array} \end{array} \]
                  (FPCore (x y z t a b)
                   :precision binary64
                   (if (or (<= x -4.8e+107) (not (<= x 1.08e+113)))
                     (* z (/ x (+ t x)))
                     (- (+ a z) b)))
                  double code(double x, double y, double z, double t, double a, double b) {
                  	double tmp;
                  	if ((x <= -4.8e+107) || !(x <= 1.08e+113)) {
                  		tmp = z * (x / (t + x));
                  	} else {
                  		tmp = (a + z) - b;
                  	}
                  	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.8d+107)) .or. (.not. (x <= 1.08d+113))) then
                          tmp = z * (x / (t + x))
                      else
                          tmp = (a + z) - b
                      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.8e+107) || !(x <= 1.08e+113)) {
                  		tmp = z * (x / (t + x));
                  	} else {
                  		tmp = (a + z) - b;
                  	}
                  	return tmp;
                  }
                  
                  def code(x, y, z, t, a, b):
                  	tmp = 0
                  	if (x <= -4.8e+107) or not (x <= 1.08e+113):
                  		tmp = z * (x / (t + x))
                  	else:
                  		tmp = (a + z) - b
                  	return tmp
                  
                  function code(x, y, z, t, a, b)
                  	tmp = 0.0
                  	if ((x <= -4.8e+107) || !(x <= 1.08e+113))
                  		tmp = Float64(z * Float64(x / Float64(t + x)));
                  	else
                  		tmp = Float64(Float64(a + z) - b);
                  	end
                  	return tmp
                  end
                  
                  function tmp_2 = code(x, y, z, t, a, b)
                  	tmp = 0.0;
                  	if ((x <= -4.8e+107) || ~((x <= 1.08e+113)))
                  		tmp = z * (x / (t + x));
                  	else
                  		tmp = (a + z) - b;
                  	end
                  	tmp_2 = tmp;
                  end
                  
                  code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[x, -4.8e+107], N[Not[LessEqual[x, 1.08e+113]], $MachinePrecision]], N[(z * N[(x / N[(t + x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a + z), $MachinePrecision] - b), $MachinePrecision]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  \mathbf{if}\;x \leq -4.8 \cdot 10^{+107} \lor \neg \left(x \leq 1.08 \cdot 10^{+113}\right):\\
                  \;\;\;\;z \cdot \frac{x}{t + x}\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;\left(a + z\right) - b\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 2 regimes
                  2. if x < -4.8000000000000001e107 or 1.08e113 < x

                    1. Initial program 47.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. Add Preprocessing
                    3. Applied rewrites75.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)} \]
                    4. 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)} \]
                    5. 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.1

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

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

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

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

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

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

                    if -4.8000000000000001e107 < x < 1.08e113

                    1. Initial program 62.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. Add Preprocessing
                    3. Taylor expanded in y around inf

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

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

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

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

                    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -4.8 \cdot 10^{+107} \lor \neg \left(x \leq 1.08 \cdot 10^{+113}\right):\\ \;\;\;\;z \cdot \frac{x}{t + x}\\ \mathbf{else}:\\ \;\;\;\;\left(a + z\right) - b\\ \end{array} \]
                  5. Add Preprocessing

                  Alternative 11: 58.5% accurate, 2.4× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -1.22 \cdot 10^{+165}:\\ \;\;\;\;z\\ \mathbf{elif}\;x \leq 1.45 \cdot 10^{+113}:\\ \;\;\;\;\left(a + z\right) - b\\ \mathbf{else}:\\ \;\;\;\;z\\ \end{array} \end{array} \]
                  (FPCore (x y z t a b)
                   :precision binary64
                   (if (<= x -1.22e+165) z (if (<= x 1.45e+113) (- (+ a z) b) z)))
                  double code(double x, double y, double z, double t, double a, double b) {
                  	double tmp;
                  	if (x <= -1.22e+165) {
                  		tmp = z;
                  	} else if (x <= 1.45e+113) {
                  		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 <= (-1.22d+165)) then
                          tmp = z
                      else if (x <= 1.45d+113) 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 <= -1.22e+165) {
                  		tmp = z;
                  	} else if (x <= 1.45e+113) {
                  		tmp = (a + z) - b;
                  	} else {
                  		tmp = z;
                  	}
                  	return tmp;
                  }
                  
                  def code(x, y, z, t, a, b):
                  	tmp = 0
                  	if x <= -1.22e+165:
                  		tmp = z
                  	elif x <= 1.45e+113:
                  		tmp = (a + z) - b
                  	else:
                  		tmp = z
                  	return tmp
                  
                  function code(x, y, z, t, a, b)
                  	tmp = 0.0
                  	if (x <= -1.22e+165)
                  		tmp = z;
                  	elseif (x <= 1.45e+113)
                  		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 <= -1.22e+165)
                  		tmp = z;
                  	elseif (x <= 1.45e+113)
                  		tmp = (a + z) - b;
                  	else
                  		tmp = z;
                  	end
                  	tmp_2 = tmp;
                  end
                  
                  code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -1.22e+165], z, If[LessEqual[x, 1.45e+113], N[(N[(a + z), $MachinePrecision] - b), $MachinePrecision], z]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  \mathbf{if}\;x \leq -1.22 \cdot 10^{+165}:\\
                  \;\;\;\;z\\
                  
                  \mathbf{elif}\;x \leq 1.45 \cdot 10^{+113}:\\
                  \;\;\;\;\left(a + z\right) - b\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;z\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 2 regimes
                  2. if x < -1.2199999999999999e165 or 1.44999999999999992e113 < x

                    1. Initial program 48.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. Add Preprocessing
                    3. Taylor expanded in x around inf

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

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

                      if -1.2199999999999999e165 < x < 1.44999999999999992e113

                      1. Initial program 60.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. Add Preprocessing
                      3. Taylor expanded in y around inf

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

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

                          \[\leadsto \left(a + z\right) - b \]
                      5. Applied rewrites64.7%

                        \[\leadsto \color{blue}{\left(a + z\right) - b} \]
                    5. Recombined 2 regimes into one program.
                    6. Final simplification64.0%

                      \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.22 \cdot 10^{+165}:\\ \;\;\;\;z\\ \mathbf{elif}\;x \leq 1.45 \cdot 10^{+113}:\\ \;\;\;\;\left(a + z\right) - b\\ \mathbf{else}:\\ \;\;\;\;z\\ \end{array} \]
                    7. Add Preprocessing

                    Alternative 12: 53.2% accurate, 2.8× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -1.4 \cdot 10^{-65} \lor \neg \left(a \leq 0.23\right):\\ \;\;\;\;a + z\\ \mathbf{else}:\\ \;\;\;\;z - b\\ \end{array} \end{array} \]
                    (FPCore (x y z t a b)
                     :precision binary64
                     (if (or (<= a -1.4e-65) (not (<= a 0.23))) (+ a z) (- z b)))
                    double code(double x, double y, double z, double t, double a, double b) {
                    	double tmp;
                    	if ((a <= -1.4e-65) || !(a <= 0.23)) {
                    		tmp = a + z;
                    	} else {
                    		tmp = z - b;
                    	}
                    	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 ((a <= (-1.4d-65)) .or. (.not. (a <= 0.23d0))) then
                            tmp = a + z
                        else
                            tmp = z - b
                        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 ((a <= -1.4e-65) || !(a <= 0.23)) {
                    		tmp = a + z;
                    	} else {
                    		tmp = z - b;
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y, z, t, a, b):
                    	tmp = 0
                    	if (a <= -1.4e-65) or not (a <= 0.23):
                    		tmp = a + z
                    	else:
                    		tmp = z - b
                    	return tmp
                    
                    function code(x, y, z, t, a, b)
                    	tmp = 0.0
                    	if ((a <= -1.4e-65) || !(a <= 0.23))
                    		tmp = Float64(a + z);
                    	else
                    		tmp = Float64(z - b);
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y, z, t, a, b)
                    	tmp = 0.0;
                    	if ((a <= -1.4e-65) || ~((a <= 0.23)))
                    		tmp = a + z;
                    	else
                    		tmp = z - b;
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[a, -1.4e-65], N[Not[LessEqual[a, 0.23]], $MachinePrecision]], N[(a + z), $MachinePrecision], N[(z - b), $MachinePrecision]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    \mathbf{if}\;a \leq -1.4 \cdot 10^{-65} \lor \neg \left(a \leq 0.23\right):\\
                    \;\;\;\;a + z\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;z - b\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 2 regimes
                    2. if a < -1.4e-65 or 0.23000000000000001 < a

                      1. Initial program 47.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. Add Preprocessing
                      3. Taylor expanded in y around inf

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

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

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

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

                        \[\leadsto a + \color{blue}{z} \]
                      7. Step-by-step derivation
                        1. lift-+.f6465.2

                          \[\leadsto a + z \]
                      8. Applied rewrites65.2%

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

                      if -1.4e-65 < a < 0.23000000000000001

                      1. Initial program 70.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. Add Preprocessing
                      3. Taylor expanded in y around inf

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

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

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

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

                        \[\leadsto z - b \]
                      7. Step-by-step derivation
                        1. Applied rewrites51.3%

                          \[\leadsto z - b \]
                      8. Recombined 2 regimes into one program.
                      9. Final simplification59.2%

                        \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.4 \cdot 10^{-65} \lor \neg \left(a \leq 0.23\right):\\ \;\;\;\;a + z\\ \mathbf{else}:\\ \;\;\;\;z - b\\ \end{array} \]
                      10. Add Preprocessing

                      Alternative 13: 53.3% accurate, 2.8× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -2.6 \cdot 10^{-36} \lor \neg \left(z \leq 8.2 \cdot 10^{-56}\right):\\ \;\;\;\;a + z\\ \mathbf{else}:\\ \;\;\;\;a - b\\ \end{array} \end{array} \]
                      (FPCore (x y z t a b)
                       :precision binary64
                       (if (or (<= z -2.6e-36) (not (<= z 8.2e-56))) (+ a z) (- a b)))
                      double code(double x, double y, double z, double t, double a, double b) {
                      	double tmp;
                      	if ((z <= -2.6e-36) || !(z <= 8.2e-56)) {
                      		tmp = a + z;
                      	} else {
                      		tmp = a - b;
                      	}
                      	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.6d-36)) .or. (.not. (z <= 8.2d-56))) then
                              tmp = a + z
                          else
                              tmp = a - b
                          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.6e-36) || !(z <= 8.2e-56)) {
                      		tmp = a + z;
                      	} else {
                      		tmp = a - b;
                      	}
                      	return tmp;
                      }
                      
                      def code(x, y, z, t, a, b):
                      	tmp = 0
                      	if (z <= -2.6e-36) or not (z <= 8.2e-56):
                      		tmp = a + z
                      	else:
                      		tmp = a - b
                      	return tmp
                      
                      function code(x, y, z, t, a, b)
                      	tmp = 0.0
                      	if ((z <= -2.6e-36) || !(z <= 8.2e-56))
                      		tmp = Float64(a + z);
                      	else
                      		tmp = Float64(a - b);
                      	end
                      	return tmp
                      end
                      
                      function tmp_2 = code(x, y, z, t, a, b)
                      	tmp = 0.0;
                      	if ((z <= -2.6e-36) || ~((z <= 8.2e-56)))
                      		tmp = a + z;
                      	else
                      		tmp = a - b;
                      	end
                      	tmp_2 = tmp;
                      end
                      
                      code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -2.6e-36], N[Not[LessEqual[z, 8.2e-56]], $MachinePrecision]], N[(a + z), $MachinePrecision], N[(a - b), $MachinePrecision]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      \mathbf{if}\;z \leq -2.6 \cdot 10^{-36} \lor \neg \left(z \leq 8.2 \cdot 10^{-56}\right):\\
                      \;\;\;\;a + z\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;a - b\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 2 regimes
                      2. if z < -2.6e-36 or 8.2000000000000003e-56 < z

                        1. Initial program 46.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. Add Preprocessing
                        3. Taylor expanded in y around inf

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

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

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

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

                          \[\leadsto a + \color{blue}{z} \]
                        7. Step-by-step derivation
                          1. lift-+.f6460.2

                            \[\leadsto a + z \]
                        8. Applied rewrites60.2%

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

                        if -2.6e-36 < z < 8.2000000000000003e-56

                        1. Initial program 72.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. Add Preprocessing
                        3. Taylor expanded in y around inf

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

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

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

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

                          \[\leadsto a - b \]
                        7. Step-by-step derivation
                          1. Applied rewrites56.1%

                            \[\leadsto a - b \]
                        8. Recombined 2 regimes into one program.
                        9. Final simplification58.5%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.6 \cdot 10^{-36} \lor \neg \left(z \leq 8.2 \cdot 10^{-56}\right):\\ \;\;\;\;a + z\\ \mathbf{else}:\\ \;\;\;\;a - b\\ \end{array} \]
                        10. Add Preprocessing

                        Alternative 14: 44.8% accurate, 3.5× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -9 \cdot 10^{+85}:\\ \;\;\;\;z\\ \mathbf{elif}\;x \leq 9 \cdot 10^{+84}:\\ \;\;\;\;a\\ \mathbf{else}:\\ \;\;\;\;z\\ \end{array} \end{array} \]
                        (FPCore (x y z t a b)
                         :precision binary64
                         (if (<= x -9e+85) z (if (<= x 9e+84) a z)))
                        double code(double x, double y, double z, double t, double a, double b) {
                        	double tmp;
                        	if (x <= -9e+85) {
                        		tmp = z;
                        	} else if (x <= 9e+84) {
                        		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 <= (-9d+85)) then
                                tmp = z
                            else if (x <= 9d+84) 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 <= -9e+85) {
                        		tmp = z;
                        	} else if (x <= 9e+84) {
                        		tmp = a;
                        	} else {
                        		tmp = z;
                        	}
                        	return tmp;
                        }
                        
                        def code(x, y, z, t, a, b):
                        	tmp = 0
                        	if x <= -9e+85:
                        		tmp = z
                        	elif x <= 9e+84:
                        		tmp = a
                        	else:
                        		tmp = z
                        	return tmp
                        
                        function code(x, y, z, t, a, b)
                        	tmp = 0.0
                        	if (x <= -9e+85)
                        		tmp = z;
                        	elseif (x <= 9e+84)
                        		tmp = a;
                        	else
                        		tmp = z;
                        	end
                        	return tmp
                        end
                        
                        function tmp_2 = code(x, y, z, t, a, b)
                        	tmp = 0.0;
                        	if (x <= -9e+85)
                        		tmp = z;
                        	elseif (x <= 9e+84)
                        		tmp = a;
                        	else
                        		tmp = z;
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -9e+85], z, If[LessEqual[x, 9e+84], a, z]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        \mathbf{if}\;x \leq -9 \cdot 10^{+85}:\\
                        \;\;\;\;z\\
                        
                        \mathbf{elif}\;x \leq 9 \cdot 10^{+84}:\\
                        \;\;\;\;a\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;z\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 2 regimes
                        2. if x < -9.00000000000000013e85 or 8.9999999999999994e84 < x

                          1. Initial program 46.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. Add Preprocessing
                          3. Taylor expanded in x around inf

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

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

                            if -9.00000000000000013e85 < x < 8.9999999999999994e84

                            1. Initial program 63.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. Add Preprocessing
                            3. Taylor expanded in t around inf

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

                                \[\leadsto \color{blue}{a} \]
                            5. Recombined 2 regimes into one program.
                            6. Final simplification48.8%

                              \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -9 \cdot 10^{+85}:\\ \;\;\;\;z\\ \mathbf{elif}\;x \leq 9 \cdot 10^{+84}:\\ \;\;\;\;a\\ \mathbf{else}:\\ \;\;\;\;z\\ \end{array} \]
                            7. Add Preprocessing

                            Alternative 15: 52.7% accurate, 4.5× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.2 \cdot 10^{+156}:\\ \;\;\;\;a\\ \mathbf{else}:\\ \;\;\;\;a + z\\ \end{array} \end{array} \]
                            (FPCore (x y z t a b) :precision binary64 (if (<= t -1.2e+156) a (+ a z)))
                            double code(double x, double y, double z, double t, double a, double b) {
                            	double tmp;
                            	if (t <= -1.2e+156) {
                            		tmp = a;
                            	} 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 (t <= (-1.2d+156)) then
                                    tmp = a
                                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 (t <= -1.2e+156) {
                            		tmp = a;
                            	} else {
                            		tmp = a + z;
                            	}
                            	return tmp;
                            }
                            
                            def code(x, y, z, t, a, b):
                            	tmp = 0
                            	if t <= -1.2e+156:
                            		tmp = a
                            	else:
                            		tmp = a + z
                            	return tmp
                            
                            function code(x, y, z, t, a, b)
                            	tmp = 0.0
                            	if (t <= -1.2e+156)
                            		tmp = a;
                            	else
                            		tmp = Float64(a + z);
                            	end
                            	return tmp
                            end
                            
                            function tmp_2 = code(x, y, z, t, a, b)
                            	tmp = 0.0;
                            	if (t <= -1.2e+156)
                            		tmp = a;
                            	else
                            		tmp = a + z;
                            	end
                            	tmp_2 = tmp;
                            end
                            
                            code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -1.2e+156], a, N[(a + z), $MachinePrecision]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            \mathbf{if}\;t \leq -1.2 \cdot 10^{+156}:\\
                            \;\;\;\;a\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;a + z\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 2 regimes
                            2. if t < -1.2000000000000001e156

                              1. Initial program 40.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. Add Preprocessing
                              3. Taylor expanded in t around inf

                                \[\leadsto \color{blue}{a} \]
                              4. Step-by-step derivation
                                1. Applied rewrites60.8%

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

                                if -1.2000000000000001e156 < t

                                1. Initial program 59.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. Add Preprocessing
                                3. Taylor expanded in y around inf

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

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

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

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

                                  \[\leadsto a + \color{blue}{z} \]
                                7. Step-by-step derivation
                                  1. lift-+.f6455.1

                                    \[\leadsto a + z \]
                                8. Applied rewrites55.1%

                                  \[\leadsto a + \color{blue}{z} \]
                              5. Recombined 2 regimes into one program.
                              6. Final simplification55.8%

                                \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.2 \cdot 10^{+156}:\\ \;\;\;\;a\\ \mathbf{else}:\\ \;\;\;\;a + z\\ \end{array} \]
                              7. Add Preprocessing

                              Alternative 16: 32.8% 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 57.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. Add Preprocessing
                              3. Taylor expanded in t around inf

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

                                  \[\leadsto \color{blue}{a} \]
                                2. Final simplification32.6%

                                  \[\leadsto a \]
                                3. Add Preprocessing

                                Developer Target 1: 82.6% 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 2025084 
                                (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)))