
(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:
Herbie found 10 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(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}
(FPCore (x y z t a b) :precision binary64 (fma x y (fma a b (* z t))))
double code(double x, double y, double z, double t, double a, double b) {
return fma(x, y, fma(a, b, (z * t)));
}
function code(x, y, z, t, a, b) return fma(x, y, fma(a, b, Float64(z * t))) end
code[x_, y_, z_, t_, a_, b_] := N[(x * y + N[(a * b + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(x, y, \mathsf{fma}\left(a, b, z \cdot t\right)\right)
\end{array}
Initial program 99.6%
associate-+l+99.6%
fma-def99.6%
+-commutative99.6%
fma-def100.0%
Simplified100.0%
Final simplification100.0%
(FPCore (x y z t a b) :precision binary64 (+ (* a b) (fma x y (* z t))))
double code(double x, double y, double z, double t, double a, double b) {
return (a * b) + fma(x, y, (z * t));
}
function code(x, y, z, t, a, b) return Float64(Float64(a * b) + fma(x, y, Float64(z * t))) end
code[x_, y_, z_, t_, a_, b_] := N[(N[(a * b), $MachinePrecision] + N[(x * y + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot b + \mathsf{fma}\left(x, y, z \cdot t\right)
\end{array}
Initial program 99.6%
fma-def99.6%
Simplified99.6%
Final simplification99.6%
(FPCore (x y z t a b) :precision binary64 (+ (fma z t (* a b)) (* x y)))
double code(double x, double y, double z, double t, double a, double b) {
return fma(z, t, (a * b)) + (x * y);
}
function code(x, y, z, t, a, b) return Float64(fma(z, t, Float64(a * b)) + Float64(x * y)) end
code[x_, y_, z_, t_, a_, b_] := N[(N[(z * t + N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(z, t, a \cdot b\right) + x \cdot y
\end{array}
Initial program 99.6%
associate-+l+99.6%
fma-def99.6%
+-commutative99.6%
fma-def100.0%
Simplified100.0%
fma-udef100.0%
+-commutative100.0%
fma-udef99.6%
+-commutative99.6%
fma-udef99.6%
Applied egg-rr99.6%
Final simplification99.6%
(FPCore (x y z t a b)
:precision binary64
(if (<= (* a b) -7.8e+21)
(* a b)
(if (<= (* a b) -5.8e-245)
(* z t)
(if (<= (* a b) 2.3e-81)
(* x y)
(if (<= (* a b) 7e+129) (* z t) (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a * b) <= -7.8e+21) {
tmp = a * b;
} else if ((a * b) <= -5.8e-245) {
tmp = z * t;
} else if ((a * b) <= 2.3e-81) {
tmp = x * y;
} else if ((a * b) <= 7e+129) {
tmp = z * t;
} else {
tmp = a * b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((a * b) <= (-7.8d+21)) then
tmp = a * b
else if ((a * b) <= (-5.8d-245)) then
tmp = z * t
else if ((a * b) <= 2.3d-81) then
tmp = x * y
else if ((a * b) <= 7d+129) then
tmp = z * t
else
tmp = a * b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a * b) <= -7.8e+21) {
tmp = a * b;
} else if ((a * b) <= -5.8e-245) {
tmp = z * t;
} else if ((a * b) <= 2.3e-81) {
tmp = x * y;
} else if ((a * b) <= 7e+129) {
tmp = z * t;
} else {
tmp = a * b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a * b) <= -7.8e+21: tmp = a * b elif (a * b) <= -5.8e-245: tmp = z * t elif (a * b) <= 2.3e-81: tmp = x * y elif (a * b) <= 7e+129: tmp = z * t else: tmp = a * b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(a * b) <= -7.8e+21) tmp = Float64(a * b); elseif (Float64(a * b) <= -5.8e-245) tmp = Float64(z * t); elseif (Float64(a * b) <= 2.3e-81) tmp = Float64(x * y); elseif (Float64(a * b) <= 7e+129) tmp = Float64(z * t); else tmp = Float64(a * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((a * b) <= -7.8e+21) tmp = a * b; elseif ((a * b) <= -5.8e-245) tmp = z * t; elseif ((a * b) <= 2.3e-81) tmp = x * y; elseif ((a * b) <= 7e+129) tmp = z * t; else tmp = a * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(a * b), $MachinePrecision], -7.8e+21], N[(a * b), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], -5.8e-245], N[(z * t), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 2.3e-81], N[(x * y), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 7e+129], N[(z * t), $MachinePrecision], N[(a * b), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot b \leq -7.8 \cdot 10^{+21}:\\
\;\;\;\;a \cdot b\\
\mathbf{elif}\;a \cdot b \leq -5.8 \cdot 10^{-245}:\\
\;\;\;\;z \cdot t\\
\mathbf{elif}\;a \cdot b \leq 2.3 \cdot 10^{-81}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;a \cdot b \leq 7 \cdot 10^{+129}:\\
\;\;\;\;z \cdot t\\
\mathbf{else}:\\
\;\;\;\;a \cdot b\\
\end{array}
\end{array}
if (*.f64 a b) < -7.8e21 or 6.9999999999999997e129 < (*.f64 a b) Initial program 99.0%
Taylor expanded in a around inf 69.8%
if -7.8e21 < (*.f64 a b) < -5.7999999999999999e-245 or 2.29999999999999991e-81 < (*.f64 a b) < 6.9999999999999997e129Initial program 100.0%
Taylor expanded in z around inf 63.8%
if -5.7999999999999999e-245 < (*.f64 a b) < 2.29999999999999991e-81Initial program 100.0%
Taylor expanded in x around inf 57.0%
Final simplification64.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (* x y) -7e+166) (not (<= (* x y) 3.5e+113))) (* x y) (+ (* a b) (* z t))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((x * y) <= -7e+166) || !((x * y) <= 3.5e+113)) {
tmp = x * y;
} else {
tmp = (a * b) + (z * t);
}
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 (((x * y) <= (-7d+166)) .or. (.not. ((x * y) <= 3.5d+113))) then
tmp = x * y
else
tmp = (a * b) + (z * t)
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 (((x * y) <= -7e+166) || !((x * y) <= 3.5e+113)) {
tmp = x * y;
} else {
tmp = (a * b) + (z * t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if ((x * y) <= -7e+166) or not ((x * y) <= 3.5e+113): tmp = x * y else: tmp = (a * b) + (z * t) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((Float64(x * y) <= -7e+166) || !(Float64(x * y) <= 3.5e+113)) tmp = Float64(x * y); else tmp = Float64(Float64(a * b) + Float64(z * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (((x * y) <= -7e+166) || ~(((x * y) <= 3.5e+113))) tmp = x * y; else tmp = (a * b) + (z * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[N[(x * y), $MachinePrecision], -7e+166], N[Not[LessEqual[N[(x * y), $MachinePrecision], 3.5e+113]], $MachinePrecision]], N[(x * y), $MachinePrecision], N[(N[(a * b), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \cdot y \leq -7 \cdot 10^{+166} \lor \neg \left(x \cdot y \leq 3.5 \cdot 10^{+113}\right):\\
\;\;\;\;x \cdot y\\
\mathbf{else}:\\
\;\;\;\;a \cdot b + z \cdot t\\
\end{array}
\end{array}
if (*.f64 x y) < -6.9999999999999997e166 or 3.5000000000000001e113 < (*.f64 x y) Initial program 100.0%
Taylor expanded in x around inf 79.9%
if -6.9999999999999997e166 < (*.f64 x y) < 3.5000000000000001e113Initial program 99.4%
Taylor expanded in x around 0 86.1%
Final simplification84.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (* x y) -2.45e+162) (not (<= (* x y) 1.4e+58))) (+ (* a b) (* x y)) (+ (* a b) (* z t))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((x * y) <= -2.45e+162) || !((x * y) <= 1.4e+58)) {
tmp = (a * b) + (x * y);
} else {
tmp = (a * b) + (z * t);
}
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 (((x * y) <= (-2.45d+162)) .or. (.not. ((x * y) <= 1.4d+58))) then
tmp = (a * b) + (x * y)
else
tmp = (a * b) + (z * t)
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 (((x * y) <= -2.45e+162) || !((x * y) <= 1.4e+58)) {
tmp = (a * b) + (x * y);
} else {
tmp = (a * b) + (z * t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if ((x * y) <= -2.45e+162) or not ((x * y) <= 1.4e+58): tmp = (a * b) + (x * y) else: tmp = (a * b) + (z * t) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((Float64(x * y) <= -2.45e+162) || !(Float64(x * y) <= 1.4e+58)) tmp = Float64(Float64(a * b) + Float64(x * y)); else tmp = Float64(Float64(a * b) + Float64(z * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (((x * y) <= -2.45e+162) || ~(((x * y) <= 1.4e+58))) tmp = (a * b) + (x * y); else tmp = (a * b) + (z * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[N[(x * y), $MachinePrecision], -2.45e+162], N[Not[LessEqual[N[(x * y), $MachinePrecision], 1.4e+58]], $MachinePrecision]], N[(N[(a * b), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision], N[(N[(a * b), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \cdot y \leq -2.45 \cdot 10^{+162} \lor \neg \left(x \cdot y \leq 1.4 \cdot 10^{+58}\right):\\
\;\;\;\;a \cdot b + x \cdot y\\
\mathbf{else}:\\
\;\;\;\;a \cdot b + z \cdot t\\
\end{array}
\end{array}
if (*.f64 x y) < -2.45000000000000017e162 or 1.3999999999999999e58 < (*.f64 x y) Initial program 100.0%
Taylor expanded in z around 0 89.0%
if -2.45000000000000017e162 < (*.f64 x y) < 1.3999999999999999e58Initial program 99.4%
Taylor expanded in x around 0 87.0%
Final simplification87.6%
(FPCore (x y z t a b) :precision binary64 (if (<= (* a b) -1.6e-42) (+ (* a b) (* z t)) (if (<= (* a b) 1.35e+130) (+ (* x y) (* z t)) (+ (* a b) (* x y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a * b) <= -1.6e-42) {
tmp = (a * b) + (z * t);
} else if ((a * b) <= 1.35e+130) {
tmp = (x * y) + (z * t);
} else {
tmp = (a * b) + (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((a * b) <= (-1.6d-42)) then
tmp = (a * b) + (z * t)
else if ((a * b) <= 1.35d+130) then
tmp = (x * y) + (z * t)
else
tmp = (a * b) + (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a * b) <= -1.6e-42) {
tmp = (a * b) + (z * t);
} else if ((a * b) <= 1.35e+130) {
tmp = (x * y) + (z * t);
} else {
tmp = (a * b) + (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a * b) <= -1.6e-42: tmp = (a * b) + (z * t) elif (a * b) <= 1.35e+130: tmp = (x * y) + (z * t) else: tmp = (a * b) + (x * y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(a * b) <= -1.6e-42) tmp = Float64(Float64(a * b) + Float64(z * t)); elseif (Float64(a * b) <= 1.35e+130) tmp = Float64(Float64(x * y) + Float64(z * t)); else tmp = Float64(Float64(a * b) + Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((a * b) <= -1.6e-42) tmp = (a * b) + (z * t); elseif ((a * b) <= 1.35e+130) tmp = (x * y) + (z * t); else tmp = (a * b) + (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(a * b), $MachinePrecision], -1.6e-42], N[(N[(a * b), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 1.35e+130], N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision], N[(N[(a * b), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot b \leq -1.6 \cdot 10^{-42}:\\
\;\;\;\;a \cdot b + z \cdot t\\
\mathbf{elif}\;a \cdot b \leq 1.35 \cdot 10^{+130}:\\
\;\;\;\;x \cdot y + z \cdot t\\
\mathbf{else}:\\
\;\;\;\;a \cdot b + x \cdot y\\
\end{array}
\end{array}
if (*.f64 a b) < -1.60000000000000012e-42Initial program 98.6%
Taylor expanded in x around 0 86.6%
if -1.60000000000000012e-42 < (*.f64 a b) < 1.3499999999999999e130Initial program 100.0%
Taylor expanded in a around 0 93.2%
if 1.3499999999999999e130 < (*.f64 a b) Initial program 100.0%
Taylor expanded in z around 0 91.3%
Final simplification91.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (* a b) -4.7e+21) (not (<= (* a b) 7.2e+129))) (* a b) (* z t)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((a * b) <= -4.7e+21) || !((a * b) <= 7.2e+129)) {
tmp = a * b;
} else {
tmp = z * t;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (((a * b) <= (-4.7d+21)) .or. (.not. ((a * b) <= 7.2d+129))) then
tmp = a * b
else
tmp = z * t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((a * b) <= -4.7e+21) || !((a * b) <= 7.2e+129)) {
tmp = a * b;
} else {
tmp = z * t;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if ((a * b) <= -4.7e+21) or not ((a * b) <= 7.2e+129): tmp = a * b else: tmp = z * t return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((Float64(a * b) <= -4.7e+21) || !(Float64(a * b) <= 7.2e+129)) tmp = Float64(a * b); else tmp = Float64(z * t); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (((a * b) <= -4.7e+21) || ~(((a * b) <= 7.2e+129))) tmp = a * b; else tmp = z * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[N[(a * b), $MachinePrecision], -4.7e+21], N[Not[LessEqual[N[(a * b), $MachinePrecision], 7.2e+129]], $MachinePrecision]], N[(a * b), $MachinePrecision], N[(z * t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot b \leq -4.7 \cdot 10^{+21} \lor \neg \left(a \cdot b \leq 7.2 \cdot 10^{+129}\right):\\
\;\;\;\;a \cdot b\\
\mathbf{else}:\\
\;\;\;\;z \cdot t\\
\end{array}
\end{array}
if (*.f64 a b) < -4.7e21 or 7.2000000000000002e129 < (*.f64 a b) Initial program 99.0%
Taylor expanded in a around inf 69.8%
if -4.7e21 < (*.f64 a b) < 7.2000000000000002e129Initial program 100.0%
Taylor expanded in z around inf 51.9%
Final simplification58.8%
(FPCore (x y z t a b) :precision binary64 (+ (* a b) (+ (* x y) (* z t))))
double code(double x, double y, double z, double t, double a, double b) {
return (a * b) + ((x * y) + (z * t));
}
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 = (a * b) + ((x * y) + (z * t))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (a * b) + ((x * y) + (z * t));
}
def code(x, y, z, t, a, b): return (a * b) + ((x * y) + (z * t))
function code(x, y, z, t, a, b) return Float64(Float64(a * b) + Float64(Float64(x * y) + Float64(z * t))) end
function tmp = code(x, y, z, t, a, b) tmp = (a * b) + ((x * y) + (z * t)); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(a * b), $MachinePrecision] + N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot b + \left(x \cdot y + z \cdot t\right)
\end{array}
Initial program 99.6%
Final simplification99.6%
(FPCore (x y z t a b) :precision binary64 (* a b))
double code(double x, double y, double z, double t, double a, double b) {
return 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 = a * b
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return a * b;
}
def code(x, y, z, t, a, b): return a * b
function code(x, y, z, t, a, b) return Float64(a * b) end
function tmp = code(x, y, z, t, a, b) tmp = a * b; end
code[x_, y_, z_, t_, a_, b_] := N[(a * b), $MachinePrecision]
\begin{array}{l}
\\
a \cdot b
\end{array}
Initial program 99.6%
Taylor expanded in a around inf 33.5%
Final simplification33.5%
herbie shell --seed 2024027
(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)))