\left(x + y\right) + x
\left(x + y\right) + x
double f(double x, double y) {
double r438600 = x;
double r438601 = y;
double r438602 = r438600 + r438601;
double r438603 = r438602 + r438600;
return r438603;
}
double f(double x, double y) {
double r438604 = x;
double r438605 = y;
double r438606 = r438604 + r438605;
double r438607 = r438606 + r438604;
return r438607;
}




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