Numeric.SpecFunctions:incompleteGamma from math-functions-0.1.5.2, A

Percentage Accurate: 99.9% → 99.9%
Time: 7.1s
Alternatives: 11
Speedup: 1.0×

Specification

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

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

real(8) function code(x, y, z, t)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    code = (((x * log(y)) - y) - z) + log(t)
end function
public static double code(double x, double y, double z, double t) {
	return (((x * Math.log(y)) - y) - z) + Math.log(t);
}
def code(x, y, z, t):
	return (((x * math.log(y)) - y) - z) + math.log(t)
function code(x, y, z, t)
	return Float64(Float64(Float64(Float64(x * log(y)) - y) - z) + log(t))
end
function tmp = code(x, y, z, t)
	tmp = (((x * log(y)) - y) - z) + log(t);
end
code[x_, y_, z_, t_] := N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision] - z), $MachinePrecision] + N[Log[t], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

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

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

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

real(8) function code(x, y, z, t)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    code = (((x * log(y)) - y) - z) + log(t)
end function
public static double code(double x, double y, double z, double t) {
	return (((x * Math.log(y)) - y) - z) + Math.log(t);
}
def code(x, y, z, t):
	return (((x * math.log(y)) - y) - z) + math.log(t)
function code(x, y, z, t)
	return Float64(Float64(Float64(Float64(x * log(y)) - y) - z) + log(t))
end
function tmp = code(x, y, z, t)
	tmp = (((x * log(y)) - y) - z) + log(t);
end
code[x_, y_, z_, t_] := N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision] - z), $MachinePrecision] + N[Log[t], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Alternative 1: 99.9% accurate, 1.0× speedup?

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

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

real(8) function code(x, y, z, t)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    code = (((x * log(y)) - y) - z) + log(t)
end function
public static double code(double x, double y, double z, double t) {
	return (((x * Math.log(y)) - y) - z) + Math.log(t);
}
def code(x, y, z, t):
	return (((x * math.log(y)) - y) - z) + math.log(t)
function code(x, y, z, t)
	return Float64(Float64(Float64(Float64(x * log(y)) - y) - z) + log(t))
end
function tmp = code(x, y, z, t)
	tmp = (((x * log(y)) - y) - z) + log(t);
end
code[x_, y_, z_, t_] := N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision] - z), $MachinePrecision] + N[Log[t], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left(\left(x \cdot \log y - y\right) - z\right) + \log t
\end{array}
Derivation
  1. Initial program 99.8%

    \[\left(\left(x \cdot \log y - y\right) - z\right) + \log t \]
  2. Add Preprocessing
  3. Add Preprocessing

Alternative 2: 69.9% accurate, 0.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(x \cdot \log y - y\right) - z\right) + \log t\\ \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+15} \lor \neg \left(t\_1 \leq 1000\right):\\ \;\;\;\;\left(-y\right) - z\\ \mathbf{else}:\\ \;\;\;\;\log t - y\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (let* ((t_1 (+ (- (- (* x (log y)) y) z) (log t))))
   (if (or (<= t_1 -5e+15) (not (<= t_1 1000.0))) (- (- y) z) (- (log t) y))))
double code(double x, double y, double z, double t) {
	double t_1 = (((x * log(y)) - y) - z) + log(t);
	double tmp;
	if ((t_1 <= -5e+15) || !(t_1 <= 1000.0)) {
		tmp = -y - z;
	} else {
		tmp = log(t) - y;
	}
	return tmp;
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z, t)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8) :: t_1
    real(8) :: tmp
    t_1 = (((x * log(y)) - y) - z) + log(t)
    if ((t_1 <= (-5d+15)) .or. (.not. (t_1 <= 1000.0d0))) then
        tmp = -y - z
    else
        tmp = log(t) - y
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double t_1 = (((x * Math.log(y)) - y) - z) + Math.log(t);
	double tmp;
	if ((t_1 <= -5e+15) || !(t_1 <= 1000.0)) {
		tmp = -y - z;
	} else {
		tmp = Math.log(t) - y;
	}
	return tmp;
}
def code(x, y, z, t):
	t_1 = (((x * math.log(y)) - y) - z) + math.log(t)
	tmp = 0
	if (t_1 <= -5e+15) or not (t_1 <= 1000.0):
		tmp = -y - z
	else:
		tmp = math.log(t) - y
	return tmp
function code(x, y, z, t)
	t_1 = Float64(Float64(Float64(Float64(x * log(y)) - y) - z) + log(t))
	tmp = 0.0
	if ((t_1 <= -5e+15) || !(t_1 <= 1000.0))
		tmp = Float64(Float64(-y) - z);
	else
		tmp = Float64(log(t) - y);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	t_1 = (((x * log(y)) - y) - z) + log(t);
	tmp = 0.0;
	if ((t_1 <= -5e+15) || ~((t_1 <= 1000.0)))
		tmp = -y - z;
	else
		tmp = log(t) - y;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision] - z), $MachinePrecision] + N[Log[t], $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -5e+15], N[Not[LessEqual[t$95$1, 1000.0]], $MachinePrecision]], N[((-y) - z), $MachinePrecision], N[(N[Log[t], $MachinePrecision] - y), $MachinePrecision]]]
\begin{array}{l}

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

\mathbf{else}:\\
\;\;\;\;\log t - y\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (+.f64 (-.f64 (-.f64 (*.f64 x (log.f64 y)) y) z) (log.f64 t)) < -5e15 or 1e3 < (+.f64 (-.f64 (-.f64 (*.f64 x (log.f64 y)) y) z) (log.f64 t))

    1. Initial program 99.8%

      \[\left(\left(x \cdot \log y - y\right) - z\right) + \log t \]
    2. Add Preprocessing
    3. Taylor expanded in x around 0

      \[\leadsto \color{blue}{\log t - \left(y + z\right)} \]
    4. Step-by-step derivation
      1. Applied rewrites68.2%

        \[\leadsto \color{blue}{\left(\log t - y\right) - z} \]
      2. Taylor expanded in y around inf

        \[\leadsto -1 \cdot y - z \]
      3. Step-by-step derivation
        1. Applied rewrites68.2%

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

        if -5e15 < (+.f64 (-.f64 (-.f64 (*.f64 x (log.f64 y)) y) z) (log.f64 t)) < 1e3

        1. Initial program 99.9%

          \[\left(\left(x \cdot \log y - y\right) - z\right) + \log t \]
        2. Add Preprocessing
        3. Taylor expanded in x around 0

          \[\leadsto \color{blue}{\log t - \left(y + z\right)} \]
        4. Step-by-step derivation
          1. Applied rewrites94.5%

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

            \[\leadsto \log t - \color{blue}{y} \]
          3. Step-by-step derivation
            1. Applied rewrites92.6%

              \[\leadsto \log t - \color{blue}{y} \]
          4. Recombined 2 regimes into one program.
          5. Final simplification72.3%

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

          Alternative 3: 80.1% accurate, 0.6× speedup?

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

            1. Initial program 99.8%

              \[\left(\left(x \cdot \log y - y\right) - z\right) + \log t \]
            2. Add Preprocessing
            3. Taylor expanded in x around 0

              \[\leadsto \color{blue}{\log t - \left(y + z\right)} \]
            4. Step-by-step derivation
              1. Applied rewrites73.9%

                \[\leadsto \color{blue}{\left(\log t - y\right) - z} \]
              2. Taylor expanded in y around inf

                \[\leadsto -1 \cdot y - z \]
              3. Step-by-step derivation
                1. Applied rewrites73.9%

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

                if -5e18 < (-.f64 (*.f64 x (log.f64 y)) y) < 2e11

                1. Initial program 99.9%

                  \[\left(\left(x \cdot \log y - y\right) - z\right) + \log t \]
                2. Add Preprocessing
                3. Taylor expanded in x around 0

                  \[\leadsto \color{blue}{\log t - \left(y + z\right)} \]
                4. Step-by-step derivation
                  1. Applied rewrites95.9%

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

                    \[\leadsto \log t - z \]
                  3. Step-by-step derivation
                    1. Applied rewrites95.2%

                      \[\leadsto \log t - z \]

                    if 2e11 < (-.f64 (*.f64 x (log.f64 y)) y)

                    1. Initial program 99.5%

                      \[\left(\left(x \cdot \log y - y\right) - z\right) + \log t \]
                    2. Add Preprocessing
                    3. Taylor expanded in x around inf

                      \[\leadsto \color{blue}{x \cdot \log y} \]
                    4. Step-by-step derivation
                      1. Applied rewrites86.7%

                        \[\leadsto \color{blue}{\log y \cdot x} \]
                    5. Recombined 3 regimes into one program.
                    6. Add Preprocessing

                    Alternative 4: 89.7% accurate, 1.0× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\log y, x, \log t\right)\\ \mathbf{if}\;y \leq 2.5 \cdot 10^{+17}:\\ \;\;\;\;t\_1 - z\\ \mathbf{elif}\;y \leq 1.65 \cdot 10^{+97}:\\ \;\;\;\;\left(-y\right) - z\\ \mathbf{else}:\\ \;\;\;\;t\_1 - y\\ \end{array} \end{array} \]
                    (FPCore (x y z t)
                     :precision binary64
                     (let* ((t_1 (fma (log y) x (log t))))
                       (if (<= y 2.5e+17) (- t_1 z) (if (<= y 1.65e+97) (- (- y) z) (- t_1 y)))))
                    double code(double x, double y, double z, double t) {
                    	double t_1 = fma(log(y), x, log(t));
                    	double tmp;
                    	if (y <= 2.5e+17) {
                    		tmp = t_1 - z;
                    	} else if (y <= 1.65e+97) {
                    		tmp = -y - z;
                    	} else {
                    		tmp = t_1 - y;
                    	}
                    	return tmp;
                    }
                    
                    function code(x, y, z, t)
                    	t_1 = fma(log(y), x, log(t))
                    	tmp = 0.0
                    	if (y <= 2.5e+17)
                    		tmp = Float64(t_1 - z);
                    	elseif (y <= 1.65e+97)
                    		tmp = Float64(Float64(-y) - z);
                    	else
                    		tmp = Float64(t_1 - y);
                    	end
                    	return tmp
                    end
                    
                    code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[Log[y], $MachinePrecision] * x + N[Log[t], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 2.5e+17], N[(t$95$1 - z), $MachinePrecision], If[LessEqual[y, 1.65e+97], N[((-y) - z), $MachinePrecision], N[(t$95$1 - y), $MachinePrecision]]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    t_1 := \mathsf{fma}\left(\log y, x, \log t\right)\\
                    \mathbf{if}\;y \leq 2.5 \cdot 10^{+17}:\\
                    \;\;\;\;t\_1 - z\\
                    
                    \mathbf{elif}\;y \leq 1.65 \cdot 10^{+97}:\\
                    \;\;\;\;\left(-y\right) - z\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;t\_1 - y\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 3 regimes
                    2. if y < 2.5e17

                      1. Initial program 99.8%

                        \[\left(\left(x \cdot \log y - y\right) - z\right) + \log t \]
                      2. Add Preprocessing
                      3. Taylor expanded in y around 0

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

                          \[\leadsto \color{blue}{\mathsf{fma}\left(\log y, x, \log t\right) - z} \]

                        if 2.5e17 < y < 1.6500000000000001e97

                        1. Initial program 99.8%

                          \[\left(\left(x \cdot \log y - y\right) - z\right) + \log t \]
                        2. Add Preprocessing
                        3. Taylor expanded in x around 0

                          \[\leadsto \color{blue}{\log t - \left(y + z\right)} \]
                        4. Step-by-step derivation
                          1. Applied rewrites78.9%

                            \[\leadsto \color{blue}{\left(\log t - y\right) - z} \]
                          2. Taylor expanded in y around inf

                            \[\leadsto -1 \cdot y - z \]
                          3. Step-by-step derivation
                            1. Applied rewrites78.9%

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

                            if 1.6500000000000001e97 < y

                            1. Initial program 99.9%

                              \[\left(\left(x \cdot \log y - y\right) - z\right) + \log t \]
                            2. Add Preprocessing
                            3. Taylor expanded in z around 0

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

                                \[\leadsto \color{blue}{\mathsf{fma}\left(\log y, x, \log t\right) - y} \]
                            5. Recombined 3 regimes into one program.
                            6. Add Preprocessing

                            Alternative 5: 69.9% accurate, 1.0× speedup?

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

                              1. Initial program 99.8%

                                \[\left(\left(x \cdot \log y - y\right) - z\right) + \log t \]
                              2. Add Preprocessing
                              3. Taylor expanded in x around 0

                                \[\leadsto \color{blue}{\log t - \left(y + z\right)} \]
                              4. Step-by-step derivation
                                1. Applied rewrites73.9%

                                  \[\leadsto \color{blue}{\left(\log t - y\right) - z} \]
                                2. Taylor expanded in y around inf

                                  \[\leadsto -1 \cdot y - z \]
                                3. Step-by-step derivation
                                  1. Applied rewrites73.9%

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

                                  if -5e18 < (-.f64 (*.f64 x (log.f64 y)) y)

                                  1. Initial program 99.8%

                                    \[\left(\left(x \cdot \log y - y\right) - z\right) + \log t \]
                                  2. Add Preprocessing
                                  3. Taylor expanded in x around 0

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

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

                                      \[\leadsto \log t - z \]
                                    3. Step-by-step derivation
                                      1. Applied rewrites70.8%

                                        \[\leadsto \log t - z \]
                                    4. Recombined 2 regimes into one program.
                                    5. Add Preprocessing

                                    Alternative 6: 90.1% accurate, 1.8× speedup?

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

                                      1. Initial program 99.6%

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

                                          \[\leadsto \left(\left(\color{blue}{x \cdot \log y} - y\right) - z\right) + \log t \]
                                        2. add-cube-cbrtN/A

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

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

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

                                          \[\leadsto \left(\left(\color{blue}{\left(x \cdot \left(\sqrt[3]{\log y} \cdot \sqrt[3]{\log y}\right)\right)} \cdot \sqrt[3]{\log y} - y\right) - z\right) + \log t \]
                                        6. pow2N/A

                                          \[\leadsto \left(\left(\left(x \cdot \color{blue}{{\left(\sqrt[3]{\log y}\right)}^{2}}\right) \cdot \sqrt[3]{\log y} - y\right) - z\right) + \log t \]
                                        7. lower-pow.f64N/A

                                          \[\leadsto \left(\left(\left(x \cdot \color{blue}{{\left(\sqrt[3]{\log y}\right)}^{2}}\right) \cdot \sqrt[3]{\log y} - y\right) - z\right) + \log t \]
                                        8. lower-cbrt.f64N/A

                                          \[\leadsto \left(\left(\left(x \cdot {\color{blue}{\left(\sqrt[3]{\log y}\right)}}^{2}\right) \cdot \sqrt[3]{\log y} - y\right) - z\right) + \log t \]
                                        9. lower-cbrt.f6498.7

                                          \[\leadsto \left(\left(\left(x \cdot {\left(\sqrt[3]{\log y}\right)}^{2}\right) \cdot \color{blue}{\sqrt[3]{\log y}} - y\right) - z\right) + \log t \]
                                      4. Applied rewrites98.7%

                                        \[\leadsto \left(\left(\color{blue}{\left(x \cdot {\left(\sqrt[3]{\log y}\right)}^{2}\right) \cdot \sqrt[3]{\log y}} - y\right) - z\right) + \log t \]
                                      5. Taylor expanded in y around 0

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

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

                                          \[\leadsto x \cdot \log y - z \]
                                        3. Step-by-step derivation
                                          1. Applied rewrites89.6%

                                            \[\leadsto \log y \cdot x - z \]

                                          if -1.44999999999999995e25 < x < 4.99999999999999992e72

                                          1. Initial program 99.9%

                                            \[\left(\left(x \cdot \log y - y\right) - z\right) + \log t \]
                                          2. Add Preprocessing
                                          3. Taylor expanded in x around 0

                                            \[\leadsto \color{blue}{\log t - \left(y + z\right)} \]
                                          4. Step-by-step derivation
                                            1. Applied rewrites95.2%

                                              \[\leadsto \color{blue}{\left(\log t - y\right) - z} \]
                                          5. Recombined 2 regimes into one program.
                                          6. Final simplification93.3%

                                            \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.45 \cdot 10^{+25} \lor \neg \left(x \leq 5 \cdot 10^{+72}\right):\\ \;\;\;\;\log y \cdot x - z\\ \mathbf{else}:\\ \;\;\;\;\left(\log t - y\right) - z\\ \end{array} \]
                                          7. Add Preprocessing

                                          Alternative 7: 84.2% accurate, 1.8× speedup?

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

                                            1. Initial program 99.5%

                                              \[\left(\left(x \cdot \log y - y\right) - z\right) + \log t \]
                                            2. Add Preprocessing
                                            3. Taylor expanded in x around inf

                                              \[\leadsto \color{blue}{x \cdot \log y} \]
                                            4. Step-by-step derivation
                                              1. Applied rewrites82.5%

                                                \[\leadsto \color{blue}{\log y \cdot x} \]

                                              if -2.15000000000000008e149 < x < 2.39999999999999986e79

                                              1. Initial program 99.9%

                                                \[\left(\left(x \cdot \log y - y\right) - z\right) + \log t \]
                                              2. Add Preprocessing
                                              3. Taylor expanded in x around 0

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

                                                  \[\leadsto \color{blue}{\left(\log t - y\right) - z} \]
                                              5. Recombined 2 regimes into one program.
                                              6. Final simplification89.5%

                                                \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -2.15 \cdot 10^{+149} \lor \neg \left(x \leq 2.4 \cdot 10^{+79}\right):\\ \;\;\;\;\log y \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(\log t - y\right) - z\\ \end{array} \]
                                              7. Add Preprocessing

                                              Alternative 8: 48.7% accurate, 23.8× speedup?

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

                                                1. Initial program 99.8%

                                                  \[\left(\left(x \cdot \log y - y\right) - z\right) + \log t \]
                                                2. Add Preprocessing
                                                3. Taylor expanded in z around inf

                                                  \[\leadsto \color{blue}{-1 \cdot z} \]
                                                4. Step-by-step derivation
                                                  1. Applied rewrites38.6%

                                                    \[\leadsto \color{blue}{-z} \]

                                                  if 9.1999999999999999e94 < y

                                                  1. Initial program 99.9%

                                                    \[\left(\left(x \cdot \log y - y\right) - z\right) + \log t \]
                                                  2. Add Preprocessing
                                                  3. Taylor expanded in y around inf

                                                    \[\leadsto \color{blue}{-1 \cdot y} \]
                                                  4. Step-by-step derivation
                                                    1. Applied rewrites71.2%

                                                      \[\leadsto \color{blue}{-y} \]
                                                  5. Recombined 2 regimes into one program.
                                                  6. Add Preprocessing

                                                  Alternative 9: 58.8% accurate, 35.8× speedup?

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

                                                    \[\left(\left(x \cdot \log y - y\right) - z\right) + \log t \]
                                                  2. Add Preprocessing
                                                  3. Taylor expanded in x around 0

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

                                                      \[\leadsto \color{blue}{\left(\log t - y\right) - z} \]
                                                    2. Taylor expanded in y around inf

                                                      \[\leadsto -1 \cdot y - z \]
                                                    3. Step-by-step derivation
                                                      1. Applied rewrites57.4%

                                                        \[\leadsto \left(-y\right) - z \]
                                                      2. Add Preprocessing

                                                      Alternative 10: 30.3% accurate, 71.7× speedup?

                                                      \[\begin{array}{l} \\ -y \end{array} \]
                                                      (FPCore (x y z t) :precision binary64 (- y))
                                                      double code(double x, double y, double z, double t) {
                                                      	return -y;
                                                      }
                                                      
                                                      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 = -y
                                                      end function
                                                      
                                                      public static double code(double x, double y, double z, double t) {
                                                      	return -y;
                                                      }
                                                      
                                                      def code(x, y, z, t):
                                                      	return -y
                                                      
                                                      function code(x, y, z, t)
                                                      	return Float64(-y)
                                                      end
                                                      
                                                      function tmp = code(x, y, z, t)
                                                      	tmp = -y;
                                                      end
                                                      
                                                      code[x_, y_, z_, t_] := (-y)
                                                      
                                                      \begin{array}{l}
                                                      
                                                      \\
                                                      -y
                                                      \end{array}
                                                      
                                                      Derivation
                                                      1. Initial program 99.8%

                                                        \[\left(\left(x \cdot \log y - y\right) - z\right) + \log t \]
                                                      2. Add Preprocessing
                                                      3. Taylor expanded in y around inf

                                                        \[\leadsto \color{blue}{-1 \cdot y} \]
                                                      4. Step-by-step derivation
                                                        1. Applied rewrites30.1%

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

                                                        Alternative 11: 2.2% accurate, 215.0× speedup?

                                                        \[\begin{array}{l} \\ y \end{array} \]
                                                        (FPCore (x y z t) :precision binary64 y)
                                                        double code(double x, double y, double z, double t) {
                                                        	return y;
                                                        }
                                                        
                                                        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 = y
                                                        end function
                                                        
                                                        public static double code(double x, double y, double z, double t) {
                                                        	return y;
                                                        }
                                                        
                                                        def code(x, y, z, t):
                                                        	return y
                                                        
                                                        function code(x, y, z, t)
                                                        	return y
                                                        end
                                                        
                                                        function tmp = code(x, y, z, t)
                                                        	tmp = y;
                                                        end
                                                        
                                                        code[x_, y_, z_, t_] := y
                                                        
                                                        \begin{array}{l}
                                                        
                                                        \\
                                                        y
                                                        \end{array}
                                                        
                                                        Derivation
                                                        1. Initial program 99.8%

                                                          \[\left(\left(x \cdot \log y - y\right) - z\right) + \log t \]
                                                        2. Add Preprocessing
                                                        3. Taylor expanded in y around inf

                                                          \[\leadsto \color{blue}{-1 \cdot y} \]
                                                        4. Step-by-step derivation
                                                          1. Applied rewrites30.1%

                                                            \[\leadsto \color{blue}{-y} \]
                                                          2. Step-by-step derivation
                                                            1. Applied rewrites2.2%

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

                                                            Reproduce

                                                            ?
                                                            herbie shell --seed 2025021 
                                                            (FPCore (x y z t)
                                                              :name "Numeric.SpecFunctions:incompleteGamma from math-functions-0.1.5.2, A"
                                                              :precision binary64
                                                              (+ (- (- (* x (log y)) y) z) (log t)))