\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r532989 = x;
double r532990 = y;
double r532991 = r532989 + r532990;
double r532992 = r532991 + r532989;
return r532992;
}
double f(double x, double y) {
double r532993 = 2.0;
double r532994 = x;
double r532995 = y;
double r532996 = fma(r532993, r532994, r532995);
return r532996;
}




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