\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r359288 = x;
double r359289 = y;
double r359290 = r359288 + r359289;
double r359291 = r359290 + r359288;
return r359291;
}
double f(double x, double y) {
double r359292 = 2.0;
double r359293 = x;
double r359294 = y;
double r359295 = fma(r359292, r359293, r359294);
return r359295;
}




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