d \cdot 10 + d \cdot 20
d \cdot 30
double f(double d) {
double r8560577 = d;
double r8560578 = 10.0;
double r8560579 = r8560577 * r8560578;
double r8560580 = 20.0;
double r8560581 = r8560577 * r8560580;
double r8560582 = r8560579 + r8560581;
return r8560582;
}
double f(double d) {
double r8560583 = d;
double r8560584 = 30.0;
double r8560585 = r8560583 * r8560584;
return r8560585;
}




Bits error versus d
Results
| Original | 0.3 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 0.3
Simplified0
Final simplification0
herbie shell --seed 2019133 +o rules:numerics
(FPCore (d)
:name "FastMath test1"
:herbie-target
(* d 30)
(+ (* d 10) (* d 20)))