\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r509348 = x;
double r509349 = y;
double r509350 = r509348 + r509349;
double r509351 = r509350 + r509348;
return r509351;
}
double f(double x, double y) {
double r509352 = 2.0;
double r509353 = x;
double r509354 = y;
double r509355 = fma(r509352, r509353, r509354);
return r509355;
}




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