\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r415988 = x;
double r415989 = y;
double r415990 = r415988 + r415989;
double r415991 = r415990 + r415988;
return r415991;
}
double f(double x, double y) {
double r415992 = 2.0;
double r415993 = x;
double r415994 = y;
double r415995 = fma(r415992, r415993, r415994);
return r415995;
}




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