Linear.V3:$cdot from linear-1.19.1.3, B

Percentage Accurate: 98.0% → 98.9%
Time: 5.3s
Alternatives: 8
Speedup: 1.2×

Specification

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

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

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

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

Alternative 1: 98.9% accurate, 1.2× speedup?

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

\\
\mathsf{fma}\left(y, x, \mathsf{fma}\left(b, a, t \cdot z\right)\right)
\end{array}
Derivation
  1. Initial program 98.0%

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \mathsf{fma}\left(y, x, \mathsf{fma}\left(b, a, \color{blue}{t \cdot z}\right)\right) \]
    13. lower-*.f6499.2

      \[\leadsto \mathsf{fma}\left(y, x, \mathsf{fma}\left(b, a, \color{blue}{t \cdot z}\right)\right) \]
  4. Applied rewrites99.2%

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

Alternative 2: 53.7% accurate, 0.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \cdot t \leq -5 \cdot 10^{+69}:\\ \;\;\;\;t \cdot z\\ \mathbf{elif}\;z \cdot t \leq -4 \cdot 10^{-242}:\\ \;\;\;\;b \cdot a\\ \mathbf{elif}\;z \cdot t \leq 5 \cdot 10^{-176}:\\ \;\;\;\;y \cdot x\\ \mathbf{elif}\;z \cdot t \leq 5 \cdot 10^{+94}:\\ \;\;\;\;b \cdot a\\ \mathbf{else}:\\ \;\;\;\;t \cdot z\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (<= (* z t) -5e+69)
   (* t z)
   (if (<= (* z t) -4e-242)
     (* b a)
     (if (<= (* z t) 5e-176)
       (* y x)
       (if (<= (* z t) 5e+94) (* b a) (* t z))))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if ((z * t) <= -5e+69) {
		tmp = t * z;
	} else if ((z * t) <= -4e-242) {
		tmp = b * a;
	} else if ((z * t) <= 5e-176) {
		tmp = y * x;
	} else if ((z * t) <= 5e+94) {
		tmp = b * a;
	} else {
		tmp = t * z;
	}
	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 ((z * t) <= (-5d+69)) then
        tmp = t * z
    else if ((z * t) <= (-4d-242)) then
        tmp = b * a
    else if ((z * t) <= 5d-176) then
        tmp = y * x
    else if ((z * t) <= 5d+94) then
        tmp = b * a
    else
        tmp = t * z
    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 ((z * t) <= -5e+69) {
		tmp = t * z;
	} else if ((z * t) <= -4e-242) {
		tmp = b * a;
	} else if ((z * t) <= 5e-176) {
		tmp = y * x;
	} else if ((z * t) <= 5e+94) {
		tmp = b * a;
	} else {
		tmp = t * z;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	tmp = 0
	if (z * t) <= -5e+69:
		tmp = t * z
	elif (z * t) <= -4e-242:
		tmp = b * a
	elif (z * t) <= 5e-176:
		tmp = y * x
	elif (z * t) <= 5e+94:
		tmp = b * a
	else:
		tmp = t * z
	return tmp
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (Float64(z * t) <= -5e+69)
		tmp = Float64(t * z);
	elseif (Float64(z * t) <= -4e-242)
		tmp = Float64(b * a);
	elseif (Float64(z * t) <= 5e-176)
		tmp = Float64(y * x);
	elseif (Float64(z * t) <= 5e+94)
		tmp = Float64(b * a);
	else
		tmp = Float64(t * z);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	tmp = 0.0;
	if ((z * t) <= -5e+69)
		tmp = t * z;
	elseif ((z * t) <= -4e-242)
		tmp = b * a;
	elseif ((z * t) <= 5e-176)
		tmp = y * x;
	elseif ((z * t) <= 5e+94)
		tmp = b * a;
	else
		tmp = t * z;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(z * t), $MachinePrecision], -5e+69], N[(t * z), $MachinePrecision], If[LessEqual[N[(z * t), $MachinePrecision], -4e-242], N[(b * a), $MachinePrecision], If[LessEqual[N[(z * t), $MachinePrecision], 5e-176], N[(y * x), $MachinePrecision], If[LessEqual[N[(z * t), $MachinePrecision], 5e+94], N[(b * a), $MachinePrecision], N[(t * z), $MachinePrecision]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \cdot t \leq -5 \cdot 10^{+69}:\\
\;\;\;\;t \cdot z\\

\mathbf{elif}\;z \cdot t \leq -4 \cdot 10^{-242}:\\
\;\;\;\;b \cdot a\\

\mathbf{elif}\;z \cdot t \leq 5 \cdot 10^{-176}:\\
\;\;\;\;y \cdot x\\

\mathbf{elif}\;z \cdot t \leq 5 \cdot 10^{+94}:\\
\;\;\;\;b \cdot a\\

\mathbf{else}:\\
\;\;\;\;t \cdot z\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (*.f64 z t) < -5.00000000000000036e69 or 5.0000000000000001e94 < (*.f64 z t)

    1. Initial program 95.9%

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

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

        \[\leadsto \color{blue}{b \cdot a} + t \cdot z \]
      2. lower-fma.f64N/A

        \[\leadsto \color{blue}{\mathsf{fma}\left(b, a, t \cdot z\right)} \]
      3. lower-*.f6485.3

        \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{t \cdot z}\right) \]
    5. Applied rewrites85.3%

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

      \[\leadsto \color{blue}{t \cdot z + x \cdot y} \]
    7. Step-by-step derivation
      1. lower-fma.f64N/A

        \[\leadsto \color{blue}{\mathsf{fma}\left(t, z, x \cdot y\right)} \]
      2. *-commutativeN/A

        \[\leadsto \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right) \]
      3. lower-*.f6483.8

        \[\leadsto \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right) \]
    8. Applied rewrites83.8%

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

      \[\leadsto t \cdot \color{blue}{z} \]
    10. Step-by-step derivation
      1. Applied rewrites72.2%

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

      if -5.00000000000000036e69 < (*.f64 z t) < -4e-242 or 5e-176 < (*.f64 z t) < 5.0000000000000001e94

      1. Initial program 98.9%

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

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

          \[\leadsto \color{blue}{b \cdot a} + x \cdot y \]
        2. lower-fma.f64N/A

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

          \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{y \cdot x}\right) \]
        4. lower-*.f6489.5

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

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

        \[\leadsto a \cdot \color{blue}{b} \]
      7. Step-by-step derivation
        1. Applied rewrites58.9%

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

        if -4e-242 < (*.f64 z t) < 5e-176

        1. Initial program 100.0%

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

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

            \[\leadsto \color{blue}{b \cdot a} + t \cdot z \]
          2. lower-fma.f64N/A

            \[\leadsto \color{blue}{\mathsf{fma}\left(b, a, t \cdot z\right)} \]
          3. lower-*.f6434.3

            \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{t \cdot z}\right) \]
        5. Applied rewrites34.3%

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

          \[\leadsto \color{blue}{t \cdot z + x \cdot y} \]
        7. Step-by-step derivation
          1. lower-fma.f64N/A

            \[\leadsto \color{blue}{\mathsf{fma}\left(t, z, x \cdot y\right)} \]
          2. *-commutativeN/A

            \[\leadsto \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right) \]
          3. lower-*.f6468.4

            \[\leadsto \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right) \]
        8. Applied rewrites68.4%

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

          \[\leadsto t \cdot \color{blue}{z} \]
        10. Step-by-step derivation
          1. Applied rewrites2.7%

            \[\leadsto t \cdot \color{blue}{z} \]
          2. Taylor expanded in x around inf

            \[\leadsto \color{blue}{x \cdot y} \]
          3. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto \color{blue}{y \cdot x} \]
            2. lower-*.f6468.4

              \[\leadsto \color{blue}{y \cdot x} \]
          4. Applied rewrites68.4%

            \[\leadsto \color{blue}{y \cdot x} \]
        11. Recombined 3 regimes into one program.
        12. Add Preprocessing

        Alternative 3: 86.0% accurate, 0.6× speedup?

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

          1. Initial program 96.2%

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

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

              \[\leadsto \color{blue}{b \cdot a} + t \cdot z \]
            2. lower-fma.f64N/A

              \[\leadsto \color{blue}{\mathsf{fma}\left(b, a, t \cdot z\right)} \]
            3. lower-*.f6485.3

              \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{t \cdot z}\right) \]
          5. Applied rewrites85.3%

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

          if -5.00000000000000036e69 < (*.f64 z t) < 5.0000000000000002e75

          1. Initial program 99.3%

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

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

              \[\leadsto \color{blue}{b \cdot a} + x \cdot y \]
            2. lower-fma.f64N/A

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

              \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{y \cdot x}\right) \]
            4. lower-*.f6495.0

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

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

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

        Alternative 4: 80.6% accurate, 0.6× speedup?

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

          1. Initial program 94.8%

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

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

              \[\leadsto \color{blue}{b \cdot a} + t \cdot z \]
            2. lower-fma.f64N/A

              \[\leadsto \color{blue}{\mathsf{fma}\left(b, a, t \cdot z\right)} \]
            3. lower-*.f6425.1

              \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{t \cdot z}\right) \]
          5. Applied rewrites25.1%

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

            \[\leadsto \color{blue}{t \cdot z + x \cdot y} \]
          7. Step-by-step derivation
            1. lower-fma.f64N/A

              \[\leadsto \color{blue}{\mathsf{fma}\left(t, z, x \cdot y\right)} \]
            2. *-commutativeN/A

              \[\leadsto \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right) \]
            3. lower-*.f6486.1

              \[\leadsto \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right) \]
          8. Applied rewrites86.1%

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

            \[\leadsto t \cdot \color{blue}{z} \]
          10. Step-by-step derivation
            1. Applied rewrites12.5%

              \[\leadsto t \cdot \color{blue}{z} \]
            2. Taylor expanded in x around inf

              \[\leadsto \color{blue}{x \cdot y} \]
            3. Step-by-step derivation
              1. *-commutativeN/A

                \[\leadsto \color{blue}{y \cdot x} \]
              2. lower-*.f6481.0

                \[\leadsto \color{blue}{y \cdot x} \]
            4. Applied rewrites81.0%

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

            if -9.9999999999999996e81 < (*.f64 x y) < 3.99999999999999963e215

            1. Initial program 99.4%

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

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

                \[\leadsto \color{blue}{b \cdot a} + t \cdot z \]
              2. lower-fma.f64N/A

                \[\leadsto \color{blue}{\mathsf{fma}\left(b, a, t \cdot z\right)} \]
              3. lower-*.f6483.4

                \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{t \cdot z}\right) \]
            5. Applied rewrites83.4%

              \[\leadsto \color{blue}{\mathsf{fma}\left(b, a, t \cdot z\right)} \]
          11. Recombined 2 regimes into one program.
          12. Final simplification82.6%

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

          Alternative 5: 85.7% accurate, 0.6× speedup?

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

            1. Initial program 95.0%

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

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

                \[\leadsto \color{blue}{b \cdot a} + t \cdot z \]
              2. lower-fma.f64N/A

                \[\leadsto \color{blue}{\mathsf{fma}\left(b, a, t \cdot z\right)} \]
              3. lower-*.f6482.3

                \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{t \cdot z}\right) \]
            5. Applied rewrites82.3%

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

              \[\leadsto \color{blue}{t \cdot z + x \cdot y} \]
            7. Step-by-step derivation
              1. lower-fma.f64N/A

                \[\leadsto \color{blue}{\mathsf{fma}\left(t, z, x \cdot y\right)} \]
              2. *-commutativeN/A

                \[\leadsto \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right) \]
              3. lower-*.f6485.6

                \[\leadsto \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right) \]
            8. Applied rewrites85.6%

              \[\leadsto \color{blue}{\mathsf{fma}\left(t, z, y \cdot x\right)} \]

            if -5.00000000000000036e69 < (*.f64 z t) < 5.0000000000000002e75

            1. Initial program 99.3%

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

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

                \[\leadsto \color{blue}{b \cdot a} + x \cdot y \]
              2. lower-fma.f64N/A

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

                \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{y \cdot x}\right) \]
              4. lower-*.f6495.0

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

              \[\leadsto \color{blue}{\mathsf{fma}\left(b, a, y \cdot x\right)} \]
            6. Step-by-step derivation
              1. Applied rewrites95.6%

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

              if 5.0000000000000002e75 < (*.f64 z t)

              1. Initial program 97.8%

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

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

                  \[\leadsto \color{blue}{b \cdot a} + t \cdot z \]
                2. lower-fma.f64N/A

                  \[\leadsto \color{blue}{\mathsf{fma}\left(b, a, t \cdot z\right)} \]
                3. lower-*.f6489.3

                  \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{t \cdot z}\right) \]
              5. Applied rewrites89.3%

                \[\leadsto \color{blue}{\mathsf{fma}\left(b, a, t \cdot z\right)} \]
            7. Recombined 3 regimes into one program.
            8. Add Preprocessing

            Alternative 6: 85.8% accurate, 0.6× speedup?

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

              1. Initial program 95.0%

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

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

                  \[\leadsto \color{blue}{b \cdot a} + t \cdot z \]
                2. lower-fma.f64N/A

                  \[\leadsto \color{blue}{\mathsf{fma}\left(b, a, t \cdot z\right)} \]
                3. lower-*.f6482.3

                  \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{t \cdot z}\right) \]
              5. Applied rewrites82.3%

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

                \[\leadsto \color{blue}{t \cdot z + x \cdot y} \]
              7. Step-by-step derivation
                1. lower-fma.f64N/A

                  \[\leadsto \color{blue}{\mathsf{fma}\left(t, z, x \cdot y\right)} \]
                2. *-commutativeN/A

                  \[\leadsto \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right) \]
                3. lower-*.f6485.6

                  \[\leadsto \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right) \]
              8. Applied rewrites85.6%

                \[\leadsto \color{blue}{\mathsf{fma}\left(t, z, y \cdot x\right)} \]

              if -5.00000000000000036e69 < (*.f64 z t) < 5.0000000000000002e75

              1. Initial program 99.3%

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

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

                  \[\leadsto \color{blue}{b \cdot a} + x \cdot y \]
                2. lower-fma.f64N/A

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

                  \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{y \cdot x}\right) \]
                4. lower-*.f6495.0

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

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

              if 5.0000000000000002e75 < (*.f64 z t)

              1. Initial program 97.8%

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

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

                  \[\leadsto \color{blue}{b \cdot a} + t \cdot z \]
                2. lower-fma.f64N/A

                  \[\leadsto \color{blue}{\mathsf{fma}\left(b, a, t \cdot z\right)} \]
                3. lower-*.f6489.3

                  \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{t \cdot z}\right) \]
              5. Applied rewrites89.3%

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

            Alternative 7: 53.6% accurate, 0.8× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \cdot t \leq -5 \cdot 10^{+69} \lor \neg \left(z \cdot t \leq 5 \cdot 10^{+94}\right):\\ \;\;\;\;t \cdot z\\ \mathbf{else}:\\ \;\;\;\;b \cdot a\\ \end{array} \end{array} \]
            (FPCore (x y z t a b)
             :precision binary64
             (if (or (<= (* z t) -5e+69) (not (<= (* z t) 5e+94))) (* t z) (* b a)))
            double code(double x, double y, double z, double t, double a, double b) {
            	double tmp;
            	if (((z * t) <= -5e+69) || !((z * t) <= 5e+94)) {
            		tmp = t * z;
            	} 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) :: tmp
                if (((z * t) <= (-5d+69)) .or. (.not. ((z * t) <= 5d+94))) then
                    tmp = t * z
                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 tmp;
            	if (((z * t) <= -5e+69) || !((z * t) <= 5e+94)) {
            		tmp = t * z;
            	} else {
            		tmp = b * a;
            	}
            	return tmp;
            }
            
            def code(x, y, z, t, a, b):
            	tmp = 0
            	if ((z * t) <= -5e+69) or not ((z * t) <= 5e+94):
            		tmp = t * z
            	else:
            		tmp = b * a
            	return tmp
            
            function code(x, y, z, t, a, b)
            	tmp = 0.0
            	if ((Float64(z * t) <= -5e+69) || !(Float64(z * t) <= 5e+94))
            		tmp = Float64(t * z);
            	else
            		tmp = Float64(b * a);
            	end
            	return tmp
            end
            
            function tmp_2 = code(x, y, z, t, a, b)
            	tmp = 0.0;
            	if (((z * t) <= -5e+69) || ~(((z * t) <= 5e+94)))
            		tmp = t * z;
            	else
            		tmp = b * a;
            	end
            	tmp_2 = tmp;
            end
            
            code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[N[(z * t), $MachinePrecision], -5e+69], N[Not[LessEqual[N[(z * t), $MachinePrecision], 5e+94]], $MachinePrecision]], N[(t * z), $MachinePrecision], N[(b * a), $MachinePrecision]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;z \cdot t \leq -5 \cdot 10^{+69} \lor \neg \left(z \cdot t \leq 5 \cdot 10^{+94}\right):\\
            \;\;\;\;t \cdot z\\
            
            \mathbf{else}:\\
            \;\;\;\;b \cdot a\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if (*.f64 z t) < -5.00000000000000036e69 or 5.0000000000000001e94 < (*.f64 z t)

              1. Initial program 95.9%

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

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

                  \[\leadsto \color{blue}{b \cdot a} + t \cdot z \]
                2. lower-fma.f64N/A

                  \[\leadsto \color{blue}{\mathsf{fma}\left(b, a, t \cdot z\right)} \]
                3. lower-*.f6485.3

                  \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{t \cdot z}\right) \]
              5. Applied rewrites85.3%

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

                \[\leadsto \color{blue}{t \cdot z + x \cdot y} \]
              7. Step-by-step derivation
                1. lower-fma.f64N/A

                  \[\leadsto \color{blue}{\mathsf{fma}\left(t, z, x \cdot y\right)} \]
                2. *-commutativeN/A

                  \[\leadsto \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right) \]
                3. lower-*.f6483.8

                  \[\leadsto \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right) \]
              8. Applied rewrites83.8%

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

                \[\leadsto t \cdot \color{blue}{z} \]
              10. Step-by-step derivation
                1. Applied rewrites72.2%

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

                if -5.00000000000000036e69 < (*.f64 z t) < 5.0000000000000001e94

                1. Initial program 99.4%

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

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

                    \[\leadsto \color{blue}{b \cdot a} + x \cdot y \]
                  2. lower-fma.f64N/A

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

                    \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{y \cdot x}\right) \]
                  4. lower-*.f6493.8

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

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

                  \[\leadsto a \cdot \color{blue}{b} \]
                7. Step-by-step derivation
                  1. Applied rewrites48.7%

                    \[\leadsto b \cdot \color{blue}{a} \]
                8. Recombined 2 regimes into one program.
                9. Final simplification57.8%

                  \[\leadsto \begin{array}{l} \mathbf{if}\;z \cdot t \leq -5 \cdot 10^{+69} \lor \neg \left(z \cdot t \leq 5 \cdot 10^{+94}\right):\\ \;\;\;\;t \cdot z\\ \mathbf{else}:\\ \;\;\;\;b \cdot a\\ \end{array} \]
                10. Add Preprocessing

                Alternative 8: 35.4% accurate, 3.7× speedup?

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

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

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

                    \[\leadsto \color{blue}{b \cdot a} + x \cdot y \]
                  2. lower-fma.f64N/A

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

                    \[\leadsto \mathsf{fma}\left(b, a, \color{blue}{y \cdot x}\right) \]
                  4. lower-*.f6469.9

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

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

                  \[\leadsto a \cdot \color{blue}{b} \]
                7. Step-by-step derivation
                  1. Applied rewrites36.0%

                    \[\leadsto b \cdot \color{blue}{a} \]
                  2. Add Preprocessing

                  Reproduce

                  ?
                  herbie shell --seed 2024307 
                  (FPCore (x y z t a b)
                    :name "Linear.V3:$cdot from linear-1.19.1.3, B"
                    :precision binary64
                    (+ (+ (* x y) (* z t)) (* a b)))