\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r372861 = x;
double r372862 = y;
double r372863 = r372861 + r372862;
double r372864 = r372863 + r372861;
return r372864;
}
double f(double x, double y) {
double r372865 = 2.0;
double r372866 = x;
double r372867 = y;
double r372868 = fma(r372865, r372866, r372867);
return r372868;
}




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