\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r445285 = x;
double r445286 = y;
double r445287 = r445285 + r445286;
double r445288 = r445287 + r445285;
return r445288;
}
double f(double x, double y) {
double r445289 = 2.0;
double r445290 = x;
double r445291 = y;
double r445292 = fma(r445289, r445290, r445291);
return r445292;
}




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 2019306 +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))