\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r20553225 = x;
double r20553226 = y;
double r20553227 = r20553225 + r20553226;
double r20553228 = r20553227 + r20553225;
return r20553228;
}
double f(double x, double y) {
double r20553229 = 2.0;
double r20553230 = x;
double r20553231 = y;
double r20553232 = fma(r20553229, r20553230, r20553231);
return r20553232;
}




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 2019168 +o rules:numerics
(FPCore (x y)
:name "Graphics.Rendering.Plot.Render.Plot.Legend:renderLegendOutside from plot-0.2.3.4, A"
:herbie-target
(+ y (* 2.0 x))
(+ (+ x y) x))