Details

Time bar (total: 11.0s)

sample2.4s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 21.264648%

Guaranteed chance to sample good point: 60.031008%

Results
16.0ms37×body1280invalid
16.0ms35×body1280valid
15.0ms40×body640valid
12.0ms40×body640invalid
12.0ms150×body80valid
5.0ms21×body320valid
5.0ms21×body320invalid
2.0ms10×body160valid
1.0msbody160invalid
1.0ms11×body80invalid

simplify14.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0257
1507
2777
3967
41127
51277
61417
71417

prune8.0ms

Filtered
1 candidates to 1 candidates (0.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New011
Fresh101
Picked000
Done000
Total112

Merged error: 0.5b

Counts
2 → 1

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* a1 a1) (* a2 a2))
0.3b
(* (/ (cos th) (sqrt 2.0)) (+ (* a1 a1) (* a2 a2)))
0.7b
(/ (cos th) (sqrt 2.0))

rewrite21.0ms

Algorithm
rewrite-expression-head
Rules
40×add-sqr-sqrt
38×times-frac
32×add-cube-cbrt *-un-lft-identity
22×associate-*l* sqrt-prod
10×add-exp-log add-cbrt-cube
associate-/r*
pow1 add-log-exp
flip3-+ associate-*r* flip-+ associate-/l* unswap-sqr
cbrt-undiv frac-times associate-*r/ div-exp prod-exp cbrt-unprod div-inv
+-commutative distribute-rgt-in frac-2neg distribute-lft-in pow-prod-down associate-*l/ clear-num sum-log *-commutative
Counts
3 → 98
Calls
3 calls:
3.0ms
(+ (* a1 a1) (* a2 a2))
10.0ms
(* (/ (cos th) (sqrt 2.0)) (+ (* a1 a1) (* a2 a2)))
4.0ms
(/ (cos th) (sqrt 2.0))

series48.0ms

Counts
3 → 9
Calls
3 calls:
5.0ms
(+ (* a1 a1) (* a2 a2))
38.0ms
(* (/ (cos th) (sqrt 2.0)) (+ (* a1 a1) (* a2 a2)))
5.0ms
(/ (cos th) (sqrt 2.0))

simplify52.0ms

Algorithm
egg-herbie
Counts
107 → 107
Iterations

Useful iterations: 2 (43.0ms)

IterNodesCost
0490872
12426805
25001791

prune194.0ms

Filtered
75 candidates to 107 candidates (-42.7%)
Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New989107
Fresh000
Picked101
Done000
Total999108

Merged error: 0b

Counts
108 → 9

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* a1 a1) (* a2 a2))
0.1b
(* (cos th) (+ (* a1 a1) (* a2 a2)))
0.4b
(/ (* (cos th) (+ (* a1 a1) (* a2 a2))) (sqrt 2.0))

rewrite19.0ms

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt
10×add-exp-log add-cbrt-cube
add-cube-cbrt *-un-lft-identity
times-frac associate-/r* sqrt-prod
pow1 add-log-exp
associate-*r/
flip3-+ associate-*r* associate-*l* flip-+
cbrt-undiv div-exp prod-exp cbrt-unprod associate-/l/
+-commutative distribute-rgt-in frac-2neg distribute-lft-in pow-prod-down clear-num sum-log *-commutative div-inv associate-/l* unswap-sqr
Counts
3 → 62
Calls
3 calls:
3.0ms
(+ (* a1 a1) (* a2 a2))
6.0ms
(* (cos th) (+ (* a1 a1) (* a2 a2)))
8.0ms
(/ (* (cos th) (+ (* a1 a1) (* a2 a2))) (sqrt 2.0))

series63.0ms

Counts
3 → 9
Calls
3 calls:
5.0ms
(+ (* a1 a1) (* a2 a2))
23.0ms
(* (cos th) (+ (* a1 a1) (* a2 a2)))
34.0ms
(/ (* (cos th) (+ (* a1 a1) (* a2 a2))) (sqrt 2.0))

simplify43.0ms

Algorithm
egg-herbie
Counts
71 → 71
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
0309564
11642490
25001481

prune110.0ms

Filtered
49 candidates to 71 candidates (-44.9%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New67471
Fresh538
Picked011
Done000
Total72880

Merged error: 0b

Counts
80 → 8

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* a1 a1) (* a2 a2))
0.3b
(* (/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0))) (+ (* a1 a1) (* a2 a2)))
0.6b
(/ (cos th) (sqrt (sqrt 2.0)))
0.6b
(/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0)))

rewrite133.0ms

Algorithm
rewrite-expression-head
Rules
1137×sqrt-prod
1119×times-frac
625×add-sqr-sqrt
578×add-cube-cbrt *-un-lft-identity
283×associate-*l*
34×associate-/l*
22×div-inv
20×add-exp-log add-cbrt-cube
18×associate-/r*
13×unswap-sqr
cbrt-undiv div-exp
pow1 add-log-exp
flip3-+ associate-*r* prod-exp cbrt-unprod flip-+
frac-times frac-2neg associate-*r/ clear-num
+-commutative distribute-rgt-in distribute-lft-in pow-prod-down associate-*l/ sum-log *-commutative associate-/l/
Counts
4 → 717
Calls
4 calls:
3.0ms
(+ (* a1 a1) (* a2 a2))
53.0ms
(* (/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0))) (+ (* a1 a1) (* a2 a2)))
5.0ms
(/ (cos th) (sqrt (sqrt 2.0)))
16.0ms
(/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0)))

series58.0ms

Counts
4 → 12
Calls
4 calls:
5.0ms
(+ (* a1 a1) (* a2 a2))
39.0ms
(* (/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0))) (+ (* a1 a1) (* a2 a2)))
8.0ms
(/ (cos th) (sqrt (sqrt 2.0)))
5.0ms
(/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0)))

simplify121.0ms

Algorithm
egg-herbie
Counts
729 → 729
Iterations

Useful iterations: 1 (38.0ms)

IterNodesCost
0196110436
150019573

prune1.4s

Filtered
374 candidates to 729 candidates (-94.9%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New7281729
Fresh156
Picked101
Done011
Total7307737

Merged error: 0b

Counts
737 → 7

localize18.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* a1 a1) (* a2 a2))
0.1b
(* (cos th) (+ (* a1 a1) (* a2 a2)))
0.3b
(/ (/ (* (cos th) (+ (* a1 a1) (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))
0.3b
(/ (* (cos th) (+ (* a1 a1) (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))

rewrite40.0ms

Algorithm
rewrite-expression-head
Rules
56×times-frac
36×add-exp-log cbrt-prod add-sqr-sqrt
34×add-cube-cbrt *-un-lft-identity
23×add-cbrt-cube
18×sqrt-prod
13×cbrt-undiv div-exp
12×div-inv
10×associate-/r*
prod-exp cbrt-unprod
pow1 associate-/l* add-log-exp
associate-*r/
flip3-+ associate-*r* associate-*l* flip-+ associate-/l/
frac-2neg clear-num
+-commutative distribute-rgt-in distribute-lft-in pow-prod-down sum-log *-commutative unswap-sqr
Counts
4 → 136
Calls
4 calls:
3.0ms
(+ (* a1 a1) (* a2 a2))
6.0ms
(* (cos th) (+ (* a1 a1) (* a2 a2)))
13.0ms
(/ (/ (* (cos th) (+ (* a1 a1) (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))
13.0ms
(/ (* (cos th) (+ (* a1 a1) (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))

series134.0ms

Counts
4 → 12
Calls
4 calls:
5.0ms
(+ (* a1 a1) (* a2 a2))
22.0ms
(* (cos th) (+ (* a1 a1) (* a2 a2)))
34.0ms
(/ (/ (* (cos th) (+ (* a1 a1) (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))
72.0ms
(/ (* (cos th) (+ (* a1 a1) (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))

simplify84.0ms

Algorithm
egg-herbie
Counts
148 → 148
Iterations

Useful iterations: 2 (64.0ms)

IterNodesCost
05942437
131832092
250012064

prune324.0ms

Filtered
102 candidates to 148 candidates (-45.1%)
Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New1480148
Fresh055
Picked011
Done011
Total1487155

Merged error: 0b

Counts
155 → 7

regimes457.0ms

Accuracy

0% (0.4b remaining)

Error of 0.5b against oracle of 0.1b and baseline of 0.5b

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0137
1137

end0.0ms

sample5.2s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 21.264648%

Guaranteed chance to sample good point: 60.031008%

Results
619.0ms1384×body1280valid
498.0ms1110×body1280invalid
351.0ms4604×body80valid
345.0ms1112×body640valid
312.0ms999×body640invalid
136.0ms597×body320valid
118.0ms489×body320invalid
48.0ms303×body160valid
40.0ms262×body160invalid
32.0ms376×body80invalid

Profiling

Loading profile data...