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

Percentage Accurate: 99.8% → 99.3%
Time: 11.9s
Alternatives: 15
Speedup: 1.0×

Specification

?
\[\begin{array}{l} \\ \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (+ (- (+ (+ x y) z) (* z (log t))) (* (- a 0.5) b)))
double code(double x, double y, double z, double t, double a, double b) {
	return (((x + y) + z) - (z * log(t))) + ((a - 0.5) * b);
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    code = (((x + y) + z) - (z * log(t))) + ((a - 0.5d0) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	return (((x + y) + z) - (z * Math.log(t))) + ((a - 0.5) * b);
}
def code(x, y, z, t, a, b):
	return (((x + y) + z) - (z * math.log(t))) + ((a - 0.5) * b)
function code(x, y, z, t, a, b)
	return Float64(Float64(Float64(Float64(x + y) + z) - Float64(z * log(t))) + Float64(Float64(a - 0.5) * b))
end
function tmp = code(x, y, z, t, a, b)
	tmp = (((x + y) + z) - (z * log(t))) + ((a - 0.5) * b);
end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(N[(x + y), $MachinePrecision] + z), $MachinePrecision] - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a - 0.5), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b
\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.8% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (+ (- (+ (+ x y) z) (* z (log t))) (* (- a 0.5) b)))
double code(double x, double y, double z, double t, double a, double b) {
	return (((x + y) + z) - (z * log(t))) + ((a - 0.5) * b);
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    code = (((x + y) + z) - (z * log(t))) + ((a - 0.5d0) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	return (((x + y) + z) - (z * Math.log(t))) + ((a - 0.5) * b);
}
def code(x, y, z, t, a, b):
	return (((x + y) + z) - (z * math.log(t))) + ((a - 0.5) * b)
function code(x, y, z, t, a, b)
	return Float64(Float64(Float64(Float64(x + y) + z) - Float64(z * log(t))) + Float64(Float64(a - 0.5) * b))
end
function tmp = code(x, y, z, t, a, b)
	tmp = (((x + y) + z) - (z * log(t))) + ((a - 0.5) * b);
end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(N[(x + y), $MachinePrecision] + z), $MachinePrecision] - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a - 0.5), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Alternative 1: 99.3% accurate, 1.0× speedup?

\[\begin{array}{l} [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\ \\ \begin{array}{l} t_1 := 1 - \log t\\ \mathbf{if}\;y + x \leq -2 \cdot 10^{-143}:\\ \;\;\;\;\mathsf{fma}\left(t\_1, z, \mathsf{fma}\left(a - 0.5, b, x\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(t\_1, z, y\right) + b \cdot \left(a - 0.5\right)\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (- 1.0 (log t))))
   (if (<= (+ y x) -2e-143)
     (fma t_1 z (fma (- a 0.5) b x))
     (+ (fma t_1 z y) (* b (- a 0.5))))))
assert(x < y && y < z && z < t && t < a && a < b);
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = 1.0 - log(t);
	double tmp;
	if ((y + x) <= -2e-143) {
		tmp = fma(t_1, z, fma((a - 0.5), b, x));
	} else {
		tmp = fma(t_1, z, y) + (b * (a - 0.5));
	}
	return tmp;
}
x, y, z, t, a, b = sort([x, y, z, t, a, b])
function code(x, y, z, t, a, b)
	t_1 = Float64(1.0 - log(t))
	tmp = 0.0
	if (Float64(y + x) <= -2e-143)
		tmp = fma(t_1, z, fma(Float64(a - 0.5), b, x));
	else
		tmp = Float64(fma(t_1, z, y) + Float64(b * Float64(a - 0.5)));
	end
	return tmp
end
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(y + x), $MachinePrecision], -2e-143], N[(t$95$1 * z + N[(N[(a - 0.5), $MachinePrecision] * b + x), $MachinePrecision]), $MachinePrecision], N[(N[(t$95$1 * z + y), $MachinePrecision] + N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
\\
\begin{array}{l}
t_1 := 1 - \log t\\
\mathbf{if}\;y + x \leq -2 \cdot 10^{-143}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, z, \mathsf{fma}\left(a - 0.5, b, x\right)\right)\\

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, z, y\right) + b \cdot \left(a - 0.5\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (+.f64 x y) < -1.9999999999999999e-143

    1. Initial program 99.8%

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

      \[\leadsto \color{blue}{\left(x + \left(z + b \cdot \left(a - \frac{1}{2}\right)\right)\right) - z \cdot \log t} \]
    4. Step-by-step derivation
      1. *-commutativeN/A

        \[\leadsto \left(x + \left(z + b \cdot \left(a - \frac{1}{2}\right)\right)\right) - \color{blue}{\log t \cdot z} \]
      2. cancel-sign-sub-invN/A

        \[\leadsto \color{blue}{\left(x + \left(z + b \cdot \left(a - \frac{1}{2}\right)\right)\right) + \left(\mathsf{neg}\left(\log t\right)\right) \cdot z} \]
      3. log-recN/A

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

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

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

        \[\leadsto z \cdot \log \left(\frac{1}{t}\right) + \color{blue}{\left(\left(z + b \cdot \left(a - \frac{1}{2}\right)\right) + x\right)} \]
      7. associate-+l+N/A

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

        \[\leadsto \color{blue}{\left(z \cdot \log \left(\frac{1}{t}\right) + z\right) + \left(b \cdot \left(a - \frac{1}{2}\right) + x\right)} \]
      9. *-rgt-identityN/A

        \[\leadsto \left(z \cdot \log \left(\frac{1}{t}\right) + \color{blue}{z \cdot 1}\right) + \left(b \cdot \left(a - \frac{1}{2}\right) + x\right) \]
      10. distribute-lft-inN/A

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

        \[\leadsto z \cdot \color{blue}{\left(1 + \log \left(\frac{1}{t}\right)\right)} + \left(b \cdot \left(a - \frac{1}{2}\right) + x\right) \]
      12. log-recN/A

        \[\leadsto z \cdot \left(1 + \color{blue}{\left(\mathsf{neg}\left(\log t\right)\right)}\right) + \left(b \cdot \left(a - \frac{1}{2}\right) + x\right) \]
      13. sub-negN/A

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

        \[\leadsto \color{blue}{\left(1 - \log t\right) \cdot z} + \left(b \cdot \left(a - \frac{1}{2}\right) + x\right) \]
      15. sub-negN/A

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

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

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

    if -1.9999999999999999e-143 < (+.f64 x y)

    1. Initial program 99.8%

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

      \[\leadsto \color{blue}{\left(\left(y + z\right) - z \cdot \log t\right)} + \left(a - \frac{1}{2}\right) \cdot b \]
    4. Step-by-step derivation
      1. cancel-sign-sub-invN/A

        \[\leadsto \color{blue}{\left(\left(y + z\right) + \left(\mathsf{neg}\left(z\right)\right) \cdot \log t\right)} + \left(a - \frac{1}{2}\right) \cdot b \]
      2. associate-+l+N/A

        \[\leadsto \color{blue}{\left(y + \left(z + \left(\mathsf{neg}\left(z\right)\right) \cdot \log t\right)\right)} + \left(a - \frac{1}{2}\right) \cdot b \]
      3. cancel-sign-sub-invN/A

        \[\leadsto \left(y + \color{blue}{\left(z - z \cdot \log t\right)}\right) + \left(a - \frac{1}{2}\right) \cdot b \]
      4. *-rgt-identityN/A

        \[\leadsto \left(y + \left(\color{blue}{z \cdot 1} - z \cdot \log t\right)\right) + \left(a - \frac{1}{2}\right) \cdot b \]
      5. distribute-lft-out--N/A

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

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

        \[\leadsto \left(\color{blue}{\left(1 - \log t\right) \cdot z} + y\right) + \left(a - \frac{1}{2}\right) \cdot b \]
      8. sub-negN/A

        \[\leadsto \left(\color{blue}{\left(1 + \left(\mathsf{neg}\left(\log t\right)\right)\right)} \cdot z + y\right) + \left(a - \frac{1}{2}\right) \cdot b \]
      9. mul-1-negN/A

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(1 + -1 \cdot \log t, z, y\right)} + \left(a - \frac{1}{2}\right) \cdot b \]
      11. mul-1-negN/A

        \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\left(\mathsf{neg}\left(\log t\right)\right)}, z, y\right) + \left(a - \frac{1}{2}\right) \cdot b \]
      12. sub-negN/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{1 - \log t}, z, y\right) + \left(a - \frac{1}{2}\right) \cdot b \]
      13. lower--.f64N/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{1 - \log t}, z, y\right) + \left(a - \frac{1}{2}\right) \cdot b \]
      14. lower-log.f6478.7

        \[\leadsto \mathsf{fma}\left(1 - \color{blue}{\log t}, z, y\right) + \left(a - 0.5\right) \cdot b \]
    5. Applied rewrites78.7%

      \[\leadsto \color{blue}{\mathsf{fma}\left(1 - \log t, z, y\right)} + \left(a - 0.5\right) \cdot b \]
  3. Recombined 2 regimes into one program.
  4. Final simplification76.5%

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

Alternative 2: 88.9% accurate, 0.9× speedup?

\[\begin{array}{l} [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\ \\ \begin{array}{l} t_1 := b \cdot \left(a - 0.5\right)\\ t_2 := \mathsf{fma}\left(a - 0.5, b, y\right) + x\\ \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+115}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{-46}:\\ \;\;\;\;\mathsf{fma}\left(1 - \log t, z, x\right) + y\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (* b (- a 0.5))) (t_2 (+ (fma (- a 0.5) b y) x)))
   (if (<= t_1 -5e+115)
     t_2
     (if (<= t_1 5e-46) (+ (fma (- 1.0 (log t)) z x) y) t_2))))
assert(x < y && y < z && z < t && t < a && a < b);
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = b * (a - 0.5);
	double t_2 = fma((a - 0.5), b, y) + x;
	double tmp;
	if (t_1 <= -5e+115) {
		tmp = t_2;
	} else if (t_1 <= 5e-46) {
		tmp = fma((1.0 - log(t)), z, x) + y;
	} else {
		tmp = t_2;
	}
	return tmp;
}
x, y, z, t, a, b = sort([x, y, z, t, a, b])
function code(x, y, z, t, a, b)
	t_1 = Float64(b * Float64(a - 0.5))
	t_2 = Float64(fma(Float64(a - 0.5), b, y) + x)
	tmp = 0.0
	if (t_1 <= -5e+115)
		tmp = t_2;
	elseif (t_1 <= 5e-46)
		tmp = Float64(fma(Float64(1.0 - log(t)), z, x) + y);
	else
		tmp = t_2;
	end
	return tmp
end
NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(a - 0.5), $MachinePrecision] * b + y), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+115], t$95$2, If[LessEqual[t$95$1, 5e-46], N[(N[(N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision] * z + x), $MachinePrecision] + y), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
[x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
\\
\begin{array}{l}
t_1 := b \cdot \left(a - 0.5\right)\\
t_2 := \mathsf{fma}\left(a - 0.5, b, y\right) + x\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{+115}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{-46}:\\
\;\;\;\;\mathsf{fma}\left(1 - \log t, z, x\right) + y\\

\mathbf{else}:\\
\;\;\;\;t\_2\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < -5.00000000000000008e115 or 4.99999999999999992e-46 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b)

    1. Initial program 99.9%

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

      \[\leadsto \color{blue}{x + \left(y + b \cdot \left(a - \frac{1}{2}\right)\right)} \]
    4. Step-by-step derivation
      1. +-commutativeN/A

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

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

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

        \[\leadsto \left(\color{blue}{\left(a - \frac{1}{2}\right) \cdot b} + y\right) + x \]
      5. lower-fma.f64N/A

        \[\leadsto \color{blue}{\mathsf{fma}\left(a - \frac{1}{2}, b, y\right)} + x \]
      6. lower--.f6488.7

        \[\leadsto \mathsf{fma}\left(\color{blue}{a - 0.5}, b, y\right) + x \]
    5. Applied rewrites88.7%

      \[\leadsto \color{blue}{\mathsf{fma}\left(a - 0.5, b, y\right) + x} \]

    if -5.00000000000000008e115 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 4.99999999999999992e-46

    1. Initial program 99.7%

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

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

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

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

        \[\leadsto \color{blue}{\left(x + y\right) + \left(z + \left(\mathsf{neg}\left(z\right)\right) \cdot \log t\right)} \]
      4. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(1 - \log t, z, x\right) + \color{blue}{y} \]
    7. Recombined 2 regimes into one program.
    8. Final simplification91.2%

      \[\leadsto \begin{array}{l} \mathbf{if}\;b \cdot \left(a - 0.5\right) \leq -5 \cdot 10^{+115}:\\ \;\;\;\;\mathsf{fma}\left(a - 0.5, b, y\right) + x\\ \mathbf{elif}\;b \cdot \left(a - 0.5\right) \leq 5 \cdot 10^{-46}:\\ \;\;\;\;\mathsf{fma}\left(1 - \log t, z, x\right) + y\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a - 0.5, b, y\right) + x\\ \end{array} \]
    9. Add Preprocessing

    Alternative 3: 92.7% accurate, 1.0× speedup?

    \[\begin{array}{l} [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\ \\ \begin{array}{l} \mathbf{if}\;y + x \leq 10^{+97}:\\ \;\;\;\;\mathsf{fma}\left(1 - \log t, z, \mathsf{fma}\left(a - 0.5, b, x\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(\frac{x}{y} + \frac{z}{y}\right) - -1\right) \cdot y + b \cdot \left(a - 0.5\right)\\ \end{array} \end{array} \]
    NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
    (FPCore (x y z t a b)
     :precision binary64
     (if (<= (+ y x) 1e+97)
       (fma (- 1.0 (log t)) z (fma (- a 0.5) b x))
       (+ (* (- (+ (/ x y) (/ z y)) -1.0) y) (* b (- a 0.5)))))
    assert(x < y && y < z && z < t && t < a && a < b);
    double code(double x, double y, double z, double t, double a, double b) {
    	double tmp;
    	if ((y + x) <= 1e+97) {
    		tmp = fma((1.0 - log(t)), z, fma((a - 0.5), b, x));
    	} else {
    		tmp = ((((x / y) + (z / y)) - -1.0) * y) + (b * (a - 0.5));
    	}
    	return tmp;
    }
    
    x, y, z, t, a, b = sort([x, y, z, t, a, b])
    function code(x, y, z, t, a, b)
    	tmp = 0.0
    	if (Float64(y + x) <= 1e+97)
    		tmp = fma(Float64(1.0 - log(t)), z, fma(Float64(a - 0.5), b, x));
    	else
    		tmp = Float64(Float64(Float64(Float64(Float64(x / y) + Float64(z / y)) - -1.0) * y) + Float64(b * Float64(a - 0.5)));
    	end
    	return tmp
    end
    
    NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
    code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(y + x), $MachinePrecision], 1e+97], N[(N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision] * z + N[(N[(a - 0.5), $MachinePrecision] * b + x), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(N[(x / y), $MachinePrecision] + N[(z / y), $MachinePrecision]), $MachinePrecision] - -1.0), $MachinePrecision] * y), $MachinePrecision] + N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
    
    \begin{array}{l}
    [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
    \\
    \begin{array}{l}
    \mathbf{if}\;y + x \leq 10^{+97}:\\
    \;\;\;\;\mathsf{fma}\left(1 - \log t, z, \mathsf{fma}\left(a - 0.5, b, x\right)\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;\left(\left(\frac{x}{y} + \frac{z}{y}\right) - -1\right) \cdot y + b \cdot \left(a - 0.5\right)\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if (+.f64 x y) < 1.0000000000000001e97

      1. Initial program 99.8%

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

        \[\leadsto \color{blue}{\left(x + \left(z + b \cdot \left(a - \frac{1}{2}\right)\right)\right) - z \cdot \log t} \]
      4. Step-by-step derivation
        1. *-commutativeN/A

          \[\leadsto \left(x + \left(z + b \cdot \left(a - \frac{1}{2}\right)\right)\right) - \color{blue}{\log t \cdot z} \]
        2. cancel-sign-sub-invN/A

          \[\leadsto \color{blue}{\left(x + \left(z + b \cdot \left(a - \frac{1}{2}\right)\right)\right) + \left(\mathsf{neg}\left(\log t\right)\right) \cdot z} \]
        3. log-recN/A

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

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

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

          \[\leadsto z \cdot \log \left(\frac{1}{t}\right) + \color{blue}{\left(\left(z + b \cdot \left(a - \frac{1}{2}\right)\right) + x\right)} \]
        7. associate-+l+N/A

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

          \[\leadsto \color{blue}{\left(z \cdot \log \left(\frac{1}{t}\right) + z\right) + \left(b \cdot \left(a - \frac{1}{2}\right) + x\right)} \]
        9. *-rgt-identityN/A

          \[\leadsto \left(z \cdot \log \left(\frac{1}{t}\right) + \color{blue}{z \cdot 1}\right) + \left(b \cdot \left(a - \frac{1}{2}\right) + x\right) \]
        10. distribute-lft-inN/A

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

          \[\leadsto z \cdot \color{blue}{\left(1 + \log \left(\frac{1}{t}\right)\right)} + \left(b \cdot \left(a - \frac{1}{2}\right) + x\right) \]
        12. log-recN/A

          \[\leadsto z \cdot \left(1 + \color{blue}{\left(\mathsf{neg}\left(\log t\right)\right)}\right) + \left(b \cdot \left(a - \frac{1}{2}\right) + x\right) \]
        13. sub-negN/A

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

          \[\leadsto \color{blue}{\left(1 - \log t\right) \cdot z} + \left(b \cdot \left(a - \frac{1}{2}\right) + x\right) \]
        15. sub-negN/A

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

          \[\leadsto \left(1 + \color{blue}{-1 \cdot \log t}\right) \cdot z + \left(b \cdot \left(a - \frac{1}{2}\right) + x\right) \]
      5. Applied rewrites81.7%

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

      if 1.0000000000000001e97 < (+.f64 x y)

      1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \left(\left(\frac{z}{y} + \color{blue}{\frac{x}{y}}\right) - \left(\frac{z \cdot \log t}{y} - 1\right)\right) \cdot y + \left(a - \frac{1}{2}\right) \cdot b \]
        11. sub-negN/A

          \[\leadsto \left(\left(\frac{z}{y} + \frac{x}{y}\right) - \color{blue}{\left(\frac{z \cdot \log t}{y} + \left(\mathsf{neg}\left(1\right)\right)\right)}\right) \cdot y + \left(a - \frac{1}{2}\right) \cdot b \]
        12. associate-/l*N/A

          \[\leadsto \left(\left(\frac{z}{y} + \frac{x}{y}\right) - \left(\color{blue}{z \cdot \frac{\log t}{y}} + \left(\mathsf{neg}\left(1\right)\right)\right)\right) \cdot y + \left(a - \frac{1}{2}\right) \cdot b \]
        13. *-commutativeN/A

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

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

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

          \[\leadsto \left(\left(\frac{z}{y} + \frac{x}{y}\right) - \mathsf{fma}\left(\color{blue}{\frac{\log t}{y}}, z, -1\right)\right) \cdot y + \left(a - \frac{1}{2}\right) \cdot b \]
        17. lower-log.f6483.4

          \[\leadsto \left(\left(\frac{z}{y} + \frac{x}{y}\right) - \mathsf{fma}\left(\frac{\color{blue}{\log t}}{y}, z, -1\right)\right) \cdot y + \left(a - 0.5\right) \cdot b \]
      5. Applied rewrites83.4%

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

        \[\leadsto \left(\left(\frac{z}{y} + \frac{x}{y}\right) - -1\right) \cdot y + \left(a - \frac{1}{2}\right) \cdot b \]
      7. Step-by-step derivation
        1. Applied rewrites73.8%

          \[\leadsto \left(\left(\frac{z}{y} + \frac{x}{y}\right) - -1\right) \cdot y + \left(a - 0.5\right) \cdot b \]
      8. Recombined 2 regimes into one program.
      9. Final simplification79.6%

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

      Alternative 4: 99.8% accurate, 1.0× speedup?

      \[\begin{array}{l} [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\ \\ b \cdot \left(a - 0.5\right) + \left(\left(z + \left(y + x\right)\right) - \log t \cdot z\right) \end{array} \]
      NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
      (FPCore (x y z t a b)
       :precision binary64
       (+ (* b (- a 0.5)) (- (+ z (+ y x)) (* (log t) z))))
      assert(x < y && y < z && z < t && t < a && a < b);
      double code(double x, double y, double z, double t, double a, double b) {
      	return (b * (a - 0.5)) + ((z + (y + x)) - (log(t) * z));
      }
      
      NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
      real(8) function code(x, y, z, t, a, b)
          real(8), intent (in) :: x
          real(8), intent (in) :: y
          real(8), intent (in) :: z
          real(8), intent (in) :: t
          real(8), intent (in) :: a
          real(8), intent (in) :: b
          code = (b * (a - 0.5d0)) + ((z + (y + x)) - (log(t) * z))
      end function
      
      assert x < y && y < z && z < t && t < a && a < b;
      public static double code(double x, double y, double z, double t, double a, double b) {
      	return (b * (a - 0.5)) + ((z + (y + x)) - (Math.log(t) * z));
      }
      
      [x, y, z, t, a, b] = sort([x, y, z, t, a, b])
      def code(x, y, z, t, a, b):
      	return (b * (a - 0.5)) + ((z + (y + x)) - (math.log(t) * z))
      
      x, y, z, t, a, b = sort([x, y, z, t, a, b])
      function code(x, y, z, t, a, b)
      	return Float64(Float64(b * Float64(a - 0.5)) + Float64(Float64(z + Float64(y + x)) - Float64(log(t) * z)))
      end
      
      x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
      function tmp = code(x, y, z, t, a, b)
      	tmp = (b * (a - 0.5)) + ((z + (y + x)) - (log(t) * z));
      end
      
      NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
      code[x_, y_, z_, t_, a_, b_] := N[(N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision] + N[(N[(z + N[(y + x), $MachinePrecision]), $MachinePrecision] - N[(N[Log[t], $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
      
      \begin{array}{l}
      [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
      \\
      b \cdot \left(a - 0.5\right) + \left(\left(z + \left(y + x\right)\right) - \log t \cdot z\right)
      \end{array}
      
      Derivation
      1. Initial program 99.8%

        \[\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b \]
      2. Add Preprocessing
      3. Final simplification99.8%

        \[\leadsto b \cdot \left(a - 0.5\right) + \left(\left(z + \left(y + x\right)\right) - \log t \cdot z\right) \]
      4. Add Preprocessing

      Alternative 5: 83.2% accurate, 1.0× speedup?

      \[\begin{array}{l} [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\ \\ \begin{array}{l} t_1 := 1 - \log t\\ \mathbf{if}\;z \leq -2 \cdot 10^{+77}:\\ \;\;\;\;\mathsf{fma}\left(t\_1, z, x\right)\\ \mathbf{elif}\;z \leq 1.16 \cdot 10^{+162}:\\ \;\;\;\;\mathsf{fma}\left(a - 0.5, b, y\right) + x\\ \mathbf{else}:\\ \;\;\;\;t\_1 \cdot z + y\\ \end{array} \end{array} \]
      NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
      (FPCore (x y z t a b)
       :precision binary64
       (let* ((t_1 (- 1.0 (log t))))
         (if (<= z -2e+77)
           (fma t_1 z x)
           (if (<= z 1.16e+162) (+ (fma (- a 0.5) b y) x) (+ (* t_1 z) y)))))
      assert(x < y && y < z && z < t && t < a && a < b);
      double code(double x, double y, double z, double t, double a, double b) {
      	double t_1 = 1.0 - log(t);
      	double tmp;
      	if (z <= -2e+77) {
      		tmp = fma(t_1, z, x);
      	} else if (z <= 1.16e+162) {
      		tmp = fma((a - 0.5), b, y) + x;
      	} else {
      		tmp = (t_1 * z) + y;
      	}
      	return tmp;
      }
      
      x, y, z, t, a, b = sort([x, y, z, t, a, b])
      function code(x, y, z, t, a, b)
      	t_1 = Float64(1.0 - log(t))
      	tmp = 0.0
      	if (z <= -2e+77)
      		tmp = fma(t_1, z, x);
      	elseif (z <= 1.16e+162)
      		tmp = Float64(fma(Float64(a - 0.5), b, y) + x);
      	else
      		tmp = Float64(Float64(t_1 * z) + y);
      	end
      	return tmp
      end
      
      NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
      code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2e+77], N[(t$95$1 * z + x), $MachinePrecision], If[LessEqual[z, 1.16e+162], N[(N[(N[(a - 0.5), $MachinePrecision] * b + y), $MachinePrecision] + x), $MachinePrecision], N[(N[(t$95$1 * z), $MachinePrecision] + y), $MachinePrecision]]]]
      
      \begin{array}{l}
      [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
      \\
      \begin{array}{l}
      t_1 := 1 - \log t\\
      \mathbf{if}\;z \leq -2 \cdot 10^{+77}:\\
      \;\;\;\;\mathsf{fma}\left(t\_1, z, x\right)\\
      
      \mathbf{elif}\;z \leq 1.16 \cdot 10^{+162}:\\
      \;\;\;\;\mathsf{fma}\left(a - 0.5, b, y\right) + x\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1 \cdot z + y\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if z < -1.99999999999999997e77

        1. Initial program 99.6%

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

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

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

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

            \[\leadsto \color{blue}{\left(x + y\right) + \left(z + \left(\mathsf{neg}\left(z\right)\right) \cdot \log t\right)} \]
          4. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -1.99999999999999997e77 < z < 1.16000000000000006e162

          1. Initial program 99.9%

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

            \[\leadsto \color{blue}{x + \left(y + b \cdot \left(a - \frac{1}{2}\right)\right)} \]
          4. Step-by-step derivation
            1. +-commutativeN/A

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

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

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

              \[\leadsto \left(\color{blue}{\left(a - \frac{1}{2}\right) \cdot b} + y\right) + x \]
            5. lower-fma.f64N/A

              \[\leadsto \color{blue}{\mathsf{fma}\left(a - \frac{1}{2}, b, y\right)} + x \]
            6. lower--.f6492.3

              \[\leadsto \mathsf{fma}\left(\color{blue}{a - 0.5}, b, y\right) + x \]
          5. Applied rewrites92.3%

            \[\leadsto \color{blue}{\mathsf{fma}\left(a - 0.5, b, y\right) + x} \]

          if 1.16000000000000006e162 < z

          1. Initial program 99.6%

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

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

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

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

              \[\leadsto \color{blue}{\left(x + y\right) + \left(z + \left(\mathsf{neg}\left(z\right)\right) \cdot \log t\right)} \]
            4. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(1 - \log t, z, \color{blue}{y + x}\right) \]
            17. lower-+.f6482.4

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

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

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

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

                \[\leadsto \left(1 - \log t\right) \cdot z + y \]
            3. Recombined 3 regimes into one program.
            4. Add Preprocessing

            Alternative 6: 83.2% accurate, 1.0× speedup?

            \[\begin{array}{l} [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\ \\ \begin{array}{l} t_1 := 1 - \log t\\ \mathbf{if}\;z \leq -2 \cdot 10^{+77}:\\ \;\;\;\;\mathsf{fma}\left(t\_1, z, x\right)\\ \mathbf{elif}\;z \leq 1.16 \cdot 10^{+162}:\\ \;\;\;\;\mathsf{fma}\left(a - 0.5, b, y\right) + x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(t\_1, z, y\right)\\ \end{array} \end{array} \]
            NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
            (FPCore (x y z t a b)
             :precision binary64
             (let* ((t_1 (- 1.0 (log t))))
               (if (<= z -2e+77)
                 (fma t_1 z x)
                 (if (<= z 1.16e+162) (+ (fma (- a 0.5) b y) x) (fma t_1 z y)))))
            assert(x < y && y < z && z < t && t < a && a < b);
            double code(double x, double y, double z, double t, double a, double b) {
            	double t_1 = 1.0 - log(t);
            	double tmp;
            	if (z <= -2e+77) {
            		tmp = fma(t_1, z, x);
            	} else if (z <= 1.16e+162) {
            		tmp = fma((a - 0.5), b, y) + x;
            	} else {
            		tmp = fma(t_1, z, y);
            	}
            	return tmp;
            }
            
            x, y, z, t, a, b = sort([x, y, z, t, a, b])
            function code(x, y, z, t, a, b)
            	t_1 = Float64(1.0 - log(t))
            	tmp = 0.0
            	if (z <= -2e+77)
            		tmp = fma(t_1, z, x);
            	elseif (z <= 1.16e+162)
            		tmp = Float64(fma(Float64(a - 0.5), b, y) + x);
            	else
            		tmp = fma(t_1, z, y);
            	end
            	return tmp
            end
            
            NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
            code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2e+77], N[(t$95$1 * z + x), $MachinePrecision], If[LessEqual[z, 1.16e+162], N[(N[(N[(a - 0.5), $MachinePrecision] * b + y), $MachinePrecision] + x), $MachinePrecision], N[(t$95$1 * z + y), $MachinePrecision]]]]
            
            \begin{array}{l}
            [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
            \\
            \begin{array}{l}
            t_1 := 1 - \log t\\
            \mathbf{if}\;z \leq -2 \cdot 10^{+77}:\\
            \;\;\;\;\mathsf{fma}\left(t\_1, z, x\right)\\
            
            \mathbf{elif}\;z \leq 1.16 \cdot 10^{+162}:\\
            \;\;\;\;\mathsf{fma}\left(a - 0.5, b, y\right) + x\\
            
            \mathbf{else}:\\
            \;\;\;\;\mathsf{fma}\left(t\_1, z, y\right)\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if z < -1.99999999999999997e77

              1. Initial program 99.6%

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

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

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

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

                  \[\leadsto \color{blue}{\left(x + y\right) + \left(z + \left(\mathsf{neg}\left(z\right)\right) \cdot \log t\right)} \]
                4. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                if -1.99999999999999997e77 < z < 1.16000000000000006e162

                1. Initial program 99.9%

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

                  \[\leadsto \color{blue}{x + \left(y + b \cdot \left(a - \frac{1}{2}\right)\right)} \]
                4. Step-by-step derivation
                  1. +-commutativeN/A

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

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

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

                    \[\leadsto \left(\color{blue}{\left(a - \frac{1}{2}\right) \cdot b} + y\right) + x \]
                  5. lower-fma.f64N/A

                    \[\leadsto \color{blue}{\mathsf{fma}\left(a - \frac{1}{2}, b, y\right)} + x \]
                  6. lower--.f6492.3

                    \[\leadsto \mathsf{fma}\left(\color{blue}{a - 0.5}, b, y\right) + x \]
                5. Applied rewrites92.3%

                  \[\leadsto \color{blue}{\mathsf{fma}\left(a - 0.5, b, y\right) + x} \]

                if 1.16000000000000006e162 < z

                1. Initial program 99.6%

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

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

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

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

                    \[\leadsto \color{blue}{\left(x + y\right) + \left(z + \left(\mathsf{neg}\left(z\right)\right) \cdot \log t\right)} \]
                  4. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \mathsf{fma}\left(1 - \log t, z, \color{blue}{y + x}\right) \]
                  17. lower-+.f6482.4

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

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

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

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

                Alternative 7: 83.2% accurate, 1.0× speedup?

                \[\begin{array}{l} [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\ \\ \begin{array}{l} t_1 := \mathsf{fma}\left(1 - \log t, z, x\right)\\ \mathbf{if}\;z \leq -2 \cdot 10^{+77}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 2.7 \cdot 10^{+170}:\\ \;\;\;\;\mathsf{fma}\left(a - 0.5, b, y\right) + x\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
                (FPCore (x y z t a b)
                 :precision binary64
                 (let* ((t_1 (fma (- 1.0 (log t)) z x)))
                   (if (<= z -2e+77) t_1 (if (<= z 2.7e+170) (+ (fma (- a 0.5) b y) x) t_1))))
                assert(x < y && y < z && z < t && t < a && a < b);
                double code(double x, double y, double z, double t, double a, double b) {
                	double t_1 = fma((1.0 - log(t)), z, x);
                	double tmp;
                	if (z <= -2e+77) {
                		tmp = t_1;
                	} else if (z <= 2.7e+170) {
                		tmp = fma((a - 0.5), b, y) + x;
                	} else {
                		tmp = t_1;
                	}
                	return tmp;
                }
                
                x, y, z, t, a, b = sort([x, y, z, t, a, b])
                function code(x, y, z, t, a, b)
                	t_1 = fma(Float64(1.0 - log(t)), z, x)
                	tmp = 0.0
                	if (z <= -2e+77)
                		tmp = t_1;
                	elseif (z <= 2.7e+170)
                		tmp = Float64(fma(Float64(a - 0.5), b, y) + x);
                	else
                		tmp = t_1;
                	end
                	return tmp
                end
                
                NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
                code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision] * z + x), $MachinePrecision]}, If[LessEqual[z, -2e+77], t$95$1, If[LessEqual[z, 2.7e+170], N[(N[(N[(a - 0.5), $MachinePrecision] * b + y), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
                
                \begin{array}{l}
                [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
                \\
                \begin{array}{l}
                t_1 := \mathsf{fma}\left(1 - \log t, z, x\right)\\
                \mathbf{if}\;z \leq -2 \cdot 10^{+77}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;z \leq 2.7 \cdot 10^{+170}:\\
                \;\;\;\;\mathsf{fma}\left(a - 0.5, b, y\right) + x\\
                
                \mathbf{else}:\\
                \;\;\;\;t\_1\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if z < -1.99999999999999997e77 or 2.7000000000000002e170 < z

                  1. Initial program 99.6%

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

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

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

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

                      \[\leadsto \color{blue}{\left(x + y\right) + \left(z + \left(\mathsf{neg}\left(z\right)\right) \cdot \log t\right)} \]
                    4. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if -1.99999999999999997e77 < z < 2.7000000000000002e170

                    1. Initial program 99.9%

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

                      \[\leadsto \color{blue}{x + \left(y + b \cdot \left(a - \frac{1}{2}\right)\right)} \]
                    4. Step-by-step derivation
                      1. +-commutativeN/A

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

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

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

                        \[\leadsto \left(\color{blue}{\left(a - \frac{1}{2}\right) \cdot b} + y\right) + x \]
                      5. lower-fma.f64N/A

                        \[\leadsto \color{blue}{\mathsf{fma}\left(a - \frac{1}{2}, b, y\right)} + x \]
                      6. lower--.f6492.3

                        \[\leadsto \mathsf{fma}\left(\color{blue}{a - 0.5}, b, y\right) + x \]
                    5. Applied rewrites92.3%

                      \[\leadsto \color{blue}{\mathsf{fma}\left(a - 0.5, b, y\right) + x} \]
                  8. Recombined 2 regimes into one program.
                  9. Add Preprocessing

                  Alternative 8: 80.5% accurate, 1.0× speedup?

                  \[\begin{array}{l} [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\ \\ \begin{array}{l} \mathbf{if}\;z \leq -2 \cdot 10^{+77}:\\ \;\;\;\;\left(1 - \log t\right) \cdot z\\ \mathbf{elif}\;z \leq 4.9 \cdot 10^{+181}:\\ \;\;\;\;\mathsf{fma}\left(a - 0.5, b, y\right) + x\\ \mathbf{else}:\\ \;\;\;\;z - \log t \cdot z\\ \end{array} \end{array} \]
                  NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
                  (FPCore (x y z t a b)
                   :precision binary64
                   (if (<= z -2e+77)
                     (* (- 1.0 (log t)) z)
                     (if (<= z 4.9e+181) (+ (fma (- a 0.5) b y) x) (- z (* (log t) z)))))
                  assert(x < y && y < z && z < t && t < a && a < b);
                  double code(double x, double y, double z, double t, double a, double b) {
                  	double tmp;
                  	if (z <= -2e+77) {
                  		tmp = (1.0 - log(t)) * z;
                  	} else if (z <= 4.9e+181) {
                  		tmp = fma((a - 0.5), b, y) + x;
                  	} else {
                  		tmp = z - (log(t) * z);
                  	}
                  	return tmp;
                  }
                  
                  x, y, z, t, a, b = sort([x, y, z, t, a, b])
                  function code(x, y, z, t, a, b)
                  	tmp = 0.0
                  	if (z <= -2e+77)
                  		tmp = Float64(Float64(1.0 - log(t)) * z);
                  	elseif (z <= 4.9e+181)
                  		tmp = Float64(fma(Float64(a - 0.5), b, y) + x);
                  	else
                  		tmp = Float64(z - Float64(log(t) * z));
                  	end
                  	return tmp
                  end
                  
                  NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
                  code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -2e+77], N[(N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[z, 4.9e+181], N[(N[(N[(a - 0.5), $MachinePrecision] * b + y), $MachinePrecision] + x), $MachinePrecision], N[(z - N[(N[Log[t], $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]]]
                  
                  \begin{array}{l}
                  [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
                  \\
                  \begin{array}{l}
                  \mathbf{if}\;z \leq -2 \cdot 10^{+77}:\\
                  \;\;\;\;\left(1 - \log t\right) \cdot z\\
                  
                  \mathbf{elif}\;z \leq 4.9 \cdot 10^{+181}:\\
                  \;\;\;\;\mathsf{fma}\left(a - 0.5, b, y\right) + x\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;z - \log t \cdot z\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 3 regimes
                  2. if z < -1.99999999999999997e77

                    1. Initial program 99.6%

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

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

                        \[\leadsto \left(\left(x \cdot \color{blue}{\left(\frac{y}{x} + 1\right)} + z\right) - z \cdot \log t\right) + \left(a - \frac{1}{2}\right) \cdot b \]
                      2. distribute-rgt-inN/A

                        \[\leadsto \left(\left(\color{blue}{\left(\frac{y}{x} \cdot x + 1 \cdot x\right)} + z\right) - z \cdot \log t\right) + \left(a - \frac{1}{2}\right) \cdot b \]
                      3. *-lft-identityN/A

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

                        \[\leadsto \left(\left(\color{blue}{\mathsf{fma}\left(\frac{y}{x}, x, x\right)} + z\right) - z \cdot \log t\right) + \left(a - \frac{1}{2}\right) \cdot b \]
                      5. lower-/.f6495.8

                        \[\leadsto \left(\left(\mathsf{fma}\left(\color{blue}{\frac{y}{x}}, x, x\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b \]
                    5. Applied rewrites95.8%

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

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

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

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

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

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

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

                    if -1.99999999999999997e77 < z < 4.89999999999999981e181

                    1. Initial program 99.9%

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

                      \[\leadsto \color{blue}{x + \left(y + b \cdot \left(a - \frac{1}{2}\right)\right)} \]
                    4. Step-by-step derivation
                      1. +-commutativeN/A

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

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

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

                        \[\leadsto \left(\color{blue}{\left(a - \frac{1}{2}\right) \cdot b} + y\right) + x \]
                      5. lower-fma.f64N/A

                        \[\leadsto \color{blue}{\mathsf{fma}\left(a - \frac{1}{2}, b, y\right)} + x \]
                      6. lower--.f6491.4

                        \[\leadsto \mathsf{fma}\left(\color{blue}{a - 0.5}, b, y\right) + x \]
                    5. Applied rewrites91.4%

                      \[\leadsto \color{blue}{\mathsf{fma}\left(a - 0.5, b, y\right) + x} \]

                    if 4.89999999999999981e181 < z

                    1. Initial program 99.6%

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

                      \[\leadsto \color{blue}{z \cdot \left(1 - \log t\right)} \]
                    4. Step-by-step derivation
                      1. distribute-lft-out--N/A

                        \[\leadsto \color{blue}{z \cdot 1 - z \cdot \log t} \]
                      2. *-rgt-identityN/A

                        \[\leadsto \color{blue}{z} - z \cdot \log t \]
                      3. lower--.f64N/A

                        \[\leadsto \color{blue}{z - z \cdot \log t} \]
                      4. *-commutativeN/A

                        \[\leadsto z - \color{blue}{\log t \cdot z} \]
                      5. lower-*.f64N/A

                        \[\leadsto z - \color{blue}{\log t \cdot z} \]
                      6. lower-log.f6461.0

                        \[\leadsto z - \color{blue}{\log t} \cdot z \]
                    5. Applied rewrites61.0%

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

                  Alternative 9: 80.5% accurate, 1.0× speedup?

                  \[\begin{array}{l} [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\ \\ \begin{array}{l} t_1 := \left(1 - \log t\right) \cdot z\\ \mathbf{if}\;z \leq -2 \cdot 10^{+77}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 4.9 \cdot 10^{+181}:\\ \;\;\;\;\mathsf{fma}\left(a - 0.5, b, y\right) + x\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                  NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
                  (FPCore (x y z t a b)
                   :precision binary64
                   (let* ((t_1 (* (- 1.0 (log t)) z)))
                     (if (<= z -2e+77) t_1 (if (<= z 4.9e+181) (+ (fma (- a 0.5) b y) x) t_1))))
                  assert(x < y && y < z && z < t && t < a && a < b);
                  double code(double x, double y, double z, double t, double a, double b) {
                  	double t_1 = (1.0 - log(t)) * z;
                  	double tmp;
                  	if (z <= -2e+77) {
                  		tmp = t_1;
                  	} else if (z <= 4.9e+181) {
                  		tmp = fma((a - 0.5), b, y) + x;
                  	} else {
                  		tmp = t_1;
                  	}
                  	return tmp;
                  }
                  
                  x, y, z, t, a, b = sort([x, y, z, t, a, b])
                  function code(x, y, z, t, a, b)
                  	t_1 = Float64(Float64(1.0 - log(t)) * z)
                  	tmp = 0.0
                  	if (z <= -2e+77)
                  		tmp = t_1;
                  	elseif (z <= 4.9e+181)
                  		tmp = Float64(fma(Float64(a - 0.5), b, y) + x);
                  	else
                  		tmp = t_1;
                  	end
                  	return tmp
                  end
                  
                  NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
                  code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -2e+77], t$95$1, If[LessEqual[z, 4.9e+181], N[(N[(N[(a - 0.5), $MachinePrecision] * b + y), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
                  
                  \begin{array}{l}
                  [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
                  \\
                  \begin{array}{l}
                  t_1 := \left(1 - \log t\right) \cdot z\\
                  \mathbf{if}\;z \leq -2 \cdot 10^{+77}:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{elif}\;z \leq 4.9 \cdot 10^{+181}:\\
                  \;\;\;\;\mathsf{fma}\left(a - 0.5, b, y\right) + x\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;t\_1\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 2 regimes
                  2. if z < -1.99999999999999997e77 or 4.89999999999999981e181 < z

                    1. Initial program 99.6%

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

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

                        \[\leadsto \left(\left(x \cdot \color{blue}{\left(\frac{y}{x} + 1\right)} + z\right) - z \cdot \log t\right) + \left(a - \frac{1}{2}\right) \cdot b \]
                      2. distribute-rgt-inN/A

                        \[\leadsto \left(\left(\color{blue}{\left(\frac{y}{x} \cdot x + 1 \cdot x\right)} + z\right) - z \cdot \log t\right) + \left(a - \frac{1}{2}\right) \cdot b \]
                      3. *-lft-identityN/A

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

                        \[\leadsto \left(\left(\color{blue}{\mathsf{fma}\left(\frac{y}{x}, x, x\right)} + z\right) - z \cdot \log t\right) + \left(a - \frac{1}{2}\right) \cdot b \]
                      5. lower-/.f6491.8

                        \[\leadsto \left(\left(\mathsf{fma}\left(\color{blue}{\frac{y}{x}}, x, x\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b \]
                    5. Applied rewrites91.8%

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

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

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

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

                        \[\leadsto \color{blue}{\left(1 - \log t\right)} \cdot z \]
                      4. lower-log.f6468.0

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

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

                    if -1.99999999999999997e77 < z < 4.89999999999999981e181

                    1. Initial program 99.9%

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

                      \[\leadsto \color{blue}{x + \left(y + b \cdot \left(a - \frac{1}{2}\right)\right)} \]
                    4. Step-by-step derivation
                      1. +-commutativeN/A

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

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

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

                        \[\leadsto \left(\color{blue}{\left(a - \frac{1}{2}\right) \cdot b} + y\right) + x \]
                      5. lower-fma.f64N/A

                        \[\leadsto \color{blue}{\mathsf{fma}\left(a - \frac{1}{2}, b, y\right)} + x \]
                      6. lower--.f6491.4

                        \[\leadsto \mathsf{fma}\left(\color{blue}{a - 0.5}, b, y\right) + x \]
                    5. Applied rewrites91.4%

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

                  Alternative 10: 57.6% accurate, 2.6× speedup?

                  \[\begin{array}{l} [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\ \\ \begin{array}{l} t_1 := b \cdot \left(a - 0.5\right)\\ \mathbf{if}\;t\_1 \leq -2.4 \cdot 10^{+282}:\\ \;\;\;\;b \cdot a\\ \mathbf{elif}\;t\_1 \leq -2 \cdot 10^{+194}:\\ \;\;\;\;-0.5 \cdot b\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+194}:\\ \;\;\;\;y + x\\ \mathbf{else}:\\ \;\;\;\;b \cdot a\\ \end{array} \end{array} \]
                  NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
                  (FPCore (x y z t a b)
                   :precision binary64
                   (let* ((t_1 (* b (- a 0.5))))
                     (if (<= t_1 -2.4e+282)
                       (* b a)
                       (if (<= t_1 -2e+194) (* -0.5 b) (if (<= t_1 5e+194) (+ y x) (* b a))))))
                  assert(x < y && y < z && z < t && t < a && a < b);
                  double code(double x, double y, double z, double t, double a, double b) {
                  	double t_1 = b * (a - 0.5);
                  	double tmp;
                  	if (t_1 <= -2.4e+282) {
                  		tmp = b * a;
                  	} else if (t_1 <= -2e+194) {
                  		tmp = -0.5 * b;
                  	} else if (t_1 <= 5e+194) {
                  		tmp = y + x;
                  	} else {
                  		tmp = b * a;
                  	}
                  	return tmp;
                  }
                  
                  NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
                  real(8) function code(x, y, z, t, a, b)
                      real(8), intent (in) :: x
                      real(8), intent (in) :: y
                      real(8), intent (in) :: z
                      real(8), intent (in) :: t
                      real(8), intent (in) :: a
                      real(8), intent (in) :: b
                      real(8) :: t_1
                      real(8) :: tmp
                      t_1 = b * (a - 0.5d0)
                      if (t_1 <= (-2.4d+282)) then
                          tmp = b * a
                      else if (t_1 <= (-2d+194)) then
                          tmp = (-0.5d0) * b
                      else if (t_1 <= 5d+194) then
                          tmp = y + x
                      else
                          tmp = b * a
                      end if
                      code = tmp
                  end function
                  
                  assert x < y && y < z && z < t && t < a && a < b;
                  public static double code(double x, double y, double z, double t, double a, double b) {
                  	double t_1 = b * (a - 0.5);
                  	double tmp;
                  	if (t_1 <= -2.4e+282) {
                  		tmp = b * a;
                  	} else if (t_1 <= -2e+194) {
                  		tmp = -0.5 * b;
                  	} else if (t_1 <= 5e+194) {
                  		tmp = y + x;
                  	} else {
                  		tmp = b * a;
                  	}
                  	return tmp;
                  }
                  
                  [x, y, z, t, a, b] = sort([x, y, z, t, a, b])
                  def code(x, y, z, t, a, b):
                  	t_1 = b * (a - 0.5)
                  	tmp = 0
                  	if t_1 <= -2.4e+282:
                  		tmp = b * a
                  	elif t_1 <= -2e+194:
                  		tmp = -0.5 * b
                  	elif t_1 <= 5e+194:
                  		tmp = y + x
                  	else:
                  		tmp = b * a
                  	return tmp
                  
                  x, y, z, t, a, b = sort([x, y, z, t, a, b])
                  function code(x, y, z, t, a, b)
                  	t_1 = Float64(b * Float64(a - 0.5))
                  	tmp = 0.0
                  	if (t_1 <= -2.4e+282)
                  		tmp = Float64(b * a);
                  	elseif (t_1 <= -2e+194)
                  		tmp = Float64(-0.5 * b);
                  	elseif (t_1 <= 5e+194)
                  		tmp = Float64(y + x);
                  	else
                  		tmp = Float64(b * a);
                  	end
                  	return tmp
                  end
                  
                  x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
                  function tmp_2 = code(x, y, z, t, a, b)
                  	t_1 = b * (a - 0.5);
                  	tmp = 0.0;
                  	if (t_1 <= -2.4e+282)
                  		tmp = b * a;
                  	elseif (t_1 <= -2e+194)
                  		tmp = -0.5 * b;
                  	elseif (t_1 <= 5e+194)
                  		tmp = y + x;
                  	else
                  		tmp = b * a;
                  	end
                  	tmp_2 = tmp;
                  end
                  
                  NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
                  code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2.4e+282], N[(b * a), $MachinePrecision], If[LessEqual[t$95$1, -2e+194], N[(-0.5 * b), $MachinePrecision], If[LessEqual[t$95$1, 5e+194], N[(y + x), $MachinePrecision], N[(b * a), $MachinePrecision]]]]]
                  
                  \begin{array}{l}
                  [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
                  \\
                  \begin{array}{l}
                  t_1 := b \cdot \left(a - 0.5\right)\\
                  \mathbf{if}\;t\_1 \leq -2.4 \cdot 10^{+282}:\\
                  \;\;\;\;b \cdot a\\
                  
                  \mathbf{elif}\;t\_1 \leq -2 \cdot 10^{+194}:\\
                  \;\;\;\;-0.5 \cdot b\\
                  
                  \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+194}:\\
                  \;\;\;\;y + x\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;b \cdot a\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 3 regimes
                  2. if (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < -2.40000000000000008e282 or 4.99999999999999989e194 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b)

                    1. Initial program 100.0%

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

                      \[\leadsto \color{blue}{a \cdot b} \]
                    4. Step-by-step derivation
                      1. *-commutativeN/A

                        \[\leadsto \color{blue}{b \cdot a} \]
                      2. lower-*.f6477.7

                        \[\leadsto \color{blue}{b \cdot a} \]
                    5. Applied rewrites77.7%

                      \[\leadsto \color{blue}{b \cdot a} \]

                    if -2.40000000000000008e282 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < -1.99999999999999989e194

                    1. Initial program 99.9%

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

                      \[\leadsto \color{blue}{b \cdot \left(a - \frac{1}{2}\right)} \]
                    4. Step-by-step derivation
                      1. *-commutativeN/A

                        \[\leadsto \color{blue}{\left(a - \frac{1}{2}\right) \cdot b} \]
                      2. lower-*.f64N/A

                        \[\leadsto \color{blue}{\left(a - \frac{1}{2}\right) \cdot b} \]
                      3. lower--.f6470.4

                        \[\leadsto \color{blue}{\left(a - 0.5\right)} \cdot b \]
                    5. Applied rewrites70.4%

                      \[\leadsto \color{blue}{\left(a - 0.5\right) \cdot b} \]
                    6. Taylor expanded in a around 0

                      \[\leadsto \frac{-1}{2} \cdot b \]
                    7. Step-by-step derivation
                      1. Applied rewrites54.5%

                        \[\leadsto -0.5 \cdot b \]

                      if -1.99999999999999989e194 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 4.99999999999999989e194

                      1. Initial program 99.8%

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

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

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

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

                          \[\leadsto \color{blue}{\left(x + y\right) + \left(z + \left(\mathsf{neg}\left(z\right)\right) \cdot \log t\right)} \]
                        4. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto x + \color{blue}{y} \]
                      8. Recombined 3 regimes into one program.
                      9. Final simplification56.2%

                        \[\leadsto \begin{array}{l} \mathbf{if}\;b \cdot \left(a - 0.5\right) \leq -2.4 \cdot 10^{+282}:\\ \;\;\;\;b \cdot a\\ \mathbf{elif}\;b \cdot \left(a - 0.5\right) \leq -2 \cdot 10^{+194}:\\ \;\;\;\;-0.5 \cdot b\\ \mathbf{elif}\;b \cdot \left(a - 0.5\right) \leq 5 \cdot 10^{+194}:\\ \;\;\;\;y + x\\ \mathbf{else}:\\ \;\;\;\;b \cdot a\\ \end{array} \]
                      10. Add Preprocessing

                      Alternative 11: 65.3% accurate, 3.4× speedup?

                      \[\begin{array}{l} [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\ \\ \begin{array}{l} t_1 := b \cdot \left(a - 0.5\right)\\ \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+162}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+95}:\\ \;\;\;\;y + x\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                      NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
                      (FPCore (x y z t a b)
                       :precision binary64
                       (let* ((t_1 (* b (- a 0.5))))
                         (if (<= t_1 -5e+162) t_1 (if (<= t_1 2e+95) (+ y x) t_1))))
                      assert(x < y && y < z && z < t && t < a && a < b);
                      double code(double x, double y, double z, double t, double a, double b) {
                      	double t_1 = b * (a - 0.5);
                      	double tmp;
                      	if (t_1 <= -5e+162) {
                      		tmp = t_1;
                      	} else if (t_1 <= 2e+95) {
                      		tmp = y + x;
                      	} else {
                      		tmp = t_1;
                      	}
                      	return tmp;
                      }
                      
                      NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
                      real(8) function code(x, y, z, t, a, b)
                          real(8), intent (in) :: x
                          real(8), intent (in) :: y
                          real(8), intent (in) :: z
                          real(8), intent (in) :: t
                          real(8), intent (in) :: a
                          real(8), intent (in) :: b
                          real(8) :: t_1
                          real(8) :: tmp
                          t_1 = b * (a - 0.5d0)
                          if (t_1 <= (-5d+162)) then
                              tmp = t_1
                          else if (t_1 <= 2d+95) then
                              tmp = y + x
                          else
                              tmp = t_1
                          end if
                          code = tmp
                      end function
                      
                      assert x < y && y < z && z < t && t < a && a < b;
                      public static double code(double x, double y, double z, double t, double a, double b) {
                      	double t_1 = b * (a - 0.5);
                      	double tmp;
                      	if (t_1 <= -5e+162) {
                      		tmp = t_1;
                      	} else if (t_1 <= 2e+95) {
                      		tmp = y + x;
                      	} else {
                      		tmp = t_1;
                      	}
                      	return tmp;
                      }
                      
                      [x, y, z, t, a, b] = sort([x, y, z, t, a, b])
                      def code(x, y, z, t, a, b):
                      	t_1 = b * (a - 0.5)
                      	tmp = 0
                      	if t_1 <= -5e+162:
                      		tmp = t_1
                      	elif t_1 <= 2e+95:
                      		tmp = y + x
                      	else:
                      		tmp = t_1
                      	return tmp
                      
                      x, y, z, t, a, b = sort([x, y, z, t, a, b])
                      function code(x, y, z, t, a, b)
                      	t_1 = Float64(b * Float64(a - 0.5))
                      	tmp = 0.0
                      	if (t_1 <= -5e+162)
                      		tmp = t_1;
                      	elseif (t_1 <= 2e+95)
                      		tmp = Float64(y + x);
                      	else
                      		tmp = t_1;
                      	end
                      	return tmp
                      end
                      
                      x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
                      function tmp_2 = code(x, y, z, t, a, b)
                      	t_1 = b * (a - 0.5);
                      	tmp = 0.0;
                      	if (t_1 <= -5e+162)
                      		tmp = t_1;
                      	elseif (t_1 <= 2e+95)
                      		tmp = y + x;
                      	else
                      		tmp = t_1;
                      	end
                      	tmp_2 = tmp;
                      end
                      
                      NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
                      code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+162], t$95$1, If[LessEqual[t$95$1, 2e+95], N[(y + x), $MachinePrecision], t$95$1]]]
                      
                      \begin{array}{l}
                      [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
                      \\
                      \begin{array}{l}
                      t_1 := b \cdot \left(a - 0.5\right)\\
                      \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+162}:\\
                      \;\;\;\;t\_1\\
                      
                      \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+95}:\\
                      \;\;\;\;y + x\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;t\_1\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 2 regimes
                      2. if (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < -4.9999999999999997e162 or 2.00000000000000004e95 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b)

                        1. Initial program 99.9%

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

                          \[\leadsto \color{blue}{b \cdot \left(a - \frac{1}{2}\right)} \]
                        4. Step-by-step derivation
                          1. *-commutativeN/A

                            \[\leadsto \color{blue}{\left(a - \frac{1}{2}\right) \cdot b} \]
                          2. lower-*.f64N/A

                            \[\leadsto \color{blue}{\left(a - \frac{1}{2}\right) \cdot b} \]
                          3. lower--.f6475.8

                            \[\leadsto \color{blue}{\left(a - 0.5\right)} \cdot b \]
                        5. Applied rewrites75.8%

                          \[\leadsto \color{blue}{\left(a - 0.5\right) \cdot b} \]

                        if -4.9999999999999997e162 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 2.00000000000000004e95

                        1. Initial program 99.7%

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

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

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

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

                            \[\leadsto \color{blue}{\left(x + y\right) + \left(z + \left(\mathsf{neg}\left(z\right)\right) \cdot \log t\right)} \]
                          4. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto x + \color{blue}{y} \]
                        7. Step-by-step derivation
                          1. Applied rewrites55.3%

                            \[\leadsto x + \color{blue}{y} \]
                        8. Recombined 2 regimes into one program.
                        9. Final simplification62.7%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;b \cdot \left(a - 0.5\right) \leq -5 \cdot 10^{+162}:\\ \;\;\;\;b \cdot \left(a - 0.5\right)\\ \mathbf{elif}\;b \cdot \left(a - 0.5\right) \leq 2 \cdot 10^{+95}:\\ \;\;\;\;y + x\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(a - 0.5\right)\\ \end{array} \]
                        10. Add Preprocessing

                        Alternative 12: 56.9% accurate, 3.7× speedup?

                        \[\begin{array}{l} [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\ \\ \begin{array}{l} t_1 := b \cdot \left(a - 0.5\right)\\ \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+273}:\\ \;\;\;\;b \cdot a\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+194}:\\ \;\;\;\;y + x\\ \mathbf{else}:\\ \;\;\;\;b \cdot a\\ \end{array} \end{array} \]
                        NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
                        (FPCore (x y z t a b)
                         :precision binary64
                         (let* ((t_1 (* b (- a 0.5))))
                           (if (<= t_1 -5e+273) (* b a) (if (<= t_1 5e+194) (+ y x) (* b a)))))
                        assert(x < y && y < z && z < t && t < a && a < b);
                        double code(double x, double y, double z, double t, double a, double b) {
                        	double t_1 = b * (a - 0.5);
                        	double tmp;
                        	if (t_1 <= -5e+273) {
                        		tmp = b * a;
                        	} else if (t_1 <= 5e+194) {
                        		tmp = y + x;
                        	} else {
                        		tmp = b * a;
                        	}
                        	return tmp;
                        }
                        
                        NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
                        real(8) function code(x, y, z, t, a, b)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            real(8), intent (in) :: z
                            real(8), intent (in) :: t
                            real(8), intent (in) :: a
                            real(8), intent (in) :: b
                            real(8) :: t_1
                            real(8) :: tmp
                            t_1 = b * (a - 0.5d0)
                            if (t_1 <= (-5d+273)) then
                                tmp = b * a
                            else if (t_1 <= 5d+194) then
                                tmp = y + x
                            else
                                tmp = b * a
                            end if
                            code = tmp
                        end function
                        
                        assert x < y && y < z && z < t && t < a && a < b;
                        public static double code(double x, double y, double z, double t, double a, double b) {
                        	double t_1 = b * (a - 0.5);
                        	double tmp;
                        	if (t_1 <= -5e+273) {
                        		tmp = b * a;
                        	} else if (t_1 <= 5e+194) {
                        		tmp = y + x;
                        	} else {
                        		tmp = b * a;
                        	}
                        	return tmp;
                        }
                        
                        [x, y, z, t, a, b] = sort([x, y, z, t, a, b])
                        def code(x, y, z, t, a, b):
                        	t_1 = b * (a - 0.5)
                        	tmp = 0
                        	if t_1 <= -5e+273:
                        		tmp = b * a
                        	elif t_1 <= 5e+194:
                        		tmp = y + x
                        	else:
                        		tmp = b * a
                        	return tmp
                        
                        x, y, z, t, a, b = sort([x, y, z, t, a, b])
                        function code(x, y, z, t, a, b)
                        	t_1 = Float64(b * Float64(a - 0.5))
                        	tmp = 0.0
                        	if (t_1 <= -5e+273)
                        		tmp = Float64(b * a);
                        	elseif (t_1 <= 5e+194)
                        		tmp = Float64(y + x);
                        	else
                        		tmp = Float64(b * a);
                        	end
                        	return tmp
                        end
                        
                        x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
                        function tmp_2 = code(x, y, z, t, a, b)
                        	t_1 = b * (a - 0.5);
                        	tmp = 0.0;
                        	if (t_1 <= -5e+273)
                        		tmp = b * a;
                        	elseif (t_1 <= 5e+194)
                        		tmp = y + x;
                        	else
                        		tmp = b * a;
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
                        code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+273], N[(b * a), $MachinePrecision], If[LessEqual[t$95$1, 5e+194], N[(y + x), $MachinePrecision], N[(b * a), $MachinePrecision]]]]
                        
                        \begin{array}{l}
                        [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
                        \\
                        \begin{array}{l}
                        t_1 := b \cdot \left(a - 0.5\right)\\
                        \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+273}:\\
                        \;\;\;\;b \cdot a\\
                        
                        \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+194}:\\
                        \;\;\;\;y + x\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;b \cdot a\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 2 regimes
                        2. if (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < -4.99999999999999961e273 or 4.99999999999999989e194 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b)

                          1. Initial program 100.0%

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

                            \[\leadsto \color{blue}{a \cdot b} \]
                          4. Step-by-step derivation
                            1. *-commutativeN/A

                              \[\leadsto \color{blue}{b \cdot a} \]
                            2. lower-*.f6474.6

                              \[\leadsto \color{blue}{b \cdot a} \]
                          5. Applied rewrites74.6%

                            \[\leadsto \color{blue}{b \cdot a} \]

                          if -4.99999999999999961e273 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 4.99999999999999989e194

                          1. Initial program 99.8%

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

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

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

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

                              \[\leadsto \color{blue}{\left(x + y\right) + \left(z + \left(\mathsf{neg}\left(z\right)\right) \cdot \log t\right)} \]
                            4. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto x + \color{blue}{y} \]
                          7. Step-by-step derivation
                            1. Applied rewrites49.7%

                              \[\leadsto x + \color{blue}{y} \]
                          8. Recombined 2 regimes into one program.
                          9. Final simplification54.2%

                            \[\leadsto \begin{array}{l} \mathbf{if}\;b \cdot \left(a - 0.5\right) \leq -5 \cdot 10^{+273}:\\ \;\;\;\;b \cdot a\\ \mathbf{elif}\;b \cdot \left(a - 0.5\right) \leq 5 \cdot 10^{+194}:\\ \;\;\;\;y + x\\ \mathbf{else}:\\ \;\;\;\;b \cdot a\\ \end{array} \]
                          10. Add Preprocessing

                          Alternative 13: 67.6% accurate, 6.6× speedup?

                          \[\begin{array}{l} [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\ \\ \begin{array}{l} \mathbf{if}\;y + x \leq 5 \cdot 10^{+110}:\\ \;\;\;\;\mathsf{fma}\left(a - 0.5, b, x\right)\\ \mathbf{else}:\\ \;\;\;\;y + x\\ \end{array} \end{array} \]
                          NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
                          (FPCore (x y z t a b)
                           :precision binary64
                           (if (<= (+ y x) 5e+110) (fma (- a 0.5) b x) (+ y x)))
                          assert(x < y && y < z && z < t && t < a && a < b);
                          double code(double x, double y, double z, double t, double a, double b) {
                          	double tmp;
                          	if ((y + x) <= 5e+110) {
                          		tmp = fma((a - 0.5), b, x);
                          	} else {
                          		tmp = y + x;
                          	}
                          	return tmp;
                          }
                          
                          x, y, z, t, a, b = sort([x, y, z, t, a, b])
                          function code(x, y, z, t, a, b)
                          	tmp = 0.0
                          	if (Float64(y + x) <= 5e+110)
                          		tmp = fma(Float64(a - 0.5), b, x);
                          	else
                          		tmp = Float64(y + x);
                          	end
                          	return tmp
                          end
                          
                          NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
                          code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(y + x), $MachinePrecision], 5e+110], N[(N[(a - 0.5), $MachinePrecision] * b + x), $MachinePrecision], N[(y + x), $MachinePrecision]]
                          
                          \begin{array}{l}
                          [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
                          \\
                          \begin{array}{l}
                          \mathbf{if}\;y + x \leq 5 \cdot 10^{+110}:\\
                          \;\;\;\;\mathsf{fma}\left(a - 0.5, b, x\right)\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;y + x\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 2 regimes
                          2. if (+.f64 x y) < 4.99999999999999978e110

                            1. Initial program 99.8%

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

                              \[\leadsto \color{blue}{\left(x + \left(z + b \cdot \left(a - \frac{1}{2}\right)\right)\right) - z \cdot \log t} \]
                            4. Step-by-step derivation
                              1. *-commutativeN/A

                                \[\leadsto \left(x + \left(z + b \cdot \left(a - \frac{1}{2}\right)\right)\right) - \color{blue}{\log t \cdot z} \]
                              2. cancel-sign-sub-invN/A

                                \[\leadsto \color{blue}{\left(x + \left(z + b \cdot \left(a - \frac{1}{2}\right)\right)\right) + \left(\mathsf{neg}\left(\log t\right)\right) \cdot z} \]
                              3. log-recN/A

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

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

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

                                \[\leadsto z \cdot \log \left(\frac{1}{t}\right) + \color{blue}{\left(\left(z + b \cdot \left(a - \frac{1}{2}\right)\right) + x\right)} \]
                              7. associate-+l+N/A

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

                                \[\leadsto \color{blue}{\left(z \cdot \log \left(\frac{1}{t}\right) + z\right) + \left(b \cdot \left(a - \frac{1}{2}\right) + x\right)} \]
                              9. *-rgt-identityN/A

                                \[\leadsto \left(z \cdot \log \left(\frac{1}{t}\right) + \color{blue}{z \cdot 1}\right) + \left(b \cdot \left(a - \frac{1}{2}\right) + x\right) \]
                              10. distribute-lft-inN/A

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

                                \[\leadsto z \cdot \color{blue}{\left(1 + \log \left(\frac{1}{t}\right)\right)} + \left(b \cdot \left(a - \frac{1}{2}\right) + x\right) \]
                              12. log-recN/A

                                \[\leadsto z \cdot \left(1 + \color{blue}{\left(\mathsf{neg}\left(\log t\right)\right)}\right) + \left(b \cdot \left(a - \frac{1}{2}\right) + x\right) \]
                              13. sub-negN/A

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

                                \[\leadsto \color{blue}{\left(1 - \log t\right) \cdot z} + \left(b \cdot \left(a - \frac{1}{2}\right) + x\right) \]
                              15. sub-negN/A

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

                                \[\leadsto \left(1 + \color{blue}{-1 \cdot \log t}\right) \cdot z + \left(b \cdot \left(a - \frac{1}{2}\right) + x\right) \]
                            5. Applied rewrites81.6%

                              \[\leadsto \color{blue}{\mathsf{fma}\left(1 - \log t, z, \mathsf{fma}\left(a - 0.5, b, x\right)\right)} \]
                            6. Taylor expanded in z around 0

                              \[\leadsto x + \color{blue}{b \cdot \left(a - \frac{1}{2}\right)} \]
                            7. Step-by-step derivation
                              1. Applied rewrites52.2%

                                \[\leadsto \mathsf{fma}\left(a - 0.5, \color{blue}{b}, x\right) \]

                              if 4.99999999999999978e110 < (+.f64 x y)

                              1. Initial program 99.9%

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

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

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

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

                                  \[\leadsto \color{blue}{\left(x + y\right) + \left(z + \left(\mathsf{neg}\left(z\right)\right) \cdot \log t\right)} \]
                                4. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto x + \color{blue}{y} \]
                              7. Step-by-step derivation
                                1. Applied rewrites66.2%

                                  \[\leadsto x + \color{blue}{y} \]
                              8. Recombined 2 regimes into one program.
                              9. Final simplification55.7%

                                \[\leadsto \begin{array}{l} \mathbf{if}\;y + x \leq 5 \cdot 10^{+110}:\\ \;\;\;\;\mathsf{fma}\left(a - 0.5, b, x\right)\\ \mathbf{else}:\\ \;\;\;\;y + x\\ \end{array} \]
                              10. Add Preprocessing

                              Alternative 14: 79.1% accurate, 9.7× speedup?

                              \[\begin{array}{l} [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\ \\ \mathsf{fma}\left(a - 0.5, b, y\right) + x \end{array} \]
                              NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
                              (FPCore (x y z t a b) :precision binary64 (+ (fma (- a 0.5) b y) x))
                              assert(x < y && y < z && z < t && t < a && a < b);
                              double code(double x, double y, double z, double t, double a, double b) {
                              	return fma((a - 0.5), b, y) + x;
                              }
                              
                              x, y, z, t, a, b = sort([x, y, z, t, a, b])
                              function code(x, y, z, t, a, b)
                              	return Float64(fma(Float64(a - 0.5), b, y) + x)
                              end
                              
                              NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
                              code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(a - 0.5), $MachinePrecision] * b + y), $MachinePrecision] + x), $MachinePrecision]
                              
                              \begin{array}{l}
                              [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
                              \\
                              \mathsf{fma}\left(a - 0.5, b, y\right) + x
                              \end{array}
                              
                              Derivation
                              1. Initial program 99.8%

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

                                \[\leadsto \color{blue}{x + \left(y + b \cdot \left(a - \frac{1}{2}\right)\right)} \]
                              4. Step-by-step derivation
                                1. +-commutativeN/A

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

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

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

                                  \[\leadsto \left(\color{blue}{\left(a - \frac{1}{2}\right) \cdot b} + y\right) + x \]
                                5. lower-fma.f64N/A

                                  \[\leadsto \color{blue}{\mathsf{fma}\left(a - \frac{1}{2}, b, y\right)} + x \]
                                6. lower--.f6474.8

                                  \[\leadsto \mathsf{fma}\left(\color{blue}{a - 0.5}, b, y\right) + x \]
                              5. Applied rewrites74.8%

                                \[\leadsto \color{blue}{\mathsf{fma}\left(a - 0.5, b, y\right) + x} \]
                              6. Add Preprocessing

                              Alternative 15: 41.7% accurate, 31.5× speedup?

                              \[\begin{array}{l} [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\ \\ y + x \end{array} \]
                              NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
                              (FPCore (x y z t a b) :precision binary64 (+ y x))
                              assert(x < y && y < z && z < t && t < a && a < b);
                              double code(double x, double y, double z, double t, double a, double b) {
                              	return y + x;
                              }
                              
                              NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
                              real(8) function code(x, y, z, t, a, b)
                                  real(8), intent (in) :: x
                                  real(8), intent (in) :: y
                                  real(8), intent (in) :: z
                                  real(8), intent (in) :: t
                                  real(8), intent (in) :: a
                                  real(8), intent (in) :: b
                                  code = y + x
                              end function
                              
                              assert x < y && y < z && z < t && t < a && a < b;
                              public static double code(double x, double y, double z, double t, double a, double b) {
                              	return y + x;
                              }
                              
                              [x, y, z, t, a, b] = sort([x, y, z, t, a, b])
                              def code(x, y, z, t, a, b):
                              	return y + x
                              
                              x, y, z, t, a, b = sort([x, y, z, t, a, b])
                              function code(x, y, z, t, a, b)
                              	return Float64(y + x)
                              end
                              
                              x, y, z, t, a, b = num2cell(sort([x, y, z, t, a, b])){:}
                              function tmp = code(x, y, z, t, a, b)
                              	tmp = y + x;
                              end
                              
                              NOTE: x, y, z, t, a, and b should be sorted in increasing order before calling this function.
                              code[x_, y_, z_, t_, a_, b_] := N[(y + x), $MachinePrecision]
                              
                              \begin{array}{l}
                              [x, y, z, t, a, b] = \mathsf{sort}([x, y, z, t, a, b])\\
                              \\
                              y + x
                              \end{array}
                              
                              Derivation
                              1. Initial program 99.8%

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

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

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

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

                                  \[\leadsto \color{blue}{\left(x + y\right) + \left(z + \left(\mathsf{neg}\left(z\right)\right) \cdot \log t\right)} \]
                                4. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto x + \color{blue}{y} \]
                              7. Step-by-step derivation
                                1. Applied rewrites41.7%

                                  \[\leadsto x + \color{blue}{y} \]
                                2. Final simplification41.7%

                                  \[\leadsto y + x \]
                                3. Add Preprocessing

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

                                \[\begin{array}{l} \\ \left(\left(x + y\right) + \frac{\left(1 - {\log t}^{2}\right) \cdot z}{1 + \log t}\right) + \left(a - 0.5\right) \cdot b \end{array} \]
                                (FPCore (x y z t a b)
                                 :precision binary64
                                 (+
                                  (+ (+ x y) (/ (* (- 1.0 (pow (log t) 2.0)) z) (+ 1.0 (log t))))
                                  (* (- a 0.5) b)))
                                double code(double x, double y, double z, double t, double a, double b) {
                                	return ((x + y) + (((1.0 - pow(log(t), 2.0)) * z) / (1.0 + log(t)))) + ((a - 0.5) * b);
                                }
                                
                                real(8) function code(x, y, z, t, a, b)
                                    real(8), intent (in) :: x
                                    real(8), intent (in) :: y
                                    real(8), intent (in) :: z
                                    real(8), intent (in) :: t
                                    real(8), intent (in) :: a
                                    real(8), intent (in) :: b
                                    code = ((x + y) + (((1.0d0 - (log(t) ** 2.0d0)) * z) / (1.0d0 + log(t)))) + ((a - 0.5d0) * b)
                                end function
                                
                                public static double code(double x, double y, double z, double t, double a, double b) {
                                	return ((x + y) + (((1.0 - Math.pow(Math.log(t), 2.0)) * z) / (1.0 + Math.log(t)))) + ((a - 0.5) * b);
                                }
                                
                                def code(x, y, z, t, a, b):
                                	return ((x + y) + (((1.0 - math.pow(math.log(t), 2.0)) * z) / (1.0 + math.log(t)))) + ((a - 0.5) * b)
                                
                                function code(x, y, z, t, a, b)
                                	return Float64(Float64(Float64(x + y) + Float64(Float64(Float64(1.0 - (log(t) ^ 2.0)) * z) / Float64(1.0 + log(t)))) + Float64(Float64(a - 0.5) * b))
                                end
                                
                                function tmp = code(x, y, z, t, a, b)
                                	tmp = ((x + y) + (((1.0 - (log(t) ^ 2.0)) * z) / (1.0 + log(t)))) + ((a - 0.5) * b);
                                end
                                
                                code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x + y), $MachinePrecision] + N[(N[(N[(1.0 - N[Power[N[Log[t], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision] / N[(1.0 + N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a - 0.5), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
                                
                                \begin{array}{l}
                                
                                \\
                                \left(\left(x + y\right) + \frac{\left(1 - {\log t}^{2}\right) \cdot z}{1 + \log t}\right) + \left(a - 0.5\right) \cdot b
                                \end{array}
                                

                                Reproduce

                                ?
                                herbie shell --seed 2024276 
                                (FPCore (x y z t a b)
                                  :name "Numeric.SpecFunctions:logBeta from math-functions-0.1.5.2, A"
                                  :precision binary64
                                
                                  :alt
                                  (! :herbie-platform default (+ (+ (+ x y) (/ (* (- 1 (pow (log t) 2)) z) (+ 1 (log t)))) (* (- a 1/2) b)))
                                
                                  (+ (- (+ (+ x y) z) (* z (log t))) (* (- a 0.5) b)))