Details

Time bar (total: 19.9s)

sample4.3s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 49.359131%

Guaranteed chance to sample good point: 62.745571%

Results
80.0ms139×body1280valid
32.0ms29×body1280nan
22.0ms27×body640nan
15.0ms32×body640valid
7.0ms21×body320valid
6.0ms14×body320nan
5.0msbody640invalid
4.0ms50×body80valid
3.0msbody1280invalid
3.0ms14×body160valid
2.0msbody160nan
1.0msbody320invalid
1.0msbody80invalid
0.0msbody80overflowed
0.0msbody160invalid
0.0msbody80nan

simplify34.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0176
1346
2806
32366
48686
550016

prune3.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 30.8b

Counts
2 → 1

localize9.0ms

Local error

Found 3 expressions with local error:

0.0b
(pow (+ x 1.0) (/ 1.0 n))
0.0b
(pow x (/ 1.0 n))
2.8b
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))

rewrite21.0ms

Algorithm
rewrite-expression-head
Rules
31×add-sqr-sqrt
28×*-un-lft-identity
26×pow-unpow
19×add-cube-cbrt
18×times-frac
17×unpow-prod-down
difference-of-squares
sqr-pow
pow1 add-exp-log add-log-exp
add-cbrt-cube distribute-lft-out--
pow-to-exp pow-pow pow-exp div-inv distribute-lft-out
sub-neg flip3-- diff-log flip--
Counts
3 → 79
Calls
3 calls:
6.0ms
(pow (+ x 1.0) (/ 1.0 n))
4.0ms
(pow x (/ 1.0 n))
9.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))

series74.0ms

Counts
3 → 9
Calls
3 calls:
17.0ms
(pow (+ x 1.0) (/ 1.0 n))
15.0ms
(pow x (/ 1.0 n))
41.0ms
(- (pow (+ x 1.0) (/ 1.0 n)) (pow x (/ 1.0 n)))

simplify49.0ms

Algorithm
egg-herbie
Counts
88 → 88
Iterations

Useful iterations: 2 (40.0ms)

IterNodesCost
0552688
11885669
25002641

prune180.0ms

Filtered
71 candidates to 88 candidates (-23.9%)
Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New83588
Fresh000
Picked101
Done000
Total84589

Merged error: 22.5b

Counts
89 → 5

localize13.0ms

Local error

Found 4 expressions with local error:

0.0b
(pow x (/ 1.0 n))
0.0b
(cbrt (pow (pow (+ x 1.0) (/ 1.0 n)) 3))
0.0b
(pow (pow (+ x 1.0) (/ 1.0 n)) 3)
2.8b
(- (cbrt (pow (pow (+ x 1.0) (/ 1.0 n)) 3)) (pow x (/ 1.0 n)))

rewrite38.0ms

Algorithm
rewrite-expression-head
Rules
59×unpow-prod-down
58×add-sqr-sqrt
46×cbrt-prod
32×*-un-lft-identity
27×difference-of-squares
25×cube-prod sqr-pow
22×add-cube-cbrt
16×pow-unpow
times-frac
add-exp-log
add-log-exp
pow1 pow-exp add-cbrt-cube
distribute-lft-out
pow-to-exp
cube-mult pow-pow unpow3
sub-neg flip3-- pow1/3 diff-log flip-- rem-cbrt-cube div-inv distribute-lft-out-- rem-cube-cbrt
Counts
4 → 133
Calls
4 calls:
3.0ms
(pow x (/ 1.0 n))
6.0ms
(cbrt (pow (pow (+ x 1.0) (/ 1.0 n)) 3))
6.0ms
(pow (pow (+ x 1.0) (/ 1.0 n)) 3)
18.0ms
(- (cbrt (pow (pow (+ x 1.0) (/ 1.0 n)) 3)) (pow x (/ 1.0 n)))

series111.0ms

Counts
4 → 12
Calls
4 calls:
12.0ms
(pow x (/ 1.0 n))
18.0ms
(cbrt (pow (pow (+ x 1.0) (/ 1.0 n)) 3))
39.0ms
(pow (pow (+ x 1.0) (/ 1.0 n)) 3)
41.0ms
(- (cbrt (pow (pow (+ x 1.0) (/ 1.0 n)) 3)) (pow x (/ 1.0 n)))

simplify76.0ms

Algorithm
egg-herbie
Counts
145 → 145
Iterations

Useful iterations: 2 (58.0ms)

IterNodesCost
07111354
126361299
250021282

prune233.0ms

Filtered
86 candidates to 145 candidates (-68.6%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1423145
Fresh224
Picked011
Done000
Total1446150

Merged error: 22.4b

Counts
150 → 6

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(pow (+ x 1.0) (* 2 (/ 1.0 n)))
0.0b
(pow x (* 2 (/ 1.0 n)))
0.3b
(/ (- (pow (+ x 1.0) (* 2 (/ 1.0 n))) (pow x (* 2 (/ 1.0 n)))) (+ (pow x (/ 1.0 n)) (pow (+ x 1.0) (/ 1.0 n))))
2.7b
(- (pow (+ x 1.0) (* 2 (/ 1.0 n))) (pow x (* 2 (/ 1.0 n))))

rewrite51.0ms

Algorithm
rewrite-expression-head
Rules
199×*-un-lft-identity
151×unpow-prod-down
125×add-sqr-sqrt
90×times-frac
73×distribute-lft-out
72×difference-of-squares
50×sqr-pow
29×add-cube-cbrt
24×distribute-lft-out--
15×associate-/l*
add-exp-log
pow1 associate-/r* add-cbrt-cube add-log-exp
pow-to-exp pow-unpow flip3-- pow-pow pow-exp associate-/r/ flip-- associate-/l/
cbrt-undiv sub-neg frac-2neg flip3-+ diff-log div-sub div-exp clear-num flip-+ div-inv
Counts
4 → 183
Calls
4 calls:
4.0ms
(pow (+ x 1.0) (* 2 (/ 1.0 n)))
2.0ms
(pow x (* 2 (/ 1.0 n)))
22.0ms
(/ (- (pow (+ x 1.0) (* 2 (/ 1.0 n))) (pow x (* 2 (/ 1.0 n)))) (+ (pow x (/ 1.0 n)) (pow (+ x 1.0) (/ 1.0 n))))
9.0ms
(- (pow (+ x 1.0) (* 2 (/ 1.0 n))) (pow x (* 2 (/ 1.0 n))))

series314.0ms

Counts
4 → 12
Calls
4 calls:
17.0ms
(pow (+ x 1.0) (* 2 (/ 1.0 n)))
12.0ms
(pow x (* 2 (/ 1.0 n)))
246.0ms
(/ (- (pow (+ x 1.0) (* 2 (/ 1.0 n))) (pow x (* 2 (/ 1.0 n)))) (+ (pow x (/ 1.0 n)) (pow (+ x 1.0) (/ 1.0 n))))
38.0ms
(- (pow (+ x 1.0) (* 2 (/ 1.0 n))) (pow x (* 2 (/ 1.0 n))))

simplify95.0ms

Algorithm
egg-herbie
Counts
195 → 195
Iterations

Useful iterations: 2 (58.0ms)

IterNodesCost
08414019
131463890
250013864

prune520.0ms

Filtered
118 candidates to 195 candidates (-65.3%)
Pruning

10 alts after pruning (9 fresh and 1 done)

PrunedKeptTotal
New1896195
Fresh134
Picked101
Done011
Total19110201

Merged error: 22.3b

Counts
201 → 10

localize23.0ms

Local error

Found 4 expressions with local error:

0.0b
(* (+ (pow x (/ 1.0 n)) (pow (+ x 1.0) (/ 1.0 n))) (+ (pow (+ x 1.0) (* 2 (/ 1.0 n))) (pow x (* 2 (/ 1.0 n)))))
0.0b
(* (pow x (* 2 (/ 1.0 n))) (pow x (* 2 (/ 1.0 n))))
0.3b
(/ (- (* (pow (+ x 1.0) (* 2 (/ 1.0 n))) (pow (+ x 1.0) (* 2 (/ 1.0 n)))) (* (pow x (* 2 (/ 1.0 n))) (pow x (* 2 (/ 1.0 n))))) (* (+ (pow x (/ 1.0 n)) (pow (+ x 1.0) (/ 1.0 n))) (+ (pow (+ x 1.0) (* 2 (/ 1.0 n))) (pow x (* 2 (/ 1.0 n))))))
2.7b
(- (* (pow (+ x 1.0) (* 2 (/ 1.0 n))) (pow (+ x 1.0) (* 2 (/ 1.0 n)))) (* (pow x (* 2 (/ 1.0 n))) (pow x (* 2 (/ 1.0 n)))))

rewrite277.0ms

Algorithm
rewrite-expression-head
Rules
30×add-sqr-sqrt *-un-lft-identity
26×unpow-prod-down
23×add-exp-log
16×add-cube-cbrt
13×associate-*r* associate-*l* add-cbrt-cube
12×flip3-+ flip-+
11×prod-exp
10×unswap-sqr sqr-pow
frac-times associate-/r/ distribute-lft-out
swap-sqr
pow1 pow-to-exp pow-exp add-log-exp
times-frac associate-*r/ associate-*l/ associate-/l*
cbrt-unprod difference-of-squares
cbrt-undiv flip3-- div-exp pow-prod-down *-commutative flip-- associate-/l/
pow2 distribute-rgt-in sub-neg frac-2neg distribute-lft-in diff-log div-sub clear-num associate-/r* pow-sqr pow-prod-up div-inv
Counts
4 → 133
Calls
4 calls:
21.0ms
(* (+ (pow x (/ 1.0 n)) (pow (+ x 1.0) (/ 1.0 n))) (+ (pow (+ x 1.0) (* 2 (/ 1.0 n))) (pow x (* 2 (/ 1.0 n)))))
7.0ms
(* (pow x (* 2 (/ 1.0 n))) (pow x (* 2 (/ 1.0 n))))
31.0ms
(/ (- (* (pow (+ x 1.0) (* 2 (/ 1.0 n))) (pow (+ x 1.0) (* 2 (/ 1.0 n)))) (* (pow x (* 2 (/ 1.0 n))) (pow x (* 2 (/ 1.0 n))))) (* (+ (pow x (/ 1.0 n)) (pow (+ x 1.0) (/ 1.0 n))) (+ (pow (+ x 1.0) (* 2 (/ 1.0 n))) (pow x (* 2 (/ 1.0 n))))))
10.0ms
(- (* (pow (+ x 1.0) (* 2 (/ 1.0 n))) (pow (+ x 1.0) (* 2 (/ 1.0 n)))) (* (pow x (* 2 (/ 1.0 n))) (pow x (* 2 (/ 1.0 n)))))

series2.0s

Counts
4 → 12
Calls
4 calls:
98.0ms
(* (+ (pow x (/ 1.0 n)) (pow (+ x 1.0) (/ 1.0 n))) (+ (pow (+ x 1.0) (* 2 (/ 1.0 n))) (pow x (* 2 (/ 1.0 n)))))
16.0ms
(* (pow x (* 2 (/ 1.0 n))) (pow x (* 2 (/ 1.0 n))))
1.9s
(/ (- (* (pow (+ x 1.0) (* 2 (/ 1.0 n))) (pow (+ x 1.0) (* 2 (/ 1.0 n)))) (* (pow x (* 2 (/ 1.0 n))) (pow x (* 2 (/ 1.0 n))))) (* (+ (pow x (/ 1.0 n)) (pow (+ x 1.0) (/ 1.0 n))) (+ (pow (+ x 1.0) (* 2 (/ 1.0 n))) (pow x (* 2 (/ 1.0 n))))))
56.0ms
(- (* (pow (+ x 1.0) (* 2 (/ 1.0 n))) (pow (+ x 1.0) (* 2 (/ 1.0 n)))) (* (pow x (* 2 (/ 1.0 n))) (pow x (* 2 (/ 1.0 n)))))

simplify55.0ms

Algorithm
egg-herbie
Counts
145 → 145
Iterations

Useful iterations: 1 (27.0ms)

IterNodesCost
09993211
150022790

prune732.0ms

Filtered
103 candidates to 145 candidates (-40.8%)
Pruning

12 alts after pruning (11 fresh and 1 done)

PrunedKeptTotal
New1387145
Fresh448
Picked101
Done011
Total14312155

Merged error: 22.3b

Counts
155 → 12

regimes410.0ms

Accuracy

84.3% (1.7b remaining)

Error of 23.5b against oracle of 21.7b and baseline of 32.7b

bsearch1.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
06497
16497

end0.0ms

sample10.3s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 49.359131%

Guaranteed chance to sample good point: 62.745571%

Results
2.1s3871×body1280valid
1.1s1026×body1280nan
664.0ms1491×body640valid
603.0ms875×body640nan
221.0ms713×body320valid
185.0ms426×body320nan
167.0ms240×body640invalid
149.0ms117×body1280invalid
146.0ms1606×body80valid
78.0ms183×body320invalid
61.0ms319×body160valid
53.0ms236×body160nan
17.0ms287×body80nan
16.0ms66×body160invalid
16.0ms127×body80invalid
9.0ms56×body80overflowed

Profiling

Loading profile data...