Details

Time bar (total: 6.2s)

sample969.0ms

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 0%

Guaranteed chance to sample good point: 0%

Results
39.0ms80×body1280valid
17.0ms60×body640valid
5.0ms27×body320valid
5.0ms75×body80valid
2.0ms14×body160valid

simplify6.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0125
1165
2205
3215
4215

prune4.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 13.8b

Counts
2 → 1

localize15.0ms

Local error

Found 3 expressions with local error:

0.2b
(* r (/ (sin b) (cos (+ a b))))
0.2b
(/ (sin b) (cos (+ a b)))
3.4b
(cos (+ a b))

rewrite16.0ms

Algorithm
rewrite-expression-head
Rules
24×add-sqr-sqrt
19×add-cube-cbrt *-un-lft-identity times-frac
13×associate-*r*
10×add-exp-log add-cbrt-cube
pow1
associate-*l* associate-/r* associate-/l* add-log-exp
cbrt-undiv div-exp prod-exp cbrt-unprod div-inv unswap-sqr
cos-sum frac-2neg associate-*r/ pow-prod-down clear-num *-commutative
Counts
3 → 67
Calls
3 calls:
7.0ms
(* r (/ (sin b) (cos (+ a b))))
4.0ms
(/ (sin b) (cos (+ a b)))
4.0ms
(cos (+ a b))

series40.0ms

Counts
3 → 9
Calls
3 calls:
23.0ms
(* r (/ (sin b) (cos (+ a b))))
11.0ms
(/ (sin b) (cos (+ a b)))
5.0ms
(cos (+ a b))

simplify37.0ms

Algorithm
egg-herbie
Counts
76 → 76
Iterations

Useful iterations: 2 (31.0ms)

IterNodesCost
0252536
11064480
25001477

prune101.0ms

Filtered
57 candidates to 76 candidates (-33.3%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New70676
Fresh000
Picked101
Done000
Total71677

Merged error: 0.2b

Counts
77 → 6

localize15.0ms

Local error

Found 4 expressions with local error:

0.1b
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
0.2b
(* r (/ (sin b) (- (* (cos a) (cos b)) (* (sin a) (sin b)))))
0.2b
(/ (sin b) (- (* (cos a) (cos b)) (* (sin a) (sin b))))
0.2b
(* (sin a) (sin b))

rewrite32.0ms

Algorithm
rewrite-expression-head
Rules
29×add-sqr-sqrt
22×add-cube-cbrt *-un-lft-identity
20×associate-*r*
19×times-frac
13×add-exp-log add-cbrt-cube
pow1 associate-/r/
sin-mult
associate-*l* cos-mult add-log-exp
flip3-- prod-exp associate-/r* frac-sub flip-- cbrt-unprod associate-/l* sub-div unswap-sqr
cbrt-undiv div-exp pow-prod-down *-commutative div-inv
sub-neg frac-2neg diff-log associate-*r/ clear-num
Counts
4 → 100
Calls
4 calls:
5.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
13.0ms
(* r (/ (sin b) (- (* (cos a) (cos b)) (* (sin a) (sin b)))))
7.0ms
(/ (sin b) (- (* (cos a) (cos b)) (* (sin a) (sin b))))
5.0ms
(* (sin a) (sin b))

series103.0ms

Counts
4 → 12
Calls
4 calls:
16.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
51.0ms
(* r (/ (sin b) (- (* (cos a) (cos b)) (* (sin a) (sin b)))))
27.0ms
(/ (sin b) (- (* (cos a) (cos b)) (* (sin a) (sin b))))
9.0ms
(* (sin a) (sin b))

simplify56.0ms

Algorithm
egg-herbie
Counts
112 → 112
Iterations

Useful iterations: 2 (44.0ms)

IterNodesCost
04051307
117611182
250011173

prune171.0ms

Filtered
86 candidates to 112 candidates (-30.2%)
Pruning

13 alts after pruning (13 fresh and 0 done)

PrunedKeptTotal
New9913112
Fresh505
Picked101
Done000
Total10513118

Merged error: 0.0b

Counts
118 → 13

localize16.0ms

Local error

Found 4 expressions with local error:

0.2b
(* r (* (sin b) (/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b))))))
0.2b
(/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b))))
0.2b
(* (sin a) (sin b))
0.2b
(* (sin b) (/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b)))))

rewrite39.0ms

Algorithm
rewrite-expression-head
Rules
34×add-exp-log
32×add-sqr-sqrt
24×*-un-lft-identity
23×add-cube-cbrt
22×add-cbrt-cube
21×associate-*r*
20×times-frac
14×pow1 prod-exp
associate-*l*
associate-/r/ cbrt-unprod
div-exp
pow-prod-down sin-mult
associate-*r/ cos-mult add-log-exp unswap-sqr
cbrt-undiv rec-exp 1-exp associate-/r* *-commutative associate-/l*
flip3-- un-div-inv frac-sub flip-- div-inv sub-div
pow-flip frac-2neg clear-num inv-pow
Counts
4 → 118
Calls
4 calls:
11.0ms
(* r (* (sin b) (/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b))))))
7.0ms
(/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b))))
6.0ms
(* (sin a) (sin b))
12.0ms
(* (sin b) (/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b)))))

series108.0ms

Counts
4 → 12
Calls
4 calls:
50.0ms
(* r (* (sin b) (/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b))))))
22.0ms
(/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b))))
9.0ms
(* (sin a) (sin b))
27.0ms
(* (sin b) (/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b)))))

simplify58.0ms

Algorithm
egg-herbie
Counts
130 → 130
Iterations

Useful iterations: 2 (46.0ms)

IterNodesCost
04581485
120121270
250011238

prune149.0ms

Filtered
80 candidates to 130 candidates (-62.5%)
Pruning

11 alts after pruning (11 fresh and 0 done)

PrunedKeptTotal
New1282130
Fresh3912
Picked101
Done000
Total13211143

Merged error: 0.0b

Counts
143 → 11

localize17.0ms

Local error

Found 4 expressions with local error:

0.1b
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
0.2b
(/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b))))
0.2b
(* (sin a) (sin b))
0.2b
(* (* r (sin b)) (/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b)))))

rewrite31.0ms

Algorithm
rewrite-expression-head
Rules
32×add-exp-log
23×add-sqr-sqrt
21×add-cube-cbrt *-un-lft-identity
20×associate-*r* add-cbrt-cube
18×times-frac
13×prod-exp
12×pow1
associate-/r/
cbrt-unprod sin-mult
div-exp cos-mult add-log-exp
associate-*l* pow-prod-down
cbrt-undiv rec-exp flip3-- 1-exp associate-/r* frac-sub flip-- associate-/l* sub-div
*-commutative div-inv
sub-neg pow-flip frac-2neg diff-log associate-*r/ clear-num un-div-inv inv-pow unswap-sqr
Counts
4 → 110
Calls
4 calls:
5.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
7.0ms
(/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b))))
4.0ms
(* (sin a) (sin b))
12.0ms
(* (* r (sin b)) (/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b)))))

series96.0ms

Counts
4 → 12
Calls
4 calls:
15.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
22.0ms
(/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b))))
9.0ms
(* (sin a) (sin b))
49.0ms
(* (* r (sin b)) (/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b)))))

simplify62.0ms

Algorithm
egg-herbie
Counts
122 → 122
Iterations

Useful iterations: 2 (50.0ms)

IterNodesCost
04831379
123011192
250011164

prune93.0ms

Filtered
75 candidates to 122 candidates (-62.7%)
Pruning

11 alts after pruning (10 fresh and 1 done)

PrunedKeptTotal
New1220122
Fresh01010
Picked011
Done000
Total12211133

Merged error: 0.0b

Counts
133 → 11

regimes243.0ms

Accuracy

0% (0.3b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02011
12011

end0.0ms

sample3.7s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 0%

Guaranteed chance to sample good point: 0%

Results
1.6s2909×body1280valid
533.0ms1810×body640valid
163.0ms782×body320valid
148.0ms2145×body80valid
53.0ms354×body160valid

Profiling

Loading profile data...