\left(x + y\right) + x
\left(x + y\right) + x
double f(double x, double y) {
double r649505 = x;
double r649506 = y;
double r649507 = r649505 + r649506;
double r649508 = r649507 + r649505;
return r649508;
}
double f(double x, double y) {
double r649509 = x;
double r649510 = y;
double r649511 = r649509 + r649510;
double r649512 = r649511 + r649509;
return r649512;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0 |
| Herbie | 0.0 |
Initial program 0.0
Final simplification0.0
herbie shell --seed 2020046
(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))