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

Percentage Accurate: 88.9% → 97.2%
Time: 3.4s
Alternatives: 16
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 16 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: 88.9% 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.2% accurate, 0.8× speedup?

\[\begin{array}{l} [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\ \\ \frac{\frac{x}{t - z}}{y - 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 (- t z)) (- y z)))
assert(x < y && y < z && z < t);
double code(double x, double y, double z, double t) {
	return (x / (t - z)) / (y - 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 / (t - z)) / (y - z)
end function
assert x < y && y < z && z < t;
public static double code(double x, double y, double z, double t) {
	return (x / (t - z)) / (y - z);
}
[x, y, z, t] = sort([x, y, z, t])
def code(x, y, z, t):
	return (x / (t - z)) / (y - z)
x, y, z, t = sort([x, y, z, t])
function code(x, y, z, t)
	return Float64(Float64(x / Float64(t - z)) / Float64(y - z))
end
x, y, z, t = num2cell(sort([x, y, z, t])){:}
function tmp = code(x, y, z, t)
	tmp = (x / (t - z)) / (y - 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[(t - z), $MachinePrecision]), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
[x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
\\
\frac{\frac{x}{t - z}}{y - z}
\end{array}
Derivation
  1. Initial program 88.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--.f6497.2

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

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

Alternative 2: 93.4% accurate, 0.4× 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 -1 \cdot 10^{+308}:\\ \;\;\;\;\frac{\frac{x}{y - z}}{t}\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+295}:\\ \;\;\;\;\frac{x}{t\_1}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{t - z}}{-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 -1e+308)
     (/ (/ x (- y z)) t)
     (if (<= t_1 5e+295) (/ x t_1) (/ (/ x (- t z)) (- 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 <= -1e+308) {
		tmp = (x / (y - z)) / t;
	} else if (t_1 <= 5e+295) {
		tmp = x / t_1;
	} else {
		tmp = (x / (t - z)) / -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) :: t_1
    real(8) :: tmp
    t_1 = (y - z) * (t - z)
    if (t_1 <= (-1d+308)) then
        tmp = (x / (y - z)) / t
    else if (t_1 <= 5d+295) then
        tmp = x / t_1
    else
        tmp = (x / (t - z)) / -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 t_1 = (y - z) * (t - z);
	double tmp;
	if (t_1 <= -1e+308) {
		tmp = (x / (y - z)) / t;
	} else if (t_1 <= 5e+295) {
		tmp = x / t_1;
	} else {
		tmp = (x / (t - z)) / -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 <= -1e+308:
		tmp = (x / (y - z)) / t
	elif t_1 <= 5e+295:
		tmp = x / t_1
	else:
		tmp = (x / (t - z)) / -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 <= -1e+308)
		tmp = Float64(Float64(x / Float64(y - z)) / t);
	elseif (t_1 <= 5e+295)
		tmp = Float64(x / t_1);
	else
		tmp = Float64(Float64(x / Float64(t - z)) / Float64(-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 <= -1e+308)
		tmp = (x / (y - z)) / t;
	elseif (t_1 <= 5e+295)
		tmp = x / t_1;
	else
		tmp = (x / (t - z)) / -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, -1e+308], N[(N[(x / N[(y - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[t$95$1, 5e+295], N[(x / t$95$1), $MachinePrecision], N[(N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision] / (-z)), $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 -1 \cdot 10^{+308}:\\
\;\;\;\;\frac{\frac{x}{y - z}}{t}\\

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

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


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

    1. Initial program 67.2%

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

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

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

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

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

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

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

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

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

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

      if -1e308 < (*.f64 (-.f64 y z) (-.f64 t z)) < 4.99999999999999991e295

      1. Initial program 98.5%

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

      if 4.99999999999999991e295 < (*.f64 (-.f64 y z) (-.f64 t z))

      1. Initial program 75.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.9

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

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

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

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

          \[\leadsto \frac{\frac{x}{t - z}}{-z} \]
      6. Applied rewrites85.6%

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

    Alternative 3: 92.8% accurate, 0.4× 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 -1 \cdot 10^{+308}:\\ \;\;\;\;\frac{\frac{x}{y - z}}{t}\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+295}:\\ \;\;\;\;\frac{x}{t\_1}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{-z}}{t - 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 -1e+308)
         (/ (/ x (- y z)) t)
         (if (<= t_1 5e+295) (/ x t_1) (/ (/ x (- z)) (- t 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 <= -1e+308) {
    		tmp = (x / (y - z)) / t;
    	} else if (t_1 <= 5e+295) {
    		tmp = x / t_1;
    	} else {
    		tmp = (x / -z) / (t - 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) :: t_1
        real(8) :: tmp
        t_1 = (y - z) * (t - z)
        if (t_1 <= (-1d+308)) then
            tmp = (x / (y - z)) / t
        else if (t_1 <= 5d+295) then
            tmp = x / t_1
        else
            tmp = (x / -z) / (t - 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 t_1 = (y - z) * (t - z);
    	double tmp;
    	if (t_1 <= -1e+308) {
    		tmp = (x / (y - z)) / t;
    	} else if (t_1 <= 5e+295) {
    		tmp = x / t_1;
    	} else {
    		tmp = (x / -z) / (t - 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 <= -1e+308:
    		tmp = (x / (y - z)) / t
    	elif t_1 <= 5e+295:
    		tmp = x / t_1
    	else:
    		tmp = (x / -z) / (t - 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 <= -1e+308)
    		tmp = Float64(Float64(x / Float64(y - z)) / t);
    	elseif (t_1 <= 5e+295)
    		tmp = Float64(x / t_1);
    	else
    		tmp = Float64(Float64(x / Float64(-z)) / Float64(t - 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 <= -1e+308)
    		tmp = (x / (y - z)) / t;
    	elseif (t_1 <= 5e+295)
    		tmp = x / t_1;
    	else
    		tmp = (x / -z) / (t - 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, -1e+308], N[(N[(x / N[(y - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[t$95$1, 5e+295], N[(x / t$95$1), $MachinePrecision], N[(N[(x / (-z)), $MachinePrecision] / N[(t - 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 -1 \cdot 10^{+308}:\\
    \;\;\;\;\frac{\frac{x}{y - z}}{t}\\
    
    \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+295}:\\
    \;\;\;\;\frac{x}{t\_1}\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{\frac{x}{-z}}{t - z}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if (*.f64 (-.f64 y z) (-.f64 t z)) < -1e308

      1. Initial program 67.2%

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

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

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

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

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

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

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

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

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

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

        if -1e308 < (*.f64 (-.f64 y z) (-.f64 t z)) < 4.99999999999999991e295

        1. Initial program 98.5%

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

        if 4.99999999999999991e295 < (*.f64 (-.f64 y z) (-.f64 t z))

        1. Initial program 75.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 y around 0

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

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

            \[\leadsto \frac{\frac{x}{-z}}{t - z} \]
        6. Applied rewrites83.6%

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

      Alternative 4: 58.6% accurate, 0.5× speedup?

      \[\begin{array}{l} [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\ \\ \begin{array}{l} t_1 := \frac{x}{z \cdot z}\\ t_2 := \frac{x}{y \cdot \left(-z\right)}\\ \mathbf{if}\;z \leq -2.7 \cdot 10^{+77}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -2.7 \cdot 10^{-40}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;z \leq -2.25 \cdot 10^{-160}:\\ \;\;\;\;\frac{x}{\left(-z\right) \cdot t}\\ \mathbf{elif}\;z \leq 3.5 \cdot 10^{-126}:\\ \;\;\;\;\frac{x}{t \cdot y}\\ \mathbf{elif}\;z \leq 7.5 \cdot 10^{+20}:\\ \;\;\;\;t\_2\\ \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))) (t_2 (/ x (* y (- z)))))
         (if (<= z -2.7e+77)
           t_1
           (if (<= z -2.7e-40)
             t_2
             (if (<= z -2.25e-160)
               (/ x (* (- z) t))
               (if (<= z 3.5e-126) (/ x (* t y)) (if (<= z 7.5e+20) t_2 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 t_2 = x / (y * -z);
      	double tmp;
      	if (z <= -2.7e+77) {
      		tmp = t_1;
      	} else if (z <= -2.7e-40) {
      		tmp = t_2;
      	} else if (z <= -2.25e-160) {
      		tmp = x / (-z * t);
      	} else if (z <= 3.5e-126) {
      		tmp = x / (t * y);
      	} else if (z <= 7.5e+20) {
      		tmp = t_2;
      	} 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) :: t_2
          real(8) :: tmp
          t_1 = x / (z * z)
          t_2 = x / (y * -z)
          if (z <= (-2.7d+77)) then
              tmp = t_1
          else if (z <= (-2.7d-40)) then
              tmp = t_2
          else if (z <= (-2.25d-160)) then
              tmp = x / (-z * t)
          else if (z <= 3.5d-126) then
              tmp = x / (t * y)
          else if (z <= 7.5d+20) then
              tmp = t_2
          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 t_2 = x / (y * -z);
      	double tmp;
      	if (z <= -2.7e+77) {
      		tmp = t_1;
      	} else if (z <= -2.7e-40) {
      		tmp = t_2;
      	} else if (z <= -2.25e-160) {
      		tmp = x / (-z * t);
      	} else if (z <= 3.5e-126) {
      		tmp = x / (t * y);
      	} else if (z <= 7.5e+20) {
      		tmp = t_2;
      	} 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)
      	t_2 = x / (y * -z)
      	tmp = 0
      	if z <= -2.7e+77:
      		tmp = t_1
      	elif z <= -2.7e-40:
      		tmp = t_2
      	elif z <= -2.25e-160:
      		tmp = x / (-z * t)
      	elif z <= 3.5e-126:
      		tmp = x / (t * y)
      	elif z <= 7.5e+20:
      		tmp = t_2
      	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))
      	t_2 = Float64(x / Float64(y * Float64(-z)))
      	tmp = 0.0
      	if (z <= -2.7e+77)
      		tmp = t_1;
      	elseif (z <= -2.7e-40)
      		tmp = t_2;
      	elseif (z <= -2.25e-160)
      		tmp = Float64(x / Float64(Float64(-z) * t));
      	elseif (z <= 3.5e-126)
      		tmp = Float64(x / Float64(t * y));
      	elseif (z <= 7.5e+20)
      		tmp = t_2;
      	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);
      	t_2 = x / (y * -z);
      	tmp = 0.0;
      	if (z <= -2.7e+77)
      		tmp = t_1;
      	elseif (z <= -2.7e-40)
      		tmp = t_2;
      	elseif (z <= -2.25e-160)
      		tmp = x / (-z * t);
      	elseif (z <= 3.5e-126)
      		tmp = x / (t * y);
      	elseif (z <= 7.5e+20)
      		tmp = t_2;
      	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]}, Block[{t$95$2 = N[(x / N[(y * (-z)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.7e+77], t$95$1, If[LessEqual[z, -2.7e-40], t$95$2, If[LessEqual[z, -2.25e-160], N[(x / N[((-z) * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.5e-126], N[(x / N[(t * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.5e+20], t$95$2, 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}\\
      t_2 := \frac{x}{y \cdot \left(-z\right)}\\
      \mathbf{if}\;z \leq -2.7 \cdot 10^{+77}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;z \leq -2.7 \cdot 10^{-40}:\\
      \;\;\;\;t\_2\\
      
      \mathbf{elif}\;z \leq -2.25 \cdot 10^{-160}:\\
      \;\;\;\;\frac{x}{\left(-z\right) \cdot t}\\
      
      \mathbf{elif}\;z \leq 3.5 \cdot 10^{-126}:\\
      \;\;\;\;\frac{x}{t \cdot y}\\
      
      \mathbf{elif}\;z \leq 7.5 \cdot 10^{+20}:\\
      \;\;\;\;t\_2\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 4 regimes
      2. if z < -2.6999999999999998e77 or 7.5e20 < z

        1. Initial program 81.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-*.f6469.8

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

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

        if -2.6999999999999998e77 < z < -2.7e-40 or 3.5e-126 < z < 7.5e20

        1. Initial program 95.0%

          \[\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.f6454.7

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

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

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

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

          if -2.7e-40 < z < -2.25000000000000013e-160

          1. Initial program 97.1%

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

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

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

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

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

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

            if -2.25000000000000013e-160 < z < 3.5e-126

            1. Initial program 92.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-*.f6471.5

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

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

          Alternative 5: 77.6% accurate, 0.5× speedup?

          \[\begin{array}{l} [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\ \\ \begin{array}{l} \mathbf{if}\;y \leq -5.5 \cdot 10^{+51}:\\ \;\;\;\;\frac{x}{y \cdot \left(t - z\right)}\\ \mathbf{elif}\;y \leq -1.35 \cdot 10^{-82}:\\ \;\;\;\;\frac{x}{\left(y - z\right) \cdot \left(-z\right)}\\ \mathbf{elif}\;y \leq 8 \cdot 10^{-169}:\\ \;\;\;\;\frac{x}{\left(-z\right) \cdot \left(t - z\right)}\\ \mathbf{elif}\;y \leq 3 \cdot 10^{+119}:\\ \;\;\;\;\frac{x}{\left(y - z\right) \cdot t}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{t}}{y}\\ \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 -5.5e+51)
             (/ x (* y (- t z)))
             (if (<= y -1.35e-82)
               (/ x (* (- y z) (- z)))
               (if (<= y 8e-169)
                 (/ x (* (- z) (- t z)))
                 (if (<= y 3e+119) (/ x (* (- y z) t)) (/ (/ x t) y))))))
          assert(x < y && y < z && z < t);
          double code(double x, double y, double z, double t) {
          	double tmp;
          	if (y <= -5.5e+51) {
          		tmp = x / (y * (t - z));
          	} else if (y <= -1.35e-82) {
          		tmp = x / ((y - z) * -z);
          	} else if (y <= 8e-169) {
          		tmp = x / (-z * (t - z));
          	} else if (y <= 3e+119) {
          		tmp = x / ((y - z) * t);
          	} else {
          		tmp = (x / t) / y;
          	}
          	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 <= (-5.5d+51)) then
                  tmp = x / (y * (t - z))
              else if (y <= (-1.35d-82)) then
                  tmp = x / ((y - z) * -z)
              else if (y <= 8d-169) then
                  tmp = x / (-z * (t - z))
              else if (y <= 3d+119) then
                  tmp = x / ((y - z) * t)
              else
                  tmp = (x / t) / y
              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 <= -5.5e+51) {
          		tmp = x / (y * (t - z));
          	} else if (y <= -1.35e-82) {
          		tmp = x / ((y - z) * -z);
          	} else if (y <= 8e-169) {
          		tmp = x / (-z * (t - z));
          	} else if (y <= 3e+119) {
          		tmp = x / ((y - z) * t);
          	} else {
          		tmp = (x / t) / y;
          	}
          	return tmp;
          }
          
          [x, y, z, t] = sort([x, y, z, t])
          def code(x, y, z, t):
          	tmp = 0
          	if y <= -5.5e+51:
          		tmp = x / (y * (t - z))
          	elif y <= -1.35e-82:
          		tmp = x / ((y - z) * -z)
          	elif y <= 8e-169:
          		tmp = x / (-z * (t - z))
          	elif y <= 3e+119:
          		tmp = x / ((y - z) * t)
          	else:
          		tmp = (x / t) / y
          	return tmp
          
          x, y, z, t = sort([x, y, z, t])
          function code(x, y, z, t)
          	tmp = 0.0
          	if (y <= -5.5e+51)
          		tmp = Float64(x / Float64(y * Float64(t - z)));
          	elseif (y <= -1.35e-82)
          		tmp = Float64(x / Float64(Float64(y - z) * Float64(-z)));
          	elseif (y <= 8e-169)
          		tmp = Float64(x / Float64(Float64(-z) * Float64(t - z)));
          	elseif (y <= 3e+119)
          		tmp = Float64(x / Float64(Float64(y - z) * t));
          	else
          		tmp = Float64(Float64(x / t) / y);
          	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 <= -5.5e+51)
          		tmp = x / (y * (t - z));
          	elseif (y <= -1.35e-82)
          		tmp = x / ((y - z) * -z);
          	elseif (y <= 8e-169)
          		tmp = x / (-z * (t - z));
          	elseif (y <= 3e+119)
          		tmp = x / ((y - z) * t);
          	else
          		tmp = (x / t) / y;
          	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, -5.5e+51], N[(x / N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.35e-82], N[(x / N[(N[(y - z), $MachinePrecision] * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8e-169], N[(x / N[((-z) * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3e+119], N[(x / N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], N[(N[(x / t), $MachinePrecision] / y), $MachinePrecision]]]]]
          
          \begin{array}{l}
          [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
          \\
          \begin{array}{l}
          \mathbf{if}\;y \leq -5.5 \cdot 10^{+51}:\\
          \;\;\;\;\frac{x}{y \cdot \left(t - z\right)}\\
          
          \mathbf{elif}\;y \leq -1.35 \cdot 10^{-82}:\\
          \;\;\;\;\frac{x}{\left(y - z\right) \cdot \left(-z\right)}\\
          
          \mathbf{elif}\;y \leq 8 \cdot 10^{-169}:\\
          \;\;\;\;\frac{x}{\left(-z\right) \cdot \left(t - z\right)}\\
          
          \mathbf{elif}\;y \leq 3 \cdot 10^{+119}:\\
          \;\;\;\;\frac{x}{\left(y - z\right) \cdot t}\\
          
          \mathbf{else}:\\
          \;\;\;\;\frac{\frac{x}{t}}{y}\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 5 regimes
          2. if y < -5.5e51

            1. Initial program 86.4%

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

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

              if -5.5e51 < y < -1.3500000000000001e-82

              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}{\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.f6459.1

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

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

              if -1.3500000000000001e-82 < y < 8.00000000000000016e-169

              1. Initial program 90.9%

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

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

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

              if 8.00000000000000016e-169 < y < 3.00000000000000001e119

              1. Initial program 89.1%

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

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

                if 3.00000000000000001e119 < y

                1. Initial program 77.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.9

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

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

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

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

                    \[\leadsto \frac{\frac{x}{t}}{\color{blue}{y}} \]
                  3. lift-/.f6495.4

                    \[\leadsto \frac{\frac{x}{t}}{y} \]
                6. Applied rewrites95.4%

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

              Alternative 6: 77.7% accurate, 0.5× speedup?

              \[\begin{array}{l} [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\ \\ \begin{array}{l} \mathbf{if}\;y \leq -5.5 \cdot 10^{+51}:\\ \;\;\;\;\frac{x}{y \cdot \left(t - z\right)}\\ \mathbf{elif}\;y \leq -1.35 \cdot 10^{-82}:\\ \;\;\;\;\frac{x}{\left(y - z\right) \cdot \left(-z\right)}\\ \mathbf{elif}\;y \leq 8 \cdot 10^{-169}:\\ \;\;\;\;\frac{x}{\left(-z\right) \cdot \left(t - z\right)}\\ \mathbf{elif}\;y \leq 7 \cdot 10^{+110}:\\ \;\;\;\;\frac{x}{\left(y - z\right) \cdot 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 -5.5e+51)
                 (/ x (* y (- t z)))
                 (if (<= y -1.35e-82)
                   (/ x (* (- y z) (- z)))
                   (if (<= y 8e-169)
                     (/ x (* (- z) (- t z)))
                     (if (<= y 7e+110) (/ x (* (- y 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 <= -5.5e+51) {
              		tmp = x / (y * (t - z));
              	} else if (y <= -1.35e-82) {
              		tmp = x / ((y - z) * -z);
              	} else if (y <= 8e-169) {
              		tmp = x / (-z * (t - z));
              	} else if (y <= 7e+110) {
              		tmp = x / ((y - 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 <= (-5.5d+51)) then
                      tmp = x / (y * (t - z))
                  else if (y <= (-1.35d-82)) then
                      tmp = x / ((y - z) * -z)
                  else if (y <= 8d-169) then
                      tmp = x / (-z * (t - z))
                  else if (y <= 7d+110) then
                      tmp = x / ((y - 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 <= -5.5e+51) {
              		tmp = x / (y * (t - z));
              	} else if (y <= -1.35e-82) {
              		tmp = x / ((y - z) * -z);
              	} else if (y <= 8e-169) {
              		tmp = x / (-z * (t - z));
              	} else if (y <= 7e+110) {
              		tmp = x / ((y - 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 <= -5.5e+51:
              		tmp = x / (y * (t - z))
              	elif y <= -1.35e-82:
              		tmp = x / ((y - z) * -z)
              	elif y <= 8e-169:
              		tmp = x / (-z * (t - z))
              	elif y <= 7e+110:
              		tmp = x / ((y - 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 <= -5.5e+51)
              		tmp = Float64(x / Float64(y * Float64(t - z)));
              	elseif (y <= -1.35e-82)
              		tmp = Float64(x / Float64(Float64(y - z) * Float64(-z)));
              	elseif (y <= 8e-169)
              		tmp = Float64(x / Float64(Float64(-z) * Float64(t - z)));
              	elseif (y <= 7e+110)
              		tmp = Float64(x / Float64(Float64(y - 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 <= -5.5e+51)
              		tmp = x / (y * (t - z));
              	elseif (y <= -1.35e-82)
              		tmp = x / ((y - z) * -z);
              	elseif (y <= 8e-169)
              		tmp = x / (-z * (t - z));
              	elseif (y <= 7e+110)
              		tmp = x / ((y - 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, -5.5e+51], N[(x / N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.35e-82], N[(x / N[(N[(y - z), $MachinePrecision] * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8e-169], N[(x / N[((-z) * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7e+110], N[(x / N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]), $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 -5.5 \cdot 10^{+51}:\\
              \;\;\;\;\frac{x}{y \cdot \left(t - z\right)}\\
              
              \mathbf{elif}\;y \leq -1.35 \cdot 10^{-82}:\\
              \;\;\;\;\frac{x}{\left(y - z\right) \cdot \left(-z\right)}\\
              
              \mathbf{elif}\;y \leq 8 \cdot 10^{-169}:\\
              \;\;\;\;\frac{x}{\left(-z\right) \cdot \left(t - z\right)}\\
              
              \mathbf{elif}\;y \leq 7 \cdot 10^{+110}:\\
              \;\;\;\;\frac{x}{\left(y - z\right) \cdot t}\\
              
              \mathbf{else}:\\
              \;\;\;\;\frac{\frac{x}{y}}{t}\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 5 regimes
              2. if y < -5.5e51

                1. Initial program 86.4%

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

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

                  if -5.5e51 < y < -1.3500000000000001e-82

                  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}{\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.f6459.1

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

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

                  if -1.3500000000000001e-82 < y < 8.00000000000000016e-169

                  1. Initial program 90.9%

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

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

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

                  if 8.00000000000000016e-169 < y < 6.9999999999999998e110

                  1. Initial program 89.3%

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

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

                    if 6.9999999999999998e110 < y

                    1. Initial program 77.7%

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

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

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

                        \[\leadsto \frac{\frac{x \cdot z}{t \cdot \left(y - z\right)} + \frac{x}{y - z}}{t} \]
                      3. times-fracN/A

                        \[\leadsto \frac{\frac{x}{t} \cdot \frac{z}{y - z} + \frac{x}{y - z}}{t} \]
                      4. lower-fma.f64N/A

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

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

                        \[\leadsto \frac{\mathsf{fma}\left(\frac{x}{t}, \frac{z}{y - z}, \frac{x}{y - z}\right)}{t} \]
                      7. lift--.f64N/A

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

                        \[\leadsto \frac{\mathsf{fma}\left(\frac{x}{t}, \frac{z}{y - z}, \frac{x}{y - z}\right)}{t} \]
                      9. lift--.f6496.9

                        \[\leadsto \frac{\mathsf{fma}\left(\frac{x}{t}, \frac{z}{y - z}, \frac{x}{y - z}\right)}{t} \]
                    4. Applied rewrites96.9%

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

                      \[\leadsto \frac{\frac{x}{y}}{t} \]
                    6. Step-by-step derivation
                      1. lower-/.f6494.4

                        \[\leadsto \frac{\frac{x}{y}}{t} \]
                    7. Applied rewrites94.4%

                      \[\leadsto \frac{\frac{x}{y}}{t} \]
                  4. Recombined 5 regimes into one program.
                  5. Add Preprocessing

                  Alternative 7: 59.9% accurate, 0.5× speedup?

                  \[\begin{array}{l} [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\ \\ \begin{array}{l} t_1 := \frac{x}{z \cdot z}\\ t_2 := \frac{x}{y \cdot \left(-z\right)}\\ \mathbf{if}\;z \leq -2.7 \cdot 10^{+77}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -3.4 \cdot 10^{-9}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;z \leq 3.5 \cdot 10^{-126}:\\ \;\;\;\;\frac{x}{t \cdot y}\\ \mathbf{elif}\;z \leq 7.5 \cdot 10^{+20}:\\ \;\;\;\;t\_2\\ \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))) (t_2 (/ x (* y (- z)))))
                     (if (<= z -2.7e+77)
                       t_1
                       (if (<= z -3.4e-9)
                         t_2
                         (if (<= z 3.5e-126) (/ x (* t y)) (if (<= z 7.5e+20) t_2 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 t_2 = x / (y * -z);
                  	double tmp;
                  	if (z <= -2.7e+77) {
                  		tmp = t_1;
                  	} else if (z <= -3.4e-9) {
                  		tmp = t_2;
                  	} else if (z <= 3.5e-126) {
                  		tmp = x / (t * y);
                  	} else if (z <= 7.5e+20) {
                  		tmp = t_2;
                  	} 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) :: t_2
                      real(8) :: tmp
                      t_1 = x / (z * z)
                      t_2 = x / (y * -z)
                      if (z <= (-2.7d+77)) then
                          tmp = t_1
                      else if (z <= (-3.4d-9)) then
                          tmp = t_2
                      else if (z <= 3.5d-126) then
                          tmp = x / (t * y)
                      else if (z <= 7.5d+20) then
                          tmp = t_2
                      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 t_2 = x / (y * -z);
                  	double tmp;
                  	if (z <= -2.7e+77) {
                  		tmp = t_1;
                  	} else if (z <= -3.4e-9) {
                  		tmp = t_2;
                  	} else if (z <= 3.5e-126) {
                  		tmp = x / (t * y);
                  	} else if (z <= 7.5e+20) {
                  		tmp = t_2;
                  	} 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)
                  	t_2 = x / (y * -z)
                  	tmp = 0
                  	if z <= -2.7e+77:
                  		tmp = t_1
                  	elif z <= -3.4e-9:
                  		tmp = t_2
                  	elif z <= 3.5e-126:
                  		tmp = x / (t * y)
                  	elif z <= 7.5e+20:
                  		tmp = t_2
                  	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))
                  	t_2 = Float64(x / Float64(y * Float64(-z)))
                  	tmp = 0.0
                  	if (z <= -2.7e+77)
                  		tmp = t_1;
                  	elseif (z <= -3.4e-9)
                  		tmp = t_2;
                  	elseif (z <= 3.5e-126)
                  		tmp = Float64(x / Float64(t * y));
                  	elseif (z <= 7.5e+20)
                  		tmp = t_2;
                  	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);
                  	t_2 = x / (y * -z);
                  	tmp = 0.0;
                  	if (z <= -2.7e+77)
                  		tmp = t_1;
                  	elseif (z <= -3.4e-9)
                  		tmp = t_2;
                  	elseif (z <= 3.5e-126)
                  		tmp = x / (t * y);
                  	elseif (z <= 7.5e+20)
                  		tmp = t_2;
                  	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]}, Block[{t$95$2 = N[(x / N[(y * (-z)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.7e+77], t$95$1, If[LessEqual[z, -3.4e-9], t$95$2, If[LessEqual[z, 3.5e-126], N[(x / N[(t * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.5e+20], t$95$2, 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}\\
                  t_2 := \frac{x}{y \cdot \left(-z\right)}\\
                  \mathbf{if}\;z \leq -2.7 \cdot 10^{+77}:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{elif}\;z \leq -3.4 \cdot 10^{-9}:\\
                  \;\;\;\;t\_2\\
                  
                  \mathbf{elif}\;z \leq 3.5 \cdot 10^{-126}:\\
                  \;\;\;\;\frac{x}{t \cdot y}\\
                  
                  \mathbf{elif}\;z \leq 7.5 \cdot 10^{+20}:\\
                  \;\;\;\;t\_2\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;t\_1\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 3 regimes
                  2. if z < -2.6999999999999998e77 or 7.5e20 < z

                    1. Initial program 81.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-*.f6469.8

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

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

                    if -2.6999999999999998e77 < z < -3.3999999999999998e-9 or 3.5e-126 < z < 7.5e20

                    1. Initial program 94.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.f6455.1

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

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

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

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

                      if -3.3999999999999998e-9 < z < 3.5e-126

                      1. Initial program 94.0%

                        \[\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-*.f6462.5

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

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

                    Alternative 8: 77.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 -5.5 \cdot 10^{+51}:\\ \;\;\;\;\frac{x}{y \cdot \left(t - z\right)}\\ \mathbf{elif}\;y \leq -1.35 \cdot 10^{-82}:\\ \;\;\;\;\frac{x}{\left(y - z\right) \cdot \left(-z\right)}\\ \mathbf{elif}\;y \leq 8 \cdot 10^{-169}:\\ \;\;\;\;\frac{x}{\left(-z\right) \cdot \left(t - z\right)}\\ \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 (<= y -5.5e+51)
                       (/ x (* y (- t z)))
                       (if (<= y -1.35e-82)
                         (/ x (* (- y z) (- z)))
                         (if (<= y 8e-169) (/ 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 <= -5.5e+51) {
                    		tmp = x / (y * (t - z));
                    	} else if (y <= -1.35e-82) {
                    		tmp = x / ((y - z) * -z);
                    	} else if (y <= 8e-169) {
                    		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 <= (-5.5d+51)) then
                            tmp = x / (y * (t - z))
                        else if (y <= (-1.35d-82)) then
                            tmp = x / ((y - z) * -z)
                        else if (y <= 8d-169) 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 <= -5.5e+51) {
                    		tmp = x / (y * (t - z));
                    	} else if (y <= -1.35e-82) {
                    		tmp = x / ((y - z) * -z);
                    	} else if (y <= 8e-169) {
                    		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 <= -5.5e+51:
                    		tmp = x / (y * (t - z))
                    	elif y <= -1.35e-82:
                    		tmp = x / ((y - z) * -z)
                    	elif y <= 8e-169:
                    		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 <= -5.5e+51)
                    		tmp = Float64(x / Float64(y * Float64(t - z)));
                    	elseif (y <= -1.35e-82)
                    		tmp = Float64(x / Float64(Float64(y - z) * Float64(-z)));
                    	elseif (y <= 8e-169)
                    		tmp = Float64(x / Float64(Float64(-z) * Float64(t - 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 (y <= -5.5e+51)
                    		tmp = x / (y * (t - z));
                    	elseif (y <= -1.35e-82)
                    		tmp = x / ((y - z) * -z);
                    	elseif (y <= 8e-169)
                    		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, -5.5e+51], N[(x / N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.35e-82], N[(x / N[(N[(y - z), $MachinePrecision] * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8e-169], N[(x / N[((-z) * N[(t - z), $MachinePrecision]), $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}\;y \leq -5.5 \cdot 10^{+51}:\\
                    \;\;\;\;\frac{x}{y \cdot \left(t - z\right)}\\
                    
                    \mathbf{elif}\;y \leq -1.35 \cdot 10^{-82}:\\
                    \;\;\;\;\frac{x}{\left(y - z\right) \cdot \left(-z\right)}\\
                    
                    \mathbf{elif}\;y \leq 8 \cdot 10^{-169}:\\
                    \;\;\;\;\frac{x}{\left(-z\right) \cdot \left(t - z\right)}\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;\frac{x}{\left(y - z\right) \cdot t}\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 4 regimes
                    2. if y < -5.5e51

                      1. Initial program 86.4%

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

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

                        if -5.5e51 < y < -1.3500000000000001e-82

                        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}{\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.f6459.1

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

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

                        if -1.3500000000000001e-82 < y < 8.00000000000000016e-169

                        1. Initial program 90.9%

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

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

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

                        if 8.00000000000000016e-169 < y

                        1. Initial program 87.3%

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

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

                        Alternative 9: 77.6% accurate, 0.7× speedup?

                        \[\begin{array}{l} [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\ \\ \begin{array}{l} \mathbf{if}\;y \leq -0.11:\\ \;\;\;\;\frac{x}{y \cdot \left(t - z\right)}\\ \mathbf{elif}\;y \leq 8 \cdot 10^{-169}:\\ \;\;\;\;\frac{x}{\left(-z\right) \cdot \left(t - z\right)}\\ \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 (<= y -0.11)
                           (/ x (* y (- t z)))
                           (if (<= y 8e-169) (/ 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 <= -0.11) {
                        		tmp = x / (y * (t - z));
                        	} else if (y <= 8e-169) {
                        		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 <= (-0.11d0)) then
                                tmp = x / (y * (t - z))
                            else if (y <= 8d-169) 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 <= -0.11) {
                        		tmp = x / (y * (t - z));
                        	} else if (y <= 8e-169) {
                        		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 <= -0.11:
                        		tmp = x / (y * (t - z))
                        	elif y <= 8e-169:
                        		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 <= -0.11)
                        		tmp = Float64(x / Float64(y * Float64(t - z)));
                        	elseif (y <= 8e-169)
                        		tmp = Float64(x / Float64(Float64(-z) * Float64(t - 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 (y <= -0.11)
                        		tmp = x / (y * (t - z));
                        	elseif (y <= 8e-169)
                        		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, -0.11], N[(x / N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8e-169], N[(x / N[((-z) * N[(t - z), $MachinePrecision]), $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}\;y \leq -0.11:\\
                        \;\;\;\;\frac{x}{y \cdot \left(t - z\right)}\\
                        
                        \mathbf{elif}\;y \leq 8 \cdot 10^{-169}:\\
                        \;\;\;\;\frac{x}{\left(-z\right) \cdot \left(t - z\right)}\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;\frac{x}{\left(y - z\right) \cdot t}\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 3 regimes
                        2. if y < -0.110000000000000001

                          1. Initial program 87.4%

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

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

                            if -0.110000000000000001 < y < 8.00000000000000016e-169

                            1. Initial program 91.1%

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

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

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

                            if 8.00000000000000016e-169 < y

                            1. Initial program 87.3%

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

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

                            Alternative 10: 70.1% accurate, 0.7× speedup?

                            \[\begin{array}{l} [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\ \\ \begin{array}{l} \mathbf{if}\;y \leq -0.11:\\ \;\;\;\;\frac{x}{y \cdot \left(t - z\right)}\\ \mathbf{elif}\;y \leq -1.32 \cdot 10^{-238}:\\ \;\;\;\;\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 (<= y -0.11)
                               (/ x (* y (- t z)))
                               (if (<= y -1.32e-238) (/ 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 (y <= -0.11) {
                            		tmp = x / (y * (t - z));
                            	} else if (y <= -1.32e-238) {
                            		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 (y <= (-0.11d0)) then
                                    tmp = x / (y * (t - z))
                                else if (y <= (-1.32d-238)) 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 (y <= -0.11) {
                            		tmp = x / (y * (t - z));
                            	} else if (y <= -1.32e-238) {
                            		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 y <= -0.11:
                            		tmp = x / (y * (t - z))
                            	elif y <= -1.32e-238:
                            		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 (y <= -0.11)
                            		tmp = Float64(x / Float64(y * Float64(t - z)));
                            	elseif (y <= -1.32e-238)
                            		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 (y <= -0.11)
                            		tmp = x / (y * (t - z));
                            	elseif (y <= -1.32e-238)
                            		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[y, -0.11], N[(x / N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.32e-238], 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}\;y \leq -0.11:\\
                            \;\;\;\;\frac{x}{y \cdot \left(t - z\right)}\\
                            
                            \mathbf{elif}\;y \leq -1.32 \cdot 10^{-238}:\\
                            \;\;\;\;\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 y < -0.110000000000000001

                              1. Initial program 87.4%

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

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

                                if -0.110000000000000001 < y < -1.31999999999999998e-238

                                1. Initial program 91.4%

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

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

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

                                if -1.31999999999999998e-238 < y

                                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 rewrites69.6%

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

                                Alternative 11: 68.7% 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.65 \cdot 10^{+89}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.45 \cdot 10^{+80}:\\ \;\;\;\;\frac{x}{y \cdot \left(t - z\right)}\\ \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.65e+89) t_1 (if (<= z 1.45e+80) (/ x (* y (- t z))) 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.65e+89) {
                                		tmp = t_1;
                                	} else if (z <= 1.45e+80) {
                                		tmp = x / (y * (t - z));
                                	} 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.65d+89)) then
                                        tmp = t_1
                                    else if (z <= 1.45d+80) then
                                        tmp = x / (y * (t - z))
                                    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.65e+89) {
                                		tmp = t_1;
                                	} else if (z <= 1.45e+80) {
                                		tmp = x / (y * (t - z));
                                	} 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.65e+89:
                                		tmp = t_1
                                	elif z <= 1.45e+80:
                                		tmp = x / (y * (t - z))
                                	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.65e+89)
                                		tmp = t_1;
                                	elseif (z <= 1.45e+80)
                                		tmp = Float64(x / Float64(y * Float64(t - z)));
                                	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.65e+89)
                                		tmp = t_1;
                                	elseif (z <= 1.45e+80)
                                		tmp = x / (y * (t - z));
                                	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.65e+89], t$95$1, If[LessEqual[z, 1.45e+80], N[(x / N[(y * N[(t - z), $MachinePrecision]), $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.65 \cdot 10^{+89}:\\
                                \;\;\;\;t\_1\\
                                
                                \mathbf{elif}\;z \leq 1.45 \cdot 10^{+80}:\\
                                \;\;\;\;\frac{x}{y \cdot \left(t - z\right)}\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;t\_1\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 2 regimes
                                2. if z < -1.64999999999999987e89 or 1.44999999999999993e80 < z

                                  1. Initial program 79.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-*.f6473.5

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

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

                                  if -1.64999999999999987e89 < z < 1.44999999999999993e80

                                  1. Initial program 94.0%

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

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

                                  Alternative 12: 90.3% accurate, 0.7× speedup?

                                  \[\begin{array}{l} [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\ \\ \begin{array}{l} \mathbf{if}\;t \leq 2.6 \cdot 10^{+115}:\\ \;\;\;\;\frac{x}{\left(y - 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 (<= t 2.6e+115) (/ x (* (- y 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 (t <= 2.6e+115) {
                                  		tmp = x / ((y - 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 (t <= 2.6d+115) then
                                          tmp = x / ((y - 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 (t <= 2.6e+115) {
                                  		tmp = x / ((y - 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 t <= 2.6e+115:
                                  		tmp = x / ((y - 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 (t <= 2.6e+115)
                                  		tmp = Float64(x / Float64(Float64(y - 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 (t <= 2.6e+115)
                                  		tmp = x / ((y - 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[t, 2.6e+115], N[(x / N[(N[(y - z), $MachinePrecision] * 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}\;t \leq 2.6 \cdot 10^{+115}:\\
                                  \;\;\;\;\frac{x}{\left(y - z\right) \cdot \left(t - z\right)}\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;\frac{\frac{x}{y - z}}{t}\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 2 regimes
                                  2. if t < 2.6e115

                                    1. Initial program 90.5%

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

                                    if 2.6e115 < t

                                    1. Initial program 85.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 rewrites84.6%

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

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

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

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

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

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

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

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

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

                                    Alternative 13: 91.1% accurate, 0.7× speedup?

                                    \[\begin{array}{l} [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\ \\ \begin{array}{l} \mathbf{if}\;t \leq 2.4 \cdot 10^{+176}:\\ \;\;\;\;\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 2.4e+176) (/ 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 <= 2.4e+176) {
                                    		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 <= 2.4d+176) 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 <= 2.4e+176) {
                                    		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 <= 2.4e+176:
                                    		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 <= 2.4e+176)
                                    		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 <= 2.4e+176)
                                    		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, 2.4e+176], 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 2.4 \cdot 10^{+176}:\\
                                    \;\;\;\;\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 < 2.4000000000000001e176

                                      1. Initial program 90.3%

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

                                      if 2.4000000000000001e176 < t

                                      1. Initial program 83.6%

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

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

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

                                        \[\leadsto \frac{\color{blue}{\frac{x}{t}}}{y - z} \]
                                      5. Step-by-step derivation
                                        1. lift-/.f6494.1

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

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

                                    Alternative 14: 60.0% accurate, 0.8× 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 -3.95 \cdot 10^{+71}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 25:\\ \;\;\;\;\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 -3.95e+71) t_1 (if (<= z 25.0) (/ 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 <= -3.95e+71) {
                                    		tmp = t_1;
                                    	} else if (z <= 25.0) {
                                    		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 <= (-3.95d+71)) then
                                            tmp = t_1
                                        else if (z <= 25.0d0) 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 <= -3.95e+71) {
                                    		tmp = t_1;
                                    	} else if (z <= 25.0) {
                                    		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 <= -3.95e+71:
                                    		tmp = t_1
                                    	elif z <= 25.0:
                                    		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 <= -3.95e+71)
                                    		tmp = t_1;
                                    	elseif (z <= 25.0)
                                    		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 <= -3.95e+71)
                                    		tmp = t_1;
                                    	elseif (z <= 25.0)
                                    		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, -3.95e+71], t$95$1, If[LessEqual[z, 25.0], 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 -3.95 \cdot 10^{+71}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    \mathbf{elif}\;z \leq 25:\\
                                    \;\;\;\;\frac{x}{t \cdot y}\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 2 regimes
                                    2. if z < -3.95000000000000014e71 or 25 < z

                                      1. Initial program 81.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-*.f6468.4

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

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

                                      if -3.95000000000000014e71 < z < 25

                                      1. Initial program 94.4%

                                        \[\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-*.f6453.6

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

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

                                    Alternative 15: 88.9% accurate, 1.0× speedup?

                                    \[\begin{array}{l} [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\ \\ \frac{x}{\left(y - z\right) \cdot \left(t - z\right)} \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(x / Float64(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[(x / N[(N[(y - z), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                                    
                                    \begin{array}{l}
                                    [x, y, z, t] = \mathsf{sort}([x, y, z, t])\\
                                    \\
                                    \frac{x}{\left(y - z\right) \cdot \left(t - z\right)}
                                    \end{array}
                                    
                                    Derivation
                                    1. Initial program 88.9%

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

                                    Alternative 16: 39.4% accurate, 1.4× 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 88.9%

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

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

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

                                    Developer Target 1: 87.7% accurate, 0.4× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(y - z\right) \cdot \left(t - z\right)\\ \mathbf{if}\;\frac{x}{t\_1} < 0:\\ \;\;\;\;\frac{\frac{x}{y - z}}{t - z}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{1}{t\_1}\\ \end{array} \end{array} \]
                                    (FPCore (x y z t)
                                     :precision binary64
                                     (let* ((t_1 (* (- y z) (- t z))))
                                       (if (< (/ x t_1) 0.0) (/ (/ x (- y z)) (- t z)) (* x (/ 1.0 t_1)))))
                                    double code(double x, double y, double z, double t) {
                                    	double t_1 = (y - z) * (t - z);
                                    	double tmp;
                                    	if ((x / t_1) < 0.0) {
                                    		tmp = (x / (y - z)) / (t - z);
                                    	} else {
                                    		tmp = x * (1.0 / t_1);
                                    	}
                                    	return tmp;
                                    }
                                    
                                    module fmin_fmax_functions
                                        implicit none
                                        private
                                        public fmax
                                        public fmin
                                    
                                        interface fmax
                                            module procedure fmax88
                                            module procedure fmax44
                                            module procedure fmax84
                                            module procedure fmax48
                                        end interface
                                        interface fmin
                                            module procedure fmin88
                                            module procedure fmin44
                                            module procedure fmin84
                                            module procedure fmin48
                                        end interface
                                    contains
                                        real(8) function fmax88(x, y) result (res)
                                            real(8), intent (in) :: x
                                            real(8), intent (in) :: y
                                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                        end function
                                        real(4) function fmax44(x, y) result (res)
                                            real(4), intent (in) :: x
                                            real(4), intent (in) :: y
                                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                        end function
                                        real(8) function fmax84(x, y) result(res)
                                            real(8), intent (in) :: x
                                            real(4), intent (in) :: y
                                            res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                        end function
                                        real(8) function fmax48(x, y) result(res)
                                            real(4), intent (in) :: x
                                            real(8), intent (in) :: y
                                            res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                        end function
                                        real(8) function fmin88(x, y) result (res)
                                            real(8), intent (in) :: x
                                            real(8), intent (in) :: y
                                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                        end function
                                        real(4) function fmin44(x, y) result (res)
                                            real(4), intent (in) :: x
                                            real(4), intent (in) :: y
                                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                        end function
                                        real(8) function fmin84(x, y) result(res)
                                            real(8), intent (in) :: x
                                            real(4), intent (in) :: y
                                            res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                        end function
                                        real(8) function fmin48(x, y) result(res)
                                            real(4), intent (in) :: x
                                            real(8), intent (in) :: y
                                            res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                        end function
                                    end module
                                    
                                    real(8) function code(x, y, z, t)
                                    use fmin_fmax_functions
                                        real(8), intent (in) :: x
                                        real(8), intent (in) :: y
                                        real(8), intent (in) :: z
                                        real(8), intent (in) :: t
                                        real(8) :: t_1
                                        real(8) :: tmp
                                        t_1 = (y - z) * (t - z)
                                        if ((x / t_1) < 0.0d0) then
                                            tmp = (x / (y - z)) / (t - z)
                                        else
                                            tmp = x * (1.0d0 / t_1)
                                        end if
                                        code = tmp
                                    end function
                                    
                                    public static double code(double x, double y, double z, double t) {
                                    	double t_1 = (y - z) * (t - z);
                                    	double tmp;
                                    	if ((x / t_1) < 0.0) {
                                    		tmp = (x / (y - z)) / (t - z);
                                    	} else {
                                    		tmp = x * (1.0 / t_1);
                                    	}
                                    	return tmp;
                                    }
                                    
                                    def code(x, y, z, t):
                                    	t_1 = (y - z) * (t - z)
                                    	tmp = 0
                                    	if (x / t_1) < 0.0:
                                    		tmp = (x / (y - z)) / (t - z)
                                    	else:
                                    		tmp = x * (1.0 / t_1)
                                    	return tmp
                                    
                                    function code(x, y, z, t)
                                    	t_1 = Float64(Float64(y - z) * Float64(t - z))
                                    	tmp = 0.0
                                    	if (Float64(x / t_1) < 0.0)
                                    		tmp = Float64(Float64(x / Float64(y - z)) / Float64(t - z));
                                    	else
                                    		tmp = Float64(x * Float64(1.0 / t_1));
                                    	end
                                    	return tmp
                                    end
                                    
                                    function tmp_2 = code(x, y, z, t)
                                    	t_1 = (y - z) * (t - z);
                                    	tmp = 0.0;
                                    	if ((x / t_1) < 0.0)
                                    		tmp = (x / (y - z)) / (t - z);
                                    	else
                                    		tmp = x * (1.0 / t_1);
                                    	end
                                    	tmp_2 = tmp;
                                    end
                                    
                                    code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y - z), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]}, If[Less[N[(x / t$95$1), $MachinePrecision], 0.0], N[(N[(x / N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision]]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    t_1 := \left(y - z\right) \cdot \left(t - z\right)\\
                                    \mathbf{if}\;\frac{x}{t\_1} < 0:\\
                                    \;\;\;\;\frac{\frac{x}{y - z}}{t - z}\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;x \cdot \frac{1}{t\_1}\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    

                                    Reproduce

                                    ?
                                    herbie shell --seed 2025105 
                                    (FPCore (x y z t)
                                      :name "Data.Random.Distribution.Triangular:triangularCDF from random-fu-0.2.6.2, B"
                                      :precision binary64
                                    
                                      :alt
                                      (! :herbie-platform default (if (< (/ x (* (- y z) (- t z))) 0) (/ (/ x (- y z)) (- t z)) (* x (/ 1 (* (- y z) (- t z))))))
                                    
                                      (/ x (* (- y z) (- t z))))