\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r341334 = x;
double r341335 = y;
double r341336 = r341334 + r341335;
double r341337 = r341336 + r341334;
return r341337;
}
double f(double x, double y) {
double r341338 = 2.0;
double r341339 = x;
double r341340 = y;
double r341341 = fma(r341338, r341339, r341340);
return r341341;
}




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 2019179 +o rules:numerics
(FPCore (x y)
:name "Graphics.Rendering.Plot.Render.Plot.Legend:renderLegendOutside from plot-0.2.3.4, A"
:herbie-target
(+ y (* 2.0 x))
(+ (+ x y) x))