\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r356055 = x;
double r356056 = y;
double r356057 = r356055 + r356056;
double r356058 = r356057 + r356055;
return r356058;
}
double f(double x, double y) {
double r356059 = 2.0;
double r356060 = x;
double r356061 = y;
double r356062 = fma(r356059, r356060, r356061);
return r356062;
}




Bits error versus x




Bits error versus y
| Original | 0.0 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 0.0
Simplified0
Final simplification0
herbie shell --seed 2019326 +o rules:numerics
(FPCore (x y)
:name "Graphics.Rendering.Plot.Render.Plot.Legend:renderLegendOutside from plot-0.2.3.4, A"
:precision binary64
:herbie-target
(+ y (* 2 x))
(+ (+ x y) x))