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

Percentage Accurate: 99.8% → 99.8%
Time: 11.4s
Alternatives: 13
Speedup: 1.0×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

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

\\
b \cdot \left(a - 0.5\right) + \left(\left(\left(y + x\right) + z\right) - \log t \cdot z\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. Final simplification99.9%

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

Alternative 2: 89.5% accurate, 0.9× speedup?

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

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

\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+14}:\\
\;\;\;\;\mathsf{fma}\left(1 - \log t, z, y + x\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) < -5.00000000000000024e-5 or 2e14 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b)

    1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

    if -5.00000000000000024e-5 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 2e14

    1. Initial program 99.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 3: 52.7% accurate, 0.9× speedup?

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

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

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


\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)) < -4.0000000000000002e-168

    1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

      \[\leadsto a \cdot b + x \]
    7. Step-by-step derivation
      1. Applied rewrites50.4%

        \[\leadsto a \cdot b + x \]

      if -4.0000000000000002e-168 < (+.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 z around 0

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

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

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

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

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

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

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

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

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

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

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

      Alternative 4: 85.7% accurate, 1.0× speedup?

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

        1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

        if -4.40000000000000028e143 < x

        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 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 5: 85.4% accurate, 1.0× speedup?

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

        1. Initial program 99.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -4.8000000000000001e136 < z < 6.5999999999999998e202

          1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

          if 6.5999999999999998e202 < z

          1. Initial program 99.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 6: 85.7% accurate, 1.0× speedup?

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

            1. Initial program 99.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if -3.7000000000000001e167 < z < 6.5999999999999998e202

              1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

            Alternative 7: 84.4% accurate, 1.0× speedup?

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

              1. Initial program 99.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if -5.2000000000000001e178 < z < 5.19999999999999977e206

              1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

            Alternative 8: 58.1% accurate, 2.6× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(a - 0.5\right)\\ \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+183}:\\ \;\;\;\;b \cdot a\\ \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+207}:\\ \;\;\;\;y + x\\ \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+277}:\\ \;\;\;\;-0.5 \cdot b\\ \mathbf{else}:\\ \;\;\;\;b \cdot a\\ \end{array} \end{array} \]
            (FPCore (x y z t a b)
             :precision binary64
             (let* ((t_1 (* b (- a 0.5))))
               (if (<= t_1 -1e+183)
                 (* b a)
                 (if (<= t_1 2e+207) (+ y x) (if (<= t_1 2e+277) (* -0.5 b) (* b a))))))
            double code(double x, double y, double z, double t, double a, double b) {
            	double t_1 = b * (a - 0.5);
            	double tmp;
            	if (t_1 <= -1e+183) {
            		tmp = b * a;
            	} else if (t_1 <= 2e+207) {
            		tmp = y + x;
            	} else if (t_1 <= 2e+277) {
            		tmp = -0.5 * b;
            	} else {
            		tmp = b * a;
            	}
            	return tmp;
            }
            
            real(8) function code(x, y, z, t, a, b)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                real(8), intent (in) :: z
                real(8), intent (in) :: t
                real(8), intent (in) :: a
                real(8), intent (in) :: b
                real(8) :: t_1
                real(8) :: tmp
                t_1 = b * (a - 0.5d0)
                if (t_1 <= (-1d+183)) then
                    tmp = b * a
                else if (t_1 <= 2d+207) then
                    tmp = y + x
                else if (t_1 <= 2d+277) then
                    tmp = (-0.5d0) * b
                else
                    tmp = b * a
                end if
                code = tmp
            end function
            
            public static double code(double x, double y, double z, double t, double a, double b) {
            	double t_1 = b * (a - 0.5);
            	double tmp;
            	if (t_1 <= -1e+183) {
            		tmp = b * a;
            	} else if (t_1 <= 2e+207) {
            		tmp = y + x;
            	} else if (t_1 <= 2e+277) {
            		tmp = -0.5 * b;
            	} else {
            		tmp = b * a;
            	}
            	return tmp;
            }
            
            def code(x, y, z, t, a, b):
            	t_1 = b * (a - 0.5)
            	tmp = 0
            	if t_1 <= -1e+183:
            		tmp = b * a
            	elif t_1 <= 2e+207:
            		tmp = y + x
            	elif t_1 <= 2e+277:
            		tmp = -0.5 * b
            	else:
            		tmp = b * a
            	return tmp
            
            function code(x, y, z, t, a, b)
            	t_1 = Float64(b * Float64(a - 0.5))
            	tmp = 0.0
            	if (t_1 <= -1e+183)
            		tmp = Float64(b * a);
            	elseif (t_1 <= 2e+207)
            		tmp = Float64(y + x);
            	elseif (t_1 <= 2e+277)
            		tmp = Float64(-0.5 * b);
            	else
            		tmp = Float64(b * a);
            	end
            	return tmp
            end
            
            function tmp_2 = code(x, y, z, t, a, b)
            	t_1 = b * (a - 0.5);
            	tmp = 0.0;
            	if (t_1 <= -1e+183)
            		tmp = b * a;
            	elseif (t_1 <= 2e+207)
            		tmp = y + x;
            	elseif (t_1 <= 2e+277)
            		tmp = -0.5 * b;
            	else
            		tmp = b * a;
            	end
            	tmp_2 = tmp;
            end
            
            code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+183], N[(b * a), $MachinePrecision], If[LessEqual[t$95$1, 2e+207], N[(y + x), $MachinePrecision], If[LessEqual[t$95$1, 2e+277], N[(-0.5 * b), $MachinePrecision], N[(b * a), $MachinePrecision]]]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := b \cdot \left(a - 0.5\right)\\
            \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+183}:\\
            \;\;\;\;b \cdot a\\
            
            \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+207}:\\
            \;\;\;\;y + x\\
            
            \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+277}:\\
            \;\;\;\;-0.5 \cdot b\\
            
            \mathbf{else}:\\
            \;\;\;\;b \cdot a\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < -9.99999999999999947e182 or 2.00000000000000001e277 < (*.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 \color{blue}{a \cdot b} \]
              4. Step-by-step derivation
                1. lower-*.f6475.7

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

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

              if -9.99999999999999947e182 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 2.0000000000000001e207

              1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

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

                if 2.0000000000000001e207 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 2.00000000000000001e277

                1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    Alternative 9: 63.6% accurate, 3.4× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(a - 0.5\right)\\ \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+183}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+14}:\\ \;\;\;\;y + x\\ \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 (<= t_1 -1e+183) t_1 (if (<= t_1 2e+14) (+ y x) 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 (t_1 <= -1e+183) {
                    		tmp = t_1;
                    	} else if (t_1 <= 2e+14) {
                    		tmp = y + x;
                    	} else {
                    		tmp = 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 = b * (a - 0.5d0)
                        if (t_1 <= (-1d+183)) then
                            tmp = t_1
                        else if (t_1 <= 2d+14) then
                            tmp = y + x
                        else
                            tmp = 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 = b * (a - 0.5);
                    	double tmp;
                    	if (t_1 <= -1e+183) {
                    		tmp = t_1;
                    	} else if (t_1 <= 2e+14) {
                    		tmp = y + x;
                    	} else {
                    		tmp = t_1;
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y, z, t, a, b):
                    	t_1 = b * (a - 0.5)
                    	tmp = 0
                    	if t_1 <= -1e+183:
                    		tmp = t_1
                    	elif t_1 <= 2e+14:
                    		tmp = y + x
                    	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 (t_1 <= -1e+183)
                    		tmp = t_1;
                    	elseif (t_1 <= 2e+14)
                    		tmp = Float64(y + x);
                    	else
                    		tmp = t_1;
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y, z, t, a, b)
                    	t_1 = b * (a - 0.5);
                    	tmp = 0.0;
                    	if (t_1 <= -1e+183)
                    		tmp = t_1;
                    	elseif (t_1 <= 2e+14)
                    		tmp = y + x;
                    	else
                    		tmp = t_1;
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(b * N[(a - 0.5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+183], t$95$1, If[LessEqual[t$95$1, 2e+14], N[(y + x), $MachinePrecision], t$95$1]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    t_1 := b \cdot \left(a - 0.5\right)\\
                    \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+183}:\\
                    \;\;\;\;t\_1\\
                    
                    \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+14}:\\
                    \;\;\;\;y + x\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;t\_1\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 2 regimes
                    2. if (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < -9.99999999999999947e182 or 2e14 < (*.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 b around inf

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

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

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

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

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

                      if -9.99999999999999947e182 < (*.f64 (-.f64 a #s(literal 1/2 binary64)) b) < 2e14

                      1. Initial program 99.8%

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

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

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

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

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

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

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

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

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

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

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

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

                      Alternative 10: 61.0% accurate, 6.6× speedup?

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

                        1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

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

                          if -9.9999999999999996e81 < (+.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 z around 0

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

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

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

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

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

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

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

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

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

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

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

                          Alternative 11: 46.8% accurate, 7.0× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -2.4 \cdot 10^{+46}:\\ \;\;\;\;-0.5 \cdot b\\ \mathbf{elif}\;b \leq 5.6 \cdot 10^{+159}:\\ \;\;\;\;y + x\\ \mathbf{else}:\\ \;\;\;\;-0.5 \cdot b\\ \end{array} \end{array} \]
                          (FPCore (x y z t a b)
                           :precision binary64
                           (if (<= b -2.4e+46) (* -0.5 b) (if (<= b 5.6e+159) (+ y x) (* -0.5 b))))
                          double code(double x, double y, double z, double t, double a, double b) {
                          	double tmp;
                          	if (b <= -2.4e+46) {
                          		tmp = -0.5 * b;
                          	} else if (b <= 5.6e+159) {
                          		tmp = y + x;
                          	} else {
                          		tmp = -0.5 * b;
                          	}
                          	return tmp;
                          }
                          
                          real(8) function code(x, y, z, t, a, b)
                              real(8), intent (in) :: x
                              real(8), intent (in) :: y
                              real(8), intent (in) :: z
                              real(8), intent (in) :: t
                              real(8), intent (in) :: a
                              real(8), intent (in) :: b
                              real(8) :: tmp
                              if (b <= (-2.4d+46)) then
                                  tmp = (-0.5d0) * b
                              else if (b <= 5.6d+159) then
                                  tmp = y + x
                              else
                                  tmp = (-0.5d0) * b
                              end if
                              code = tmp
                          end function
                          
                          public static double code(double x, double y, double z, double t, double a, double b) {
                          	double tmp;
                          	if (b <= -2.4e+46) {
                          		tmp = -0.5 * b;
                          	} else if (b <= 5.6e+159) {
                          		tmp = y + x;
                          	} else {
                          		tmp = -0.5 * b;
                          	}
                          	return tmp;
                          }
                          
                          def code(x, y, z, t, a, b):
                          	tmp = 0
                          	if b <= -2.4e+46:
                          		tmp = -0.5 * b
                          	elif b <= 5.6e+159:
                          		tmp = y + x
                          	else:
                          		tmp = -0.5 * b
                          	return tmp
                          
                          function code(x, y, z, t, a, b)
                          	tmp = 0.0
                          	if (b <= -2.4e+46)
                          		tmp = Float64(-0.5 * b);
                          	elseif (b <= 5.6e+159)
                          		tmp = Float64(y + x);
                          	else
                          		tmp = Float64(-0.5 * b);
                          	end
                          	return tmp
                          end
                          
                          function tmp_2 = code(x, y, z, t, a, b)
                          	tmp = 0.0;
                          	if (b <= -2.4e+46)
                          		tmp = -0.5 * b;
                          	elseif (b <= 5.6e+159)
                          		tmp = y + x;
                          	else
                          		tmp = -0.5 * b;
                          	end
                          	tmp_2 = tmp;
                          end
                          
                          code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.4e+46], N[(-0.5 * b), $MachinePrecision], If[LessEqual[b, 5.6e+159], N[(y + x), $MachinePrecision], N[(-0.5 * b), $MachinePrecision]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          \mathbf{if}\;b \leq -2.4 \cdot 10^{+46}:\\
                          \;\;\;\;-0.5 \cdot b\\
                          
                          \mathbf{elif}\;b \leq 5.6 \cdot 10^{+159}:\\
                          \;\;\;\;y + x\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;-0.5 \cdot b\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 2 regimes
                          2. if b < -2.40000000000000008e46 or 5.6000000000000002e159 < b

                            1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto -0.5 \cdot b \]

                                  if -2.40000000000000008e46 < b < 5.6000000000000002e159

                                  1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

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

                                  Alternative 12: 78.5% accurate, 9.7× speedup?

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

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

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

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

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

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

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

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

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

                                  Alternative 13: 42.1% accurate, 31.5× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    Reproduce

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