



Bits error versus a




Bits error versus b




Bits error versus c
Results
| Original | 33.4 |
|---|---|
| Target | 20.8 |
| Herbie | 9.7 |
if b < -2.91564606410173e+122Initial program 50.0
Initial simplification50.0
Taylor expanded around -inf 2.6
if -2.91564606410173e+122 < b < 5.820248000579309e-42Initial program 13.6
Initial simplification13.6
rmApplied div-sub13.6
if 5.820248000579309e-42 < b Initial program 53.5
Initial simplification53.5
rmApplied div-sub54.4
Taylor expanded around inf 7.3
Simplified7.3
Final simplification9.7
Time bar (total: 24.6s)Debug logProfile
| Baseline | Herbie | Oracle | Span | % | |
|---|---|---|---|---|---|
| Regimes | 33.5 | 9.7 | 5.6 | 27.9 | 85.1% |
herbie shell --seed 2018285
(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)))