



Bits error versus a




Bits error versus b




Bits error versus c




Bits error versus d
Results
| Original | 26.1 |
|---|---|
| Target | 0.5 |
| Herbie | 26.1 |
if c < -5.730580829918621e+74Initial program 38.3
rmApplied add-sqr-sqrt38.3
Applied associate-/r*38.2
Taylor expanded around -inf 38.5
Simplified38.5
if -5.730580829918621e+74 < c Initial program 23.1
rmApplied add-sqr-sqrt23.1
Applied associate-/r*23.0
Final simplification26.1
Time bar (total: 45.7s)Debug logProfile
herbie shell --seed 2018217
(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))))