\left(x + y\right) + x
\left(x + y\right) + x
double f(double x, double y) {
double r365252 = x;
double r365253 = y;
double r365254 = r365252 + r365253;
double r365255 = r365254 + r365252;
return r365255;
}
double f(double x, double y) {
double r365256 = x;
double r365257 = y;
double r365258 = r365256 + r365257;
double r365259 = r365258 + r365256;
return r365259;
}




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