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

Percentage Accurate: 99.8% → 99.8%
Time: 9.5s
Alternatives: 18
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 18 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} \\ \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}
Derivation
  1. Initial program 99.8%

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

Alternative 2: 91.4% 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^{+250}:\\ \;\;\;\;\mathsf{fma}\left(b, a - 0.5, y\right)\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+137}:\\ \;\;\;\;\mathsf{fma}\left(1 - \log t, z, y\right) + \mathsf{fma}\left(-0.5, b, 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
 (let* ((t_1 (* (- a 0.5) b)))
   (if (<= t_1 -2e+250)
     (fma b (- a 0.5) y)
     (if (<= t_1 5e+137)
       (+ (fma (- 1.0 (log t)) z y) (fma -0.5 b x))
       (fma (- a 0.5) b (+ y 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 <= -2e+250) {
		tmp = fma(b, (a - 0.5), y);
	} else if (t_1 <= 5e+137) {
		tmp = fma((1.0 - log(t)), z, y) + fma(-0.5, b, x);
	} else {
		tmp = fma((a - 0.5), b, (y + 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 <= -2e+250)
		tmp = fma(b, Float64(a - 0.5), y);
	elseif (t_1 <= 5e+137)
		tmp = Float64(fma(Float64(1.0 - log(t)), z, y) + fma(-0.5, b, x));
	else
		tmp = fma(Float64(a - 0.5), b, Float64(y + 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[LessEqual[t$95$1, -2e+250], N[(b * N[(a - 0.5), $MachinePrecision] + y), $MachinePrecision], If[LessEqual[t$95$1, 5e+137], N[(N[(N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision] * z + y), $MachinePrecision] + N[(-0.5 * b + x), $MachinePrecision]), $MachinePrecision], N[(N[(a - 0.5), $MachinePrecision] * b + N[(y + x), $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^{+250}:\\
\;\;\;\;\mathsf{fma}\left(b, a - 0.5, y\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < -1.9999999999999998e250

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

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

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

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

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

      if -1.9999999999999998e250 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 5.0000000000000002e137

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

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

      if 5.0000000000000002e137 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b)

      1. Initial program 99.7%

        \[\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b \]
      2. Add Preprocessing
      3. Taylor expanded in 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-+.f6490.7

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

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

    Alternative 3: 85.8% accurate, 1.0× speedup?

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

      1. Initial program 99.7%

        \[\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b \]
      2. Add Preprocessing
      3. Taylor expanded in 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 rewrites91.2%

        \[\leadsto \color{blue}{\mathsf{fma}\left(1 - \log t, z, y\right) + \mathsf{fma}\left(-0.5, b, x\right)} \]
      6. Taylor expanded in y 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 rewrites79.3%

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

        if -3.00000000000000015e109 < z < 5.79999999999999977e84

        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-+.f6493.4

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

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

        if 5.79999999999999977e84 < z

        1. Initial program 99.7%

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

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

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

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

            \[\leadsto z \cdot \log \left(\frac{1}{t}\right) + \left(z + \color{blue}{\left(y + 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(y + b \cdot \left(a - \frac{1}{2}\right)\right)} \]
        5. Applied rewrites91.0%

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

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

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

        Alternative 4: 57.9% accurate, 1.0× speedup?

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

          1. Initial program 99.8%

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

            \[\leadsto \color{blue}{x + \left(y + b \cdot \left(a - \frac{1}{2}\right)\right)} \]
          4. Step-by-step derivation
            1. 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-+.f6471.1

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

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

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

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

            if -5.00000000000000044e-112 < (-.f64 (+.f64 (+.f64 x y) z) (*.f64 z (log.f64 t)))

            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-+.f6475.8

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

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

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

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

            Alternative 5: 86.7% accurate, 1.0× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -3 \cdot 10^{+109} \lor \neg \left(z \leq 9.8 \cdot 10^{+179}\right):\\ \;\;\;\;\mathsf{fma}\left(1 - \log t, z, \mathsf{fma}\left(-0.5, b, x\right)\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 -3e+109) (not (<= z 9.8e+179)))
               (fma (- 1.0 (log t)) z (fma -0.5 b 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 <= -3e+109) || !(z <= 9.8e+179)) {
            		tmp = fma((1.0 - log(t)), z, fma(-0.5, b, 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 <= -3e+109) || !(z <= 9.8e+179))
            		tmp = fma(Float64(1.0 - log(t)), z, fma(-0.5, b, 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, -3e+109], N[Not[LessEqual[z, 9.8e+179]], $MachinePrecision]], N[(N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision] * z + N[(-0.5 * b + x), $MachinePrecision]), $MachinePrecision], N[(N[(a - 0.5), $MachinePrecision] * b + N[(y + x), $MachinePrecision]), $MachinePrecision]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;z \leq -3 \cdot 10^{+109} \lor \neg \left(z \leq 9.8 \cdot 10^{+179}\right):\\
            \;\;\;\;\mathsf{fma}\left(1 - \log t, z, \mathsf{fma}\left(-0.5, b, x\right)\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 < -3.00000000000000015e109 or 9.7999999999999997e179 < z

              1. Initial program 99.7%

                \[\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b \]
              2. Add Preprocessing
              3. Taylor expanded in 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 rewrites92.5%

                \[\leadsto \color{blue}{\mathsf{fma}\left(1 - \log t, z, y\right) + \mathsf{fma}\left(-0.5, b, x\right)} \]
              6. Taylor expanded in y 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 rewrites82.3%

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

                if -3.00000000000000015e109 < z < 9.7999999999999997e179

                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-+.f6490.9

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

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

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

              Alternative 6: 85.8% accurate, 1.0× speedup?

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

                1. Initial program 99.7%

                  \[\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b \]
                2. Add Preprocessing
                3. Taylor expanded in 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 rewrites91.2%

                  \[\leadsto \color{blue}{\mathsf{fma}\left(1 - \log t, z, y\right) + \mathsf{fma}\left(-0.5, b, x\right)} \]
                6. Taylor expanded in y 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 rewrites79.3%

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

                  if -3.00000000000000015e109 < z < 5.79999999999999977e84

                  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-+.f6493.4

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

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

                  if 5.79999999999999977e84 < z

                  1. Initial program 99.7%

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

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

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

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

                      \[\leadsto z \cdot \log \left(\frac{1}{t}\right) + \left(z + \color{blue}{\left(y + 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(y + b \cdot \left(a - \frac{1}{2}\right)\right)} \]
                  5. Applied rewrites91.0%

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

                    \[\leadsto \mathsf{fma}\left(1 - \log t, z, y + \frac{-1}{2} \cdot b\right) \]
                  7. Step-by-step derivation
                    1. Applied rewrites78.7%

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

                  Alternative 7: 83.7% accurate, 1.0× speedup?

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

                    1. Initial program 99.8%

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

                      \[\leadsto \color{blue}{x + \left(y + b \cdot \left(a - \frac{1}{2}\right)\right)} \]
                    4. Step-by-step derivation
                      1. 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-+.f6488.6

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

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

                    if -1.9999999999999999e61 < (+.f64 x y)

                    1. Initial program 99.8%

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

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

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

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

                        \[\leadsto z \cdot \log \left(\frac{1}{t}\right) + \left(z + \color{blue}{\left(y + 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(y + b \cdot \left(a - \frac{1}{2}\right)\right)} \]
                    5. Applied rewrites83.7%

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

                  Alternative 8: 85.9% accurate, 1.0× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.25 \cdot 10^{+130} \lor \neg \left(z \leq 10^{+180}\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.25e+130) (not (<= z 1e+180)))
                     (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.25e+130) || !(z <= 1e+180)) {
                  		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.25e+130) || !(z <= 1e+180))
                  		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.25e+130], N[Not[LessEqual[z, 1e+180]], $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.25 \cdot 10^{+130} \lor \neg \left(z \leq 10^{+180}\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.2499999999999999e130 or 1e180 < z

                    1. Initial program 99.7%

                      \[\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b \]
                    2. Add Preprocessing
                    3. Taylor expanded in 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 rewrites94.1%

                      \[\leadsto \color{blue}{\mathsf{fma}\left(1 - \log t, z, y\right) + \mathsf{fma}\left(-0.5, b, x\right)} \]
                    6. Taylor expanded in y 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 rewrites84.4%

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

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

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

                        if -1.2499999999999999e130 < z < 1e180

                        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-+.f6489.7

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

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

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

                      Alternative 9: 85.0% accurate, 1.0× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.02 \cdot 10^{+108} \lor \neg \left(z \leq 1.1 \cdot 10^{+180}\right):\\ \;\;\;\;\mathsf{fma}\left(1 - \log t, z, y\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.02e+108) (not (<= z 1.1e+180)))
                         (fma (- 1.0 (log t)) z y)
                         (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.02e+108) || !(z <= 1.1e+180)) {
                      		tmp = fma((1.0 - log(t)), z, y);
                      	} 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.02e+108) || !(z <= 1.1e+180))
                      		tmp = fma(Float64(1.0 - log(t)), z, y);
                      	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.02e+108], N[Not[LessEqual[z, 1.1e+180]], $MachinePrecision]], N[(N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision] * z + y), $MachinePrecision], N[(N[(a - 0.5), $MachinePrecision] * b + N[(y + x), $MachinePrecision]), $MachinePrecision]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      \mathbf{if}\;z \leq -1.02 \cdot 10^{+108} \lor \neg \left(z \leq 1.1 \cdot 10^{+180}\right):\\
                      \;\;\;\;\mathsf{fma}\left(1 - \log t, z, y\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.02e108 or 1.1e180 < z

                        1. Initial program 99.7%

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

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

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

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

                            \[\leadsto z \cdot \log \left(\frac{1}{t}\right) + \left(z + \color{blue}{\left(y + 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(y + b \cdot \left(a - \frac{1}{2}\right)\right)} \]
                        5. Applied rewrites91.6%

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

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

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

                          if -1.02e108 < z < 1.1e180

                          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-+.f6490.9

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

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

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

                        Alternative 10: 84.5% accurate, 1.0× speedup?

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

                          1. Initial program 99.7%

                            \[\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b \]
                          2. Add Preprocessing
                          3. Taylor expanded in 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 rewrites91.2%

                            \[\leadsto \color{blue}{\mathsf{fma}\left(1 - \log t, z, y\right) + \mathsf{fma}\left(-0.5, b, x\right)} \]
                          6. Taylor expanded in y 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 rewrites79.3%

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

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

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

                              if -3.00000000000000015e109 < z < 1e180

                              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-+.f6490.9

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

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

                              if 1e180 < 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 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.7%

                                \[\leadsto \color{blue}{\mathsf{fma}\left(1 - \log t, z, y\right) + \mathsf{fma}\left(-0.5, b, x\right)} \]
                              6. Taylor expanded in y 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 rewrites89.5%

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

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

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

                                Alternative 11: 83.7% accurate, 1.0× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.6 \cdot 10^{+133} \lor \neg \left(z \leq 1.8 \cdot 10^{+180}\right):\\ \;\;\;\;\left(1 - \log t\right) \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 -1.6e+133) (not (<= z 1.8e+180)))
                                   (* (- 1.0 (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 <= -1.6e+133) || !(z <= 1.8e+180)) {
                                		tmp = (1.0 - 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 <= -1.6e+133) || !(z <= 1.8e+180))
                                		tmp = Float64(Float64(1.0 - 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, -1.6e+133], N[Not[LessEqual[z, 1.8e+180]], $MachinePrecision]], N[(N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], N[(N[(a - 0.5), $MachinePrecision] * b + N[(y + x), $MachinePrecision]), $MachinePrecision]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                \mathbf{if}\;z \leq -1.6 \cdot 10^{+133} \lor \neg \left(z \leq 1.8 \cdot 10^{+180}\right):\\
                                \;\;\;\;\left(1 - \log t\right) \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 < -1.59999999999999999e133 or 1.8000000000000001e180 < z

                                  1. Initial program 99.7%

                                    \[\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b \]
                                  2. Add Preprocessing
                                  3. Taylor expanded in 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.f6465.0

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

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

                                  if -1.59999999999999999e133 < z < 1.8000000000000001e180

                                  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-+.f6489.7

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

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

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

                                Alternative 12: 58.6% accurate, 2.6× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(a - 0.5\right) \cdot b\\ \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+253}:\\ \;\;\;\;b \cdot a\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+178}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+295}:\\ \;\;\;\;\mathsf{fma}\left(-0.5, b, x\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot a\\ \end{array} \end{array} \]
                                (FPCore (x y z t a b)
                                 :precision binary64
                                 (let* ((t_1 (* (- a 0.5) b)))
                                   (if (<= t_1 -1e+253)
                                     (* b a)
                                     (if (<= t_1 5e+178)
                                       (+ x y)
                                       (if (<= t_1 5e+295) (fma -0.5 b x) (* b a))))))
                                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 <= -1e+253) {
                                		tmp = b * a;
                                	} else if (t_1 <= 5e+178) {
                                		tmp = x + y;
                                	} else if (t_1 <= 5e+295) {
                                		tmp = fma(-0.5, b, x);
                                	} else {
                                		tmp = b * a;
                                	}
                                	return tmp;
                                }
                                
                                function code(x, y, z, t, a, b)
                                	t_1 = Float64(Float64(a - 0.5) * b)
                                	tmp = 0.0
                                	if (t_1 <= -1e+253)
                                		tmp = Float64(b * a);
                                	elseif (t_1 <= 5e+178)
                                		tmp = Float64(x + y);
                                	elseif (t_1 <= 5e+295)
                                		tmp = fma(-0.5, b, x);
                                	else
                                		tmp = Float64(b * a);
                                	end
                                	return tmp
                                end
                                
                                code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(a - 0.5), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+253], N[(b * a), $MachinePrecision], If[LessEqual[t$95$1, 5e+178], N[(x + y), $MachinePrecision], If[LessEqual[t$95$1, 5e+295], N[(-0.5 * b + x), $MachinePrecision], N[(b * a), $MachinePrecision]]]]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                t_1 := \left(a - 0.5\right) \cdot b\\
                                \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+253}:\\
                                \;\;\;\;b \cdot a\\
                                
                                \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+178}:\\
                                \;\;\;\;x + y\\
                                
                                \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+295}:\\
                                \;\;\;\;\mathsf{fma}\left(-0.5, b, x\right)\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;b \cdot a\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 3 regimes
                                2. if (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < -9.9999999999999994e252 or 4.99999999999999991e295 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b)

                                  1. Initial program 100.0%

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

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

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

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

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

                                  if -9.9999999999999994e252 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 4.9999999999999999e178

                                  1. Initial program 99.8%

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

                                    \[\leadsto \color{blue}{x + \left(y + b \cdot \left(a - \frac{1}{2}\right)\right)} \]
                                  4. Step-by-step derivation
                                    1. 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-+.f6465.0

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

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

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

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

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

                                        \[\leadsto x + \color{blue}{y} \]

                                      if 4.9999999999999999e178 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 4.99999999999999991e295

                                      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 rewrites79.2%

                                        \[\leadsto \color{blue}{\mathsf{fma}\left(1 - \log t, z, y\right) + \mathsf{fma}\left(-0.5, b, x\right)} \]
                                      6. Taylor expanded in y 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 rewrites61.8%

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

                                          \[\leadsto x + \frac{-1}{2} \cdot \color{blue}{b} \]
                                        3. Step-by-step derivation
                                          1. Applied rewrites46.9%

                                            \[\leadsto \mathsf{fma}\left(-0.5, b, x\right) \]
                                        4. Recombined 3 regimes into one program.
                                        5. Add Preprocessing

                                        Alternative 13: 57.9% accurate, 2.6× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(a - 0.5\right) \cdot b\\ \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+253}:\\ \;\;\;\;b \cdot a\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+178}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+294}:\\ \;\;\;\;-0.5 \cdot b\\ \mathbf{else}:\\ \;\;\;\;b \cdot a\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a b)
                                         :precision binary64
                                         (let* ((t_1 (* (- a 0.5) b)))
                                           (if (<= t_1 -1e+253)
                                             (* b a)
                                             (if (<= t_1 5e+178) (+ x y) (if (<= t_1 2e+294) (* -0.5 b) (* b a))))))
                                        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 <= -1e+253) {
                                        		tmp = b * a;
                                        	} else if (t_1 <= 5e+178) {
                                        		tmp = x + y;
                                        	} else if (t_1 <= 2e+294) {
                                        		tmp = -0.5 * b;
                                        	} else {
                                        		tmp = b * a;
                                        	}
                                        	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) :: t_1
                                            real(8) :: tmp
                                            t_1 = (a - 0.5d0) * b
                                            if (t_1 <= (-1d+253)) then
                                                tmp = b * a
                                            else if (t_1 <= 5d+178) then
                                                tmp = x + y
                                            else if (t_1 <= 2d+294) then
                                                tmp = (-0.5d0) * b
                                            else
                                                tmp = b * a
                                            end if
                                            code = tmp
                                        end function
                                        
                                        public static 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 <= -1e+253) {
                                        		tmp = b * a;
                                        	} else if (t_1 <= 5e+178) {
                                        		tmp = x + y;
                                        	} else if (t_1 <= 2e+294) {
                                        		tmp = -0.5 * b;
                                        	} else {
                                        		tmp = b * a;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        def code(x, y, z, t, a, b):
                                        	t_1 = (a - 0.5) * b
                                        	tmp = 0
                                        	if t_1 <= -1e+253:
                                        		tmp = b * a
                                        	elif t_1 <= 5e+178:
                                        		tmp = x + y
                                        	elif t_1 <= 2e+294:
                                        		tmp = -0.5 * b
                                        	else:
                                        		tmp = b * a
                                        	return tmp
                                        
                                        function code(x, y, z, t, a, b)
                                        	t_1 = Float64(Float64(a - 0.5) * b)
                                        	tmp = 0.0
                                        	if (t_1 <= -1e+253)
                                        		tmp = Float64(b * a);
                                        	elseif (t_1 <= 5e+178)
                                        		tmp = Float64(x + y);
                                        	elseif (t_1 <= 2e+294)
                                        		tmp = Float64(-0.5 * b);
                                        	else
                                        		tmp = Float64(b * a);
                                        	end
                                        	return tmp
                                        end
                                        
                                        function tmp_2 = code(x, y, z, t, a, b)
                                        	t_1 = (a - 0.5) * b;
                                        	tmp = 0.0;
                                        	if (t_1 <= -1e+253)
                                        		tmp = b * a;
                                        	elseif (t_1 <= 5e+178)
                                        		tmp = x + y;
                                        	elseif (t_1 <= 2e+294)
                                        		tmp = -0.5 * b;
                                        	else
                                        		tmp = b * a;
                                        	end
                                        	tmp_2 = tmp;
                                        end
                                        
                                        code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(a - 0.5), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+253], N[(b * a), $MachinePrecision], If[LessEqual[t$95$1, 5e+178], N[(x + y), $MachinePrecision], If[LessEqual[t$95$1, 2e+294], N[(-0.5 * b), $MachinePrecision], N[(b * a), $MachinePrecision]]]]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        t_1 := \left(a - 0.5\right) \cdot b\\
                                        \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+253}:\\
                                        \;\;\;\;b \cdot a\\
                                        
                                        \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+178}:\\
                                        \;\;\;\;x + y\\
                                        
                                        \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+294}:\\
                                        \;\;\;\;-0.5 \cdot b\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;b \cdot a\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 3 regimes
                                        2. if (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < -9.9999999999999994e252 or 2.00000000000000013e294 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b)

                                          1. Initial program 100.0%

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

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

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

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

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

                                          if -9.9999999999999994e252 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 4.9999999999999999e178

                                          1. Initial program 99.8%

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

                                            \[\leadsto \color{blue}{x + \left(y + b \cdot \left(a - \frac{1}{2}\right)\right)} \]
                                          4. Step-by-step derivation
                                            1. 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-+.f6465.0

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

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

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

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

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

                                                \[\leadsto x + \color{blue}{y} \]

                                              if 4.9999999999999999e178 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 2.00000000000000013e294

                                              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 rewrites78.4%

                                                \[\leadsto \color{blue}{\mathsf{fma}\left(1 - \log t, z, y\right) + \mathsf{fma}\left(-0.5, b, x\right)} \]
                                              6. Taylor expanded in y 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 rewrites64.1%

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

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

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

                                                Alternative 14: 64.4% accurate, 3.4× speedup?

                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(a - 0.5\right) \cdot b\\ \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+87} \lor \neg \left(t\_1 \leq 5 \cdot 10^{+137}\right):\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \end{array} \]
                                                (FPCore (x y z t a b)
                                                 :precision binary64
                                                 (let* ((t_1 (* (- a 0.5) b)))
                                                   (if (or (<= t_1 -5e+87) (not (<= t_1 5e+137))) t_1 (+ 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 <= -5e+87) || !(t_1 <= 5e+137)) {
                                                		tmp = t_1;
                                                	} else {
                                                		tmp = x + y;
                                                	}
                                                	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) :: t_1
                                                    real(8) :: tmp
                                                    t_1 = (a - 0.5d0) * b
                                                    if ((t_1 <= (-5d+87)) .or. (.not. (t_1 <= 5d+137))) then
                                                        tmp = t_1
                                                    else
                                                        tmp = x + y
                                                    end if
                                                    code = tmp
                                                end function
                                                
                                                public static 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 <= -5e+87) || !(t_1 <= 5e+137)) {
                                                		tmp = t_1;
                                                	} else {
                                                		tmp = x + y;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                def code(x, y, z, t, a, b):
                                                	t_1 = (a - 0.5) * b
                                                	tmp = 0
                                                	if (t_1 <= -5e+87) or not (t_1 <= 5e+137):
                                                		tmp = t_1
                                                	else:
                                                		tmp = 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 <= -5e+87) || !(t_1 <= 5e+137))
                                                		tmp = t_1;
                                                	else
                                                		tmp = Float64(x + y);
                                                	end
                                                	return tmp
                                                end
                                                
                                                function tmp_2 = code(x, y, z, t, a, b)
                                                	t_1 = (a - 0.5) * b;
                                                	tmp = 0.0;
                                                	if ((t_1 <= -5e+87) || ~((t_1 <= 5e+137)))
                                                		tmp = t_1;
                                                	else
                                                		tmp = x + y;
                                                	end
                                                	tmp_2 = 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, -5e+87], N[Not[LessEqual[t$95$1, 5e+137]], $MachinePrecision]], t$95$1, N[(x + y), $MachinePrecision]]]
                                                
                                                \begin{array}{l}
                                                
                                                \\
                                                \begin{array}{l}
                                                t_1 := \left(a - 0.5\right) \cdot b\\
                                                \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+87} \lor \neg \left(t\_1 \leq 5 \cdot 10^{+137}\right):\\
                                                \;\;\;\;t\_1\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;x + y\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 2 regimes
                                                2. if (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < -4.9999999999999998e87 or 5.0000000000000002e137 < (*.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-+.f6486.9

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

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

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

                                                      \[\leadsto \mathsf{fma}\left(b, \color{blue}{a - 0.5}, 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 rewrites72.0%

                                                        \[\leadsto \left(a - 0.5\right) \cdot b \]

                                                      if -4.9999999999999998e87 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 5.0000000000000002e137

                                                      1. Initial program 99.8%

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

                                                        \[\leadsto \color{blue}{x + \left(y + b \cdot \left(a - \frac{1}{2}\right)\right)} \]
                                                      4. Step-by-step derivation
                                                        1. 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-+.f6463.2

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

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

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

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

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

                                                            \[\leadsto x + \color{blue}{y} \]
                                                        4. Recombined 2 regimes into one program.
                                                        5. Final simplification61.5%

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

                                                        Alternative 15: 57.9% accurate, 6.6× speedup?

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

                                                          1. Initial program 99.8%

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

                                                            \[\leadsto \color{blue}{x + \left(y + b \cdot \left(a - \frac{1}{2}\right)\right)} \]
                                                          4. Step-by-step derivation
                                                            1. 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-+.f6469.0

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

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

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

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

                                                            if 2e52 < (+.f64 x y)

                                                            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-+.f6482.7

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

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

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

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

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

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

                                                              Alternative 16: 46.4% accurate, 7.0× speedup?

                                                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -1.6 \cdot 10^{+182} \lor \neg \left(b \leq 6.2 \cdot 10^{+224}\right):\\ \;\;\;\;-0.5 \cdot b\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \end{array} \]
                                                              (FPCore (x y z t a b)
                                                               :precision binary64
                                                               (if (or (<= b -1.6e+182) (not (<= b 6.2e+224))) (* -0.5 b) (+ x y)))
                                                              double code(double x, double y, double z, double t, double a, double b) {
                                                              	double tmp;
                                                              	if ((b <= -1.6e+182) || !(b <= 6.2e+224)) {
                                                              		tmp = -0.5 * b;
                                                              	} else {
                                                              		tmp = x + y;
                                                              	}
                                                              	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 ((b <= (-1.6d+182)) .or. (.not. (b <= 6.2d+224))) then
                                                                      tmp = (-0.5d0) * b
                                                                  else
                                                                      tmp = x + y
                                                                  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 ((b <= -1.6e+182) || !(b <= 6.2e+224)) {
                                                              		tmp = -0.5 * b;
                                                              	} else {
                                                              		tmp = x + y;
                                                              	}
                                                              	return tmp;
                                                              }
                                                              
                                                              def code(x, y, z, t, a, b):
                                                              	tmp = 0
                                                              	if (b <= -1.6e+182) or not (b <= 6.2e+224):
                                                              		tmp = -0.5 * b
                                                              	else:
                                                              		tmp = x + y
                                                              	return tmp
                                                              
                                                              function code(x, y, z, t, a, b)
                                                              	tmp = 0.0
                                                              	if ((b <= -1.6e+182) || !(b <= 6.2e+224))
                                                              		tmp = Float64(-0.5 * b);
                                                              	else
                                                              		tmp = Float64(x + y);
                                                              	end
                                                              	return tmp
                                                              end
                                                              
                                                              function tmp_2 = code(x, y, z, t, a, b)
                                                              	tmp = 0.0;
                                                              	if ((b <= -1.6e+182) || ~((b <= 6.2e+224)))
                                                              		tmp = -0.5 * b;
                                                              	else
                                                              		tmp = x + y;
                                                              	end
                                                              	tmp_2 = tmp;
                                                              end
                                                              
                                                              code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -1.6e+182], N[Not[LessEqual[b, 6.2e+224]], $MachinePrecision]], N[(-0.5 * b), $MachinePrecision], N[(x + y), $MachinePrecision]]
                                                              
                                                              \begin{array}{l}
                                                              
                                                              \\
                                                              \begin{array}{l}
                                                              \mathbf{if}\;b \leq -1.6 \cdot 10^{+182} \lor \neg \left(b \leq 6.2 \cdot 10^{+224}\right):\\
                                                              \;\;\;\;-0.5 \cdot b\\
                                                              
                                                              \mathbf{else}:\\
                                                              \;\;\;\;x + y\\
                                                              
                                                              
                                                              \end{array}
                                                              \end{array}
                                                              
                                                              Derivation
                                                              1. Split input into 2 regimes
                                                              2. if b < -1.5999999999999999e182 or 6.1999999999999999e224 < 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 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 rewrites53.9%

                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(1 - \log t, z, y\right) + \mathsf{fma}\left(-0.5, b, x\right)} \]
                                                                6. Taylor expanded in y 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 rewrites52.4%

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

                                                                    \[\leadsto \frac{-1}{2} \cdot \color{blue}{b} \]
                                                                  3. Step-by-step derivation
                                                                    1. Applied rewrites43.4%

                                                                      \[\leadsto -0.5 \cdot \color{blue}{b} \]

                                                                    if -1.5999999999999999e182 < b < 6.1999999999999999e224

                                                                    1. Initial program 99.8%

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

                                                                      \[\leadsto \color{blue}{x + \left(y + b \cdot \left(a - \frac{1}{2}\right)\right)} \]
                                                                    4. Step-by-step derivation
                                                                      1. 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-+.f6468.8

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

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

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

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

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

                                                                          \[\leadsto x + \color{blue}{y} \]
                                                                      4. Recombined 2 regimes into one program.
                                                                      5. Final simplification45.4%

                                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.6 \cdot 10^{+182} \lor \neg \left(b \leq 6.2 \cdot 10^{+224}\right):\\ \;\;\;\;-0.5 \cdot b\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \]
                                                                      6. Add Preprocessing

                                                                      Alternative 17: 78.2% 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.8%

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

                                                                        \[\leadsto \color{blue}{x + \left(y + b \cdot \left(a - \frac{1}{2}\right)\right)} \]
                                                                      4. Step-by-step derivation
                                                                        1. 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-+.f6473.7

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

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

                                                                      Alternative 18: 41.7% accurate, 31.5× speedup?

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

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

                                                                        \[\leadsto \color{blue}{x + \left(y + b \cdot \left(a - \frac{1}{2}\right)\right)} \]
                                                                      4. Step-by-step derivation
                                                                        1. 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-+.f6473.7

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

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

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

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

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

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

                                                                          Developer Target 1: 99.4% 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 2024329 
                                                                          (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)))