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

Percentage Accurate: 99.9% → 99.9%
Time: 10.3s
Alternatives: 15
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);
}
real(8) function code(x, y, z, t)
    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 15 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);
}
real(8) function code(x, y, z, t)
    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} \\ \mathsf{fma}\left(\log y, x, \left(\log t - z\right) - y\right) \end{array} \]
(FPCore (x y z t) :precision binary64 (fma (log y) x (- (- (log t) z) y)))
double code(double x, double y, double z, double t) {
	return fma(log(y), x, ((log(t) - z) - y));
}
function code(x, y, z, t)
	return fma(log(y), x, Float64(Float64(log(t) - z) - y))
end
code[x_, y_, z_, t_] := N[(N[Log[y], $MachinePrecision] * x + N[(N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

    \[\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 \color{blue}{\left(\left(x \cdot \log y - y\right) - z\right) + \log t} \]
    2. lift--.f64N/A

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

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

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

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

      \[\leadsto \color{blue}{x \cdot \log y + \left(\mathsf{neg}\left(\left(\left(y + z\right) - \log t\right)\right)\right)} \]
    7. lift-*.f64N/A

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

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

      \[\leadsto \color{blue}{\mathsf{fma}\left(\log y, x, \mathsf{neg}\left(\left(\left(y + z\right) - \log t\right)\right)\right)} \]
    10. lower-neg.f64N/A

      \[\leadsto \mathsf{fma}\left(\log y, x, \color{blue}{-\left(\left(y + z\right) - \log t\right)}\right) \]
    11. associate-+r-N/A

      \[\leadsto \mathsf{fma}\left(\log y, x, -\color{blue}{\left(y + \left(z - \log t\right)\right)}\right) \]
    12. +-commutativeN/A

      \[\leadsto \mathsf{fma}\left(\log y, x, -\color{blue}{\left(\left(z - \log t\right) + y\right)}\right) \]
    13. lower-+.f64N/A

      \[\leadsto \mathsf{fma}\left(\log y, x, -\color{blue}{\left(\left(z - \log t\right) + y\right)}\right) \]
    14. lower--.f6499.8

      \[\leadsto \mathsf{fma}\left(\log y, x, -\left(\color{blue}{\left(z - \log t\right)} + y\right)\right) \]
  4. Applied rewrites99.8%

    \[\leadsto \color{blue}{\mathsf{fma}\left(\log y, x, -\left(\left(z - \log t\right) + y\right)\right)} \]
  5. Final simplification99.8%

    \[\leadsto \mathsf{fma}\left(\log y, x, \left(\log t - z\right) - y\right) \]
  6. Add Preprocessing

Alternative 2: 93.1% accurate, 0.5× speedup?

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

\\
\begin{array}{l}
t_1 := x \cdot \log y\\
t_2 := t\_1 - y\\
\mathbf{if}\;t\_2 \leq -2 \cdot 10^{+184}:\\
\;\;\;\;\mathsf{fma}\left(\log y, x, -y\right)\\

\mathbf{elif}\;t\_2 \leq -5 \cdot 10^{+15}:\\
\;\;\;\;\left(\frac{t\_1}{y} - \left(\frac{z}{y} - -1\right)\right) \cdot y\\

\mathbf{elif}\;t\_2 \leq 100:\\
\;\;\;\;\left(\log t - y\right) - z\\

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\log y, x, -z\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if (-.f64 (*.f64 x (log.f64 y)) y) < -2.00000000000000003e184

    1. Initial program 99.8%

      \[\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 \color{blue}{\left(\left(x \cdot \log y - y\right) - z\right) + \log t} \]
      2. lift--.f64N/A

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

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

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

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

        \[\leadsto \color{blue}{x \cdot \log y + \left(\mathsf{neg}\left(\left(\left(y + z\right) - \log t\right)\right)\right)} \]
      7. lift-*.f64N/A

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

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(\log y, x, \mathsf{neg}\left(\left(\left(y + z\right) - \log t\right)\right)\right)} \]
      10. lower-neg.f64N/A

        \[\leadsto \mathsf{fma}\left(\log y, x, \color{blue}{-\left(\left(y + z\right) - \log t\right)}\right) \]
      11. associate-+r-N/A

        \[\leadsto \mathsf{fma}\left(\log y, x, -\color{blue}{\left(y + \left(z - \log t\right)\right)}\right) \]
      12. +-commutativeN/A

        \[\leadsto \mathsf{fma}\left(\log y, x, -\color{blue}{\left(\left(z - \log t\right) + y\right)}\right) \]
      13. lower-+.f64N/A

        \[\leadsto \mathsf{fma}\left(\log y, x, -\color{blue}{\left(\left(z - \log t\right) + y\right)}\right) \]
      14. lower--.f6499.8

        \[\leadsto \mathsf{fma}\left(\log y, x, -\left(\color{blue}{\left(z - \log t\right)} + y\right)\right) \]
    4. Applied rewrites99.8%

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

      \[\leadsto \mathsf{fma}\left(\log y, x, \color{blue}{-1 \cdot y}\right) \]
    6. Step-by-step derivation
      1. mul-1-negN/A

        \[\leadsto \mathsf{fma}\left(\log y, x, \color{blue}{\mathsf{neg}\left(y\right)}\right) \]
      2. lower-neg.f6493.7

        \[\leadsto \mathsf{fma}\left(\log y, x, \color{blue}{-y}\right) \]
    7. Applied rewrites93.7%

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

    if -2.00000000000000003e184 < (-.f64 (*.f64 x (log.f64 y)) y) < -5e15

    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}{y \cdot \left(\left(-1 \cdot \frac{x \cdot \log \left(\frac{1}{y}\right)}{y} + \frac{\log t}{y}\right) - \left(1 + \frac{z}{y}\right)\right)} \]
    4. Step-by-step derivation
      1. *-commutativeN/A

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

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

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

      \[\leadsto \left(\frac{x \cdot \log y}{y} - \left(\frac{z}{y} - -1\right)\right) \cdot y \]
    7. Step-by-step derivation
      1. Applied rewrites90.9%

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

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

      1. Initial program 100.0%

        \[\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. associate--r+N/A

          \[\leadsto \color{blue}{\left(\log t - y\right) - z} \]
        2. lower--.f64N/A

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

          \[\leadsto \color{blue}{\left(\log t - y\right)} - z \]
        4. lower-log.f6498.7

          \[\leadsto \left(\color{blue}{\log t} - y\right) - z \]
      5. Applied rewrites98.7%

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

      if 100 < (-.f64 (*.f64 x (log.f64 y)) y)

      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 \color{blue}{\left(\left(x \cdot \log y - y\right) - z\right) + \log t} \]
        2. lift--.f64N/A

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

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

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

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

          \[\leadsto \color{blue}{x \cdot \log y + \left(\mathsf{neg}\left(\left(\left(y + z\right) - \log t\right)\right)\right)} \]
        7. lift-*.f64N/A

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

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

          \[\leadsto \color{blue}{\mathsf{fma}\left(\log y, x, \mathsf{neg}\left(\left(\left(y + z\right) - \log t\right)\right)\right)} \]
        10. lower-neg.f64N/A

          \[\leadsto \mathsf{fma}\left(\log y, x, \color{blue}{-\left(\left(y + z\right) - \log t\right)}\right) \]
        11. associate-+r-N/A

          \[\leadsto \mathsf{fma}\left(\log y, x, -\color{blue}{\left(y + \left(z - \log t\right)\right)}\right) \]
        12. +-commutativeN/A

          \[\leadsto \mathsf{fma}\left(\log y, x, -\color{blue}{\left(\left(z - \log t\right) + y\right)}\right) \]
        13. lower-+.f64N/A

          \[\leadsto \mathsf{fma}\left(\log y, x, -\color{blue}{\left(\left(z - \log t\right) + y\right)}\right) \]
        14. lower--.f6499.6

          \[\leadsto \mathsf{fma}\left(\log y, x, -\left(\color{blue}{\left(z - \log t\right)} + y\right)\right) \]
      4. Applied rewrites99.6%

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

        \[\leadsto \mathsf{fma}\left(\log y, x, \color{blue}{-1 \cdot z}\right) \]
      6. Step-by-step derivation
        1. mul-1-negN/A

          \[\leadsto \mathsf{fma}\left(\log y, x, \color{blue}{\mathsf{neg}\left(z\right)}\right) \]
        2. lower-neg.f6496.6

          \[\leadsto \mathsf{fma}\left(\log y, x, \color{blue}{-z}\right) \]
      7. Applied rewrites96.6%

        \[\leadsto \mathsf{fma}\left(\log y, x, \color{blue}{-z}\right) \]
    8. Recombined 4 regimes into one program.
    9. Final simplification94.6%

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

    Alternative 3: 76.9% accurate, 0.5× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \log y\\ t_2 := t\_1 - y\\ \mathbf{if}\;t\_2 \leq -5 \cdot 10^{+278}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq -5 \cdot 10^{+22}:\\ \;\;\;\;\left(-z\right) - y\\ \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+22}:\\ \;\;\;\;\log t - z\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
    (FPCore (x y z t)
     :precision binary64
     (let* ((t_1 (* x (log y))) (t_2 (- t_1 y)))
       (if (<= t_2 -5e+278)
         t_1
         (if (<= t_2 -5e+22) (- (- z) y) (if (<= t_2 2e+22) (- (log t) z) t_1)))))
    double code(double x, double y, double z, double t) {
    	double t_1 = x * log(y);
    	double t_2 = t_1 - y;
    	double tmp;
    	if (t_2 <= -5e+278) {
    		tmp = t_1;
    	} else if (t_2 <= -5e+22) {
    		tmp = -z - y;
    	} else if (t_2 <= 2e+22) {
    		tmp = log(t) - z;
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    real(8) function code(x, y, z, t)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        real(8), intent (in) :: z
        real(8), intent (in) :: t
        real(8) :: t_1
        real(8) :: t_2
        real(8) :: tmp
        t_1 = x * log(y)
        t_2 = t_1 - y
        if (t_2 <= (-5d+278)) then
            tmp = t_1
        else if (t_2 <= (-5d+22)) then
            tmp = -z - y
        else if (t_2 <= 2d+22) then
            tmp = log(t) - z
        else
            tmp = t_1
        end if
        code = tmp
    end function
    
    public static double code(double x, double y, double z, double t) {
    	double t_1 = x * Math.log(y);
    	double t_2 = t_1 - y;
    	double tmp;
    	if (t_2 <= -5e+278) {
    		tmp = t_1;
    	} else if (t_2 <= -5e+22) {
    		tmp = -z - y;
    	} else if (t_2 <= 2e+22) {
    		tmp = Math.log(t) - z;
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    def code(x, y, z, t):
    	t_1 = x * math.log(y)
    	t_2 = t_1 - y
    	tmp = 0
    	if t_2 <= -5e+278:
    		tmp = t_1
    	elif t_2 <= -5e+22:
    		tmp = -z - y
    	elif t_2 <= 2e+22:
    		tmp = math.log(t) - z
    	else:
    		tmp = t_1
    	return tmp
    
    function code(x, y, z, t)
    	t_1 = Float64(x * log(y))
    	t_2 = Float64(t_1 - y)
    	tmp = 0.0
    	if (t_2 <= -5e+278)
    		tmp = t_1;
    	elseif (t_2 <= -5e+22)
    		tmp = Float64(Float64(-z) - y);
    	elseif (t_2 <= 2e+22)
    		tmp = Float64(log(t) - z);
    	else
    		tmp = t_1;
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t)
    	t_1 = x * log(y);
    	t_2 = t_1 - y;
    	tmp = 0.0;
    	if (t_2 <= -5e+278)
    		tmp = t_1;
    	elseif (t_2 <= -5e+22)
    		tmp = -z - y;
    	elseif (t_2 <= 2e+22)
    		tmp = log(t) - z;
    	else
    		tmp = t_1;
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 - y), $MachinePrecision]}, If[LessEqual[t$95$2, -5e+278], t$95$1, If[LessEqual[t$95$2, -5e+22], N[((-z) - y), $MachinePrecision], If[LessEqual[t$95$2, 2e+22], N[(N[Log[t], $MachinePrecision] - z), $MachinePrecision], t$95$1]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := x \cdot \log y\\
    t_2 := t\_1 - y\\
    \mathbf{if}\;t\_2 \leq -5 \cdot 10^{+278}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;t\_2 \leq -5 \cdot 10^{+22}:\\
    \;\;\;\;\left(-z\right) - y\\
    
    \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+22}:\\
    \;\;\;\;\log t - z\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if (-.f64 (*.f64 x (log.f64 y)) y) < -5.00000000000000029e278 or 2e22 < (-.f64 (*.f64 x (log.f64 y)) y)

      1. Initial program 99.6%

        \[\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. *-commutativeN/A

          \[\leadsto \color{blue}{\log y \cdot x} \]
        2. lower-*.f64N/A

          \[\leadsto \color{blue}{\log y \cdot x} \]
        3. lower-log.f6478.7

          \[\leadsto \color{blue}{\log y} \cdot x \]
      5. Applied rewrites78.7%

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

      if -5.00000000000000029e278 < (-.f64 (*.f64 x (log.f64 y)) y) < -4.9999999999999996e22

      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. mul-1-negN/A

          \[\leadsto \color{blue}{\mathsf{neg}\left(y\right)} \]
        2. lower-neg.f6450.8

          \[\leadsto \color{blue}{-y} \]
      5. Applied rewrites50.8%

        \[\leadsto \color{blue}{-y} \]
      6. Taylor expanded in x around 0

        \[\leadsto \color{blue}{\log t - \left(y + z\right)} \]
      7. Step-by-step derivation
        1. +-commutativeN/A

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

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

          \[\leadsto \color{blue}{\left(\log t - z\right) - y} \]
        4. lower--.f64N/A

          \[\leadsto \color{blue}{\left(\log t - z\right)} - y \]
        5. lower-log.f6474.4

          \[\leadsto \left(\color{blue}{\log t} - z\right) - y \]
      8. Applied rewrites74.4%

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

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

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

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

        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. mul-1-negN/A

            \[\leadsto \color{blue}{\mathsf{neg}\left(y\right)} \]
          2. lower-neg.f643.2

            \[\leadsto \color{blue}{-y} \]
        5. Applied rewrites3.2%

          \[\leadsto \color{blue}{-y} \]
        6. Taylor expanded in x around 0

          \[\leadsto \color{blue}{\log t - \left(y + z\right)} \]
        7. Step-by-step derivation
          1. +-commutativeN/A

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

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

            \[\leadsto \color{blue}{\left(\log t - z\right) - y} \]
          4. lower--.f64N/A

            \[\leadsto \color{blue}{\left(\log t - z\right)} - y \]
          5. lower-log.f6492.2

            \[\leadsto \left(\color{blue}{\log t} - z\right) - y \]
        8. Applied rewrites92.2%

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

          \[\leadsto \log t - \color{blue}{z} \]
        10. Step-by-step derivation
          1. Applied rewrites88.7%

            \[\leadsto \log t - \color{blue}{z} \]
        11. Recombined 3 regimes into one program.
        12. Final simplification79.3%

          \[\leadsto \begin{array}{l} \mathbf{if}\;x \cdot \log y - y \leq -5 \cdot 10^{+278}:\\ \;\;\;\;x \cdot \log y\\ \mathbf{elif}\;x \cdot \log y - y \leq -5 \cdot 10^{+22}:\\ \;\;\;\;\left(-z\right) - y\\ \mathbf{elif}\;x \cdot \log y - y \leq 2 \cdot 10^{+22}:\\ \;\;\;\;\log t - z\\ \mathbf{else}:\\ \;\;\;\;x \cdot \log y\\ \end{array} \]
        13. Add Preprocessing

        Alternative 4: 68.4% accurate, 0.6× speedup?

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

          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. mul-1-negN/A

              \[\leadsto \color{blue}{\mathsf{neg}\left(y\right)} \]
            2. lower-neg.f6446.7

              \[\leadsto \color{blue}{-y} \]
          5. Applied rewrites46.7%

            \[\leadsto \color{blue}{-y} \]
          6. Taylor expanded in x around 0

            \[\leadsto \color{blue}{\log t - \left(y + z\right)} \]
          7. Step-by-step derivation
            1. +-commutativeN/A

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

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

              \[\leadsto \color{blue}{\left(\log t - z\right) - y} \]
            4. lower--.f64N/A

              \[\leadsto \color{blue}{\left(\log t - z\right)} - y \]
            5. lower-log.f6471.4

              \[\leadsto \left(\color{blue}{\log t} - z\right) - y \]
          8. Applied rewrites71.4%

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

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

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

            if -4e22 < (-.f64 (-.f64 (*.f64 x (log.f64 y)) y) z) < 9.99999999999999946e33

            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. mul-1-negN/A

                \[\leadsto \color{blue}{\mathsf{neg}\left(y\right)} \]
              2. lower-neg.f643.6

                \[\leadsto \color{blue}{-y} \]
            5. Applied rewrites3.6%

              \[\leadsto \color{blue}{-y} \]
            6. Taylor expanded in x around 0

              \[\leadsto \color{blue}{\log t - \left(y + z\right)} \]
            7. Step-by-step derivation
              1. +-commutativeN/A

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

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

                \[\leadsto \color{blue}{\left(\log t - z\right) - y} \]
              4. lower--.f64N/A

                \[\leadsto \color{blue}{\left(\log t - z\right)} - y \]
              5. lower-log.f6481.6

                \[\leadsto \left(\color{blue}{\log t} - z\right) - y \]
            8. Applied rewrites81.6%

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

              \[\leadsto \log t - \color{blue}{z} \]
            10. Step-by-step derivation
              1. Applied rewrites75.5%

                \[\leadsto \log t - \color{blue}{z} \]
              2. Taylor expanded in z around 0

                \[\leadsto \log t \]
              3. Step-by-step derivation
                1. Applied rewrites72.9%

                  \[\leadsto \log t \]

                if 9.99999999999999946e33 < (-.f64 (-.f64 (*.f64 x (log.f64 y)) y) z)

                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. mul-1-negN/A

                    \[\leadsto \color{blue}{\mathsf{neg}\left(z\right)} \]
                  2. lower-neg.f6444.8

                    \[\leadsto \color{blue}{-z} \]
                5. Applied rewrites44.8%

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

              Alternative 5: 91.4% accurate, 1.0× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\frac{x \cdot \log y}{y} - 1, \frac{y}{z}, -1\right) \cdot z\\ \mathbf{if}\;z \leq -1.05 \cdot 10^{+113}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 12500000:\\ \;\;\;\;\mathsf{fma}\left(\log y, x, \log t\right) - y\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
              (FPCore (x y z t)
               :precision binary64
               (let* ((t_1 (* (fma (- (/ (* x (log y)) y) 1.0) (/ y z) -1.0) z)))
                 (if (<= z -1.05e+113)
                   t_1
                   (if (<= z 12500000.0) (- (fma (log y) x (log t)) y) t_1))))
              double code(double x, double y, double z, double t) {
              	double t_1 = fma((((x * log(y)) / y) - 1.0), (y / z), -1.0) * z;
              	double tmp;
              	if (z <= -1.05e+113) {
              		tmp = t_1;
              	} else if (z <= 12500000.0) {
              		tmp = fma(log(y), x, log(t)) - y;
              	} else {
              		tmp = t_1;
              	}
              	return tmp;
              }
              
              function code(x, y, z, t)
              	t_1 = Float64(fma(Float64(Float64(Float64(x * log(y)) / y) - 1.0), Float64(y / z), -1.0) * z)
              	tmp = 0.0
              	if (z <= -1.05e+113)
              		tmp = t_1;
              	elseif (z <= 12500000.0)
              		tmp = Float64(fma(log(y), x, log(t)) - y);
              	else
              		tmp = t_1;
              	end
              	return tmp
              end
              
              code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] - 1.0), $MachinePrecision] * N[(y / z), $MachinePrecision] + -1.0), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -1.05e+113], t$95$1, If[LessEqual[z, 12500000.0], N[(N[(N[Log[y], $MachinePrecision] * x + N[Log[t], $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision], t$95$1]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              t_1 := \mathsf{fma}\left(\frac{x \cdot \log y}{y} - 1, \frac{y}{z}, -1\right) \cdot z\\
              \mathbf{if}\;z \leq -1.05 \cdot 10^{+113}:\\
              \;\;\;\;t\_1\\
              
              \mathbf{elif}\;z \leq 12500000:\\
              \;\;\;\;\mathsf{fma}\left(\log y, x, \log t\right) - y\\
              
              \mathbf{else}:\\
              \;\;\;\;t\_1\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 2 regimes
              2. if z < -1.0499999999999999e113 or 1.25e7 < z

                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}{y \cdot \left(\left(-1 \cdot \frac{x \cdot \log \left(\frac{1}{y}\right)}{y} + \frac{\log t}{y}\right) - \left(1 + \frac{z}{y}\right)\right)} \]
                4. Step-by-step derivation
                  1. *-commutativeN/A

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

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

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

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

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

                  \[\leadsto \mathsf{fma}\left(\frac{x \cdot \log y}{y} - 1, \frac{y}{z}, -1\right) \cdot z \]
                9. Step-by-step derivation
                  1. Applied rewrites93.1%

                    \[\leadsto \mathsf{fma}\left(\frac{\log y \cdot x}{y} - 1, \frac{y}{z}, -1\right) \cdot z \]

                  if -1.0499999999999999e113 < z < 1.25e7

                  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 0

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

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

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

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

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

                      \[\leadsto \mathsf{fma}\left(\color{blue}{\log y}, x, \log t\right) - y \]
                    6. lower-log.f6496.5

                      \[\leadsto \mathsf{fma}\left(\log y, x, \color{blue}{\log t}\right) - y \]
                  5. Applied rewrites96.5%

                    \[\leadsto \color{blue}{\mathsf{fma}\left(\log y, x, \log t\right) - y} \]
                10. Recombined 2 regimes into one program.
                11. Final simplification95.2%

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

                Alternative 6: 69.7% accurate, 1.0× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \cdot \log y - y \leq -5 \cdot 10^{+22}:\\ \;\;\;\;\left(-z\right) - y\\ \mathbf{else}:\\ \;\;\;\;\log t - z\\ \end{array} \end{array} \]
                (FPCore (x y z t)
                 :precision binary64
                 (if (<= (- (* x (log y)) y) -5e+22) (- (- z) y) (- (log t) z)))
                double code(double x, double y, double z, double t) {
                	double tmp;
                	if (((x * log(y)) - y) <= -5e+22) {
                		tmp = -z - y;
                	} else {
                		tmp = log(t) - z;
                	}
                	return tmp;
                }
                
                real(8) function code(x, y, z, t)
                    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+22)) then
                        tmp = -z - y
                    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+22) {
                		tmp = -z - y;
                	} else {
                		tmp = Math.log(t) - z;
                	}
                	return tmp;
                }
                
                def code(x, y, z, t):
                	tmp = 0
                	if ((x * math.log(y)) - y) <= -5e+22:
                		tmp = -z - y
                	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+22)
                		tmp = Float64(Float64(-z) - y);
                	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+22)
                		tmp = -z - y;
                	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+22], N[((-z) - y), $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^{+22}:\\
                \;\;\;\;\left(-z\right) - y\\
                
                \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) < -4.9999999999999996e22

                  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. mul-1-negN/A

                      \[\leadsto \color{blue}{\mathsf{neg}\left(y\right)} \]
                    2. lower-neg.f6448.9

                      \[\leadsto \color{blue}{-y} \]
                  5. Applied rewrites48.9%

                    \[\leadsto \color{blue}{-y} \]
                  6. Taylor expanded in x around 0

                    \[\leadsto \color{blue}{\log t - \left(y + z\right)} \]
                  7. Step-by-step derivation
                    1. +-commutativeN/A

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

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

                      \[\leadsto \color{blue}{\left(\log t - z\right) - y} \]
                    4. lower--.f64N/A

                      \[\leadsto \color{blue}{\left(\log t - z\right)} - y \]
                    5. lower-log.f6470.0

                      \[\leadsto \left(\color{blue}{\log t} - z\right) - y \]
                  8. Applied rewrites70.0%

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

                    \[\leadsto -1 \cdot z - y \]
                  10. Step-by-step derivation
                    1. Applied rewrites70.0%

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

                    if -4.9999999999999996e22 < (-.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 y around inf

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

                        \[\leadsto \color{blue}{\mathsf{neg}\left(y\right)} \]
                      2. lower-neg.f642.4

                        \[\leadsto \color{blue}{-y} \]
                    5. Applied rewrites2.4%

                      \[\leadsto \color{blue}{-y} \]
                    6. Taylor expanded in x around 0

                      \[\leadsto \color{blue}{\log t - \left(y + z\right)} \]
                    7. Step-by-step derivation
                      1. +-commutativeN/A

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

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

                        \[\leadsto \color{blue}{\left(\log t - z\right) - y} \]
                      4. lower--.f64N/A

                        \[\leadsto \color{blue}{\left(\log t - z\right)} - y \]
                      5. lower-log.f6460.9

                        \[\leadsto \left(\color{blue}{\log t} - z\right) - y \]
                    8. Applied rewrites60.9%

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

                      \[\leadsto \log t - \color{blue}{z} \]
                    10. Step-by-step derivation
                      1. Applied rewrites59.1%

                        \[\leadsto \log t - \color{blue}{z} \]
                    11. Recombined 2 regimes into one program.
                    12. Add Preprocessing

                    Alternative 7: 98.7% accurate, 1.0× speedup?

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

                      1. Initial program 99.7%

                        \[\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 \color{blue}{\left(\left(x \cdot \log y - y\right) - z\right) + \log t} \]
                        2. lift--.f64N/A

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

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

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

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

                          \[\leadsto \color{blue}{x \cdot \log y + \left(\mathsf{neg}\left(\left(\left(y + z\right) - \log t\right)\right)\right)} \]
                        7. lift-*.f64N/A

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

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

                          \[\leadsto \color{blue}{\mathsf{fma}\left(\log y, x, \mathsf{neg}\left(\left(\left(y + z\right) - \log t\right)\right)\right)} \]
                        10. lower-neg.f64N/A

                          \[\leadsto \mathsf{fma}\left(\log y, x, \color{blue}{-\left(\left(y + z\right) - \log t\right)}\right) \]
                        11. associate-+r-N/A

                          \[\leadsto \mathsf{fma}\left(\log y, x, -\color{blue}{\left(y + \left(z - \log t\right)\right)}\right) \]
                        12. +-commutativeN/A

                          \[\leadsto \mathsf{fma}\left(\log y, x, -\color{blue}{\left(\left(z - \log t\right) + y\right)}\right) \]
                        13. lower-+.f64N/A

                          \[\leadsto \mathsf{fma}\left(\log y, x, -\color{blue}{\left(\left(z - \log t\right) + y\right)}\right) \]
                        14. lower--.f6499.8

                          \[\leadsto \mathsf{fma}\left(\log y, x, -\left(\color{blue}{\left(z - \log t\right)} + y\right)\right) \]
                      4. Applied rewrites99.8%

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

                        \[\leadsto \mathsf{fma}\left(\log y, x, \color{blue}{\log t - z}\right) \]
                      6. Step-by-step derivation
                        1. lower--.f64N/A

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

                          \[\leadsto \mathsf{fma}\left(\log y, x, \color{blue}{\log t} - z\right) \]
                      7. Applied rewrites98.0%

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

                      if 3.3e19 < 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}{y \cdot \left(\left(-1 \cdot \frac{x \cdot \log \left(\frac{1}{y}\right)}{y} + \frac{\log t}{y}\right) - \left(1 + \frac{z}{y}\right)\right)} \]
                      4. Step-by-step derivation
                        1. *-commutativeN/A

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

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

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

                        \[\leadsto \left(\frac{x \cdot \log y}{y} - \left(\frac{z}{y} - -1\right)\right) \cdot y \]
                      7. Step-by-step derivation
                        1. Applied rewrites99.9%

                          \[\leadsto \left(\frac{\log y \cdot x}{y} - \left(\frac{z}{y} - -1\right)\right) \cdot y \]
                      8. Recombined 2 regimes into one program.
                      9. Final simplification98.9%

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

                      Alternative 8: 98.7% accurate, 1.0× speedup?

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

                        1. Initial program 99.7%

                          \[\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. lower--.f64N/A

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

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

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

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

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

                            \[\leadsto \mathsf{fma}\left(\log y, x, \color{blue}{\log t}\right) - z \]
                        5. Applied rewrites97.9%

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

                        if 3.3e19 < 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}{y \cdot \left(\left(-1 \cdot \frac{x \cdot \log \left(\frac{1}{y}\right)}{y} + \frac{\log t}{y}\right) - \left(1 + \frac{z}{y}\right)\right)} \]
                        4. Step-by-step derivation
                          1. *-commutativeN/A

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

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

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

                          \[\leadsto \left(\frac{x \cdot \log y}{y} - \left(\frac{z}{y} - -1\right)\right) \cdot y \]
                        7. Step-by-step derivation
                          1. Applied rewrites99.9%

                            \[\leadsto \left(\frac{\log y \cdot x}{y} - \left(\frac{z}{y} - -1\right)\right) \cdot y \]
                        8. Recombined 2 regimes into one program.
                        9. Final simplification98.9%

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

                        Alternative 9: 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);
                        }
                        
                        real(8) function code(x, y, z, t)
                            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 10: 89.7% accurate, 1.8× speedup?

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

                          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 \color{blue}{\left(\left(x \cdot \log y - y\right) - z\right) + \log t} \]
                            2. lift--.f64N/A

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

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

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

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

                              \[\leadsto \color{blue}{x \cdot \log y + \left(\mathsf{neg}\left(\left(\left(y + z\right) - \log t\right)\right)\right)} \]
                            7. lift-*.f64N/A

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

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

                              \[\leadsto \color{blue}{\mathsf{fma}\left(\log y, x, \mathsf{neg}\left(\left(\left(y + z\right) - \log t\right)\right)\right)} \]
                            10. lower-neg.f64N/A

                              \[\leadsto \mathsf{fma}\left(\log y, x, \color{blue}{-\left(\left(y + z\right) - \log t\right)}\right) \]
                            11. associate-+r-N/A

                              \[\leadsto \mathsf{fma}\left(\log y, x, -\color{blue}{\left(y + \left(z - \log t\right)\right)}\right) \]
                            12. +-commutativeN/A

                              \[\leadsto \mathsf{fma}\left(\log y, x, -\color{blue}{\left(\left(z - \log t\right) + y\right)}\right) \]
                            13. lower-+.f64N/A

                              \[\leadsto \mathsf{fma}\left(\log y, x, -\color{blue}{\left(\left(z - \log t\right) + y\right)}\right) \]
                            14. lower--.f6499.7

                              \[\leadsto \mathsf{fma}\left(\log y, x, -\left(\color{blue}{\left(z - \log t\right)} + y\right)\right) \]
                          4. Applied rewrites99.7%

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

                            \[\leadsto \mathsf{fma}\left(\log y, x, \color{blue}{-1 \cdot y}\right) \]
                          6. Step-by-step derivation
                            1. mul-1-negN/A

                              \[\leadsto \mathsf{fma}\left(\log y, x, \color{blue}{\mathsf{neg}\left(y\right)}\right) \]
                            2. lower-neg.f6487.9

                              \[\leadsto \mathsf{fma}\left(\log y, x, \color{blue}{-y}\right) \]
                          7. Applied rewrites87.9%

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

                          if -2.4e20 < x < 3e13

                          1. Initial program 100.0%

                            \[\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. associate--r+N/A

                              \[\leadsto \color{blue}{\left(\log t - y\right) - z} \]
                            2. lower--.f64N/A

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

                              \[\leadsto \color{blue}{\left(\log t - y\right)} - z \]
                            4. lower-log.f6497.2

                              \[\leadsto \left(\color{blue}{\log t} - y\right) - z \]
                          5. Applied rewrites97.2%

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

                          if 3e13 < x

                          1. Initial program 99.7%

                            \[\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 \color{blue}{\left(\left(x \cdot \log y - y\right) - z\right) + \log t} \]
                            2. lift--.f64N/A

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

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

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

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

                              \[\leadsto \color{blue}{x \cdot \log y + \left(\mathsf{neg}\left(\left(\left(y + z\right) - \log t\right)\right)\right)} \]
                            7. lift-*.f64N/A

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

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

                              \[\leadsto \color{blue}{\mathsf{fma}\left(\log y, x, \mathsf{neg}\left(\left(\left(y + z\right) - \log t\right)\right)\right)} \]
                            10. lower-neg.f64N/A

                              \[\leadsto \mathsf{fma}\left(\log y, x, \color{blue}{-\left(\left(y + z\right) - \log t\right)}\right) \]
                            11. associate-+r-N/A

                              \[\leadsto \mathsf{fma}\left(\log y, x, -\color{blue}{\left(y + \left(z - \log t\right)\right)}\right) \]
                            12. +-commutativeN/A

                              \[\leadsto \mathsf{fma}\left(\log y, x, -\color{blue}{\left(\left(z - \log t\right) + y\right)}\right) \]
                            13. lower-+.f64N/A

                              \[\leadsto \mathsf{fma}\left(\log y, x, -\color{blue}{\left(\left(z - \log t\right) + y\right)}\right) \]
                            14. lower--.f6499.7

                              \[\leadsto \mathsf{fma}\left(\log y, x, -\left(\color{blue}{\left(z - \log t\right)} + y\right)\right) \]
                          4. Applied rewrites99.7%

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

                            \[\leadsto \mathsf{fma}\left(\log y, x, \color{blue}{-1 \cdot z}\right) \]
                          6. Step-by-step derivation
                            1. mul-1-negN/A

                              \[\leadsto \mathsf{fma}\left(\log y, x, \color{blue}{\mathsf{neg}\left(z\right)}\right) \]
                            2. lower-neg.f6483.9

                              \[\leadsto \mathsf{fma}\left(\log y, x, \color{blue}{-z}\right) \]
                          7. Applied rewrites83.9%

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

                        Alternative 11: 89.6% accurate, 1.8× speedup?

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

                          1. Initial program 99.7%

                            \[\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 \color{blue}{\left(\left(x \cdot \log y - y\right) - z\right) + \log t} \]
                            2. lift--.f64N/A

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

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

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

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

                              \[\leadsto \color{blue}{x \cdot \log y + \left(\mathsf{neg}\left(\left(\left(y + z\right) - \log t\right)\right)\right)} \]
                            7. lift-*.f64N/A

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

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

                              \[\leadsto \color{blue}{\mathsf{fma}\left(\log y, x, \mathsf{neg}\left(\left(\left(y + z\right) - \log t\right)\right)\right)} \]
                            10. lower-neg.f64N/A

                              \[\leadsto \mathsf{fma}\left(\log y, x, \color{blue}{-\left(\left(y + z\right) - \log t\right)}\right) \]
                            11. associate-+r-N/A

                              \[\leadsto \mathsf{fma}\left(\log y, x, -\color{blue}{\left(y + \left(z - \log t\right)\right)}\right) \]
                            12. +-commutativeN/A

                              \[\leadsto \mathsf{fma}\left(\log y, x, -\color{blue}{\left(\left(z - \log t\right) + y\right)}\right) \]
                            13. lower-+.f64N/A

                              \[\leadsto \mathsf{fma}\left(\log y, x, -\color{blue}{\left(\left(z - \log t\right) + y\right)}\right) \]
                            14. lower--.f6499.7

                              \[\leadsto \mathsf{fma}\left(\log y, x, -\left(\color{blue}{\left(z - \log t\right)} + y\right)\right) \]
                          4. Applied rewrites99.7%

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

                            \[\leadsto \mathsf{fma}\left(\log y, x, \color{blue}{-1 \cdot y}\right) \]
                          6. Step-by-step derivation
                            1. mul-1-negN/A

                              \[\leadsto \mathsf{fma}\left(\log y, x, \color{blue}{\mathsf{neg}\left(y\right)}\right) \]
                            2. lower-neg.f6487.8

                              \[\leadsto \mathsf{fma}\left(\log y, x, \color{blue}{-y}\right) \]
                          7. Applied rewrites87.8%

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

                          if -2.4e20 < x < 1.1199999999999999e77

                          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. associate--r+N/A

                              \[\leadsto \color{blue}{\left(\log t - y\right) - z} \]
                            2. lower--.f64N/A

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

                              \[\leadsto \color{blue}{\left(\log t - y\right)} - z \]
                            4. lower-log.f6493.2

                              \[\leadsto \left(\color{blue}{\log t} - y\right) - z \]
                          5. Applied rewrites93.2%

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

                        Alternative 12: 85.1% accurate, 1.8× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \log y\\ \mathbf{if}\;x \leq -9.5 \cdot 10^{+99}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 2.65 \cdot 10^{+144}:\\ \;\;\;\;\left(\log t - y\right) - z\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                        (FPCore (x y z t)
                         :precision binary64
                         (let* ((t_1 (* x (log y))))
                           (if (<= x -9.5e+99) t_1 (if (<= x 2.65e+144) (- (- (log t) y) z) t_1))))
                        double code(double x, double y, double z, double t) {
                        	double t_1 = x * log(y);
                        	double tmp;
                        	if (x <= -9.5e+99) {
                        		tmp = t_1;
                        	} else if (x <= 2.65e+144) {
                        		tmp = (log(t) - y) - z;
                        	} else {
                        		tmp = t_1;
                        	}
                        	return tmp;
                        }
                        
                        real(8) function code(x, y, z, t)
                            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)
                            if (x <= (-9.5d+99)) then
                                tmp = t_1
                            else if (x <= 2.65d+144) then
                                tmp = (log(t) - y) - z
                            else
                                tmp = t_1
                            end if
                            code = tmp
                        end function
                        
                        public static double code(double x, double y, double z, double t) {
                        	double t_1 = x * Math.log(y);
                        	double tmp;
                        	if (x <= -9.5e+99) {
                        		tmp = t_1;
                        	} else if (x <= 2.65e+144) {
                        		tmp = (Math.log(t) - y) - z;
                        	} else {
                        		tmp = t_1;
                        	}
                        	return tmp;
                        }
                        
                        def code(x, y, z, t):
                        	t_1 = x * math.log(y)
                        	tmp = 0
                        	if x <= -9.5e+99:
                        		tmp = t_1
                        	elif x <= 2.65e+144:
                        		tmp = (math.log(t) - y) - z
                        	else:
                        		tmp = t_1
                        	return tmp
                        
                        function code(x, y, z, t)
                        	t_1 = Float64(x * log(y))
                        	tmp = 0.0
                        	if (x <= -9.5e+99)
                        		tmp = t_1;
                        	elseif (x <= 2.65e+144)
                        		tmp = Float64(Float64(log(t) - y) - z);
                        	else
                        		tmp = t_1;
                        	end
                        	return tmp
                        end
                        
                        function tmp_2 = code(x, y, z, t)
                        	t_1 = x * log(y);
                        	tmp = 0.0;
                        	if (x <= -9.5e+99)
                        		tmp = t_1;
                        	elseif (x <= 2.65e+144)
                        		tmp = (log(t) - y) - z;
                        	else
                        		tmp = t_1;
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -9.5e+99], t$95$1, If[LessEqual[x, 2.65e+144], N[(N[(N[Log[t], $MachinePrecision] - y), $MachinePrecision] - z), $MachinePrecision], t$95$1]]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        t_1 := x \cdot \log y\\
                        \mathbf{if}\;x \leq -9.5 \cdot 10^{+99}:\\
                        \;\;\;\;t\_1\\
                        
                        \mathbf{elif}\;x \leq 2.65 \cdot 10^{+144}:\\
                        \;\;\;\;\left(\log t - y\right) - z\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;t\_1\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 2 regimes
                        2. if x < -9.49999999999999908e99 or 2.6499999999999998e144 < x

                          1. Initial program 99.7%

                            \[\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. *-commutativeN/A

                              \[\leadsto \color{blue}{\log y \cdot x} \]
                            2. lower-*.f64N/A

                              \[\leadsto \color{blue}{\log y \cdot x} \]
                            3. lower-log.f6479.7

                              \[\leadsto \color{blue}{\log y} \cdot x \]
                          5. Applied rewrites79.7%

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

                          if -9.49999999999999908e99 < x < 2.6499999999999998e144

                          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. associate--r+N/A

                              \[\leadsto \color{blue}{\left(\log t - y\right) - z} \]
                            2. lower--.f64N/A

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

                              \[\leadsto \color{blue}{\left(\log t - y\right)} - z \]
                            4. lower-log.f6488.6

                              \[\leadsto \left(\color{blue}{\log t} - y\right) - z \]
                          5. Applied rewrites88.6%

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

                          \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -9.5 \cdot 10^{+99}:\\ \;\;\;\;x \cdot \log y\\ \mathbf{elif}\;x \leq 2.65 \cdot 10^{+144}:\\ \;\;\;\;\left(\log t - y\right) - z\\ \mathbf{else}:\\ \;\;\;\;x \cdot \log y\\ \end{array} \]
                        5. Add Preprocessing

                        Alternative 13: 47.8% accurate, 14.3× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -8 \cdot 10^{+112}:\\ \;\;\;\;-z\\ \mathbf{elif}\;z \leq 21.5:\\ \;\;\;\;-y\\ \mathbf{else}:\\ \;\;\;\;-z\\ \end{array} \end{array} \]
                        (FPCore (x y z t)
                         :precision binary64
                         (if (<= z -8e+112) (- z) (if (<= z 21.5) (- y) (- z))))
                        double code(double x, double y, double z, double t) {
                        	double tmp;
                        	if (z <= -8e+112) {
                        		tmp = -z;
                        	} else if (z <= 21.5) {
                        		tmp = -y;
                        	} else {
                        		tmp = -z;
                        	}
                        	return tmp;
                        }
                        
                        real(8) function code(x, y, z, t)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            real(8), intent (in) :: z
                            real(8), intent (in) :: t
                            real(8) :: tmp
                            if (z <= (-8d+112)) then
                                tmp = -z
                            else if (z <= 21.5d0) then
                                tmp = -y
                            else
                                tmp = -z
                            end if
                            code = tmp
                        end function
                        
                        public static double code(double x, double y, double z, double t) {
                        	double tmp;
                        	if (z <= -8e+112) {
                        		tmp = -z;
                        	} else if (z <= 21.5) {
                        		tmp = -y;
                        	} else {
                        		tmp = -z;
                        	}
                        	return tmp;
                        }
                        
                        def code(x, y, z, t):
                        	tmp = 0
                        	if z <= -8e+112:
                        		tmp = -z
                        	elif z <= 21.5:
                        		tmp = -y
                        	else:
                        		tmp = -z
                        	return tmp
                        
                        function code(x, y, z, t)
                        	tmp = 0.0
                        	if (z <= -8e+112)
                        		tmp = Float64(-z);
                        	elseif (z <= 21.5)
                        		tmp = Float64(-y);
                        	else
                        		tmp = Float64(-z);
                        	end
                        	return tmp
                        end
                        
                        function tmp_2 = code(x, y, z, t)
                        	tmp = 0.0;
                        	if (z <= -8e+112)
                        		tmp = -z;
                        	elseif (z <= 21.5)
                        		tmp = -y;
                        	else
                        		tmp = -z;
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        code[x_, y_, z_, t_] := If[LessEqual[z, -8e+112], (-z), If[LessEqual[z, 21.5], (-y), (-z)]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        \mathbf{if}\;z \leq -8 \cdot 10^{+112}:\\
                        \;\;\;\;-z\\
                        
                        \mathbf{elif}\;z \leq 21.5:\\
                        \;\;\;\;-y\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;-z\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 2 regimes
                        2. if z < -7.9999999999999994e112 or 21.5 < z

                          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 inf

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

                              \[\leadsto \color{blue}{\mathsf{neg}\left(z\right)} \]
                            2. lower-neg.f6463.0

                              \[\leadsto \color{blue}{-z} \]
                          5. Applied rewrites63.0%

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

                          if -7.9999999999999994e112 < z < 21.5

                          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. mul-1-negN/A

                              \[\leadsto \color{blue}{\mathsf{neg}\left(y\right)} \]
                            2. lower-neg.f6436.8

                              \[\leadsto \color{blue}{-y} \]
                          5. Applied rewrites36.8%

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

                        Alternative 14: 58.4% accurate, 35.8× speedup?

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

                            \[\leadsto \color{blue}{\mathsf{neg}\left(y\right)} \]
                          2. lower-neg.f6427.8

                            \[\leadsto \color{blue}{-y} \]
                        5. Applied rewrites27.8%

                          \[\leadsto \color{blue}{-y} \]
                        6. Taylor expanded in x around 0

                          \[\leadsto \color{blue}{\log t - \left(y + z\right)} \]
                        7. Step-by-step derivation
                          1. +-commutativeN/A

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

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

                            \[\leadsto \color{blue}{\left(\log t - z\right) - y} \]
                          4. lower--.f64N/A

                            \[\leadsto \color{blue}{\left(\log t - z\right)} - y \]
                          5. lower-log.f6465.9

                            \[\leadsto \left(\color{blue}{\log t} - z\right) - y \]
                        8. Applied rewrites65.9%

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

                          \[\leadsto -1 \cdot z - y \]
                        10. Step-by-step derivation
                          1. Applied rewrites53.6%

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

                          Alternative 15: 30.5% 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;
                          }
                          
                          real(8) function code(x, y, z, t)
                              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. mul-1-negN/A

                              \[\leadsto \color{blue}{\mathsf{neg}\left(y\right)} \]
                            2. lower-neg.f6427.8

                              \[\leadsto \color{blue}{-y} \]
                          5. Applied rewrites27.8%

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

                          Reproduce

                          ?
                          herbie shell --seed 2024277 
                          (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)))