
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ (* x y) (* z t)) (* a b)) (* c i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((x * y) + (z * t)) + (a * b)) + (c * i);
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
code = (((x * y) + (z * t)) + (a * b)) + (c * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((x * y) + (z * t)) + (a * b)) + (c * i);
}
def code(x, y, z, t, a, b, c, i): return (((x * y) + (z * t)) + (a * b)) + (c * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(x * y) + Float64(z * t)) + Float64(a * b)) + Float64(c * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (((x * y) + (z * t)) + (a * b)) + (c * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x \cdot y + z \cdot t\right) + a \cdot b\right) + c \cdot i
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 13 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ (* x y) (* z t)) (* a b)) (* c i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((x * y) + (z * t)) + (a * b)) + (c * i);
}
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
code = (((x * y) + (z * t)) + (a * b)) + (c * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((x * y) + (z * t)) + (a * b)) + (c * i);
}
def code(x, y, z, t, a, b, c, i): return (((x * y) + (z * t)) + (a * b)) + (c * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(x * y) + Float64(z * t)) + Float64(a * b)) + Float64(c * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (((x * y) + (z * t)) + (a * b)) + (c * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x \cdot y + z \cdot t\right) + a \cdot b\right) + c \cdot i
\end{array}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (+ (+ (* x y) (* z t)) (* a b)) (* c i))))
(if (<= t_1 INFINITY)
t_1
(* c (fma a (/ b c) (fma x (/ y c) (fma t (/ z c) i)))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (((x * y) + (z * t)) + (a * b)) + (c * i);
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = c * fma(a, (b / c), fma(x, (y / c), fma(t, (z / c), i)));
}
return tmp;
}
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(Float64(Float64(x * y) + Float64(z * t)) + Float64(a * b)) + Float64(c * i)) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(c * fma(a, Float64(b / c), fma(x, Float64(y / c), fma(t, Float64(z / c), i)))); end return tmp end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(c * N[(a * N[(b / c), $MachinePrecision] + N[(x * N[(y / c), $MachinePrecision] + N[(t * N[(z / c), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
t_1 := \left(\left(x \cdot y + z \cdot t\right) + a \cdot b\right) + c \cdot i\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(a, \frac{b}{c}, \mathsf{fma}\left(x, \frac{y}{c}, \mathsf{fma}\left(t, \frac{z}{c}, i\right)\right)\right)\\
\end{array}
\end{array}
if (+.f64 (+.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 a b)) (*.f64 c i)) < +inf.0Initial program 100.0%
if +inf.0 < (+.f64 (+.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 a b)) (*.f64 c i)) Initial program 0.0%
Taylor expanded in c around inf
lower-*.f64N/A
+-commutativeN/A
associate-+l+N/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
+-commutativeN/A
associate-+l+N/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6471.4
Applied rewrites71.4%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i) :precision binary64 (let* ((t_1 (+ (+ (+ (* x y) (* z t)) (* a b)) (* c i)))) (if (<= t_1 INFINITY) t_1 (* x (fma t (/ z x) (fma a (/ b x) y))))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (((x * y) + (z * t)) + (a * b)) + (c * i);
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = x * fma(t, (z / x), fma(a, (b / x), y));
}
return tmp;
}
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(Float64(Float64(x * y) + Float64(z * t)) + Float64(a * b)) + Float64(c * i)) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(x * fma(t, Float64(z / x), fma(a, Float64(b / x), y))); end return tmp end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(x * N[(t * N[(z / x), $MachinePrecision] + N[(a * N[(b / x), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
t_1 := \left(\left(x \cdot y + z \cdot t\right) + a \cdot b\right) + c \cdot i\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \mathsf{fma}\left(t, \frac{z}{x}, \mathsf{fma}\left(a, \frac{b}{x}, y\right)\right)\\
\end{array}
\end{array}
if (+.f64 (+.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 a b)) (*.f64 c i)) < +inf.0Initial program 100.0%
if +inf.0 < (+.f64 (+.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 a b)) (*.f64 c i)) Initial program 0.0%
Taylor expanded in c around 0
associate-+r+N/A
+-commutativeN/A
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6450.0
Applied rewrites50.0%
Taylor expanded in x around inf
Applied rewrites71.4%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (fma x y (* z t))) (t_2 (+ (* x y) (* z t))))
(if (<= t_2 -2e+87)
t_1
(if (<= t_2 5e+18)
(fma i c (* a b))
(if (<= t_2 1e+141) (fma x y (* a b)) t_1)))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = fma(x, y, (z * t));
double t_2 = (x * y) + (z * t);
double tmp;
if (t_2 <= -2e+87) {
tmp = t_1;
} else if (t_2 <= 5e+18) {
tmp = fma(i, c, (a * b));
} else if (t_2 <= 1e+141) {
tmp = fma(x, y, (a * b));
} else {
tmp = t_1;
}
return tmp;
}
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) t_1 = fma(x, y, Float64(z * t)) t_2 = Float64(Float64(x * y) + Float64(z * t)) tmp = 0.0 if (t_2 <= -2e+87) tmp = t_1; elseif (t_2 <= 5e+18) tmp = fma(i, c, Float64(a * b)); elseif (t_2 <= 1e+141) tmp = fma(x, y, Float64(a * b)); else tmp = t_1; end return tmp end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x * y + N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -2e+87], t$95$1, If[LessEqual[t$95$2, 5e+18], N[(i * c + N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+141], N[(x * y + N[(a * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(x, y, z \cdot t\right)\\
t_2 := x \cdot y + z \cdot t\\
\mathbf{if}\;t\_2 \leq -2 \cdot 10^{+87}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+18}:\\
\;\;\;\;\mathsf{fma}\left(i, c, a \cdot b\right)\\
\mathbf{elif}\;t\_2 \leq 10^{+141}:\\
\;\;\;\;\mathsf{fma}\left(x, y, a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 (*.f64 x y) (*.f64 z t)) < -1.9999999999999999e87 or 1.00000000000000002e141 < (+.f64 (*.f64 x y) (*.f64 z t)) Initial program 92.4%
Taylor expanded in c around 0
associate-+r+N/A
+-commutativeN/A
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6490.9
Applied rewrites90.9%
Taylor expanded in a around 0
Applied rewrites79.5%
if -1.9999999999999999e87 < (+.f64 (*.f64 x y) (*.f64 z t)) < 5e18Initial program 96.4%
Taylor expanded in a around inf
lower-*.f6481.9
Applied rewrites81.9%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6483.2
Applied rewrites83.2%
if 5e18 < (+.f64 (*.f64 x y) (*.f64 z t)) < 1.00000000000000002e141Initial program 99.8%
Taylor expanded in c around 0
associate-+r+N/A
+-commutativeN/A
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6486.1
Applied rewrites86.1%
Taylor expanded in a around inf
Applied rewrites72.8%
Final simplification79.9%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i) :precision binary64 (let* ((t_1 (+ (+ (+ (* x y) (* z t)) (* a b)) (* c i)))) (if (<= t_1 INFINITY) t_1 (fma x y (* z t)))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (((x * y) + (z * t)) + (a * b)) + (c * i);
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(x, y, (z * t));
}
return tmp;
}
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(Float64(Float64(x * y) + Float64(z * t)) + Float64(a * b)) + Float64(c * i)) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = fma(x, y, Float64(z * t)); end return tmp end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(x * y + N[(z * t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
t_1 := \left(\left(x \cdot y + z \cdot t\right) + a \cdot b\right) + c \cdot i\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(x, y, z \cdot t\right)\\
\end{array}
\end{array}
if (+.f64 (+.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 a b)) (*.f64 c i)) < +inf.0Initial program 100.0%
if +inf.0 < (+.f64 (+.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 a b)) (*.f64 c i)) Initial program 0.0%
Taylor expanded in c around 0
associate-+r+N/A
+-commutativeN/A
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6450.0
Applied rewrites50.0%
Taylor expanded in a around 0
Applied rewrites50.6%
Final simplification97.3%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i)
:precision binary64
(if (<= (* a b) -2.2e+194)
(* a b)
(if (<= (* a b) -1.25e-9)
(* x y)
(if (<= (* a b) 1.28e-263)
(* z t)
(if (<= (* a b) 3.1e+112) (* x y) (* a b))))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((a * b) <= -2.2e+194) {
tmp = a * b;
} else if ((a * b) <= -1.25e-9) {
tmp = x * y;
} else if ((a * b) <= 1.28e-263) {
tmp = z * t;
} else if ((a * b) <= 3.1e+112) {
tmp = x * y;
} else {
tmp = a * b;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((a * b) <= (-2.2d+194)) then
tmp = a * b
else if ((a * b) <= (-1.25d-9)) then
tmp = x * y
else if ((a * b) <= 1.28d-263) then
tmp = z * t
else if ((a * b) <= 3.1d+112) then
tmp = x * y
else
tmp = a * b
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((a * b) <= -2.2e+194) {
tmp = a * b;
} else if ((a * b) <= -1.25e-9) {
tmp = x * y;
} else if ((a * b) <= 1.28e-263) {
tmp = z * t;
} else if ((a * b) <= 3.1e+112) {
tmp = x * y;
} else {
tmp = a * b;
}
return tmp;
}
[x, y, z, t, a, b, c, i] = sort([x, y, z, t, a, b, c, i]) def code(x, y, z, t, a, b, c, i): tmp = 0 if (a * b) <= -2.2e+194: tmp = a * b elif (a * b) <= -1.25e-9: tmp = x * y elif (a * b) <= 1.28e-263: tmp = z * t elif (a * b) <= 3.1e+112: tmp = x * y else: tmp = a * b return tmp
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (Float64(a * b) <= -2.2e+194) tmp = Float64(a * b); elseif (Float64(a * b) <= -1.25e-9) tmp = Float64(x * y); elseif (Float64(a * b) <= 1.28e-263) tmp = Float64(z * t); elseif (Float64(a * b) <= 3.1e+112) tmp = Float64(x * y); else tmp = Float64(a * b); end return tmp end
x, y, z, t, a, b, c, i = num2cell(sort([x, y, z, t, a, b, c, i])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i)
tmp = 0.0;
if ((a * b) <= -2.2e+194)
tmp = a * b;
elseif ((a * b) <= -1.25e-9)
tmp = x * y;
elseif ((a * b) <= 1.28e-263)
tmp = z * t;
elseif ((a * b) <= 3.1e+112)
tmp = x * y;
else
tmp = a * b;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(a * b), $MachinePrecision], -2.2e+194], N[(a * b), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], -1.25e-9], N[(x * y), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 1.28e-263], N[(z * t), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 3.1e+112], N[(x * y), $MachinePrecision], N[(a * b), $MachinePrecision]]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
\mathbf{if}\;a \cdot b \leq -2.2 \cdot 10^{+194}:\\
\;\;\;\;a \cdot b\\
\mathbf{elif}\;a \cdot b \leq -1.25 \cdot 10^{-9}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;a \cdot b \leq 1.28 \cdot 10^{-263}:\\
\;\;\;\;z \cdot t\\
\mathbf{elif}\;a \cdot b \leq 3.1 \cdot 10^{+112}:\\
\;\;\;\;x \cdot y\\
\mathbf{else}:\\
\;\;\;\;a \cdot b\\
\end{array}
\end{array}
if (*.f64 a b) < -2.2000000000000001e194 or 3.09999999999999983e112 < (*.f64 a b) Initial program 85.9%
Taylor expanded in a around inf
lower-*.f6474.4
Applied rewrites74.4%
if -2.2000000000000001e194 < (*.f64 a b) < -1.25e-9 or 1.27999999999999998e-263 < (*.f64 a b) < 3.09999999999999983e112Initial program 98.0%
Taylor expanded in x around inf
lower-*.f6445.4
Applied rewrites45.4%
if -1.25e-9 < (*.f64 a b) < 1.27999999999999998e-263Initial program 99.9%
Taylor expanded in z around inf
lower-*.f6443.8
Applied rewrites43.8%
Final simplification54.6%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i) :precision binary64 (let* ((t_1 (fma a b (* z t))) (t_2 (fma x y t_1))) (if (<= (* x y) -2e-12) t_2 (if (<= (* x y) 1.5e+33) (fma c i t_1) t_2))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = fma(a, b, (z * t));
double t_2 = fma(x, y, t_1);
double tmp;
if ((x * y) <= -2e-12) {
tmp = t_2;
} else if ((x * y) <= 1.5e+33) {
tmp = fma(c, i, t_1);
} else {
tmp = t_2;
}
return tmp;
}
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) t_1 = fma(a, b, Float64(z * t)) t_2 = fma(x, y, t_1) tmp = 0.0 if (Float64(x * y) <= -2e-12) tmp = t_2; elseif (Float64(x * y) <= 1.5e+33) tmp = fma(c, i, t_1); else tmp = t_2; end return tmp end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(a * b + N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * y + t$95$1), $MachinePrecision]}, If[LessEqual[N[(x * y), $MachinePrecision], -2e-12], t$95$2, If[LessEqual[N[(x * y), $MachinePrecision], 1.5e+33], N[(c * i + t$95$1), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(a, b, z \cdot t\right)\\
t_2 := \mathsf{fma}\left(x, y, t\_1\right)\\
\mathbf{if}\;x \cdot y \leq -2 \cdot 10^{-12}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \cdot y \leq 1.5 \cdot 10^{+33}:\\
\;\;\;\;\mathsf{fma}\left(c, i, t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if (*.f64 x y) < -1.99999999999999996e-12 or 1.49999999999999992e33 < (*.f64 x y) Initial program 91.8%
Taylor expanded in c around 0
associate-+r+N/A
+-commutativeN/A
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6490.4
Applied rewrites90.4%
if -1.99999999999999996e-12 < (*.f64 x y) < 1.49999999999999992e33Initial program 97.0%
Taylor expanded in x around 0
+-commutativeN/A
associate-+l+N/A
+-commutativeN/A
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6494.5
Applied rewrites94.5%
Final simplification92.6%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (fma x y (* a b))))
(if (<= (* x y) -1e+64)
t_1
(if (<= (* x y) 2e+33) (fma c i (fma a b (* z t))) t_1))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = fma(x, y, (a * b));
double tmp;
if ((x * y) <= -1e+64) {
tmp = t_1;
} else if ((x * y) <= 2e+33) {
tmp = fma(c, i, fma(a, b, (z * t)));
} else {
tmp = t_1;
}
return tmp;
}
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) t_1 = fma(x, y, Float64(a * b)) tmp = 0.0 if (Float64(x * y) <= -1e+64) tmp = t_1; elseif (Float64(x * y) <= 2e+33) tmp = fma(c, i, fma(a, b, Float64(z * t))); else tmp = t_1; end return tmp end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x * y + N[(a * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(x * y), $MachinePrecision], -1e+64], t$95$1, If[LessEqual[N[(x * y), $MachinePrecision], 2e+33], N[(c * i + N[(a * b + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(x, y, a \cdot b\right)\\
\mathbf{if}\;x \cdot y \leq -1 \cdot 10^{+64}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \cdot y \leq 2 \cdot 10^{+33}:\\
\;\;\;\;\mathsf{fma}\left(c, i, \mathsf{fma}\left(a, b, z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (*.f64 x y) < -1.00000000000000002e64 or 1.9999999999999999e33 < (*.f64 x y) Initial program 91.5%
Taylor expanded in c around 0
associate-+r+N/A
+-commutativeN/A
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6490.0
Applied rewrites90.0%
Taylor expanded in a around inf
Applied rewrites79.3%
if -1.00000000000000002e64 < (*.f64 x y) < 1.9999999999999999e33Initial program 96.6%
Taylor expanded in x around 0
+-commutativeN/A
associate-+l+N/A
+-commutativeN/A
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6493.2
Applied rewrites93.2%
Final simplification87.4%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i)
:precision binary64
(if (<= (* a b) -5.5e+162)
(* a b)
(if (<= (* a b) -5.2e-18)
(* c i)
(if (<= (* a b) 9e+148) (* z t) (* a b)))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((a * b) <= -5.5e+162) {
tmp = a * b;
} else if ((a * b) <= -5.2e-18) {
tmp = c * i;
} else if ((a * b) <= 9e+148) {
tmp = z * t;
} else {
tmp = a * b;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((a * b) <= (-5.5d+162)) then
tmp = a * b
else if ((a * b) <= (-5.2d-18)) then
tmp = c * i
else if ((a * b) <= 9d+148) then
tmp = z * t
else
tmp = a * b
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((a * b) <= -5.5e+162) {
tmp = a * b;
} else if ((a * b) <= -5.2e-18) {
tmp = c * i;
} else if ((a * b) <= 9e+148) {
tmp = z * t;
} else {
tmp = a * b;
}
return tmp;
}
[x, y, z, t, a, b, c, i] = sort([x, y, z, t, a, b, c, i]) def code(x, y, z, t, a, b, c, i): tmp = 0 if (a * b) <= -5.5e+162: tmp = a * b elif (a * b) <= -5.2e-18: tmp = c * i elif (a * b) <= 9e+148: tmp = z * t else: tmp = a * b return tmp
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (Float64(a * b) <= -5.5e+162) tmp = Float64(a * b); elseif (Float64(a * b) <= -5.2e-18) tmp = Float64(c * i); elseif (Float64(a * b) <= 9e+148) tmp = Float64(z * t); else tmp = Float64(a * b); end return tmp end
x, y, z, t, a, b, c, i = num2cell(sort([x, y, z, t, a, b, c, i])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i)
tmp = 0.0;
if ((a * b) <= -5.5e+162)
tmp = a * b;
elseif ((a * b) <= -5.2e-18)
tmp = c * i;
elseif ((a * b) <= 9e+148)
tmp = z * t;
else
tmp = a * b;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(a * b), $MachinePrecision], -5.5e+162], N[(a * b), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], -5.2e-18], N[(c * i), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 9e+148], N[(z * t), $MachinePrecision], N[(a * b), $MachinePrecision]]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
\mathbf{if}\;a \cdot b \leq -5.5 \cdot 10^{+162}:\\
\;\;\;\;a \cdot b\\
\mathbf{elif}\;a \cdot b \leq -5.2 \cdot 10^{-18}:\\
\;\;\;\;c \cdot i\\
\mathbf{elif}\;a \cdot b \leq 9 \cdot 10^{+148}:\\
\;\;\;\;z \cdot t\\
\mathbf{else}:\\
\;\;\;\;a \cdot b\\
\end{array}
\end{array}
if (*.f64 a b) < -5.49999999999999966e162 or 8.99999999999999987e148 < (*.f64 a b) Initial program 85.5%
Taylor expanded in a around inf
lower-*.f6474.9
Applied rewrites74.9%
if -5.49999999999999966e162 < (*.f64 a b) < -5.2000000000000001e-18Initial program 97.0%
Taylor expanded in c around inf
lower-*.f6438.0
Applied rewrites38.0%
if -5.2000000000000001e-18 < (*.f64 a b) < 8.99999999999999987e148Initial program 99.2%
Taylor expanded in z around inf
lower-*.f6437.6
Applied rewrites37.6%
Final simplification49.8%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i) :precision binary64 (if (<= (* a b) -5e+77) (fma x y (* a b)) (if (<= (* a b) 2e+110) (fma x y (* z t)) (fma a b (* z t)))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((a * b) <= -5e+77) {
tmp = fma(x, y, (a * b));
} else if ((a * b) <= 2e+110) {
tmp = fma(x, y, (z * t));
} else {
tmp = fma(a, b, (z * t));
}
return tmp;
}
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (Float64(a * b) <= -5e+77) tmp = fma(x, y, Float64(a * b)); elseif (Float64(a * b) <= 2e+110) tmp = fma(x, y, Float64(z * t)); else tmp = fma(a, b, Float64(z * t)); end return tmp end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(a * b), $MachinePrecision], -5e+77], N[(x * y + N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 2e+110], N[(x * y + N[(z * t), $MachinePrecision]), $MachinePrecision], N[(a * b + N[(z * t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
\mathbf{if}\;a \cdot b \leq -5 \cdot 10^{+77}:\\
\;\;\;\;\mathsf{fma}\left(x, y, a \cdot b\right)\\
\mathbf{elif}\;a \cdot b \leq 2 \cdot 10^{+110}:\\
\;\;\;\;\mathsf{fma}\left(x, y, z \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(a, b, z \cdot t\right)\\
\end{array}
\end{array}
if (*.f64 a b) < -5.00000000000000004e77Initial program 88.1%
Taylor expanded in c around 0
associate-+r+N/A
+-commutativeN/A
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6483.0
Applied rewrites83.0%
Taylor expanded in a around inf
Applied rewrites75.3%
if -5.00000000000000004e77 < (*.f64 a b) < 2e110Initial program 99.3%
Taylor expanded in c around 0
associate-+r+N/A
+-commutativeN/A
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6474.7
Applied rewrites74.7%
Taylor expanded in a around 0
Applied rewrites71.8%
if 2e110 < (*.f64 a b) Initial program 87.5%
Taylor expanded in c around 0
associate-+r+N/A
+-commutativeN/A
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6481.8
Applied rewrites81.8%
Taylor expanded in x around 0
Applied rewrites79.3%
Final simplification74.0%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (fma a b (* z t))))
(if (<= (* z t) -2e+87)
t_1
(if (<= (* z t) 5e+149) (fma x y (* a b)) t_1))))assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = fma(a, b, (z * t));
double tmp;
if ((z * t) <= -2e+87) {
tmp = t_1;
} else if ((z * t) <= 5e+149) {
tmp = fma(x, y, (a * b));
} else {
tmp = t_1;
}
return tmp;
}
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) t_1 = fma(a, b, Float64(z * t)) tmp = 0.0 if (Float64(z * t) <= -2e+87) tmp = t_1; elseif (Float64(z * t) <= 5e+149) tmp = fma(x, y, Float64(a * b)); else tmp = t_1; end return tmp end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(a * b + N[(z * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(z * t), $MachinePrecision], -2e+87], t$95$1, If[LessEqual[N[(z * t), $MachinePrecision], 5e+149], N[(x * y + N[(a * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(a, b, z \cdot t\right)\\
\mathbf{if}\;z \cdot t \leq -2 \cdot 10^{+87}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \cdot t \leq 5 \cdot 10^{+149}:\\
\;\;\;\;\mathsf{fma}\left(x, y, a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (*.f64 z t) < -1.9999999999999999e87 or 4.9999999999999999e149 < (*.f64 z t) Initial program 92.9%
Taylor expanded in c around 0
associate-+r+N/A
+-commutativeN/A
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6493.5
Applied rewrites93.5%
Taylor expanded in x around 0
Applied rewrites86.7%
if -1.9999999999999999e87 < (*.f64 z t) < 4.9999999999999999e149Initial program 95.3%
Taylor expanded in c around 0
associate-+r+N/A
+-commutativeN/A
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6470.4
Applied rewrites70.4%
Taylor expanded in a around inf
Applied rewrites64.8%
Final simplification72.0%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i) :precision binary64 (if (<= (* x y) -8.5e+148) (* x y) (if (<= (* x y) 3.3e+180) (fma a b (* z t)) (* x y))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x * y) <= -8.5e+148) {
tmp = x * y;
} else if ((x * y) <= 3.3e+180) {
tmp = fma(a, b, (z * t));
} else {
tmp = x * y;
}
return tmp;
}
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (Float64(x * y) <= -8.5e+148) tmp = Float64(x * y); elseif (Float64(x * y) <= 3.3e+180) tmp = fma(a, b, Float64(z * t)); else tmp = Float64(x * y); end return tmp end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(x * y), $MachinePrecision], -8.5e+148], N[(x * y), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], 3.3e+180], N[(a * b + N[(z * t), $MachinePrecision]), $MachinePrecision], N[(x * y), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
\mathbf{if}\;x \cdot y \leq -8.5 \cdot 10^{+148}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;x \cdot y \leq 3.3 \cdot 10^{+180}:\\
\;\;\;\;\mathsf{fma}\left(a, b, z \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot y\\
\end{array}
\end{array}
if (*.f64 x y) < -8.4999999999999996e148 or 3.29999999999999989e180 < (*.f64 x y) Initial program 88.2%
Taylor expanded in x around inf
lower-*.f6480.0
Applied rewrites80.0%
if -8.4999999999999996e148 < (*.f64 x y) < 3.29999999999999989e180Initial program 96.8%
Taylor expanded in c around 0
associate-+r+N/A
+-commutativeN/A
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6473.6
Applied rewrites73.6%
Taylor expanded in x around 0
Applied rewrites62.6%
Final simplification67.2%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i) :precision binary64 (if (<= (* a b) -5.5e+162) (* a b) (if (<= (* a b) 5e+148) (* c i) (* a b))))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((a * b) <= -5.5e+162) {
tmp = a * b;
} else if ((a * b) <= 5e+148) {
tmp = c * i;
} else {
tmp = a * b;
}
return tmp;
}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((a * b) <= (-5.5d+162)) then
tmp = a * b
else if ((a * b) <= 5d+148) then
tmp = c * i
else
tmp = a * b
end if
code = tmp
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((a * b) <= -5.5e+162) {
tmp = a * b;
} else if ((a * b) <= 5e+148) {
tmp = c * i;
} else {
tmp = a * b;
}
return tmp;
}
[x, y, z, t, a, b, c, i] = sort([x, y, z, t, a, b, c, i]) def code(x, y, z, t, a, b, c, i): tmp = 0 if (a * b) <= -5.5e+162: tmp = a * b elif (a * b) <= 5e+148: tmp = c * i else: tmp = a * b return tmp
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (Float64(a * b) <= -5.5e+162) tmp = Float64(a * b); elseif (Float64(a * b) <= 5e+148) tmp = Float64(c * i); else tmp = Float64(a * b); end return tmp end
x, y, z, t, a, b, c, i = num2cell(sort([x, y, z, t, a, b, c, i])){:}
function tmp_2 = code(x, y, z, t, a, b, c, i)
tmp = 0.0;
if ((a * b) <= -5.5e+162)
tmp = a * b;
elseif ((a * b) <= 5e+148)
tmp = c * i;
else
tmp = a * b;
end
tmp_2 = tmp;
end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(a * b), $MachinePrecision], -5.5e+162], N[(a * b), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 5e+148], N[(c * i), $MachinePrecision], N[(a * b), $MachinePrecision]]]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
\begin{array}{l}
\mathbf{if}\;a \cdot b \leq -5.5 \cdot 10^{+162}:\\
\;\;\;\;a \cdot b\\
\mathbf{elif}\;a \cdot b \leq 5 \cdot 10^{+148}:\\
\;\;\;\;c \cdot i\\
\mathbf{else}:\\
\;\;\;\;a \cdot b\\
\end{array}
\end{array}
if (*.f64 a b) < -5.49999999999999966e162 or 5.00000000000000024e148 < (*.f64 a b) Initial program 85.5%
Taylor expanded in a around inf
lower-*.f6474.9
Applied rewrites74.9%
if -5.49999999999999966e162 < (*.f64 a b) < 5.00000000000000024e148Initial program 98.8%
Taylor expanded in c around inf
lower-*.f6431.0
Applied rewrites31.0%
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. (FPCore (x y z t a b c i) :precision binary64 (* a b))
assert(x < y && y < z && z < t && t < a && a < b && b < c && c < i);
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return a * b;
}
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function.
real(8) function code(x, y, z, t, a, b, c, i)
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), intent (in) :: c
real(8), intent (in) :: i
code = a * b
end function
assert x < y && y < z && z < t && t < a && a < b && b < c && c < i;
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return a * b;
}
[x, y, z, t, a, b, c, i] = sort([x, y, z, t, a, b, c, i]) def code(x, y, z, t, a, b, c, i): return a * b
x, y, z, t, a, b, c, i = sort([x, y, z, t, a, b, c, i]) function code(x, y, z, t, a, b, c, i) return Float64(a * b) end
x, y, z, t, a, b, c, i = num2cell(sort([x, y, z, t, a, b, c, i])){:}
function tmp = code(x, y, z, t, a, b, c, i)
tmp = a * b;
end
NOTE: x, y, z, t, a, b, c, and i should be sorted in increasing order before calling this function. code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(a * b), $MachinePrecision]
\begin{array}{l}
[x, y, z, t, a, b, c, i] = \mathsf{sort}([x, y, z, t, a, b, c, i])\\
\\
a \cdot b
\end{array}
Initial program 94.5%
Taylor expanded in a around inf
lower-*.f6429.5
Applied rewrites29.5%
herbie shell --seed 2024238
(FPCore (x y z t a b c i)
:name "Linear.V4:$cdot from linear-1.19.1.3, C"
:precision binary64
(+ (+ (+ (* x y) (* z t)) (* a b)) (* c i)))