\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r97363 = x;
double r97364 = y;
double r97365 = r97363 + r97364;
double r97366 = r97365 + r97363;
return r97366;
}
double f(double x, double y) {
double r97367 = 2.0;
double r97368 = x;
double r97369 = y;
double r97370 = fma(r97367, r97368, r97369);
return r97370;
}




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