\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r24009068 = x;
double r24009069 = y;
double r24009070 = r24009068 + r24009069;
double r24009071 = r24009070 + r24009068;
return r24009071;
}
double f(double x, double y) {
double r24009072 = 2.0;
double r24009073 = x;
double r24009074 = y;
double r24009075 = fma(r24009072, r24009073, r24009074);
return r24009075;
}




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