\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r369539 = x;
double r369540 = y;
double r369541 = r369539 + r369540;
double r369542 = r369541 + r369539;
return r369542;
}
double f(double x, double y) {
double r369543 = 2.0;
double r369544 = x;
double r369545 = y;
double r369546 = fma(r369543, r369544, r369545);
return r369546;
}




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