\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r68492 = x;
double r68493 = y;
double r68494 = r68492 + r68493;
double r68495 = r68494 + r68492;
return r68495;
}
double f(double x, double y) {
double r68496 = 2.0;
double r68497 = x;
double r68498 = y;
double r68499 = fma(r68496, r68497, r68498);
return r68499;
}




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