\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r758216 = x;
double r758217 = y;
double r758218 = r758216 + r758217;
double r758219 = r758218 + r758216;
return r758219;
}
double f(double x, double y) {
double r758220 = 2.0;
double r758221 = x;
double r758222 = y;
double r758223 = fma(r758220, r758221, r758222);
return r758223;
}




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