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

Percentage Accurate: 94.3% → 97.9%
Time: 4.8s
Alternatives: 12
Speedup: 0.9×

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.3% 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: 97.9% accurate, 0.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{y}{z} - \frac{t}{1 - z}\\ \mathbf{if}\;t\_1 \leq -\infty \lor \neg \left(t\_1 \leq 5 \cdot 10^{+292}\right):\\ \;\;\;\;y \cdot \frac{x}{z}\\ \mathbf{else}:\\ \;\;\;\;x \cdot t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (let* ((t_1 (- (/ y z) (/ t (- 1.0 z)))))
   (if (or (<= t_1 (- INFINITY)) (not (<= t_1 5e+292)))
     (* y (/ x z))
     (* x t_1))))
double code(double x, double y, double z, double t) {
	double t_1 = (y / z) - (t / (1.0 - z));
	double tmp;
	if ((t_1 <= -((double) INFINITY)) || !(t_1 <= 5e+292)) {
		tmp = y * (x / z);
	} else {
		tmp = x * t_1;
	}
	return tmp;
}
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 <= -Double.POSITIVE_INFINITY) || !(t_1 <= 5e+292)) {
		tmp = y * (x / z);
	} else {
		tmp = x * t_1;
	}
	return tmp;
}
def code(x, y, z, t):
	t_1 = (y / z) - (t / (1.0 - z))
	tmp = 0
	if (t_1 <= -math.inf) or not (t_1 <= 5e+292):
		tmp = y * (x / z)
	else:
		tmp = x * t_1
	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 <= Float64(-Inf)) || !(t_1 <= 5e+292))
		tmp = Float64(y * Float64(x / z));
	else
		tmp = Float64(x * t_1);
	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 <= -Inf) || ~((t_1 <= 5e+292)))
		tmp = y * (x / z);
	else
		tmp = x * t_1;
	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[Or[LessEqual[t$95$1, (-Infinity)], N[Not[LessEqual[t$95$1, 5e+292]], $MachinePrecision]], N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision], N[(x * t$95$1), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{y}{z} - \frac{t}{1 - z}\\
\mathbf{if}\;t\_1 \leq -\infty \lor \neg \left(t\_1 \leq 5 \cdot 10^{+292}\right):\\
\;\;\;\;y \cdot \frac{x}{z}\\

\mathbf{else}:\\
\;\;\;\;x \cdot t\_1\\


\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))) < -inf.0 or 4.9999999999999996e292 < (-.f64 (/.f64 y z) (/.f64 t (-.f64 #s(literal 1 binary64) z)))

    1. Initial program 69.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-/.f6469.3

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

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

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

      if -inf.0 < (-.f64 (/.f64 y z) (/.f64 t (-.f64 #s(literal 1 binary64) z))) < 4.9999999999999996e292

      1. Initial program 98.0%

        \[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right) \]
      2. Add Preprocessing
    7. Recombined 2 regimes into one program.
    8. Final simplification98.3%

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

    Alternative 2: 89.0% accurate, 0.9× speedup?

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

      1. Initial program 96.8%

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

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

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

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

        if -600 < z < 1

        1. Initial program 91.1%

          \[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. div-addN/A

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

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

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

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

            \[\leadsto x \cdot \color{blue}{\left(\frac{y}{z} - 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-/.f6490.5

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

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

        if 2.4000000000000001e214 < z

        1. Initial program 94.8%

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

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

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

      Alternative 3: 95.1% accurate, 0.9× speedup?

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

        1. Initial program 96.5%

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

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

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

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

            \[\leadsto x \cdot \frac{y + \color{blue}{1} \cdot t}{z} \]
          4. *-lft-identityN/A

            \[\leadsto x \cdot \frac{y + \color{blue}{t}}{z} \]
          5. +-commutativeN/A

            \[\leadsto x \cdot \frac{\color{blue}{t + y}}{z} \]
          6. lower-+.f6496.4

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

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

        if -600 < z < 1

        1. Initial program 91.1%

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

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

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

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

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

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

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

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

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

            \[\leadsto \frac{x \cdot y - \color{blue}{x \cdot \left(t \cdot z\right)}}{z} \]
          9. distribute-lft-out--N/A

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

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

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

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

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

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

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

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

            \[\leadsto \frac{x \cdot \color{blue}{\left(y - t \cdot z\right)}}{z} \]
          18. lower-*.f6496.2

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

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

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

      Alternative 4: 93.0% accurate, 0.9× speedup?

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

        1. Initial program 96.5%

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

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

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

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

            \[\leadsto x \cdot \frac{y + \color{blue}{1} \cdot t}{z} \]
          4. *-lft-identityN/A

            \[\leadsto x \cdot \frac{y + \color{blue}{t}}{z} \]
          5. +-commutativeN/A

            \[\leadsto x \cdot \frac{\color{blue}{t + y}}{z} \]
          6. lower-+.f6496.4

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

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

        if -600 < z < 1

        1. Initial program 91.1%

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

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

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

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

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

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

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

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

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

            \[\leadsto \frac{x \cdot y - \color{blue}{x \cdot \left(t \cdot z\right)}}{z} \]
          9. distribute-lft-out--N/A

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

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

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

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

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

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

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

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

            \[\leadsto \frac{x \cdot \color{blue}{\left(y - t \cdot z\right)}}{z} \]
          18. lower-*.f6496.2

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

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

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

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

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

        Alternative 5: 93.5% accurate, 1.1× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -600 \lor \neg \left(z \leq 1\right):\\ \;\;\;\;x \cdot \frac{t + y}{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 -600.0) (not (<= z 1.0)))
           (* x (/ (+ t y) z))
           (* x (- (/ y z) t))))
        double code(double x, double y, double z, double t) {
        	double tmp;
        	if ((z <= -600.0) || !(z <= 1.0)) {
        		tmp = x * ((t + y) / 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 <= (-600.0d0)) .or. (.not. (z <= 1.0d0))) then
                tmp = x * ((t + y) / 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 <= -600.0) || !(z <= 1.0)) {
        		tmp = x * ((t + y) / z);
        	} else {
        		tmp = x * ((y / z) - t);
        	}
        	return tmp;
        }
        
        def code(x, y, z, t):
        	tmp = 0
        	if (z <= -600.0) or not (z <= 1.0):
        		tmp = x * ((t + y) / z)
        	else:
        		tmp = x * ((y / z) - t)
        	return tmp
        
        function code(x, y, z, t)
        	tmp = 0.0
        	if ((z <= -600.0) || !(z <= 1.0))
        		tmp = Float64(x * Float64(Float64(t + y) / 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 <= -600.0) || ~((z <= 1.0)))
        		tmp = x * ((t + y) / z);
        	else
        		tmp = x * ((y / z) - t);
        	end
        	tmp_2 = tmp;
        end
        
        code[x_, y_, z_, t_] := If[Or[LessEqual[z, -600.0], N[Not[LessEqual[z, 1.0]], $MachinePrecision]], N[(x * N[(N[(t + y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y / z), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;z \leq -600 \lor \neg \left(z \leq 1\right):\\
        \;\;\;\;x \cdot \frac{t + y}{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 < -600 or 1 < z

          1. Initial program 96.5%

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

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

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

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

              \[\leadsto x \cdot \frac{y + \color{blue}{1} \cdot t}{z} \]
            4. *-lft-identityN/A

              \[\leadsto x \cdot \frac{y + \color{blue}{t}}{z} \]
            5. +-commutativeN/A

              \[\leadsto x \cdot \frac{\color{blue}{t + y}}{z} \]
            6. lower-+.f6496.4

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

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

          if -600 < z < 1

          1. Initial program 91.1%

            \[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. div-addN/A

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

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

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

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

              \[\leadsto x \cdot \color{blue}{\left(\frac{y}{z} - 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-/.f6490.5

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

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

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

        Alternative 6: 78.2% accurate, 1.1× speedup?

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

          1. Initial program 96.2%

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

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

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

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

            if -1.0500000000000001e-97 < z < 1

            1. Initial program 90.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}{\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-/.f6472.1

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

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

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

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

            Alternative 7: 67.7% accurate, 1.2× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -3.05 \cdot 10^{+150} \lor \neg \left(t \leq 1.2 \cdot 10^{+100}\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 -3.05e+150) (not (<= t 1.2e+100))) (* x (/ t z)) (/ (* y x) z)))
            double code(double x, double y, double z, double t) {
            	double tmp;
            	if ((t <= -3.05e+150) || !(t <= 1.2e+100)) {
            		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 <= (-3.05d+150)) .or. (.not. (t <= 1.2d+100))) 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 <= -3.05e+150) || !(t <= 1.2e+100)) {
            		tmp = x * (t / z);
            	} else {
            		tmp = (y * x) / z;
            	}
            	return tmp;
            }
            
            def code(x, y, z, t):
            	tmp = 0
            	if (t <= -3.05e+150) or not (t <= 1.2e+100):
            		tmp = x * (t / z)
            	else:
            		tmp = (y * x) / z
            	return tmp
            
            function code(x, y, z, t)
            	tmp = 0.0
            	if ((t <= -3.05e+150) || !(t <= 1.2e+100))
            		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 <= -3.05e+150) || ~((t <= 1.2e+100)))
            		tmp = x * (t / z);
            	else
            		tmp = (y * x) / z;
            	end
            	tmp_2 = tmp;
            end
            
            code[x_, y_, z_, t_] := If[Or[LessEqual[t, -3.05e+150], N[Not[LessEqual[t, 1.2e+100]], $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 -3.05 \cdot 10^{+150} \lor \neg \left(t \leq 1.2 \cdot 10^{+100}\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 < -3.05000000000000013e150 or 1.20000000000000006e100 < t

              1. Initial program 97.2%

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

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

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

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

                  \[\leadsto x \cdot \frac{y + \color{blue}{1} \cdot t}{z} \]
                4. *-lft-identityN/A

                  \[\leadsto x \cdot \frac{y + \color{blue}{t}}{z} \]
                5. +-commutativeN/A

                  \[\leadsto x \cdot \frac{\color{blue}{t + y}}{z} \]
                6. lower-+.f6476.3

                  \[\leadsto x \cdot \frac{\color{blue}{t + y}}{z} \]
              5. Applied rewrites76.3%

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

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

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

                if -3.05000000000000013e150 < t < 1.20000000000000006e100

                1. Initial program 92.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-/.f6477.8

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

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

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

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

                Alternative 8: 65.2% accurate, 1.2× speedup?

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

                  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}{\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-/.f6472.6

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

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

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

                    if -3.1000000000000001e-194 < y < 1.14999999999999997e-119

                    1. Initial program 93.2%

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

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

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

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

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

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

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

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

                      Alternative 9: 40.1% accurate, 1.2× speedup?

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

                        1. Initial program 93.3%

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

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

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

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

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

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

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

                            if 7.7999999999999998e-253 < z < 1

                            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 0

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

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \frac{t \cdot x}{z + \color{blue}{-1}} \]
                              13. metadata-evalN/A

                                \[\leadsto \frac{t \cdot x}{z + \color{blue}{1 \cdot -1}} \]
                              14. metadata-evalN/A

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

                                \[\leadsto \frac{t \cdot x}{\color{blue}{z - -1 \cdot -1}} \]
                              16. metadata-evalN/A

                                \[\leadsto \frac{t \cdot x}{z - \color{blue}{1}} \]
                              17. lower--.f6433.3

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

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

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

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

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

                                  \[\leadsto \mathsf{fma}\left(t, z, t\right) \cdot \color{blue}{\left(-x\right)} \]
                              4. Recombined 2 regimes into one program.
                              5. Final simplification40.7%

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

                              Alternative 10: 64.9% accurate, 1.2× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -2.15 \cdot 10^{-193}:\\ \;\;\;\;\frac{y}{z} \cdot x\\ \mathbf{elif}\;y \leq 1.15 \cdot 10^{-119}:\\ \;\;\;\;\frac{x}{z} \cdot t\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{x}{z}\\ \end{array} \end{array} \]
                              (FPCore (x y z t)
                               :precision binary64
                               (if (<= y -2.15e-193)
                                 (* (/ y z) x)
                                 (if (<= y 1.15e-119) (* (/ x z) t) (* y (/ x z)))))
                              double code(double x, double y, double z, double t) {
                              	double tmp;
                              	if (y <= -2.15e-193) {
                              		tmp = (y / z) * x;
                              	} else if (y <= 1.15e-119) {
                              		tmp = (x / z) * t;
                              	} 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 (y <= (-2.15d-193)) then
                                      tmp = (y / z) * x
                                  else if (y <= 1.15d-119) then
                                      tmp = (x / z) * t
                                  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 (y <= -2.15e-193) {
                              		tmp = (y / z) * x;
                              	} else if (y <= 1.15e-119) {
                              		tmp = (x / z) * t;
                              	} else {
                              		tmp = y * (x / z);
                              	}
                              	return tmp;
                              }
                              
                              def code(x, y, z, t):
                              	tmp = 0
                              	if y <= -2.15e-193:
                              		tmp = (y / z) * x
                              	elif y <= 1.15e-119:
                              		tmp = (x / z) * t
                              	else:
                              		tmp = y * (x / z)
                              	return tmp
                              
                              function code(x, y, z, t)
                              	tmp = 0.0
                              	if (y <= -2.15e-193)
                              		tmp = Float64(Float64(y / z) * x);
                              	elseif (y <= 1.15e-119)
                              		tmp = Float64(Float64(x / z) * t);
                              	else
                              		tmp = Float64(y * Float64(x / z));
                              	end
                              	return tmp
                              end
                              
                              function tmp_2 = code(x, y, z, t)
                              	tmp = 0.0;
                              	if (y <= -2.15e-193)
                              		tmp = (y / z) * x;
                              	elseif (y <= 1.15e-119)
                              		tmp = (x / z) * t;
                              	else
                              		tmp = y * (x / z);
                              	end
                              	tmp_2 = tmp;
                              end
                              
                              code[x_, y_, z_, t_] := If[LessEqual[y, -2.15e-193], N[(N[(y / z), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y, 1.15e-119], N[(N[(x / z), $MachinePrecision] * t), $MachinePrecision], N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              \mathbf{if}\;y \leq -2.15 \cdot 10^{-193}:\\
                              \;\;\;\;\frac{y}{z} \cdot x\\
                              
                              \mathbf{elif}\;y \leq 1.15 \cdot 10^{-119}:\\
                              \;\;\;\;\frac{x}{z} \cdot t\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;y \cdot \frac{x}{z}\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 3 regimes
                              2. if y < -2.1500000000000001e-193

                                1. Initial program 94.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}{\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.0

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

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

                                if -2.1500000000000001e-193 < y < 1.14999999999999997e-119

                                1. Initial program 93.3%

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

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

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

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

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

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

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

                                    if 1.14999999999999997e-119 < y

                                    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-/.f6472.8

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

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

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

                                    Alternative 11: 74.6% accurate, 1.3× speedup?

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

                                      1. Initial program 92.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-+.f6476.1

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

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

                                      if 1.00000000000000004e-10 < x

                                      1. Initial program 96.9%

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

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

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

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

                                      Alternative 12: 23.5% accurate, 4.3× speedup?

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

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \frac{x \cdot y - \color{blue}{x \cdot \left(t \cdot z\right)}}{z} \]
                                        9. distribute-lft-out--N/A

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

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

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

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

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

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

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

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

                                          \[\leadsto \frac{x \cdot \color{blue}{\left(y - t \cdot z\right)}}{z} \]
                                        18. lower-*.f6464.4

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

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

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

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

                                        Developer Target 1: 94.8% 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 2025017 
                                        (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)))))