\left(x + y\right) + x
x + \left(y + x\right)
double f(double x, double y) {
double r29826179 = x;
double r29826180 = y;
double r29826181 = r29826179 + r29826180;
double r29826182 = r29826181 + r29826179;
return r29826182;
}
double f(double x, double y) {
double r29826183 = x;
double r29826184 = y;
double r29826185 = r29826184 + r29826183;
double r29826186 = r29826183 + r29826185;
return r29826186;
}




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