Error in 21.7s

Runtime

Time bar (total: 21.7s)Debug logProfile

start86.0ms

Algorithm
intervals

setup382.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 21.3b

localize37.0ms

Local error

Found 2 expressions with local error:

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

rewrite7.0ms

Algorithm
rewrite-expression-head
Counts
2 → 41
Calls

2 calls. Slowest were:

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

series72.0ms

Counts
2 → 6
Calls

2 calls. Slowest were:

42.0ms
(/ (* (- x y) (+ y x)) (fma x x (* y y)))
30.0ms
(fma x x (* y y))

simplify3.2s

Counts
28 → 47
Calls

28 calls. Slowest were:

410.0ms
(* (- (* x x) (* y y)) (+ (pow y 3) (pow x 3)))
370.0ms
(* (- (pow x 3) (pow y 3)) (+ y x))
364.0ms
(* (- (* x x) (* y y)) (+ y x))

prune477.0ms

Pruning

3 alts after pruning (3 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))

rewrite26.0ms

Algorithm
rewrite-expression-head
Counts
3 → 111
Calls

3 calls. Slowest were:

15.0ms
(* (/ (- x y) (hypot x y)) (/ (+ x y) (hypot x y)))
6.0ms
(/ (+ x y) (hypot x y))
4.0ms
(/ (- x y) (hypot x y))

series196.0ms

Counts
3 → 9
Calls

3 calls. Slowest were:

72.0ms
(/ (- x y) (hypot x y))
65.0ms
(* (/ (- x y) (hypot x y)) (/ (+ x y) (hypot x y)))
59.0ms
(/ (+ x y) (hypot x y))

simplify3.3s

Counts
102 → 120
Calls

102 calls. Slowest were:

391.0ms
(+ (- (log (- x y)) (log (hypot x y))) (- (log (+ x y)) (log (hypot x y))))
334.0ms
(/ (* (* (+ x y) (+ x y)) (+ x y)) (* (* (hypot x y) (hypot x y)) (hypot x y)))
333.0ms
(* (/ (- x y) (hypot x y)) (/ (+ x y) (hypot x y)))

prune1.2s

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 0b

localize17.0ms

Local error

Found 4 expressions with local error:

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

rewrite31.0ms

Algorithm
rewrite-expression-head
Counts
4 → 134
Calls

4 calls. Slowest were:

13.0ms
(* (/ 1 (/ (hypot x y) (- x y))) (/ (+ x y) (hypot x y)))
7.0ms
(/ (hypot x y) (- x y))
6.0ms
(/ (+ x y) (hypot x y))

series247.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

66.0ms
(* (/ 1 (/ (hypot x y) (- x y))) (/ (+ x y) (hypot x y)))
64.0ms
(/ (hypot x y) (- x y))
62.0ms
(/ 1 (/ (hypot x y) (- x y)))

simplify2.8s

Counts
112 → 146
Calls

112 calls. Slowest were:

315.0ms
(/ (* (* (+ x y) (+ x y)) (+ x y)) (* (* (hypot x y) (hypot x y)) (hypot x y)))
304.0ms
(+ (log (/ 1 (/ (hypot x y) (- x y)))) (- (log (+ x y)) (log (hypot x y))))
249.0ms
(+ (log (/ 1 (/ (hypot x y) (- x y)))) (log (/ (+ x y) (hypot x y))))

prune1.4s

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0b

localize6.0ms

Local error

Found 4 expressions with local error:

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

rewrite24.0ms

Algorithm
rewrite-expression-head
Counts
4 → 114
Calls

4 calls. Slowest were:

13.0ms
(* (/ 1 (/ (hypot x y) (- x y))) (/ (+ x y) (hypot x y)))
6.0ms
(/ (hypot x y) (- x y))
2.0ms
(/ 1 (/ (hypot x y) (- x y)))

series306.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

130.0ms
(log1p (* (/ 1 (/ (hypot x y) (- x y))) (/ (+ x y) (hypot x y))))
63.0ms
(/ 1 (/ (hypot x y) (- x y)))
58.0ms
(/ (hypot x y) (- x y))

simplify2.7s

Counts
86 → 126
Calls

86 calls. Slowest were:

316.0ms
(+ (log (/ 1 (/ (hypot x y) (- x y)))) (- (log (+ x y)) (log (hypot x y))))
213.0ms
(* (/ 1 (/ (hypot x y) (- x y))) (/ (+ x y) (hypot x y)))
198.0ms
(+ (log (/ 1 (/ (hypot x y) (- x y)))) (log (/ (+ x y) (hypot x y))))

prune1.4s

Pruning

2 alts after pruning (1 fresh and 1 done)

Merged error: 0b

regimes87.0ms

Please include this information when filing a bug report:

herbie shell --seed 2018357 +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.03210413594209739 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