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

Percentage Accurate: 99.8% → 99.8%
Time: 8.8s
Alternatives: 16
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 16 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 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.8% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \mathsf{fma}\left(a - 0.5, b, \mathsf{fma}\left(-z, \log t, z + \left(y + x\right)\right)\right) \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (fma (- a 0.5) b (fma (- z) (log t) (+ z (+ y x)))))
double code(double x, double y, double z, double t, double a, double b) {
	return fma((a - 0.5), b, fma(-z, log(t), (z + (y + x))));
}
function code(x, y, z, t, a, b)
	return fma(Float64(a - 0.5), b, fma(Float64(-z), log(t), Float64(z + Float64(y + x))))
end
code[x_, y_, z_, t_, a_, b_] := N[(N[(a - 0.5), $MachinePrecision] * b + N[((-z) * N[Log[t], $MachinePrecision] + N[(z + N[(y + x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\mathsf{fma}\left(a - 0.5, b, \mathsf{fma}\left(-z, \log t, z + \left(y + x\right)\right)\right)
\end{array}
Derivation
  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. Step-by-step derivation
    1. lift-+.f64N/A

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

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

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

      \[\leadsto \color{blue}{\mathsf{fma}\left(a - 0.5, b, \left(\left(x + y\right) + z\right) - z \cdot \log t\right)} \]
    5. lift--.f64N/A

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

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

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

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

      \[\leadsto \mathsf{fma}\left(a - \frac{1}{2}, b, \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(z\right), \log t, \left(x + y\right) + z\right)}\right) \]
    10. lower-neg.f6499.9

      \[\leadsto \mathsf{fma}\left(a - 0.5, b, \mathsf{fma}\left(\color{blue}{-z}, \log t, \left(x + y\right) + z\right)\right) \]
    11. lift-+.f64N/A

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

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

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

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

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

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

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

Alternative 2: 43.3% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(a - 0.5\right) \cdot b\\ t_2 := \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + t\_1\\ \mathbf{if}\;t\_2 \leq -\infty:\\ \;\;\;\;b \cdot a\\ \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{-69}:\\ \;\;\;\;\mathsf{fma}\left(-0.5, b, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (* (- a 0.5) b)) (t_2 (+ (- (+ (+ x y) z) (* z (log t))) t_1)))
   (if (<= t_2 (- INFINITY)) (* b a) (if (<= t_2 2e-69) (fma -0.5 b x) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (a - 0.5) * b;
	double t_2 = (((x + y) + z) - (z * log(t))) + t_1;
	double tmp;
	if (t_2 <= -((double) INFINITY)) {
		tmp = b * a;
	} else if (t_2 <= 2e-69) {
		tmp = fma(-0.5, b, x);
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(a - 0.5) * b)
	t_2 = Float64(Float64(Float64(Float64(x + y) + z) - Float64(z * log(t))) + t_1)
	tmp = 0.0
	if (t_2 <= Float64(-Inf))
		tmp = Float64(b * a);
	elseif (t_2 <= 2e-69)
		tmp = fma(-0.5, b, x);
	else
		tmp = t_1;
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(a - 0.5), $MachinePrecision] * b), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(x + y), $MachinePrecision] + z), $MachinePrecision] - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], N[(b * a), $MachinePrecision], If[LessEqual[t$95$2, 2e-69], N[(-0.5 * b + x), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \left(a - 0.5\right) \cdot b\\
t_2 := \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + t\_1\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;b \cdot a\\

\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{-69}:\\
\;\;\;\;\mathsf{fma}\left(-0.5, b, x\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (+.f64 (-.f64 (+.f64 (+.f64 x y) z) (*.f64 z (log.f64 t))) (*.f64 (-.f64 a #s(literal 1/2 binary64)) b)) < -inf.0

    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-*.f64100.0

        \[\leadsto \color{blue}{b \cdot a} \]
    5. Applied rewrites100.0%

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

    if -inf.0 < (+.f64 (-.f64 (+.f64 (+.f64 x y) z) (*.f64 z (log.f64 t))) (*.f64 (-.f64 a #s(literal 1/2 binary64)) b)) < 1.9999999999999999e-69

    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. fp-cancel-sub-sign-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. mul-1-negN/A

        \[\leadsto \left(x + \left(z + b \cdot \left(a - \frac{1}{2}\right)\right)\right) + \color{blue}{\left(-1 \cdot \log 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 \left(-1 \cdot \log t\right)} \]
      5. mul-1-negN/A

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

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

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

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

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

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

      \[\leadsto \color{blue}{\mathsf{fma}\left(1 - \log t, z, \mathsf{fma}\left(-0.5 + a, 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 rewrites41.2%

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

        \[\leadsto \mathsf{fma}\left(\frac{-1}{2}, b, x\right) \]
      3. Step-by-step derivation
        1. Applied rewrites32.7%

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

        if 1.9999999999999999e-69 < (+.f64 (-.f64 (+.f64 (+.f64 x y) z) (*.f64 z (log.f64 t))) (*.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 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. fp-cancel-sub-sign-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. mul-1-negN/A

            \[\leadsto \left(x + \left(z + b \cdot \left(a - \frac{1}{2}\right)\right)\right) + \color{blue}{\left(-1 \cdot \log 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 \left(-1 \cdot \log t\right)} \]
          5. mul-1-negN/A

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

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

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

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

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

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

          \[\leadsto \color{blue}{\mathsf{fma}\left(1 - \log t, z, \mathsf{fma}\left(-0.5 + a, 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 rewrites58.6%

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

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

              \[\leadsto \left(a - 0.5\right) \cdot b \]
          4. Recombined 3 regimes into one program.
          5. Add Preprocessing

          Alternative 3: 92.5% accurate, 0.9× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := 1 - \log t\\ t_2 := \left(a - 0.5\right) \cdot b\\ \mathbf{if}\;t\_2 \leq -4 \cdot 10^{+222} \lor \neg \left(t\_2 \leq 10^{+72}\right):\\ \;\;\;\;\mathsf{fma}\left(t\_1, z, \mathsf{fma}\left(-0.5 + a, b, x\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(t\_1, z, y\right) + \mathsf{fma}\left(-0.5, b, x\right)\\ \end{array} \end{array} \]
          (FPCore (x y z t a b)
           :precision binary64
           (let* ((t_1 (- 1.0 (log t))) (t_2 (* (- a 0.5) b)))
             (if (or (<= t_2 -4e+222) (not (<= t_2 1e+72)))
               (fma t_1 z (fma (+ -0.5 a) b x))
               (+ (fma t_1 z y) (fma -0.5 b x)))))
          double code(double x, double y, double z, double t, double a, double b) {
          	double t_1 = 1.0 - log(t);
          	double t_2 = (a - 0.5) * b;
          	double tmp;
          	if ((t_2 <= -4e+222) || !(t_2 <= 1e+72)) {
          		tmp = fma(t_1, z, fma((-0.5 + a), b, x));
          	} else {
          		tmp = fma(t_1, z, y) + fma(-0.5, b, x);
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a, b)
          	t_1 = Float64(1.0 - log(t))
          	t_2 = Float64(Float64(a - 0.5) * b)
          	tmp = 0.0
          	if ((t_2 <= -4e+222) || !(t_2 <= 1e+72))
          		tmp = fma(t_1, z, fma(Float64(-0.5 + a), b, x));
          	else
          		tmp = Float64(fma(t_1, z, y) + fma(-0.5, b, x));
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a - 0.5), $MachinePrecision] * b), $MachinePrecision]}, If[Or[LessEqual[t$95$2, -4e+222], N[Not[LessEqual[t$95$2, 1e+72]], $MachinePrecision]], N[(t$95$1 * z + N[(N[(-0.5 + a), $MachinePrecision] * b + x), $MachinePrecision]), $MachinePrecision], N[(N[(t$95$1 * z + y), $MachinePrecision] + N[(-0.5 * b + x), $MachinePrecision]), $MachinePrecision]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := 1 - \log t\\
          t_2 := \left(a - 0.5\right) \cdot b\\
          \mathbf{if}\;t\_2 \leq -4 \cdot 10^{+222} \lor \neg \left(t\_2 \leq 10^{+72}\right):\\
          \;\;\;\;\mathsf{fma}\left(t\_1, z, \mathsf{fma}\left(-0.5 + a, b, x\right)\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;\mathsf{fma}\left(t\_1, z, y\right) + \mathsf{fma}\left(-0.5, b, x\right)\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < -4.0000000000000002e222 or 9.99999999999999944e71 < (*.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 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. fp-cancel-sub-sign-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. mul-1-negN/A

                \[\leadsto \left(x + \left(z + b \cdot \left(a - \frac{1}{2}\right)\right)\right) + \color{blue}{\left(-1 \cdot \log 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 \left(-1 \cdot \log t\right)} \]
              5. mul-1-negN/A

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

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

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

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

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

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

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

            if -4.0000000000000002e222 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 9.99999999999999944e71

            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 a around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 4: 92.5% accurate, 0.9× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(a - 0.5\right) \cdot b\\ \mathbf{if}\;t\_1 \leq -4 \cdot 10^{+222} \lor \neg \left(t\_1 \leq 2 \cdot 10^{+168}\right):\\ \;\;\;\;\mathsf{fma}\left(a - 0.5, b, y + x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(1 - \log t, z, y\right) + \mathsf{fma}\left(-0.5, b, x\right)\\ \end{array} \end{array} \]
          (FPCore (x y z t a b)
           :precision binary64
           (let* ((t_1 (* (- a 0.5) b)))
             (if (or (<= t_1 -4e+222) (not (<= t_1 2e+168)))
               (fma (- a 0.5) b (+ y x))
               (+ (fma (- 1.0 (log t)) z y) (fma -0.5 b x)))))
          double code(double x, double y, double z, double t, double a, double b) {
          	double t_1 = (a - 0.5) * b;
          	double tmp;
          	if ((t_1 <= -4e+222) || !(t_1 <= 2e+168)) {
          		tmp = fma((a - 0.5), b, (y + x));
          	} else {
          		tmp = fma((1.0 - log(t)), z, y) + fma(-0.5, b, x);
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a, b)
          	t_1 = Float64(Float64(a - 0.5) * b)
          	tmp = 0.0
          	if ((t_1 <= -4e+222) || !(t_1 <= 2e+168))
          		tmp = fma(Float64(a - 0.5), b, Float64(y + x));
          	else
          		tmp = Float64(fma(Float64(1.0 - log(t)), z, y) + fma(-0.5, b, x));
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(a - 0.5), $MachinePrecision] * b), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -4e+222], N[Not[LessEqual[t$95$1, 2e+168]], $MachinePrecision]], N[(N[(a - 0.5), $MachinePrecision] * b + N[(y + x), $MachinePrecision]), $MachinePrecision], N[(N[(N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision] * z + y), $MachinePrecision] + N[(-0.5 * b + x), $MachinePrecision]), $MachinePrecision]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := \left(a - 0.5\right) \cdot b\\
          \mathbf{if}\;t\_1 \leq -4 \cdot 10^{+222} \lor \neg \left(t\_1 \leq 2 \cdot 10^{+168}\right):\\
          \;\;\;\;\mathsf{fma}\left(a - 0.5, b, y + x\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;\mathsf{fma}\left(1 - \log t, z, y\right) + \mathsf{fma}\left(-0.5, b, x\right)\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < -4.0000000000000002e222 or 1.9999999999999999e168 < (*.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. associate-+r+N/A

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

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

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

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

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

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

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

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

            if -4.0000000000000002e222 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 1.9999999999999999e168

            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 a around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 5: 92.4% accurate, 0.9× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(a - 0.5\right) \cdot b\\ t_2 := 1 - \log t\\ \mathbf{if}\;t\_1 \leq -4 \cdot 10^{+222}:\\ \;\;\;\;\mathsf{fma}\left(t\_2, z, \mathsf{fma}\left(-0.5 + a, b, x\right)\right)\\ \mathbf{elif}\;t\_1 \leq 10^{+72}:\\ \;\;\;\;\mathsf{fma}\left(t\_2, z, y\right) + \mathsf{fma}\left(-0.5, b, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a - 0.5, b, \mathsf{fma}\left(t\_2, z, x\right)\right)\\ \end{array} \end{array} \]
          (FPCore (x y z t a b)
           :precision binary64
           (let* ((t_1 (* (- a 0.5) b)) (t_2 (- 1.0 (log t))))
             (if (<= t_1 -4e+222)
               (fma t_2 z (fma (+ -0.5 a) b x))
               (if (<= t_1 1e+72)
                 (+ (fma t_2 z y) (fma -0.5 b x))
                 (fma (- a 0.5) b (fma t_2 z x))))))
          double code(double x, double y, double z, double t, double a, double b) {
          	double t_1 = (a - 0.5) * b;
          	double t_2 = 1.0 - log(t);
          	double tmp;
          	if (t_1 <= -4e+222) {
          		tmp = fma(t_2, z, fma((-0.5 + a), b, x));
          	} else if (t_1 <= 1e+72) {
          		tmp = fma(t_2, z, y) + fma(-0.5, b, x);
          	} else {
          		tmp = fma((a - 0.5), b, fma(t_2, z, x));
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a, b)
          	t_1 = Float64(Float64(a - 0.5) * b)
          	t_2 = Float64(1.0 - log(t))
          	tmp = 0.0
          	if (t_1 <= -4e+222)
          		tmp = fma(t_2, z, fma(Float64(-0.5 + a), b, x));
          	elseif (t_1 <= 1e+72)
          		tmp = Float64(fma(t_2, z, y) + fma(-0.5, b, x));
          	else
          		tmp = fma(Float64(a - 0.5), b, fma(t_2, z, x));
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(a - 0.5), $MachinePrecision] * b), $MachinePrecision]}, Block[{t$95$2 = N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -4e+222], N[(t$95$2 * z + N[(N[(-0.5 + a), $MachinePrecision] * b + x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+72], N[(N[(t$95$2 * z + y), $MachinePrecision] + N[(-0.5 * b + x), $MachinePrecision]), $MachinePrecision], N[(N[(a - 0.5), $MachinePrecision] * b + N[(t$95$2 * z + x), $MachinePrecision]), $MachinePrecision]]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := \left(a - 0.5\right) \cdot b\\
          t_2 := 1 - \log t\\
          \mathbf{if}\;t\_1 \leq -4 \cdot 10^{+222}:\\
          \;\;\;\;\mathsf{fma}\left(t\_2, z, \mathsf{fma}\left(-0.5 + a, b, x\right)\right)\\
          
          \mathbf{elif}\;t\_1 \leq 10^{+72}:\\
          \;\;\;\;\mathsf{fma}\left(t\_2, z, y\right) + \mathsf{fma}\left(-0.5, b, x\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;\mathsf{fma}\left(a - 0.5, b, \mathsf{fma}\left(t\_2, z, x\right)\right)\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < -4.0000000000000002e222

            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 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. fp-cancel-sub-sign-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. mul-1-negN/A

                \[\leadsto \left(x + \left(z + b \cdot \left(a - \frac{1}{2}\right)\right)\right) + \color{blue}{\left(-1 \cdot \log 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 \left(-1 \cdot \log t\right)} \]
              5. mul-1-negN/A

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

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

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

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

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

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

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

            if -4.0000000000000002e222 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 9.99999999999999944e71

            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 a around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if 9.99999999999999944e71 < (*.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. Step-by-step derivation
              1. lift-+.f64N/A

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

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

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

                \[\leadsto \color{blue}{\mathsf{fma}\left(a - 0.5, b, \left(\left(x + y\right) + z\right) - z \cdot \log t\right)} \]
              5. lift--.f64N/A

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

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

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

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

                \[\leadsto \mathsf{fma}\left(a - \frac{1}{2}, b, \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(z\right), \log t, \left(x + y\right) + z\right)}\right) \]
              10. lower-neg.f64100.0

                \[\leadsto \mathsf{fma}\left(a - 0.5, b, \mathsf{fma}\left(\color{blue}{-z}, \log t, \left(x + y\right) + z\right)\right) \]
              11. lift-+.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 6: 86.9% accurate, 0.9× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(a - 0.5\right) \cdot b\\ \mathbf{if}\;t\_1 \leq -2 \cdot 10^{+215} \lor \neg \left(t\_1 \leq 2 \cdot 10^{+168}\right):\\ \;\;\;\;\mathsf{fma}\left(a - 0.5, b, y + x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(1 - \log t, z, x + y\right)\\ \end{array} \end{array} \]
          (FPCore (x y z t a b)
           :precision binary64
           (let* ((t_1 (* (- a 0.5) b)))
             (if (or (<= t_1 -2e+215) (not (<= t_1 2e+168)))
               (fma (- a 0.5) b (+ y x))
               (fma (- 1.0 (log t)) z (+ x y)))))
          double code(double x, double y, double z, double t, double a, double b) {
          	double t_1 = (a - 0.5) * b;
          	double tmp;
          	if ((t_1 <= -2e+215) || !(t_1 <= 2e+168)) {
          		tmp = fma((a - 0.5), b, (y + x));
          	} else {
          		tmp = fma((1.0 - log(t)), z, (x + y));
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a, b)
          	t_1 = Float64(Float64(a - 0.5) * b)
          	tmp = 0.0
          	if ((t_1 <= -2e+215) || !(t_1 <= 2e+168))
          		tmp = fma(Float64(a - 0.5), b, Float64(y + x));
          	else
          		tmp = fma(Float64(1.0 - log(t)), z, Float64(x + y));
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(a - 0.5), $MachinePrecision] * b), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -2e+215], N[Not[LessEqual[t$95$1, 2e+168]], $MachinePrecision]], N[(N[(a - 0.5), $MachinePrecision] * b + N[(y + x), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision] * z + N[(x + y), $MachinePrecision]), $MachinePrecision]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := \left(a - 0.5\right) \cdot b\\
          \mathbf{if}\;t\_1 \leq -2 \cdot 10^{+215} \lor \neg \left(t\_1 \leq 2 \cdot 10^{+168}\right):\\
          \;\;\;\;\mathsf{fma}\left(a - 0.5, b, y + x\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;\mathsf{fma}\left(1 - \log t, z, x + y\right)\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < -1.99999999999999981e215 or 1.9999999999999999e168 < (*.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. associate-+r+N/A

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

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

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

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

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

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

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

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

            if -1.99999999999999981e215 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 1.9999999999999999e168

            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. fp-cancel-sub-sign-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. mul-1-negN/A

                \[\leadsto \left(x + \left(z + b \cdot \left(a - \frac{1}{2}\right)\right)\right) + \color{blue}{\left(-1 \cdot \log 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 \left(-1 \cdot \log t\right)} \]
              5. mul-1-negN/A

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

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

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

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

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

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

              \[\leadsto \color{blue}{\mathsf{fma}\left(1 - \log t, z, \mathsf{fma}\left(-0.5 + a, 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 rewrites35.2%

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

                \[\leadsto \color{blue}{\left(x + \left(y + z\right)\right) - z \cdot \log t} \]
              3. 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. distribute-lft-neg-inN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            Alternative 7: 87.6% accurate, 1.0× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -9 \cdot 10^{+49} \lor \neg \left(z \leq 5.6 \cdot 10^{+144}\right):\\ \;\;\;\;\mathsf{fma}\left(a - 0.5, b, z - \log t \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a - 0.5, b, y + x\right)\\ \end{array} \end{array} \]
            (FPCore (x y z t a b)
             :precision binary64
             (if (or (<= z -9e+49) (not (<= z 5.6e+144)))
               (fma (- a 0.5) b (- z (* (log t) z)))
               (fma (- a 0.5) b (+ y x))))
            double code(double x, double y, double z, double t, double a, double b) {
            	double tmp;
            	if ((z <= -9e+49) || !(z <= 5.6e+144)) {
            		tmp = fma((a - 0.5), b, (z - (log(t) * z)));
            	} else {
            		tmp = fma((a - 0.5), b, (y + x));
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a, b)
            	tmp = 0.0
            	if ((z <= -9e+49) || !(z <= 5.6e+144))
            		tmp = fma(Float64(a - 0.5), b, Float64(z - Float64(log(t) * z)));
            	else
            		tmp = fma(Float64(a - 0.5), b, Float64(y + x));
            	end
            	return tmp
            end
            
            code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -9e+49], N[Not[LessEqual[z, 5.6e+144]], $MachinePrecision]], N[(N[(a - 0.5), $MachinePrecision] * b + N[(z - N[(N[Log[t], $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a - 0.5), $MachinePrecision] * b + N[(y + x), $MachinePrecision]), $MachinePrecision]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;z \leq -9 \cdot 10^{+49} \lor \neg \left(z \leq 5.6 \cdot 10^{+144}\right):\\
            \;\;\;\;\mathsf{fma}\left(a - 0.5, b, z - \log t \cdot z\right)\\
            
            \mathbf{else}:\\
            \;\;\;\;\mathsf{fma}\left(a - 0.5, b, y + x\right)\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if z < -8.99999999999999965e49 or 5.60000000000000013e144 < 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. Step-by-step derivation
                1. lift-+.f64N/A

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

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

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

                  \[\leadsto \color{blue}{\mathsf{fma}\left(a - 0.5, b, \left(\left(x + y\right) + z\right) - z \cdot \log t\right)} \]
                5. lift--.f64N/A

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

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

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

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

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

                  \[\leadsto \mathsf{fma}\left(a - 0.5, b, \mathsf{fma}\left(\color{blue}{-z}, \log t, \left(x + y\right) + z\right)\right) \]
                11. lift-+.f64N/A

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

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(a - \frac{1}{2}, b, \color{blue}{z \cdot \left(1 + -1 \cdot \log t\right)}\right) \]
              6. Step-by-step derivation
                1. distribute-rgt-inN/A

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

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

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

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

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

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

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

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

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

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

              if -8.99999999999999965e49 < z < 5.60000000000000013e144

              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 z around 0

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

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

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

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

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

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

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

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

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

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

            Alternative 8: 81.9% accurate, 1.0× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.3 \cdot 10^{+50} \lor \neg \left(z \leq 5.5 \cdot 10^{+149}\right):\\ \;\;\;\;\mathsf{fma}\left(1 - \log t, z, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a - 0.5, b, y + x\right)\\ \end{array} \end{array} \]
            (FPCore (x y z t a b)
             :precision binary64
             (if (or (<= z -1.3e+50) (not (<= z 5.5e+149)))
               (fma (- 1.0 (log t)) z x)
               (fma (- a 0.5) b (+ y x))))
            double code(double x, double y, double z, double t, double a, double b) {
            	double tmp;
            	if ((z <= -1.3e+50) || !(z <= 5.5e+149)) {
            		tmp = fma((1.0 - log(t)), z, x);
            	} else {
            		tmp = fma((a - 0.5), b, (y + x));
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a, b)
            	tmp = 0.0
            	if ((z <= -1.3e+50) || !(z <= 5.5e+149))
            		tmp = fma(Float64(1.0 - log(t)), z, x);
            	else
            		tmp = fma(Float64(a - 0.5), b, Float64(y + x));
            	end
            	return tmp
            end
            
            code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.3e+50], N[Not[LessEqual[z, 5.5e+149]], $MachinePrecision]], N[(N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision] * z + x), $MachinePrecision], N[(N[(a - 0.5), $MachinePrecision] * b + N[(y + x), $MachinePrecision]), $MachinePrecision]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;z \leq -1.3 \cdot 10^{+50} \lor \neg \left(z \leq 5.5 \cdot 10^{+149}\right):\\
            \;\;\;\;\mathsf{fma}\left(1 - \log t, z, x\right)\\
            
            \mathbf{else}:\\
            \;\;\;\;\mathsf{fma}\left(a - 0.5, b, y + x\right)\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if z < -1.3000000000000001e50 or 5.49999999999999999e149 < 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 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. fp-cancel-sub-sign-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. mul-1-negN/A

                  \[\leadsto \left(x + \left(z + b \cdot \left(a - \frac{1}{2}\right)\right)\right) + \color{blue}{\left(-1 \cdot \log 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 \left(-1 \cdot \log t\right)} \]
                5. mul-1-negN/A

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

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

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

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

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

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

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

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

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

                if -1.3000000000000001e50 < z < 5.49999999999999999e149

                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 z around 0

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

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

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

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

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

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

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

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

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

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

              Alternative 9: 80.9% accurate, 1.0× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -9.2 \cdot 10^{+110} \lor \neg \left(z \leq 6 \cdot 10^{+150}\right):\\ \;\;\;\;z - \log t \cdot z\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a - 0.5, b, y + x\right)\\ \end{array} \end{array} \]
              (FPCore (x y z t a b)
               :precision binary64
               (if (or (<= z -9.2e+110) (not (<= z 6e+150)))
                 (- z (* (log t) z))
                 (fma (- a 0.5) b (+ y x))))
              double code(double x, double y, double z, double t, double a, double b) {
              	double tmp;
              	if ((z <= -9.2e+110) || !(z <= 6e+150)) {
              		tmp = z - (log(t) * z);
              	} else {
              		tmp = fma((a - 0.5), b, (y + x));
              	}
              	return tmp;
              }
              
              function code(x, y, z, t, a, b)
              	tmp = 0.0
              	if ((z <= -9.2e+110) || !(z <= 6e+150))
              		tmp = Float64(z - Float64(log(t) * z));
              	else
              		tmp = fma(Float64(a - 0.5), b, Float64(y + x));
              	end
              	return tmp
              end
              
              code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -9.2e+110], N[Not[LessEqual[z, 6e+150]], $MachinePrecision]], N[(z - N[(N[Log[t], $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], N[(N[(a - 0.5), $MachinePrecision] * b + N[(y + x), $MachinePrecision]), $MachinePrecision]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              \mathbf{if}\;z \leq -9.2 \cdot 10^{+110} \lor \neg \left(z \leq 6 \cdot 10^{+150}\right):\\
              \;\;\;\;z - \log t \cdot z\\
              
              \mathbf{else}:\\
              \;\;\;\;\mathsf{fma}\left(a - 0.5, b, y + x\right)\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 2 regimes
              2. if z < -9.2000000000000001e110 or 6.00000000000000025e150 < 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. *-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.f6470.3

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

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

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

                    \[\leadsto z - \color{blue}{\log t \cdot z} \]

                  if -9.2000000000000001e110 < z < 6.00000000000000025e150

                  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 z around 0

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

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

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

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

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

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

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

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

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

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

                Alternative 10: 80.9% accurate, 1.0× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -9.2 \cdot 10^{+110}:\\ \;\;\;\;z - \log t \cdot z\\ \mathbf{elif}\;z \leq 6 \cdot 10^{+150}:\\ \;\;\;\;\mathsf{fma}\left(a - 0.5, b, y + x\right)\\ \mathbf{else}:\\ \;\;\;\;\left(1 - \log t\right) \cdot z\\ \end{array} \end{array} \]
                (FPCore (x y z t a b)
                 :precision binary64
                 (if (<= z -9.2e+110)
                   (- z (* (log t) z))
                   (if (<= z 6e+150) (fma (- a 0.5) b (+ y x)) (* (- 1.0 (log t)) z))))
                double code(double x, double y, double z, double t, double a, double b) {
                	double tmp;
                	if (z <= -9.2e+110) {
                		tmp = z - (log(t) * z);
                	} else if (z <= 6e+150) {
                		tmp = fma((a - 0.5), b, (y + x));
                	} else {
                		tmp = (1.0 - log(t)) * z;
                	}
                	return tmp;
                }
                
                function code(x, y, z, t, a, b)
                	tmp = 0.0
                	if (z <= -9.2e+110)
                		tmp = Float64(z - Float64(log(t) * z));
                	elseif (z <= 6e+150)
                		tmp = fma(Float64(a - 0.5), b, Float64(y + x));
                	else
                		tmp = Float64(Float64(1.0 - log(t)) * z);
                	end
                	return tmp
                end
                
                code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -9.2e+110], N[(z - N[(N[Log[t], $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6e+150], N[(N[(a - 0.5), $MachinePrecision] * b + N[(y + x), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                \mathbf{if}\;z \leq -9.2 \cdot 10^{+110}:\\
                \;\;\;\;z - \log t \cdot z\\
                
                \mathbf{elif}\;z \leq 6 \cdot 10^{+150}:\\
                \;\;\;\;\mathsf{fma}\left(a - 0.5, b, y + x\right)\\
                
                \mathbf{else}:\\
                \;\;\;\;\left(1 - \log t\right) \cdot z\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 3 regimes
                2. if z < -9.2000000000000001e110

                  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. *-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.5

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

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

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

                      \[\leadsto z - \color{blue}{\log t \cdot z} \]

                    if -9.2000000000000001e110 < z < 6.00000000000000025e150

                    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 z around 0

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

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

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

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

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

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

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

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

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

                    if 6.00000000000000025e150 < 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. *-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.6

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

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

                  Alternative 11: 71.2% accurate, 3.3× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(a - 0.5\right) \cdot b\\ \mathbf{if}\;t\_1 \leq -4 \cdot 10^{+222} \lor \neg \left(t\_1 \leq 5 \cdot 10^{+72}\right):\\ \;\;\;\;\mathsf{fma}\left(a - 0.5, b, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-0.5, b, x + y\right)\\ \end{array} \end{array} \]
                  (FPCore (x y z t a b)
                   :precision binary64
                   (let* ((t_1 (* (- a 0.5) b)))
                     (if (or (<= t_1 -4e+222) (not (<= t_1 5e+72)))
                       (fma (- a 0.5) b x)
                       (fma -0.5 b (+ x y)))))
                  double code(double x, double y, double z, double t, double a, double b) {
                  	double t_1 = (a - 0.5) * b;
                  	double tmp;
                  	if ((t_1 <= -4e+222) || !(t_1 <= 5e+72)) {
                  		tmp = fma((a - 0.5), b, x);
                  	} else {
                  		tmp = fma(-0.5, b, (x + y));
                  	}
                  	return tmp;
                  }
                  
                  function code(x, y, z, t, a, b)
                  	t_1 = Float64(Float64(a - 0.5) * b)
                  	tmp = 0.0
                  	if ((t_1 <= -4e+222) || !(t_1 <= 5e+72))
                  		tmp = fma(Float64(a - 0.5), b, x);
                  	else
                  		tmp = fma(-0.5, b, Float64(x + y));
                  	end
                  	return tmp
                  end
                  
                  code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(a - 0.5), $MachinePrecision] * b), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -4e+222], N[Not[LessEqual[t$95$1, 5e+72]], $MachinePrecision]], N[(N[(a - 0.5), $MachinePrecision] * b + x), $MachinePrecision], N[(-0.5 * b + N[(x + y), $MachinePrecision]), $MachinePrecision]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_1 := \left(a - 0.5\right) \cdot b\\
                  \mathbf{if}\;t\_1 \leq -4 \cdot 10^{+222} \lor \neg \left(t\_1 \leq 5 \cdot 10^{+72}\right):\\
                  \;\;\;\;\mathsf{fma}\left(a - 0.5, b, x\right)\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;\mathsf{fma}\left(-0.5, b, x + y\right)\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 2 regimes
                  2. if (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < -4.0000000000000002e222 or 4.99999999999999992e72 < (*.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 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. fp-cancel-sub-sign-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. mul-1-negN/A

                        \[\leadsto \left(x + \left(z + b \cdot \left(a - \frac{1}{2}\right)\right)\right) + \color{blue}{\left(-1 \cdot \log 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 \left(-1 \cdot \log t\right)} \]
                      5. mul-1-negN/A

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

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

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

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

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

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

                      \[\leadsto \color{blue}{\mathsf{fma}\left(1 - \log t, z, \mathsf{fma}\left(-0.5 + a, 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 rewrites83.6%

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

                      if -4.0000000000000002e222 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 4.99999999999999992e72

                      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. Step-by-step derivation
                        1. lift-+.f64N/A

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

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

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

                          \[\leadsto \color{blue}{\mathsf{fma}\left(a - 0.5, b, \left(\left(x + y\right) + z\right) - z \cdot \log t\right)} \]
                        5. lift--.f64N/A

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

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

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

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

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

                          \[\leadsto \mathsf{fma}\left(a - 0.5, b, \mathsf{fma}\left(\color{blue}{-z}, \log t, \left(x + y\right) + z\right)\right) \]
                        11. lift-+.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto \mathsf{fma}\left(a - \frac{1}{2}, b, \mathsf{fma}\left(\color{blue}{1 - \log t}, z, x\right)\right) \]
                        10. lower-log.f6470.6

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

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

                        \[\leadsto \mathsf{fma}\left(a - \frac{1}{2}, b, \color{blue}{x + y}\right) \]
                      9. Step-by-step derivation
                        1. lower-+.f6464.6

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

                        \[\leadsto \mathsf{fma}\left(a - 0.5, b, \color{blue}{x + y}\right) \]
                      11. Taylor expanded in a around 0

                        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{-1}{2}}, b, x + y\right) \]
                      12. Step-by-step derivation
                        1. Applied rewrites61.1%

                          \[\leadsto \mathsf{fma}\left(\color{blue}{-0.5}, b, x + y\right) \]
                      13. Recombined 2 regimes into one program.
                      14. Final simplification69.9%

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

                      Alternative 12: 38.8% accurate, 5.2× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a - 0.5 \leq -0.50000001 \lor \neg \left(a - 0.5 \leq -0.4\right):\\ \;\;\;\;b \cdot a\\ \mathbf{else}:\\ \;\;\;\;-0.5 \cdot b\\ \end{array} \end{array} \]
                      (FPCore (x y z t a b)
                       :precision binary64
                       (if (or (<= (- a 0.5) -0.50000001) (not (<= (- a 0.5) -0.4)))
                         (* b a)
                         (* -0.5 b)))
                      double code(double x, double y, double z, double t, double a, double b) {
                      	double tmp;
                      	if (((a - 0.5) <= -0.50000001) || !((a - 0.5) <= -0.4)) {
                      		tmp = b * a;
                      	} else {
                      		tmp = -0.5 * b;
                      	}
                      	return tmp;
                      }
                      
                      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) :: tmp
                          if (((a - 0.5d0) <= (-0.50000001d0)) .or. (.not. ((a - 0.5d0) <= (-0.4d0)))) then
                              tmp = b * a
                          else
                              tmp = (-0.5d0) * b
                          end if
                          code = tmp
                      end function
                      
                      public static double code(double x, double y, double z, double t, double a, double b) {
                      	double tmp;
                      	if (((a - 0.5) <= -0.50000001) || !((a - 0.5) <= -0.4)) {
                      		tmp = b * a;
                      	} else {
                      		tmp = -0.5 * b;
                      	}
                      	return tmp;
                      }
                      
                      def code(x, y, z, t, a, b):
                      	tmp = 0
                      	if ((a - 0.5) <= -0.50000001) or not ((a - 0.5) <= -0.4):
                      		tmp = b * a
                      	else:
                      		tmp = -0.5 * b
                      	return tmp
                      
                      function code(x, y, z, t, a, b)
                      	tmp = 0.0
                      	if ((Float64(a - 0.5) <= -0.50000001) || !(Float64(a - 0.5) <= -0.4))
                      		tmp = Float64(b * a);
                      	else
                      		tmp = Float64(-0.5 * b);
                      	end
                      	return tmp
                      end
                      
                      function tmp_2 = code(x, y, z, t, a, b)
                      	tmp = 0.0;
                      	if (((a - 0.5) <= -0.50000001) || ~(((a - 0.5) <= -0.4)))
                      		tmp = b * a;
                      	else
                      		tmp = -0.5 * b;
                      	end
                      	tmp_2 = tmp;
                      end
                      
                      code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[N[(a - 0.5), $MachinePrecision], -0.50000001], N[Not[LessEqual[N[(a - 0.5), $MachinePrecision], -0.4]], $MachinePrecision]], N[(b * a), $MachinePrecision], N[(-0.5 * b), $MachinePrecision]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      \mathbf{if}\;a - 0.5 \leq -0.50000001 \lor \neg \left(a - 0.5 \leq -0.4\right):\\
                      \;\;\;\;b \cdot a\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;-0.5 \cdot b\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 2 regimes
                      2. if (-.f64 a #s(literal 1/2 binary64)) < -0.50000001000000005 or -0.40000000000000002 < (-.f64 a #s(literal 1/2 binary64))

                        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 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-*.f6449.1

                            \[\leadsto \color{blue}{b \cdot a} \]
                        5. Applied rewrites49.1%

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

                        if -0.50000001000000005 < (-.f64 a #s(literal 1/2 binary64)) < -0.40000000000000002

                        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 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. fp-cancel-sub-sign-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. mul-1-negN/A

                            \[\leadsto \left(x + \left(z + b \cdot \left(a - \frac{1}{2}\right)\right)\right) + \color{blue}{\left(-1 \cdot \log 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 \left(-1 \cdot \log t\right)} \]
                          5. mul-1-negN/A

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

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

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

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

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

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

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

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

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

                            \[\leadsto \frac{-1}{2} \cdot b \]
                          3. Step-by-step derivation
                            1. Applied rewrites24.0%

                              \[\leadsto -0.5 \cdot b \]
                          4. Recombined 2 regimes into one program.
                          5. Final simplification37.3%

                            \[\leadsto \begin{array}{l} \mathbf{if}\;a - 0.5 \leq -0.50000001 \lor \neg \left(a - 0.5 \leq -0.4\right):\\ \;\;\;\;b \cdot a\\ \mathbf{else}:\\ \;\;\;\;-0.5 \cdot b\\ \end{array} \]
                          6. Add Preprocessing

                          Alternative 13: 50.6% accurate, 6.6× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -1.6 \cdot 10^{+21} \lor \neg \left(a \leq 1.95 \cdot 10^{+40}\right):\\ \;\;\;\;b \cdot a\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-0.5, b, x\right)\\ \end{array} \end{array} \]
                          (FPCore (x y z t a b)
                           :precision binary64
                           (if (or (<= a -1.6e+21) (not (<= a 1.95e+40))) (* b a) (fma -0.5 b x)))
                          double code(double x, double y, double z, double t, double a, double b) {
                          	double tmp;
                          	if ((a <= -1.6e+21) || !(a <= 1.95e+40)) {
                          		tmp = b * a;
                          	} else {
                          		tmp = fma(-0.5, b, x);
                          	}
                          	return tmp;
                          }
                          
                          function code(x, y, z, t, a, b)
                          	tmp = 0.0
                          	if ((a <= -1.6e+21) || !(a <= 1.95e+40))
                          		tmp = Float64(b * a);
                          	else
                          		tmp = fma(-0.5, b, x);
                          	end
                          	return tmp
                          end
                          
                          code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[a, -1.6e+21], N[Not[LessEqual[a, 1.95e+40]], $MachinePrecision]], N[(b * a), $MachinePrecision], N[(-0.5 * b + x), $MachinePrecision]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          \mathbf{if}\;a \leq -1.6 \cdot 10^{+21} \lor \neg \left(a \leq 1.95 \cdot 10^{+40}\right):\\
                          \;\;\;\;b \cdot a\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;\mathsf{fma}\left(-0.5, b, x\right)\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 2 regimes
                          2. if a < -1.6e21 or 1.95e40 < a

                            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 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-*.f6452.5

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

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

                            if -1.6e21 < a < 1.95e40

                            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 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. fp-cancel-sub-sign-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. mul-1-negN/A

                                \[\leadsto \left(x + \left(z + b \cdot \left(a - \frac{1}{2}\right)\right)\right) + \color{blue}{\left(-1 \cdot \log 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 \left(-1 \cdot \log t\right)} \]
                              5. mul-1-negN/A

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

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

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

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

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

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

                              \[\leadsto \color{blue}{\mathsf{fma}\left(1 - \log t, z, \mathsf{fma}\left(-0.5 + a, 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 rewrites43.9%

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

                                \[\leadsto \mathsf{fma}\left(\frac{-1}{2}, b, x\right) \]
                              3. Step-by-step derivation
                                1. Applied rewrites42.1%

                                  \[\leadsto \mathsf{fma}\left(-0.5, b, x\right) \]
                              4. Recombined 2 regimes into one program.
                              5. Final simplification47.1%

                                \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.6 \cdot 10^{+21} \lor \neg \left(a \leq 1.95 \cdot 10^{+40}\right):\\ \;\;\;\;b \cdot a\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-0.5, b, x\right)\\ \end{array} \]
                              6. Add Preprocessing

                              Alternative 14: 78.5% accurate, 9.7× speedup?

                              \[\begin{array}{l} \\ \mathsf{fma}\left(a - 0.5, b, y + x\right) \end{array} \]
                              (FPCore (x y z t a b) :precision binary64 (fma (- a 0.5) b (+ y x)))
                              double code(double x, double y, double z, double t, double a, double b) {
                              	return fma((a - 0.5), b, (y + x));
                              }
                              
                              function code(x, y, z, t, a, b)
                              	return fma(Float64(a - 0.5), b, Float64(y + x))
                              end
                              
                              code[x_, y_, z_, t_, a_, b_] := N[(N[(a - 0.5), $MachinePrecision] * b + N[(y + x), $MachinePrecision]), $MachinePrecision]
                              
                              \begin{array}{l}
                              
                              \\
                              \mathsf{fma}\left(a - 0.5, b, y + x\right)
                              \end{array}
                              
                              Derivation
                              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. associate-+r+N/A

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

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

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

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

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

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

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

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

                              Alternative 15: 58.9% accurate, 12.6× speedup?

                              \[\begin{array}{l} \\ \mathsf{fma}\left(a - 0.5, b, x\right) \end{array} \]
                              (FPCore (x y z t a b) :precision binary64 (fma (- a 0.5) b x))
                              double code(double x, double y, double z, double t, double a, double b) {
                              	return fma((a - 0.5), b, x);
                              }
                              
                              function code(x, y, z, t, a, b)
                              	return fma(Float64(a - 0.5), b, x)
                              end
                              
                              code[x_, y_, z_, t_, a_, b_] := N[(N[(a - 0.5), $MachinePrecision] * b + x), $MachinePrecision]
                              
                              \begin{array}{l}
                              
                              \\
                              \mathsf{fma}\left(a - 0.5, b, x\right)
                              \end{array}
                              
                              Derivation
                              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 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. fp-cancel-sub-sign-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. mul-1-negN/A

                                  \[\leadsto \left(x + \left(z + b \cdot \left(a - \frac{1}{2}\right)\right)\right) + \color{blue}{\left(-1 \cdot \log 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 \left(-1 \cdot \log t\right)} \]
                                5. mul-1-negN/A

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

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

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

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

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

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

                                \[\leadsto \color{blue}{\mathsf{fma}\left(1 - \log t, z, \mathsf{fma}\left(-0.5 + a, 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 rewrites54.5%

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

                                Alternative 16: 14.4% accurate, 21.0× speedup?

                                \[\begin{array}{l} \\ -0.5 \cdot b \end{array} \]
                                (FPCore (x y z t a b) :precision binary64 (* -0.5 b))
                                double code(double x, double y, double z, double t, double a, double b) {
                                	return -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 = (-0.5d0) * b
                                end function
                                
                                public static double code(double x, double y, double z, double t, double a, double b) {
                                	return -0.5 * b;
                                }
                                
                                def code(x, y, z, t, a, b):
                                	return -0.5 * b
                                
                                function code(x, y, z, t, a, b)
                                	return Float64(-0.5 * b)
                                end
                                
                                function tmp = code(x, y, z, t, a, b)
                                	tmp = -0.5 * b;
                                end
                                
                                code[x_, y_, z_, t_, a_, b_] := N[(-0.5 * b), $MachinePrecision]
                                
                                \begin{array}{l}
                                
                                \\
                                -0.5 \cdot b
                                \end{array}
                                
                                Derivation
                                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 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. fp-cancel-sub-sign-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. mul-1-negN/A

                                    \[\leadsto \left(x + \left(z + b \cdot \left(a - \frac{1}{2}\right)\right)\right) + \color{blue}{\left(-1 \cdot \log 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 \left(-1 \cdot \log t\right)} \]
                                  5. mul-1-negN/A

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \frac{-1}{2} \cdot b \]
                                  3. Step-by-step derivation
                                    1. Applied rewrites12.6%

                                      \[\leadsto -0.5 \cdot b \]
                                    2. 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 2024339 
                                    (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)))