Error in 4.4s

Runtime

Time bar (total: 4.4s)Debug logProfile

start360.0ms

Algorithm
intervals

setup186.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
(* (+ x 2) x)

rewrite5.0ms

Algorithm
rewrite-expression-head
Counts
1 → 13
Calls

1 calls. Slowest were:

4.0ms
(* (+ x 2) x)

series26.0ms

Counts
1 → 3
Calls

1 calls. Slowest were:

25.0ms
(* (+ x 2) x)

simplify202.0ms

Counts
7 → 16
Calls

7 calls. Slowest were:

165.0ms
(* (- (* x x) (* 2 2)) x)
17.0ms
(* (+ (pow x 3) (pow 2 3)) x)
5.0ms
(+ (* 2 x) (pow x 2))

prune79.0ms

Pruning

2 alts after pruning (1 fresh and 1 done)

Merged error: 0b

localize13.0ms

Local error

Found 2 expressions with local error:

6.1b
(/ (+ (* -4 x) (pow x 3)) (- x 2))
0.0b
(+ (* -4 x) (pow x 3))

rewrite12.0ms

Algorithm
rewrite-expression-head
Counts
2 → 47
Calls

2 calls. Slowest were:

9.0ms
(/ (+ (* -4 x) (pow x 3)) (- x 2))
2.0ms
(+ (* -4 x) (pow x 3))

series81.0ms

Counts
2 → 6
Calls

2 calls. Slowest were:

49.0ms
(/ (+ (* -4 x) (pow x 3)) (- x 2))
32.0ms
(+ (* -4 x) (pow x 3))

simplify652.0ms

Counts
43 → 53
Calls

43 calls. Slowest were:

125.0ms
(- (* (* -4 x) (* -4 x)) (* (pow x 3) (pow x 3)))
90.0ms
(+ (pow (* -4 x) 3) (pow (pow x 3) 3))
84.0ms
(/ (* (* (+ (* -4 x) (pow x 3)) (+ (* -4 x) (pow x 3))) (+ (* -4 x) (pow x 3))) (* (* (- x 2) (- x 2)) (- x 2)))

prune361.0ms

Pruning

2 alts after pruning (0 fresh and 2 done)

Merged error: 0b

regimes19.0ms

Please include this information when filing a bug report:

herbie shell --seed 2018357 
(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