Error in 19.5s

Runtime

Time bar (total: 19.5s)Debug log

start60.0ms

Algorithm
intervals

setup356.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 18.0b

localize41.0ms

Local error

Found 2 expressions with local error:

18.0b
(/ (* (- x y) (+ x y)) (+ (* x x) (* y y)))
0.0b
(+ (* x x) (* y y))

rewrite21.0ms

Algorithm
rewrite-expression-head
Counts
2 → 42
Calls

2 calls. Slowest were:

16.0ms
(/ (* (- x y) (+ x y)) (+ (* x x) (* y y)))
4.0ms
(+ (* x x) (* y y))

series55.0ms

Counts
2 → 6
Calls

2 calls. Slowest were:

39.0ms
(/ (* (- x y) (+ x y)) (+ (* x x) (* y y)))
16.0ms
(+ (* x x) (* y y))

simplify2.8s

Counts
31 → 48
Calls

31 calls. Slowest were:

432.0ms
(* (- (* x x) (* y y)) (+ x y))
342.0ms
(* (- (pow x 3) (pow y 3)) (+ (pow x 3) (pow y 3)))
299.0ms
(* (- (* x x) (* y y)) (+ (pow x 3) (pow y 3)))

prune519.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.5b

localize6.0ms

Local error

Found 3 expressions with local error:

18.0b
(/ (+ (* x x) (* y y)) (* (- x y) (+ x y)))
0.0b
(/ 1 (/ (+ (* x x) (* y y)) (* (- x y) (+ x y))))
0.0b
(+ (* x x) (* y y))

rewrite18.0ms

Algorithm
rewrite-expression-head
Counts
3 → 73
Calls

3 calls. Slowest were:

11.0ms
(/ (+ (* x x) (* y y)) (* (- x y) (+ x y)))
4.0ms
(/ 1 (/ (+ (* x x) (* y y)) (* (- x y) (+ x y))))
2.0ms
(+ (* x x) (* y y))

series107.0ms

Counts
3 → 9
Calls

3 calls. Slowest were:

47.0ms
(/ (+ (* x x) (* y y)) (* (- x y) (+ x y)))
40.0ms
(/ 1 (/ (+ (* x x) (* y y)) (* (- x y) (+ x y))))
20.0ms
(+ (* x x) (* y y))

simplify2.5s

Counts
50 → 82
Calls

50 calls. Slowest were:

291.0ms
(/ (* (* (+ (* x x) (* y y)) (+ (* x x) (* y y))) (+ (* x x) (* y y))) (* (* (* (- x y) (+ x y)) (* (- x y) (+ x y))) (* (- x y) (+ x y))))
218.0ms
(/ (* (* (+ (* x x) (* y y)) (+ (* x x) (* y y))) (+ (* x x) (* y y))) (* (* (* (- x y) (- x y)) (- x y)) (* (* (+ x y) (+ x y)) (+ x y))))
174.0ms
(* (+ x y) (+ (* x x) (- (* y y) (* x y))))

prune845.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0.5b

localize12.0ms

Local error

Found 4 expressions with local error:

18.0b
(/ (+ (* x x) (* y y)) (* (- x y) (+ x y)))
18.0b
(/ (+ (* x x) (* y y)) (* (- x y) (+ x y)))
18.0b
(/ (+ (* x x) (* y y)) (* (- x y) (+ x y)))
0.0b
(cbrt (* (* (/ (+ (* x x) (* y y)) (* (- x y) (+ x y))) (/ (+ (* x x) (* y y)) (* (- x y) (+ x y)))) (/ (+ (* x x) (* y y)) (* (- x y) (+ x y)))))

rewrite84.0ms

Algorithm
rewrite-expression-head
Counts
4 → 110
Calls

4 calls. Slowest were:

49.0ms
(cbrt (* (* (/ (+ (* x x) (* y y)) (* (- x y) (+ x y))) (/ (+ (* x x) (* y y)) (* (- x y) (+ x y)))) (/ (+ (* x x) (* y y)) (* (- x y) (+ x y)))))
12.0ms
(/ (+ (* x x) (* y y)) (* (- x y) (+ x y)))
11.0ms
(/ (+ (* x x) (* y y)) (* (- x y) (+ x y)))

series185.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

74.0ms
(cbrt (* (* (/ (+ (* x x) (* y y)) (* (- x y) (+ x y))) (/ (+ (* x x) (* y y)) (* (- x y) (+ x y)))) (/ (+ (* x x) (* y y)) (* (- x y) (+ x y)))))
42.0ms
(/ (+ (* x x) (* y y)) (* (- x y) (+ x y)))
37.0ms
(/ (+ (* x x) (* y y)) (* (- x y) (+ x y)))

simplify5.8s

Counts
90 → 122
Calls

90 calls. Slowest were:

397.0ms
(cbrt (* (* (+ (* x x) (* y y)) (+ (* x x) (* y y))) (+ (* x x) (* y y))))
318.0ms
(/ (* (* (+ (* x x) (* y y)) (+ (* x x) (* y y))) (+ (* x x) (* y y))) (* (* (* (- x y) (- x y)) (- x y)) (* (* (+ x y) (+ x y)) (+ x y))))
303.0ms
(/ (* (* (+ (* x x) (* y y)) (+ (* x x) (* y y))) (+ (* x x) (* y y))) (* (* (* (- x y) (+ x y)) (* (- x y) (+ x y))) (* (- x y) (+ x y))))

prune1.6s

Pruning

4 alts after pruning (2 fresh and 2 done)

Merged error: 0.5b

localize1.0ms

Local error

Found 0 expressions with local error:

rewrite0.0ms

Algorithm
rewrite-expression-head
Counts
0 → 0
Calls

0 calls. Slowest were:

series0.0ms

Counts
0 → 0
Calls

0 calls. Slowest were:

simplify0.0ms

Counts
0 → 0
Calls

0 calls. Slowest were:

prune1.0ms

Pruning

4 alts after pruning (1 fresh and 3 done)

Merged error: 0.5b

regimes140.0ms

Please include this information when filing a bug report:

herbie shell --seed 2018359 
(FPCore (x y)
  :name "Kahan p9 Example"
  :pre (and (< 0 x 1) (< y 1))

  :herbie-target
  (if (< 0.5 (fabs (/ x y)) 2) (/ (* (- x y) (+ x y)) (+ (* x x) (* y y))) (- 1 (/ 2 (+ 1 (* (/ x y) (/ x y))))))

  (/ (* (- x y) (+ x y)) (+ (* x x) (* y y))))

Backtrace

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