Statistics.Distribution.Beta:$centropy from math-functions-0.1.5.2

Percentage Accurate: 95.3% → 97.5%
Time: 6.2s
Alternatives: 20
Speedup: 1.1×

Specification

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

\\
\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b
\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 20 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: 95.3% accurate, 1.0× speedup?

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

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

Alternative 1: 97.5% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \mathsf{fma}\left(t - 1, a, \mathsf{fma}\left(z, y, -z\right)\right)\right) \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (fma (- (+ t y) 2.0) b (- x (fma (- t 1.0) a (fma z y (- z))))))
double code(double x, double y, double z, double t, double a, double b) {
	return fma(((t + y) - 2.0), b, (x - fma((t - 1.0), a, fma(z, y, -z))));
}
function code(x, y, z, t, a, b)
	return fma(Float64(Float64(t + y) - 2.0), b, Float64(x - fma(Float64(t - 1.0), a, fma(z, y, Float64(-z)))))
end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision] * b + N[(x - N[(N[(t - 1.0), $MachinePrecision] * a + N[(z * y + (-z)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\mathsf{fma}\left(\left(t + y\right) - 2, b, x - \mathsf{fma}\left(t - 1, a, \mathsf{fma}\left(z, y, -z\right)\right)\right)
\end{array}
Derivation
  1. Initial program 96.1%

    \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
  2. Add Preprocessing
  3. Step-by-step derivation
    1. lift-+.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) \]
    16. associate--l-N/A

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

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

      \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \left(z \cdot \left(y - 1\right) + \color{blue}{a \cdot \left(t - 1\right)}\right)\right) \]
  4. Applied rewrites97.6%

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

    \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \mathsf{fma}\left(t - 1, a, \color{blue}{-1 \cdot z + y \cdot z}\right)\right) \]
  6. Step-by-step derivation
    1. +-commutativeN/A

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

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

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

      \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \mathsf{fma}\left(t - 1, a, \mathsf{fma}\left(z, y, \mathsf{neg}\left(z\right)\right)\right)\right) \]
    5. lower-neg.f6497.7

      \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \mathsf{fma}\left(t - 1, a, \mathsf{fma}\left(z, y, -z\right)\right)\right) \]
  7. Applied rewrites97.7%

    \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \mathsf{fma}\left(t - 1, a, \color{blue}{\mathsf{fma}\left(z, y, -z\right)}\right)\right) \]
  8. Add Preprocessing

Alternative 2: 85.1% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -1.15 \cdot 10^{+17}:\\ \;\;\;\;\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a\\ \mathbf{elif}\;b \leq 1.12 \cdot 10^{+52}:\\ \;\;\;\;x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;a + \left(\left(y + t\right) - 2\right) \cdot b\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<= b -1.15e+17)
   (- (fma (- (+ t y) 2.0) b x) (* (- t 1.0) a))
   (if (<= b 1.12e+52)
     (- x (fma (- t 1.0) a (* (- y 1.0) z)))
     (+ a (* (- (+ y t) 2.0) b)))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (b <= -1.15e+17) {
		tmp = fma(((t + y) - 2.0), b, x) - ((t - 1.0) * a);
	} else if (b <= 1.12e+52) {
		tmp = x - fma((t - 1.0), a, ((y - 1.0) * z));
	} else {
		tmp = a + (((y + t) - 2.0) * b);
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (b <= -1.15e+17)
		tmp = Float64(fma(Float64(Float64(t + y) - 2.0), b, x) - Float64(Float64(t - 1.0) * a));
	elseif (b <= 1.12e+52)
		tmp = Float64(x - fma(Float64(t - 1.0), a, Float64(Float64(y - 1.0) * z)));
	else
		tmp = Float64(a + Float64(Float64(Float64(y + t) - 2.0) * b));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.15e+17], N[(N[(N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision] * b + x), $MachinePrecision] - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.12e+52], N[(x - N[(N[(t - 1.0), $MachinePrecision] * a + N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.15 \cdot 10^{+17}:\\
\;\;\;\;\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a\\

\mathbf{elif}\;b \leq 1.12 \cdot 10^{+52}:\\
\;\;\;\;x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\\

\mathbf{else}:\\
\;\;\;\;a + \left(\left(y + t\right) - 2\right) \cdot b\\


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

    1. Initial program 93.8%

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

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

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

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

        \[\leadsto \left(\left(\left(t + y\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
      4. +-commutativeN/A

        \[\leadsto \left(\left(\left(y + t\right) - 2\right) \cdot b + x\right) - a \cdot \left(t - 1\right) \]
      5. lower-fma.f64N/A

        \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - \color{blue}{a} \cdot \left(t - 1\right) \]
      6. lift--.f64N/A

        \[\leadsto \mathsf{fma}\left(\left(y + t\right) - 2, b, x\right) - a \cdot \left(t - 1\right) \]
      7. +-commutativeN/A

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

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

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
      10. lift-*.f64N/A

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot \color{blue}{a} \]
      11. lift--.f6489.5

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(t - 1\right) \cdot a \]
    5. Applied rewrites89.5%

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

    if -1.15e17 < b < 1.12000000000000002e52

    1. Initial program 99.2%

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

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

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

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

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

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

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

        \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
      7. lift--.f6490.9

        \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
    5. Applied rewrites90.9%

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

    if 1.12000000000000002e52 < b

    1. Initial program 90.5%

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

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

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

        \[\leadsto \left(1 - t\right) \cdot \color{blue}{a} + \left(\left(y + t\right) - 2\right) \cdot b \]
      3. lower--.f6484.9

        \[\leadsto \left(1 - t\right) \cdot a + \left(\left(y + t\right) - 2\right) \cdot b \]
    5. Applied rewrites84.9%

      \[\leadsto \color{blue}{\left(1 - t\right) \cdot a} + \left(\left(y + t\right) - 2\right) \cdot b \]
    6. Taylor expanded in t around 0

      \[\leadsto a + \left(\left(y + t\right) - 2\right) \cdot b \]
    7. Step-by-step derivation
      1. Applied rewrites90.5%

        \[\leadsto a + \left(\left(y + t\right) - 2\right) \cdot b \]
    8. Recombined 3 regimes into one program.
    9. Add Preprocessing

    Alternative 3: 84.4% accurate, 1.1× speedup?

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

      1. Initial program 93.8%

        \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
      2. Add Preprocessing
      3. Step-by-step derivation
        1. lift-+.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, \left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) \]
        16. associate--l-N/A

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

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

          \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \left(z \cdot \left(y - 1\right) + \color{blue}{a \cdot \left(t - 1\right)}\right)\right) \]
      4. Applied rewrites96.9%

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

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x - \color{blue}{a \cdot t}\right) \]
      6. Step-by-step derivation
        1. lower-*.f6486.4

          \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x - a \cdot \color{blue}{t}\right) \]
      7. Applied rewrites86.4%

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

      if -7e19 < b < 1.12000000000000002e52

      1. Initial program 99.2%

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

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

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

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

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

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

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

          \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
        7. lift--.f6490.9

          \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
      5. Applied rewrites90.9%

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

      if 1.12000000000000002e52 < b

      1. Initial program 90.5%

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

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

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

          \[\leadsto \left(1 - t\right) \cdot \color{blue}{a} + \left(\left(y + t\right) - 2\right) \cdot b \]
        3. lower--.f6484.9

          \[\leadsto \left(1 - t\right) \cdot a + \left(\left(y + t\right) - 2\right) \cdot b \]
      5. Applied rewrites84.9%

        \[\leadsto \color{blue}{\left(1 - t\right) \cdot a} + \left(\left(y + t\right) - 2\right) \cdot b \]
      6. Taylor expanded in t around 0

        \[\leadsto a + \left(\left(y + t\right) - 2\right) \cdot b \]
      7. Step-by-step derivation
        1. Applied rewrites90.5%

          \[\leadsto a + \left(\left(y + t\right) - 2\right) \cdot b \]
      8. Recombined 3 regimes into one program.
      9. Add Preprocessing

      Alternative 4: 83.6% accurate, 1.1× speedup?

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

        1. Initial program 92.7%

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

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

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

          if -8.50000000000000033e118 < b < 1.12000000000000002e52

          1. Initial program 98.7%

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

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

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

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

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

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

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

              \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
            7. lift--.f6486.9

              \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
          5. Applied rewrites86.9%

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

          if 1.12000000000000002e52 < b

          1. Initial program 90.5%

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

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

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

              \[\leadsto \left(1 - t\right) \cdot \color{blue}{a} + \left(\left(y + t\right) - 2\right) \cdot b \]
            3. lower--.f6484.9

              \[\leadsto \left(1 - t\right) \cdot a + \left(\left(y + t\right) - 2\right) \cdot b \]
          5. Applied rewrites84.9%

            \[\leadsto \color{blue}{\left(1 - t\right) \cdot a} + \left(\left(y + t\right) - 2\right) \cdot b \]
          6. Taylor expanded in t around 0

            \[\leadsto a + \left(\left(y + t\right) - 2\right) \cdot b \]
          7. Step-by-step derivation
            1. Applied rewrites90.5%

              \[\leadsto a + \left(\left(y + t\right) - 2\right) \cdot b \]
          8. Recombined 3 regimes into one program.
          9. Add Preprocessing

          Alternative 5: 72.3% accurate, 1.4× speedup?

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

            1. Initial program 92.5%

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

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

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

              if -7e19 < b < 6.5999999999999998e38

              1. Initial program 99.2%

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

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

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

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

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

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

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

                  \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
                7. lift--.f6491.4

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

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

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

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

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

                  \[\leadsto x - \mathsf{fma}\left(z, y - 1, -1 \cdot a\right) \]
                4. mul-1-negN/A

                  \[\leadsto x - \mathsf{fma}\left(z, y - 1, \mathsf{neg}\left(a\right)\right) \]
                5. lower-neg.f6476.8

                  \[\leadsto x - \mathsf{fma}\left(z, y - 1, -a\right) \]
              8. Applied rewrites76.8%

                \[\leadsto x - \mathsf{fma}\left(z, \color{blue}{y - 1}, -a\right) \]
            5. Recombined 2 regimes into one program.
            6. Final simplification79.5%

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

            Alternative 6: 70.0% accurate, 1.4× speedup?

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

              1. Initial program 91.6%

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

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

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

                  \[\leadsto \left(\left(y + t\right) - 2\right) \cdot b \]
                3. lift--.f64N/A

                  \[\leadsto \left(\left(y + t\right) - 2\right) \cdot b \]
                4. lift-+.f64N/A

                  \[\leadsto \left(\left(y + t\right) - 2\right) \cdot b \]
                5. lift-*.f6480.8

                  \[\leadsto \left(\left(y + t\right) - 2\right) \cdot \color{blue}{b} \]
                6. lift-+.f64N/A

                  \[\leadsto \left(\left(y + t\right) - 2\right) \cdot b \]
                7. +-commutativeN/A

                  \[\leadsto \left(\left(t + y\right) - 2\right) \cdot b \]
                8. lower-+.f6480.8

                  \[\leadsto \left(\left(t + y\right) - 2\right) \cdot b \]
              5. Applied rewrites80.8%

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

              if -6.6e62 < b < 7.4999999999999999e38

              1. Initial program 99.3%

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

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

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

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

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

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

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

                  \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
                7. lift--.f6488.9

                  \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
              5. Applied rewrites88.9%

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

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

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

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

                  \[\leadsto x - \mathsf{fma}\left(z, y - 1, -1 \cdot a\right) \]
                4. mul-1-negN/A

                  \[\leadsto x - \mathsf{fma}\left(z, y - 1, \mathsf{neg}\left(a\right)\right) \]
                5. lower-neg.f6474.5

                  \[\leadsto x - \mathsf{fma}\left(z, y - 1, -a\right) \]
              8. Applied rewrites74.5%

                \[\leadsto x - \mathsf{fma}\left(z, \color{blue}{y - 1}, -a\right) \]
            3. Recombined 2 regimes into one program.
            4. Final simplification77.1%

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

            Alternative 7: 49.8% accurate, 1.4× speedup?

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

              1. Initial program 95.0%

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

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

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

                  \[\leadsto \left(b - z\right) \cdot \color{blue}{y} \]
                3. lower--.f6475.9

                  \[\leadsto \left(b - z\right) \cdot y \]
              5. Applied rewrites75.9%

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

              if -8.99999999999999923e37 < y < -9.8e-301

              1. Initial program 94.7%

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

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

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

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

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

                    \[\leadsto x + \left(t - 2\right) \cdot \color{blue}{b} \]
                  3. lower--.f6461.7

                    \[\leadsto x + \left(t - 2\right) \cdot b \]
                4. Applied rewrites61.7%

                  \[\leadsto x + \color{blue}{\left(t - 2\right) \cdot b} \]
                5. Taylor expanded in t around 0

                  \[\leadsto x + -2 \cdot b \]
                6. Step-by-step derivation
                  1. Applied rewrites38.7%

                    \[\leadsto x + -2 \cdot b \]

                  if -9.8e-301 < y < 7.99999999999999952e39

                  1. Initial program 98.7%

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

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

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

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

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

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

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

                      \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
                    7. lift--.f6471.4

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

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

                    \[\leadsto x - a \cdot \color{blue}{t} \]
                  7. Step-by-step derivation
                    1. lower-*.f6446.5

                      \[\leadsto x - a \cdot t \]
                  8. Applied rewrites46.5%

                    \[\leadsto x - a \cdot \color{blue}{t} \]
                7. Recombined 3 regimes into one program.
                8. Add Preprocessing

                Alternative 8: 51.3% accurate, 1.4× speedup?

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

                  1. Initial program 95.0%

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

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

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

                      \[\leadsto \left(b - z\right) \cdot \color{blue}{y} \]
                    3. lower--.f6475.2

                      \[\leadsto \left(b - z\right) \cdot y \]
                  5. Applied rewrites75.2%

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

                  if -4.80000000000000029e35 < y < 2.69999999999999991e-204

                  1. Initial program 95.1%

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

                    \[\leadsto \color{blue}{t \cdot \left(b - a\right)} \]
                  4. Step-by-step derivation
                    1. *-commutativeN/A

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

                      \[\leadsto \left(b - a\right) \cdot \color{blue}{t} \]
                    3. lower--.f6439.4

                      \[\leadsto \left(b - a\right) \cdot t \]
                  5. Applied rewrites39.4%

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

                  if 2.69999999999999991e-204 < y < 7.99999999999999952e39

                  1. Initial program 100.0%

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

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

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

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

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

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

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

                      \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
                    7. lift--.f6473.0

                      \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
                  5. Applied rewrites73.0%

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

                    \[\leadsto x - a \cdot \color{blue}{t} \]
                  7. Step-by-step derivation
                    1. lower-*.f6449.0

                      \[\leadsto x - a \cdot t \]
                  8. Applied rewrites49.0%

                    \[\leadsto x - a \cdot \color{blue}{t} \]
                3. Recombined 3 regimes into one program.
                4. Add Preprocessing

                Alternative 9: 72.2% accurate, 1.4× speedup?

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

                  1. Initial program 93.8%

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

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

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

                    if -7e19 < b < 6.5999999999999998e38

                    1. Initial program 99.2%

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

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

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

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

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

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

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

                        \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
                      7. lift--.f6491.4

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

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

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

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

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

                        \[\leadsto x - \mathsf{fma}\left(z, y - 1, -1 \cdot a\right) \]
                      4. mul-1-negN/A

                        \[\leadsto x - \mathsf{fma}\left(z, y - 1, \mathsf{neg}\left(a\right)\right) \]
                      5. lower-neg.f6476.8

                        \[\leadsto x - \mathsf{fma}\left(z, y - 1, -a\right) \]
                    8. Applied rewrites76.8%

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

                    if 6.5999999999999998e38 < b

                    1. Initial program 91.0%

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

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

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

                        \[\leadsto \left(1 - t\right) \cdot \color{blue}{a} + \left(\left(y + t\right) - 2\right) \cdot b \]
                      3. lower--.f6484.1

                        \[\leadsto \left(1 - t\right) \cdot a + \left(\left(y + t\right) - 2\right) \cdot b \]
                    5. Applied rewrites84.1%

                      \[\leadsto \color{blue}{\left(1 - t\right) \cdot a} + \left(\left(y + t\right) - 2\right) \cdot b \]
                    6. Taylor expanded in t around 0

                      \[\leadsto a + \left(\left(y + t\right) - 2\right) \cdot b \]
                    7. Step-by-step derivation
                      1. Applied rewrites87.8%

                        \[\leadsto a + \left(\left(y + t\right) - 2\right) \cdot b \]
                    8. Recombined 3 regimes into one program.
                    9. Add Preprocessing

                    Alternative 10: 63.1% accurate, 1.5× speedup?

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

                      1. Initial program 91.6%

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

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

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

                          \[\leadsto \left(\left(y + t\right) - 2\right) \cdot b \]
                        3. lift--.f64N/A

                          \[\leadsto \left(\left(y + t\right) - 2\right) \cdot b \]
                        4. lift-+.f64N/A

                          \[\leadsto \left(\left(y + t\right) - 2\right) \cdot b \]
                        5. lift-*.f6480.8

                          \[\leadsto \left(\left(y + t\right) - 2\right) \cdot \color{blue}{b} \]
                        6. lift-+.f64N/A

                          \[\leadsto \left(\left(y + t\right) - 2\right) \cdot b \]
                        7. +-commutativeN/A

                          \[\leadsto \left(\left(t + y\right) - 2\right) \cdot b \]
                        8. lower-+.f6480.8

                          \[\leadsto \left(\left(t + y\right) - 2\right) \cdot b \]
                      5. Applied rewrites80.8%

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

                      if -6.5000000000000003e62 < b < 6.5999999999999998e38

                      1. Initial program 99.3%

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

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

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

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

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

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

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

                          \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
                        7. lift--.f6488.9

                          \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
                      5. Applied rewrites88.9%

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

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

                          \[\leadsto x - z \cdot \left(y - \color{blue}{1}\right) \]
                        2. lift--.f6464.0

                          \[\leadsto x - z \cdot \left(y - 1\right) \]
                      8. Applied rewrites64.0%

                        \[\leadsto x - z \cdot \color{blue}{\left(y - 1\right)} \]
                    3. Recombined 2 regimes into one program.
                    4. Final simplification71.0%

                      \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -6.5 \cdot 10^{+62} \lor \neg \left(b \leq 6.6 \cdot 10^{+38}\right):\\ \;\;\;\;\left(\left(t + y\right) - 2\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;x - z \cdot \left(y - 1\right)\\ \end{array} \]
                    5. Add Preprocessing

                    Alternative 11: 61.9% accurate, 1.5× speedup?

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

                      1. Initial program 91.2%

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

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

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

                          \[\leadsto \left(\left(y + t\right) - 2\right) \cdot b \]
                        3. lift--.f64N/A

                          \[\leadsto \left(\left(y + t\right) - 2\right) \cdot b \]
                        4. lift-+.f64N/A

                          \[\leadsto \left(\left(y + t\right) - 2\right) \cdot b \]
                        5. lift-*.f6482.0

                          \[\leadsto \left(\left(y + t\right) - 2\right) \cdot \color{blue}{b} \]
                        6. lift-+.f64N/A

                          \[\leadsto \left(\left(y + t\right) - 2\right) \cdot b \]
                        7. +-commutativeN/A

                          \[\leadsto \left(\left(t + y\right) - 2\right) \cdot b \]
                        8. lower-+.f6482.0

                          \[\leadsto \left(\left(t + y\right) - 2\right) \cdot b \]
                      5. Applied rewrites82.0%

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

                      if -5.49999999999999976e89 < b < 6.5999999999999998e38

                      1. Initial program 99.3%

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

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

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

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

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

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

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

                          \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
                        7. lift--.f6488.0

                          \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
                      5. Applied rewrites88.0%

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

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

                          \[\leadsto x - a \cdot \left(t - \color{blue}{1}\right) \]
                        2. lift--.f6450.7

                          \[\leadsto x - a \cdot \left(t - 1\right) \]
                      8. Applied rewrites50.7%

                        \[\leadsto x - a \cdot \color{blue}{\left(t - 1\right)} \]
                    3. Recombined 2 regimes into one program.
                    4. Final simplification63.3%

                      \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -5.5 \cdot 10^{+89} \lor \neg \left(b \leq 6.6 \cdot 10^{+38}\right):\\ \;\;\;\;\left(\left(t + y\right) - 2\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;x - a \cdot \left(t - 1\right)\\ \end{array} \]
                    5. Add Preprocessing

                    Alternative 12: 56.0% accurate, 1.5× speedup?

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

                      1. Initial program 91.6%

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

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

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

                          \[\leadsto \left(\left(y + t\right) - 2\right) \cdot b \]
                        3. lift--.f64N/A

                          \[\leadsto \left(\left(y + t\right) - 2\right) \cdot b \]
                        4. lift-+.f64N/A

                          \[\leadsto \left(\left(y + t\right) - 2\right) \cdot b \]
                        5. lift-*.f6480.8

                          \[\leadsto \left(\left(y + t\right) - 2\right) \cdot \color{blue}{b} \]
                        6. lift-+.f64N/A

                          \[\leadsto \left(\left(y + t\right) - 2\right) \cdot b \]
                        7. +-commutativeN/A

                          \[\leadsto \left(\left(t + y\right) - 2\right) \cdot b \]
                        8. lower-+.f6480.8

                          \[\leadsto \left(\left(t + y\right) - 2\right) \cdot b \]
                      5. Applied rewrites80.8%

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

                      if -6e62 < b < 6.5999999999999998e38

                      1. Initial program 99.3%

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

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

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

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

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

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

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

                          \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
                        7. lift--.f6488.9

                          \[\leadsto x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right) \]
                      5. Applied rewrites88.9%

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

                        \[\leadsto x - y \cdot \color{blue}{z} \]
                      7. Step-by-step derivation
                        1. *-commutativeN/A

                          \[\leadsto x - z \cdot y \]
                        2. lift-*.f6447.0

                          \[\leadsto x - z \cdot y \]
                      8. Applied rewrites47.0%

                        \[\leadsto x - z \cdot \color{blue}{y} \]
                    3. Recombined 2 regimes into one program.
                    4. Final simplification61.2%

                      \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -6 \cdot 10^{+62} \lor \neg \left(b \leq 6.6 \cdot 10^{+38}\right):\\ \;\;\;\;\left(\left(t + y\right) - 2\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;x - z \cdot y\\ \end{array} \]
                    5. Add Preprocessing

                    Alternative 13: 50.7% accurate, 1.8× speedup?

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

                      1. Initial program 94.8%

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

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

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

                          \[\leadsto \left(b - z\right) \cdot \color{blue}{y} \]
                        3. lower--.f6476.8

                          \[\leadsto \left(b - z\right) \cdot y \]
                      5. Applied rewrites76.8%

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

                      if -4.80000000000000029e35 < y < 2.64999999999999998e73

                      1. Initial program 96.8%

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

                        \[\leadsto \color{blue}{t \cdot \left(b - a\right)} \]
                      4. Step-by-step derivation
                        1. *-commutativeN/A

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

                          \[\leadsto \left(b - a\right) \cdot \color{blue}{t} \]
                        3. lower--.f6438.7

                          \[\leadsto \left(b - a\right) \cdot t \]
                      5. Applied rewrites38.7%

                        \[\leadsto \color{blue}{\left(b - a\right) \cdot t} \]
                    3. Recombined 2 regimes into one program.
                    4. Final simplification53.0%

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

                    Alternative 14: 47.1% accurate, 1.8× speedup?

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

                      1. Initial program 94.0%

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

                        \[\leadsto \color{blue}{t \cdot \left(b - a\right)} \]
                      4. Step-by-step derivation
                        1. *-commutativeN/A

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

                          \[\leadsto \left(b - a\right) \cdot \color{blue}{t} \]
                        3. lower--.f6470.0

                          \[\leadsto \left(b - a\right) \cdot t \]
                      5. Applied rewrites70.0%

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

                      if -2.2499999999999999e104 < t < 6.9999999999999997e75

                      1. Initial program 97.4%

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

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

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

                          \[\leadsto \left(1 - y\right) \cdot \color{blue}{z} \]
                        3. lower--.f6434.0

                          \[\leadsto \left(1 - y\right) \cdot z \]
                      5. Applied rewrites34.0%

                        \[\leadsto \color{blue}{\left(1 - y\right) \cdot z} \]
                      6. Taylor expanded in y around 0

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

                          \[\leadsto -1 \cdot \left(y \cdot z\right) + z \]
                        2. mul-1-negN/A

                          \[\leadsto \left(\mathsf{neg}\left(y \cdot z\right)\right) + z \]
                        3. *-commutativeN/A

                          \[\leadsto \left(\mathsf{neg}\left(z \cdot y\right)\right) + z \]
                        4. distribute-lft-neg-inN/A

                          \[\leadsto \left(\mathsf{neg}\left(z\right)\right) \cdot y + z \]
                        5. mul-1-negN/A

                          \[\leadsto \left(-1 \cdot z\right) \cdot y + z \]
                        6. lower-fma.f64N/A

                          \[\leadsto \mathsf{fma}\left(-1 \cdot z, y, z\right) \]
                        7. mul-1-negN/A

                          \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(z\right), y, z\right) \]
                        8. lift-neg.f6434.0

                          \[\leadsto \mathsf{fma}\left(-z, y, z\right) \]
                      8. Applied rewrites34.0%

                        \[\leadsto \mathsf{fma}\left(-z, \color{blue}{y}, z\right) \]
                    3. Recombined 2 regimes into one program.
                    4. Final simplification48.2%

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

                    Alternative 15: 41.6% accurate, 1.8× speedup?

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

                      1. Initial program 94.8%

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

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

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

                          \[\leadsto \left(1 - y\right) \cdot \color{blue}{z} \]
                        3. lower--.f6453.1

                          \[\leadsto \left(1 - y\right) \cdot z \]
                      5. Applied rewrites53.1%

                        \[\leadsto \color{blue}{\left(1 - y\right) \cdot z} \]
                      6. Taylor expanded in y around 0

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

                          \[\leadsto -1 \cdot \left(y \cdot z\right) + z \]
                        2. mul-1-negN/A

                          \[\leadsto \left(\mathsf{neg}\left(y \cdot z\right)\right) + z \]
                        3. *-commutativeN/A

                          \[\leadsto \left(\mathsf{neg}\left(z \cdot y\right)\right) + z \]
                        4. distribute-lft-neg-inN/A

                          \[\leadsto \left(\mathsf{neg}\left(z\right)\right) \cdot y + z \]
                        5. mul-1-negN/A

                          \[\leadsto \left(-1 \cdot z\right) \cdot y + z \]
                        6. lower-fma.f64N/A

                          \[\leadsto \mathsf{fma}\left(-1 \cdot z, y, z\right) \]
                        7. mul-1-negN/A

                          \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(z\right), y, z\right) \]
                        8. lift-neg.f6453.2

                          \[\leadsto \mathsf{fma}\left(-z, y, z\right) \]
                      8. Applied rewrites53.2%

                        \[\leadsto \mathsf{fma}\left(-z, \color{blue}{y}, z\right) \]

                      if -9e14 < z < 1.4e-27

                      1. Initial program 97.5%

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

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

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

                          \[\leadsto \left(1 - t\right) \cdot \color{blue}{a} \]
                        3. lower--.f6434.1

                          \[\leadsto \left(1 - t\right) \cdot a \]
                      5. Applied rewrites34.1%

                        \[\leadsto \color{blue}{\left(1 - t\right) \cdot a} \]
                    3. Recombined 2 regimes into one program.
                    4. Final simplification44.1%

                      \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -9 \cdot 10^{+14} \lor \neg \left(z \leq 1.4 \cdot 10^{-27}\right):\\ \;\;\;\;\mathsf{fma}\left(-z, y, z\right)\\ \mathbf{else}:\\ \;\;\;\;\left(1 - t\right) \cdot a\\ \end{array} \]
                    5. Add Preprocessing

                    Alternative 16: 35.3% accurate, 1.8× speedup?

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

                      1. Initial program 90.8%

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

                        \[\leadsto \color{blue}{t \cdot \left(b - a\right)} \]
                      4. Step-by-step derivation
                        1. *-commutativeN/A

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

                          \[\leadsto \left(b - a\right) \cdot \color{blue}{t} \]
                        3. lower--.f6444.0

                          \[\leadsto \left(b - a\right) \cdot t \]
                      5. Applied rewrites44.0%

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

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

                          \[\leadsto b \cdot t \]

                        if -1.25000000000000003e63 < b < 7.1999999999999999e84

                        1. Initial program 99.3%

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

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

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

                            \[\leadsto \left(1 - y\right) \cdot \color{blue}{z} \]
                          3. lower--.f6440.7

                            \[\leadsto \left(1 - y\right) \cdot z \]
                        5. Applied rewrites40.7%

                          \[\leadsto \color{blue}{\left(1 - y\right) \cdot z} \]
                        6. Taylor expanded in y around 0

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

                            \[\leadsto -1 \cdot \left(y \cdot z\right) + z \]
                          2. mul-1-negN/A

                            \[\leadsto \left(\mathsf{neg}\left(y \cdot z\right)\right) + z \]
                          3. *-commutativeN/A

                            \[\leadsto \left(\mathsf{neg}\left(z \cdot y\right)\right) + z \]
                          4. distribute-lft-neg-inN/A

                            \[\leadsto \left(\mathsf{neg}\left(z\right)\right) \cdot y + z \]
                          5. mul-1-negN/A

                            \[\leadsto \left(-1 \cdot z\right) \cdot y + z \]
                          6. lower-fma.f64N/A

                            \[\leadsto \mathsf{fma}\left(-1 \cdot z, y, z\right) \]
                          7. mul-1-negN/A

                            \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(z\right), y, z\right) \]
                          8. lift-neg.f6440.7

                            \[\leadsto \mathsf{fma}\left(-z, y, z\right) \]
                        8. Applied rewrites40.7%

                          \[\leadsto \mathsf{fma}\left(-z, \color{blue}{y}, z\right) \]
                      8. Recombined 2 regimes into one program.
                      9. Final simplification40.9%

                        \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.25 \cdot 10^{+63} \lor \neg \left(b \leq 7.2 \cdot 10^{+84}\right):\\ \;\;\;\;b \cdot t\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-z, y, z\right)\\ \end{array} \]
                      10. Add Preprocessing

                      Alternative 17: 29.1% accurate, 1.8× speedup?

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

                        1. Initial program 94.9%

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

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

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

                            \[\leadsto \left(1 - y\right) \cdot \color{blue}{z} \]
                          3. lower--.f6448.8

                            \[\leadsto \left(1 - y\right) \cdot z \]
                        5. Applied rewrites48.8%

                          \[\leadsto \color{blue}{\left(1 - y\right) \cdot z} \]
                        6. Taylor expanded in y around inf

                          \[\leadsto \left(-1 \cdot y\right) \cdot z \]
                        7. Step-by-step derivation
                          1. mul-1-negN/A

                            \[\leadsto \left(\mathsf{neg}\left(y\right)\right) \cdot z \]
                          2. lower-neg.f6448.0

                            \[\leadsto \left(-y\right) \cdot z \]
                        8. Applied rewrites48.0%

                          \[\leadsto \left(-y\right) \cdot z \]

                        if -1.95e-5 < y < 7.00000000000000001e91

                        1. Initial program 96.8%

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

                          \[\leadsto \color{blue}{t \cdot \left(b - a\right)} \]
                        4. Step-by-step derivation
                          1. *-commutativeN/A

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

                            \[\leadsto \left(b - a\right) \cdot \color{blue}{t} \]
                          3. lower--.f6438.1

                            \[\leadsto \left(b - a\right) \cdot t \]
                        5. Applied rewrites38.1%

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

                          \[\leadsto b \cdot t \]
                        7. Step-by-step derivation
                          1. Applied rewrites27.6%

                            \[\leadsto b \cdot t \]
                        8. Recombined 2 regimes into one program.
                        9. Final simplification35.5%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.95 \cdot 10^{-5} \lor \neg \left(y \leq 7 \cdot 10^{+91}\right):\\ \;\;\;\;\left(-y\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;b \cdot t\\ \end{array} \]
                        10. Add Preprocessing

                        Alternative 18: 26.7% accurate, 2.1× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -2.8 \cdot 10^{+104} \lor \neg \left(t \leq 0.00055\right):\\ \;\;\;\;b \cdot t\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
                        (FPCore (x y z t a b)
                         :precision binary64
                         (if (or (<= t -2.8e+104) (not (<= t 0.00055))) (* b t) x))
                        double code(double x, double y, double z, double t, double a, double b) {
                        	double tmp;
                        	if ((t <= -2.8e+104) || !(t <= 0.00055)) {
                        		tmp = b * t;
                        	} else {
                        		tmp = x;
                        	}
                        	return tmp;
                        }
                        
                        module fmin_fmax_functions
                            implicit none
                            private
                            public fmax
                            public fmin
                        
                            interface fmax
                                module procedure fmax88
                                module procedure fmax44
                                module procedure fmax84
                                module procedure fmax48
                            end interface
                            interface fmin
                                module procedure fmin88
                                module procedure fmin44
                                module procedure fmin84
                                module procedure fmin48
                            end interface
                        contains
                            real(8) function fmax88(x, y) result (res)
                                real(8), intent (in) :: x
                                real(8), intent (in) :: y
                                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                            end function
                            real(4) function fmax44(x, y) result (res)
                                real(4), intent (in) :: x
                                real(4), intent (in) :: y
                                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                            end function
                            real(8) function fmax84(x, y) result(res)
                                real(8), intent (in) :: x
                                real(4), intent (in) :: y
                                res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                            end function
                            real(8) function fmax48(x, y) result(res)
                                real(4), intent (in) :: x
                                real(8), intent (in) :: y
                                res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                            end function
                            real(8) function fmin88(x, y) result (res)
                                real(8), intent (in) :: x
                                real(8), intent (in) :: y
                                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                            end function
                            real(4) function fmin44(x, y) result (res)
                                real(4), intent (in) :: x
                                real(4), intent (in) :: y
                                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                            end function
                            real(8) function fmin84(x, y) result(res)
                                real(8), intent (in) :: x
                                real(4), intent (in) :: y
                                res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                            end function
                            real(8) function fmin48(x, y) result(res)
                                real(4), intent (in) :: x
                                real(8), intent (in) :: y
                                res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                            end function
                        end module
                        
                        real(8) function code(x, y, z, t, a, b)
                        use fmin_fmax_functions
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            real(8), intent (in) :: z
                            real(8), intent (in) :: t
                            real(8), intent (in) :: a
                            real(8), intent (in) :: b
                            real(8) :: tmp
                            if ((t <= (-2.8d+104)) .or. (.not. (t <= 0.00055d0))) then
                                tmp = b * t
                            else
                                tmp = x
                            end if
                            code = tmp
                        end function
                        
                        public static double code(double x, double y, double z, double t, double a, double b) {
                        	double tmp;
                        	if ((t <= -2.8e+104) || !(t <= 0.00055)) {
                        		tmp = b * t;
                        	} else {
                        		tmp = x;
                        	}
                        	return tmp;
                        }
                        
                        def code(x, y, z, t, a, b):
                        	tmp = 0
                        	if (t <= -2.8e+104) or not (t <= 0.00055):
                        		tmp = b * t
                        	else:
                        		tmp = x
                        	return tmp
                        
                        function code(x, y, z, t, a, b)
                        	tmp = 0.0
                        	if ((t <= -2.8e+104) || !(t <= 0.00055))
                        		tmp = Float64(b * t);
                        	else
                        		tmp = x;
                        	end
                        	return tmp
                        end
                        
                        function tmp_2 = code(x, y, z, t, a, b)
                        	tmp = 0.0;
                        	if ((t <= -2.8e+104) || ~((t <= 0.00055)))
                        		tmp = b * t;
                        	else
                        		tmp = x;
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -2.8e+104], N[Not[LessEqual[t, 0.00055]], $MachinePrecision]], N[(b * t), $MachinePrecision], x]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        \mathbf{if}\;t \leq -2.8 \cdot 10^{+104} \lor \neg \left(t \leq 0.00055\right):\\
                        \;\;\;\;b \cdot t\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;x\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 2 regimes
                        2. if t < -2.8e104 or 5.50000000000000033e-4 < t

                          1. Initial program 93.7%

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

                            \[\leadsto \color{blue}{t \cdot \left(b - a\right)} \]
                          4. Step-by-step derivation
                            1. *-commutativeN/A

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

                              \[\leadsto \left(b - a\right) \cdot \color{blue}{t} \]
                            3. lower--.f6465.8

                              \[\leadsto \left(b - a\right) \cdot t \]
                          5. Applied rewrites65.8%

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

                            \[\leadsto b \cdot t \]
                          7. Step-by-step derivation
                            1. Applied rewrites43.0%

                              \[\leadsto b \cdot t \]

                            if -2.8e104 < t < 5.50000000000000033e-4

                            1. Initial program 97.9%

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

                              \[\leadsto \color{blue}{x} \]
                            4. Step-by-step derivation
                              1. Applied rewrites22.2%

                                \[\leadsto \color{blue}{x} \]
                            5. Recombined 2 regimes into one program.
                            6. Final simplification31.3%

                              \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -2.8 \cdot 10^{+104} \lor \neg \left(t \leq 0.00055\right):\\ \;\;\;\;b \cdot t\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
                            7. Add Preprocessing

                            Alternative 19: 21.3% accurate, 2.8× speedup?

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

                              1. Initial program 91.6%

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

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

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

                                  \[\leadsto \left(1 - y\right) \cdot \color{blue}{z} \]
                                3. lower--.f6468.7

                                  \[\leadsto \left(1 - y\right) \cdot z \]
                              5. Applied rewrites68.7%

                                \[\leadsto \color{blue}{\left(1 - y\right) \cdot z} \]
                              6. Taylor expanded in y around 0

                                \[\leadsto z \]
                              7. Step-by-step derivation
                                1. Applied rewrites24.2%

                                  \[\leadsto z \]

                                if -2.19999999999999993e130 < z < 9.00000000000000001e111

                                1. Initial program 98.2%

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

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

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

                                Alternative 20: 16.0% accurate, 37.0× speedup?

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

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

                                  \[\leadsto \color{blue}{x} \]
                                4. Step-by-step derivation
                                  1. Applied rewrites16.4%

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

                                  Reproduce

                                  ?
                                  herbie shell --seed 2025037 
                                  (FPCore (x y z t a b)
                                    :name "Statistics.Distribution.Beta:$centropy from math-functions-0.1.5.2"
                                    :precision binary64
                                    (+ (- (- x (* (- y 1.0) z)) (* (- t 1.0) a)) (* (- (+ y t) 2.0) b)))