



Bits error versus a




Bits error versus b




Bits error versus c
Results
| Original | 33.3 |
|---|---|
| Target | 19.9 |
| Herbie | 10.1 |
if (- b) < -9.525999608616756e-56Initial program 53.2
Taylor expanded around inf 46.5
Applied simplify7.8
if -9.525999608616756e-56 < (- b) < 2.2573036792948806e+44Initial program 14.0
rmApplied clear-num14.1
Applied simplify14.1
if 2.2573036792948806e+44 < (- b) Initial program 35.6
Taylor expanded around -inf 6.2
Applied simplify6.2
Applied simplify10.1
Time bar (total: 1.8m)Debug logProfile
herbie shell --seed '#(1072743783 989954326 4239155542 3782239461 3602631542 1719177920)'
(FPCore (a b c)
:name "The quadratic formula (r1)"
: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)))