
(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 9 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 (let* ((t_1 (+ (* a b) (+ (* x y) (* z t))))) (if (<= t_1 INFINITY) t_1 (* y (+ x (* a (/ b y)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (a * b) + ((x * y) + (z * t));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = y * (x + (a * (b / y)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (a * b) + ((x * y) + (z * t));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = y * (x + (a * (b / y)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (a * b) + ((x * y) + (z * t)) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = y * (x + (a * (b / y))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(a * b) + Float64(Float64(x * y) + Float64(z * t))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(y * Float64(x + Float64(a * Float64(b / y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (a * b) + ((x * y) + (z * t)); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = y * (x + (a * (b / y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(a * b), $MachinePrecision] + N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(y * N[(x + N[(a * N[(b / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot b + \left(x \cdot y + z \cdot t\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x + a \cdot \frac{b}{y}\right)\\
\end{array}
\end{array}
if (+.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 a b)) < +inf.0Initial program 100.0%
if +inf.0 < (+.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 a b)) Initial program 0.0%
fma-define0.0%
Simplified0.0%
Taylor expanded in z around inf 33.3%
+-commutative33.3%
associate-/l*33.3%
associate-/l*66.7%
Simplified66.7%
Taylor expanded in t around 0 33.3%
Taylor expanded in y around inf 33.3%
associate-/l*83.3%
Simplified83.3%
Final simplification99.6%
(FPCore (x y z t a b) :precision binary64 (fma x y (fma z t (* a b))))
double code(double x, double y, double z, double t, double a, double b) {
return fma(x, y, fma(z, t, (a * b)));
}
function code(x, y, z, t, a, b) return fma(x, y, fma(z, t, Float64(a * b))) end
code[x_, y_, z_, t_, a_, b_] := N[(x * y + N[(z * t + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(x, y, \mathsf{fma}\left(z, t, a \cdot b\right)\right)
\end{array}
Initial program 97.6%
associate-+l+97.6%
fma-define97.6%
fma-define98.0%
Simplified98.0%
(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 97.6%
associate-+l+97.6%
fma-define97.6%
+-commutative97.6%
fma-define98.0%
Simplified98.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -2.8e-64)
(* x y)
(if (<= y 3.9e-97)
(* z t)
(if (<= y 6.8e-9) (* a b) (if (<= y 6e+37) (* z t) (* x y))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -2.8e-64) {
tmp = x * y;
} else if (y <= 3.9e-97) {
tmp = z * t;
} else if (y <= 6.8e-9) {
tmp = a * b;
} else if (y <= 6e+37) {
tmp = z * t;
} else {
tmp = x * y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (y <= (-2.8d-64)) then
tmp = x * y
else if (y <= 3.9d-97) then
tmp = z * t
else if (y <= 6.8d-9) then
tmp = a * b
else if (y <= 6d+37) then
tmp = z * t
else
tmp = x * y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -2.8e-64) {
tmp = x * y;
} else if (y <= 3.9e-97) {
tmp = z * t;
} else if (y <= 6.8e-9) {
tmp = a * b;
} else if (y <= 6e+37) {
tmp = z * t;
} else {
tmp = x * y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -2.8e-64: tmp = x * y elif y <= 3.9e-97: tmp = z * t elif y <= 6.8e-9: tmp = a * b elif y <= 6e+37: tmp = z * t else: tmp = x * y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -2.8e-64) tmp = Float64(x * y); elseif (y <= 3.9e-97) tmp = Float64(z * t); elseif (y <= 6.8e-9) tmp = Float64(a * b); elseif (y <= 6e+37) tmp = Float64(z * t); else tmp = Float64(x * y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -2.8e-64) tmp = x * y; elseif (y <= 3.9e-97) tmp = z * t; elseif (y <= 6.8e-9) tmp = a * b; elseif (y <= 6e+37) tmp = z * t; else tmp = x * y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -2.8e-64], N[(x * y), $MachinePrecision], If[LessEqual[y, 3.9e-97], N[(z * t), $MachinePrecision], If[LessEqual[y, 6.8e-9], N[(a * b), $MachinePrecision], If[LessEqual[y, 6e+37], N[(z * t), $MachinePrecision], N[(x * y), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.8 \cdot 10^{-64}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;y \leq 3.9 \cdot 10^{-97}:\\
\;\;\;\;z \cdot t\\
\mathbf{elif}\;y \leq 6.8 \cdot 10^{-9}:\\
\;\;\;\;a \cdot b\\
\mathbf{elif}\;y \leq 6 \cdot 10^{+37}:\\
\;\;\;\;z \cdot t\\
\mathbf{else}:\\
\;\;\;\;x \cdot y\\
\end{array}
\end{array}
if y < -2.80000000000000004e-64 or 6.00000000000000043e37 < y Initial program 95.9%
Taylor expanded in x around inf 78.3%
Taylor expanded in x around inf 58.3%
*-commutative58.3%
Simplified58.3%
if -2.80000000000000004e-64 < y < 3.8999999999999998e-97 or 6.7999999999999997e-9 < y < 6.00000000000000043e37Initial program 100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in x around 0 82.5%
Taylor expanded in a around 0 47.9%
if 3.8999999999999998e-97 < y < 6.7999999999999997e-9Initial program 100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in a around inf 47.9%
Final simplification53.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (* a b) -2e+105) (not (<= (* a b) 2e+69))) (+ (* a b) (* x y)) (+ (* x y) (* z t))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((a * b) <= -2e+105) || !((a * b) <= 2e+69)) {
tmp = (a * b) + (x * y);
} else {
tmp = (x * y) + (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) <= (-2d+105)) .or. (.not. ((a * b) <= 2d+69))) then
tmp = (a * b) + (x * y)
else
tmp = (x * y) + (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) <= -2e+105) || !((a * b) <= 2e+69)) {
tmp = (a * b) + (x * y);
} else {
tmp = (x * y) + (z * t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if ((a * b) <= -2e+105) or not ((a * b) <= 2e+69): tmp = (a * b) + (x * y) else: tmp = (x * y) + (z * t) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((Float64(a * b) <= -2e+105) || !(Float64(a * b) <= 2e+69)) tmp = Float64(Float64(a * b) + Float64(x * y)); else tmp = Float64(Float64(x * y) + Float64(z * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (((a * b) <= -2e+105) || ~(((a * b) <= 2e+69))) tmp = (a * b) + (x * y); else tmp = (x * y) + (z * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[N[(a * b), $MachinePrecision], -2e+105], N[Not[LessEqual[N[(a * b), $MachinePrecision], 2e+69]], $MachinePrecision]], N[(N[(a * b), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision], N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot b \leq -2 \cdot 10^{+105} \lor \neg \left(a \cdot b \leq 2 \cdot 10^{+69}\right):\\
\;\;\;\;a \cdot b + x \cdot y\\
\mathbf{else}:\\
\;\;\;\;x \cdot y + z \cdot t\\
\end{array}
\end{array}
if (*.f64 a b) < -1.9999999999999999e105 or 2.0000000000000001e69 < (*.f64 a b) Initial program 93.5%
Taylor expanded in x around inf 87.8%
if -1.9999999999999999e105 < (*.f64 a b) < 2.0000000000000001e69Initial program 100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in y around inf 91.8%
+-commutative91.8%
associate-/l*88.8%
associate-/l*86.3%
Simplified86.3%
Taylor expanded in a around 0 83.9%
Taylor expanded in y around 0 90.9%
Final simplification89.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (* x y) -2e-88) (not (<= (* x y) 8e+19))) (+ (* x y) (* z t)) (+ (* a b) (* z t))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((x * y) <= -2e-88) || !((x * y) <= 8e+19)) {
tmp = (x * y) + (z * t);
} 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) <= (-2d-88)) .or. (.not. ((x * y) <= 8d+19))) then
tmp = (x * y) + (z * t)
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) <= -2e-88) || !((x * y) <= 8e+19)) {
tmp = (x * y) + (z * t);
} else {
tmp = (a * b) + (z * t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if ((x * y) <= -2e-88) or not ((x * y) <= 8e+19): tmp = (x * y) + (z * t) else: tmp = (a * b) + (z * t) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((Float64(x * y) <= -2e-88) || !(Float64(x * y) <= 8e+19)) tmp = Float64(Float64(x * y) + Float64(z * t)); 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) <= -2e-88) || ~(((x * y) <= 8e+19))) tmp = (x * y) + (z * t); 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], -2e-88], N[Not[LessEqual[N[(x * y), $MachinePrecision], 8e+19]], $MachinePrecision]], N[(N[(x * y), $MachinePrecision] + N[(z * t), $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 \cdot 10^{-88} \lor \neg \left(x \cdot y \leq 8 \cdot 10^{+19}\right):\\
\;\;\;\;x \cdot y + z \cdot t\\
\mathbf{else}:\\
\;\;\;\;a \cdot b + z \cdot t\\
\end{array}
\end{array}
if (*.f64 x y) < -1.99999999999999987e-88 or 8e19 < (*.f64 x y) Initial program 97.2%
fma-define97.2%
Simplified97.2%
Taylor expanded in y around inf 95.8%
+-commutative95.8%
associate-/l*93.4%
associate-/l*94.6%
Simplified94.6%
Taylor expanded in a around 0 83.6%
Taylor expanded in y around 0 83.6%
if -1.99999999999999987e-88 < (*.f64 x y) < 8e19Initial program 98.2%
fma-define98.2%
Simplified98.2%
Taylor expanded in x around 0 94.1%
Final simplification88.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -32.0) (not (<= y 1.5e+99))) (* x y) (+ (* a b) (* z t))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -32.0) || !(y <= 1.5e+99)) {
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 ((y <= (-32.0d0)) .or. (.not. (y <= 1.5d+99))) 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 ((y <= -32.0) || !(y <= 1.5e+99)) {
tmp = x * y;
} else {
tmp = (a * b) + (z * t);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -32.0) or not (y <= 1.5e+99): tmp = x * y else: tmp = (a * b) + (z * t) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -32.0) || !(y <= 1.5e+99)) 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 ((y <= -32.0) || ~((y <= 1.5e+99))) tmp = x * y; else tmp = (a * b) + (z * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -32.0], N[Not[LessEqual[y, 1.5e+99]], $MachinePrecision]], N[(x * y), $MachinePrecision], N[(N[(a * b), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -32 \lor \neg \left(y \leq 1.5 \cdot 10^{+99}\right):\\
\;\;\;\;x \cdot y\\
\mathbf{else}:\\
\;\;\;\;a \cdot b + z \cdot t\\
\end{array}
\end{array}
if y < -32 or 1.50000000000000007e99 < y Initial program 94.9%
Taylor expanded in x around inf 77.2%
Taylor expanded in x around inf 62.5%
*-commutative62.5%
Simplified62.5%
if -32 < y < 1.50000000000000007e99Initial program 100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in x around 0 78.2%
Final simplification71.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (* a b) -2.1e+105) (not (<= (* a b) 5.7e+116))) (* a b) (* z t)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((a * b) <= -2.1e+105) || !((a * b) <= 5.7e+116)) {
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) <= (-2.1d+105)) .or. (.not. ((a * b) <= 5.7d+116))) 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) <= -2.1e+105) || !((a * b) <= 5.7e+116)) {
tmp = a * b;
} else {
tmp = z * t;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if ((a * b) <= -2.1e+105) or not ((a * b) <= 5.7e+116): tmp = a * b else: tmp = z * t return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((Float64(a * b) <= -2.1e+105) || !(Float64(a * b) <= 5.7e+116)) 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) <= -2.1e+105) || ~(((a * b) <= 5.7e+116))) 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], -2.1e+105], N[Not[LessEqual[N[(a * b), $MachinePrecision], 5.7e+116]], $MachinePrecision]], N[(a * b), $MachinePrecision], N[(z * t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot b \leq -2.1 \cdot 10^{+105} \lor \neg \left(a \cdot b \leq 5.7 \cdot 10^{+116}\right):\\
\;\;\;\;a \cdot b\\
\mathbf{else}:\\
\;\;\;\;z \cdot t\\
\end{array}
\end{array}
if (*.f64 a b) < -2.1000000000000001e105 or 5.69999999999999983e116 < (*.f64 a b) Initial program 93.1%
fma-define93.1%
Simplified93.1%
Taylor expanded in a around inf 72.3%
if -2.1000000000000001e105 < (*.f64 a b) < 5.69999999999999983e116Initial program 100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in x around 0 52.8%
Taylor expanded in a around 0 43.3%
Final simplification53.1%
(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 97.6%
fma-define97.6%
Simplified97.6%
Taylor expanded in a around inf 32.2%
herbie shell --seed 2024163
(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)))