\left(x + y\right) + x
\left(x + y\right) + x
double f(double x, double y) {
double r548340 = x;
double r548341 = y;
double r548342 = r548340 + r548341;
double r548343 = r548342 + r548340;
return r548343;
}
double f(double x, double y) {
double r548344 = x;
double r548345 = y;
double r548346 = r548344 + r548345;
double r548347 = r548346 + r548344;
return r548347;
}




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 2020024
(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))