\left(x + y\right) + x
2 \cdot x + y
double f(double x, double y) {
double r348687 = x;
double r348688 = y;
double r348689 = r348687 + r348688;
double r348690 = r348689 + r348687;
return r348690;
}
double f(double x, double y) {
double r348691 = 2.0;
double r348692 = x;
double r348693 = r348691 * r348692;
double r348694 = y;
double r348695 = r348693 + r348694;
return r348695;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 0.0
rmApplied flip-+47.5
Simplified47.5
Simplified23.5
rmApplied clear-num23.6
Simplified0.2
rmApplied *-un-lft-identity0.2
Applied add-cube-cbrt0.2
Applied times-frac0.2
Applied add-cube-cbrt0.2
Applied times-frac0.2
Simplified0.2
Simplified0
Final simplification0
herbie shell --seed 2019306
(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))