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

Percentage Accurate: 95.4% → 97.6%
Time: 4.5s
Alternatives: 19
Speedup: 1.0×

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}

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 19 alternatives:

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

Initial Program: 95.4% 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.6% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(y - 1\right) \cdot z\\ t_2 := \left(\left(x - t\_1\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b\\ \mathbf{if}\;t\_2 \leq \infty:\\ \;\;\;\;t\_2\\ \mathbf{else}:\\ \;\;\;\;x - \mathsf{fma}\left(t - 1, a, t\_1\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (* (- y 1.0) z))
        (t_2 (+ (- (- x t_1) (* (- t 1.0) a)) (* (- (+ y t) 2.0) b))))
   (if (<= t_2 INFINITY) t_2 (- x (fma (- t 1.0) a t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (y - 1.0) * z;
	double t_2 = ((x - t_1) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
	double tmp;
	if (t_2 <= ((double) INFINITY)) {
		tmp = t_2;
	} else {
		tmp = x - fma((t - 1.0), a, t_1);
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(y - 1.0) * z)
	t_2 = Float64(Float64(Float64(x - t_1) - Float64(Float64(t - 1.0) * a)) + Float64(Float64(Float64(y + t) - 2.0) * b))
	tmp = 0.0
	if (t_2 <= Inf)
		tmp = t_2;
	else
		tmp = Float64(x - fma(Float64(t - 1.0), a, t_1));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x - t$95$1), $MachinePrecision] - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, Infinity], t$95$2, N[(x - N[(N[(t - 1.0), $MachinePrecision] * a + t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

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

\mathbf{else}:\\
\;\;\;\;x - \mathsf{fma}\left(t - 1, a, t\_1\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y #s(literal 1 binary64)) z)) (*.f64 (-.f64 t #s(literal 1 binary64)) a)) (*.f64 (-.f64 (+.f64 y t) #s(literal 2 binary64)) b)) < +inf.0

    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 \]

    if +inf.0 < (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y #s(literal 1 binary64)) z)) (*.f64 (-.f64 t #s(literal 1 binary64)) a)) (*.f64 (-.f64 (+.f64 y t) #s(literal 2 binary64)) b))

    1. Initial program 0.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. Taylor expanded in b around 0

      \[\leadsto \color{blue}{x - \left(a \cdot \left(t - 1\right) + z \cdot \left(y - 1\right)\right)} \]
    3. 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-*.f6447.8

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

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

Alternative 2: 96.6% accurate, 1.0× speedup?

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

\\
x + \left(\mathsf{fma}\left(b - a, t, \left(y - 2\right) \cdot b\right) - \mathsf{fma}\left(y - 1, z, -a\right)\right)
\end{array}
Derivation
  1. Initial program 95.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. Taylor expanded in t around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto x + \left(\mathsf{fma}\left(b - a, t, \left(y - 2\right) \cdot b\right) - \mathsf{fma}\left(y - 1, z, \mathsf{neg}\left(a\right)\right)\right) \]
    16. lower-neg.f6496.6

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

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

Alternative 3: 84.2% accurate, 1.0× speedup?

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

\\
\begin{array}{l}
t_1 := \left(y - 1\right) \cdot z\\
\mathbf{if}\;a \leq -1.05 \cdot 10^{+182}:\\
\;\;\;\;x - \mathsf{fma}\left(t - 1, a, t\_1\right)\\

\mathbf{elif}\;a \leq 2.25 \cdot 10^{+139}:\\
\;\;\;\;\mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -1.0499999999999999e182

    1. Initial program 90.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. Taylor expanded in b around 0

      \[\leadsto \color{blue}{x - \left(a \cdot \left(t - 1\right) + z \cdot \left(y - 1\right)\right)} \]
    3. 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-*.f6485.4

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

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

    if -1.0499999999999999e182 < a < 2.25e139

    1. Initial program 97.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. Taylor expanded in a around 0

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right) - \left(y - 1\right) \cdot z \]
      11. lift-*.f6484.8

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

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

    if 2.25e139 < a

    1. Initial program 90.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. Taylor expanded in a around inf

      \[\leadsto \color{blue}{a \cdot \left(1 - t\right)} + \left(\left(y + t\right) - 2\right) \cdot b \]
    3. 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--.f6476.2

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

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

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

        \[\leadsto \left(1 - t\right) \cdot a + \left(\color{blue}{y} - 2\right) \cdot b \]
    7. Recombined 3 regimes into one program.
    8. Add Preprocessing

    Alternative 4: 83.9% 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 -1.85 \cdot 10^{-11}:\\ \;\;\;\;\left(1 - y\right) \cdot z + t\_1\\ \mathbf{elif}\;b \leq 3.15 \cdot 10^{+31}:\\ \;\;\;\;x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;\left(1 - t\right) \cdot 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 -1.85e-11)
         (+ (* (- 1.0 y) z) t_1)
         (if (<= b 3.15e+31)
           (- x (fma (- t 1.0) a (* (- y 1.0) z)))
           (+ (* (- 1.0 t) 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 <= -1.85e-11) {
    		tmp = ((1.0 - y) * z) + t_1;
    	} else if (b <= 3.15e+31) {
    		tmp = x - fma((t - 1.0), a, ((y - 1.0) * z));
    	} else {
    		tmp = ((1.0 - t) * 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 <= -1.85e-11)
    		tmp = Float64(Float64(Float64(1.0 - y) * z) + t_1);
    	elseif (b <= 3.15e+31)
    		tmp = Float64(x - fma(Float64(t - 1.0), a, Float64(Float64(y - 1.0) * z)));
    	else
    		tmp = Float64(Float64(Float64(1.0 - t) * 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, -1.85e-11], N[(N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[b, 3.15e+31], N[(x - N[(N[(t - 1.0), $MachinePrecision] * a + N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(1.0 - t), $MachinePrecision] * a), $MachinePrecision] + 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 -1.85 \cdot 10^{-11}:\\
    \;\;\;\;\left(1 - y\right) \cdot z + t\_1\\
    
    \mathbf{elif}\;b \leq 3.15 \cdot 10^{+31}:\\
    \;\;\;\;x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;\left(1 - t\right) \cdot a + t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if b < -1.8500000000000001e-11

      1. Initial program 91.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. Taylor expanded in z around inf

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

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

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

          \[\leadsto \left(1 - y\right) \cdot z + \left(\left(y + t\right) - 2\right) \cdot b \]
      4. Applied rewrites74.3%

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

      if -1.8500000000000001e-11 < b < 3.1499999999999999e31

      1. Initial program 99.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. Taylor expanded in b around 0

        \[\leadsto \color{blue}{x - \left(a \cdot \left(t - 1\right) + z \cdot \left(y - 1\right)\right)} \]
      3. 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.3

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

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

      if 3.1499999999999999e31 < b

      1. Initial program 90.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. Taylor expanded in a around inf

        \[\leadsto \color{blue}{a \cdot \left(1 - t\right)} + \left(\left(y + t\right) - 2\right) \cdot b \]
      3. 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--.f6476.5

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

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

    Alternative 5: 83.9% accurate, 1.1× speedup?

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

      1. Initial program 90.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. Taylor expanded in a around inf

        \[\leadsto \color{blue}{a \cdot \left(1 - t\right)} + \left(\left(y + t\right) - 2\right) \cdot b \]
      3. 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--.f6478.5

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

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

      if -2.70000000000000006e106 < b < 3.1499999999999999e31

      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. Taylor expanded in b around 0

        \[\leadsto \color{blue}{x - \left(a \cdot \left(t - 1\right) + z \cdot \left(y - 1\right)\right)} \]
      3. 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-*.f6487.3

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

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

    Alternative 6: 83.6% accurate, 1.2× speedup?

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

      1. Initial program 90.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. Taylor expanded in x around inf

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

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

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

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

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

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

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

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

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

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

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

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

        if -2.8499999999999999e106 < b < 8.50000000000000014e36

        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. Taylor expanded in b around 0

          \[\leadsto \color{blue}{x - \left(a \cdot \left(t - 1\right) + z \cdot \left(y - 1\right)\right)} \]
        3. 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-*.f6487.1

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

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

      Alternative 7: 63.0% accurate, 1.4× speedup?

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

        1. Initial program 92.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. Taylor expanded in z around inf

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

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

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

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

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

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

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

          if -1.8499999999999999e33 < z < 5.4e172

          1. Initial program 96.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. Taylor expanded in x around inf

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

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, x\right) \]
              9. lower-+.f6460.0

                \[\leadsto \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, x\right) \]
            3. Applied rewrites60.0%

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

          Alternative 8: 62.3% accurate, 1.5× speedup?

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

            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. Taylor expanded in t around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto x + \left(\mathsf{fma}\left(b - a, t, \left(y - 2\right) \cdot b\right) - \mathsf{fma}\left(y - 1, z, \mathsf{neg}\left(a\right)\right)\right) \]
              16. lower-neg.f6492.4

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

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

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

                \[\leadsto x + \left(1 - y\right) \cdot z \]
              2. lift--.f64N/A

                \[\leadsto x + \left(1 - y\right) \cdot z \]
              3. lift-*.f6471.8

                \[\leadsto x + \left(1 - y\right) \cdot z \]
            7. Applied rewrites71.8%

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

            if -3.50000000000000007e120 < z < 3.6000000000000002e173

            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. Taylor expanded in x around inf

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

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

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, x\right) \]
                9. lower-+.f6459.1

                  \[\leadsto \mathsf{fma}\left(\color{blue}{\left(t + y\right)} - 2, b, x\right) \]
              3. Applied rewrites59.1%

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

            Alternative 9: 61.2% accurate, 1.7× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(t + y\right) - 2\right) \cdot b\\ \mathbf{if}\;b \leq -8.6 \cdot 10^{-28}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 3.5 \cdot 10^{+40}:\\ \;\;\;\;x + \left(1 - y\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
            (FPCore (x y z t a b)
             :precision binary64
             (let* ((t_1 (* (- (+ t y) 2.0) b)))
               (if (<= b -8.6e-28) t_1 (if (<= b 3.5e+40) (+ x (* (- 1.0 y) z)) t_1))))
            double code(double x, double y, double z, double t, double a, double b) {
            	double t_1 = ((t + y) - 2.0) * b;
            	double tmp;
            	if (b <= -8.6e-28) {
            		tmp = t_1;
            	} else if (b <= 3.5e+40) {
            		tmp = x + ((1.0 - y) * z);
            	} 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 = ((t + y) - 2.0d0) * b
                if (b <= (-8.6d-28)) then
                    tmp = t_1
                else if (b <= 3.5d+40) then
                    tmp = x + ((1.0d0 - y) * z)
                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 = ((t + y) - 2.0) * b;
            	double tmp;
            	if (b <= -8.6e-28) {
            		tmp = t_1;
            	} else if (b <= 3.5e+40) {
            		tmp = x + ((1.0 - y) * z);
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            def code(x, y, z, t, a, b):
            	t_1 = ((t + y) - 2.0) * b
            	tmp = 0
            	if b <= -8.6e-28:
            		tmp = t_1
            	elif b <= 3.5e+40:
            		tmp = x + ((1.0 - y) * z)
            	else:
            		tmp = t_1
            	return tmp
            
            function code(x, y, z, t, a, b)
            	t_1 = Float64(Float64(Float64(t + y) - 2.0) * b)
            	tmp = 0.0
            	if (b <= -8.6e-28)
            		tmp = t_1;
            	elseif (b <= 3.5e+40)
            		tmp = Float64(x + Float64(Float64(1.0 - y) * z));
            	else
            		tmp = t_1;
            	end
            	return tmp
            end
            
            function tmp_2 = code(x, y, z, t, a, b)
            	t_1 = ((t + y) - 2.0) * b;
            	tmp = 0.0;
            	if (b <= -8.6e-28)
            		tmp = t_1;
            	elseif (b <= 3.5e+40)
            		tmp = x + ((1.0 - y) * z);
            	else
            		tmp = t_1;
            	end
            	tmp_2 = tmp;
            end
            
            code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[b, -8.6e-28], t$95$1, If[LessEqual[b, 3.5e+40], N[(x + N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \left(\left(t + y\right) - 2\right) \cdot b\\
            \mathbf{if}\;b \leq -8.6 \cdot 10^{-28}:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;b \leq 3.5 \cdot 10^{+40}:\\
            \;\;\;\;x + \left(1 - y\right) \cdot z\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_1\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if b < -8.6e-28 or 3.4999999999999999e40 < b

              1. Initial program 91.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. Taylor expanded in b around inf

                \[\leadsto \color{blue}{b \cdot \left(\left(t + y\right) - 2\right)} \]
              3. 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-*.f6465.7

                  \[\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-+.f6465.7

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

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

              if -8.6e-28 < b < 3.4999999999999999e40

              1. Initial program 99.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. Taylor expanded in t around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto x + \left(1 - y\right) \cdot z \]
                2. lift--.f64N/A

                  \[\leadsto x + \left(1 - y\right) \cdot z \]
                3. lift-*.f6456.9

                  \[\leadsto x + \left(1 - y\right) \cdot z \]
              7. Applied rewrites56.9%

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

            Alternative 10: 57.1% accurate, 1.8× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - z\right) \cdot y\\ \mathbf{if}\;y \leq -0.0004:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 1600000000000:\\ \;\;\;\;\mathsf{fma}\left(t - 2, b, x\right)\\ \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 -0.0004)
                 t_1
                 (if (<= y 1600000000000.0) (fma (- t 2.0) b x) 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 <= -0.0004) {
            		tmp = t_1;
            	} else if (y <= 1600000000000.0) {
            		tmp = fma((t - 2.0), b, x);
            	} 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 <= -0.0004)
            		tmp = t_1;
            	elseif (y <= 1600000000000.0)
            		tmp = fma(Float64(t - 2.0), b, x);
            	else
            		tmp = t_1;
            	end
            	return tmp
            end
            
            code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - z), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -0.0004], t$95$1, If[LessEqual[y, 1600000000000.0], N[(N[(t - 2.0), $MachinePrecision] * b + x), $MachinePrecision], t$95$1]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \left(b - z\right) \cdot y\\
            \mathbf{if}\;y \leq -0.0004:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;y \leq 1600000000000:\\
            \;\;\;\;\mathsf{fma}\left(t - 2, b, x\right)\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_1\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if y < -4.00000000000000019e-4 or 1.6e12 < y

              1. Initial program 92.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. Taylor expanded in y around inf

                \[\leadsto \color{blue}{y \cdot \left(b - z\right)} \]
              3. 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--.f6463.6

                  \[\leadsto \left(b - z\right) \cdot y \]
              4. Applied rewrites63.6%

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

              if -4.00000000000000019e-4 < y < 1.6e12

              1. Initial program 97.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. Taylor expanded in x around inf

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

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

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

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

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

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

                      \[\leadsto \color{blue}{\left(t - 2\right) \cdot b} + x \]
                    4. lower-fma.f6450.8

                      \[\leadsto \color{blue}{\mathsf{fma}\left(t - 2, b, x\right)} \]
                  3. Applied rewrites50.8%

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

                Alternative 11: 51.1% accurate, 2.0× speedup?

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

                  1. Initial program 92.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. Taylor expanded in t around inf

                    \[\leadsto \color{blue}{t \cdot \left(b - a\right)} \]
                  3. 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--.f6466.9

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

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

                  if -7.0000000000000002e54 < t < 4.1e15

                  1. Initial program 98.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. Taylor expanded in y around inf

                    \[\leadsto \color{blue}{y \cdot \left(b - z\right)} \]
                  3. 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--.f6438.4

                      \[\leadsto \left(b - z\right) \cdot y \]
                  4. Applied rewrites38.4%

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

                Alternative 12: 49.0% accurate, 1.3× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - a\right) \cdot t\\ \mathbf{if}\;t \leq -3.1 \cdot 10^{+23}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -1.8 \cdot 10^{-45}:\\ \;\;\;\;b \cdot y\\ \mathbf{elif}\;t \leq -6.1 \cdot 10^{-248}:\\ \;\;\;\;\left(1 - y\right) \cdot z\\ \mathbf{elif}\;t \leq 40000000000:\\ \;\;\;\;x + a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                (FPCore (x y z t a b)
                 :precision binary64
                 (let* ((t_1 (* (- b a) t)))
                   (if (<= t -3.1e+23)
                     t_1
                     (if (<= t -1.8e-45)
                       (* b y)
                       (if (<= t -6.1e-248)
                         (* (- 1.0 y) z)
                         (if (<= t 40000000000.0) (+ x a) t_1))))))
                double code(double x, double y, double z, double t, double a, double b) {
                	double t_1 = (b - a) * t;
                	double tmp;
                	if (t <= -3.1e+23) {
                		tmp = t_1;
                	} else if (t <= -1.8e-45) {
                		tmp = b * y;
                	} else if (t <= -6.1e-248) {
                		tmp = (1.0 - y) * z;
                	} else if (t <= 40000000000.0) {
                		tmp = x + a;
                	} 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 - a) * t
                    if (t <= (-3.1d+23)) then
                        tmp = t_1
                    else if (t <= (-1.8d-45)) then
                        tmp = b * y
                    else if (t <= (-6.1d-248)) then
                        tmp = (1.0d0 - y) * z
                    else if (t <= 40000000000.0d0) then
                        tmp = x + a
                    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 - a) * t;
                	double tmp;
                	if (t <= -3.1e+23) {
                		tmp = t_1;
                	} else if (t <= -1.8e-45) {
                		tmp = b * y;
                	} else if (t <= -6.1e-248) {
                		tmp = (1.0 - y) * z;
                	} else if (t <= 40000000000.0) {
                		tmp = x + a;
                	} else {
                		tmp = t_1;
                	}
                	return tmp;
                }
                
                def code(x, y, z, t, a, b):
                	t_1 = (b - a) * t
                	tmp = 0
                	if t <= -3.1e+23:
                		tmp = t_1
                	elif t <= -1.8e-45:
                		tmp = b * y
                	elif t <= -6.1e-248:
                		tmp = (1.0 - y) * z
                	elif t <= 40000000000.0:
                		tmp = x + a
                	else:
                		tmp = t_1
                	return tmp
                
                function code(x, y, z, t, a, b)
                	t_1 = Float64(Float64(b - a) * t)
                	tmp = 0.0
                	if (t <= -3.1e+23)
                		tmp = t_1;
                	elseif (t <= -1.8e-45)
                		tmp = Float64(b * y);
                	elseif (t <= -6.1e-248)
                		tmp = Float64(Float64(1.0 - y) * z);
                	elseif (t <= 40000000000.0)
                		tmp = Float64(x + a);
                	else
                		tmp = t_1;
                	end
                	return tmp
                end
                
                function tmp_2 = code(x, y, z, t, a, b)
                	t_1 = (b - a) * t;
                	tmp = 0.0;
                	if (t <= -3.1e+23)
                		tmp = t_1;
                	elseif (t <= -1.8e-45)
                		tmp = b * y;
                	elseif (t <= -6.1e-248)
                		tmp = (1.0 - y) * z;
                	elseif (t <= 40000000000.0)
                		tmp = x + a;
                	else
                		tmp = t_1;
                	end
                	tmp_2 = tmp;
                end
                
                code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -3.1e+23], t$95$1, If[LessEqual[t, -1.8e-45], N[(b * y), $MachinePrecision], If[LessEqual[t, -6.1e-248], N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[t, 40000000000.0], N[(x + a), $MachinePrecision], t$95$1]]]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := \left(b - a\right) \cdot t\\
                \mathbf{if}\;t \leq -3.1 \cdot 10^{+23}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;t \leq -1.8 \cdot 10^{-45}:\\
                \;\;\;\;b \cdot y\\
                
                \mathbf{elif}\;t \leq -6.1 \cdot 10^{-248}:\\
                \;\;\;\;\left(1 - y\right) \cdot z\\
                
                \mathbf{elif}\;t \leq 40000000000:\\
                \;\;\;\;x + a\\
                
                \mathbf{else}:\\
                \;\;\;\;t\_1\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 4 regimes
                2. if t < -3.09999999999999971e23 or 4e10 < t

                  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. Taylor expanded in t around inf

                    \[\leadsto \color{blue}{t \cdot \left(b - a\right)} \]
                  3. 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.2

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

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

                  if -3.09999999999999971e23 < t < -1.8e-45

                  1. Initial program 97.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. Taylor expanded in y around inf

                    \[\leadsto \color{blue}{y \cdot \left(b - z\right)} \]
                  3. 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--.f6437.1

                      \[\leadsto \left(b - z\right) \cdot y \]
                  4. Applied rewrites37.1%

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

                    \[\leadsto b \cdot y \]
                  6. Step-by-step derivation
                    1. Applied rewrites19.5%

                      \[\leadsto b \cdot y \]

                    if -1.8e-45 < t < -6.0999999999999999e-248

                    1. Initial program 98.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. Taylor expanded in z around inf

                      \[\leadsto \color{blue}{z \cdot \left(1 - y\right)} \]
                    3. 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--.f6432.5

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

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

                    if -6.0999999999999999e-248 < t < 4e10

                    1. Initial program 98.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. Taylor expanded in t around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto x + \left(\mathsf{fma}\left(b - a, t, \left(y - 2\right) \cdot b\right) - \mathsf{fma}\left(y - 1, z, \mathsf{neg}\left(a\right)\right)\right) \]
                      16. lower-neg.f6498.0

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

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

                      \[\leadsto x + -1 \cdot \color{blue}{\left(a \cdot \left(t - 1\right)\right)} \]
                    6. Step-by-step derivation
                      1. associate-*r*N/A

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

                        \[\leadsto x + \left(\mathsf{neg}\left(a\right)\right) \cdot \left(t - 1\right) \]
                      3. lift-neg.f64N/A

                        \[\leadsto x + \left(-a\right) \cdot \left(t - 1\right) \]
                      4. lower-*.f64N/A

                        \[\leadsto x + \left(-a\right) \cdot \left(t - \color{blue}{1}\right) \]
                      5. lower--.f6438.7

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

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

                      \[\leadsto x + a \]
                    9. Step-by-step derivation
                      1. Applied rewrites37.9%

                        \[\leadsto x + a \]
                    10. Recombined 4 regimes into one program.
                    11. Add Preprocessing

                    Alternative 13: 37.9% accurate, 1.3× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(1 - y\right) \cdot z\\ \mathbf{if}\;z \leq -8 \cdot 10^{+129}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -1.85 \cdot 10^{-119}:\\ \;\;\;\;x + a\\ \mathbf{elif}\;z \leq 4.2 \cdot 10^{-183}:\\ \;\;\;\;b \cdot y\\ \mathbf{elif}\;z \leq 9.5 \cdot 10^{-27}:\\ \;\;\;\;\left(1 - t\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                    (FPCore (x y z t a b)
                     :precision binary64
                     (let* ((t_1 (* (- 1.0 y) z)))
                       (if (<= z -8e+129)
                         t_1
                         (if (<= z -1.85e-119)
                           (+ x a)
                           (if (<= z 4.2e-183) (* b y) (if (<= z 9.5e-27) (* (- 1.0 t) a) t_1))))))
                    double code(double x, double y, double z, double t, double a, double b) {
                    	double t_1 = (1.0 - y) * z;
                    	double tmp;
                    	if (z <= -8e+129) {
                    		tmp = t_1;
                    	} else if (z <= -1.85e-119) {
                    		tmp = x + a;
                    	} else if (z <= 4.2e-183) {
                    		tmp = b * y;
                    	} else if (z <= 9.5e-27) {
                    		tmp = (1.0 - t) * a;
                    	} 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 = (1.0d0 - y) * z
                        if (z <= (-8d+129)) then
                            tmp = t_1
                        else if (z <= (-1.85d-119)) then
                            tmp = x + a
                        else if (z <= 4.2d-183) then
                            tmp = b * y
                        else if (z <= 9.5d-27) then
                            tmp = (1.0d0 - t) * a
                        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 = (1.0 - y) * z;
                    	double tmp;
                    	if (z <= -8e+129) {
                    		tmp = t_1;
                    	} else if (z <= -1.85e-119) {
                    		tmp = x + a;
                    	} else if (z <= 4.2e-183) {
                    		tmp = b * y;
                    	} else if (z <= 9.5e-27) {
                    		tmp = (1.0 - t) * a;
                    	} else {
                    		tmp = t_1;
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y, z, t, a, b):
                    	t_1 = (1.0 - y) * z
                    	tmp = 0
                    	if z <= -8e+129:
                    		tmp = t_1
                    	elif z <= -1.85e-119:
                    		tmp = x + a
                    	elif z <= 4.2e-183:
                    		tmp = b * y
                    	elif z <= 9.5e-27:
                    		tmp = (1.0 - t) * a
                    	else:
                    		tmp = t_1
                    	return tmp
                    
                    function code(x, y, z, t, a, b)
                    	t_1 = Float64(Float64(1.0 - y) * z)
                    	tmp = 0.0
                    	if (z <= -8e+129)
                    		tmp = t_1;
                    	elseif (z <= -1.85e-119)
                    		tmp = Float64(x + a);
                    	elseif (z <= 4.2e-183)
                    		tmp = Float64(b * y);
                    	elseif (z <= 9.5e-27)
                    		tmp = Float64(Float64(1.0 - t) * a);
                    	else
                    		tmp = t_1;
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y, z, t, a, b)
                    	t_1 = (1.0 - y) * z;
                    	tmp = 0.0;
                    	if (z <= -8e+129)
                    		tmp = t_1;
                    	elseif (z <= -1.85e-119)
                    		tmp = x + a;
                    	elseif (z <= 4.2e-183)
                    		tmp = b * y;
                    	elseif (z <= 9.5e-27)
                    		tmp = (1.0 - t) * a;
                    	else
                    		tmp = t_1;
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -8e+129], t$95$1, If[LessEqual[z, -1.85e-119], N[(x + a), $MachinePrecision], If[LessEqual[z, 4.2e-183], N[(b * y), $MachinePrecision], If[LessEqual[z, 9.5e-27], N[(N[(1.0 - t), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    t_1 := \left(1 - y\right) \cdot z\\
                    \mathbf{if}\;z \leq -8 \cdot 10^{+129}:\\
                    \;\;\;\;t\_1\\
                    
                    \mathbf{elif}\;z \leq -1.85 \cdot 10^{-119}:\\
                    \;\;\;\;x + a\\
                    
                    \mathbf{elif}\;z \leq 4.2 \cdot 10^{-183}:\\
                    \;\;\;\;b \cdot y\\
                    
                    \mathbf{elif}\;z \leq 9.5 \cdot 10^{-27}:\\
                    \;\;\;\;\left(1 - t\right) \cdot a\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;t\_1\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 4 regimes
                    2. if z < -8e129 or 9.50000000000000037e-27 < z

                      1. Initial program 92.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. Taylor expanded in z around inf

                        \[\leadsto \color{blue}{z \cdot \left(1 - y\right)} \]
                      3. 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.2

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

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

                      if -8e129 < z < -1.8500000000000001e-119

                      1. Initial program 96.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. Taylor expanded in t around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto x + -1 \cdot \color{blue}{\left(a \cdot \left(t - 1\right)\right)} \]
                      6. Step-by-step derivation
                        1. associate-*r*N/A

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

                          \[\leadsto x + \left(\mathsf{neg}\left(a\right)\right) \cdot \left(t - 1\right) \]
                        3. lift-neg.f64N/A

                          \[\leadsto x + \left(-a\right) \cdot \left(t - 1\right) \]
                        4. lower-*.f64N/A

                          \[\leadsto x + \left(-a\right) \cdot \left(t - \color{blue}{1}\right) \]
                        5. lower--.f6443.7

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

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

                        \[\leadsto x + a \]
                      9. Step-by-step derivation
                        1. Applied rewrites27.8%

                          \[\leadsto x + a \]

                        if -1.8500000000000001e-119 < z < 4.2000000000000004e-183

                        1. Initial program 98.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. Taylor expanded in y around inf

                          \[\leadsto \color{blue}{y \cdot \left(b - z\right)} \]
                        3. 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--.f6423.7

                            \[\leadsto \left(b - z\right) \cdot y \]
                        4. Applied rewrites23.7%

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

                          \[\leadsto b \cdot y \]
                        6. Step-by-step derivation
                          1. Applied rewrites22.4%

                            \[\leadsto b \cdot y \]

                          if 4.2000000000000004e-183 < z < 9.50000000000000037e-27

                          1. Initial program 97.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. Taylor expanded in a around inf

                            \[\leadsto \color{blue}{a \cdot \left(1 - t\right)} \]
                          3. 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--.f6436.4

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

                            \[\leadsto \color{blue}{\left(1 - t\right) \cdot a} \]
                        7. Recombined 4 regimes into one program.
                        8. Add Preprocessing

                        Alternative 14: 33.9% accurate, 1.2× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(-z\right) \cdot y\\ \mathbf{if}\;z \leq -8 \cdot 10^{+129}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -1.85 \cdot 10^{-119}:\\ \;\;\;\;x + a\\ \mathbf{elif}\;z \leq 4.2 \cdot 10^{-183}:\\ \;\;\;\;b \cdot y\\ \mathbf{elif}\;z \leq 19500000:\\ \;\;\;\;\left(1 - t\right) \cdot a\\ \mathbf{elif}\;z \leq 3.6 \cdot 10^{+186}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;z\\ \end{array} \end{array} \]
                        (FPCore (x y z t a b)
                         :precision binary64
                         (let* ((t_1 (* (- z) y)))
                           (if (<= z -8e+129)
                             t_1
                             (if (<= z -1.85e-119)
                               (+ x a)
                               (if (<= z 4.2e-183)
                                 (* b y)
                                 (if (<= z 19500000.0) (* (- 1.0 t) a) (if (<= z 3.6e+186) t_1 z)))))))
                        double code(double x, double y, double z, double t, double a, double b) {
                        	double t_1 = -z * y;
                        	double tmp;
                        	if (z <= -8e+129) {
                        		tmp = t_1;
                        	} else if (z <= -1.85e-119) {
                        		tmp = x + a;
                        	} else if (z <= 4.2e-183) {
                        		tmp = b * y;
                        	} else if (z <= 19500000.0) {
                        		tmp = (1.0 - t) * a;
                        	} else if (z <= 3.6e+186) {
                        		tmp = t_1;
                        	} 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) :: t_1
                            real(8) :: tmp
                            t_1 = -z * y
                            if (z <= (-8d+129)) then
                                tmp = t_1
                            else if (z <= (-1.85d-119)) then
                                tmp = x + a
                            else if (z <= 4.2d-183) then
                                tmp = b * y
                            else if (z <= 19500000.0d0) then
                                tmp = (1.0d0 - t) * a
                            else if (z <= 3.6d+186) then
                                tmp = t_1
                            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 t_1 = -z * y;
                        	double tmp;
                        	if (z <= -8e+129) {
                        		tmp = t_1;
                        	} else if (z <= -1.85e-119) {
                        		tmp = x + a;
                        	} else if (z <= 4.2e-183) {
                        		tmp = b * y;
                        	} else if (z <= 19500000.0) {
                        		tmp = (1.0 - t) * a;
                        	} else if (z <= 3.6e+186) {
                        		tmp = t_1;
                        	} else {
                        		tmp = z;
                        	}
                        	return tmp;
                        }
                        
                        def code(x, y, z, t, a, b):
                        	t_1 = -z * y
                        	tmp = 0
                        	if z <= -8e+129:
                        		tmp = t_1
                        	elif z <= -1.85e-119:
                        		tmp = x + a
                        	elif z <= 4.2e-183:
                        		tmp = b * y
                        	elif z <= 19500000.0:
                        		tmp = (1.0 - t) * a
                        	elif z <= 3.6e+186:
                        		tmp = t_1
                        	else:
                        		tmp = z
                        	return tmp
                        
                        function code(x, y, z, t, a, b)
                        	t_1 = Float64(Float64(-z) * y)
                        	tmp = 0.0
                        	if (z <= -8e+129)
                        		tmp = t_1;
                        	elseif (z <= -1.85e-119)
                        		tmp = Float64(x + a);
                        	elseif (z <= 4.2e-183)
                        		tmp = Float64(b * y);
                        	elseif (z <= 19500000.0)
                        		tmp = Float64(Float64(1.0 - t) * a);
                        	elseif (z <= 3.6e+186)
                        		tmp = t_1;
                        	else
                        		tmp = z;
                        	end
                        	return tmp
                        end
                        
                        function tmp_2 = code(x, y, z, t, a, b)
                        	t_1 = -z * y;
                        	tmp = 0.0;
                        	if (z <= -8e+129)
                        		tmp = t_1;
                        	elseif (z <= -1.85e-119)
                        		tmp = x + a;
                        	elseif (z <= 4.2e-183)
                        		tmp = b * y;
                        	elseif (z <= 19500000.0)
                        		tmp = (1.0 - t) * a;
                        	elseif (z <= 3.6e+186)
                        		tmp = t_1;
                        	else
                        		tmp = z;
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[((-z) * y), $MachinePrecision]}, If[LessEqual[z, -8e+129], t$95$1, If[LessEqual[z, -1.85e-119], N[(x + a), $MachinePrecision], If[LessEqual[z, 4.2e-183], N[(b * y), $MachinePrecision], If[LessEqual[z, 19500000.0], N[(N[(1.0 - t), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[z, 3.6e+186], t$95$1, z]]]]]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        t_1 := \left(-z\right) \cdot y\\
                        \mathbf{if}\;z \leq -8 \cdot 10^{+129}:\\
                        \;\;\;\;t\_1\\
                        
                        \mathbf{elif}\;z \leq -1.85 \cdot 10^{-119}:\\
                        \;\;\;\;x + a\\
                        
                        \mathbf{elif}\;z \leq 4.2 \cdot 10^{-183}:\\
                        \;\;\;\;b \cdot y\\
                        
                        \mathbf{elif}\;z \leq 19500000:\\
                        \;\;\;\;\left(1 - t\right) \cdot a\\
                        
                        \mathbf{elif}\;z \leq 3.6 \cdot 10^{+186}:\\
                        \;\;\;\;t\_1\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;z\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 5 regimes
                        2. if z < -8e129 or 1.95e7 < z < 3.6000000000000002e186

                          1. Initial program 92.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. Taylor expanded in y around inf

                            \[\leadsto \color{blue}{y \cdot \left(b - z\right)} \]
                          3. 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--.f6440.0

                              \[\leadsto \left(b - z\right) \cdot y \]
                          4. Applied rewrites40.0%

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

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

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

                              \[\leadsto \left(-z\right) \cdot y \]
                          7. Applied rewrites33.3%

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

                          if -8e129 < z < -1.8500000000000001e-119

                          1. Initial program 96.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. Taylor expanded in t around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto x + -1 \cdot \color{blue}{\left(a \cdot \left(t - 1\right)\right)} \]
                          6. Step-by-step derivation
                            1. associate-*r*N/A

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

                              \[\leadsto x + \left(\mathsf{neg}\left(a\right)\right) \cdot \left(t - 1\right) \]
                            3. lift-neg.f64N/A

                              \[\leadsto x + \left(-a\right) \cdot \left(t - 1\right) \]
                            4. lower-*.f64N/A

                              \[\leadsto x + \left(-a\right) \cdot \left(t - \color{blue}{1}\right) \]
                            5. lower--.f6443.7

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

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

                            \[\leadsto x + a \]
                          9. Step-by-step derivation
                            1. Applied rewrites27.8%

                              \[\leadsto x + a \]

                            if -1.8500000000000001e-119 < z < 4.2000000000000004e-183

                            1. Initial program 98.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. Taylor expanded in y around inf

                              \[\leadsto \color{blue}{y \cdot \left(b - z\right)} \]
                            3. 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--.f6423.7

                                \[\leadsto \left(b - z\right) \cdot y \]
                            4. Applied rewrites23.7%

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

                              \[\leadsto b \cdot y \]
                            6. Step-by-step derivation
                              1. Applied rewrites22.4%

                                \[\leadsto b \cdot y \]

                              if 4.2000000000000004e-183 < z < 1.95e7

                              1. Initial program 97.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. Taylor expanded in a around inf

                                \[\leadsto \color{blue}{a \cdot \left(1 - t\right)} \]
                              3. 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.0

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

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

                              if 3.6000000000000002e186 < z

                              1. Initial program 90.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. Taylor expanded in z around inf

                                \[\leadsto \color{blue}{z \cdot \left(1 - y\right)} \]
                              3. 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--.f6471.9

                                  \[\leadsto \left(1 - y\right) \cdot z \]
                              4. Applied rewrites71.9%

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

                                \[\leadsto z \]
                              6. Step-by-step derivation
                                1. Applied rewrites29.7%

                                  \[\leadsto z \]
                              7. Recombined 5 regimes into one program.
                              8. Add Preprocessing

                              Alternative 15: 29.7% accurate, 2.5× speedup?

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

                                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. Taylor expanded in y around inf

                                  \[\leadsto \color{blue}{y \cdot \left(b - z\right)} \]
                                3. 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--.f6471.1

                                    \[\leadsto \left(b - z\right) \cdot y \]
                                4. Applied rewrites71.1%

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

                                  \[\leadsto b \cdot y \]
                                6. Step-by-step derivation
                                  1. Applied rewrites37.4%

                                    \[\leadsto b \cdot y \]

                                  if -1.7500000000000001e104 < y < 7.5999999999999994e51

                                  1. Initial program 97.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. Taylor expanded in t around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto x + \left(\mathsf{fma}\left(b - a, t, \left(y - 2\right) \cdot b\right) - \mathsf{fma}\left(y - 1, z, \mathsf{neg}\left(a\right)\right)\right) \]
                                    16. lower-neg.f6499.6

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

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

                                    \[\leadsto x + -1 \cdot \color{blue}{\left(a \cdot \left(t - 1\right)\right)} \]
                                  6. Step-by-step derivation
                                    1. associate-*r*N/A

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

                                      \[\leadsto x + \left(\mathsf{neg}\left(a\right)\right) \cdot \left(t - 1\right) \]
                                    3. lift-neg.f64N/A

                                      \[\leadsto x + \left(-a\right) \cdot \left(t - 1\right) \]
                                    4. lower-*.f64N/A

                                      \[\leadsto x + \left(-a\right) \cdot \left(t - \color{blue}{1}\right) \]
                                    5. lower--.f6451.2

                                      \[\leadsto x + \left(-a\right) \cdot \left(t - 1\right) \]
                                  7. Applied rewrites51.2%

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

                                    \[\leadsto x + a \]
                                  9. Step-by-step derivation
                                    1. Applied rewrites31.9%

                                      \[\leadsto x + a \]
                                  10. Recombined 2 regimes into one program.
                                  11. Add Preprocessing

                                  Alternative 16: 29.2% accurate, 2.5× speedup?

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

                                    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. Taylor expanded in z around inf

                                      \[\leadsto \color{blue}{z \cdot \left(1 - y\right)} \]
                                    3. 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--.f6467.6

                                        \[\leadsto \left(1 - y\right) \cdot z \]
                                    4. Applied rewrites67.6%

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

                                      \[\leadsto z \]
                                    6. Step-by-step derivation
                                      1. Applied rewrites27.8%

                                        \[\leadsto z \]

                                      if -9.19999999999999961e129 < z < 4e180

                                      1. Initial program 96.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. Taylor expanded in t around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          \[\leadsto x + \left(\mathsf{fma}\left(b - a, t, \left(y - 2\right) \cdot b\right) - \mathsf{fma}\left(y - 1, z, \mathsf{neg}\left(a\right)\right)\right) \]
                                        16. lower-neg.f6498.0

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

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

                                        \[\leadsto x + -1 \cdot \color{blue}{\left(a \cdot \left(t - 1\right)\right)} \]
                                      6. Step-by-step derivation
                                        1. associate-*r*N/A

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

                                          \[\leadsto x + \left(\mathsf{neg}\left(a\right)\right) \cdot \left(t - 1\right) \]
                                        3. lift-neg.f64N/A

                                          \[\leadsto x + \left(-a\right) \cdot \left(t - 1\right) \]
                                        4. lower-*.f64N/A

                                          \[\leadsto x + \left(-a\right) \cdot \left(t - \color{blue}{1}\right) \]
                                        5. lower--.f6449.0

                                          \[\leadsto x + \left(-a\right) \cdot \left(t - 1\right) \]
                                      7. Applied rewrites49.0%

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

                                        \[\leadsto x + a \]
                                      9. Step-by-step derivation
                                        1. Applied rewrites30.3%

                                          \[\leadsto x + a \]
                                      10. Recombined 2 regimes into one program.
                                      11. Add Preprocessing

                                      Alternative 17: 21.6% accurate, 2.3× speedup?

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

                                        1. Initial program 92.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. Taylor expanded in z around inf

                                          \[\leadsto \color{blue}{z \cdot \left(1 - y\right)} \]
                                        3. 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 \]
                                        4. Applied rewrites53.1%

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

                                          \[\leadsto z \]
                                        6. Step-by-step derivation
                                          1. Applied rewrites20.7%

                                            \[\leadsto z \]

                                          if -3.4999999999999998e129 < z < 7.6000000000000007e-257

                                          1. Initial program 97.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. Taylor expanded in x around inf

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

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

                                            if 7.6000000000000007e-257 < z < 3.8e-27

                                            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. Taylor expanded in a around inf

                                              \[\leadsto \color{blue}{a \cdot \left(1 - t\right)} \]
                                            3. 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--.f6436.5

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

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

                                              \[\leadsto a \]
                                            6. Step-by-step derivation
                                              1. Applied rewrites15.5%

                                                \[\leadsto a \]
                                            7. Recombined 3 regimes into one program.
                                            8. Add Preprocessing

                                            Alternative 18: 19.2% accurate, 3.3× speedup?

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

                                              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. Taylor expanded in a around inf

                                                \[\leadsto \color{blue}{a \cdot \left(1 - t\right)} \]
                                              3. 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--.f6463.6

                                                  \[\leadsto \left(1 - t\right) \cdot a \]
                                              4. Applied rewrites63.6%

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

                                                \[\leadsto a \]
                                              6. Step-by-step derivation
                                                1. Applied rewrites26.4%

                                                  \[\leadsto a \]

                                                if -7.49999999999999983e100 < a < 2.69999999999999989e146

                                                1. Initial program 97.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. Taylor expanded in x around inf

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

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

                                                Alternative 19: 15.9% accurate, 28.4× 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 95.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. Taylor expanded in x around inf

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

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

                                                  Reproduce

                                                  ?
                                                  herbie shell --seed 2025112 
                                                  (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)))