\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r471384 = x;
double r471385 = y;
double r471386 = r471384 + r471385;
double r471387 = r471386 + r471384;
return r471387;
}
double f(double x, double y) {
double r471388 = 2.0;
double r471389 = x;
double r471390 = y;
double r471391 = fma(r471388, r471389, r471390);
return r471391;
}




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