\left(x + y\right) + x
y + \left(x + x\right)
double f(double x, double y) {
double r28636012 = x;
double r28636013 = y;
double r28636014 = r28636012 + r28636013;
double r28636015 = r28636014 + r28636012;
return r28636015;
}
double f(double x, double y) {
double r28636016 = y;
double r28636017 = x;
double r28636018 = r28636017 + r28636017;
double r28636019 = r28636016 + r28636018;
return r28636019;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 0.0
rmApplied +-commutative0.0
Applied associate-+l+0
Final simplification0
herbie shell --seed 2019158
(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))