\left(x + y\right) + x
x + \left(y + x\right)
double f(double x, double y) {
double r20134166 = x;
double r20134167 = y;
double r20134168 = r20134166 + r20134167;
double r20134169 = r20134168 + r20134166;
return r20134169;
}
double f(double x, double y) {
double r20134170 = x;
double r20134171 = y;
double r20134172 = r20134171 + r20134170;
double r20134173 = r20134170 + r20134172;
return r20134173;
}




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