Data.Random.Distribution.Triangular:triangularCDF from random-fu-0.2.6.2, B

Percentage Accurate: 89.2% → 97.3%
Time: 3.4s
Alternatives: 14
Speedup: 1.0×

Specification

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

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

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

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

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

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

Alternative 1: 97.3% accurate, 0.3× speedup?

\[\begin{array}{l} [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\ \\ \begin{array}{l} t_1 := \left(y - z\right) \cdot \left(t - z\right)\\ \mathbf{if}\;t\_1 \leq -\infty:\\ \;\;\;\;\frac{\frac{x}{y - z}}{t}\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+194}:\\ \;\;\;\;\frac{x}{t\_1}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{t - z}}{y - z}\\ \end{array} \end{array} \]
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
(FPCore (x y z t)
 :precision binary64
 (let* ((t_1 (* (- y z) (- t z))))
   (if (<= t_1 (- INFINITY))
     (/ (/ x (- y z)) t)
     (if (<= t_1 5e+194) (/ x t_1) (/ (/ x (- t z)) (- y z))))))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
	double t_1 = (y - z) * (t - z);
	double tmp;
	if (t_1 <= -((double) INFINITY)) {
		tmp = (x / (y - z)) / t;
	} else if (t_1 <= 5e+194) {
		tmp = x / t_1;
	} else {
		tmp = (x / (t - z)) / (y - z);
	}
	return tmp;
}
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
	double t_1 = (y - z) * (t - z);
	double tmp;
	if (t_1 <= -Double.POSITIVE_INFINITY) {
		tmp = (x / (y - z)) / t;
	} else if (t_1 <= 5e+194) {
		tmp = x / t_1;
	} else {
		tmp = (x / (t - z)) / (y - z);
	}
	return tmp;
}
[x, y, z, t] = sort([x, y, z, t])
def code(x, y, z, t):
	t_1 = (y - z) * (t - z)
	tmp = 0
	if t_1 <= -math.inf:
		tmp = (x / (y - z)) / t
	elif t_1 <= 5e+194:
		tmp = x / t_1
	else:
		tmp = (x / (t - z)) / (y - z)
	return tmp
x, y, z, t = sort([x, y, z, t])
function code(x, y, z, t)
	t_1 = Float64(Float64(y - z) * Float64(t - z))
	tmp = 0.0
	if (t_1 <= Float64(-Inf))
		tmp = Float64(Float64(x / Float64(y - z)) / t);
	elseif (t_1 <= 5e+194)
		tmp = Float64(x / t_1);
	else
		tmp = Float64(Float64(x / Float64(t - z)) / Float64(y - z));
	end
	return tmp
end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp_2 = code(x, y, z, t)
	t_1 = (y - z) * (t - z);
	tmp = 0.0;
	if (t_1 <= -Inf)
		tmp = (x / (y - z)) / t;
	elseif (t_1 <= 5e+194)
		tmp = x / t_1;
	else
		tmp = (x / (t - z)) / (y - z);
	end
	tmp_2 = tmp;
end
NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y - z), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(x / N[(y - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[t$95$1, 5e+194], N[(x / t$95$1), $MachinePrecision], N[(N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\begin{array}{l}
t_1 := \left(y - z\right) \cdot \left(t - z\right)\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\frac{\frac{x}{y - z}}{t}\\

\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+194}:\\
\;\;\;\;\frac{x}{t\_1}\\

\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{t - z}}{y - z}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (*.f64 (-.f64 y z) (-.f64 t z)) < -inf.0

    1. Initial program 71.9%

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{\frac{x}{y - z}}{t - z}} \]
      6. lower-/.f64N/A

        \[\leadsto \color{blue}{\frac{\frac{x}{y - z}}{t - z}} \]
      7. lower-/.f64N/A

        \[\leadsto \frac{\color{blue}{\frac{x}{y - z}}}{t - z} \]
      8. lift--.f64N/A

        \[\leadsto \frac{\frac{x}{\color{blue}{y - z}}}{t - z} \]
      9. lift--.f6499.9

        \[\leadsto \frac{\frac{x}{y - z}}{\color{blue}{t - z}} \]
    3. Applied rewrites99.9%

      \[\leadsto \color{blue}{\frac{\frac{x}{y - z}}{t - z}} \]
    4. Taylor expanded in z around 0

      \[\leadsto \frac{\frac{x}{y - z}}{\color{blue}{t}} \]
    5. Step-by-step derivation
      1. Applied rewrites85.2%

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

      if -inf.0 < (*.f64 (-.f64 y z) (-.f64 t z)) < 4.99999999999999989e194

      1. Initial program 97.8%

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

      if 4.99999999999999989e194 < (*.f64 (-.f64 y z) (-.f64 t z))

      1. Initial program 81.9%

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

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

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

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

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

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

          \[\leadsto \color{blue}{\frac{\frac{x}{t - z}}{y - z}} \]
        7. lower-/.f64N/A

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

          \[\leadsto \frac{\color{blue}{\frac{x}{t - z}}}{y - z} \]
        9. lift--.f64N/A

          \[\leadsto \frac{\frac{x}{\color{blue}{t - z}}}{y - z} \]
        10. lift--.f6499.6

          \[\leadsto \frac{\frac{x}{t - z}}{\color{blue}{y - z}} \]
      3. Applied rewrites99.6%

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

    Alternative 2: 96.9% accurate, 1.0× speedup?

    \[\begin{array}{l} [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\ \\ \frac{\frac{x}{y - z}}{t - z} \end{array} \]
    NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
    (FPCore (x y z t) :precision binary64 (/ (/ x (- y z)) (- t z)))
    assert(x < y && y < z && z < t);
    double code(double x, double y, double z, double t) {
    	return (x / (y - z)) / (t - z);
    }
    
    NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
    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 - z)
    end function
    
    assert x < y && y < z && z < t;
    public static double code(double x, double y, double z, double t) {
    	return (x / (y - z)) / (t - z);
    }
    
    [x, y, z, t] = sort([x, y, z, t])
    def code(x, y, z, t):
    	return (x / (y - z)) / (t - z)
    
    x, y, z, t = sort([x, y, z, t])
    function code(x, y, z, t)
    	return Float64(Float64(x / Float64(y - z)) / Float64(t - z))
    end
    
    x, y, z, t = num2cell(sort([x, y, z, t])){:}
    function tmp = code(x, y, z, t)
    	tmp = (x / (y - z)) / (t - z);
    end
    
    NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
    code[x_, y_, z_, t_] := N[(N[(x / N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]
    
    \begin{array}{l}
    [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
    \\
    \frac{\frac{x}{y - z}}{t - z}
    \end{array}
    
    Derivation
    1. Initial program 89.2%

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{\frac{x}{y - z}}{t - z}} \]
      6. lower-/.f64N/A

        \[\leadsto \color{blue}{\frac{\frac{x}{y - z}}{t - z}} \]
      7. lower-/.f64N/A

        \[\leadsto \frac{\color{blue}{\frac{x}{y - z}}}{t - z} \]
      8. lift--.f64N/A

        \[\leadsto \frac{\frac{x}{\color{blue}{y - z}}}{t - z} \]
      9. lift--.f6496.9

        \[\leadsto \frac{\frac{x}{y - z}}{\color{blue}{t - z}} \]
    3. Applied rewrites96.9%

      \[\leadsto \color{blue}{\frac{\frac{x}{y - z}}{t - z}} \]
    4. Add Preprocessing

    Alternative 3: 90.7% accurate, 0.7× speedup?

    \[\begin{array}{l} [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\ \\ \begin{array}{l} \mathbf{if}\;t \leq 4.8 \cdot 10^{+185}:\\ \;\;\;\;\frac{x}{\left(y - z\right) \cdot \left(t - z\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{t}}{y - z}\\ \end{array} \end{array} \]
    NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
    (FPCore (x y z t)
     :precision binary64
     (if (<= t 4.8e+185) (/ x (* (- y z) (- t z))) (/ (/ x t) (- y z))))
    assert(x < y && y < z && z < t);
    double code(double x, double y, double z, double t) {
    	double tmp;
    	if (t <= 4.8e+185) {
    		tmp = x / ((y - z) * (t - z));
    	} else {
    		tmp = (x / t) / (y - z);
    	}
    	return tmp;
    }
    
    NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
    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 <= 4.8d+185) then
            tmp = x / ((y - z) * (t - z))
        else
            tmp = (x / t) / (y - z)
        end if
        code = tmp
    end function
    
    assert x < y && y < z && z < t;
    public static double code(double x, double y, double z, double t) {
    	double tmp;
    	if (t <= 4.8e+185) {
    		tmp = x / ((y - z) * (t - z));
    	} else {
    		tmp = (x / t) / (y - z);
    	}
    	return tmp;
    }
    
    [x, y, z, t] = sort([x, y, z, t])
    def code(x, y, z, t):
    	tmp = 0
    	if t <= 4.8e+185:
    		tmp = x / ((y - z) * (t - z))
    	else:
    		tmp = (x / t) / (y - z)
    	return tmp
    
    x, y, z, t = sort([x, y, z, t])
    function code(x, y, z, t)
    	tmp = 0.0
    	if (t <= 4.8e+185)
    		tmp = Float64(x / Float64(Float64(y - z) * Float64(t - z)));
    	else
    		tmp = Float64(Float64(x / t) / Float64(y - z));
    	end
    	return tmp
    end
    
    x, y, z, t = num2cell(sort([x, y, z, t])){:}
    function tmp_2 = code(x, y, z, t)
    	tmp = 0.0;
    	if (t <= 4.8e+185)
    		tmp = x / ((y - z) * (t - z));
    	else
    		tmp = (x / t) / (y - z);
    	end
    	tmp_2 = tmp;
    end
    
    NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
    code[x_, y_, z_, t_] := If[LessEqual[t, 4.8e+185], N[(x / N[(N[(y - z), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / t), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]]
    
    \begin{array}{l}
    [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
    \\
    \begin{array}{l}
    \mathbf{if}\;t \leq 4.8 \cdot 10^{+185}:\\
    \;\;\;\;\frac{x}{\left(y - z\right) \cdot \left(t - z\right)}\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{\frac{x}{t}}{y - z}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if t < 4.79999999999999978e185

      1. Initial program 90.0%

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

      if 4.79999999999999978e185 < t

      1. Initial program 86.0%

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

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

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

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

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

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

          \[\leadsto \color{blue}{\frac{\frac{x}{t - z}}{y - z}} \]
        7. lower-/.f64N/A

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

          \[\leadsto \frac{\color{blue}{\frac{x}{t - z}}}{y - z} \]
        9. lift--.f64N/A

          \[\leadsto \frac{\frac{x}{\color{blue}{t - z}}}{y - z} \]
        10. lift--.f6495.6

          \[\leadsto \frac{\frac{x}{t - z}}{\color{blue}{y - z}} \]
      3. Applied rewrites95.6%

        \[\leadsto \color{blue}{\frac{\frac{x}{t - z}}{y - z}} \]
      4. Taylor expanded in z around 0

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

          \[\leadsto \frac{\frac{x}{\color{blue}{t}}}{y - z} \]
      6. Recombined 2 regimes into one program.
      7. Add Preprocessing

      Alternative 4: 81.4% accurate, 0.6× speedup?

      \[\begin{array}{l} [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\ \\ \begin{array}{l} \mathbf{if}\;t \leq -1.3 \cdot 10^{-21}:\\ \;\;\;\;\frac{\frac{x}{t - z}}{y}\\ \mathbf{elif}\;t \leq 2850000000000:\\ \;\;\;\;\frac{\frac{x}{-z}}{y - z}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{y - z}}{t}\\ \end{array} \end{array} \]
      NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
      (FPCore (x y z t)
       :precision binary64
       (if (<= t -1.3e-21)
         (/ (/ x (- t z)) y)
         (if (<= t 2850000000000.0) (/ (/ x (- z)) (- y z)) (/ (/ x (- y z)) t))))
      assert(x < y && y < z && z < t);
      double code(double x, double y, double z, double t) {
      	double tmp;
      	if (t <= -1.3e-21) {
      		tmp = (x / (t - z)) / y;
      	} else if (t <= 2850000000000.0) {
      		tmp = (x / -z) / (y - z);
      	} else {
      		tmp = (x / (y - z)) / t;
      	}
      	return tmp;
      }
      
      NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
      module fmin_fmax_functions
          implicit none
          private
          public fmax
          public fmin
      
          interface fmax
              module procedure fmax88
              module procedure fmax44
              module procedure fmax84
              module procedure fmax48
          end interface
          interface fmin
              module procedure fmin88
              module procedure fmin44
              module procedure fmin84
              module procedure fmin48
          end interface
      contains
          real(8) function fmax88(x, y) result (res)
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
          end function
          real(4) function fmax44(x, y) result (res)
              real(4), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
          end function
          real(8) function fmax84(x, y) result(res)
              real(8), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
          end function
          real(8) function fmax48(x, y) result(res)
              real(4), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
          end function
          real(8) function fmin88(x, y) result (res)
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
          end function
          real(4) function fmin44(x, y) result (res)
              real(4), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
          end function
          real(8) function fmin84(x, y) result(res)
              real(8), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
          end function
          real(8) function fmin48(x, y) result(res)
              real(4), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
          end function
      end module
      
      real(8) function code(x, y, z, t)
      use fmin_fmax_functions
          real(8), intent (in) :: x
          real(8), intent (in) :: y
          real(8), intent (in) :: z
          real(8), intent (in) :: t
          real(8) :: tmp
          if (t <= (-1.3d-21)) then
              tmp = (x / (t - z)) / y
          else if (t <= 2850000000000.0d0) then
              tmp = (x / -z) / (y - z)
          else
              tmp = (x / (y - z)) / t
          end if
          code = tmp
      end function
      
      assert x < y && y < z && z < t;
      public static double code(double x, double y, double z, double t) {
      	double tmp;
      	if (t <= -1.3e-21) {
      		tmp = (x / (t - z)) / y;
      	} else if (t <= 2850000000000.0) {
      		tmp = (x / -z) / (y - z);
      	} else {
      		tmp = (x / (y - z)) / t;
      	}
      	return tmp;
      }
      
      [x, y, z, t] = sort([x, y, z, t])
      def code(x, y, z, t):
      	tmp = 0
      	if t <= -1.3e-21:
      		tmp = (x / (t - z)) / y
      	elif t <= 2850000000000.0:
      		tmp = (x / -z) / (y - z)
      	else:
      		tmp = (x / (y - z)) / t
      	return tmp
      
      x, y, z, t = sort([x, y, z, t])
      function code(x, y, z, t)
      	tmp = 0.0
      	if (t <= -1.3e-21)
      		tmp = Float64(Float64(x / Float64(t - z)) / y);
      	elseif (t <= 2850000000000.0)
      		tmp = Float64(Float64(x / Float64(-z)) / Float64(y - z));
      	else
      		tmp = Float64(Float64(x / Float64(y - z)) / t);
      	end
      	return tmp
      end
      
      x, y, z, t = num2cell(sort([x, y, z, t])){:}
      function tmp_2 = code(x, y, z, t)
      	tmp = 0.0;
      	if (t <= -1.3e-21)
      		tmp = (x / (t - z)) / y;
      	elseif (t <= 2850000000000.0)
      		tmp = (x / -z) / (y - z);
      	else
      		tmp = (x / (y - z)) / t;
      	end
      	tmp_2 = tmp;
      end
      
      NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
      code[x_, y_, z_, t_] := If[LessEqual[t, -1.3e-21], N[(N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[t, 2850000000000.0], N[(N[(x / (-z)), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(y - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]]]
      
      \begin{array}{l}
      [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
      \\
      \begin{array}{l}
      \mathbf{if}\;t \leq -1.3 \cdot 10^{-21}:\\
      \;\;\;\;\frac{\frac{x}{t - z}}{y}\\
      
      \mathbf{elif}\;t \leq 2850000000000:\\
      \;\;\;\;\frac{\frac{x}{-z}}{y - z}\\
      
      \mathbf{else}:\\
      \;\;\;\;\frac{\frac{x}{y - z}}{t}\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if t < -1.30000000000000009e-21

        1. Initial program 80.1%

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

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

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

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

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

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

            \[\leadsto \color{blue}{\frac{\frac{x}{t - z}}{y - z}} \]
          7. lower-/.f64N/A

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

            \[\leadsto \frac{\color{blue}{\frac{x}{t - z}}}{y - z} \]
          9. lift--.f64N/A

            \[\leadsto \frac{\frac{x}{\color{blue}{t - z}}}{y - z} \]
          10. lift--.f6499.5

            \[\leadsto \frac{\frac{x}{t - z}}{\color{blue}{y - z}} \]
        3. Applied rewrites99.5%

          \[\leadsto \color{blue}{\frac{\frac{x}{t - z}}{y - z}} \]
        4. Taylor expanded in z around inf

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

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

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

            \[\leadsto \frac{\frac{x}{t - z}}{\left(\frac{y}{z} - 1\right) \cdot z} \]
          4. lower-/.f6484.2

            \[\leadsto \frac{\frac{x}{t - z}}{\left(\frac{y}{z} - 1\right) \cdot z} \]
        6. Applied rewrites84.2%

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

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

            \[\leadsto \frac{\frac{x}{t - z}}{y} \]

          if -1.30000000000000009e-21 < t < 2.85e12

          1. Initial program 91.1%

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

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

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

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

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

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

              \[\leadsto \color{blue}{\frac{\frac{x}{t - z}}{y - z}} \]
            7. lower-/.f64N/A

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

              \[\leadsto \frac{\color{blue}{\frac{x}{t - z}}}{y - z} \]
            9. lift--.f64N/A

              \[\leadsto \frac{\frac{x}{\color{blue}{t - z}}}{y - z} \]
            10. lift--.f6496.6

              \[\leadsto \frac{\frac{x}{t - z}}{\color{blue}{y - z}} \]
          3. Applied rewrites96.6%

            \[\leadsto \color{blue}{\frac{\frac{x}{t - z}}{y - z}} \]
          4. Taylor expanded in z around inf

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

              \[\leadsto \frac{\frac{x}{\mathsf{neg}\left(z\right)}}{y - z} \]
            2. lift-neg.f6476.3

              \[\leadsto \frac{\frac{x}{-z}}{y - z} \]
          6. Applied rewrites76.3%

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

          if 2.85e12 < t

          1. Initial program 88.5%

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

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

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

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

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

              \[\leadsto \color{blue}{\frac{\frac{x}{y - z}}{t - z}} \]
            6. lower-/.f64N/A

              \[\leadsto \color{blue}{\frac{\frac{x}{y - z}}{t - z}} \]
            7. lower-/.f64N/A

              \[\leadsto \frac{\color{blue}{\frac{x}{y - z}}}{t - z} \]
            8. lift--.f64N/A

              \[\leadsto \frac{\frac{x}{\color{blue}{y - z}}}{t - z} \]
            9. lift--.f6496.4

              \[\leadsto \frac{\frac{x}{y - z}}{\color{blue}{t - z}} \]
          3. Applied rewrites96.4%

            \[\leadsto \color{blue}{\frac{\frac{x}{y - z}}{t - z}} \]
          4. Taylor expanded in z around 0

            \[\leadsto \frac{\frac{x}{y - z}}{\color{blue}{t}} \]
          5. Step-by-step derivation
            1. Applied rewrites86.1%

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

          Alternative 5: 79.3% accurate, 0.6× speedup?

          \[\begin{array}{l} [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\ \\ \begin{array}{l} \mathbf{if}\;t \leq -4.2 \cdot 10^{-37}:\\ \;\;\;\;\frac{\frac{x}{t - z}}{y}\\ \mathbf{elif}\;t \leq 1.16 \cdot 10^{-30}:\\ \;\;\;\;\frac{x}{\left(y - z\right) \cdot \left(-z\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{y - z}}{t}\\ \end{array} \end{array} \]
          NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
          (FPCore (x y z t)
           :precision binary64
           (if (<= t -4.2e-37)
             (/ (/ x (- t z)) y)
             (if (<= t 1.16e-30) (/ x (* (- y z) (- z))) (/ (/ x (- y z)) t))))
          assert(x < y && y < z && z < t);
          double code(double x, double y, double z, double t) {
          	double tmp;
          	if (t <= -4.2e-37) {
          		tmp = (x / (t - z)) / y;
          	} else if (t <= 1.16e-30) {
          		tmp = x / ((y - z) * -z);
          	} else {
          		tmp = (x / (y - z)) / t;
          	}
          	return tmp;
          }
          
          NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
          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 <= (-4.2d-37)) then
                  tmp = (x / (t - z)) / y
              else if (t <= 1.16d-30) then
                  tmp = x / ((y - z) * -z)
              else
                  tmp = (x / (y - z)) / t
              end if
              code = tmp
          end function
          
          assert x < y && y < z && z < t;
          public static double code(double x, double y, double z, double t) {
          	double tmp;
          	if (t <= -4.2e-37) {
          		tmp = (x / (t - z)) / y;
          	} else if (t <= 1.16e-30) {
          		tmp = x / ((y - z) * -z);
          	} else {
          		tmp = (x / (y - z)) / t;
          	}
          	return tmp;
          }
          
          [x, y, z, t] = sort([x, y, z, t])
          def code(x, y, z, t):
          	tmp = 0
          	if t <= -4.2e-37:
          		tmp = (x / (t - z)) / y
          	elif t <= 1.16e-30:
          		tmp = x / ((y - z) * -z)
          	else:
          		tmp = (x / (y - z)) / t
          	return tmp
          
          x, y, z, t = sort([x, y, z, t])
          function code(x, y, z, t)
          	tmp = 0.0
          	if (t <= -4.2e-37)
          		tmp = Float64(Float64(x / Float64(t - z)) / y);
          	elseif (t <= 1.16e-30)
          		tmp = Float64(x / Float64(Float64(y - z) * Float64(-z)));
          	else
          		tmp = Float64(Float64(x / Float64(y - z)) / t);
          	end
          	return tmp
          end
          
          x, y, z, t = num2cell(sort([x, y, z, t])){:}
          function tmp_2 = code(x, y, z, t)
          	tmp = 0.0;
          	if (t <= -4.2e-37)
          		tmp = (x / (t - z)) / y;
          	elseif (t <= 1.16e-30)
          		tmp = x / ((y - z) * -z);
          	else
          		tmp = (x / (y - z)) / t;
          	end
          	tmp_2 = tmp;
          end
          
          NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
          code[x_, y_, z_, t_] := If[LessEqual[t, -4.2e-37], N[(N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[t, 1.16e-30], N[(x / N[(N[(y - z), $MachinePrecision] * (-z)), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(y - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]]]
          
          \begin{array}{l}
          [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
          \\
          \begin{array}{l}
          \mathbf{if}\;t \leq -4.2 \cdot 10^{-37}:\\
          \;\;\;\;\frac{\frac{x}{t - z}}{y}\\
          
          \mathbf{elif}\;t \leq 1.16 \cdot 10^{-30}:\\
          \;\;\;\;\frac{x}{\left(y - z\right) \cdot \left(-z\right)}\\
          
          \mathbf{else}:\\
          \;\;\;\;\frac{\frac{x}{y - z}}{t}\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if t < -4.2000000000000002e-37

            1. Initial program 80.9%

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

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

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

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

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

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

                \[\leadsto \color{blue}{\frac{\frac{x}{t - z}}{y - z}} \]
              7. lower-/.f64N/A

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

                \[\leadsto \frac{\color{blue}{\frac{x}{t - z}}}{y - z} \]
              9. lift--.f64N/A

                \[\leadsto \frac{\frac{x}{\color{blue}{t - z}}}{y - z} \]
              10. lift--.f6499.2

                \[\leadsto \frac{\frac{x}{t - z}}{\color{blue}{y - z}} \]
            3. Applied rewrites99.2%

              \[\leadsto \color{blue}{\frac{\frac{x}{t - z}}{y - z}} \]
            4. Taylor expanded in z around inf

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

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

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

                \[\leadsto \frac{\frac{x}{t - z}}{\left(\frac{y}{z} - 1\right) \cdot z} \]
              4. lower-/.f6483.7

                \[\leadsto \frac{\frac{x}{t - z}}{\left(\frac{y}{z} - 1\right) \cdot z} \]
            6. Applied rewrites83.7%

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

              \[\leadsto \frac{\frac{x}{t - z}}{y} \]
            8. Step-by-step derivation
              1. Applied rewrites89.4%

                \[\leadsto \frac{\frac{x}{t - z}}{y} \]

              if -4.2000000000000002e-37 < t < 1.16e-30

              1. Initial program 90.9%

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

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

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

                  \[\leadsto \frac{x}{\left(y - z\right) \cdot \left(-z\right)} \]
              4. Applied rewrites72.9%

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

              if 1.16e-30 < t

              1. Initial program 89.0%

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

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

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

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

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

                  \[\leadsto \color{blue}{\frac{\frac{x}{y - z}}{t - z}} \]
                6. lower-/.f64N/A

                  \[\leadsto \color{blue}{\frac{\frac{x}{y - z}}{t - z}} \]
                7. lower-/.f64N/A

                  \[\leadsto \frac{\color{blue}{\frac{x}{y - z}}}{t - z} \]
                8. lift--.f64N/A

                  \[\leadsto \frac{\frac{x}{\color{blue}{y - z}}}{t - z} \]
                9. lift--.f6496.8

                  \[\leadsto \frac{\frac{x}{y - z}}{\color{blue}{t - z}} \]
              3. Applied rewrites96.8%

                \[\leadsto \color{blue}{\frac{\frac{x}{y - z}}{t - z}} \]
              4. Taylor expanded in z around 0

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

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

              Alternative 6: 79.2% accurate, 0.6× speedup?

              \[\begin{array}{l} [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\ \\ \begin{array}{l} \mathbf{if}\;y \leq -7.8 \cdot 10^{-97}:\\ \;\;\;\;\frac{\frac{x}{y}}{t - z}\\ \mathbf{elif}\;y \leq 3.3 \cdot 10^{-202}:\\ \;\;\;\;\frac{x}{\left(-z\right) \cdot \left(t - z\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{y - z}}{t}\\ \end{array} \end{array} \]
              NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
              (FPCore (x y z t)
               :precision binary64
               (if (<= y -7.8e-97)
                 (/ (/ x y) (- t z))
                 (if (<= y 3.3e-202) (/ x (* (- z) (- t z))) (/ (/ x (- y z)) t))))
              assert(x < y && y < z && z < t);
              double code(double x, double y, double z, double t) {
              	double tmp;
              	if (y <= -7.8e-97) {
              		tmp = (x / y) / (t - z);
              	} else if (y <= 3.3e-202) {
              		tmp = x / (-z * (t - z));
              	} else {
              		tmp = (x / (y - z)) / t;
              	}
              	return tmp;
              }
              
              NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
              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 <= (-7.8d-97)) then
                      tmp = (x / y) / (t - z)
                  else if (y <= 3.3d-202) then
                      tmp = x / (-z * (t - z))
                  else
                      tmp = (x / (y - z)) / t
                  end if
                  code = tmp
              end function
              
              assert x < y && y < z && z < t;
              public static double code(double x, double y, double z, double t) {
              	double tmp;
              	if (y <= -7.8e-97) {
              		tmp = (x / y) / (t - z);
              	} else if (y <= 3.3e-202) {
              		tmp = x / (-z * (t - z));
              	} else {
              		tmp = (x / (y - z)) / t;
              	}
              	return tmp;
              }
              
              [x, y, z, t] = sort([x, y, z, t])
              def code(x, y, z, t):
              	tmp = 0
              	if y <= -7.8e-97:
              		tmp = (x / y) / (t - z)
              	elif y <= 3.3e-202:
              		tmp = x / (-z * (t - z))
              	else:
              		tmp = (x / (y - z)) / t
              	return tmp
              
              x, y, z, t = sort([x, y, z, t])
              function code(x, y, z, t)
              	tmp = 0.0
              	if (y <= -7.8e-97)
              		tmp = Float64(Float64(x / y) / Float64(t - z));
              	elseif (y <= 3.3e-202)
              		tmp = Float64(x / Float64(Float64(-z) * Float64(t - z)));
              	else
              		tmp = Float64(Float64(x / Float64(y - z)) / t);
              	end
              	return tmp
              end
              
              x, y, z, t = num2cell(sort([x, y, z, t])){:}
              function tmp_2 = code(x, y, z, t)
              	tmp = 0.0;
              	if (y <= -7.8e-97)
              		tmp = (x / y) / (t - z);
              	elseif (y <= 3.3e-202)
              		tmp = x / (-z * (t - z));
              	else
              		tmp = (x / (y - z)) / t;
              	end
              	tmp_2 = tmp;
              end
              
              NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
              code[x_, y_, z_, t_] := If[LessEqual[y, -7.8e-97], N[(N[(x / y), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.3e-202], N[(x / N[((-z) * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(y - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]]]
              
              \begin{array}{l}
              [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
              \\
              \begin{array}{l}
              \mathbf{if}\;y \leq -7.8 \cdot 10^{-97}:\\
              \;\;\;\;\frac{\frac{x}{y}}{t - z}\\
              
              \mathbf{elif}\;y \leq 3.3 \cdot 10^{-202}:\\
              \;\;\;\;\frac{x}{\left(-z\right) \cdot \left(t - z\right)}\\
              
              \mathbf{else}:\\
              \;\;\;\;\frac{\frac{x}{y - z}}{t}\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 3 regimes
              2. if y < -7.7999999999999997e-97

                1. Initial program 88.7%

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

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

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

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

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

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

                      \[\leadsto \color{blue}{\frac{\frac{x}{y}}{t - z}} \]
                    5. lower-/.f64N/A

                      \[\leadsto \color{blue}{\frac{\frac{x}{y}}{t - z}} \]
                    6. lower-/.f64N/A

                      \[\leadsto \frac{\color{blue}{\frac{x}{y}}}{t - z} \]
                    7. lift--.f6478.9

                      \[\leadsto \frac{\frac{x}{y}}{\color{blue}{t - z}} \]
                  3. Applied rewrites78.9%

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

                  if -7.7999999999999997e-97 < y < 3.29999999999999989e-202

                  1. Initial program 90.0%

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

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

                      \[\leadsto \frac{x}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(t - z\right)} \]
                    2. lower-neg.f6479.3

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

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

                  if 3.29999999999999989e-202 < y

                  1. Initial program 89.7%

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

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

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

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

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

                      \[\leadsto \color{blue}{\frac{\frac{x}{y - z}}{t - z}} \]
                    6. lower-/.f64N/A

                      \[\leadsto \color{blue}{\frac{\frac{x}{y - z}}{t - z}} \]
                    7. lower-/.f64N/A

                      \[\leadsto \frac{\color{blue}{\frac{x}{y - z}}}{t - z} \]
                    8. lift--.f64N/A

                      \[\leadsto \frac{\frac{x}{\color{blue}{y - z}}}{t - z} \]
                    9. lift--.f6497.3

                      \[\leadsto \frac{\frac{x}{y - z}}{\color{blue}{t - z}} \]
                  3. Applied rewrites97.3%

                    \[\leadsto \color{blue}{\frac{\frac{x}{y - z}}{t - z}} \]
                  4. Taylor expanded in z around 0

                    \[\leadsto \frac{\frac{x}{y - z}}{\color{blue}{t}} \]
                  5. Step-by-step derivation
                    1. Applied rewrites80.0%

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

                  Alternative 7: 73.1% accurate, 0.5× speedup?

                  \[\begin{array}{l} [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\ \\ \begin{array}{l} \mathbf{if}\;t \leq 2.1 \cdot 10^{-67}:\\ \;\;\;\;\frac{\frac{x}{y}}{t - z}\\ \mathbf{elif}\;t \leq 1.15 \cdot 10^{-30}:\\ \;\;\;\;\frac{x}{z \cdot z}\\ \mathbf{elif}\;t \leq 4.8 \cdot 10^{+185}:\\ \;\;\;\;\frac{x}{\left(y - z\right) \cdot t}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{t}}{y - z}\\ \end{array} \end{array} \]
                  NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
                  (FPCore (x y z t)
                   :precision binary64
                   (if (<= t 2.1e-67)
                     (/ (/ x y) (- t z))
                     (if (<= t 1.15e-30)
                       (/ x (* z z))
                       (if (<= t 4.8e+185) (/ x (* (- y z) t)) (/ (/ x t) (- y z))))))
                  assert(x < y && y < z && z < t);
                  double code(double x, double y, double z, double t) {
                  	double tmp;
                  	if (t <= 2.1e-67) {
                  		tmp = (x / y) / (t - z);
                  	} else if (t <= 1.15e-30) {
                  		tmp = x / (z * z);
                  	} else if (t <= 4.8e+185) {
                  		tmp = x / ((y - z) * t);
                  	} else {
                  		tmp = (x / t) / (y - z);
                  	}
                  	return tmp;
                  }
                  
                  NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
                  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 <= 2.1d-67) then
                          tmp = (x / y) / (t - z)
                      else if (t <= 1.15d-30) then
                          tmp = x / (z * z)
                      else if (t <= 4.8d+185) then
                          tmp = x / ((y - z) * t)
                      else
                          tmp = (x / t) / (y - z)
                      end if
                      code = tmp
                  end function
                  
                  assert x < y && y < z && z < t;
                  public static double code(double x, double y, double z, double t) {
                  	double tmp;
                  	if (t <= 2.1e-67) {
                  		tmp = (x / y) / (t - z);
                  	} else if (t <= 1.15e-30) {
                  		tmp = x / (z * z);
                  	} else if (t <= 4.8e+185) {
                  		tmp = x / ((y - z) * t);
                  	} else {
                  		tmp = (x / t) / (y - z);
                  	}
                  	return tmp;
                  }
                  
                  [x, y, z, t] = sort([x, y, z, t])
                  def code(x, y, z, t):
                  	tmp = 0
                  	if t <= 2.1e-67:
                  		tmp = (x / y) / (t - z)
                  	elif t <= 1.15e-30:
                  		tmp = x / (z * z)
                  	elif t <= 4.8e+185:
                  		tmp = x / ((y - z) * t)
                  	else:
                  		tmp = (x / t) / (y - z)
                  	return tmp
                  
                  x, y, z, t = sort([x, y, z, t])
                  function code(x, y, z, t)
                  	tmp = 0.0
                  	if (t <= 2.1e-67)
                  		tmp = Float64(Float64(x / y) / Float64(t - z));
                  	elseif (t <= 1.15e-30)
                  		tmp = Float64(x / Float64(z * z));
                  	elseif (t <= 4.8e+185)
                  		tmp = Float64(x / Float64(Float64(y - z) * t));
                  	else
                  		tmp = Float64(Float64(x / t) / Float64(y - z));
                  	end
                  	return tmp
                  end
                  
                  x, y, z, t = num2cell(sort([x, y, z, t])){:}
                  function tmp_2 = code(x, y, z, t)
                  	tmp = 0.0;
                  	if (t <= 2.1e-67)
                  		tmp = (x / y) / (t - z);
                  	elseif (t <= 1.15e-30)
                  		tmp = x / (z * z);
                  	elseif (t <= 4.8e+185)
                  		tmp = x / ((y - z) * t);
                  	else
                  		tmp = (x / t) / (y - z);
                  	end
                  	tmp_2 = tmp;
                  end
                  
                  NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
                  code[x_, y_, z_, t_] := If[LessEqual[t, 2.1e-67], N[(N[(x / y), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.15e-30], N[(x / N[(z * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.8e+185], N[(x / N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], N[(N[(x / t), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]]]]
                  
                  \begin{array}{l}
                  [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
                  \\
                  \begin{array}{l}
                  \mathbf{if}\;t \leq 2.1 \cdot 10^{-67}:\\
                  \;\;\;\;\frac{\frac{x}{y}}{t - z}\\
                  
                  \mathbf{elif}\;t \leq 1.15 \cdot 10^{-30}:\\
                  \;\;\;\;\frac{x}{z \cdot z}\\
                  
                  \mathbf{elif}\;t \leq 4.8 \cdot 10^{+185}:\\
                  \;\;\;\;\frac{x}{\left(y - z\right) \cdot t}\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;\frac{\frac{x}{t}}{y - z}\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 4 regimes
                  2. if t < 2.1000000000000002e-67

                    1. Initial program 89.2%

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

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

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

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

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

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

                          \[\leadsto \color{blue}{\frac{\frac{x}{y}}{t - z}} \]
                        5. lower-/.f64N/A

                          \[\leadsto \color{blue}{\frac{\frac{x}{y}}{t - z}} \]
                        6. lower-/.f64N/A

                          \[\leadsto \frac{\color{blue}{\frac{x}{y}}}{t - z} \]
                        7. lift--.f6463.5

                          \[\leadsto \frac{\frac{x}{y}}{\color{blue}{t - z}} \]
                      3. Applied rewrites63.5%

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

                      if 2.1000000000000002e-67 < t < 1.14999999999999992e-30

                      1. Initial program 92.3%

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

                        \[\leadsto \frac{x}{\color{blue}{{z}^{2}}} \]
                      3. Step-by-step derivation
                        1. unpow2N/A

                          \[\leadsto \frac{x}{z \cdot \color{blue}{z}} \]
                        2. lower-*.f6447.9

                          \[\leadsto \frac{x}{z \cdot \color{blue}{z}} \]
                      4. Applied rewrites47.9%

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

                      if 1.14999999999999992e-30 < t < 4.79999999999999978e185

                      1. Initial program 91.0%

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

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

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

                        if 4.79999999999999978e185 < t

                        1. Initial program 86.0%

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

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

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

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

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

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

                            \[\leadsto \color{blue}{\frac{\frac{x}{t - z}}{y - z}} \]
                          7. lower-/.f64N/A

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

                            \[\leadsto \frac{\color{blue}{\frac{x}{t - z}}}{y - z} \]
                          9. lift--.f64N/A

                            \[\leadsto \frac{\frac{x}{\color{blue}{t - z}}}{y - z} \]
                          10. lift--.f6495.6

                            \[\leadsto \frac{\frac{x}{t - z}}{\color{blue}{y - z}} \]
                        3. Applied rewrites95.6%

                          \[\leadsto \color{blue}{\frac{\frac{x}{t - z}}{y - z}} \]
                        4. Taylor expanded in z around 0

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

                            \[\leadsto \frac{\frac{x}{\color{blue}{t}}}{y - z} \]
                        6. Recombined 4 regimes into one program.
                        7. Add Preprocessing

                        Alternative 8: 72.8% accurate, 0.5× speedup?

                        \[\begin{array}{l} [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\ \\ \begin{array}{l} \mathbf{if}\;t \leq 2.1 \cdot 10^{-67}:\\ \;\;\;\;\frac{x}{y \cdot \left(t - z\right)}\\ \mathbf{elif}\;t \leq 1.15 \cdot 10^{-30}:\\ \;\;\;\;\frac{x}{z \cdot z}\\ \mathbf{elif}\;t \leq 4.8 \cdot 10^{+185}:\\ \;\;\;\;\frac{x}{\left(y - z\right) \cdot t}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{t}}{y - z}\\ \end{array} \end{array} \]
                        NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
                        (FPCore (x y z t)
                         :precision binary64
                         (if (<= t 2.1e-67)
                           (/ x (* y (- t z)))
                           (if (<= t 1.15e-30)
                             (/ x (* z z))
                             (if (<= t 4.8e+185) (/ x (* (- y z) t)) (/ (/ x t) (- y z))))))
                        assert(x < y && y < z && z < t);
                        double code(double x, double y, double z, double t) {
                        	double tmp;
                        	if (t <= 2.1e-67) {
                        		tmp = x / (y * (t - z));
                        	} else if (t <= 1.15e-30) {
                        		tmp = x / (z * z);
                        	} else if (t <= 4.8e+185) {
                        		tmp = x / ((y - z) * t);
                        	} else {
                        		tmp = (x / t) / (y - z);
                        	}
                        	return tmp;
                        }
                        
                        NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
                        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 <= 2.1d-67) then
                                tmp = x / (y * (t - z))
                            else if (t <= 1.15d-30) then
                                tmp = x / (z * z)
                            else if (t <= 4.8d+185) then
                                tmp = x / ((y - z) * t)
                            else
                                tmp = (x / t) / (y - z)
                            end if
                            code = tmp
                        end function
                        
                        assert x < y && y < z && z < t;
                        public static double code(double x, double y, double z, double t) {
                        	double tmp;
                        	if (t <= 2.1e-67) {
                        		tmp = x / (y * (t - z));
                        	} else if (t <= 1.15e-30) {
                        		tmp = x / (z * z);
                        	} else if (t <= 4.8e+185) {
                        		tmp = x / ((y - z) * t);
                        	} else {
                        		tmp = (x / t) / (y - z);
                        	}
                        	return tmp;
                        }
                        
                        [x, y, z, t] = sort([x, y, z, t])
                        def code(x, y, z, t):
                        	tmp = 0
                        	if t <= 2.1e-67:
                        		tmp = x / (y * (t - z))
                        	elif t <= 1.15e-30:
                        		tmp = x / (z * z)
                        	elif t <= 4.8e+185:
                        		tmp = x / ((y - z) * t)
                        	else:
                        		tmp = (x / t) / (y - z)
                        	return tmp
                        
                        x, y, z, t = sort([x, y, z, t])
                        function code(x, y, z, t)
                        	tmp = 0.0
                        	if (t <= 2.1e-67)
                        		tmp = Float64(x / Float64(y * Float64(t - z)));
                        	elseif (t <= 1.15e-30)
                        		tmp = Float64(x / Float64(z * z));
                        	elseif (t <= 4.8e+185)
                        		tmp = Float64(x / Float64(Float64(y - z) * t));
                        	else
                        		tmp = Float64(Float64(x / t) / Float64(y - z));
                        	end
                        	return tmp
                        end
                        
                        x, y, z, t = num2cell(sort([x, y, z, t])){:}
                        function tmp_2 = code(x, y, z, t)
                        	tmp = 0.0;
                        	if (t <= 2.1e-67)
                        		tmp = x / (y * (t - z));
                        	elseif (t <= 1.15e-30)
                        		tmp = x / (z * z);
                        	elseif (t <= 4.8e+185)
                        		tmp = x / ((y - z) * t);
                        	else
                        		tmp = (x / t) / (y - z);
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
                        code[x_, y_, z_, t_] := If[LessEqual[t, 2.1e-67], N[(x / N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.15e-30], N[(x / N[(z * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.8e+185], N[(x / N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], N[(N[(x / t), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]]]]
                        
                        \begin{array}{l}
                        [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
                        \\
                        \begin{array}{l}
                        \mathbf{if}\;t \leq 2.1 \cdot 10^{-67}:\\
                        \;\;\;\;\frac{x}{y \cdot \left(t - z\right)}\\
                        
                        \mathbf{elif}\;t \leq 1.15 \cdot 10^{-30}:\\
                        \;\;\;\;\frac{x}{z \cdot z}\\
                        
                        \mathbf{elif}\;t \leq 4.8 \cdot 10^{+185}:\\
                        \;\;\;\;\frac{x}{\left(y - z\right) \cdot t}\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;\frac{\frac{x}{t}}{y - z}\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 4 regimes
                        2. if t < 2.1000000000000002e-67

                          1. Initial program 89.2%

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

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

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

                            if 2.1000000000000002e-67 < t < 1.14999999999999992e-30

                            1. Initial program 92.3%

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

                              \[\leadsto \frac{x}{\color{blue}{{z}^{2}}} \]
                            3. Step-by-step derivation
                              1. unpow2N/A

                                \[\leadsto \frac{x}{z \cdot \color{blue}{z}} \]
                              2. lower-*.f6447.9

                                \[\leadsto \frac{x}{z \cdot \color{blue}{z}} \]
                            4. Applied rewrites47.9%

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

                            if 1.14999999999999992e-30 < t < 4.79999999999999978e185

                            1. Initial program 91.0%

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

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

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

                              if 4.79999999999999978e185 < t

                              1. Initial program 86.0%

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

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

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

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

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

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

                                  \[\leadsto \color{blue}{\frac{\frac{x}{t - z}}{y - z}} \]
                                7. lower-/.f64N/A

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

                                  \[\leadsto \frac{\color{blue}{\frac{x}{t - z}}}{y - z} \]
                                9. lift--.f64N/A

                                  \[\leadsto \frac{\frac{x}{\color{blue}{t - z}}}{y - z} \]
                                10. lift--.f6495.6

                                  \[\leadsto \frac{\frac{x}{t - z}}{\color{blue}{y - z}} \]
                              3. Applied rewrites95.6%

                                \[\leadsto \color{blue}{\frac{\frac{x}{t - z}}{y - z}} \]
                              4. Taylor expanded in z around 0

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

                                  \[\leadsto \frac{\frac{x}{\color{blue}{t}}}{y - z} \]
                              6. Recombined 4 regimes into one program.
                              7. Add Preprocessing

                              Alternative 9: 72.5% accurate, 0.8× speedup?

                              \[\begin{array}{l} [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\ \\ \begin{array}{l} \mathbf{if}\;t \leq 1.8 \cdot 10^{-75}:\\ \;\;\;\;\frac{\frac{x}{y}}{t - z}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{y - z}}{t}\\ \end{array} \end{array} \]
                              NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
                              (FPCore (x y z t)
                               :precision binary64
                               (if (<= t 1.8e-75) (/ (/ x y) (- t z)) (/ (/ x (- y z)) t)))
                              assert(x < y && y < z && z < t);
                              double code(double x, double y, double z, double t) {
                              	double tmp;
                              	if (t <= 1.8e-75) {
                              		tmp = (x / y) / (t - z);
                              	} else {
                              		tmp = (x / (y - z)) / t;
                              	}
                              	return tmp;
                              }
                              
                              NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
                              module fmin_fmax_functions
                                  implicit none
                                  private
                                  public fmax
                                  public fmin
                              
                                  interface fmax
                                      module procedure fmax88
                                      module procedure fmax44
                                      module procedure fmax84
                                      module procedure fmax48
                                  end interface
                                  interface fmin
                                      module procedure fmin88
                                      module procedure fmin44
                                      module procedure fmin84
                                      module procedure fmin48
                                  end interface
                              contains
                                  real(8) function fmax88(x, y) result (res)
                                      real(8), intent (in) :: x
                                      real(8), intent (in) :: y
                                      res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                  end function
                                  real(4) function fmax44(x, y) result (res)
                                      real(4), intent (in) :: x
                                      real(4), intent (in) :: y
                                      res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                  end function
                                  real(8) function fmax84(x, y) result(res)
                                      real(8), intent (in) :: x
                                      real(4), intent (in) :: y
                                      res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                  end function
                                  real(8) function fmax48(x, y) result(res)
                                      real(4), intent (in) :: x
                                      real(8), intent (in) :: y
                                      res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                  end function
                                  real(8) function fmin88(x, y) result (res)
                                      real(8), intent (in) :: x
                                      real(8), intent (in) :: y
                                      res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                  end function
                                  real(4) function fmin44(x, y) result (res)
                                      real(4), intent (in) :: x
                                      real(4), intent (in) :: y
                                      res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                  end function
                                  real(8) function fmin84(x, y) result(res)
                                      real(8), intent (in) :: x
                                      real(4), intent (in) :: y
                                      res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                  end function
                                  real(8) function fmin48(x, y) result(res)
                                      real(4), intent (in) :: x
                                      real(8), intent (in) :: y
                                      res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                  end function
                              end module
                              
                              real(8) function code(x, y, z, t)
                              use fmin_fmax_functions
                                  real(8), intent (in) :: x
                                  real(8), intent (in) :: y
                                  real(8), intent (in) :: z
                                  real(8), intent (in) :: t
                                  real(8) :: tmp
                                  if (t <= 1.8d-75) then
                                      tmp = (x / y) / (t - z)
                                  else
                                      tmp = (x / (y - z)) / t
                                  end if
                                  code = tmp
                              end function
                              
                              assert x < y && y < z && z < t;
                              public static double code(double x, double y, double z, double t) {
                              	double tmp;
                              	if (t <= 1.8e-75) {
                              		tmp = (x / y) / (t - z);
                              	} else {
                              		tmp = (x / (y - z)) / t;
                              	}
                              	return tmp;
                              }
                              
                              [x, y, z, t] = sort([x, y, z, t])
                              def code(x, y, z, t):
                              	tmp = 0
                              	if t <= 1.8e-75:
                              		tmp = (x / y) / (t - z)
                              	else:
                              		tmp = (x / (y - z)) / t
                              	return tmp
                              
                              x, y, z, t = sort([x, y, z, t])
                              function code(x, y, z, t)
                              	tmp = 0.0
                              	if (t <= 1.8e-75)
                              		tmp = Float64(Float64(x / y) / Float64(t - z));
                              	else
                              		tmp = Float64(Float64(x / Float64(y - z)) / t);
                              	end
                              	return tmp
                              end
                              
                              x, y, z, t = num2cell(sort([x, y, z, t])){:}
                              function tmp_2 = code(x, y, z, t)
                              	tmp = 0.0;
                              	if (t <= 1.8e-75)
                              		tmp = (x / y) / (t - z);
                              	else
                              		tmp = (x / (y - z)) / t;
                              	end
                              	tmp_2 = tmp;
                              end
                              
                              NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
                              code[x_, y_, z_, t_] := If[LessEqual[t, 1.8e-75], N[(N[(x / y), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(y - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]]
                              
                              \begin{array}{l}
                              [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
                              \\
                              \begin{array}{l}
                              \mathbf{if}\;t \leq 1.8 \cdot 10^{-75}:\\
                              \;\;\;\;\frac{\frac{x}{y}}{t - z}\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;\frac{\frac{x}{y - z}}{t}\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 2 regimes
                              2. if t < 1.8e-75

                                1. Initial program 89.2%

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

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

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

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

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

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

                                      \[\leadsto \color{blue}{\frac{\frac{x}{y}}{t - z}} \]
                                    5. lower-/.f64N/A

                                      \[\leadsto \color{blue}{\frac{\frac{x}{y}}{t - z}} \]
                                    6. lower-/.f64N/A

                                      \[\leadsto \frac{\color{blue}{\frac{x}{y}}}{t - z} \]
                                    7. lift--.f6463.9

                                      \[\leadsto \frac{\frac{x}{y}}{\color{blue}{t - z}} \]
                                  3. Applied rewrites63.9%

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

                                  if 1.8e-75 < t

                                  1. Initial program 89.2%

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

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

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

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

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

                                      \[\leadsto \color{blue}{\frac{\frac{x}{y - z}}{t - z}} \]
                                    6. lower-/.f64N/A

                                      \[\leadsto \color{blue}{\frac{\frac{x}{y - z}}{t - z}} \]
                                    7. lower-/.f64N/A

                                      \[\leadsto \frac{\color{blue}{\frac{x}{y - z}}}{t - z} \]
                                    8. lift--.f64N/A

                                      \[\leadsto \frac{\frac{x}{\color{blue}{y - z}}}{t - z} \]
                                    9. lift--.f6496.9

                                      \[\leadsto \frac{\frac{x}{y - z}}{\color{blue}{t - z}} \]
                                  3. Applied rewrites96.9%

                                    \[\leadsto \color{blue}{\frac{\frac{x}{y - z}}{t - z}} \]
                                  4. Taylor expanded in z around 0

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

                                      \[\leadsto \frac{\frac{x}{y - z}}{\color{blue}{t}} \]
                                  6. Recombined 2 regimes into one program.
                                  7. Add Preprocessing

                                  Alternative 10: 71.1% accurate, 0.6× speedup?

                                  \[\begin{array}{l} [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\ \\ \begin{array}{l} \mathbf{if}\;t \leq 2.1 \cdot 10^{-67}:\\ \;\;\;\;\frac{x}{y \cdot \left(t - z\right)}\\ \mathbf{elif}\;t \leq 1.15 \cdot 10^{-30}:\\ \;\;\;\;\frac{x}{z \cdot z}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{\left(y - z\right) \cdot t}\\ \end{array} \end{array} \]
                                  NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
                                  (FPCore (x y z t)
                                   :precision binary64
                                   (if (<= t 2.1e-67)
                                     (/ x (* y (- t z)))
                                     (if (<= t 1.15e-30) (/ x (* z z)) (/ x (* (- y z) t)))))
                                  assert(x < y && y < z && z < t);
                                  double code(double x, double y, double z, double t) {
                                  	double tmp;
                                  	if (t <= 2.1e-67) {
                                  		tmp = x / (y * (t - z));
                                  	} else if (t <= 1.15e-30) {
                                  		tmp = x / (z * z);
                                  	} else {
                                  		tmp = x / ((y - z) * t);
                                  	}
                                  	return tmp;
                                  }
                                  
                                  NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
                                  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 <= 2.1d-67) then
                                          tmp = x / (y * (t - z))
                                      else if (t <= 1.15d-30) then
                                          tmp = x / (z * z)
                                      else
                                          tmp = x / ((y - z) * t)
                                      end if
                                      code = tmp
                                  end function
                                  
                                  assert x < y && y < z && z < t;
                                  public static double code(double x, double y, double z, double t) {
                                  	double tmp;
                                  	if (t <= 2.1e-67) {
                                  		tmp = x / (y * (t - z));
                                  	} else if (t <= 1.15e-30) {
                                  		tmp = x / (z * z);
                                  	} else {
                                  		tmp = x / ((y - z) * t);
                                  	}
                                  	return tmp;
                                  }
                                  
                                  [x, y, z, t] = sort([x, y, z, t])
                                  def code(x, y, z, t):
                                  	tmp = 0
                                  	if t <= 2.1e-67:
                                  		tmp = x / (y * (t - z))
                                  	elif t <= 1.15e-30:
                                  		tmp = x / (z * z)
                                  	else:
                                  		tmp = x / ((y - z) * t)
                                  	return tmp
                                  
                                  x, y, z, t = sort([x, y, z, t])
                                  function code(x, y, z, t)
                                  	tmp = 0.0
                                  	if (t <= 2.1e-67)
                                  		tmp = Float64(x / Float64(y * Float64(t - z)));
                                  	elseif (t <= 1.15e-30)
                                  		tmp = Float64(x / Float64(z * z));
                                  	else
                                  		tmp = Float64(x / Float64(Float64(y - z) * t));
                                  	end
                                  	return tmp
                                  end
                                  
                                  x, y, z, t = num2cell(sort([x, y, z, t])){:}
                                  function tmp_2 = code(x, y, z, t)
                                  	tmp = 0.0;
                                  	if (t <= 2.1e-67)
                                  		tmp = x / (y * (t - z));
                                  	elseif (t <= 1.15e-30)
                                  		tmp = x / (z * z);
                                  	else
                                  		tmp = x / ((y - z) * t);
                                  	end
                                  	tmp_2 = tmp;
                                  end
                                  
                                  NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
                                  code[x_, y_, z_, t_] := If[LessEqual[t, 2.1e-67], N[(x / N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.15e-30], N[(x / N[(z * z), $MachinePrecision]), $MachinePrecision], N[(x / N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]]]
                                  
                                  \begin{array}{l}
                                  [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
                                  \\
                                  \begin{array}{l}
                                  \mathbf{if}\;t \leq 2.1 \cdot 10^{-67}:\\
                                  \;\;\;\;\frac{x}{y \cdot \left(t - z\right)}\\
                                  
                                  \mathbf{elif}\;t \leq 1.15 \cdot 10^{-30}:\\
                                  \;\;\;\;\frac{x}{z \cdot z}\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;\frac{x}{\left(y - z\right) \cdot t}\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 3 regimes
                                  2. if t < 2.1000000000000002e-67

                                    1. Initial program 89.2%

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

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

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

                                      if 2.1000000000000002e-67 < t < 1.14999999999999992e-30

                                      1. Initial program 92.3%

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

                                        \[\leadsto \frac{x}{\color{blue}{{z}^{2}}} \]
                                      3. Step-by-step derivation
                                        1. unpow2N/A

                                          \[\leadsto \frac{x}{z \cdot \color{blue}{z}} \]
                                        2. lower-*.f6447.9

                                          \[\leadsto \frac{x}{z \cdot \color{blue}{z}} \]
                                      4. Applied rewrites47.9%

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

                                      if 1.14999999999999992e-30 < t

                                      1. Initial program 89.0%

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

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

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

                                      Alternative 11: 67.8% accurate, 0.5× speedup?

                                      \[\begin{array}{l} [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\ \\ \begin{array}{l} \mathbf{if}\;y \leq -4.8 \cdot 10^{-118}:\\ \;\;\;\;\frac{x}{y \cdot \left(t - z\right)}\\ \mathbf{elif}\;y \leq -2.35 \cdot 10^{-284}:\\ \;\;\;\;\frac{x}{z \cdot z}\\ \mathbf{elif}\;y \leq 5.5 \cdot 10^{-119}:\\ \;\;\;\;\frac{\frac{x}{-z}}{t}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{y}}{t}\\ \end{array} \end{array} \]
                                      NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
                                      (FPCore (x y z t)
                                       :precision binary64
                                       (if (<= y -4.8e-118)
                                         (/ x (* y (- t z)))
                                         (if (<= y -2.35e-284)
                                           (/ x (* z z))
                                           (if (<= y 5.5e-119) (/ (/ x (- z)) t) (/ (/ x y) t)))))
                                      assert(x < y && y < z && z < t);
                                      double code(double x, double y, double z, double t) {
                                      	double tmp;
                                      	if (y <= -4.8e-118) {
                                      		tmp = x / (y * (t - z));
                                      	} else if (y <= -2.35e-284) {
                                      		tmp = x / (z * z);
                                      	} else if (y <= 5.5e-119) {
                                      		tmp = (x / -z) / t;
                                      	} else {
                                      		tmp = (x / y) / t;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
                                      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 <= (-4.8d-118)) then
                                              tmp = x / (y * (t - z))
                                          else if (y <= (-2.35d-284)) then
                                              tmp = x / (z * z)
                                          else if (y <= 5.5d-119) then
                                              tmp = (x / -z) / t
                                          else
                                              tmp = (x / y) / t
                                          end if
                                          code = tmp
                                      end function
                                      
                                      assert x < y && y < z && z < t;
                                      public static double code(double x, double y, double z, double t) {
                                      	double tmp;
                                      	if (y <= -4.8e-118) {
                                      		tmp = x / (y * (t - z));
                                      	} else if (y <= -2.35e-284) {
                                      		tmp = x / (z * z);
                                      	} else if (y <= 5.5e-119) {
                                      		tmp = (x / -z) / t;
                                      	} else {
                                      		tmp = (x / y) / t;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      [x, y, z, t] = sort([x, y, z, t])
                                      def code(x, y, z, t):
                                      	tmp = 0
                                      	if y <= -4.8e-118:
                                      		tmp = x / (y * (t - z))
                                      	elif y <= -2.35e-284:
                                      		tmp = x / (z * z)
                                      	elif y <= 5.5e-119:
                                      		tmp = (x / -z) / t
                                      	else:
                                      		tmp = (x / y) / t
                                      	return tmp
                                      
                                      x, y, z, t = sort([x, y, z, t])
                                      function code(x, y, z, t)
                                      	tmp = 0.0
                                      	if (y <= -4.8e-118)
                                      		tmp = Float64(x / Float64(y * Float64(t - z)));
                                      	elseif (y <= -2.35e-284)
                                      		tmp = Float64(x / Float64(z * z));
                                      	elseif (y <= 5.5e-119)
                                      		tmp = Float64(Float64(x / Float64(-z)) / t);
                                      	else
                                      		tmp = Float64(Float64(x / y) / t);
                                      	end
                                      	return tmp
                                      end
                                      
                                      x, y, z, t = num2cell(sort([x, y, z, t])){:}
                                      function tmp_2 = code(x, y, z, t)
                                      	tmp = 0.0;
                                      	if (y <= -4.8e-118)
                                      		tmp = x / (y * (t - z));
                                      	elseif (y <= -2.35e-284)
                                      		tmp = x / (z * z);
                                      	elseif (y <= 5.5e-119)
                                      		tmp = (x / -z) / t;
                                      	else
                                      		tmp = (x / y) / t;
                                      	end
                                      	tmp_2 = tmp;
                                      end
                                      
                                      NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
                                      code[x_, y_, z_, t_] := If[LessEqual[y, -4.8e-118], N[(x / N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.35e-284], N[(x / N[(z * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.5e-119], N[(N[(x / (-z)), $MachinePrecision] / t), $MachinePrecision], N[(N[(x / y), $MachinePrecision] / t), $MachinePrecision]]]]
                                      
                                      \begin{array}{l}
                                      [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
                                      \\
                                      \begin{array}{l}
                                      \mathbf{if}\;y \leq -4.8 \cdot 10^{-118}:\\
                                      \;\;\;\;\frac{x}{y \cdot \left(t - z\right)}\\
                                      
                                      \mathbf{elif}\;y \leq -2.35 \cdot 10^{-284}:\\
                                      \;\;\;\;\frac{x}{z \cdot z}\\
                                      
                                      \mathbf{elif}\;y \leq 5.5 \cdot 10^{-119}:\\
                                      \;\;\;\;\frac{\frac{x}{-z}}{t}\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;\frac{\frac{x}{y}}{t}\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 4 regimes
                                      2. if y < -4.8000000000000003e-118

                                        1. Initial program 88.8%

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

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

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

                                          if -4.8000000000000003e-118 < y < -2.35000000000000011e-284

                                          1. Initial program 89.8%

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

                                            \[\leadsto \frac{x}{\color{blue}{{z}^{2}}} \]
                                          3. Step-by-step derivation
                                            1. unpow2N/A

                                              \[\leadsto \frac{x}{z \cdot \color{blue}{z}} \]
                                            2. lower-*.f6454.2

                                              \[\leadsto \frac{x}{z \cdot \color{blue}{z}} \]
                                          4. Applied rewrites54.2%

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

                                          if -2.35000000000000011e-284 < y < 5.49999999999999959e-119

                                          1. Initial program 91.0%

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

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

                                              \[\leadsto \frac{x}{\left(\mathsf{neg}\left(z\right)\right) \cdot \left(t - z\right)} \]
                                            2. lower-neg.f6479.5

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

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

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

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

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

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

                                                \[\leadsto \color{blue}{\frac{\frac{x}{-z}}{t}} \]
                                              4. lower-/.f64N/A

                                                \[\leadsto \color{blue}{\frac{\frac{x}{-z}}{t}} \]
                                              5. lower-/.f6455.4

                                                \[\leadsto \frac{\color{blue}{\frac{x}{-z}}}{t} \]
                                            3. Applied rewrites55.4%

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

                                            if 5.49999999999999959e-119 < y

                                            1. Initial program 88.2%

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

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

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

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

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

                                                \[\leadsto \color{blue}{\frac{\frac{x}{y - z}}{t - z}} \]
                                              6. lower-/.f64N/A

                                                \[\leadsto \color{blue}{\frac{\frac{x}{y - z}}{t - z}} \]
                                              7. lower-/.f64N/A

                                                \[\leadsto \frac{\color{blue}{\frac{x}{y - z}}}{t - z} \]
                                              8. lift--.f64N/A

                                                \[\leadsto \frac{\frac{x}{\color{blue}{y - z}}}{t - z} \]
                                              9. lift--.f6498.1

                                                \[\leadsto \frac{\frac{x}{y - z}}{\color{blue}{t - z}} \]
                                            3. Applied rewrites98.1%

                                              \[\leadsto \color{blue}{\frac{\frac{x}{y - z}}{t - z}} \]
                                            4. Taylor expanded in z around 0

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

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

                                                \[\leadsto \frac{\color{blue}{\frac{x}{y}}}{t} \]
                                              3. Step-by-step derivation
                                                1. lower-/.f6465.3

                                                  \[\leadsto \frac{\frac{x}{\color{blue}{y}}}{t} \]
                                              4. Applied rewrites65.3%

                                                \[\leadsto \frac{\color{blue}{\frac{x}{y}}}{t} \]
                                            6. Recombined 4 regimes into one program.
                                            7. Add Preprocessing

                                            Alternative 12: 62.4% accurate, 0.7× speedup?

                                            \[\begin{array}{l} [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\ \\ \begin{array}{l} t_1 := \frac{x}{z \cdot z}\\ \mathbf{if}\;z \leq -2.4 \cdot 10^{-35}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 5.6 \cdot 10^{-39}:\\ \;\;\;\;\frac{\frac{x}{y}}{t}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                            NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
                                            (FPCore (x y z t)
                                             :precision binary64
                                             (let* ((t_1 (/ x (* z z))))
                                               (if (<= z -2.4e-35) t_1 (if (<= z 5.6e-39) (/ (/ x y) t) t_1))))
                                            assert(x < y && y < z && z < t);
                                            double code(double x, double y, double z, double t) {
                                            	double t_1 = x / (z * z);
                                            	double tmp;
                                            	if (z <= -2.4e-35) {
                                            		tmp = t_1;
                                            	} else if (z <= 5.6e-39) {
                                            		tmp = (x / y) / t;
                                            	} else {
                                            		tmp = t_1;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
                                            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 * z)
                                                if (z <= (-2.4d-35)) then
                                                    tmp = t_1
                                                else if (z <= 5.6d-39) then
                                                    tmp = (x / y) / t
                                                else
                                                    tmp = t_1
                                                end if
                                                code = tmp
                                            end function
                                            
                                            assert x < y && y < z && z < t;
                                            public static double code(double x, double y, double z, double t) {
                                            	double t_1 = x / (z * z);
                                            	double tmp;
                                            	if (z <= -2.4e-35) {
                                            		tmp = t_1;
                                            	} else if (z <= 5.6e-39) {
                                            		tmp = (x / y) / t;
                                            	} else {
                                            		tmp = t_1;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            [x, y, z, t] = sort([x, y, z, t])
                                            def code(x, y, z, t):
                                            	t_1 = x / (z * z)
                                            	tmp = 0
                                            	if z <= -2.4e-35:
                                            		tmp = t_1
                                            	elif z <= 5.6e-39:
                                            		tmp = (x / y) / t
                                            	else:
                                            		tmp = t_1
                                            	return tmp
                                            
                                            x, y, z, t = sort([x, y, z, t])
                                            function code(x, y, z, t)
                                            	t_1 = Float64(x / Float64(z * z))
                                            	tmp = 0.0
                                            	if (z <= -2.4e-35)
                                            		tmp = t_1;
                                            	elseif (z <= 5.6e-39)
                                            		tmp = Float64(Float64(x / y) / t);
                                            	else
                                            		tmp = t_1;
                                            	end
                                            	return tmp
                                            end
                                            
                                            x, y, z, t = num2cell(sort([x, y, z, t])){:}
                                            function tmp_2 = code(x, y, z, t)
                                            	t_1 = x / (z * z);
                                            	tmp = 0.0;
                                            	if (z <= -2.4e-35)
                                            		tmp = t_1;
                                            	elseif (z <= 5.6e-39)
                                            		tmp = (x / y) / t;
                                            	else
                                            		tmp = t_1;
                                            	end
                                            	tmp_2 = tmp;
                                            end
                                            
                                            NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
                                            code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x / N[(z * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.4e-35], t$95$1, If[LessEqual[z, 5.6e-39], N[(N[(x / y), $MachinePrecision] / t), $MachinePrecision], t$95$1]]]
                                            
                                            \begin{array}{l}
                                            [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
                                            \\
                                            \begin{array}{l}
                                            t_1 := \frac{x}{z \cdot z}\\
                                            \mathbf{if}\;z \leq -2.4 \cdot 10^{-35}:\\
                                            \;\;\;\;t\_1\\
                                            
                                            \mathbf{elif}\;z \leq 5.6 \cdot 10^{-39}:\\
                                            \;\;\;\;\frac{\frac{x}{y}}{t}\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;t\_1\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            
                                            Derivation
                                            1. Split input into 2 regimes
                                            2. if z < -2.4000000000000001e-35 or 5.6000000000000003e-39 < z

                                              1. Initial program 85.5%

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

                                                \[\leadsto \frac{x}{\color{blue}{{z}^{2}}} \]
                                              3. Step-by-step derivation
                                                1. unpow2N/A

                                                  \[\leadsto \frac{x}{z \cdot \color{blue}{z}} \]
                                                2. lower-*.f6461.6

                                                  \[\leadsto \frac{x}{z \cdot \color{blue}{z}} \]
                                              4. Applied rewrites61.6%

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

                                              if -2.4000000000000001e-35 < z < 5.6000000000000003e-39

                                              1. Initial program 93.9%

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

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

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

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

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

                                                  \[\leadsto \color{blue}{\frac{\frac{x}{y - z}}{t - z}} \]
                                                6. lower-/.f64N/A

                                                  \[\leadsto \color{blue}{\frac{\frac{x}{y - z}}{t - z}} \]
                                                7. lower-/.f64N/A

                                                  \[\leadsto \frac{\color{blue}{\frac{x}{y - z}}}{t - z} \]
                                                8. lift--.f64N/A

                                                  \[\leadsto \frac{\frac{x}{\color{blue}{y - z}}}{t - z} \]
                                                9. lift--.f6493.4

                                                  \[\leadsto \frac{\frac{x}{y - z}}{\color{blue}{t - z}} \]
                                              3. Applied rewrites93.4%

                                                \[\leadsto \color{blue}{\frac{\frac{x}{y - z}}{t - z}} \]
                                              4. Taylor expanded in z around 0

                                                \[\leadsto \frac{\frac{x}{y - z}}{\color{blue}{t}} \]
                                              5. Step-by-step derivation
                                                1. Applied rewrites76.0%

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

                                                  \[\leadsto \frac{\color{blue}{\frac{x}{y}}}{t} \]
                                                3. Step-by-step derivation
                                                  1. lower-/.f6463.4

                                                    \[\leadsto \frac{\frac{x}{\color{blue}{y}}}{t} \]
                                                4. Applied rewrites63.4%

                                                  \[\leadsto \frac{\color{blue}{\frac{x}{y}}}{t} \]
                                              6. Recombined 2 regimes into one program.
                                              7. Add Preprocessing

                                              Alternative 13: 61.5% accurate, 0.7× speedup?

                                              \[\begin{array}{l} [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\ \\ \begin{array}{l} t_1 := \frac{x}{z \cdot z}\\ \mathbf{if}\;z \leq -1.2 \cdot 10^{-40}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 5.6 \cdot 10^{-39}:\\ \;\;\;\;\frac{x}{t \cdot y}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                              NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
                                              (FPCore (x y z t)
                                               :precision binary64
                                               (let* ((t_1 (/ x (* z z))))
                                                 (if (<= z -1.2e-40) t_1 (if (<= z 5.6e-39) (/ x (* t y)) t_1))))
                                              assert(x < y && y < z && z < t);
                                              double code(double x, double y, double z, double t) {
                                              	double t_1 = x / (z * z);
                                              	double tmp;
                                              	if (z <= -1.2e-40) {
                                              		tmp = t_1;
                                              	} else if (z <= 5.6e-39) {
                                              		tmp = x / (t * y);
                                              	} else {
                                              		tmp = t_1;
                                              	}
                                              	return tmp;
                                              }
                                              
                                              NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
                                              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 * z)
                                                  if (z <= (-1.2d-40)) then
                                                      tmp = t_1
                                                  else if (z <= 5.6d-39) then
                                                      tmp = x / (t * y)
                                                  else
                                                      tmp = t_1
                                                  end if
                                                  code = tmp
                                              end function
                                              
                                              assert x < y && y < z && z < t;
                                              public static double code(double x, double y, double z, double t) {
                                              	double t_1 = x / (z * z);
                                              	double tmp;
                                              	if (z <= -1.2e-40) {
                                              		tmp = t_1;
                                              	} else if (z <= 5.6e-39) {
                                              		tmp = x / (t * y);
                                              	} else {
                                              		tmp = t_1;
                                              	}
                                              	return tmp;
                                              }
                                              
                                              [x, y, z, t] = sort([x, y, z, t])
                                              def code(x, y, z, t):
                                              	t_1 = x / (z * z)
                                              	tmp = 0
                                              	if z <= -1.2e-40:
                                              		tmp = t_1
                                              	elif z <= 5.6e-39:
                                              		tmp = x / (t * y)
                                              	else:
                                              		tmp = t_1
                                              	return tmp
                                              
                                              x, y, z, t = sort([x, y, z, t])
                                              function code(x, y, z, t)
                                              	t_1 = Float64(x / Float64(z * z))
                                              	tmp = 0.0
                                              	if (z <= -1.2e-40)
                                              		tmp = t_1;
                                              	elseif (z <= 5.6e-39)
                                              		tmp = Float64(x / Float64(t * y));
                                              	else
                                              		tmp = t_1;
                                              	end
                                              	return tmp
                                              end
                                              
                                              x, y, z, t = num2cell(sort([x, y, z, t])){:}
                                              function tmp_2 = code(x, y, z, t)
                                              	t_1 = x / (z * z);
                                              	tmp = 0.0;
                                              	if (z <= -1.2e-40)
                                              		tmp = t_1;
                                              	elseif (z <= 5.6e-39)
                                              		tmp = x / (t * y);
                                              	else
                                              		tmp = t_1;
                                              	end
                                              	tmp_2 = tmp;
                                              end
                                              
                                              NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
                                              code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x / N[(z * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.2e-40], t$95$1, If[LessEqual[z, 5.6e-39], N[(x / N[(t * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                              
                                              \begin{array}{l}
                                              [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
                                              \\
                                              \begin{array}{l}
                                              t_1 := \frac{x}{z \cdot z}\\
                                              \mathbf{if}\;z \leq -1.2 \cdot 10^{-40}:\\
                                              \;\;\;\;t\_1\\
                                              
                                              \mathbf{elif}\;z \leq 5.6 \cdot 10^{-39}:\\
                                              \;\;\;\;\frac{x}{t \cdot y}\\
                                              
                                              \mathbf{else}:\\
                                              \;\;\;\;t\_1\\
                                              
                                              
                                              \end{array}
                                              \end{array}
                                              
                                              Derivation
                                              1. Split input into 2 regimes
                                              2. if z < -1.19999999999999996e-40 or 5.6000000000000003e-39 < z

                                                1. Initial program 85.6%

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

                                                  \[\leadsto \frac{x}{\color{blue}{{z}^{2}}} \]
                                                3. Step-by-step derivation
                                                  1. unpow2N/A

                                                    \[\leadsto \frac{x}{z \cdot \color{blue}{z}} \]
                                                  2. lower-*.f6461.3

                                                    \[\leadsto \frac{x}{z \cdot \color{blue}{z}} \]
                                                4. Applied rewrites61.3%

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

                                                if -1.19999999999999996e-40 < z < 5.6000000000000003e-39

                                                1. Initial program 93.8%

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

                                                  \[\leadsto \frac{x}{\color{blue}{t \cdot y}} \]
                                                3. Step-by-step derivation
                                                  1. lower-*.f6461.8

                                                    \[\leadsto \frac{x}{t \cdot \color{blue}{y}} \]
                                                4. Applied rewrites61.8%

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

                                              Alternative 14: 39.8% accurate, 1.8× speedup?

                                              \[\begin{array}{l} [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\ \\ \frac{x}{t \cdot y} \end{array} \]
                                              NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
                                              (FPCore (x y z t) :precision binary64 (/ x (* t y)))
                                              assert(x < y && y < z && z < t);
                                              double code(double x, double y, double z, double t) {
                                              	return x / (t * y);
                                              }
                                              
                                              NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
                                              module fmin_fmax_functions
                                                  implicit none
                                                  private
                                                  public fmax
                                                  public fmin
                                              
                                                  interface fmax
                                                      module procedure fmax88
                                                      module procedure fmax44
                                                      module procedure fmax84
                                                      module procedure fmax48
                                                  end interface
                                                  interface fmin
                                                      module procedure fmin88
                                                      module procedure fmin44
                                                      module procedure fmin84
                                                      module procedure fmin48
                                                  end interface
                                              contains
                                                  real(8) function fmax88(x, y) result (res)
                                                      real(8), intent (in) :: x
                                                      real(8), intent (in) :: y
                                                      res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                  end function
                                                  real(4) function fmax44(x, y) result (res)
                                                      real(4), intent (in) :: x
                                                      real(4), intent (in) :: y
                                                      res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                  end function
                                                  real(8) function fmax84(x, y) result(res)
                                                      real(8), intent (in) :: x
                                                      real(4), intent (in) :: y
                                                      res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                  end function
                                                  real(8) function fmax48(x, y) result(res)
                                                      real(4), intent (in) :: x
                                                      real(8), intent (in) :: y
                                                      res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                  end function
                                                  real(8) function fmin88(x, y) result (res)
                                                      real(8), intent (in) :: x
                                                      real(8), intent (in) :: y
                                                      res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                  end function
                                                  real(4) function fmin44(x, y) result (res)
                                                      real(4), intent (in) :: x
                                                      real(4), intent (in) :: y
                                                      res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                  end function
                                                  real(8) function fmin84(x, y) result(res)
                                                      real(8), intent (in) :: x
                                                      real(4), intent (in) :: y
                                                      res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                  end function
                                                  real(8) function fmin48(x, y) result(res)
                                                      real(4), intent (in) :: x
                                                      real(8), intent (in) :: y
                                                      res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                  end function
                                              end module
                                              
                                              real(8) function code(x, y, z, t)
                                              use fmin_fmax_functions
                                                  real(8), intent (in) :: x
                                                  real(8), intent (in) :: y
                                                  real(8), intent (in) :: z
                                                  real(8), intent (in) :: t
                                                  code = x / (t * y)
                                              end function
                                              
                                              assert x < y && y < z && z < t;
                                              public static double code(double x, double y, double z, double t) {
                                              	return x / (t * y);
                                              }
                                              
                                              [x, y, z, t] = sort([x, y, z, t])
                                              def code(x, y, z, t):
                                              	return x / (t * y)
                                              
                                              x, y, z, t = sort([x, y, z, t])
                                              function code(x, y, z, t)
                                              	return Float64(x / Float64(t * y))
                                              end
                                              
                                              x, y, z, t = num2cell(sort([x, y, z, t])){:}
                                              function tmp = code(x, y, z, t)
                                              	tmp = x / (t * y);
                                              end
                                              
                                              NOTE: x, y, z, and t should be sorted in increasing order before calling this function.
                                              code[x_, y_, z_, t_] := N[(x / N[(t * y), $MachinePrecision]), $MachinePrecision]
                                              
                                              \begin{array}{l}
                                              [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
                                              \\
                                              \frac{x}{t \cdot y}
                                              \end{array}
                                              
                                              Derivation
                                              1. Initial program 89.2%

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

                                                \[\leadsto \frac{x}{\color{blue}{t \cdot y}} \]
                                              3. Step-by-step derivation
                                                1. lower-*.f6439.8

                                                  \[\leadsto \frac{x}{t \cdot \color{blue}{y}} \]
                                              4. Applied rewrites39.8%

                                                \[\leadsto \frac{x}{\color{blue}{t \cdot y}} \]
                                              5. Add Preprocessing

                                              Reproduce

                                              ?
                                              herbie shell --seed 2025101 
                                              (FPCore (x y z t)
                                                :name "Data.Random.Distribution.Triangular:triangularCDF from random-fu-0.2.6.2, B"
                                                :precision binary64
                                                (/ x (* (- y z) (- t z))))