\left(x + y\right) - x
y
double f(double x, double y) {
double r524610 = x;
double r524611 = y;
double r524612 = r524610 + r524611;
double r524613 = r524612 - r524610;
return r524613;
}
double f(double __attribute__((unused)) x, double y) {
double r524614 = y;
return r524614;
}




Bits error versus x




Bits error versus y
Results
| Original | 29.4 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 29.4
Simplified0
Final simplification0
herbie shell --seed 2019194
(FPCore (x y)
:name "Graphics.Rendering.Chart.Plot.Pie:renderPie from Chart-1.5.3"
:herbie-target
(- y 0.0)
(- (+ x y) x))