1.6999999999999999 \cdot 10^{308} \cdot t - 1.6999999999999999 \cdot 10^{308}\mathsf{fma}\left(1.6999999999999999 \cdot 10^{308} \cdot 1, t, -1.6999999999999999 \cdot 10^{308}\right)double code(double t) {
return ((double) (((double) (1.7e+308 * t)) - 1.7e+308));
}
double code(double t) {
return ((double) fma(((double) (1.7e+308 * 1.0)), t, ((double) -(1.7e+308))));
}




Bits error versus t
Results
| Original | 64.0 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 64.0
rmApplied *-un-lft-identity64.0
Applied associate-*r*64.0
Applied fma-neg0
Final simplification0
herbie shell --seed 2020113 +o rules:numerics
(FPCore (t)
:name "fma_test2"
:precision binary64
:pre (<= 1.9 t 2.1)
:herbie-target
(fma 1.7e+308 t (- 1.7e+308))
(- (* 1.7e+308 t) 1.7e+308))