Error in 22.3s

Runtime

Time bar (total: 22.3s)Debug log

start53.0ms

Algorithm
intervals

setup337.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 18.0b

localize17.0ms

Local error

Found 2 expressions with local error:

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

rewrite8.0ms

Algorithm
rewrite-expression-head
Counts
2 → 41
Calls

2 calls. Slowest were:

7.0ms
(/ (* (- x y) (+ y x)) (fma x x (* y y)))
0.0ms
(fma x x (* y y))

series81.0ms

Counts
2 → 6
Calls

2 calls. Slowest were:

53.0ms
(/ (* (- x y) (+ y x)) (fma x x (* y y)))
27.0ms
(fma x x (* y y))

simplify3.4s

Counts
28 → 47
Calls

28 calls. Slowest were:

724.0ms
(- (log (* (- x y) (+ y x))) (log (fma x x (* y y))))
370.0ms
(* (- (* x x) (* y y)) (+ (pow y 3) (pow x 3)))
338.0ms
(* (- (* x x) (* y y)) (+ y x))

prune408.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0.0b

localize27.0ms

Local error

Found 3 expressions with local error:

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

rewrite20.0ms

Algorithm
rewrite-expression-head
Counts
3 → 111
Calls

3 calls. Slowest were:

12.0ms
(* (/ (- x y) (hypot x y)) (/ (+ x y) (hypot x y)))
3.0ms
(/ (+ x y) (hypot x y))
3.0ms
(/ (- x y) (hypot x y))

series193.0ms

Counts
3 → 9
Calls

3 calls. Slowest were:

69.0ms
(/ (- x y) (hypot x y))
62.0ms
(* (/ (- x y) (hypot x y)) (/ (+ x y) (hypot x y)))
62.0ms
(/ (+ x y) (hypot x y))

simplify3.3s

Counts
102 → 120
Calls

102 calls. Slowest were:

435.0ms
(+ (- (log (- x y)) (log (hypot x y))) (- (log (+ x y)) (log (hypot x y))))
396.0ms
(* (/ (- x y) (hypot x y)) (/ (+ x y) (hypot x y)))
305.0ms
(/ (* (* (+ x y) (+ x y)) (+ x y)) (* (* (hypot x y) (hypot x y)) (hypot x y)))

prune959.0ms

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 0b

localize8.0ms

Local error

Found 4 expressions with local error:

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

rewrite21.0ms

Algorithm
rewrite-expression-head
Counts
4 → 134
Calls

4 calls. Slowest were:

10.0ms
(* (/ 1 (/ (hypot x y) (- x y))) (/ (+ x y) (hypot x y)))
4.0ms
(/ (hypot x y) (- x y))
3.0ms
(/ (+ x y) (hypot x y))

series218.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

70.0ms
(* (/ 1 (/ (hypot x y) (- x y))) (/ (+ x y) (hypot x y)))
56.0ms
(/ 1 (/ (hypot x y) (- x y)))
46.0ms
(/ (hypot x y) (- x y))

simplify2.8s

Counts
112 → 146
Calls

112 calls. Slowest were:

350.0ms
(+ (log (/ 1 (/ (hypot x y) (- x y)))) (- (log (+ x y)) (log (hypot x y))))
330.0ms
(/ (* (* (+ x y) (+ x y)) (+ x y)) (* (* (hypot x y) (hypot x y)) (hypot x y)))
229.0ms
(+ (log (/ 1 (/ (hypot x y) (- x y)))) (log (/ (+ x y) (hypot x y))))

prune1.8s

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0b

localize10.0ms

Local error

Found 3 expressions with local error:

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

rewrite40.0ms

Algorithm
rewrite-expression-head
Counts
3 → 97
Calls

3 calls. Slowest were:

21.0ms
(/ (* (- x y) (/ (+ x y) (hypot x y))) (hypot x y))
10.0ms
(* (- x y) (/ (+ x y) (hypot x y)))
6.0ms
(/ (+ x y) (hypot x y))

series222.0ms

Counts
3 → 9
Calls

3 calls. Slowest were:

81.0ms
(/ (* (- x y) (/ (+ x y) (hypot x y))) (hypot x y))
74.0ms
(* (- x y) (/ (+ x y) (hypot x y)))
67.0ms
(/ (+ x y) (hypot x y))

simplify3.6s

Counts
84 → 106
Calls

84 calls. Slowest were:

327.0ms
(* (- (pow x 3) (pow y 3)) (+ x y))
283.0ms
(/ (* (* (+ x y) (+ x y)) (+ x y)) (* (* (hypot x y) (hypot x y)) (hypot x y)))
271.0ms
(* (- (pow x 3) (pow y 3)) (/ (+ x y) (hypot x y)))

prune989.0ms

Pruning

3 alts after pruning (1 fresh and 2 done)

Merged error: 0b

regimes60.0ms

Please include this information when filing a bug report:

herbie shell --seed 2018359 +o rules:numerics
(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: 0.03206206171690097 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