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

Percentage Accurate: 95.3% → 97.7%
Time: 5.2s
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.3% accurate, 1.0× speedup?

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

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

real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    code = ((x - ((y - 1.0d0) * z)) - ((t - 1.0d0) * a)) + (((y + t) - 2.0d0) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
}
def code(x, y, z, t, a, b):
	return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b)
function code(x, y, z, t, a, b)
	return Float64(Float64(Float64(x - Float64(Float64(y - 1.0) * z)) - Float64(Float64(t - 1.0) * a)) + Float64(Float64(Float64(y + t) - 2.0) * b))
end
function tmp = code(x, y, z, t, a, b)
	tmp = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x - N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Alternative 1: 97.7% accurate, 1.0× speedup?

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

\\
\mathsf{fma}\left(\left(t + y\right) - 2, b, x - \mathsf{fma}\left(t - 1, a, \left(y - 1\right) \cdot z\right)\right)
\end{array}
Derivation
  1. Initial program 95.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. Step-by-step derivation
    1. lift-+.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 85.1% accurate, 1.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\left(t + y\right) - 2, b, \left(1 - t\right) \cdot a\right)\\ \mathbf{if}\;b \leq -2.2 \cdot 10^{+98}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 2.7 \cdot 10^{+44}:\\ \;\;\;\;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 (* (- 1.0 t) a))))
   (if (<= b -2.2e+98)
     t_1
     (if (<= b 2.7e+44) (- 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, ((1.0 - t) * a));
	double tmp;
	if (b <= -2.2e+98) {
		tmp = t_1;
	} else if (b <= 2.7e+44) {
		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, Float64(Float64(1.0 - t) * a))
	tmp = 0.0
	if (b <= -2.2e+98)
		tmp = t_1;
	elseif (b <= 2.7e+44)
		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 + N[(N[(1.0 - t), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.2e+98], t$95$1, If[LessEqual[b, 2.7e+44], 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, \left(1 - t\right) \cdot a\right)\\
\mathbf{if}\;b \leq -2.2 \cdot 10^{+98}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;b \leq 2.7 \cdot 10^{+44}:\\
\;\;\;\;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.20000000000000009e98 or 2.7e44 < b

    1. Initial program 90.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. Step-by-step derivation
      1. lift-+.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.20000000000000009e98 < b < 2.7e44

    1. Initial program 98.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 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.2

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

      \[\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 3: 84.0% accurate, 1.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\left(t + y\right) - 2, b, a\right)\\ \mathbf{if}\;b \leq -7.5 \cdot 10^{+102}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 3.6 \cdot 10^{+93}:\\ \;\;\;\;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 a)))
   (if (<= b -7.5e+102)
     t_1
     (if (<= b 3.6e+93) (- 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, a);
	double tmp;
	if (b <= -7.5e+102) {
		tmp = t_1;
	} else if (b <= 3.6e+93) {
		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, a)
	tmp = 0.0
	if (b <= -7.5e+102)
		tmp = t_1;
	elseif (b <= 3.6e+93)
		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 + a), $MachinePrecision]}, If[LessEqual[b, -7.5e+102], t$95$1, If[LessEqual[b, 3.6e+93], 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, a\right)\\
\mathbf{if}\;b \leq -7.5 \cdot 10^{+102}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;b \leq 3.6 \cdot 10^{+93}:\\
\;\;\;\;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 < -7.5e102 or 3.5999999999999999e93 < b

    1. Initial program 89.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. Step-by-step derivation
      1. lift-+.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, a\right) \]
    8. Step-by-step derivation
      1. Applied rewrites81.6%

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

      if -7.5e102 < b < 3.5999999999999999e93

      1. Initial program 98.2%

        \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
      2. 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.3

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

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

    Alternative 4: 63.9% accurate, 1.3× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\left(t + y\right) - 2, b, a\right)\\ \mathbf{if}\;b \leq -2.2 \cdot 10^{+98}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq -4.1 \cdot 10^{-285}:\\ \;\;\;\;x - \left(t - 1\right) \cdot a\\ \mathbf{elif}\;b \leq 4 \cdot 10^{+42}:\\ \;\;\;\;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 (fma (- (+ t y) 2.0) b a)))
       (if (<= b -2.2e+98)
         t_1
         (if (<= b -4.1e-285)
           (- x (* (- t 1.0) a))
           (if (<= b 4e+42) (+ x (* (- 1.0 y) 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, a);
    	double tmp;
    	if (b <= -2.2e+98) {
    		tmp = t_1;
    	} else if (b <= -4.1e-285) {
    		tmp = x - ((t - 1.0) * a);
    	} else if (b <= 4e+42) {
    		tmp = x + ((1.0 - y) * 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, a)
    	tmp = 0.0
    	if (b <= -2.2e+98)
    		tmp = t_1;
    	elseif (b <= -4.1e-285)
    		tmp = Float64(x - Float64(Float64(t - 1.0) * a));
    	elseif (b <= 4e+42)
    		tmp = Float64(x + Float64(Float64(1.0 - y) * 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 + a), $MachinePrecision]}, If[LessEqual[b, -2.2e+98], t$95$1, If[LessEqual[b, -4.1e-285], N[(x - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4e+42], N[(x + N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \mathsf{fma}\left(\left(t + y\right) - 2, b, a\right)\\
    \mathbf{if}\;b \leq -2.2 \cdot 10^{+98}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;b \leq -4.1 \cdot 10^{-285}:\\
    \;\;\;\;x - \left(t - 1\right) \cdot a\\
    
    \mathbf{elif}\;b \leq 4 \cdot 10^{+42}:\\
    \;\;\;\;x + \left(1 - y\right) \cdot z\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if b < -2.20000000000000009e98 or 4.00000000000000018e42 < b

      1. Initial program 90.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. Step-by-step derivation
        1. lift-+.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\left(t + y\right) - 2, b, a\right) \]
      8. Step-by-step derivation
        1. Applied rewrites78.5%

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

        if -2.20000000000000009e98 < b < -4.1e-285

        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. Step-by-step derivation
          1. lift-+.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -4.1e-285 < b < 4.00000000000000018e42

          1. Initial program 99.2%

            \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
          2. 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.2

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

            \[\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-*.f6455.2

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

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

        Alternative 5: 62.1% accurate, 1.4× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(t + y\right) - 2\right) \cdot b\\ \mathbf{if}\;b \leq -2.2 \cdot 10^{+98}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq -4.1 \cdot 10^{-285}:\\ \;\;\;\;x - \left(t - 1\right) \cdot a\\ \mathbf{elif}\;b \leq 2.7 \cdot 10^{+44}:\\ \;\;\;\;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 -2.2e+98)
             t_1
             (if (<= b -4.1e-285)
               (- x (* (- t 1.0) a))
               (if (<= b 2.7e+44) (+ 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 <= -2.2e+98) {
        		tmp = t_1;
        	} else if (b <= -4.1e-285) {
        		tmp = x - ((t - 1.0) * a);
        	} else if (b <= 2.7e+44) {
        		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 <= (-2.2d+98)) then
                tmp = t_1
            else if (b <= (-4.1d-285)) then
                tmp = x - ((t - 1.0d0) * a)
            else if (b <= 2.7d+44) 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 <= -2.2e+98) {
        		tmp = t_1;
        	} else if (b <= -4.1e-285) {
        		tmp = x - ((t - 1.0) * a);
        	} else if (b <= 2.7e+44) {
        		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 <= -2.2e+98:
        		tmp = t_1
        	elif b <= -4.1e-285:
        		tmp = x - ((t - 1.0) * a)
        	elif b <= 2.7e+44:
        		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 <= -2.2e+98)
        		tmp = t_1;
        	elseif (b <= -4.1e-285)
        		tmp = Float64(x - Float64(Float64(t - 1.0) * a));
        	elseif (b <= 2.7e+44)
        		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 <= -2.2e+98)
        		tmp = t_1;
        	elseif (b <= -4.1e-285)
        		tmp = x - ((t - 1.0) * a);
        	elseif (b <= 2.7e+44)
        		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, -2.2e+98], t$95$1, If[LessEqual[b, -4.1e-285], N[(x - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.7e+44], 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 -2.2 \cdot 10^{+98}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;b \leq -4.1 \cdot 10^{-285}:\\
        \;\;\;\;x - \left(t - 1\right) \cdot a\\
        
        \mathbf{elif}\;b \leq 2.7 \cdot 10^{+44}:\\
        \;\;\;\;x + \left(1 - y\right) \cdot z\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if b < -2.20000000000000009e98 or 2.7e44 < b

          1. Initial program 90.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 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-*.f6474.0

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

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

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

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

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

          if -2.20000000000000009e98 < b < -4.1e-285

          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. Step-by-step derivation
            1. lift-+.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -4.1e-285 < b < 2.7e44

            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 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.2

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

              \[\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-*.f6455.1

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

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

          Alternative 6: 61.6% accurate, 1.4× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(t + y\right) - 2\right) \cdot b\\ \mathbf{if}\;b \leq -2.2 \cdot 10^{+98}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 8.8 \cdot 10^{-63}:\\ \;\;\;\;x - \left(t - 1\right) \cdot a\\ \mathbf{elif}\;b \leq 2 \cdot 10^{+44}:\\ \;\;\;\;x + \left(-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 -2.2e+98)
               t_1
               (if (<= b 8.8e-63)
                 (- x (* (- t 1.0) a))
                 (if (<= b 2e+44) (+ x (* (- 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 <= -2.2e+98) {
          		tmp = t_1;
          	} else if (b <= 8.8e-63) {
          		tmp = x - ((t - 1.0) * a);
          	} else if (b <= 2e+44) {
          		tmp = x + (-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 <= (-2.2d+98)) then
                  tmp = t_1
              else if (b <= 8.8d-63) then
                  tmp = x - ((t - 1.0d0) * a)
              else if (b <= 2d+44) then
                  tmp = x + (-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 <= -2.2e+98) {
          		tmp = t_1;
          	} else if (b <= 8.8e-63) {
          		tmp = x - ((t - 1.0) * a);
          	} else if (b <= 2e+44) {
          		tmp = x + (-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 <= -2.2e+98:
          		tmp = t_1
          	elif b <= 8.8e-63:
          		tmp = x - ((t - 1.0) * a)
          	elif b <= 2e+44:
          		tmp = x + (-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 <= -2.2e+98)
          		tmp = t_1;
          	elseif (b <= 8.8e-63)
          		tmp = Float64(x - Float64(Float64(t - 1.0) * a));
          	elseif (b <= 2e+44)
          		tmp = Float64(x + Float64(Float64(-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 <= -2.2e+98)
          		tmp = t_1;
          	elseif (b <= 8.8e-63)
          		tmp = x - ((t - 1.0) * a);
          	elseif (b <= 2e+44)
          		tmp = x + (-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, -2.2e+98], t$95$1, If[LessEqual[b, 8.8e-63], N[(x - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2e+44], N[(x + N[((-y) * 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 -2.2 \cdot 10^{+98}:\\
          \;\;\;\;t\_1\\
          
          \mathbf{elif}\;b \leq 8.8 \cdot 10^{-63}:\\
          \;\;\;\;x - \left(t - 1\right) \cdot a\\
          
          \mathbf{elif}\;b \leq 2 \cdot 10^{+44}:\\
          \;\;\;\;x + \left(-y\right) \cdot z\\
          
          \mathbf{else}:\\
          \;\;\;\;t\_1\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if b < -2.20000000000000009e98 or 2.0000000000000002e44 < b

            1. Initial program 90.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 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-*.f6474.0

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

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

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

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

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

            if -2.20000000000000009e98 < b < 8.7999999999999998e-63

            1. Initial program 98.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. Step-by-step derivation
              1. lift-+.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if 8.7999999999999998e-63 < b < 2.0000000000000002e44

              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.3

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

                \[\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-*.f6445.8

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

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

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

                  \[\leadsto x + \left(\mathsf{neg}\left(y\right)\right) \cdot z \]
                2. lower-neg.f6434.9

                  \[\leadsto x + \left(-y\right) \cdot z \]
              10. Applied rewrites34.9%

                \[\leadsto x + \left(-y\right) \cdot z \]
            9. Recombined 3 regimes into one program.
            10. Add Preprocessing

            Alternative 7: 57.8% accurate, 1.7× speedup?

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

              1. Initial program 91.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 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--.f6467.6

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

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

              if -5.19999999999999984e81 < y < 1.12e14

              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. Step-by-step derivation
                1. lift-+.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \left(x + \left(b \cdot \left(\left(t + y\right) - 2\right) + z \cdot \left(1 - y\right)\right)\right) - \color{blue}{a \cdot \left(t - 1\right)} \]
              6. Applied rewrites98.0%

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

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

                  \[\leadsto x - \color{blue}{\left(t - 1\right)} \cdot a \]
              9. Recombined 2 regimes into one program.
              10. Add Preprocessing

              Alternative 8: 50.1% accurate, 1.6× speedup?

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

                1. Initial program 92.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)} \]
                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--.f6454.0

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

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

                if -1.3499999999999999e224 < a < -1.5499999999999999e-252

                1. Initial program 95.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--.f6433.1

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

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

                if -1.5499999999999999e-252 < a < 3.80000000000000023e-22

                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 x around inf

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

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

                    \[\leadsto x + \color{blue}{b \cdot t} \]
                  3. Step-by-step derivation
                    1. lower-*.f6442.8

                      \[\leadsto x + b \cdot \color{blue}{t} \]
                  4. Applied rewrites42.8%

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

                Alternative 9: 48.5% accurate, 1.6× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - z\right) \cdot y\\ \mathbf{if}\;y \leq -1.65 \cdot 10^{-8}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -1.42 \cdot 10^{-290}:\\ \;\;\;\;\left(b - a\right) \cdot t\\ \mathbf{elif}\;y \leq 185000000000:\\ \;\;\;\;x + 1 \cdot z\\ \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 -1.65e-8)
                     t_1
                     (if (<= y -1.42e-290)
                       (* (- b a) t)
                       (if (<= y 185000000000.0) (+ x (* 1.0 z)) 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 <= -1.65e-8) {
                		tmp = t_1;
                	} else if (y <= -1.42e-290) {
                		tmp = (b - a) * t;
                	} else if (y <= 185000000000.0) {
                		tmp = x + (1.0 * 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 = (b - z) * y
                    if (y <= (-1.65d-8)) then
                        tmp = t_1
                    else if (y <= (-1.42d-290)) then
                        tmp = (b - a) * t
                    else if (y <= 185000000000.0d0) then
                        tmp = x + (1.0d0 * 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 = (b - z) * y;
                	double tmp;
                	if (y <= -1.65e-8) {
                		tmp = t_1;
                	} else if (y <= -1.42e-290) {
                		tmp = (b - a) * t;
                	} else if (y <= 185000000000.0) {
                		tmp = x + (1.0 * z);
                	} else {
                		tmp = t_1;
                	}
                	return tmp;
                }
                
                def code(x, y, z, t, a, b):
                	t_1 = (b - z) * y
                	tmp = 0
                	if y <= -1.65e-8:
                		tmp = t_1
                	elif y <= -1.42e-290:
                		tmp = (b - a) * t
                	elif y <= 185000000000.0:
                		tmp = x + (1.0 * z)
                	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 <= -1.65e-8)
                		tmp = t_1;
                	elseif (y <= -1.42e-290)
                		tmp = Float64(Float64(b - a) * t);
                	elseif (y <= 185000000000.0)
                		tmp = Float64(x + Float64(1.0 * z));
                	else
                		tmp = t_1;
                	end
                	return tmp
                end
                
                function tmp_2 = code(x, y, z, t, a, b)
                	t_1 = (b - z) * y;
                	tmp = 0.0;
                	if (y <= -1.65e-8)
                		tmp = t_1;
                	elseif (y <= -1.42e-290)
                		tmp = (b - a) * t;
                	elseif (y <= 185000000000.0)
                		tmp = x + (1.0 * z);
                	else
                		tmp = t_1;
                	end
                	tmp_2 = tmp;
                end
                
                code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - z), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -1.65e-8], t$95$1, If[LessEqual[y, -1.42e-290], N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[y, 185000000000.0], N[(x + N[(1.0 * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := \left(b - z\right) \cdot y\\
                \mathbf{if}\;y \leq -1.65 \cdot 10^{-8}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;y \leq -1.42 \cdot 10^{-290}:\\
                \;\;\;\;\left(b - a\right) \cdot t\\
                
                \mathbf{elif}\;y \leq 185000000000:\\
                \;\;\;\;x + 1 \cdot z\\
                
                \mathbf{else}:\\
                \;\;\;\;t\_1\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 3 regimes
                2. if y < -1.64999999999999989e-8 or 1.85e11 < y

                  1. Initial program 92.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 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--.f6462.6

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

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

                  if -1.64999999999999989e-8 < y < -1.4199999999999999e-290

                  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 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--.f6440.0

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

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

                  if -1.4199999999999999e-290 < y < 1.85e11

                  1. Initial program 98.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 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.f64100.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 rewrites100.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 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-*.f6437.4

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

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

                    \[\leadsto x + 1 \cdot z \]
                  9. Step-by-step derivation
                    1. Applied rewrites36.6%

                      \[\leadsto x + 1 \cdot z \]
                  10. Recombined 3 regimes into one program.
                  11. Add Preprocessing

                  Alternative 10: 47.6% accurate, 2.0× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - z\right) \cdot y\\ \mathbf{if}\;y \leq -1.65 \cdot 10^{-8}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 420000000:\\ \;\;\;\;\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 (* (- b z) y)))
                     (if (<= y -1.65e-8) t_1 (if (<= y 420000000.0) (* (- 1.0 t) a) 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 <= -1.65e-8) {
                  		tmp = t_1;
                  	} else if (y <= 420000000.0) {
                  		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 = (b - z) * y
                      if (y <= (-1.65d-8)) then
                          tmp = t_1
                      else if (y <= 420000000.0d0) 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 = (b - z) * y;
                  	double tmp;
                  	if (y <= -1.65e-8) {
                  		tmp = t_1;
                  	} else if (y <= 420000000.0) {
                  		tmp = (1.0 - t) * a;
                  	} else {
                  		tmp = t_1;
                  	}
                  	return tmp;
                  }
                  
                  def code(x, y, z, t, a, b):
                  	t_1 = (b - z) * y
                  	tmp = 0
                  	if y <= -1.65e-8:
                  		tmp = t_1
                  	elif y <= 420000000.0:
                  		tmp = (1.0 - t) * a
                  	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 <= -1.65e-8)
                  		tmp = t_1;
                  	elseif (y <= 420000000.0)
                  		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 = (b - z) * y;
                  	tmp = 0.0;
                  	if (y <= -1.65e-8)
                  		tmp = t_1;
                  	elseif (y <= 420000000.0)
                  		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[(b - z), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -1.65e-8], t$95$1, If[LessEqual[y, 420000000.0], N[(N[(1.0 - t), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_1 := \left(b - z\right) \cdot y\\
                  \mathbf{if}\;y \leq -1.65 \cdot 10^{-8}:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{elif}\;y \leq 420000000:\\
                  \;\;\;\;\left(1 - t\right) \cdot a\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;t\_1\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 2 regimes
                  2. if y < -1.64999999999999989e-8 or 4.2e8 < y

                    1. Initial program 92.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 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--.f6462.4

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

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

                    if -1.64999999999999989e-8 < y < 4.2e8

                    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 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--.f6433.5

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

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

                  Alternative 11: 42.9% accurate, 2.0× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b - a\right) \cdot t\\ \mathbf{if}\;t \leq -5.2 \cdot 10^{+18}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 6.4 \cdot 10^{+34}:\\ \;\;\;\;\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 (* (- b a) t)))
                     (if (<= t -5.2e+18) t_1 (if (<= t 6.4e+34) (* (- 1.0 y) z) 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 <= -5.2e+18) {
                  		tmp = t_1;
                  	} else if (t <= 6.4e+34) {
                  		tmp = (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 = (b - a) * t
                      if (t <= (-5.2d+18)) then
                          tmp = t_1
                      else if (t <= 6.4d+34) then
                          tmp = (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 = (b - a) * t;
                  	double tmp;
                  	if (t <= -5.2e+18) {
                  		tmp = t_1;
                  	} else if (t <= 6.4e+34) {
                  		tmp = (1.0 - y) * z;
                  	} else {
                  		tmp = t_1;
                  	}
                  	return tmp;
                  }
                  
                  def code(x, y, z, t, a, b):
                  	t_1 = (b - a) * t
                  	tmp = 0
                  	if t <= -5.2e+18:
                  		tmp = t_1
                  	elif t <= 6.4e+34:
                  		tmp = (1.0 - y) * z
                  	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 <= -5.2e+18)
                  		tmp = t_1;
                  	elseif (t <= 6.4e+34)
                  		tmp = 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 = (b - a) * t;
                  	tmp = 0.0;
                  	if (t <= -5.2e+18)
                  		tmp = t_1;
                  	elseif (t <= 6.4e+34)
                  		tmp = (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[(b - a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -5.2e+18], t$95$1, If[LessEqual[t, 6.4e+34], N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_1 := \left(b - a\right) \cdot t\\
                  \mathbf{if}\;t \leq -5.2 \cdot 10^{+18}:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{elif}\;t \leq 6.4 \cdot 10^{+34}:\\
                  \;\;\;\;\left(1 - y\right) \cdot z\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;t\_1\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 2 regimes
                  2. if t < -5.2e18 or 6.3999999999999997e34 < 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--.f6467.6

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

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

                    if -5.2e18 < t < 6.3999999999999997e34

                    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 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.1

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

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

                  Alternative 12: 42.0% accurate, 2.0× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(1 - t\right) \cdot a\\ \mathbf{if}\;a \leq -1.08 \cdot 10^{+105}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 4.2 \cdot 10^{-16}:\\ \;\;\;\;\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 (* (- 1.0 t) a)))
                     (if (<= a -1.08e+105) t_1 (if (<= a 4.2e-16) (* (- 1.0 y) z) t_1))))
                  double code(double x, double y, double z, double t, double a, double b) {
                  	double t_1 = (1.0 - t) * a;
                  	double tmp;
                  	if (a <= -1.08e+105) {
                  		tmp = t_1;
                  	} else if (a <= 4.2e-16) {
                  		tmp = (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 = (1.0d0 - t) * a
                      if (a <= (-1.08d+105)) then
                          tmp = t_1
                      else if (a <= 4.2d-16) then
                          tmp = (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 = (1.0 - t) * a;
                  	double tmp;
                  	if (a <= -1.08e+105) {
                  		tmp = t_1;
                  	} else if (a <= 4.2e-16) {
                  		tmp = (1.0 - y) * z;
                  	} else {
                  		tmp = t_1;
                  	}
                  	return tmp;
                  }
                  
                  def code(x, y, z, t, a, b):
                  	t_1 = (1.0 - t) * a
                  	tmp = 0
                  	if a <= -1.08e+105:
                  		tmp = t_1
                  	elif a <= 4.2e-16:
                  		tmp = (1.0 - y) * z
                  	else:
                  		tmp = t_1
                  	return tmp
                  
                  function code(x, y, z, t, a, b)
                  	t_1 = Float64(Float64(1.0 - t) * a)
                  	tmp = 0.0
                  	if (a <= -1.08e+105)
                  		tmp = t_1;
                  	elseif (a <= 4.2e-16)
                  		tmp = 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 = (1.0 - t) * a;
                  	tmp = 0.0;
                  	if (a <= -1.08e+105)
                  		tmp = t_1;
                  	elseif (a <= 4.2e-16)
                  		tmp = (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[(1.0 - t), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[a, -1.08e+105], t$95$1, If[LessEqual[a, 4.2e-16], N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_1 := \left(1 - t\right) \cdot a\\
                  \mathbf{if}\;a \leq -1.08 \cdot 10^{+105}:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{elif}\;a \leq 4.2 \cdot 10^{-16}:\\
                  \;\;\;\;\left(1 - y\right) \cdot z\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;t\_1\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 2 regimes
                  2. if a < -1.07999999999999994e105 or 4.2000000000000002e-16 < a

                    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 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--.f6454.1

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

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

                    if -1.07999999999999994e105 < a < 4.2000000000000002e-16

                    1. Initial program 97.5%

                      \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                    2. 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.8

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

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

                  Alternative 13: 34.9% accurate, 2.0× speedup?

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

                    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 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--.f6442.0

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

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

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

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

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

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

                    if -1.25e113 < y < 4.60000000000000005e58

                    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--.f6432.6

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

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

                    if 4.60000000000000005e58 < y

                    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 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--.f6469.8

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

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

                        \[\leadsto b \cdot y \]
                    7. Recombined 3 regimes into one program.
                    8. Add Preprocessing

                    Alternative 14: 28.0% accurate, 2.3× speedup?

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

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

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

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

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

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

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

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

                      if -3.7999999999999998e-11 < y < 7.59999999999999995e53

                      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 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--.f6439.5

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

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

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

                          \[\leadsto \left(\mathsf{neg}\left(a\right)\right) \cdot t \]
                        2. lower-neg.f6421.7

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

                        \[\leadsto \left(-a\right) \cdot t \]

                      if 7.59999999999999995e53 < y

                      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 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--.f6469.6

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

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

                          \[\leadsto b \cdot y \]
                      7. Recombined 3 regimes into one program.
                      8. Add Preprocessing

                      Alternative 15: 26.7% accurate, 2.5× speedup?

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

                        1. Initial program 93.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 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--.f6434.2

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

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

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

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

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

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

                        if -4.7999999999999999e-21 < y < 2.6e11

                        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 x around inf

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

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

                          if 2.6e11 < y

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

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

                            \[\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 rewrites34.3%

                              \[\leadsto b \cdot y \]
                          7. Recombined 3 regimes into one program.
                          8. Add Preprocessing

                          Alternative 16: 26.1% accurate, 2.5× speedup?

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

                            1. Initial program 90.8%

                              \[\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b \]
                            2. 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.8

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

                              \[\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 rewrites31.2%

                                \[\leadsto b \cdot y \]

                              if -5.2e97 < b < 2.2e7

                              1. Initial program 98.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 x around inf

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

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

                              Alternative 17: 25.6% accurate, 2.5× speedup?

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

                                1. Initial program 89.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 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--.f6440.7

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

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

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

                                    \[\leadsto b \cdot t \]

                                  if -1.8999999999999999e107 < b < 1.4e72

                                  1. Initial program 98.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 rewrites20.8%

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

                                  Alternative 18: 20.9% accurate, 3.3× speedup?

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

                                    1. Initial program 91.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 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--.f6454.4

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

                                      \[\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 rewrites21.8%

                                        \[\leadsto z \]

                                      if -8.80000000000000007e24 < z < 4.8999999999999999e73

                                      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 x around inf

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

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

                                      Alternative 19: 15.8% 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.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 rewrites15.8%

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

                                        Reproduce

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