\left(x + y\right) + x
x + \left(y + x\right)
double f(double x, double y) {
double r28656123 = x;
double r28656124 = y;
double r28656125 = r28656123 + r28656124;
double r28656126 = r28656125 + r28656123;
return r28656126;
}
double f(double x, double y) {
double r28656127 = x;
double r28656128 = y;
double r28656129 = r28656128 + r28656127;
double r28656130 = r28656127 + r28656129;
return r28656130;
}




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