\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r19913219 = x;
double r19913220 = y;
double r19913221 = r19913219 + r19913220;
double r19913222 = r19913221 + r19913219;
return r19913222;
}
double f(double x, double y) {
double r19913223 = 2.0;
double r19913224 = x;
double r19913225 = y;
double r19913226 = fma(r19913223, r19913224, r19913225);
return r19913226;
}




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 2019164 +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 x))
(+ (+ x y) x))