



Bits error versus a




Bits error versus b




Bits error versus c
Results
| Original | 33.7 |
|---|---|
| Target | 21.0 |
| Herbie | 10.0 |
if b < -9.2206393300312e+145Initial program 58.1
Initial simplification58.1
Taylor expanded around -inf 58.1
Taylor expanded around -inf 2.2
if -9.2206393300312e+145 < b < 1.5126665316535186e-110Initial program 11.3
Initial simplification11.3
Taylor expanded around -inf 11.3
if 1.5126665316535186e-110 < b Initial program 51.3
Initial simplification51.2
Taylor expanded around -inf 51.2
Taylor expanded around inf 10.9
Simplified10.9
Final simplification10.0
Time bar (total: 29.0s)Debug logProfile
| Baseline | Herbie | Oracle | Span | % | |
|---|---|---|---|---|---|
| Regimes | 33.7 | 10.0 | 5.6 | 28.2 | 84.1% |
herbie shell --seed 2018355
(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)))