Details

Time bar (total: 5.3s)

sample70.0ms

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 0%

Guaranteed chance to sample good point: 100%

Results
16.0ms186×body80valid
10.0ms22×body1280valid
9.0ms25×body640valid
6.0ms75×body80invalid
4.0ms16×body320valid
3.0msbody640invalid
1.0msbody320invalid
1.0msbody1280invalid
1.0msbody160valid
1.0msbody160invalid

simplify39.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0278
1688
22438
312668
450018

prune4.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 26.6b

Counts
2 → 1

localize18.0ms

Local error

Found 4 expressions with local error:

0.4b
(/ (cos (* 2.0 x)) (* (pow c 2.0) (* (* x (pow s 2.0)) x)))
3.7b
(* (* x (pow s 2.0)) x)
7.2b
(* x (pow s 2.0))
17.7b
(* (pow c 2.0) (* (* x (pow s 2.0)) x))

rewrite33.0ms

Algorithm
rewrite-expression-head
Rules
122×add-exp-log
82×prod-exp
34×add-cbrt-cube
18×pow-to-exp pow-exp
17×add-sqr-sqrt
16×div-exp cbrt-unprod
12×add-cube-cbrt *-un-lft-identity
11×associate-*r* associate-*l*
unpow-prod-down
pow1
cbrt-undiv add-log-exp
times-frac *-commutative associate-/l* unswap-sqr sqr-pow
frac-2neg pow-prod-down clear-num associate-/r* div-inv
Counts
4 → 115
Calls
4 calls:
10.0ms
(/ (cos (* 2.0 x)) (* (pow c 2.0) (* (* x (pow s 2.0)) x)))
5.0ms
(* (* x (pow s 2.0)) x)
5.0ms
(* x (pow s 2.0))
8.0ms
(* (pow c 2.0) (* (* x (pow s 2.0)) x))

series215.0ms

Counts
4 → 12
Calls
4 calls:
75.0ms
(/ (cos (* 2.0 x)) (* (pow c 2.0) (* (* x (pow s 2.0)) x)))
30.0ms
(* (* x (pow s 2.0)) x)
29.0ms
(* x (pow s 2.0))
80.0ms
(* (pow c 2.0) (* (* x (pow s 2.0)) x))

simplify65.0ms

Algorithm
egg-herbie
Counts
127 → 127
Iterations

Useful iterations: 2 (54.0ms)

IterNodesCost
05711041
12506875
25001871

prune223.0ms

Filtered
70 candidates to 127 candidates (-81.4%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New1198127
Fresh000
Picked101
Done000
Total1208128

Merged error: 12.9b

Counts
128 → 8

localize17.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (* x (pow s (/ 2.0 2))) (pow s (/ 2.0 2)))
0.4b
(/ (cos (* 2.0 x)) (* (pow c 2.0) (* (* (* x (pow s (/ 2.0 2))) (pow s (/ 2.0 2))) x)))
3.7b
(* (* (* x (pow s (/ 2.0 2))) (pow s (/ 2.0 2))) x)
17.7b
(* (pow c 2.0) (* (* (* x (pow s (/ 2.0 2))) (pow s (/ 2.0 2))) x))

rewrite52.0ms

Algorithm
rewrite-expression-head
Rules
416×add-exp-log
343×prod-exp
84×pow-to-exp pow-exp
52×add-cbrt-cube
43×div-exp
29×cbrt-unprod
11×add-sqr-sqrt add-cube-cbrt *-un-lft-identity associate-*r*
associate-*l*
pow1 unpow-prod-down
cbrt-undiv
add-log-exp
times-frac *-commutative associate-/l*
sqr-pow
frac-2neg pow-prod-down clear-num associate-/r* div-inv
Counts
4 → 186
Calls
4 calls:
7.0ms
(* (* x (pow s (/ 2.0 2))) (pow s (/ 2.0 2)))
13.0ms
(/ (cos (* 2.0 x)) (* (pow c 2.0) (* (* (* x (pow s (/ 2.0 2))) (pow s (/ 2.0 2))) x)))
9.0ms
(* (* (* x (pow s (/ 2.0 2))) (pow s (/ 2.0 2))) x)
12.0ms
(* (pow c 2.0) (* (* (* x (pow s (/ 2.0 2))) (pow s (/ 2.0 2))) x))

series215.0ms

Counts
4 → 12
Calls
4 calls:
30.0ms
(* (* x (pow s (/ 2.0 2))) (pow s (/ 2.0 2)))
74.0ms
(/ (cos (* 2.0 x)) (* (pow c 2.0) (* (* (* x (pow s (/ 2.0 2))) (pow s (/ 2.0 2))) x)))
30.0ms
(* (* (* x (pow s (/ 2.0 2))) (pow s (/ 2.0 2))) x)
81.0ms
(* (pow c 2.0) (* (* (* x (pow s (/ 2.0 2))) (pow s (/ 2.0 2))) x))

simplify97.0ms

Algorithm
egg-herbie
Counts
198 → 198
Iterations

Useful iterations: 2 (74.0ms)

IterNodesCost
07212340
132341837
250011781

prune225.0ms

Filtered
67 candidates to 198 candidates (-195.5%)
Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New1917198
Fresh527
Picked101
Done000
Total1979206

Merged error: 2.0b

Counts
206 → 9

localize15.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (fabs (* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2))))) (fabs (* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2))))))
0.4b
(/ (cos (* 2.0 x)) (* (fabs (* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2))))) (fabs (* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2)))))))
4.3b
(* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2))))
4.3b
(* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2))))

rewrite25.0ms

Algorithm
rewrite-expression-head
Rules
63×add-exp-log
44×prod-exp
21×add-cbrt-cube
17×associate-*l*
16×add-sqr-sqrt
14×pow-to-exp add-cube-cbrt *-un-lft-identity pow-exp
11×pow1
cbrt-unprod
unpow-prod-down
associate-*r*
add-log-exp
times-frac swap-sqr *-commutative associate-/l*
cbrt-undiv div-exp sqr-pow
pow2 frac-2neg pow-plus pow-prod-down clear-num associate-/r* pow-sqr pow-prod-up div-inv unswap-sqr
Counts
4 → 106
Calls
4 calls:
3.0ms
(* (fabs (* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2))))) (fabs (* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2))))))
5.0ms
(/ (cos (* 2.0 x)) (* (fabs (* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2))))) (fabs (* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2)))))))
7.0ms
(* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2))))
7.0ms
(* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2))))

series188.0ms

Counts
4 → 12
Calls
4 calls:
16.0ms
(* (fabs (* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2))))) (fabs (* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2))))))
43.0ms
(/ (cos (* 2.0 x)) (* (fabs (* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2))))) (fabs (* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2)))))))
64.0ms
(* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2))))
65.0ms
(* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2))))

simplify50.0ms

Algorithm
egg-herbie
Counts
118 → 118
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
04021518
114821245
250021172

prune336.0ms

Filtered
69 candidates to 118 candidates (-71.0%)
Pruning

12 alts after pruning (12 fresh and 0 done)

PrunedKeptTotal
New1108118
Fresh448
Picked101
Done000
Total11512127

Merged error: 0.0b

Counts
127 → 12

localize18.0ms

Local error

Found 4 expressions with local error:

0.8b
(/ (cos (* 2.0 x)) (fabs (* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2))))))
0.8b
(/ 1 (fabs (* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2))))))
4.3b
(* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2))))
4.3b
(* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2))))

rewrite23.0ms

Algorithm
rewrite-expression-head
Rules
62×add-exp-log
42×prod-exp
24×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
18×times-frac add-cbrt-cube
14×pow-to-exp associate-*l* pow-exp
unpow-prod-down associate-/r* cbrt-unprod associate-/l*
pow1
add-log-exp
div-exp
cbrt-undiv frac-2neg associate-*r* clear-num *-commutative div-inv sqr-pow
rec-exp pow-flip 1-exp inv-pow
Counts
4 → 118
Calls
4 calls:
3.0ms
(/ (cos (* 2.0 x)) (fabs (* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2))))))
3.0ms
(/ 1 (fabs (* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2))))))
7.0ms
(* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2))))
7.0ms
(* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2))))

series310.0ms

Counts
4 → 12
Calls
4 calls:
164.0ms
(/ (cos (* 2.0 x)) (fabs (* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2))))))
16.0ms
(/ 1 (fabs (* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2))))))
63.0ms
(* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2))))
66.0ms
(* (pow c (/ 2.0 2)) (* x (pow s (/ 2.0 2))))

simplify49.0ms

Algorithm
egg-herbie
Counts
130 → 130
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
04131459
114051311
250021297

prune333.0ms

Filtered
76 candidates to 130 candidates (-71.1%)
Pruning

12 alts after pruning (12 fresh and 0 done)

PrunedKeptTotal
New1255130
Fresh4711
Picked101
Done000
Total13012142

Merged error: 0.0b

Counts
142 → 12

regimes542.0ms

Accuracy

0% (2.5b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02529
12529

end0.0ms

sample2.1s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 0%

Guaranteed chance to sample good point: 100%

Results
532.0ms5981×body80valid
329.0ms671×body1280valid
263.0ms2974×body80invalid
244.0ms706×body640valid
109.0ms430×body320valid
91.0ms271×body640invalid
61.0ms135×body1280invalid
41.0ms154×body320invalid
37.0ms212×body160valid
19.0ms116×body160invalid

Profiling

Loading profile data...