



Bits error versus a




Bits error versus b




Bits error versus c
| Original | 33.2 |
|---|---|
| Target | 20.6 |
| Herbie | 10.8 |
if b < -1.2686397944521473e+154Initial program 60.9
rmApplied div-inv60.9
Taylor expanded around -inf 11.1
Applied simplify2.2
if -1.2686397944521473e+154 < b < 756484004754347.6Initial program 15.5
if 756484004754347.6 < b Initial program 55.5
Taylor expanded around inf 43.8
Applied simplify5.3
Applied simplify10.8
Time bar (total: 2.7m)Debug logProfile
herbie shell --seed '#(1072840222 1305617769 1692503039 1353360431 4178980589 1488672652)' +o rules:numerics
(FPCore (a b c)
:name "quadp (p42, positive)"
:herbie-target
(if (< b 0) (/ (+ (- b) (sqrt (- (* b b) (* 4 (* a c))))) (* 2 a)) (/ c (* a (/ (- (- b) (sqrt (- (* b b) (* 4 (* a c))))) (* 2 a)))))
(/ (+ (- b) (sqrt (- (* b b) (* 4 (* a c))))) (* 2 a)))