Error in 37.8s

Runtime

Time bar (total: 37.8s)Debug logProfile

start190.0ms

Algorithm
intervals

setup111.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 11.4b

localize18.0ms

Local error

Found 4 expressions with local error:

2.1b
(+ (- (/ 1 (+ x 1)) (/ 2 x)) (/ 1 (- x 1)))
0.0b
(- (/ 1 (+ x 1)) (/ 2 x))
0.0b
(/ 1 (+ x 1))
0.0b
(/ 1 (- x 1))

rewrite62.0ms

Algorithm
rewrite-expression-head
Counts
4 → 144
Calls

4 calls. Slowest were:

43.0ms
(+ (- (/ 1 (+ x 1)) (/ 2 x)) (/ 1 (- x 1)))
12.0ms
(- (/ 1 (+ x 1)) (/ 2 x))
2.0ms
(/ 1 (+ x 1))

series75.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

42.0ms
(+ (- (/ 1 (+ x 1)) (/ 2 x)) (/ 1 (- x 1)))
19.0ms
(- (/ 1 (+ x 1)) (/ 2 x))
7.0ms
(/ 1 (+ x 1))

simplify11.3s

Counts
127 → 156
Calls

127 calls. Slowest were:

740.0ms
(+ (* (- (* 1 x) (* (+ x 1) 2)) (- x 1)) (* (* (+ x 1) x) 1))
669.0ms
(- (+ (* 2 x) (+ (* 2 (pow x 3)) (* 2 (/ 1 x)))))
479.0ms
(fma (/ 1 (+ (pow x 3) (pow 1 3))) (+ (* x x) (- (* 1 1) (* x 1))) (- (* (/ 2 x) 1)))

prune1.8s

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 0.1b

localize42.0ms

Local error

Found 4 expressions with local error:

60.6b
(fma (- (cbrt (/ 2 x))) (* (cbrt (/ 2 x)) (cbrt (/ 2 x))) (* (cbrt (/ 2 x)) (* (cbrt (/ 2 x)) (cbrt (/ 2 x)))))
2.1b
(+ (- (/ 1 (+ x 1)) (/ 2 x)) (+ (fma (- (cbrt (/ 2 x))) (* (cbrt (/ 2 x)) (cbrt (/ 2 x))) (* (cbrt (/ 2 x)) (* (cbrt (/ 2 x)) (cbrt (/ 2 x))))) (/ 1 (- x 1))))
0.6b
(cbrt (/ 2 x))
0.6b
(cbrt (/ 2 x))

rewrite44.0ms

Algorithm
rewrite-expression-head
Counts
4 → 105
Calls

4 calls. Slowest were:

41.0ms
(+ (- (/ 1 (+ x 1)) (/ 2 x)) (+ (fma (- (cbrt (/ 2 x))) (* (cbrt (/ 2 x)) (cbrt (/ 2 x))) (* (cbrt (/ 2 x)) (* (cbrt (/ 2 x)) (cbrt (/ 2 x))))) (/ 1 (- x 1))))
0.0ms
(cbrt (/ 2 x))
0.0ms
(fma (- (cbrt (/ 2 x))) (* (cbrt (/ 2 x)) (cbrt (/ 2 x))) (* (cbrt (/ 2 x)) (* (cbrt (/ 2 x)) (cbrt (/ 2 x)))))

series2.1s

Counts
4 → 12
Calls

4 calls. Slowest were:

1.1s
(fma (- (cbrt (/ 2 x))) (* (cbrt (/ 2 x)) (cbrt (/ 2 x))) (* (cbrt (/ 2 x)) (* (cbrt (/ 2 x)) (cbrt (/ 2 x)))))
341.0ms
(+ (- (/ 1 (+ x 1)) (/ 2 x)) (+ (fma (- (cbrt (/ 2 x))) (* (cbrt (/ 2 x)) (cbrt (/ 2 x))) (* (cbrt (/ 2 x)) (* (cbrt (/ 2 x)) (cbrt (/ 2 x))))) (/ 1 (- x 1))))
320.0ms
(cbrt (/ 2 x))

simplify10.6s

Counts
78 → 117
Calls

78 calls. Slowest were:

1.4s
(* (+ (* (/ 1 (+ x 1)) (/ 1 (+ x 1))) (+ (* (/ 2 x) (/ 2 x)) (* (/ 1 (+ x 1)) (/ 2 x)))) (- (fma (- (cbrt (/ 2 x))) (* (cbrt (/ 2 x)) (cbrt (/ 2 x))) (* (cbrt (/ 2 x)) (* (cbrt (/ 2 x)) (cbrt (/ 2 x))))) (/ 1 (- x 1))))
707.0ms
(- (+ (* 2 x) (+ (* 2 (pow x 3)) (* 2 (/ 1 x)))))
569.0ms
(* (/ (exp (/ 1 (+ x 1))) (exp (/ 2 x))) (exp (+ (fma (- (cbrt (/ 2 x))) (* (cbrt (/ 2 x)) (cbrt (/ 2 x))) (* (cbrt (/ 2 x)) (* (cbrt (/ 2 x)) (cbrt (/ 2 x))))) (/ 1 (- x 1)))))

prune1.7s

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 0.0b

localize45.0ms

Local error

Found 4 expressions with local error:

0.5b
(/ 2 (pow x 5))
0.1b
(/ (/ 2 x) (* x x))
0.0b
(/ 2 (pow x 7))
0.0b
(+ (/ (/ 2 x) (* x x)) (/ 2 (pow x 7)))

rewrite17.0ms

Algorithm
rewrite-expression-head
Counts
4 → 77
Calls

4 calls. Slowest were:

8.0ms
(+ (/ (/ 2 x) (* x x)) (/ 2 (pow x 7)))
6.0ms
(/ (/ 2 x) (* x x))
1.0ms
(/ 2 (pow x 5))

series165.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

88.0ms
(+ (/ (/ 2 x) (* x x)) (/ 2 (pow x 7)))
34.0ms
(/ 2 (pow x 7))
26.0ms
(/ 2 (pow x 5))

simplify994.0ms

Counts
41 → 89
Calls

41 calls. Slowest were:

551.0ms
(/ (* (* (/ 2 x) (/ 2 x)) (/ 2 x)) (* (* (* x x) (* x x)) (* x x)))
117.0ms
(+ (* 2 (/ 1 (pow x 7))) (* 2 (/ 1 (pow x 3))))
98.0ms
(+ (* 2 (/ 1 (pow x 7))) (* 2 (/ 1 (pow x 3))))

prune1.3s

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 0b

localize23.0ms

Local error

Found 4 expressions with local error:

0.5b
(/ 2 (pow x 5))
0.1b
(/ (/ 2 x) x)
0.1b
(/ (/ (/ 2 x) x) x)
0.0b
(/ 2 (pow x 7))

rewrite11.0ms

Algorithm
rewrite-expression-head
Counts
4 → 64
Calls

4 calls. Slowest were:

5.0ms
(/ (/ 2 x) x)
4.0ms
(/ (/ (/ 2 x) x) x)
1.0ms
(/ 2 (pow x 5))

series70.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

26.0ms
(/ 2 (pow x 7))
19.0ms
(/ 2 (pow x 5))
15.0ms
(/ (/ (/ 2 x) x) x)

simplify42.0ms

Counts
24 → 76
Calls

24 calls. Slowest were:

5.0ms
(/ 2 (pow x 3))
4.0ms
(/ 2 (pow x 3))
4.0ms
(/ 2 (pow x 3))

prune1.1s

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 0b

regimes72.0ms

Please include this information when filing a bug report:

herbie shell --seed 2018357 +o rules:numerics
(FPCore (x)
  :name "3frac (problem 3.3.3)"

  :herbie-target
  (/ 2 (* x (- (* x x) 1)))

  (+ (- (/ 1 (+ x 1)) (/ 2 x)) (/ 1 (- x 1))))

Backtrace

partition: contract violation expected: list? given: 0.18143072647713523 argument position: 2nd other arguments...: #<procedure:ordinary-value?>LC
partition/home/p92/racket/collects/racket/list.rkt5550
errors-score/data/pavpan/nightlies/herbie/develop/src/points.rkt3220
for-loop/data/pavpan/nightlies/herbie/develop/src/sandbox.rkt7512
(unnamed)/home/p92/racket/collects/racket/private/more-scheme.rkt26128
run/home/p92/racket/share/pkgs/profile-lib/main.rkt392
profile-thunk16/home/p92/racket/share/pkgs/profile-lib/main.rkt90
(unnamed)/home/p92/racket/collects/racket/private/more-scheme.rkt26128