



Bits error versus a




Bits error versus b




Bits error versus c




Bits error versus d
| Original | 3.7 |
|---|---|
| Target | 3.8 |
| Herbie | 0 |
Initial program 3.7
rmApplied +-commutative3.7
Applied associate-+r+3.1
Applied associate-+r+2.8
rmApplied +-commutative2.8
Applied associate-+r+0.0
Applied associate-+l+0
Final simplification0
herbie shell --seed 2019088
(FPCore (a b c d)
:name "Expression, p6"
:pre (and (<= -14 a -13) (<= -3 b -2) (<= 3 c 3.5) (<= 12.5 d 13.5))
:herbie-target
(+ (* (+ a b) 2) (* (+ c d) 2))
(* (+ a (+ b (+ c d))) 2))