



Bits error versus a




Bits error versus b




Bits error versus c




Bits error versus d
Results
| Original | 25.3 |
|---|---|
| Target | 0.5 |
| Herbie | 16.8 |
if c < -9.621588064409836e+60 or 2.7932086783743507e+72 < c Initial program 36.5
rmApplied add-sqr-sqrt36.5
Applied *-un-lft-identity36.5
Applied times-frac36.5
Taylor expanded around inf 43.3
Applied simplify41.9
Taylor expanded around inf 15.4
if -9.621588064409836e+60 < c < 2.7932086783743507e+72Initial program 17.7
Applied simplify16.8
Time bar (total: 42.7s)Debug logProfile
herbie shell --seed 2018206
(FPCore (a b c d)
:name "Complex division, real part"
:herbie-target
(if (< (fabs d) (fabs c)) (/ (+ a (* b (/ d c))) (+ c (* d (/ d c)))) (/ (+ b (* a (/ c d))) (+ d (* c (/ c d)))))
(/ (+ (* a c) (* b d)) (+ (* c c) (* d d))))