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

Percentage Accurate: 99.8% → 99.8%
Time: 16.1s
Alternatives: 23
Speedup: N/A×

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 23 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(z + \left(\left(x + y\right) - z \cdot \log t\right)\right) + \left(a - 0.5\right) \cdot b \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (+ (+ z (- (+ x y) (* z (log t)))) (* (- a 0.5) b)))
double code(double x, double y, double z, double t, double a, double b) {
	return (z + ((x + y) - (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 = (z + ((x + y) - (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 (z + ((x + y) - (z * Math.log(t)))) + ((a - 0.5) * b);
}
def code(x, y, z, t, a, b):
	return (z + ((x + y) - (z * math.log(t)))) + ((a - 0.5) * b)
function code(x, y, z, t, a, b)
	return Float64(Float64(z + Float64(Float64(x + y) - Float64(z * log(t)))) + Float64(Float64(a - 0.5) * b))
end
function tmp = code(x, y, z, t, a, b)
	tmp = (z + ((x + y) - (z * log(t)))) + ((a - 0.5) * b);
end
code[x_, y_, z_, t_, a_, b_] := N[(N[(z + N[(N[(x + y), $MachinePrecision] - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a - 0.5), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

    \[\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b \]
  2. Add Preprocessing
  3. Step-by-step derivation
    1. +-commutativeN/A

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

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

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

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

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

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

      \[\leadsto \left(z + \left(\left(x + y\right) - z \cdot \color{blue}{\log t}\right)\right) + \left(a - 0.5\right) \cdot b \]
  4. Applied egg-rr99.9%

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

Alternative 2: 45.5% accurate, 0.3× speedup?

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

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

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

\mathbf{elif}\;t\_1 \leq 10^{+306}:\\
\;\;\;\;\mathsf{fma}\left(b, -0.5, y\right)\\

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


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

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

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

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

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

    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 inf

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

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

        \[\leadsto \color{blue}{x + \frac{-1}{2} \cdot b} \]
      3. Step-by-step derivation
        1. +-commutativeN/A

          \[\leadsto \color{blue}{\frac{-1}{2} \cdot b + x} \]
        2. *-commutativeN/A

          \[\leadsto \color{blue}{b \cdot \frac{-1}{2}} + x \]
        3. accelerator-lowering-fma.f6442.8

          \[\leadsto \color{blue}{\mathsf{fma}\left(b, -0.5, x\right)} \]
      4. Simplified42.8%

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

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

      1. Initial program 99.9%

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

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

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

          \[\leadsto \color{blue}{y + \frac{-1}{2} \cdot b} \]
        3. Step-by-step derivation
          1. +-commutativeN/A

            \[\leadsto \color{blue}{\frac{-1}{2} \cdot b + y} \]
          2. *-commutativeN/A

            \[\leadsto \color{blue}{b \cdot \frac{-1}{2}} + y \]
          3. accelerator-lowering-fma.f6437.4

            \[\leadsto \color{blue}{\mathsf{fma}\left(b, -0.5, y\right)} \]
        4. Simplified37.4%

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

        if 1.00000000000000002e306 < (+.f64 (-.f64 (+.f64 (+.f64 x y) z) (*.f64 z (log.f64 t))) (*.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 \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \color{blue}{a \cdot b} \]
        4. Step-by-step derivation
          1. *-commutativeN/A

            \[\leadsto \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \color{blue}{b \cdot a} \]
          2. *-lowering-*.f64100.0

            \[\leadsto \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \color{blue}{b \cdot a} \]
        5. Simplified100.0%

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{x + y}\right) \]
        8. Simplified94.2%

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

          \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{x}\right) \]
        10. Step-by-step derivation
          1. Simplified94.2%

            \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{x}\right) \]
        11. Recombined 4 regimes into one program.
        12. Final simplification47.0%

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

        Alternative 3: 45.3% accurate, 0.3× speedup?

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

              \[\leadsto \color{blue}{b \cdot a} \]
          5. Simplified96.9%

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

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

          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 inf

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

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

              \[\leadsto \color{blue}{x + \frac{-1}{2} \cdot b} \]
            3. Step-by-step derivation
              1. +-commutativeN/A

                \[\leadsto \color{blue}{\frac{-1}{2} \cdot b + x} \]
              2. *-commutativeN/A

                \[\leadsto \color{blue}{b \cdot \frac{-1}{2}} + x \]
              3. accelerator-lowering-fma.f6442.8

                \[\leadsto \color{blue}{\mathsf{fma}\left(b, -0.5, x\right)} \]
            4. Simplified42.8%

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

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

            1. Initial program 99.9%

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

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

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

                \[\leadsto \color{blue}{y + \frac{-1}{2} \cdot b} \]
              3. Step-by-step derivation
                1. +-commutativeN/A

                  \[\leadsto \color{blue}{\frac{-1}{2} \cdot b + y} \]
                2. *-commutativeN/A

                  \[\leadsto \color{blue}{b \cdot \frac{-1}{2}} + y \]
                3. accelerator-lowering-fma.f6437.4

                  \[\leadsto \color{blue}{\mathsf{fma}\left(b, -0.5, y\right)} \]
              4. Simplified37.4%

                \[\leadsto \color{blue}{\mathsf{fma}\left(b, -0.5, y\right)} \]
            5. Recombined 3 regimes into one program.
            6. Final simplification47.0%

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

            Alternative 4: 39.8% accurate, 0.3× speedup?

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

                  \[\leadsto \color{blue}{b \cdot a} \]
              5. Simplified94.2%

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

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

              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 inf

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

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

                  \[\leadsto \color{blue}{x + \frac{-1}{2} \cdot b} \]
                3. Step-by-step derivation
                  1. +-commutativeN/A

                    \[\leadsto \color{blue}{\frac{-1}{2} \cdot b + x} \]
                  2. *-commutativeN/A

                    \[\leadsto \color{blue}{b \cdot \frac{-1}{2}} + x \]
                  3. accelerator-lowering-fma.f6443.1

                    \[\leadsto \color{blue}{\mathsf{fma}\left(b, -0.5, x\right)} \]
                4. Simplified43.1%

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

                if 9.99999999999999908e-22 < (+.f64 (-.f64 (+.f64 (+.f64 x y) z) (*.f64 z (log.f64 t))) (*.f64 (-.f64 a #s(literal 1/2 binary64)) b)) < 2e303

                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 inf

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

                    \[\leadsto \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \color{blue}{b \cdot a} \]
                  2. *-lowering-*.f6490.2

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

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

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

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

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

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

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

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

                    \[\leadsto \left(\color{blue}{a \cdot b} + \left(\left(x + y\right) - z \cdot \log t\right)\right) + z \]
                  8. accelerator-lowering-fma.f64N/A

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

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

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

                    \[\leadsto \mathsf{fma}\left(a, b, \left(x + y\right) - \color{blue}{z \cdot \log t}\right) + z \]
                  12. log-lowering-log.f6490.2

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

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

                  \[\leadsto \color{blue}{y} + z \]
                9. Step-by-step derivation
                  1. Simplified28.1%

                    \[\leadsto \color{blue}{y} + z \]
                10. Recombined 3 regimes into one program.
                11. Final simplification43.3%

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

                Alternative 5: 45.3% accurate, 0.5× speedup?

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

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

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

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

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

                  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 inf

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

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

                      \[\leadsto \color{blue}{x + \frac{-1}{2} \cdot b} \]
                    3. Step-by-step derivation
                      1. +-commutativeN/A

                        \[\leadsto \color{blue}{\frac{-1}{2} \cdot b + x} \]
                      2. *-commutativeN/A

                        \[\leadsto \color{blue}{b \cdot \frac{-1}{2}} + x \]
                      3. accelerator-lowering-fma.f6442.1

                        \[\leadsto \color{blue}{\mathsf{fma}\left(b, -0.5, x\right)} \]
                    4. Simplified42.1%

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

                    if 20 < (+.f64 (-.f64 (+.f64 (+.f64 x y) z) (*.f64 z (log.f64 t))) (*.f64 (-.f64 a #s(literal 1/2 binary64)) b))

                    1. Initial program 99.9%

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

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

                        \[\leadsto \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \color{blue}{b \cdot a} \]
                      2. *-lowering-*.f6490.7

                        \[\leadsto \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \color{blue}{b \cdot a} \]
                    5. Simplified90.7%

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

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

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

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

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

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

                        \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{x + y}\right) \]
                    8. Simplified70.7%

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

                      \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{y}\right) \]
                    10. Step-by-step derivation
                      1. Simplified46.8%

                        \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{y}\right) \]
                    11. Recombined 3 regimes into one program.
                    12. Final simplification47.9%

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

                    Alternative 6: 89.4% accurate, 0.9× speedup?

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

                      1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

                      if -6e111 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 2.00000000000000003e141

                      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 inf

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

                          \[\leadsto \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \color{blue}{b \cdot a} \]
                        2. *-lowering-*.f6495.4

                          \[\leadsto \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \color{blue}{b \cdot a} \]
                      5. Simplified95.4%

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

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

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

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

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

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

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

                          \[\leadsto \left(\color{blue}{a \cdot b} + \left(\left(x + y\right) - z \cdot \log t\right)\right) + z \]
                        8. accelerator-lowering-fma.f64N/A

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

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

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

                          \[\leadsto \mathsf{fma}\left(a, b, \left(x + y\right) - \color{blue}{z \cdot \log t}\right) + z \]
                        12. log-lowering-log.f6495.4

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

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

                        \[\leadsto \color{blue}{\left(\left(x + y\right) - z \cdot \log t\right)} + z \]
                      9. Step-by-step derivation
                        1. associate--l+N/A

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

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

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

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

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

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

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

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

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

                          \[\leadsto \left(x + \mathsf{fma}\left(z, \color{blue}{0 - \log t}, y\right)\right) + z \]
                        11. log-lowering-log.f6490.4

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

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

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

                    Alternative 7: 89.5% accurate, 0.9× speedup?

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

                      1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

                      if -6e111 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 2.00000000000000003e141

                      1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    Alternative 8: 91.4% accurate, 0.9× speedup?

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

                      1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

                      if -5e12 < (-.f64 a #s(literal 1/2 binary64)) < 9.99999999999999977e37

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if 9.99999999999999977e37 < (-.f64 a #s(literal 1/2 binary64))

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

                          \[\leadsto \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \color{blue}{b \cdot a} \]
                        2. *-lowering-*.f64100.0

                          \[\leadsto \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \color{blue}{b \cdot a} \]
                      5. Simplified100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto \mathsf{fma}\left(b, a, \mathsf{fma}\left(z, \color{blue}{1 - \log t}, y\right)\right) \]
                        15. log-lowering-log.f6484.6

                          \[\leadsto \mathsf{fma}\left(b, a, \mathsf{fma}\left(z, 1 - \color{blue}{\log t}, y\right)\right) \]
                      8. Simplified84.6%

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

                    Alternative 9: 70.2% accurate, 0.9× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := 1 - \log t\\ \mathbf{if}\;x + y \leq -1 \cdot 10^{+107}:\\ \;\;\;\;\left(a - 0.5\right) \cdot b + \left(z + x\right)\\ \mathbf{elif}\;x + y \leq 10^{+16}:\\ \;\;\;\;\mathsf{fma}\left(z, t\_1, b \cdot \left(a + -0.5\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(b, a, \mathsf{fma}\left(z, t\_1, y\right)\right)\\ \end{array} \end{array} \]
                    (FPCore (x y z t a b)
                     :precision binary64
                     (let* ((t_1 (- 1.0 (log t))))
                       (if (<= (+ x y) -1e+107)
                         (+ (* (- a 0.5) b) (+ z x))
                         (if (<= (+ x y) 1e+16)
                           (fma z t_1 (* b (+ a -0.5)))
                           (fma b a (fma z t_1 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 ((x + y) <= -1e+107) {
                    		tmp = ((a - 0.5) * b) + (z + x);
                    	} else if ((x + y) <= 1e+16) {
                    		tmp = fma(z, t_1, (b * (a + -0.5)));
                    	} else {
                    		tmp = fma(b, a, fma(z, t_1, y));
                    	}
                    	return tmp;
                    }
                    
                    function code(x, y, z, t, a, b)
                    	t_1 = Float64(1.0 - log(t))
                    	tmp = 0.0
                    	if (Float64(x + y) <= -1e+107)
                    		tmp = Float64(Float64(Float64(a - 0.5) * b) + Float64(z + x));
                    	elseif (Float64(x + y) <= 1e+16)
                    		tmp = fma(z, t_1, Float64(b * Float64(a + -0.5)));
                    	else
                    		tmp = fma(b, a, fma(z, t_1, 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[N[(x + y), $MachinePrecision], -1e+107], N[(N[(N[(a - 0.5), $MachinePrecision] * b), $MachinePrecision] + N[(z + x), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(x + y), $MachinePrecision], 1e+16], N[(z * t$95$1 + N[(b * N[(a + -0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * a + N[(z * t$95$1 + y), $MachinePrecision]), $MachinePrecision]]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    t_1 := 1 - \log t\\
                    \mathbf{if}\;x + y \leq -1 \cdot 10^{+107}:\\
                    \;\;\;\;\left(a - 0.5\right) \cdot b + \left(z + x\right)\\
                    
                    \mathbf{elif}\;x + y \leq 10^{+16}:\\
                    \;\;\;\;\mathsf{fma}\left(z, t\_1, b \cdot \left(a + -0.5\right)\right)\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;\mathsf{fma}\left(b, a, \mathsf{fma}\left(z, t\_1, y\right)\right)\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 3 regimes
                    2. if (+.f64 x y) < -9.9999999999999997e106

                      1. Initial program 99.9%

                        \[\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b \]
                      2. Add Preprocessing
                      3. Step-by-step derivation
                        1. +-commutativeN/A

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

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

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

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

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

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

                          \[\leadsto \left(z + \left(\left(x + y\right) - z \cdot \color{blue}{\log t}\right)\right) + \left(a - 0.5\right) \cdot b \]
                      4. Applied egg-rr99.9%

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

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

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

                        if -9.9999999999999997e106 < (+.f64 x y) < 1e16

                        1. Initial program 99.8%

                          \[\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b \]
                        2. Add Preprocessing
                        3. Step-by-step derivation
                          1. +-commutativeN/A

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

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

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

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

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

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

                            \[\leadsto \left(z + \left(\left(x + y\right) - z \cdot \color{blue}{\log t}\right)\right) + \left(a - 0.5\right) \cdot b \]
                        4. Applied egg-rr99.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \mathsf{fma}\left(z, 1 - \log t, b \cdot \color{blue}{\left(a + -0.5\right)}\right) \]
                        10. Simplified87.2%

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

                        if 1e16 < (+.f64 x y)

                        1. Initial program 99.9%

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

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

                            \[\leadsto \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \color{blue}{b \cdot a} \]
                          2. *-lowering-*.f6494.8

                            \[\leadsto \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \color{blue}{b \cdot a} \]
                        5. Simplified94.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \mathsf{fma}\left(b, a, \mathsf{fma}\left(z, \color{blue}{1 - \log t}, y\right)\right) \]
                          15. log-lowering-log.f6462.8

                            \[\leadsto \mathsf{fma}\left(b, a, \mathsf{fma}\left(z, 1 - \color{blue}{\log t}, y\right)\right) \]
                        8. Simplified62.8%

                          \[\leadsto \color{blue}{\mathsf{fma}\left(b, a, \mathsf{fma}\left(z, 1 - \log t, y\right)\right)} \]
                      7. Recombined 3 regimes into one program.
                      8. Final simplification73.5%

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

                      Alternative 10: 57.8% accurate, 1.0× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(a - 0.5\right) \cdot b\\ \mathbf{if}\;\left(z + \left(x + y\right)\right) - z \cdot \log t \leq -2 \cdot 10^{-151}:\\ \;\;\;\;x + t\_1\\ \mathbf{else}:\\ \;\;\;\;y + t\_1\\ \end{array} \end{array} \]
                      (FPCore (x y z t a b)
                       :precision binary64
                       (let* ((t_1 (* (- a 0.5) b)))
                         (if (<= (- (+ z (+ x y)) (* z (log t))) -2e-151) (+ x t_1) (+ y t_1))))
                      double code(double x, double y, double z, double t, double a, double b) {
                      	double t_1 = (a - 0.5) * b;
                      	double tmp;
                      	if (((z + (x + y)) - (z * log(t))) <= -2e-151) {
                      		tmp = x + t_1;
                      	} else {
                      		tmp = y + t_1;
                      	}
                      	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 (((z + (x + y)) - (z * log(t))) <= (-2d-151)) then
                              tmp = x + t_1
                          else
                              tmp = y + t_1
                          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 (((z + (x + y)) - (z * Math.log(t))) <= -2e-151) {
                      		tmp = x + t_1;
                      	} else {
                      		tmp = y + t_1;
                      	}
                      	return tmp;
                      }
                      
                      def code(x, y, z, t, a, b):
                      	t_1 = (a - 0.5) * b
                      	tmp = 0
                      	if ((z + (x + y)) - (z * math.log(t))) <= -2e-151:
                      		tmp = x + t_1
                      	else:
                      		tmp = y + t_1
                      	return tmp
                      
                      function code(x, y, z, t, a, b)
                      	t_1 = Float64(Float64(a - 0.5) * b)
                      	tmp = 0.0
                      	if (Float64(Float64(z + Float64(x + y)) - Float64(z * log(t))) <= -2e-151)
                      		tmp = Float64(x + t_1);
                      	else
                      		tmp = Float64(y + t_1);
                      	end
                      	return tmp
                      end
                      
                      function tmp_2 = code(x, y, z, t, a, b)
                      	t_1 = (a - 0.5) * b;
                      	tmp = 0.0;
                      	if (((z + (x + y)) - (z * log(t))) <= -2e-151)
                      		tmp = x + t_1;
                      	else
                      		tmp = y + t_1;
                      	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[N[(N[(z + N[(x + y), $MachinePrecision]), $MachinePrecision] - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], -2e-151], N[(x + t$95$1), $MachinePrecision], N[(y + t$95$1), $MachinePrecision]]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      t_1 := \left(a - 0.5\right) \cdot b\\
                      \mathbf{if}\;\left(z + \left(x + y\right)\right) - z \cdot \log t \leq -2 \cdot 10^{-151}:\\
                      \;\;\;\;x + t\_1\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;y + t\_1\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 2 regimes
                      2. if (-.f64 (+.f64 (+.f64 x y) z) (*.f64 z (log.f64 t))) < -1.9999999999999999e-151

                        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 x around inf

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

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

                          if -1.9999999999999999e-151 < (-.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 y around inf

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

                              \[\leadsto \color{blue}{y} + \left(a - 0.5\right) \cdot b \]
                          5. Recombined 2 regimes into one program.
                          6. Final simplification57.8%

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

                          Alternative 11: 21.8% accurate, 1.0× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\left(a - 0.5\right) \cdot b + \left(\left(z + \left(x + y\right)\right) - z \cdot \log t\right) \leq -2 \cdot 10^{-151}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \end{array} \]
                          (FPCore (x y z t a b)
                           :precision binary64
                           (if (<= (+ (* (- a 0.5) b) (- (+ z (+ x y)) (* z (log t)))) -2e-151) x y))
                          double code(double x, double y, double z, double t, double a, double b) {
                          	double tmp;
                          	if ((((a - 0.5) * b) + ((z + (x + y)) - (z * log(t)))) <= -2e-151) {
                          		tmp = x;
                          	} else {
                          		tmp = 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 ((((a - 0.5d0) * b) + ((z + (x + y)) - (z * log(t)))) <= (-2d-151)) then
                                  tmp = x
                              else
                                  tmp = 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 ((((a - 0.5) * b) + ((z + (x + y)) - (z * Math.log(t)))) <= -2e-151) {
                          		tmp = x;
                          	} else {
                          		tmp = y;
                          	}
                          	return tmp;
                          }
                          
                          def code(x, y, z, t, a, b):
                          	tmp = 0
                          	if (((a - 0.5) * b) + ((z + (x + y)) - (z * math.log(t)))) <= -2e-151:
                          		tmp = x
                          	else:
                          		tmp = y
                          	return tmp
                          
                          function code(x, y, z, t, a, b)
                          	tmp = 0.0
                          	if (Float64(Float64(Float64(a - 0.5) * b) + Float64(Float64(z + Float64(x + y)) - Float64(z * log(t)))) <= -2e-151)
                          		tmp = x;
                          	else
                          		tmp = y;
                          	end
                          	return tmp
                          end
                          
                          function tmp_2 = code(x, y, z, t, a, b)
                          	tmp = 0.0;
                          	if ((((a - 0.5) * b) + ((z + (x + y)) - (z * log(t)))) <= -2e-151)
                          		tmp = x;
                          	else
                          		tmp = y;
                          	end
                          	tmp_2 = tmp;
                          end
                          
                          code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(N[(N[(a - 0.5), $MachinePrecision] * b), $MachinePrecision] + N[(N[(z + N[(x + y), $MachinePrecision]), $MachinePrecision] - N[(z * N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], -2e-151], x, y]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          \mathbf{if}\;\left(a - 0.5\right) \cdot b + \left(\left(z + \left(x + y\right)\right) - z \cdot \log t\right) \leq -2 \cdot 10^{-151}:\\
                          \;\;\;\;x\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;y\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 2 regimes
                          2. if (+.f64 (-.f64 (+.f64 (+.f64 x y) z) (*.f64 z (log.f64 t))) (*.f64 (-.f64 a #s(literal 1/2 binary64)) b)) < -1.9999999999999999e-151

                            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 x around inf

                              \[\leadsto \color{blue}{x} \]
                            4. Step-by-step derivation
                              1. Simplified24.3%

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

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

                              1. Initial program 99.9%

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

                                \[\leadsto \color{blue}{y} \]
                              4. Step-by-step derivation
                                1. Simplified22.6%

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

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

                              Alternative 12: 85.3% accurate, 1.0× speedup?

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

                                1. Initial program 99.9%

                                  \[\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b \]
                                2. Add Preprocessing
                                3. Step-by-step derivation
                                  1. +-commutativeN/A

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

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

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

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

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

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

                                    \[\leadsto \left(z + \left(\left(x + y\right) - z \cdot \color{blue}{\log t}\right)\right) + \left(a - 0.5\right) \cdot b \]
                                4. Applied egg-rr99.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \mathsf{fma}\left(b, a + \frac{-1}{2}, \mathsf{fma}\left(z, \color{blue}{1 - \log t}, x\right)\right) \]
                                  14. log-lowering-log.f6487.1

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

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

                                if 2e17 < (+.f64 x y)

                                1. Initial program 99.9%

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

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

                                    \[\leadsto \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \color{blue}{b \cdot a} \]
                                  2. *-lowering-*.f6494.7

                                    \[\leadsto \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \color{blue}{b \cdot a} \]
                                5. Simplified94.7%

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

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

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

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

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

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

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

                                    \[\leadsto \left(\color{blue}{a \cdot b} + \left(\left(x + y\right) - z \cdot \log t\right)\right) + z \]
                                  8. accelerator-lowering-fma.f64N/A

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

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

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

                                    \[\leadsto \mathsf{fma}\left(a, b, \left(x + y\right) - \color{blue}{z \cdot \log t}\right) + z \]
                                  12. log-lowering-log.f6494.7

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

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

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

                              Alternative 13: 75.6% accurate, 1.0× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := 1 - \log t\\ \mathbf{if}\;x + y \leq 10^{+16}:\\ \;\;\;\;\mathsf{fma}\left(b, a + -0.5, \mathsf{fma}\left(z, t\_1, x\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(b, a, \mathsf{fma}\left(z, t\_1, y\right)\right)\\ \end{array} \end{array} \]
                              (FPCore (x y z t a b)
                               :precision binary64
                               (let* ((t_1 (- 1.0 (log t))))
                                 (if (<= (+ x y) 1e+16)
                                   (fma b (+ a -0.5) (fma z t_1 x))
                                   (fma b a (fma z t_1 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 ((x + y) <= 1e+16) {
                              		tmp = fma(b, (a + -0.5), fma(z, t_1, x));
                              	} else {
                              		tmp = fma(b, a, fma(z, t_1, y));
                              	}
                              	return tmp;
                              }
                              
                              function code(x, y, z, t, a, b)
                              	t_1 = Float64(1.0 - log(t))
                              	tmp = 0.0
                              	if (Float64(x + y) <= 1e+16)
                              		tmp = fma(b, Float64(a + -0.5), fma(z, t_1, x));
                              	else
                              		tmp = fma(b, a, fma(z, t_1, 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[N[(x + y), $MachinePrecision], 1e+16], N[(b * N[(a + -0.5), $MachinePrecision] + N[(z * t$95$1 + x), $MachinePrecision]), $MachinePrecision], N[(b * a + N[(z * t$95$1 + y), $MachinePrecision]), $MachinePrecision]]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              t_1 := 1 - \log t\\
                              \mathbf{if}\;x + y \leq 10^{+16}:\\
                              \;\;\;\;\mathsf{fma}\left(b, a + -0.5, \mathsf{fma}\left(z, t\_1, x\right)\right)\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;\mathsf{fma}\left(b, a, \mathsf{fma}\left(z, t\_1, y\right)\right)\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 2 regimes
                              2. if (+.f64 x y) < 1e16

                                1. Initial program 99.9%

                                  \[\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b \]
                                2. Add Preprocessing
                                3. Step-by-step derivation
                                  1. +-commutativeN/A

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

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

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

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

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

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

                                    \[\leadsto \left(z + \left(\left(x + y\right) - z \cdot \color{blue}{\log t}\right)\right) + \left(a - 0.5\right) \cdot b \]
                                4. Applied egg-rr99.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                if 1e16 < (+.f64 x y)

                                1. Initial program 99.9%

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

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

                                    \[\leadsto \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \color{blue}{b \cdot a} \]
                                  2. *-lowering-*.f6494.8

                                    \[\leadsto \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \color{blue}{b \cdot a} \]
                                5. Simplified94.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \mathsf{fma}\left(b, a, \mathsf{fma}\left(z, \color{blue}{1 - \log t}, y\right)\right) \]
                                  15. log-lowering-log.f6462.8

                                    \[\leadsto \mathsf{fma}\left(b, a, \mathsf{fma}\left(z, 1 - \color{blue}{\log t}, y\right)\right) \]
                                8. Simplified62.8%

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

                              Alternative 14: 85.4% accurate, 1.0× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := 1 - \log t\\ \mathbf{if}\;z \leq -3.2 \cdot 10^{+158}:\\ \;\;\;\;\mathsf{fma}\left(z, t\_1, y\right)\\ \mathbf{elif}\;z \leq 8.8 \cdot 10^{+159}:\\ \;\;\;\;y + \mathsf{fma}\left(b, a + -0.5, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(z, t\_1, x\right)\\ \end{array} \end{array} \]
                              (FPCore (x y z t a b)
                               :precision binary64
                               (let* ((t_1 (- 1.0 (log t))))
                                 (if (<= z -3.2e+158)
                                   (fma z t_1 y)
                                   (if (<= z 8.8e+159) (+ y (fma b (+ a -0.5) x)) (fma z t_1 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 <= -3.2e+158) {
                              		tmp = fma(z, t_1, y);
                              	} else if (z <= 8.8e+159) {
                              		tmp = y + fma(b, (a + -0.5), x);
                              	} else {
                              		tmp = fma(z, t_1, x);
                              	}
                              	return tmp;
                              }
                              
                              function code(x, y, z, t, a, b)
                              	t_1 = Float64(1.0 - log(t))
                              	tmp = 0.0
                              	if (z <= -3.2e+158)
                              		tmp = fma(z, t_1, y);
                              	elseif (z <= 8.8e+159)
                              		tmp = Float64(y + fma(b, Float64(a + -0.5), x));
                              	else
                              		tmp = fma(z, t_1, 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, -3.2e+158], N[(z * t$95$1 + y), $MachinePrecision], If[LessEqual[z, 8.8e+159], N[(y + N[(b * N[(a + -0.5), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], N[(z * t$95$1 + x), $MachinePrecision]]]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              t_1 := 1 - \log t\\
                              \mathbf{if}\;z \leq -3.2 \cdot 10^{+158}:\\
                              \;\;\;\;\mathsf{fma}\left(z, t\_1, y\right)\\
                              
                              \mathbf{elif}\;z \leq 8.8 \cdot 10^{+159}:\\
                              \;\;\;\;y + \mathsf{fma}\left(b, a + -0.5, x\right)\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;\mathsf{fma}\left(z, t\_1, x\right)\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 3 regimes
                              2. if z < -3.19999999999999995e158

                                1. Initial program 99.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                if -3.19999999999999995e158 < z < 8.7999999999999997e159

                                1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

                                if 8.7999999999999997e159 < z

                                1. Initial program 99.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              Alternative 15: 85.7% accurate, 1.0× speedup?

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

                                1. Initial program 99.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                if -3.70000000000000001e169 < z < 6.9999999999999999e159

                                1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

                              Alternative 16: 83.7% accurate, 1.0× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := z \cdot \left(1 - \log t\right)\\ \mathbf{if}\;z \leq -1.65 \cdot 10^{+247}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.8 \cdot 10^{+181}:\\ \;\;\;\;y + \mathsf{fma}\left(b, a + -0.5, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                              (FPCore (x y z t a b)
                               :precision binary64
                               (let* ((t_1 (* z (- 1.0 (log t)))))
                                 (if (<= z -1.65e+247)
                                   t_1
                                   (if (<= z 1.8e+181) (+ y (fma b (+ a -0.5) x)) t_1))))
                              double code(double x, double y, double z, double t, double a, double b) {
                              	double t_1 = z * (1.0 - log(t));
                              	double tmp;
                              	if (z <= -1.65e+247) {
                              		tmp = t_1;
                              	} else if (z <= 1.8e+181) {
                              		tmp = y + fma(b, (a + -0.5), x);
                              	} else {
                              		tmp = t_1;
                              	}
                              	return tmp;
                              }
                              
                              function code(x, y, z, t, a, b)
                              	t_1 = Float64(z * Float64(1.0 - log(t)))
                              	tmp = 0.0
                              	if (z <= -1.65e+247)
                              		tmp = t_1;
                              	elseif (z <= 1.8e+181)
                              		tmp = Float64(y + fma(b, Float64(a + -0.5), x));
                              	else
                              		tmp = t_1;
                              	end
                              	return tmp
                              end
                              
                              code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(1.0 - N[Log[t], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.65e+247], t$95$1, If[LessEqual[z, 1.8e+181], N[(y + N[(b * N[(a + -0.5), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              t_1 := z \cdot \left(1 - \log t\right)\\
                              \mathbf{if}\;z \leq -1.65 \cdot 10^{+247}:\\
                              \;\;\;\;t\_1\\
                              
                              \mathbf{elif}\;z \leq 1.8 \cdot 10^{+181}:\\
                              \;\;\;\;y + \mathsf{fma}\left(b, a + -0.5, x\right)\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;t\_1\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 2 regimes
                              2. if z < -1.65000000000000001e247 or 1.79999999999999992e181 < 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. sub-negN/A

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

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

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

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

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

                                    \[\leadsto z \cdot \color{blue}{\left(1 - \log t\right)} \]
                                  7. log-lowering-log.f6475.5

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

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

                                if -1.65000000000000001e247 < z < 1.79999999999999992e181

                                1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

                              Alternative 17: 57.3% accurate, 3.7× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(a - 0.5\right) \cdot b\\ \mathbf{if}\;t\_1 \leq -4 \cdot 10^{+234}:\\ \;\;\;\;a \cdot b\\ \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+209}:\\ \;\;\;\;x + y\\ \mathbf{else}:\\ \;\;\;\;a \cdot b\\ \end{array} \end{array} \]
                              (FPCore (x y z t a b)
                               :precision binary64
                               (let* ((t_1 (* (- a 0.5) b)))
                                 (if (<= t_1 -4e+234) (* a b) (if (<= t_1 2e+209) (+ x y) (* a b)))))
                              double code(double x, double y, double z, double t, double a, double b) {
                              	double t_1 = (a - 0.5) * b;
                              	double tmp;
                              	if (t_1 <= -4e+234) {
                              		tmp = a * b;
                              	} else if (t_1 <= 2e+209) {
                              		tmp = x + y;
                              	} else {
                              		tmp = a * b;
                              	}
                              	return tmp;
                              }
                              
                              real(8) function code(x, y, z, t, a, b)
                                  real(8), intent (in) :: x
                                  real(8), intent (in) :: y
                                  real(8), intent (in) :: z
                                  real(8), intent (in) :: t
                                  real(8), intent (in) :: a
                                  real(8), intent (in) :: b
                                  real(8) :: t_1
                                  real(8) :: tmp
                                  t_1 = (a - 0.5d0) * b
                                  if (t_1 <= (-4d+234)) then
                                      tmp = a * b
                                  else if (t_1 <= 2d+209) then
                                      tmp = x + y
                                  else
                                      tmp = a * b
                                  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 <= -4e+234) {
                              		tmp = a * b;
                              	} else if (t_1 <= 2e+209) {
                              		tmp = x + y;
                              	} else {
                              		tmp = a * b;
                              	}
                              	return tmp;
                              }
                              
                              def code(x, y, z, t, a, b):
                              	t_1 = (a - 0.5) * b
                              	tmp = 0
                              	if t_1 <= -4e+234:
                              		tmp = a * b
                              	elif t_1 <= 2e+209:
                              		tmp = x + y
                              	else:
                              		tmp = a * b
                              	return tmp
                              
                              function code(x, y, z, t, a, b)
                              	t_1 = Float64(Float64(a - 0.5) * b)
                              	tmp = 0.0
                              	if (t_1 <= -4e+234)
                              		tmp = Float64(a * b);
                              	elseif (t_1 <= 2e+209)
                              		tmp = Float64(x + y);
                              	else
                              		tmp = Float64(a * b);
                              	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 <= -4e+234)
                              		tmp = a * b;
                              	elseif (t_1 <= 2e+209)
                              		tmp = x + y;
                              	else
                              		tmp = a * b;
                              	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, -4e+234], N[(a * b), $MachinePrecision], If[LessEqual[t$95$1, 2e+209], N[(x + y), $MachinePrecision], N[(a * b), $MachinePrecision]]]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              t_1 := \left(a - 0.5\right) \cdot b\\
                              \mathbf{if}\;t\_1 \leq -4 \cdot 10^{+234}:\\
                              \;\;\;\;a \cdot b\\
                              
                              \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+209}:\\
                              \;\;\;\;x + y\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;a \cdot b\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 2 regimes
                              2. if (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < -4.00000000000000007e234 or 2.0000000000000001e209 < (*.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. *-lowering-*.f6472.5

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

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

                                if -4.00000000000000007e234 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 2.0000000000000001e209

                                1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \color{blue}{x + y} \]
                                7. Step-by-step derivation
                                  1. +-lowering-+.f6454.0

                                    \[\leadsto \color{blue}{x + y} \]
                                8. Simplified54.0%

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

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

                              Alternative 18: 49.9% accurate, 4.7× speedup?

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

                                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 inf

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

                                    \[\leadsto \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \color{blue}{b \cdot a} \]
                                  2. *-lowering-*.f6488.3

                                    \[\leadsto \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \color{blue}{b \cdot a} \]
                                5. Simplified88.3%

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

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

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

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

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

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

                                    \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{x + y}\right) \]
                                8. Simplified71.1%

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

                                  \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{x}\right) \]
                                10. Step-by-step derivation
                                  1. Simplified50.8%

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

                                  if -6.0000000000000003e-33 < (+.f64 x y) < 1e16

                                  1. Initial program 99.8%

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

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

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

                                      \[\leadsto b \cdot \color{blue}{\left(a + \left(\mathsf{neg}\left(\frac{1}{2}\right)\right)\right)} \]
                                    3. metadata-evalN/A

                                      \[\leadsto b \cdot \left(a + \color{blue}{\frac{-1}{2}}\right) \]
                                    4. +-lowering-+.f6458.7

                                      \[\leadsto b \cdot \color{blue}{\left(a + -0.5\right)} \]
                                  5. Simplified58.7%

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

                                  if 1e16 < (+.f64 x y)

                                  1. Initial program 99.9%

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

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

                                      \[\leadsto \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \color{blue}{b \cdot a} \]
                                    2. *-lowering-*.f6494.8

                                      \[\leadsto \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \color{blue}{b \cdot a} \]
                                  5. Simplified94.8%

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

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

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

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

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

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

                                      \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{x + y}\right) \]
                                  8. Simplified78.6%

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

                                    \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{y}\right) \]
                                  10. Step-by-step derivation
                                    1. Simplified47.3%

                                      \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{y}\right) \]
                                  11. Recombined 3 regimes into one program.
                                  12. Add Preprocessing

                                  Alternative 19: 71.2% accurate, 5.7× speedup?

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

                                    1. Initial program 99.9%

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

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

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

                                        \[\leadsto b \cdot \color{blue}{\left(a + \left(\mathsf{neg}\left(\frac{1}{2}\right)\right)\right)} \]
                                      3. metadata-evalN/A

                                        \[\leadsto b \cdot \left(a + \color{blue}{\frac{-1}{2}}\right) \]
                                      4. +-lowering-+.f6483.7

                                        \[\leadsto b \cdot \color{blue}{\left(a + -0.5\right)} \]
                                    5. Simplified83.7%

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

                                    if -3.94999999999999982e149 < b < 4.1999999999999998e164

                                    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 inf

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

                                        \[\leadsto \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \color{blue}{b \cdot a} \]
                                      2. *-lowering-*.f6495.2

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

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

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

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

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

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

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

                                        \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{x + y}\right) \]
                                    8. Simplified68.8%

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

                                  Alternative 20: 64.2% accurate, 6.0× speedup?

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

                                    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 x around inf

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

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

                                      if 1e16 < (+.f64 x y)

                                      1. Initial program 99.9%

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

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

                                          \[\leadsto \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \color{blue}{b \cdot a} \]
                                        2. *-lowering-*.f6494.8

                                          \[\leadsto \left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \color{blue}{b \cdot a} \]
                                      5. Simplified94.8%

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

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

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

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

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

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

                                          \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{x + y}\right) \]
                                      8. Simplified78.6%

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

                                    Alternative 21: 78.3% accurate, 9.7× speedup?

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

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

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

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

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

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

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

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

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

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

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

                                    Alternative 22: 41.9% 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.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \color{blue}{x + y} \]
                                    7. Step-by-step derivation
                                      1. +-lowering-+.f6443.0

                                        \[\leadsto \color{blue}{x + y} \]
                                    8. Simplified43.0%

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

                                    Alternative 23: 21.5% accurate, 126.0× speedup?

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

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

                                      \[\leadsto \color{blue}{x} \]
                                    4. Step-by-step derivation
                                      1. Simplified24.2%

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

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

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

                                      Reproduce

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