d \cdot 10 + d \cdot 20
d \cdot 30
double f(double d) {
double r31097587 = d;
double r31097588 = 10.0;
double r31097589 = r31097587 * r31097588;
double r31097590 = 20.0;
double r31097591 = r31097587 * r31097590;
double r31097592 = r31097589 + r31097591;
return r31097592;
}
double f(double d) {
double r31097593 = d;
double r31097594 = 30.0;
double r31097595 = r31097593 * r31097594;
return r31097595;
}




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