Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, C

Percentage Accurate: 94.2% → 96.4%
Time: 9.0s
Alternatives: 12
Speedup: 0.5×

Specification

?
\[\begin{array}{l} \\ x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \end{array} \]
(FPCore (x y z t) :precision binary64 (* x (- (/ y z) (/ t (- 1.0 z)))))
double code(double x, double y, double z, double t) {
	return x * ((y / z) - (t / (1.0 - z)));
}
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)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    code = x * ((y / z) - (t / (1.0d0 - z)))
end function
public static double code(double x, double y, double z, double t) {
	return x * ((y / z) - (t / (1.0 - z)));
}
def code(x, y, z, t):
	return x * ((y / z) - (t / (1.0 - z)))
function code(x, y, z, t)
	return Float64(x * Float64(Float64(y / z) - Float64(t / Float64(1.0 - z))))
end
function tmp = code(x, y, z, t)
	tmp = x * ((y / z) - (t / (1.0 - z)));
end
code[x_, y_, z_, t_] := N[(x * N[(N[(y / z), $MachinePrecision] - N[(t / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)
\end{array}

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 12 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: 94.2% accurate, 1.0× speedup?

\[\begin{array}{l} \\ x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \end{array} \]
(FPCore (x y z t) :precision binary64 (* x (- (/ y z) (/ t (- 1.0 z)))))
double code(double x, double y, double z, double t) {
	return x * ((y / z) - (t / (1.0 - z)));
}
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)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    code = x * ((y / z) - (t / (1.0d0 - z)))
end function
public static double code(double x, double y, double z, double t) {
	return x * ((y / z) - (t / (1.0 - z)));
}
def code(x, y, z, t):
	return x * ((y / z) - (t / (1.0 - z)))
function code(x, y, z, t)
	return Float64(x * Float64(Float64(y / z) - Float64(t / Float64(1.0 - z))))
end
function tmp = code(x, y, z, t)
	tmp = x * ((y / z) - (t / (1.0 - z)));
end
code[x_, y_, z_, t_] := N[(x * N[(N[(y / z), $MachinePrecision] - N[(t / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)
\end{array}

Alternative 1: 96.4% accurate, 0.5× speedup?

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

\\
\begin{array}{l}
t_1 := \frac{y}{z} - \frac{t}{1 - z}\\
\mathbf{if}\;t\_1 \leq 10^{+280}:\\
\;\;\;\;x \cdot t\_1\\

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-t, z, \left(1 - z\right) \cdot y\right) \cdot \frac{x}{\left(1 - z\right) \cdot z}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (-.f64 (/.f64 y z) (/.f64 t (-.f64 #s(literal 1 binary64) z))) < 1e280

    1. Initial program 96.0%

      \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
    2. Add Preprocessing

    if 1e280 < (-.f64 (/.f64 y z) (/.f64 t (-.f64 #s(literal 1 binary64) z)))

    1. Initial program 79.4%

      \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. lift-*.f64N/A

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(y \cdot \left(1 - z\right) - z \cdot t\right) \cdot \frac{x}{z \cdot \left(1 - z\right)}} \]
      10. fp-cancel-sub-sign-invN/A

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

        \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(z\right)\right) \cdot t + y \cdot \left(1 - z\right)\right)} \cdot \frac{x}{z \cdot \left(1 - z\right)} \]
      12. distribute-lft-neg-outN/A

        \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(z \cdot t\right)\right)} + y \cdot \left(1 - z\right)\right) \cdot \frac{x}{z \cdot \left(1 - z\right)} \]
      13. distribute-rgt-neg-outN/A

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(-t, z, \left(1 - z\right) \cdot y\right) \cdot \frac{x}{\color{blue}{\left(1 - z\right) \cdot z}} \]
      21. lower-*.f64100.0

        \[\leadsto \mathsf{fma}\left(-t, z, \left(1 - z\right) \cdot y\right) \cdot \frac{x}{\color{blue}{\left(1 - z\right) \cdot z}} \]
    4. Applied rewrites100.0%

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

Alternative 2: 96.3% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{y}{z} - \frac{t}{1 - z}\\ \mathbf{if}\;t\_1 \leq 10^{+304}:\\ \;\;\;\;x \cdot t\_1\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{z} \cdot y\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (let* ((t_1 (- (/ y z) (/ t (- 1.0 z)))))
   (if (<= t_1 1e+304) (* x t_1) (* (/ x z) y))))
double code(double x, double y, double z, double t) {
	double t_1 = (y / z) - (t / (1.0 - z));
	double tmp;
	if (t_1 <= 1e+304) {
		tmp = x * t_1;
	} else {
		tmp = (x / z) * y;
	}
	return tmp;
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z, t)
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) :: t_1
    real(8) :: tmp
    t_1 = (y / z) - (t / (1.0d0 - z))
    if (t_1 <= 1d+304) then
        tmp = x * t_1
    else
        tmp = (x / z) * y
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double t_1 = (y / z) - (t / (1.0 - z));
	double tmp;
	if (t_1 <= 1e+304) {
		tmp = x * t_1;
	} else {
		tmp = (x / z) * y;
	}
	return tmp;
}
def code(x, y, z, t):
	t_1 = (y / z) - (t / (1.0 - z))
	tmp = 0
	if t_1 <= 1e+304:
		tmp = x * t_1
	else:
		tmp = (x / z) * y
	return tmp
function code(x, y, z, t)
	t_1 = Float64(Float64(y / z) - Float64(t / Float64(1.0 - z)))
	tmp = 0.0
	if (t_1 <= 1e+304)
		tmp = Float64(x * t_1);
	else
		tmp = Float64(Float64(x / z) * y);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	t_1 = (y / z) - (t / (1.0 - z));
	tmp = 0.0;
	if (t_1 <= 1e+304)
		tmp = x * t_1;
	else
		tmp = (x / z) * y;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y / z), $MachinePrecision] - N[(t / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, 1e+304], N[(x * t$95$1), $MachinePrecision], N[(N[(x / z), $MachinePrecision] * y), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{y}{z} - \frac{t}{1 - z}\\
\mathbf{if}\;t\_1 \leq 10^{+304}:\\
\;\;\;\;x \cdot t\_1\\

\mathbf{else}:\\
\;\;\;\;\frac{x}{z} \cdot y\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (-.f64 (/.f64 y z) (/.f64 t (-.f64 #s(literal 1 binary64) z))) < 9.9999999999999994e303

    1. Initial program 96.1%

      \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
    2. Add Preprocessing

    if 9.9999999999999994e303 < (-.f64 (/.f64 y z) (/.f64 t (-.f64 #s(literal 1 binary64) z)))

    1. Initial program 75.2%

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

      \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \frac{t \cdot x}{y \cdot \left(1 - z\right)} + \frac{x}{z}\right)} \]
    4. Applied rewrites100.0%

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

      \[\leadsto \frac{x}{z} \cdot y \]
    6. Step-by-step derivation
      1. Applied rewrites100.0%

        \[\leadsto \frac{x}{z} \cdot y \]
    7. Recombined 2 regimes into one program.
    8. Final simplification96.4%

      \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{y}{z} - \frac{t}{1 - z} \leq 10^{+304}:\\ \;\;\;\;x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{z} \cdot y\\ \end{array} \]
    9. Add Preprocessing

    Alternative 3: 77.4% accurate, 0.9× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(t + y\right) \cdot x}{z}\\ \mathbf{if}\;z \leq -1.45 \cdot 10^{-8}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -2.9 \cdot 10^{-284}:\\ \;\;\;\;\frac{x}{z} \cdot y\\ \mathbf{elif}\;z \leq 1:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
    (FPCore (x y z t)
     :precision binary64
     (let* ((t_1 (/ (* (+ t y) x) z)))
       (if (<= z -1.45e-8)
         t_1
         (if (<= z -2.9e-284) (* (/ x z) y) (if (<= z 1.0) (/ (* y x) z) t_1)))))
    double code(double x, double y, double z, double t) {
    	double t_1 = ((t + y) * x) / z;
    	double tmp;
    	if (z <= -1.45e-8) {
    		tmp = t_1;
    	} else if (z <= -2.9e-284) {
    		tmp = (x / z) * y;
    	} else if (z <= 1.0) {
    		tmp = (y * x) / 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)
    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) :: t_1
        real(8) :: tmp
        t_1 = ((t + y) * x) / z
        if (z <= (-1.45d-8)) then
            tmp = t_1
        else if (z <= (-2.9d-284)) then
            tmp = (x / z) * y
        else if (z <= 1.0d0) then
            tmp = (y * x) / z
        else
            tmp = t_1
        end if
        code = tmp
    end function
    
    public static double code(double x, double y, double z, double t) {
    	double t_1 = ((t + y) * x) / z;
    	double tmp;
    	if (z <= -1.45e-8) {
    		tmp = t_1;
    	} else if (z <= -2.9e-284) {
    		tmp = (x / z) * y;
    	} else if (z <= 1.0) {
    		tmp = (y * x) / z;
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    def code(x, y, z, t):
    	t_1 = ((t + y) * x) / z
    	tmp = 0
    	if z <= -1.45e-8:
    		tmp = t_1
    	elif z <= -2.9e-284:
    		tmp = (x / z) * y
    	elif z <= 1.0:
    		tmp = (y * x) / z
    	else:
    		tmp = t_1
    	return tmp
    
    function code(x, y, z, t)
    	t_1 = Float64(Float64(Float64(t + y) * x) / z)
    	tmp = 0.0
    	if (z <= -1.45e-8)
    		tmp = t_1;
    	elseif (z <= -2.9e-284)
    		tmp = Float64(Float64(x / z) * y);
    	elseif (z <= 1.0)
    		tmp = Float64(Float64(y * x) / z);
    	else
    		tmp = t_1;
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t)
    	t_1 = ((t + y) * x) / z;
    	tmp = 0.0;
    	if (z <= -1.45e-8)
    		tmp = t_1;
    	elseif (z <= -2.9e-284)
    		tmp = (x / z) * y;
    	elseif (z <= 1.0)
    		tmp = (y * x) / z;
    	else
    		tmp = t_1;
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(N[(t + y), $MachinePrecision] * x), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[z, -1.45e-8], t$95$1, If[LessEqual[z, -2.9e-284], N[(N[(x / z), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[z, 1.0], N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision], t$95$1]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \frac{\left(t + y\right) \cdot x}{z}\\
    \mathbf{if}\;z \leq -1.45 \cdot 10^{-8}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;z \leq -2.9 \cdot 10^{-284}:\\
    \;\;\;\;\frac{x}{z} \cdot y\\
    
    \mathbf{elif}\;z \leq 1:\\
    \;\;\;\;\frac{y \cdot x}{z}\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if z < -1.4500000000000001e-8 or 1 < z

      1. Initial program 94.5%

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

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

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

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

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

          \[\leadsto \frac{\color{blue}{\left(y + \left(\mathsf{neg}\left(-1\right)\right) \cdot t\right)} \cdot x}{z} \]
        5. metadata-evalN/A

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

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

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

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

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

      if -1.4500000000000001e-8 < z < -2.9000000000000001e-284

      1. Initial program 95.2%

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

        \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \frac{t \cdot x}{y \cdot \left(1 - z\right)} + \frac{x}{z}\right)} \]
      4. Applied rewrites88.7%

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

        \[\leadsto \frac{x}{z} \cdot y \]
      6. Step-by-step derivation
        1. Applied rewrites74.4%

          \[\leadsto \frac{x}{z} \cdot y \]

        if -2.9000000000000001e-284 < z < 1

        1. Initial program 94.0%

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

          \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
        4. Step-by-step derivation
          1. associate-/l*N/A

            \[\leadsto \color{blue}{x \cdot \frac{y}{z}} \]
          2. *-commutativeN/A

            \[\leadsto \color{blue}{\frac{y}{z} \cdot x} \]
          3. lower-*.f64N/A

            \[\leadsto \color{blue}{\frac{y}{z} \cdot x} \]
          4. lower-/.f6469.4

            \[\leadsto \color{blue}{\frac{y}{z}} \cdot x \]
        5. Applied rewrites69.4%

          \[\leadsto \color{blue}{\frac{y}{z} \cdot x} \]
        6. Step-by-step derivation
          1. Applied rewrites73.9%

            \[\leadsto \frac{y \cdot x}{\color{blue}{z}} \]
        7. Recombined 3 regimes into one program.
        8. Final simplification81.5%

          \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.45 \cdot 10^{-8}:\\ \;\;\;\;\frac{\left(t + y\right) \cdot x}{z}\\ \mathbf{elif}\;z \leq -2.9 \cdot 10^{-284}:\\ \;\;\;\;\frac{x}{z} \cdot y\\ \mathbf{elif}\;z \leq 1:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(t + y\right) \cdot x}{z}\\ \end{array} \]
        9. Add Preprocessing

        Alternative 4: 62.5% accurate, 1.0× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{y \cdot x}{z}\\ \mathbf{if}\;y \leq -1.25 \cdot 10^{-117}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -4 \cdot 10^{-224}:\\ \;\;\;\;x \cdot \left(-t\right)\\ \mathbf{elif}\;y \leq 9.5 \cdot 10^{-17}:\\ \;\;\;\;\frac{x}{z} \cdot t\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
        (FPCore (x y z t)
         :precision binary64
         (let* ((t_1 (/ (* y x) z)))
           (if (<= y -1.25e-117)
             t_1
             (if (<= y -4e-224) (* x (- t)) (if (<= y 9.5e-17) (* (/ x z) t) t_1)))))
        double code(double x, double y, double z, double t) {
        	double t_1 = (y * x) / z;
        	double tmp;
        	if (y <= -1.25e-117) {
        		tmp = t_1;
        	} else if (y <= -4e-224) {
        		tmp = x * -t;
        	} else if (y <= 9.5e-17) {
        		tmp = (x / z) * 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)
        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) :: t_1
            real(8) :: tmp
            t_1 = (y * x) / z
            if (y <= (-1.25d-117)) then
                tmp = t_1
            else if (y <= (-4d-224)) then
                tmp = x * -t
            else if (y <= 9.5d-17) then
                tmp = (x / z) * t
            else
                tmp = t_1
            end if
            code = tmp
        end function
        
        public static double code(double x, double y, double z, double t) {
        	double t_1 = (y * x) / z;
        	double tmp;
        	if (y <= -1.25e-117) {
        		tmp = t_1;
        	} else if (y <= -4e-224) {
        		tmp = x * -t;
        	} else if (y <= 9.5e-17) {
        		tmp = (x / z) * t;
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        def code(x, y, z, t):
        	t_1 = (y * x) / z
        	tmp = 0
        	if y <= -1.25e-117:
        		tmp = t_1
        	elif y <= -4e-224:
        		tmp = x * -t
        	elif y <= 9.5e-17:
        		tmp = (x / z) * t
        	else:
        		tmp = t_1
        	return tmp
        
        function code(x, y, z, t)
        	t_1 = Float64(Float64(y * x) / z)
        	tmp = 0.0
        	if (y <= -1.25e-117)
        		tmp = t_1;
        	elseif (y <= -4e-224)
        		tmp = Float64(x * Float64(-t));
        	elseif (y <= 9.5e-17)
        		tmp = Float64(Float64(x / z) * t);
        	else
        		tmp = t_1;
        	end
        	return tmp
        end
        
        function tmp_2 = code(x, y, z, t)
        	t_1 = (y * x) / z;
        	tmp = 0.0;
        	if (y <= -1.25e-117)
        		tmp = t_1;
        	elseif (y <= -4e-224)
        		tmp = x * -t;
        	elseif (y <= 9.5e-17)
        		tmp = (x / z) * t;
        	else
        		tmp = t_1;
        	end
        	tmp_2 = tmp;
        end
        
        code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[y, -1.25e-117], t$95$1, If[LessEqual[y, -4e-224], N[(x * (-t)), $MachinePrecision], If[LessEqual[y, 9.5e-17], N[(N[(x / z), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := \frac{y \cdot x}{z}\\
        \mathbf{if}\;y \leq -1.25 \cdot 10^{-117}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;y \leq -4 \cdot 10^{-224}:\\
        \;\;\;\;x \cdot \left(-t\right)\\
        
        \mathbf{elif}\;y \leq 9.5 \cdot 10^{-17}:\\
        \;\;\;\;\frac{x}{z} \cdot t\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if y < -1.25e-117 or 9.50000000000000029e-17 < y

          1. Initial program 94.5%

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

            \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
          4. Step-by-step derivation
            1. associate-/l*N/A

              \[\leadsto \color{blue}{x \cdot \frac{y}{z}} \]
            2. *-commutativeN/A

              \[\leadsto \color{blue}{\frac{y}{z} \cdot x} \]
            3. lower-*.f64N/A

              \[\leadsto \color{blue}{\frac{y}{z} \cdot x} \]
            4. lower-/.f6477.1

              \[\leadsto \color{blue}{\frac{y}{z}} \cdot x \]
          5. Applied rewrites77.1%

            \[\leadsto \color{blue}{\frac{y}{z} \cdot x} \]
          6. Step-by-step derivation
            1. Applied rewrites79.9%

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

            if -1.25e-117 < y < -4.0000000000000001e-224

            1. Initial program 100.0%

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

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

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

                \[\leadsto x \cdot \frac{y + \color{blue}{\left(\mathsf{neg}\left(t\right)\right)} \cdot z}{z} \]
              3. fp-cancel-sub-signN/A

                \[\leadsto x \cdot \frac{\color{blue}{y - t \cdot z}}{z} \]
              4. div-subN/A

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

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

                \[\leadsto x \cdot \left(\frac{y}{z} - t \cdot \color{blue}{1}\right) \]
              7. *-rgt-identityN/A

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

                \[\leadsto x \cdot \color{blue}{\left(\frac{y}{z} - t\right)} \]
              9. lower-/.f6493.1

                \[\leadsto x \cdot \left(\color{blue}{\frac{y}{z}} - t\right) \]
            5. Applied rewrites93.1%

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

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

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

              if -4.0000000000000001e-224 < y < 9.50000000000000029e-17

              1. Initial program 93.6%

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

                \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \frac{t \cdot x}{y \cdot \left(1 - z\right)} + \frac{x}{z}\right)} \]
              4. Applied rewrites60.7%

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

                \[\leadsto \frac{t \cdot x}{\color{blue}{z - 1}} \]
              6. Step-by-step derivation
                1. Applied rewrites70.9%

                  \[\leadsto \frac{x}{z - 1} \cdot \color{blue}{t} \]
                2. Taylor expanded in z around inf

                  \[\leadsto \frac{x}{z} \cdot t \]
                3. Step-by-step derivation
                  1. Applied rewrites54.2%

                    \[\leadsto \frac{x}{z} \cdot t \]
                4. Recombined 3 regimes into one program.
                5. Final simplification71.1%

                  \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.25 \cdot 10^{-117}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{elif}\;y \leq -4 \cdot 10^{-224}:\\ \;\;\;\;x \cdot \left(-t\right)\\ \mathbf{elif}\;y \leq 9.5 \cdot 10^{-17}:\\ \;\;\;\;\frac{x}{z} \cdot t\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \end{array} \]
                6. Add Preprocessing

                Alternative 5: 88.0% accurate, 1.0× speedup?

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

                  1. Initial program 95.4%

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

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

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

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

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

                      \[\leadsto \frac{\color{blue}{\left(y + \left(\mathsf{neg}\left(-1\right)\right) \cdot t\right)} \cdot x}{z} \]
                    5. metadata-evalN/A

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

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

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

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

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

                  if -3.30000000000000017e-6 < z < 1

                  1. Initial program 94.6%

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

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

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

                      \[\leadsto x \cdot \frac{y + \color{blue}{\left(\mathsf{neg}\left(t\right)\right)} \cdot z}{z} \]
                    3. fp-cancel-sub-signN/A

                      \[\leadsto x \cdot \frac{\color{blue}{y - t \cdot z}}{z} \]
                    4. div-subN/A

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

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

                      \[\leadsto x \cdot \left(\frac{y}{z} - t \cdot \color{blue}{1}\right) \]
                    7. *-rgt-identityN/A

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

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

                      \[\leadsto x \cdot \left(\color{blue}{\frac{y}{z}} - t\right) \]
                  5. Applied rewrites93.9%

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

                  if 1 < z

                  1. Initial program 93.5%

                    \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
                  2. Add Preprocessing
                  3. Step-by-step derivation
                    1. lift-*.f64N/A

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

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

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

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

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

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

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

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

                      \[\leadsto \color{blue}{\frac{\frac{x \cdot \left(y \cdot \left(1 - z\right) - z \cdot t\right)}{1 - z}}{z}} \]
                  4. Applied rewrites43.4%

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

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

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

                      \[\leadsto \frac{\color{blue}{\left(t + y\right) \cdot x}}{z} \]
                    3. lower-+.f6490.2

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

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

                      \[\leadsto \frac{\mathsf{fma}\left(x, \color{blue}{t}, y \cdot x\right)}{z} \]
                  9. Recombined 3 regimes into one program.
                  10. Final simplification91.2%

                    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.3 \cdot 10^{-6}:\\ \;\;\;\;\frac{\left(t + y\right) \cdot x}{z}\\ \mathbf{elif}\;z \leq 1:\\ \;\;\;\;x \cdot \left(\frac{y}{z} - t\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(x, t, y \cdot x\right)}{z}\\ \end{array} \]
                  11. Add Preprocessing

                  Alternative 6: 88.1% accurate, 1.1× speedup?

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

                    1. Initial program 94.5%

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

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

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

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

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

                        \[\leadsto \frac{\color{blue}{\left(y + \left(\mathsf{neg}\left(-1\right)\right) \cdot t\right)} \cdot x}{z} \]
                      5. metadata-evalN/A

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

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

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

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

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

                    if -3.30000000000000017e-6 < z < 1

                    1. Initial program 94.6%

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

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

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

                        \[\leadsto x \cdot \frac{y + \color{blue}{\left(\mathsf{neg}\left(t\right)\right)} \cdot z}{z} \]
                      3. fp-cancel-sub-signN/A

                        \[\leadsto x \cdot \frac{\color{blue}{y - t \cdot z}}{z} \]
                      4. div-subN/A

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

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

                        \[\leadsto x \cdot \left(\frac{y}{z} - t \cdot \color{blue}{1}\right) \]
                      7. *-rgt-identityN/A

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

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

                        \[\leadsto x \cdot \left(\color{blue}{\frac{y}{z}} - t\right) \]
                    5. Applied rewrites93.9%

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

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

                  Alternative 7: 71.7% accurate, 1.1× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1.2 \cdot 10^{-115} \lor \neg \left(y \leq 1350000\right):\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{z - 1} \cdot t\\ \end{array} \end{array} \]
                  (FPCore (x y z t)
                   :precision binary64
                   (if (or (<= y -1.2e-115) (not (<= y 1350000.0)))
                     (/ (* y x) z)
                     (* (/ x (- z 1.0)) t)))
                  double code(double x, double y, double z, double t) {
                  	double tmp;
                  	if ((y <= -1.2e-115) || !(y <= 1350000.0)) {
                  		tmp = (y * x) / z;
                  	} else {
                  		tmp = (x / (z - 1.0)) * 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)
                  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) :: tmp
                      if ((y <= (-1.2d-115)) .or. (.not. (y <= 1350000.0d0))) then
                          tmp = (y * x) / z
                      else
                          tmp = (x / (z - 1.0d0)) * t
                      end if
                      code = tmp
                  end function
                  
                  public static double code(double x, double y, double z, double t) {
                  	double tmp;
                  	if ((y <= -1.2e-115) || !(y <= 1350000.0)) {
                  		tmp = (y * x) / z;
                  	} else {
                  		tmp = (x / (z - 1.0)) * t;
                  	}
                  	return tmp;
                  }
                  
                  def code(x, y, z, t):
                  	tmp = 0
                  	if (y <= -1.2e-115) or not (y <= 1350000.0):
                  		tmp = (y * x) / z
                  	else:
                  		tmp = (x / (z - 1.0)) * t
                  	return tmp
                  
                  function code(x, y, z, t)
                  	tmp = 0.0
                  	if ((y <= -1.2e-115) || !(y <= 1350000.0))
                  		tmp = Float64(Float64(y * x) / z);
                  	else
                  		tmp = Float64(Float64(x / Float64(z - 1.0)) * t);
                  	end
                  	return tmp
                  end
                  
                  function tmp_2 = code(x, y, z, t)
                  	tmp = 0.0;
                  	if ((y <= -1.2e-115) || ~((y <= 1350000.0)))
                  		tmp = (y * x) / z;
                  	else
                  		tmp = (x / (z - 1.0)) * t;
                  	end
                  	tmp_2 = tmp;
                  end
                  
                  code[x_, y_, z_, t_] := If[Or[LessEqual[y, -1.2e-115], N[Not[LessEqual[y, 1350000.0]], $MachinePrecision]], N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision], N[(N[(x / N[(z - 1.0), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  \mathbf{if}\;y \leq -1.2 \cdot 10^{-115} \lor \neg \left(y \leq 1350000\right):\\
                  \;\;\;\;\frac{y \cdot x}{z}\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;\frac{x}{z - 1} \cdot t\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 2 regimes
                  2. if y < -1.20000000000000011e-115 or 1.35e6 < y

                    1. Initial program 94.3%

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

                      \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
                    4. Step-by-step derivation
                      1. associate-/l*N/A

                        \[\leadsto \color{blue}{x \cdot \frac{y}{z}} \]
                      2. *-commutativeN/A

                        \[\leadsto \color{blue}{\frac{y}{z} \cdot x} \]
                      3. lower-*.f64N/A

                        \[\leadsto \color{blue}{\frac{y}{z} \cdot x} \]
                      4. lower-/.f6478.1

                        \[\leadsto \color{blue}{\frac{y}{z}} \cdot x \]
                    5. Applied rewrites78.1%

                      \[\leadsto \color{blue}{\frac{y}{z} \cdot x} \]
                    6. Step-by-step derivation
                      1. Applied rewrites81.0%

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

                      if -1.20000000000000011e-115 < y < 1.35e6

                      1. Initial program 94.8%

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

                        \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \frac{t \cdot x}{y \cdot \left(1 - z\right)} + \frac{x}{z}\right)} \]
                      4. Applied rewrites61.5%

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

                        \[\leadsto \frac{t \cdot x}{\color{blue}{z - 1}} \]
                      6. Step-by-step derivation
                        1. Applied rewrites69.0%

                          \[\leadsto \frac{x}{z - 1} \cdot \color{blue}{t} \]
                      7. Recombined 2 regimes into one program.
                      8. Final simplification76.6%

                        \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.2 \cdot 10^{-115} \lor \neg \left(y \leq 1350000\right):\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{z - 1} \cdot t\\ \end{array} \]
                      9. Add Preprocessing

                      Alternative 8: 67.0% accurate, 1.2× speedup?

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

                        1. Initial program 98.6%

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

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

                            \[\leadsto x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{t}{1 - z}\right)\right)} \]
                          2. distribute-neg-frac2N/A

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

                            \[\leadsto x \cdot \color{blue}{\frac{t}{\mathsf{neg}\left(\left(1 - z\right)\right)}} \]
                          4. *-lft-identityN/A

                            \[\leadsto x \cdot \frac{t}{\mathsf{neg}\left(\left(1 - \color{blue}{1 \cdot z}\right)\right)} \]
                          5. metadata-evalN/A

                            \[\leadsto x \cdot \frac{t}{\mathsf{neg}\left(\left(1 - \color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} \cdot z\right)\right)} \]
                          6. fp-cancel-sign-sub-invN/A

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

                            \[\leadsto x \cdot \frac{t}{\mathsf{neg}\left(\left(1 + \color{blue}{\left(\mathsf{neg}\left(z\right)\right)}\right)\right)} \]
                          8. distribute-neg-inN/A

                            \[\leadsto x \cdot \frac{t}{\color{blue}{\left(\mathsf{neg}\left(1\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(z\right)\right)\right)\right)}} \]
                          9. metadata-evalN/A

                            \[\leadsto x \cdot \frac{t}{\color{blue}{-1} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(z\right)\right)\right)\right)} \]
                          10. remove-double-negN/A

                            \[\leadsto x \cdot \frac{t}{-1 + \color{blue}{z}} \]
                          11. lower-+.f6471.4

                            \[\leadsto x \cdot \frac{t}{\color{blue}{-1 + z}} \]
                        5. Applied rewrites71.4%

                          \[\leadsto x \cdot \color{blue}{\frac{t}{-1 + z}} \]
                        6. Taylor expanded in z around inf

                          \[\leadsto x \cdot \frac{t}{\color{blue}{z}} \]
                        7. Step-by-step derivation
                          1. Applied rewrites61.3%

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

                          if -7.40000000000000019e79 < t < 1.06e107

                          1. Initial program 92.7%

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

                            \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
                          4. Step-by-step derivation
                            1. associate-/l*N/A

                              \[\leadsto \color{blue}{x \cdot \frac{y}{z}} \]
                            2. *-commutativeN/A

                              \[\leadsto \color{blue}{\frac{y}{z} \cdot x} \]
                            3. lower-*.f64N/A

                              \[\leadsto \color{blue}{\frac{y}{z} \cdot x} \]
                            4. lower-/.f6475.8

                              \[\leadsto \color{blue}{\frac{y}{z}} \cdot x \]
                          5. Applied rewrites75.8%

                            \[\leadsto \color{blue}{\frac{y}{z} \cdot x} \]
                          6. Step-by-step derivation
                            1. Applied rewrites75.9%

                              \[\leadsto \frac{y \cdot x}{\color{blue}{z}} \]
                          7. Recombined 2 regimes into one program.
                          8. Final simplification71.4%

                            \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -7.4 \cdot 10^{+79} \lor \neg \left(t \leq 1.06 \cdot 10^{+107}\right):\\ \;\;\;\;x \cdot \frac{t}{z}\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \end{array} \]
                          9. Add Preprocessing

                          Alternative 9: 65.5% accurate, 1.2× speedup?

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

                            1. Initial program 99.7%

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

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

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

                              \[\leadsto \frac{t \cdot x}{\color{blue}{z - 1}} \]
                            6. Step-by-step derivation
                              1. Applied rewrites66.8%

                                \[\leadsto \frac{x}{z - 1} \cdot \color{blue}{t} \]
                              2. Taylor expanded in z around inf

                                \[\leadsto \frac{x}{z} \cdot t \]
                              3. Step-by-step derivation
                                1. Applied rewrites56.9%

                                  \[\leadsto \frac{x}{z} \cdot t \]

                                if -1.05000000000000001e83 < t < 1.15e139

                                1. Initial program 92.5%

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

                                  \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
                                4. Step-by-step derivation
                                  1. associate-/l*N/A

                                    \[\leadsto \color{blue}{x \cdot \frac{y}{z}} \]
                                  2. *-commutativeN/A

                                    \[\leadsto \color{blue}{\frac{y}{z} \cdot x} \]
                                  3. lower-*.f64N/A

                                    \[\leadsto \color{blue}{\frac{y}{z} \cdot x} \]
                                  4. lower-/.f6473.9

                                    \[\leadsto \color{blue}{\frac{y}{z}} \cdot x \]
                                5. Applied rewrites73.9%

                                  \[\leadsto \color{blue}{\frac{y}{z} \cdot x} \]
                              4. Recombined 2 regimes into one program.
                              5. Final simplification69.2%

                                \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.05 \cdot 10^{+83} \lor \neg \left(t \leq 1.15 \cdot 10^{+139}\right):\\ \;\;\;\;\frac{x}{z} \cdot t\\ \mathbf{else}:\\ \;\;\;\;\frac{y}{z} \cdot x\\ \end{array} \]
                              6. Add Preprocessing

                              Alternative 10: 64.5% accurate, 1.2× speedup?

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

                                1. Initial program 99.7%

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

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

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

                                  \[\leadsto \frac{t \cdot x}{\color{blue}{z - 1}} \]
                                6. Step-by-step derivation
                                  1. Applied rewrites66.8%

                                    \[\leadsto \frac{x}{z - 1} \cdot \color{blue}{t} \]
                                  2. Taylor expanded in z around inf

                                    \[\leadsto \frac{x}{z} \cdot t \]
                                  3. Step-by-step derivation
                                    1. Applied rewrites56.9%

                                      \[\leadsto \frac{x}{z} \cdot t \]

                                    if -1.8500000000000001e83 < t < 1.15e139

                                    1. Initial program 92.5%

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

                                      \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \frac{t \cdot x}{y \cdot \left(1 - z\right)} + \frac{x}{z}\right)} \]
                                    4. Applied rewrites79.3%

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

                                      \[\leadsto \frac{x}{z} \cdot y \]
                                    6. Step-by-step derivation
                                      1. Applied rewrites71.6%

                                        \[\leadsto \frac{x}{z} \cdot y \]
                                    7. Recombined 2 regimes into one program.
                                    8. Final simplification67.6%

                                      \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.85 \cdot 10^{+83} \lor \neg \left(t \leq 1.15 \cdot 10^{+139}\right):\\ \;\;\;\;\frac{x}{z} \cdot t\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{z} \cdot y\\ \end{array} \]
                                    9. Add Preprocessing

                                    Alternative 11: 43.0% accurate, 1.2× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -6500000000 \lor \neg \left(z \leq 1\right):\\ \;\;\;\;\frac{x}{z} \cdot t\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(-\mathsf{fma}\left(z, t, t\right)\right)\\ \end{array} \end{array} \]
                                    (FPCore (x y z t)
                                     :precision binary64
                                     (if (or (<= z -6500000000.0) (not (<= z 1.0)))
                                       (* (/ x z) t)
                                       (* x (- (fma z t t)))))
                                    double code(double x, double y, double z, double t) {
                                    	double tmp;
                                    	if ((z <= -6500000000.0) || !(z <= 1.0)) {
                                    		tmp = (x / z) * t;
                                    	} else {
                                    		tmp = x * -fma(z, t, t);
                                    	}
                                    	return tmp;
                                    }
                                    
                                    function code(x, y, z, t)
                                    	tmp = 0.0
                                    	if ((z <= -6500000000.0) || !(z <= 1.0))
                                    		tmp = Float64(Float64(x / z) * t);
                                    	else
                                    		tmp = Float64(x * Float64(-fma(z, t, t)));
                                    	end
                                    	return tmp
                                    end
                                    
                                    code[x_, y_, z_, t_] := If[Or[LessEqual[z, -6500000000.0], N[Not[LessEqual[z, 1.0]], $MachinePrecision]], N[(N[(x / z), $MachinePrecision] * t), $MachinePrecision], N[(x * (-N[(z * t + t), $MachinePrecision])), $MachinePrecision]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    \mathbf{if}\;z \leq -6500000000 \lor \neg \left(z \leq 1\right):\\
                                    \;\;\;\;\frac{x}{z} \cdot t\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;x \cdot \left(-\mathsf{fma}\left(z, t, t\right)\right)\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 2 regimes
                                    2. if z < -6.5e9 or 1 < z

                                      1. Initial program 94.3%

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

                                        \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \frac{t \cdot x}{y \cdot \left(1 - z\right)} + \frac{x}{z}\right)} \]
                                      4. Applied rewrites74.9%

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

                                        \[\leadsto \frac{t \cdot x}{\color{blue}{z - 1}} \]
                                      6. Step-by-step derivation
                                        1. Applied rewrites49.6%

                                          \[\leadsto \frac{x}{z - 1} \cdot \color{blue}{t} \]
                                        2. Taylor expanded in z around inf

                                          \[\leadsto \frac{x}{z} \cdot t \]
                                        3. Step-by-step derivation
                                          1. Applied rewrites49.6%

                                            \[\leadsto \frac{x}{z} \cdot t \]

                                          if -6.5e9 < z < 1

                                          1. Initial program 94.7%

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

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

                                              \[\leadsto x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{t}{1 - z}\right)\right)} \]
                                            2. distribute-neg-frac2N/A

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

                                              \[\leadsto x \cdot \color{blue}{\frac{t}{\mathsf{neg}\left(\left(1 - z\right)\right)}} \]
                                            4. *-lft-identityN/A

                                              \[\leadsto x \cdot \frac{t}{\mathsf{neg}\left(\left(1 - \color{blue}{1 \cdot z}\right)\right)} \]
                                            5. metadata-evalN/A

                                              \[\leadsto x \cdot \frac{t}{\mathsf{neg}\left(\left(1 - \color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} \cdot z\right)\right)} \]
                                            6. fp-cancel-sign-sub-invN/A

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

                                              \[\leadsto x \cdot \frac{t}{\mathsf{neg}\left(\left(1 + \color{blue}{\left(\mathsf{neg}\left(z\right)\right)}\right)\right)} \]
                                            8. distribute-neg-inN/A

                                              \[\leadsto x \cdot \frac{t}{\color{blue}{\left(\mathsf{neg}\left(1\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(z\right)\right)\right)\right)}} \]
                                            9. metadata-evalN/A

                                              \[\leadsto x \cdot \frac{t}{\color{blue}{-1} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(z\right)\right)\right)\right)} \]
                                            10. remove-double-negN/A

                                              \[\leadsto x \cdot \frac{t}{-1 + \color{blue}{z}} \]
                                            11. lower-+.f6428.3

                                              \[\leadsto x \cdot \frac{t}{\color{blue}{-1 + z}} \]
                                          5. Applied rewrites28.3%

                                            \[\leadsto x \cdot \color{blue}{\frac{t}{-1 + z}} \]
                                          6. Taylor expanded in z around 0

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

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

                                            \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -6500000000 \lor \neg \left(z \leq 1\right):\\ \;\;\;\;\frac{x}{z} \cdot t\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(-\mathsf{fma}\left(z, t, t\right)\right)\\ \end{array} \]
                                          10. Add Preprocessing

                                          Alternative 12: 23.3% accurate, 4.3× speedup?

                                          \[\begin{array}{l} \\ x \cdot \left(-t\right) \end{array} \]
                                          (FPCore (x y z t) :precision binary64 (* x (- t)))
                                          double code(double x, double y, double z, double t) {
                                          	return x * -t;
                                          }
                                          
                                          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)
                                          use fmin_fmax_functions
                                              real(8), intent (in) :: x
                                              real(8), intent (in) :: y
                                              real(8), intent (in) :: z
                                              real(8), intent (in) :: t
                                              code = x * -t
                                          end function
                                          
                                          public static double code(double x, double y, double z, double t) {
                                          	return x * -t;
                                          }
                                          
                                          def code(x, y, z, t):
                                          	return x * -t
                                          
                                          function code(x, y, z, t)
                                          	return Float64(x * Float64(-t))
                                          end
                                          
                                          function tmp = code(x, y, z, t)
                                          	tmp = x * -t;
                                          end
                                          
                                          code[x_, y_, z_, t_] := N[(x * (-t)), $MachinePrecision]
                                          
                                          \begin{array}{l}
                                          
                                          \\
                                          x \cdot \left(-t\right)
                                          \end{array}
                                          
                                          Derivation
                                          1. Initial program 94.5%

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

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

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

                                              \[\leadsto x \cdot \frac{y + \color{blue}{\left(\mathsf{neg}\left(t\right)\right)} \cdot z}{z} \]
                                            3. fp-cancel-sub-signN/A

                                              \[\leadsto x \cdot \frac{\color{blue}{y - t \cdot z}}{z} \]
                                            4. div-subN/A

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

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

                                              \[\leadsto x \cdot \left(\frac{y}{z} - t \cdot \color{blue}{1}\right) \]
                                            7. *-rgt-identityN/A

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

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

                                              \[\leadsto x \cdot \left(\color{blue}{\frac{y}{z}} - t\right) \]
                                          5. Applied rewrites65.8%

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

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

                                              \[\leadsto x \cdot \left(-t\right) \]
                                            2. Add Preprocessing

                                            Developer Target 1: 94.5% accurate, 0.3× speedup?

                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \left(\frac{y}{z} - t \cdot \frac{1}{1 - z}\right)\\ t_2 := x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)\\ \mathbf{if}\;t\_2 < -7.623226303312042 \cdot 10^{-196}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 < 1.4133944927702302 \cdot 10^{-211}:\\ \;\;\;\;\frac{y \cdot x}{z} + \left(-\frac{t \cdot x}{1 - z}\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                            (FPCore (x y z t)
                                             :precision binary64
                                             (let* ((t_1 (* x (- (/ y z) (* t (/ 1.0 (- 1.0 z))))))
                                                    (t_2 (* x (- (/ y z) (/ t (- 1.0 z))))))
                                               (if (< t_2 -7.623226303312042e-196)
                                                 t_1
                                                 (if (< t_2 1.4133944927702302e-211)
                                                   (+ (/ (* y x) z) (- (/ (* t x) (- 1.0 z))))
                                                   t_1))))
                                            double code(double x, double y, double z, double t) {
                                            	double t_1 = x * ((y / z) - (t * (1.0 / (1.0 - z))));
                                            	double t_2 = x * ((y / z) - (t / (1.0 - z)));
                                            	double tmp;
                                            	if (t_2 < -7.623226303312042e-196) {
                                            		tmp = t_1;
                                            	} else if (t_2 < 1.4133944927702302e-211) {
                                            		tmp = ((y * x) / z) + -((t * 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)
                                            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) :: t_1
                                                real(8) :: t_2
                                                real(8) :: tmp
                                                t_1 = x * ((y / z) - (t * (1.0d0 / (1.0d0 - z))))
                                                t_2 = x * ((y / z) - (t / (1.0d0 - z)))
                                                if (t_2 < (-7.623226303312042d-196)) then
                                                    tmp = t_1
                                                else if (t_2 < 1.4133944927702302d-211) then
                                                    tmp = ((y * x) / z) + -((t * 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 t_1 = x * ((y / z) - (t * (1.0 / (1.0 - z))));
                                            	double t_2 = x * ((y / z) - (t / (1.0 - z)));
                                            	double tmp;
                                            	if (t_2 < -7.623226303312042e-196) {
                                            		tmp = t_1;
                                            	} else if (t_2 < 1.4133944927702302e-211) {
                                            		tmp = ((y * x) / z) + -((t * x) / (1.0 - z));
                                            	} else {
                                            		tmp = t_1;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            def code(x, y, z, t):
                                            	t_1 = x * ((y / z) - (t * (1.0 / (1.0 - z))))
                                            	t_2 = x * ((y / z) - (t / (1.0 - z)))
                                            	tmp = 0
                                            	if t_2 < -7.623226303312042e-196:
                                            		tmp = t_1
                                            	elif t_2 < 1.4133944927702302e-211:
                                            		tmp = ((y * x) / z) + -((t * x) / (1.0 - z))
                                            	else:
                                            		tmp = t_1
                                            	return tmp
                                            
                                            function code(x, y, z, t)
                                            	t_1 = Float64(x * Float64(Float64(y / z) - Float64(t * Float64(1.0 / Float64(1.0 - z)))))
                                            	t_2 = Float64(x * Float64(Float64(y / z) - Float64(t / Float64(1.0 - z))))
                                            	tmp = 0.0
                                            	if (t_2 < -7.623226303312042e-196)
                                            		tmp = t_1;
                                            	elseif (t_2 < 1.4133944927702302e-211)
                                            		tmp = Float64(Float64(Float64(y * x) / z) + Float64(-Float64(Float64(t * x) / Float64(1.0 - z))));
                                            	else
                                            		tmp = t_1;
                                            	end
                                            	return tmp
                                            end
                                            
                                            function tmp_2 = code(x, y, z, t)
                                            	t_1 = x * ((y / z) - (t * (1.0 / (1.0 - z))));
                                            	t_2 = x * ((y / z) - (t / (1.0 - z)));
                                            	tmp = 0.0;
                                            	if (t_2 < -7.623226303312042e-196)
                                            		tmp = t_1;
                                            	elseif (t_2 < 1.4133944927702302e-211)
                                            		tmp = ((y * x) / z) + -((t * x) / (1.0 - z));
                                            	else
                                            		tmp = t_1;
                                            	end
                                            	tmp_2 = tmp;
                                            end
                                            
                                            code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[(N[(y / z), $MachinePrecision] - N[(t * N[(1.0 / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y / z), $MachinePrecision] - N[(t / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t$95$2, -7.623226303312042e-196], t$95$1, If[Less[t$95$2, 1.4133944927702302e-211], N[(N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision] + (-N[(N[(t * x), $MachinePrecision] / N[(1.0 - z), $MachinePrecision]), $MachinePrecision])), $MachinePrecision], t$95$1]]]]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            \begin{array}{l}
                                            t_1 := x \cdot \left(\frac{y}{z} - t \cdot \frac{1}{1 - z}\right)\\
                                            t_2 := x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)\\
                                            \mathbf{if}\;t\_2 < -7.623226303312042 \cdot 10^{-196}:\\
                                            \;\;\;\;t\_1\\
                                            
                                            \mathbf{elif}\;t\_2 < 1.4133944927702302 \cdot 10^{-211}:\\
                                            \;\;\;\;\frac{y \cdot x}{z} + \left(-\frac{t \cdot x}{1 - z}\right)\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;t\_1\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            

                                            Reproduce

                                            ?
                                            herbie shell --seed 2024359 
                                            (FPCore (x y z t)
                                              :name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, C"
                                              :precision binary64
                                            
                                              :alt
                                              (! :herbie-platform default (if (< (* x (- (/ y z) (/ t (- 1 z)))) -3811613151656021/5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (* x (- (/ y z) (* t (/ 1 (- 1 z))))) (if (< (* x (- (/ y z) (/ t (- 1 z)))) 7066972463851151/50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (/ (* y x) z) (- (/ (* t x) (- 1 z)))) (* x (- (/ y z) (* t (/ 1 (- 1 z))))))))
                                            
                                              (* x (- (/ y z) (/ t (- 1.0 z)))))