\left(x + y\right) + x
\left(x + y\right) + x
double f(double x, double y) {
double r362306 = x;
double r362307 = y;
double r362308 = r362306 + r362307;
double r362309 = r362308 + r362306;
return r362309;
}
double f(double x, double y) {
double r362310 = x;
double r362311 = y;
double r362312 = r362310 + r362311;
double r362313 = r362312 + r362310;
return r362313;
}




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