\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r28303005 = x;
double r28303006 = y;
double r28303007 = r28303005 + r28303006;
double r28303008 = r28303007 + r28303005;
return r28303008;
}
double f(double x, double y) {
double r28303009 = 2.0;
double r28303010 = x;
double r28303011 = y;
double r28303012 = fma(r28303009, r28303010, r28303011);
return r28303012;
}




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