\left(x + y\right) + x
x + \left(y + x\right)
double f(double x, double y) {
double r22982333 = x;
double r22982334 = y;
double r22982335 = r22982333 + r22982334;
double r22982336 = r22982335 + r22982333;
return r22982336;
}
double f(double x, double y) {
double r22982337 = x;
double r22982338 = y;
double r22982339 = r22982338 + r22982337;
double r22982340 = r22982337 + r22982339;
return r22982340;
}




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 2019172
(FPCore (x y)
:name "Graphics.Rendering.Plot.Render.Plot.Legend:renderLegendOutside from plot-0.2.3.4, A"
:herbie-target
(+ y (* 2.0 x))
(+ (+ x y) x))