Error in 6.0s

Runtime

Time bar (total: 6.0s)Debug logProfile

start155.0ms

Algorithm
intervals

setup880.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.0b

localize8.0ms

Local error

Found 1 expressions with local error:

0.0b
(* (+ 2 x) x)

rewrite5.0ms

Algorithm
rewrite-expression-head
Counts
1 → 15
Calls

1 calls. Slowest were:

4.0ms
(* (+ 2 x) x)

series26.0ms

Counts
1 → 3
Calls

1 calls. Slowest were:

26.0ms
(* (+ 2 x) x)

simplify300.0ms

Counts
7 → 18
Calls

7 calls. Slowest were:

253.0ms
(* (- (* 2 2) (* x x)) x)
19.0ms
(* (+ (pow 2 3) (pow x 3)) x)
8.0ms
(+ (* 2 x) (pow x 2))

prune85.0ms

Pruning

2 alts after pruning (1 fresh and 1 done)

Merged error: 0b

localize15.0ms

Local error

Found 3 expressions with local error:

6.1b
(/ (* (- (* 2 2) (* x x)) x) (- 2 x))
0.1b
(* (- (* 2 2) (* x x)) x)
0.0b
(- (* 2 2) (* x x))

rewrite14.0ms

Algorithm
rewrite-expression-head
Counts
3 → 58
Calls

3 calls. Slowest were:

7.0ms
(/ (* (- (* 2 2) (* x x)) x) (- 2 x))
5.0ms
(* (- (* 2 2) (* x x)) x)
2.0ms
(- (* 2 2) (* x x))

series94.0ms

Counts
3 → 9
Calls

3 calls. Slowest were:

46.0ms
(/ (* (- (* 2 2) (* x x)) x) (- 2 x))
30.0ms
(* (- (* 2 2) (* x x)) x)
19.0ms
(- (* 2 2) (* x x))

simplify1.7s

Counts
35 → 67
Calls

35 calls. Slowest were:

224.0ms
(/ (- (* 2 2) (* x x)) (* (cbrt (- 2 x)) (cbrt (- 2 x))))
212.0ms
(* (- (* (* 2 2) (* 2 2)) (* (* x x) (* x x))) x)
211.0ms
(* (- (* (* 2 2) (* 2 2)) (* (* x x) (* x x))) x)

prune361.0ms

Pruning

2 alts after pruning (0 fresh and 2 done)

Merged error: 0b

regimes18.0ms

Please include this information when filing a bug report:

herbie shell --seed 2018357 +o rules:numerics
(FPCore (x)
  :name "Expanding a square"
  (- (* (+ x 1) (+ x 1)) 1))

Backtrace

partition: contract violation expected: list? given: 0.01 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