



Bits error versus x0




Bits error versus x1
Results
| Original | 7.9 |
|---|---|
| Target | 0.3 |
| Herbie | 4.7 |
Initial program 7.9
rmApplied flip--7.3
rmApplied div-inv5.6
rmApplied add-log-exp4.7
Final simplification4.7
herbie shell --seed 2019022
(FPCore (x0 x1)
:name "(- (/ x0 (- 1 x1)) x0)"
:pre (or (and (== x0 1.855) (== x1 0.000209)) (and (== x0 2.985) (== x1 0.0186)))
:herbie-target
(/ (* x0 x1) (- 1 x1))
(- (/ x0 (- 1 x1)) x0))
Time bar (total: 11.9s)Debug log
| 20.0ms | 129× | pre | 10240 | exit |
| 9.0ms | 256× | body | 80 | valid |
| 4.0ms | 127× | pre | 80 | true |
| 8.0ms | (- (/ x0 (- 1 x1)) x0) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 7.7b
Found 2 expressions with local error:
| 7.3b | (- (/ x0 (- 1 x1)) x0) |
| 0.7b | (/ x0 (- 1 x1)) |
| 3× | add-cube-cbrt |
| 3× | *-un-lft-identity |
| 3× | associate-/r* |
| 3× | add-sqr-sqrt |
| 2× | add-log-exp |
| 2× | flip-- |
| 2× | associate-/r/ |
| 2× | add-exp-log |
| 2× | add-cbrt-cube |
| 2× | flip3-- |
| 2× | pow1 |
| 1× | div-inv |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 7.0ms | (- (/ x0 (- 1 x1)) x0) |
| 1.0ms | (/ x0 (- 1 x1)) |
| 48.0ms | (- (/ x0 (- 1 x1)) x0) |
| 23.0ms | (/ x0 (- 1 x1)) |
| 350.0ms | (+ (* x0 (pow x1 3)) (+ (* x0 (pow x1 2)) (* x0 x1))) |
| 67.0ms | (- (+ x0 (+ (/ x0 x1) (/ x0 (pow x1 2))))) |
| 61.0ms | (+ x0 (+ (* x0 x1) (* x0 (pow x1 2)))) |
| 57.0ms | (- (+ (/ x0 (pow x1 3)) (+ (/ x0 (pow x1 2)) (/ x0 x1)))) |
| 49.0ms | (- (+ (/ x0 (pow x1 3)) (+ (/ x0 (pow x1 2)) (/ x0 x1)))) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 6.8b
Found 4 expressions with local error:
| 6.1b | (- (* (/ x0 (- 1 x1)) (/ x0 (- 1 x1))) (* x0 x0)) |
| 0.8b | (+ (/ x0 (- 1 x1)) x0) |
| 0.7b | (/ x0 (- 1 x1)) |
| 0.7b | (/ x0 (- 1 x1)) |
| 6× | add-log-exp |
| 6× | add-cube-cbrt |
| 6× | *-un-lft-identity |
| 6× | associate-/r* |
| 6× | add-sqr-sqrt |
| 4× | associate-/r/ |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 3× | flip-- |
| 3× | flip3-- |
| 2× | div-inv |
| 2× | frac-2neg |
| 2× | clear-num |
| 1× | difference-of-squares |
| 1× | flip-+ |
| 1× | diff-log |
| 1× | flip3-+ |
| 1× | sub-neg |
| 1× | +-commutative |
| 8.0ms | (+ (/ x0 (- 1 x1)) x0) |
| 6.0ms | (- (* (/ x0 (- 1 x1)) (/ x0 (- 1 x1))) (* x0 x0)) |
| 1.0ms | (/ x0 (- 1 x1)) |
| 1.0ms | (/ x0 (- 1 x1)) |
| 39.0ms | (- (* (/ x0 (- 1 x1)) (/ x0 (- 1 x1))) (* x0 x0)) |
| 22.0ms | (+ (/ x0 (- 1 x1)) x0) |
| 21.0ms | (/ x0 (- 1 x1)) |
| 20.0ms | (/ x0 (- 1 x1)) |
| 440.0ms | (+ (* 2 (* (pow x0 2) x1)) (+ (* 4 (* (pow x0 2) (pow x1 3))) (* 3 (* (pow x0 2) (pow x1 2))))) |
| 194.0ms | (- (+ (/ (pow x0 2) (pow x1 2)) (* 2 (/ (pow x0 2) (pow x1 3)))) (pow x0 2)) |
| 194.0ms | (- (+ (/ (pow x0 2) (pow x1 2)) (* 2 (/ (pow x0 2) (pow x1 3)))) (pow x0 2)) |
| 127.0ms | (/ (exp (* (/ x0 (- 1 x1)) (/ x0 (- 1 x1)))) (exp (* x0 x0))) |
| 106.0ms | (+ (* 2 x0) (+ (* x0 x1) (* x0 (pow x1 2)))) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 4.8b
Found 4 expressions with local error:
| 6.1b | (- (* (/ x0 (- 1 x1)) (* x0 (/ 1 (- 1 x1)))) (* x0 x0)) |
| 0.8b | (+ (/ x0 (- 1 x1)) x0) |
| 0.7b | (/ x0 (- 1 x1)) |
| 0.7b | (/ x0 (- 1 x1)) |
| 6× | add-log-exp |
| 6× | add-cube-cbrt |
| 6× | *-un-lft-identity |
| 6× | associate-/r* |
| 6× | add-sqr-sqrt |
| 4× | associate-/r/ |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 3× | flip-- |
| 3× | flip3-- |
| 2× | div-inv |
| 2× | frac-2neg |
| 2× | clear-num |
| 1× | flip-+ |
| 1× | diff-log |
| 1× | flip3-+ |
| 1× | sub-neg |
| 1× | +-commutative |
| 6.0ms | (- (* (/ x0 (- 1 x1)) (* x0 (/ 1 (- 1 x1)))) (* x0 x0)) |
| 3.0ms | (+ (/ x0 (- 1 x1)) x0) |
| 0.0ms | (/ x0 (- 1 x1)) |
| 0.0ms | (/ x0 (- 1 x1)) |
| 40.0ms | (- (* (/ x0 (- 1 x1)) (* x0 (/ 1 (- 1 x1)))) (* x0 x0)) |
| 23.0ms | (/ x0 (- 1 x1)) |
| 17.0ms | (+ (/ x0 (- 1 x1)) x0) |
| 15.0ms | (/ x0 (- 1 x1)) |
| 477.0ms | (+ (* 2 (* (pow x0 2) x1)) (+ (* 4 (* (pow x0 2) (pow x1 3))) (* 3 (* (pow x0 2) (pow x1 2))))) |
| 222.0ms | (/ (exp (* (/ x0 (- 1 x1)) (* x0 (/ 1 (- 1 x1))))) (exp (* x0 x0))) |
| 206.0ms | (- (+ (/ (pow x0 2) (pow x1 2)) (* 2 (/ (pow x0 2) (pow x1 3)))) (pow x0 2)) |
| 205.0ms | (- (+ (/ (pow x0 2) (pow x1 2)) (* 2 (/ (pow x0 2) (pow x1 3)))) (pow x0 2)) |
| 85.0ms | (+ x0 (+ (* x0 x1) (* x0 (pow x1 2)))) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 4.0b
Found 4 expressions with local error:
| 6.1b | (- (* (/ x0 (- 1 x1)) (* x0 (/ 1 (- 1 x1)))) (* x0 x0)) |
| 3.7b | (log (exp (- (* (/ x0 (- 1 x1)) (* x0 (/ 1 (- 1 x1)))) (* x0 x0)))) |
| 0.8b | (+ (/ x0 (- 1 x1)) x0) |
| 0.7b | (/ x0 (- 1 x1)) |
| 7× | add-cube-cbrt |
| 7× | *-un-lft-identity |
| 7× | add-sqr-sqrt |
| 6× | add-log-exp |
| 5× | log-prod |
| 5× | pow1 |
| 4× | log-pow |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 3× | associate-/r* |
| 3× | exp-prod |
| 2× | flip-- |
| 2× | associate-/r/ |
| 2× | exp-sum |
| 2× | flip3-- |
| 2× | sub-neg |
| 1× | div-inv |
| 1× | flip-+ |
| 1× | rem-log-exp |
| 1× | diff-log |
| 1× | exp-diff |
| 1× | flip3-+ |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | log-div |
| 1× | +-commutative |
| 13.0ms | (log (exp (- (* (/ x0 (- 1 x1)) (* x0 (/ 1 (- 1 x1)))) (* x0 x0)))) |
| 6.0ms | (- (* (/ x0 (- 1 x1)) (* x0 (/ 1 (- 1 x1)))) (* x0 x0)) |
| 6.0ms | (+ (/ x0 (- 1 x1)) x0) |
| 1.0ms | (/ x0 (- 1 x1)) |
| 48.0ms | (- (* (/ x0 (- 1 x1)) (* x0 (/ 1 (- 1 x1)))) (* x0 x0)) |
| 36.0ms | (log (exp (- (* (/ x0 (- 1 x1)) (* x0 (/ 1 (- 1 x1)))) (* x0 x0)))) |
| 21.0ms | (+ (/ x0 (- 1 x1)) x0) |
| 14.0ms | (/ x0 (- 1 x1)) |
| 474.0ms | (- (+ (/ (pow x0 2) (pow x1 2)) (* 2 (/ (pow x0 2) (pow x1 3)))) (pow x0 2)) |
| 418.0ms | (+ (* 2 (* (pow x0 2) x1)) (+ (* 4 (* (pow x0 2) (pow x1 3))) (* 3 (* (pow x0 2) (pow x1 2))))) |
| 406.0ms | (log (exp (* (/ x0 (- 1 x1)) (* x0 (/ 1 (- 1 x1)))))) |
| 400.0ms | (+ (* 2 (* (pow x0 2) x1)) (+ (* 4 (* (pow x0 2) (pow x1 3))) (* 3 (* (pow x0 2) (pow x1 2))))) |
| 367.0ms | (log (exp (* (/ x0 (- 1 x1)) (* x0 (/ 1 (- 1 x1)))))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 3.9b
0% (0.7b remaining)
Error of 4.7b against oracle of 4.0b and baseline of 4.7b
| 834.0ms | 3936× | pre | 10240 | exit |
| 345.0ms | 8000× | body | 80 | valid |
| 132.0ms | 4064× | pre | 80 | true |