



Bits error versus a




Bits error versus b




Bits error versus c
| Original | 33.2 |
|---|---|
| Target | 20.7 |
| Herbie | 10.0 |
if b < -8.228832331933044e-84Initial program 52.0
rmApplied clear-num52.0
rmApplied flip--52.1
Applied associate-/r/52.1
Applied simplify24.3
Taylor expanded around -inf 16.3
Applied simplify9.2
if -8.228832331933044e-84 < b < 6.19795767294399e+153Initial program 12.1
rmApplied add-cube-cbrt12.4
Applied fma-neg12.4
if 6.19795767294399e+153 < b Initial program 60.8
rmApplied clear-num60.8
Taylor expanded around inf 10.7
Applied simplify2.2
Time bar (total: 2.3m)Debug logProfile
herbie shell --seed '#(1071501266 3581234924 1086666455 2685055582 1243441566 1802958749)' +o rules:numerics
(FPCore (a b c)
:name "The quadratic formula (r2)"
:herbie-target
(if (< b 0) (/ c (* a (/ (+ (- b) (sqrt (- (* b b) (* 4 (* a c))))) (* 2 a)))) (/ (- (- b) (sqrt (- (* b b) (* 4 (* a c))))) (* 2 a)))
(/ (- (- b) (sqrt (- (* b b) (* 4 (* a c))))) (* 2 a)))