\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r313937 = x;
double r313938 = y;
double r313939 = r313937 + r313938;
double r313940 = r313939 + r313937;
return r313940;
}
double f(double x, double y) {
double r313941 = 2.0;
double r313942 = x;
double r313943 = y;
double r313944 = fma(r313941, r313942, r313943);
return r313944;
}




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