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

Percentage Accurate: 60.7% → 90.6%
Time: 8.6s
Alternatives: 14
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}

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 14 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.7% 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: 90.6% 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 -2 \cdot 10^{+249} \lor \neg \left(t\_1 \leq 4 \cdot 10^{+255}\right):\\ \;\;\;\;\left(z + a\right) - \frac{y}{y + x} \cdot b\\ \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 -2e+249) (not (<= t_1 4e+255)))
     (- (+ z a) (* (/ y (+ y x)) b))
     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 <= -2e+249) || !(t_1 <= 4e+255)) {
		tmp = (z + a) - ((y / (y + x)) * b);
	} else {
		tmp = t_1;
	}
	return tmp;
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: t_1
    real(8) :: tmp
    t_1 = ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y)
    if ((t_1 <= (-2d+249)) .or. (.not. (t_1 <= 4d+255))) then
        tmp = (z + a) - ((y / (y + x)) * b)
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y);
	double tmp;
	if ((t_1 <= -2e+249) || !(t_1 <= 4e+255)) {
		tmp = (z + a) - ((y / (y + x)) * b);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y)
	tmp = 0
	if (t_1 <= -2e+249) or not (t_1 <= 4e+255):
		tmp = (z + a) - ((y / (y + x)) * b)
	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 <= -2e+249) || !(t_1 <= 4e+255))
		tmp = Float64(Float64(z + a) - Float64(Float64(y / Float64(y + x)) * b));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y);
	tmp = 0.0;
	if ((t_1 <= -2e+249) || ~((t_1 <= 4e+255)))
		tmp = (z + a) - ((y / (y + x)) * b);
	else
		tmp = t_1;
	end
	tmp_2 = 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, -2e+249], N[Not[LessEqual[t$95$1, 4e+255]], $MachinePrecision]], N[(N[(z + a), $MachinePrecision] - N[(N[(y / N[(y + x), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $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 -2 \cdot 10^{+249} \lor \neg \left(t\_1 \leq 4 \cdot 10^{+255}\right):\\
\;\;\;\;\left(z + a\right) - \frac{y}{y + x} \cdot b\\

\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)) < -1.9999999999999998e249 or 3.99999999999999995e255 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y))

    1. Initial program 8.9%

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

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

        \[\leadsto \color{blue}{\left(z + \left(t \cdot \left(\left(\frac{a}{x + y} + \frac{b \cdot y}{{\left(x + y\right)}^{2}}\right) - \left(\frac{z}{x + y} + \frac{a \cdot y}{{\left(x + y\right)}^{2}}\right)\right) + \frac{a \cdot y}{x + y}\right)\right) - \frac{b \cdot y}{x + y}} \]
    5. Applied rewrites78.6%

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

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

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

      if -1.9999999999999998e249 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 3.99999999999999995e255

      1. Initial program 98.9%

        \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
      2. Add Preprocessing
    8. Recombined 2 regimes into one program.
    9. Final simplification92.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 -2 \cdot 10^{+249} \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 4 \cdot 10^{+255}\right):\\ \;\;\;\;\left(z + a\right) - \frac{y}{y + x} \cdot b\\ \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} \]
    10. Add Preprocessing

    Alternative 2: 64.8% accurate, 0.3× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(t + y\right) \cdot a\\ t_2 := \frac{\left(\left(x + y\right) \cdot z + t\_1\right) - y \cdot b}{\left(x + t\right) + y}\\ t_3 := \left(z + a\right) - \frac{y}{y + x} \cdot b\\ \mathbf{if}\;t\_2 \leq -2 \cdot 10^{-22}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;t\_2 \leq -2 \cdot 10^{-171}:\\ \;\;\;\;\frac{t\_1}{\left(y + x\right) + t}\\ \mathbf{elif}\;t\_2 \leq 4 \cdot 10^{-31}:\\ \;\;\;\;z \cdot \frac{x + y}{\left(t + x\right) + y}\\ \mathbf{else}:\\ \;\;\;\;t\_3\\ \end{array} \end{array} \]
    (FPCore (x y z t a b)
     :precision binary64
     (let* ((t_1 (* (+ t y) a))
            (t_2 (/ (- (+ (* (+ x y) z) t_1) (* y b)) (+ (+ x t) y)))
            (t_3 (- (+ z a) (* (/ y (+ y x)) b))))
       (if (<= t_2 -2e-22)
         t_3
         (if (<= t_2 -2e-171)
           (/ t_1 (+ (+ y x) t))
           (if (<= t_2 4e-31) (* z (/ (+ x y) (+ (+ t x) y))) t_3)))))
    double code(double x, double y, double z, double t, double a, double b) {
    	double t_1 = (t + y) * a;
    	double t_2 = ((((x + y) * z) + t_1) - (y * b)) / ((x + t) + y);
    	double t_3 = (z + a) - ((y / (y + x)) * b);
    	double tmp;
    	if (t_2 <= -2e-22) {
    		tmp = t_3;
    	} else if (t_2 <= -2e-171) {
    		tmp = t_1 / ((y + x) + t);
    	} else if (t_2 <= 4e-31) {
    		tmp = z * ((x + y) / ((t + x) + y));
    	} else {
    		tmp = t_3;
    	}
    	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) :: tmp
        t_1 = (t + y) * a
        t_2 = ((((x + y) * z) + t_1) - (y * b)) / ((x + t) + y)
        t_3 = (z + a) - ((y / (y + x)) * b)
        if (t_2 <= (-2d-22)) then
            tmp = t_3
        else if (t_2 <= (-2d-171)) then
            tmp = t_1 / ((y + x) + t)
        else if (t_2 <= 4d-31) then
            tmp = z * ((x + y) / ((t + x) + y))
        else
            tmp = t_3
        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 = (t + y) * a;
    	double t_2 = ((((x + y) * z) + t_1) - (y * b)) / ((x + t) + y);
    	double t_3 = (z + a) - ((y / (y + x)) * b);
    	double tmp;
    	if (t_2 <= -2e-22) {
    		tmp = t_3;
    	} else if (t_2 <= -2e-171) {
    		tmp = t_1 / ((y + x) + t);
    	} else if (t_2 <= 4e-31) {
    		tmp = z * ((x + y) / ((t + x) + y));
    	} else {
    		tmp = t_3;
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a, b):
    	t_1 = (t + y) * a
    	t_2 = ((((x + y) * z) + t_1) - (y * b)) / ((x + t) + y)
    	t_3 = (z + a) - ((y / (y + x)) * b)
    	tmp = 0
    	if t_2 <= -2e-22:
    		tmp = t_3
    	elif t_2 <= -2e-171:
    		tmp = t_1 / ((y + x) + t)
    	elif t_2 <= 4e-31:
    		tmp = z * ((x + y) / ((t + x) + y))
    	else:
    		tmp = t_3
    	return tmp
    
    function code(x, y, z, t, a, b)
    	t_1 = Float64(Float64(t + y) * a)
    	t_2 = Float64(Float64(Float64(Float64(Float64(x + y) * z) + t_1) - Float64(y * b)) / Float64(Float64(x + t) + y))
    	t_3 = Float64(Float64(z + a) - Float64(Float64(y / Float64(y + x)) * b))
    	tmp = 0.0
    	if (t_2 <= -2e-22)
    		tmp = t_3;
    	elseif (t_2 <= -2e-171)
    		tmp = Float64(t_1 / Float64(Float64(y + x) + t));
    	elseif (t_2 <= 4e-31)
    		tmp = Float64(z * Float64(Float64(x + y) / Float64(Float64(t + x) + y)));
    	else
    		tmp = t_3;
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t, a, b)
    	t_1 = (t + y) * a;
    	t_2 = ((((x + y) * z) + t_1) - (y * b)) / ((x + t) + y);
    	t_3 = (z + a) - ((y / (y + x)) * b);
    	tmp = 0.0;
    	if (t_2 <= -2e-22)
    		tmp = t_3;
    	elseif (t_2 <= -2e-171)
    		tmp = t_1 / ((y + x) + t);
    	elseif (t_2 <= 4e-31)
    		tmp = z * ((x + y) / ((t + x) + y));
    	else
    		tmp = t_3;
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t + y), $MachinePrecision] * a), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(N[(x + y), $MachinePrecision] * z), $MachinePrecision] + t$95$1), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / N[(N[(x + t), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(z + a), $MachinePrecision] - N[(N[(y / N[(y + x), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -2e-22], t$95$3, If[LessEqual[t$95$2, -2e-171], N[(t$95$1 / N[(N[(y + x), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 4e-31], N[(z * N[(N[(x + y), $MachinePrecision] / N[(N[(t + x), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \left(t + y\right) \cdot a\\
    t_2 := \frac{\left(\left(x + y\right) \cdot z + t\_1\right) - y \cdot b}{\left(x + t\right) + y}\\
    t_3 := \left(z + a\right) - \frac{y}{y + x} \cdot b\\
    \mathbf{if}\;t\_2 \leq -2 \cdot 10^{-22}:\\
    \;\;\;\;t\_3\\
    
    \mathbf{elif}\;t\_2 \leq -2 \cdot 10^{-171}:\\
    \;\;\;\;\frac{t\_1}{\left(y + x\right) + t}\\
    
    \mathbf{elif}\;t\_2 \leq 4 \cdot 10^{-31}:\\
    \;\;\;\;z \cdot \frac{x + y}{\left(t + x\right) + y}\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_3\\
    
    
    \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.0000000000000001e-22 or 4e-31 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y))

      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 t around 0

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

          \[\leadsto \color{blue}{\left(z + \left(t \cdot \left(\left(\frac{a}{x + y} + \frac{b \cdot y}{{\left(x + y\right)}^{2}}\right) - \left(\frac{z}{x + y} + \frac{a \cdot y}{{\left(x + y\right)}^{2}}\right)\right) + \frac{a \cdot y}{x + y}\right)\right) - \frac{b \cdot y}{x + y}} \]
      5. Applied rewrites75.1%

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

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

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

        if -2.0000000000000001e-22 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < -2e-171

        1. Initial program 99.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -2e-171 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 4e-31

          1. Initial program 96.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 z around inf

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

              \[\leadsto \frac{\color{blue}{\left(x + y\right) \cdot z}}{t + \left(x + y\right)} \]
            2. associate-/l*N/A

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

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

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

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

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

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

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

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

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

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

              \[\leadsto z \cdot \color{blue}{\frac{x + y}{\left(t + x\right) + y}} \]
          7. Recombined 3 regimes into one program.
          8. Add Preprocessing

          Alternative 3: 57.4% 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}\\ t_3 := \left(a + z\right) - b\\ \mathbf{if}\;t\_2 \leq -5 \cdot 10^{-18}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-87}:\\ \;\;\;\;\frac{a \cdot t}{t\_1}\\ \mathbf{elif}\;t\_2 \leq 4 \cdot 10^{-31}:\\ \;\;\;\;z \cdot \frac{x + y}{\left(t + x\right) + y}\\ \mathbf{else}:\\ \;\;\;\;t\_3\\ \end{array} \end{array} \]
          (FPCore (x y z t a b)
           :precision binary64
           (let* ((t_1 (+ (+ x t) y))
                  (t_2 (/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) t_1))
                  (t_3 (- (+ a z) b)))
             (if (<= t_2 -5e-18)
               t_3
               (if (<= t_2 -5e-87)
                 (/ (* a t) t_1)
                 (if (<= t_2 4e-31) (* z (/ (+ x y) (+ (+ t x) y))) t_3)))))
          double code(double x, double y, double z, double t, double a, double b) {
          	double t_1 = (x + t) + y;
          	double t_2 = ((((x + y) * z) + ((t + y) * a)) - (y * b)) / t_1;
          	double t_3 = (a + z) - b;
          	double tmp;
          	if (t_2 <= -5e-18) {
          		tmp = t_3;
          	} else if (t_2 <= -5e-87) {
          		tmp = (a * t) / t_1;
          	} else if (t_2 <= 4e-31) {
          		tmp = z * ((x + y) / ((t + x) + y));
          	} else {
          		tmp = t_3;
          	}
          	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) :: tmp
              t_1 = (x + t) + y
              t_2 = ((((x + y) * z) + ((t + y) * a)) - (y * b)) / t_1
              t_3 = (a + z) - b
              if (t_2 <= (-5d-18)) then
                  tmp = t_3
              else if (t_2 <= (-5d-87)) then
                  tmp = (a * t) / t_1
              else if (t_2 <= 4d-31) then
                  tmp = z * ((x + y) / ((t + x) + y))
              else
                  tmp = t_3
              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)) / t_1;
          	double t_3 = (a + z) - b;
          	double tmp;
          	if (t_2 <= -5e-18) {
          		tmp = t_3;
          	} else if (t_2 <= -5e-87) {
          		tmp = (a * t) / t_1;
          	} else if (t_2 <= 4e-31) {
          		tmp = z * ((x + y) / ((t + x) + y));
          	} else {
          		tmp = t_3;
          	}
          	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_1
          	t_3 = (a + z) - b
          	tmp = 0
          	if t_2 <= -5e-18:
          		tmp = t_3
          	elif t_2 <= -5e-87:
          		tmp = (a * t) / t_1
          	elif t_2 <= 4e-31:
          		tmp = z * ((x + y) / ((t + x) + y))
          	else:
          		tmp = t_3
          	return tmp
          
          function code(x, y, z, t, a, b)
          	t_1 = Float64(Float64(x + t) + y)
          	t_2 = Float64(Float64(Float64(Float64(Float64(x + y) * z) + Float64(Float64(t + y) * a)) - Float64(y * b)) / t_1)
          	t_3 = Float64(Float64(a + z) - b)
          	tmp = 0.0
          	if (t_2 <= -5e-18)
          		tmp = t_3;
          	elseif (t_2 <= -5e-87)
          		tmp = Float64(Float64(a * t) / t_1);
          	elseif (t_2 <= 4e-31)
          		tmp = Float64(z * Float64(Float64(x + y) / Float64(Float64(t + x) + y)));
          	else
          		tmp = t_3;
          	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_1;
          	t_3 = (a + z) - b;
          	tmp = 0.0;
          	if (t_2 <= -5e-18)
          		tmp = t_3;
          	elseif (t_2 <= -5e-87)
          		tmp = (a * t) / t_1;
          	elseif (t_2 <= 4e-31)
          		tmp = z * ((x + y) / ((t + x) + y));
          	else
          		tmp = t_3;
          	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[(N[(x + y), $MachinePrecision] * z), $MachinePrecision] + N[(N[(t + y), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(a + z), $MachinePrecision] - b), $MachinePrecision]}, If[LessEqual[t$95$2, -5e-18], t$95$3, If[LessEqual[t$95$2, -5e-87], N[(N[(a * t), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[t$95$2, 4e-31], N[(z * N[(N[(x + y), $MachinePrecision] / N[(N[(t + x), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := \left(x + t\right) + y\\
          t_2 := \frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{t\_1}\\
          t_3 := \left(a + z\right) - b\\
          \mathbf{if}\;t\_2 \leq -5 \cdot 10^{-18}:\\
          \;\;\;\;t\_3\\
          
          \mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-87}:\\
          \;\;\;\;\frac{a \cdot t}{t\_1}\\
          
          \mathbf{elif}\;t\_2 \leq 4 \cdot 10^{-31}:\\
          \;\;\;\;z \cdot \frac{x + y}{\left(t + x\right) + y}\\
          
          \mathbf{else}:\\
          \;\;\;\;t\_3\\
          
          
          \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)) < -5.00000000000000036e-18 or 4e-31 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y))

            1. Initial program 47.7%

              \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
            2. 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 \color{blue}{\left(a + z\right) - b} \]
              2. lower-+.f6471.0

                \[\leadsto \color{blue}{\left(a + z\right)} - b \]
            5. Applied rewrites71.0%

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

            if -5.00000000000000036e-18 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < -5.00000000000000042e-87

            1. Initial program 99.9%

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

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

                \[\leadsto \frac{\color{blue}{a \cdot t}}{\left(x + t\right) + y} \]
            5. Applied rewrites62.9%

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

            if -5.00000000000000042e-87 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 4e-31

            1. Initial program 97.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 z around inf

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

                \[\leadsto \frac{\color{blue}{\left(x + y\right) \cdot z}}{t + \left(x + y\right)} \]
              2. associate-/l*N/A

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

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

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

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

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

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

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

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

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

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

                \[\leadsto z \cdot \color{blue}{\frac{x + y}{\left(t + x\right) + y}} \]
            7. Recombined 3 regimes into one program.
            8. Add Preprocessing

            Alternative 4: 75.8% accurate, 0.3× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(t + y\right) \cdot a\\ t_2 := \frac{\left(\left(x + y\right) \cdot z + t\_1\right) - y \cdot b}{\left(x + t\right) + y}\\ \mathbf{if}\;t\_2 \leq -5 \cdot 10^{-18} \lor \neg \left(t\_2 \leq 4 \cdot 10^{+255}\right):\\ \;\;\;\;\left(z + a\right) - \frac{y}{y + x} \cdot b\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(y + x, z, t\_1\right)}{\left(y + x\right) + t}\\ \end{array} \end{array} \]
            (FPCore (x y z t a b)
             :precision binary64
             (let* ((t_1 (* (+ t y) a))
                    (t_2 (/ (- (+ (* (+ x y) z) t_1) (* y b)) (+ (+ x t) y))))
               (if (or (<= t_2 -5e-18) (not (<= t_2 4e+255)))
                 (- (+ z a) (* (/ y (+ y x)) b))
                 (/ (fma (+ y x) z t_1) (+ (+ y x) t)))))
            double code(double x, double y, double z, double t, double a, double b) {
            	double t_1 = (t + y) * a;
            	double t_2 = ((((x + y) * z) + t_1) - (y * b)) / ((x + t) + y);
            	double tmp;
            	if ((t_2 <= -5e-18) || !(t_2 <= 4e+255)) {
            		tmp = (z + a) - ((y / (y + x)) * b);
            	} else {
            		tmp = fma((y + x), z, t_1) / ((y + x) + t);
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a, b)
            	t_1 = Float64(Float64(t + y) * a)
            	t_2 = Float64(Float64(Float64(Float64(Float64(x + y) * z) + t_1) - Float64(y * b)) / Float64(Float64(x + t) + y))
            	tmp = 0.0
            	if ((t_2 <= -5e-18) || !(t_2 <= 4e+255))
            		tmp = Float64(Float64(z + a) - Float64(Float64(y / Float64(y + x)) * b));
            	else
            		tmp = Float64(fma(Float64(y + x), z, t_1) / Float64(Float64(y + x) + t));
            	end
            	return tmp
            end
            
            code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t + y), $MachinePrecision] * a), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(N[(x + y), $MachinePrecision] * z), $MachinePrecision] + t$95$1), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / N[(N[(x + t), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$2, -5e-18], N[Not[LessEqual[t$95$2, 4e+255]], $MachinePrecision]], N[(N[(z + a), $MachinePrecision] - N[(N[(y / N[(y + x), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], N[(N[(N[(y + x), $MachinePrecision] * z + t$95$1), $MachinePrecision] / N[(N[(y + x), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision]]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \left(t + y\right) \cdot a\\
            t_2 := \frac{\left(\left(x + y\right) \cdot z + t\_1\right) - y \cdot b}{\left(x + t\right) + y}\\
            \mathbf{if}\;t\_2 \leq -5 \cdot 10^{-18} \lor \neg \left(t\_2 \leq 4 \cdot 10^{+255}\right):\\
            \;\;\;\;\left(z + a\right) - \frac{y}{y + x} \cdot b\\
            
            \mathbf{else}:\\
            \;\;\;\;\frac{\mathsf{fma}\left(y + x, z, t\_1\right)}{\left(y + x\right) + t}\\
            
            
            \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)) < -5.00000000000000036e-18 or 3.99999999999999995e255 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y))

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

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

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

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

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

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

                if -5.00000000000000036e-18 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 3.99999999999999995e255

                1. Initial program 98.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 b around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(y + x, z, \left(t + y\right) \cdot a\right)}{\left(y + x\right) + t}} \]
              8. Recombined 2 regimes into one program.
              9. Final simplification83.1%

                \[\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^{-18} \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 4 \cdot 10^{+255}\right):\\ \;\;\;\;\left(z + a\right) - \frac{y}{y + x} \cdot b\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(y + x, z, \left(t + y\right) \cdot a\right)}{\left(y + x\right) + t}\\ \end{array} \]
              10. Add Preprocessing

              Alternative 5: 70.3% 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 -5 \cdot 10^{-18} \lor \neg \left(t\_1 \leq 4 \cdot 10^{-31}\right):\\ \;\;\;\;\left(z + a\right) - \frac{y}{y + x} \cdot b\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(y + x, z, t \cdot a\right)}{\left(y + x\right) + t}\\ \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 -5e-18) (not (<= t_1 4e-31)))
                   (- (+ z a) (* (/ y (+ y x)) b))
                   (/ (fma (+ y x) z (* t a)) (+ (+ y x) t)))))
              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 <= -5e-18) || !(t_1 <= 4e-31)) {
              		tmp = (z + a) - ((y / (y + x)) * b);
              	} else {
              		tmp = fma((y + x), z, (t * a)) / ((y + x) + t);
              	}
              	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 <= -5e-18) || !(t_1 <= 4e-31))
              		tmp = Float64(Float64(z + a) - Float64(Float64(y / Float64(y + x)) * b));
              	else
              		tmp = Float64(fma(Float64(y + x), z, Float64(t * a)) / Float64(Float64(y + x) + t));
              	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, -5e-18], N[Not[LessEqual[t$95$1, 4e-31]], $MachinePrecision]], N[(N[(z + a), $MachinePrecision] - N[(N[(y / N[(y + x), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], N[(N[(N[(y + x), $MachinePrecision] * z + N[(t * a), $MachinePrecision]), $MachinePrecision] / N[(N[(y + x), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision]]]
              
              \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 -5 \cdot 10^{-18} \lor \neg \left(t\_1 \leq 4 \cdot 10^{-31}\right):\\
              \;\;\;\;\left(z + a\right) - \frac{y}{y + x} \cdot b\\
              
              \mathbf{else}:\\
              \;\;\;\;\frac{\mathsf{fma}\left(y + x, z, t \cdot a\right)}{\left(y + x\right) + t}\\
              
              
              \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)) < -5.00000000000000036e-18 or 4e-31 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y))

                1. Initial program 47.7%

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

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

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

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

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

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

                  if -5.00000000000000036e-18 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 4e-31

                  1. Initial program 97.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 b around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \frac{\mathsf{fma}\left(y + x, z, t \cdot a\right)}{\left(y + x\right) + t} \]
                  8. Recombined 2 regimes into one program.
                  9. Final simplification76.8%

                    \[\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^{-18} \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 4 \cdot 10^{-31}\right):\\ \;\;\;\;\left(z + a\right) - \frac{y}{y + x} \cdot b\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(y + x, z, t \cdot a\right)}{\left(y + x\right) + t}\\ \end{array} \]
                  10. Add Preprocessing

                  Alternative 6: 69.5% accurate, 0.4× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y}\\ \mathbf{if}\;t\_1 \leq -5 \cdot 10^{-18} \lor \neg \left(t\_1 \leq 2 \cdot 10^{-33}\right):\\ \;\;\;\;\left(z + a\right) - \frac{y}{y + x} \cdot b\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(a, t, z \cdot x\right)}{t + x}\\ \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 -5e-18) (not (<= t_1 2e-33)))
                       (- (+ z a) (* (/ y (+ y x)) b))
                       (/ (fma a t (* z x)) (+ t x)))))
                  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 <= -5e-18) || !(t_1 <= 2e-33)) {
                  		tmp = (z + a) - ((y / (y + x)) * b);
                  	} else {
                  		tmp = fma(a, t, (z * x)) / (t + x);
                  	}
                  	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 <= -5e-18) || !(t_1 <= 2e-33))
                  		tmp = Float64(Float64(z + a) - Float64(Float64(y / Float64(y + x)) * b));
                  	else
                  		tmp = Float64(fma(a, t, Float64(z * x)) / Float64(t + x));
                  	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, -5e-18], N[Not[LessEqual[t$95$1, 2e-33]], $MachinePrecision]], N[(N[(z + a), $MachinePrecision] - N[(N[(y / N[(y + x), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], N[(N[(a * t + N[(z * x), $MachinePrecision]), $MachinePrecision] / N[(t + x), $MachinePrecision]), $MachinePrecision]]]
                  
                  \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 -5 \cdot 10^{-18} \lor \neg \left(t\_1 \leq 2 \cdot 10^{-33}\right):\\
                  \;\;\;\;\left(z + a\right) - \frac{y}{y + x} \cdot b\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;\frac{\mathsf{fma}\left(a, t, z \cdot x\right)}{t + x}\\
                  
                  
                  \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)) < -5.00000000000000036e-18 or 2.0000000000000001e-33 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y))

                    1. Initial program 48.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 t around 0

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

                        \[\leadsto \color{blue}{\left(z + \left(t \cdot \left(\left(\frac{a}{x + y} + \frac{b \cdot y}{{\left(x + y\right)}^{2}}\right) - \left(\frac{z}{x + y} + \frac{a \cdot y}{{\left(x + y\right)}^{2}}\right)\right) + \frac{a \cdot y}{x + y}\right)\right) - \frac{b \cdot y}{x + y}} \]
                    5. Applied rewrites75.0%

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

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

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

                      if -5.00000000000000036e-18 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 2.0000000000000001e-33

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

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

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

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

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

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

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

                        \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(a, t, z \cdot x\right)}{t + x}} \]
                    8. Recombined 2 regimes into one program.
                    9. Final simplification76.0%

                      \[\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^{-18} \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^{-33}\right):\\ \;\;\;\;\left(z + a\right) - \frac{y}{y + x} \cdot b\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(a, t, z \cdot x\right)}{t + x}\\ \end{array} \]
                    10. Add Preprocessing

                    Alternative 7: 58.6% accurate, 1.3× speedup?

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

                      1. Initial program 42.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 \color{blue}{\left(a + z\right) - b} \]
                        2. lower-+.f6475.9

                          \[\leadsto \color{blue}{\left(a + z\right)} - b \]
                      5. Applied rewrites75.9%

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

                      if -1.02e39 < y < 2.7e-72

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

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

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

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

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

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

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

                            \[\leadsto \left(z + a\right) - \frac{y}{x} \cdot b \]
                        4. Recombined 2 regimes into one program.
                        5. Final simplification64.9%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.02 \cdot 10^{+39} \lor \neg \left(y \leq 2.7 \cdot 10^{-72}\right):\\ \;\;\;\;\left(a + z\right) - b\\ \mathbf{else}:\\ \;\;\;\;\left(z + a\right) - \frac{y}{x} \cdot b\\ \end{array} \]
                        6. Add Preprocessing

                        Alternative 8: 65.3% accurate, 1.4× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq 4.3 \cdot 10^{+191}:\\ \;\;\;\;\left(z + a\right) - \frac{y}{y + x} \cdot b\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{a - z}{x}, t, z\right)\\ \end{array} \end{array} \]
                        (FPCore (x y z t a b)
                         :precision binary64
                         (if (<= x 4.3e+191) (- (+ z a) (* (/ y (+ y x)) b)) (fma (/ (- a z) x) t z)))
                        double code(double x, double y, double z, double t, double a, double b) {
                        	double tmp;
                        	if (x <= 4.3e+191) {
                        		tmp = (z + a) - ((y / (y + x)) * b);
                        	} else {
                        		tmp = fma(((a - z) / x), t, z);
                        	}
                        	return tmp;
                        }
                        
                        function code(x, y, z, t, a, b)
                        	tmp = 0.0
                        	if (x <= 4.3e+191)
                        		tmp = Float64(Float64(z + a) - Float64(Float64(y / Float64(y + x)) * b));
                        	else
                        		tmp = fma(Float64(Float64(a - z) / x), t, z);
                        	end
                        	return tmp
                        end
                        
                        code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, 4.3e+191], N[(N[(z + a), $MachinePrecision] - N[(N[(y / N[(y + x), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], N[(N[(N[(a - z), $MachinePrecision] / x), $MachinePrecision] * t + z), $MachinePrecision]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        \mathbf{if}\;x \leq 4.3 \cdot 10^{+191}:\\
                        \;\;\;\;\left(z + a\right) - \frac{y}{y + x} \cdot b\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;\mathsf{fma}\left(\frac{a - z}{x}, t, z\right)\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 2 regimes
                        2. if x < 4.2999999999999998e191

                          1. Initial program 60.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 t around 0

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

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

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

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

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

                            if 4.2999999999999998e191 < x

                            1. Initial program 40.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 t around 0

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

                                \[\leadsto \color{blue}{\left(z + \left(t \cdot \left(\left(\frac{a}{x + y} + \frac{b \cdot y}{{\left(x + y\right)}^{2}}\right) - \left(\frac{z}{x + y} + \frac{a \cdot y}{{\left(x + y\right)}^{2}}\right)\right) + \frac{a \cdot y}{x + y}\right)\right) - \frac{b \cdot y}{x + y}} \]
                            5. Applied rewrites95.8%

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

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

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

                            Alternative 9: 58.7% accurate, 1.7× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq 1.65 \cdot 10^{+140}:\\ \;\;\;\;\left(a + z\right) - b\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{a - z}{x}, t, z\right)\\ \end{array} \end{array} \]
                            (FPCore (x y z t a b)
                             :precision binary64
                             (if (<= x 1.65e+140) (- (+ a z) b) (fma (/ (- a z) x) t z)))
                            double code(double x, double y, double z, double t, double a, double b) {
                            	double tmp;
                            	if (x <= 1.65e+140) {
                            		tmp = (a + z) - b;
                            	} else {
                            		tmp = fma(((a - z) / x), t, z);
                            	}
                            	return tmp;
                            }
                            
                            function code(x, y, z, t, a, b)
                            	tmp = 0.0
                            	if (x <= 1.65e+140)
                            		tmp = Float64(Float64(a + z) - b);
                            	else
                            		tmp = fma(Float64(Float64(a - z) / x), t, z);
                            	end
                            	return tmp
                            end
                            
                            code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, 1.65e+140], N[(N[(a + z), $MachinePrecision] - b), $MachinePrecision], N[(N[(N[(a - z), $MachinePrecision] / x), $MachinePrecision] * t + z), $MachinePrecision]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            \mathbf{if}\;x \leq 1.65 \cdot 10^{+140}:\\
                            \;\;\;\;\left(a + z\right) - b\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;\mathsf{fma}\left(\frac{a - z}{x}, t, z\right)\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 2 regimes
                            2. if x < 1.6500000000000001e140

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

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

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

                                  \[\leadsto \color{blue}{\left(a + z\right)} - b \]
                              5. Applied rewrites59.9%

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

                              if 1.6500000000000001e140 < x

                              1. Initial program 49.9%

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

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

                                  \[\leadsto \color{blue}{\left(z + \left(t \cdot \left(\left(\frac{a}{x + y} + \frac{b \cdot y}{{\left(x + y\right)}^{2}}\right) - \left(\frac{z}{x + y} + \frac{a \cdot y}{{\left(x + y\right)}^{2}}\right)\right) + \frac{a \cdot y}{x + y}\right)\right) - \frac{b \cdot y}{x + y}} \]
                              5. Applied rewrites94.5%

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

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

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

                              Alternative 10: 48.5% accurate, 2.8× speedup?

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

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

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

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

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

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

                                  \[\leadsto z - \color{blue}{b} \]
                                7. Step-by-step derivation
                                  1. Applied rewrites65.4%

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

                                  if -1.4e83 < z < 7.2000000000000004e111

                                  1. Initial program 70.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 \color{blue}{\left(a + z\right) - b} \]
                                    2. lower-+.f6451.8

                                      \[\leadsto \color{blue}{\left(a + z\right)} - b \]
                                  5. Applied rewrites51.8%

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

                                    \[\leadsto a - \color{blue}{b} \]
                                  7. Step-by-step derivation
                                    1. Applied rewrites47.2%

                                      \[\leadsto a - \color{blue}{b} \]
                                  8. Recombined 2 regimes into one program.
                                  9. Final simplification53.8%

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

                                  Alternative 11: 56.3% accurate, 3.5× speedup?

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

                                    1. Initial program 65.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto -1 \cdot \color{blue}{\left(-1 \cdot a + -1 \cdot z\right)} \]
                                    7. Step-by-step derivation
                                      1. Applied rewrites59.5%

                                        \[\leadsto --1 \cdot \left(z + a\right) \]

                                      if 1.75e-71 < y

                                      1. Initial program 44.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 \color{blue}{\left(a + z\right) - b} \]
                                        2. lower-+.f6469.4

                                          \[\leadsto \color{blue}{\left(a + z\right)} - b \]
                                      5. Applied rewrites69.4%

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

                                      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq 1.75 \cdot 10^{-71}:\\ \;\;\;\;z + a\\ \mathbf{else}:\\ \;\;\;\;\left(a + z\right) - b\\ \end{array} \]
                                    10. Add Preprocessing

                                    Alternative 12: 56.0% accurate, 6.4× speedup?

                                    \[\begin{array}{l} \\ \left(a + z\right) - b \end{array} \]
                                    (FPCore (x y z t a b) :precision binary64 (- (+ a z) b))
                                    double code(double x, double y, double z, double t, double a, double b) {
                                    	return (a + z) - b;
                                    }
                                    
                                    module fmin_fmax_functions
                                        implicit none
                                        private
                                        public fmax
                                        public fmin
                                    
                                        interface fmax
                                            module procedure fmax88
                                            module procedure fmax44
                                            module procedure fmax84
                                            module procedure fmax48
                                        end interface
                                        interface fmin
                                            module procedure fmin88
                                            module procedure fmin44
                                            module procedure fmin84
                                            module procedure fmin48
                                        end interface
                                    contains
                                        real(8) function fmax88(x, y) result (res)
                                            real(8), intent (in) :: x
                                            real(8), intent (in) :: y
                                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                        end function
                                        real(4) function fmax44(x, y) result (res)
                                            real(4), intent (in) :: x
                                            real(4), intent (in) :: y
                                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                        end function
                                        real(8) function fmax84(x, y) result(res)
                                            real(8), intent (in) :: x
                                            real(4), intent (in) :: y
                                            res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                        end function
                                        real(8) function fmax48(x, y) result(res)
                                            real(4), intent (in) :: x
                                            real(8), intent (in) :: y
                                            res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                        end function
                                        real(8) function fmin88(x, y) result (res)
                                            real(8), intent (in) :: x
                                            real(8), intent (in) :: y
                                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                        end function
                                        real(4) function fmin44(x, y) result (res)
                                            real(4), intent (in) :: x
                                            real(4), intent (in) :: y
                                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                        end function
                                        real(8) function fmin84(x, y) result(res)
                                            real(8), intent (in) :: x
                                            real(4), intent (in) :: y
                                            res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                        end function
                                        real(8) function fmin48(x, y) result(res)
                                            real(4), intent (in) :: x
                                            real(8), intent (in) :: y
                                            res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                        end function
                                    end module
                                    
                                    real(8) function code(x, y, z, t, a, b)
                                    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 + z) - b
                                    end function
                                    
                                    public static double code(double x, double y, double z, double t, double a, double b) {
                                    	return (a + z) - b;
                                    }
                                    
                                    def code(x, y, z, t, a, b):
                                    	return (a + z) - b
                                    
                                    function code(x, y, z, t, a, b)
                                    	return Float64(Float64(a + z) - b)
                                    end
                                    
                                    function tmp = code(x, y, z, t, a, b)
                                    	tmp = (a + z) - b;
                                    end
                                    
                                    code[x_, y_, z_, t_, a_, b_] := N[(N[(a + z), $MachinePrecision] - b), $MachinePrecision]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \left(a + z\right) - b
                                    \end{array}
                                    
                                    Derivation
                                    1. Initial program 58.9%

                                      \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
                                    2. 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 \color{blue}{\left(a + z\right) - b} \]
                                      2. lower-+.f6458.9

                                        \[\leadsto \color{blue}{\left(a + z\right)} - b \]
                                    5. Applied rewrites58.9%

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

                                    Alternative 13: 37.4% accurate, 11.3× speedup?

                                    \[\begin{array}{l} \\ a - b \end{array} \]
                                    (FPCore (x y z t a b) :precision binary64 (- a b))
                                    double code(double x, double y, double z, double t, double a, double b) {
                                    	return a - b;
                                    }
                                    
                                    module fmin_fmax_functions
                                        implicit none
                                        private
                                        public fmax
                                        public fmin
                                    
                                        interface fmax
                                            module procedure fmax88
                                            module procedure fmax44
                                            module procedure fmax84
                                            module procedure fmax48
                                        end interface
                                        interface fmin
                                            module procedure fmin88
                                            module procedure fmin44
                                            module procedure fmin84
                                            module procedure fmin48
                                        end interface
                                    contains
                                        real(8) function fmax88(x, y) result (res)
                                            real(8), intent (in) :: x
                                            real(8), intent (in) :: y
                                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                        end function
                                        real(4) function fmax44(x, y) result (res)
                                            real(4), intent (in) :: x
                                            real(4), intent (in) :: y
                                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                        end function
                                        real(8) function fmax84(x, y) result(res)
                                            real(8), intent (in) :: x
                                            real(4), intent (in) :: y
                                            res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                        end function
                                        real(8) function fmax48(x, y) result(res)
                                            real(4), intent (in) :: x
                                            real(8), intent (in) :: y
                                            res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                        end function
                                        real(8) function fmin88(x, y) result (res)
                                            real(8), intent (in) :: x
                                            real(8), intent (in) :: y
                                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                        end function
                                        real(4) function fmin44(x, y) result (res)
                                            real(4), intent (in) :: x
                                            real(4), intent (in) :: y
                                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                        end function
                                        real(8) function fmin84(x, y) result(res)
                                            real(8), intent (in) :: x
                                            real(4), intent (in) :: y
                                            res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                        end function
                                        real(8) function fmin48(x, y) result(res)
                                            real(4), intent (in) :: x
                                            real(8), intent (in) :: y
                                            res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                        end function
                                    end module
                                    
                                    real(8) function code(x, y, z, t, a, b)
                                    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 - b
                                    end function
                                    
                                    public static double code(double x, double y, double z, double t, double a, double b) {
                                    	return a - b;
                                    }
                                    
                                    def code(x, y, z, t, a, b):
                                    	return a - b
                                    
                                    function code(x, y, z, t, a, b)
                                    	return Float64(a - b)
                                    end
                                    
                                    function tmp = code(x, y, z, t, a, b)
                                    	tmp = a - b;
                                    end
                                    
                                    code[x_, y_, z_, t_, a_, b_] := N[(a - b), $MachinePrecision]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    a - b
                                    \end{array}
                                    
                                    Derivation
                                    1. Initial program 58.9%

                                      \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
                                    2. 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 \color{blue}{\left(a + z\right) - b} \]
                                      2. lower-+.f6458.9

                                        \[\leadsto \color{blue}{\left(a + z\right)} - b \]
                                    5. Applied rewrites58.9%

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

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

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

                                      Alternative 14: 13.6% accurate, 15.0× speedup?

                                      \[\begin{array}{l} \\ -b \end{array} \]
                                      (FPCore (x y z t a b) :precision binary64 (- b))
                                      double code(double x, double y, double z, double t, double a, double b) {
                                      	return -b;
                                      }
                                      
                                      module fmin_fmax_functions
                                          implicit none
                                          private
                                          public fmax
                                          public fmin
                                      
                                          interface fmax
                                              module procedure fmax88
                                              module procedure fmax44
                                              module procedure fmax84
                                              module procedure fmax48
                                          end interface
                                          interface fmin
                                              module procedure fmin88
                                              module procedure fmin44
                                              module procedure fmin84
                                              module procedure fmin48
                                          end interface
                                      contains
                                          real(8) function fmax88(x, y) result (res)
                                              real(8), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                          end function
                                          real(4) function fmax44(x, y) result (res)
                                              real(4), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                          end function
                                          real(8) function fmax84(x, y) result(res)
                                              real(8), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                          end function
                                          real(8) function fmax48(x, y) result(res)
                                              real(4), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                          end function
                                          real(8) function fmin88(x, y) result (res)
                                              real(8), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                          end function
                                          real(4) function fmin44(x, y) result (res)
                                              real(4), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                          end function
                                          real(8) function fmin84(x, y) result(res)
                                              real(8), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                          end function
                                          real(8) function fmin48(x, y) result(res)
                                              real(4), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                          end function
                                      end module
                                      
                                      real(8) function code(x, y, z, t, a, b)
                                      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 = -b
                                      end function
                                      
                                      public static double code(double x, double y, double z, double t, double a, double b) {
                                      	return -b;
                                      }
                                      
                                      def code(x, y, z, t, a, b):
                                      	return -b
                                      
                                      function code(x, y, z, t, a, b)
                                      	return Float64(-b)
                                      end
                                      
                                      function tmp = code(x, y, z, t, a, b)
                                      	tmp = -b;
                                      end
                                      
                                      code[x_, y_, z_, t_, a_, b_] := (-b)
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      -b
                                      \end{array}
                                      
                                      Derivation
                                      1. Initial program 58.9%

                                        \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
                                      2. 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 \color{blue}{\left(a + z\right) - b} \]
                                        2. lower-+.f6458.9

                                          \[\leadsto \color{blue}{\left(a + z\right)} - b \]
                                      5. Applied rewrites58.9%

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

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

                                          \[\leadsto a - \color{blue}{b} \]
                                        2. Taylor expanded in a around 0

                                          \[\leadsto -1 \cdot b \]
                                        3. Step-by-step derivation
                                          1. Applied rewrites11.3%

                                            \[\leadsto -b \]
                                          2. Add Preprocessing

                                          Developer Target 1: 82.4% 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 2024363 
                                          (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)))