
(FPCore (x y z) :precision binary64 (+ (* x (+ y z)) (* z 5.0)))
double code(double x, double y, double z) {
return (x * (y + z)) + (z * 5.0);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (x * (y + z)) + (z * 5.0d0)
end function
public static double code(double x, double y, double z) {
return (x * (y + z)) + (z * 5.0);
}
def code(x, y, z): return (x * (y + z)) + (z * 5.0)
function code(x, y, z) return Float64(Float64(x * Float64(y + z)) + Float64(z * 5.0)) end
function tmp = code(x, y, z) tmp = (x * (y + z)) + (z * 5.0); end
code[x_, y_, z_] := N[(N[(x * N[(y + z), $MachinePrecision]), $MachinePrecision] + N[(z * 5.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(y + z\right) + z \cdot 5
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 10 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (+ (* x (+ y z)) (* z 5.0)))
double code(double x, double y, double z) {
return (x * (y + z)) + (z * 5.0);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (x * (y + z)) + (z * 5.0d0)
end function
public static double code(double x, double y, double z) {
return (x * (y + z)) + (z * 5.0);
}
def code(x, y, z): return (x * (y + z)) + (z * 5.0)
function code(x, y, z) return Float64(Float64(x * Float64(y + z)) + Float64(z * 5.0)) end
function tmp = code(x, y, z) tmp = (x * (y + z)) + (z * 5.0); end
code[x_, y_, z_] := N[(N[(x * N[(y + z), $MachinePrecision]), $MachinePrecision] + N[(z * 5.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(y + z\right) + z \cdot 5
\end{array}
(FPCore (x y z) :precision binary64 (fma z 5.0 (* x (+ y z))))
double code(double x, double y, double z) {
return fma(z, 5.0, (x * (y + z)));
}
function code(x, y, z) return fma(z, 5.0, Float64(x * Float64(y + z))) end
code[x_, y_, z_] := N[(z * 5.0 + N[(x * N[(y + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(z, 5, x \cdot \left(y + z\right)\right)
\end{array}
Initial program 99.9%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f64100.0
lift-*.f64N/A
*-commutativeN/A
lower-*.f64100.0
lift-+.f64N/A
+-commutativeN/A
lower-+.f64100.0
Applied rewrites100.0%
Final simplification100.0%
(FPCore (x y z) :precision binary64 (let* ((t_0 (* x (+ y z)))) (if (<= x -5.0) t_0 (if (<= x 5.0) (+ (* 5.0 z) (* x y)) t_0))))
double code(double x, double y, double z) {
double t_0 = x * (y + z);
double tmp;
if (x <= -5.0) {
tmp = t_0;
} else if (x <= 5.0) {
tmp = (5.0 * z) + (x * y);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = x * (y + z)
if (x <= (-5.0d0)) then
tmp = t_0
else if (x <= 5.0d0) then
tmp = (5.0d0 * z) + (x * y)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (y + z);
double tmp;
if (x <= -5.0) {
tmp = t_0;
} else if (x <= 5.0) {
tmp = (5.0 * z) + (x * y);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = x * (y + z) tmp = 0 if x <= -5.0: tmp = t_0 elif x <= 5.0: tmp = (5.0 * z) + (x * y) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(y + z)) tmp = 0.0 if (x <= -5.0) tmp = t_0; elseif (x <= 5.0) tmp = Float64(Float64(5.0 * z) + Float64(x * y)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (y + z); tmp = 0.0; if (x <= -5.0) tmp = t_0; elseif (x <= 5.0) tmp = (5.0 * z) + (x * y); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(y + z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.0], t$95$0, If[LessEqual[x, 5.0], N[(N[(5.0 * z), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(y + z\right)\\
\mathbf{if}\;x \leq -5:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 5:\\
\;\;\;\;5 \cdot z + x \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -5 or 5 < x Initial program 99.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-+.f6499.3
Applied rewrites99.3%
if -5 < x < 5Initial program 99.9%
Taylor expanded in z around 0
*-commutativeN/A
lower-*.f6498.7
Applied rewrites98.7%
Final simplification99.0%
(FPCore (x y z) :precision binary64 (let* ((t_0 (* x (+ y z)))) (if (<= x -5.0) t_0 (if (<= x 5.0) (fma z 5.0 (* x y)) t_0))))
double code(double x, double y, double z) {
double t_0 = x * (y + z);
double tmp;
if (x <= -5.0) {
tmp = t_0;
} else if (x <= 5.0) {
tmp = fma(z, 5.0, (x * y));
} else {
tmp = t_0;
}
return tmp;
}
function code(x, y, z) t_0 = Float64(x * Float64(y + z)) tmp = 0.0 if (x <= -5.0) tmp = t_0; elseif (x <= 5.0) tmp = fma(z, 5.0, Float64(x * y)); else tmp = t_0; end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(y + z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.0], t$95$0, If[LessEqual[x, 5.0], N[(z * 5.0 + N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(y + z\right)\\
\mathbf{if}\;x \leq -5:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 5:\\
\;\;\;\;\mathsf{fma}\left(z, 5, x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -5 or 5 < x Initial program 99.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-+.f6499.3
Applied rewrites99.3%
if -5 < x < 5Initial program 99.9%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f64100.0
lift-*.f64N/A
*-commutativeN/A
lower-*.f64100.0
lift-+.f64N/A
+-commutativeN/A
lower-+.f64100.0
Applied rewrites100.0%
Taylor expanded in z around 0
*-commutativeN/A
lower-*.f6498.6
Applied rewrites98.6%
Final simplification98.9%
(FPCore (x y z) :precision binary64 (let* ((t_0 (* (- x -5.0) z))) (if (<= z -2.6e+49) t_0 (if (<= z 2.65e-36) (fma z x (* x y)) t_0))))
double code(double x, double y, double z) {
double t_0 = (x - -5.0) * z;
double tmp;
if (z <= -2.6e+49) {
tmp = t_0;
} else if (z <= 2.65e-36) {
tmp = fma(z, x, (x * y));
} else {
tmp = t_0;
}
return tmp;
}
function code(x, y, z) t_0 = Float64(Float64(x - -5.0) * z) tmp = 0.0 if (z <= -2.6e+49) tmp = t_0; elseif (z <= 2.65e-36) tmp = fma(z, x, Float64(x * y)); else tmp = t_0; end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x - -5.0), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -2.6e+49], t$95$0, If[LessEqual[z, 2.65e-36], N[(z * x + N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(x - -5\right) \cdot z\\
\mathbf{if}\;z \leq -2.6 \cdot 10^{+49}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 2.65 \cdot 10^{-36}:\\
\;\;\;\;\mathsf{fma}\left(z, x, x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if z < -2.59999999999999989e49 or 2.6499999999999999e-36 < z Initial program 99.9%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
metadata-evalN/A
sub-negN/A
lower--.f6488.9
Applied rewrites88.9%
if -2.59999999999999989e49 < z < 2.6499999999999999e-36Initial program 99.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-+.f6483.1
Applied rewrites83.1%
Applied rewrites83.2%
(FPCore (x y z) :precision binary64 (let* ((t_0 (* (- x -5.0) z))) (if (<= z -2.6e+49) t_0 (if (<= z 2.65e-36) (* x (+ y z)) t_0))))
double code(double x, double y, double z) {
double t_0 = (x - -5.0) * z;
double tmp;
if (z <= -2.6e+49) {
tmp = t_0;
} else if (z <= 2.65e-36) {
tmp = x * (y + z);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x - (-5.0d0)) * z
if (z <= (-2.6d+49)) then
tmp = t_0
else if (z <= 2.65d-36) then
tmp = x * (y + z)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x - -5.0) * z;
double tmp;
if (z <= -2.6e+49) {
tmp = t_0;
} else if (z <= 2.65e-36) {
tmp = x * (y + z);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x - -5.0) * z tmp = 0 if z <= -2.6e+49: tmp = t_0 elif z <= 2.65e-36: tmp = x * (y + z) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x - -5.0) * z) tmp = 0.0 if (z <= -2.6e+49) tmp = t_0; elseif (z <= 2.65e-36) tmp = Float64(x * Float64(y + z)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x - -5.0) * z; tmp = 0.0; if (z <= -2.6e+49) tmp = t_0; elseif (z <= 2.65e-36) tmp = x * (y + z); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x - -5.0), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -2.6e+49], t$95$0, If[LessEqual[z, 2.65e-36], N[(x * N[(y + z), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(x - -5\right) \cdot z\\
\mathbf{if}\;z \leq -2.6 \cdot 10^{+49}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 2.65 \cdot 10^{-36}:\\
\;\;\;\;x \cdot \left(y + z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if z < -2.59999999999999989e49 or 2.6499999999999999e-36 < z Initial program 99.9%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
metadata-evalN/A
sub-negN/A
lower--.f6488.9
Applied rewrites88.9%
if -2.59999999999999989e49 < z < 2.6499999999999999e-36Initial program 99.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-+.f6483.1
Applied rewrites83.1%
Final simplification86.3%
(FPCore (x y z) :precision binary64 (let* ((t_0 (* x (+ y z)))) (if (<= x -6.6e-72) t_0 (if (<= x 7e-61) (* 5.0 z) t_0))))
double code(double x, double y, double z) {
double t_0 = x * (y + z);
double tmp;
if (x <= -6.6e-72) {
tmp = t_0;
} else if (x <= 7e-61) {
tmp = 5.0 * z;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = x * (y + z)
if (x <= (-6.6d-72)) then
tmp = t_0
else if (x <= 7d-61) then
tmp = 5.0d0 * z
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (y + z);
double tmp;
if (x <= -6.6e-72) {
tmp = t_0;
} else if (x <= 7e-61) {
tmp = 5.0 * z;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = x * (y + z) tmp = 0 if x <= -6.6e-72: tmp = t_0 elif x <= 7e-61: tmp = 5.0 * z else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(y + z)) tmp = 0.0 if (x <= -6.6e-72) tmp = t_0; elseif (x <= 7e-61) tmp = Float64(5.0 * z); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (y + z); tmp = 0.0; if (x <= -6.6e-72) tmp = t_0; elseif (x <= 7e-61) tmp = 5.0 * z; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(y + z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6.6e-72], t$95$0, If[LessEqual[x, 7e-61], N[(5.0 * z), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(y + z\right)\\
\mathbf{if}\;x \leq -6.6 \cdot 10^{-72}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 7 \cdot 10^{-61}:\\
\;\;\;\;5 \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -6.6e-72 or 7.0000000000000006e-61 < x Initial program 99.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-+.f6492.1
Applied rewrites92.1%
if -6.6e-72 < x < 7.0000000000000006e-61Initial program 99.9%
Taylor expanded in x around 0
lower-*.f6476.2
Applied rewrites76.2%
Final simplification85.8%
(FPCore (x y z) :precision binary64 (if (<= x -6.6e-72) (* x y) (if (<= x 24000.0) (* 5.0 z) (* x z))))
double code(double x, double y, double z) {
double tmp;
if (x <= -6.6e-72) {
tmp = x * y;
} else if (x <= 24000.0) {
tmp = 5.0 * z;
} else {
tmp = x * z;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-6.6d-72)) then
tmp = x * y
else if (x <= 24000.0d0) then
tmp = 5.0d0 * z
else
tmp = x * z
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -6.6e-72) {
tmp = x * y;
} else if (x <= 24000.0) {
tmp = 5.0 * z;
} else {
tmp = x * z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -6.6e-72: tmp = x * y elif x <= 24000.0: tmp = 5.0 * z else: tmp = x * z return tmp
function code(x, y, z) tmp = 0.0 if (x <= -6.6e-72) tmp = Float64(x * y); elseif (x <= 24000.0) tmp = Float64(5.0 * z); else tmp = Float64(x * z); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -6.6e-72) tmp = x * y; elseif (x <= 24000.0) tmp = 5.0 * z; else tmp = x * z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -6.6e-72], N[(x * y), $MachinePrecision], If[LessEqual[x, 24000.0], N[(5.0 * z), $MachinePrecision], N[(x * z), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.6 \cdot 10^{-72}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;x \leq 24000:\\
\;\;\;\;5 \cdot z\\
\mathbf{else}:\\
\;\;\;\;x \cdot z\\
\end{array}
\end{array}
if x < -6.6e-72Initial program 99.9%
Taylor expanded in z around 0
*-commutativeN/A
lower-*.f6455.2
Applied rewrites55.2%
if -6.6e-72 < x < 24000Initial program 99.9%
Taylor expanded in x around 0
lower-*.f6471.2
Applied rewrites71.2%
if 24000 < x Initial program 99.9%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
metadata-evalN/A
sub-negN/A
lower--.f6465.9
Applied rewrites65.9%
Taylor expanded in x around inf
Applied rewrites65.9%
Final simplification65.1%
(FPCore (x y z) :precision binary64 (if (<= x -5.0) (* x z) (if (<= x 24000.0) (* 5.0 z) (* x z))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.0) {
tmp = x * z;
} else if (x <= 24000.0) {
tmp = 5.0 * z;
} else {
tmp = x * z;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-5.0d0)) then
tmp = x * z
else if (x <= 24000.0d0) then
tmp = 5.0d0 * z
else
tmp = x * z
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -5.0) {
tmp = x * z;
} else if (x <= 24000.0) {
tmp = 5.0 * z;
} else {
tmp = x * z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.0: tmp = x * z elif x <= 24000.0: tmp = 5.0 * z else: tmp = x * z return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.0) tmp = Float64(x * z); elseif (x <= 24000.0) tmp = Float64(5.0 * z); else tmp = Float64(x * z); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.0) tmp = x * z; elseif (x <= 24000.0) tmp = 5.0 * z; else tmp = x * z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.0], N[(x * z), $MachinePrecision], If[LessEqual[x, 24000.0], N[(5.0 * z), $MachinePrecision], N[(x * z), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5:\\
\;\;\;\;x \cdot z\\
\mathbf{elif}\;x \leq 24000:\\
\;\;\;\;5 \cdot z\\
\mathbf{else}:\\
\;\;\;\;x \cdot z\\
\end{array}
\end{array}
if x < -5 or 24000 < x Initial program 99.9%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
metadata-evalN/A
sub-negN/A
lower--.f6456.5
Applied rewrites56.5%
Taylor expanded in x around inf
Applied rewrites55.9%
if -5 < x < 24000Initial program 99.9%
Taylor expanded in x around 0
lower-*.f6467.1
Applied rewrites67.1%
Final simplification61.6%
(FPCore (x y z) :precision binary64 (fma y x (* (+ x 5.0) z)))
double code(double x, double y, double z) {
return fma(y, x, ((x + 5.0) * z));
}
function code(x, y, z) return fma(y, x, Float64(Float64(x + 5.0) * z)) end
code[x_, y_, z_] := N[(y * x + N[(N[(x + 5.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(y, x, \left(x + 5\right) \cdot z\right)
\end{array}
Initial program 99.9%
lift-+.f64N/A
lift-*.f64N/A
lift-+.f64N/A
distribute-rgt-inN/A
associate-+l+N/A
lower-fma.f64N/A
lift-*.f64N/A
distribute-lft-outN/A
lower-*.f64N/A
lower-+.f6499.6
Applied rewrites99.6%
Final simplification99.6%
(FPCore (x y z) :precision binary64 (* x z))
double code(double x, double y, double z) {
return x * z;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x * z
end function
public static double code(double x, double y, double z) {
return x * z;
}
def code(x, y, z): return x * z
function code(x, y, z) return Float64(x * z) end
function tmp = code(x, y, z) tmp = x * z; end
code[x_, y_, z_] := N[(x * z), $MachinePrecision]
\begin{array}{l}
\\
x \cdot z
\end{array}
Initial program 99.9%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
metadata-evalN/A
sub-negN/A
lower--.f6462.4
Applied rewrites62.4%
Taylor expanded in x around inf
Applied rewrites29.1%
Final simplification29.1%
(FPCore (x y z) :precision binary64 (+ (* (+ x 5.0) z) (* x y)))
double code(double x, double y, double z) {
return ((x + 5.0) * z) + (x * y);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x + 5.0d0) * z) + (x * y)
end function
public static double code(double x, double y, double z) {
return ((x + 5.0) * z) + (x * y);
}
def code(x, y, z): return ((x + 5.0) * z) + (x * y)
function code(x, y, z) return Float64(Float64(Float64(x + 5.0) * z) + Float64(x * y)) end
function tmp = code(x, y, z) tmp = ((x + 5.0) * z) + (x * y); end
code[x_, y_, z_] := N[(N[(N[(x + 5.0), $MachinePrecision] * z), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + 5\right) \cdot z + x \cdot y
\end{array}
herbie shell --seed 2024276
(FPCore (x y z)
:name "Graphics.Rendering.Plot.Render.Plot.Legend:renderLegendOutside from plot-0.2.3.4, C"
:precision binary64
:alt
(! :herbie-platform default (+ (* (+ x 5) z) (* x y)))
(+ (* x (+ y z)) (* z 5.0)))