



Bits error versus a




Bits error versus b




Bits error versus c
Results
| Original | 33.2 |
|---|---|
| Target | 20.1 |
| Herbie | 10.9 |
if b < -7.831748553927705e+153Initial program 60.8
rmApplied sub-neg60.8
Taylor expanded around -inf 2.3
if -7.831748553927705e+153 < b < 9.075353573798497e-157Initial program 10.5
rmApplied sub-neg10.5
if 9.075353573798497e-157 < b Initial program 48.9
rmApplied sub-neg48.9
Taylor expanded around inf 13.3
Simplified13.3
Final simplification10.9
Time bar (total: 24.6s)Debug logProfile
| Baseline | Herbie | Oracle | Span | % | |
|---|---|---|---|---|---|
| Regimes | 33.2 | 10.9 | 5.6 | 27.5 | 80.9% |
herbie shell --seed 2018295
(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)))