Details

Time bar (total: 5.9s)

sample1.4s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 0%

Guaranteed chance to sample good point: 72.674561%

Results
10.0ms195×body80valid
6.0ms23×body2560valid
4.0ms11×body5120valid
2.0ms11×body1280valid
2.0msbody640valid
0.0msbody320valid
0.0msbody160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0178
1248
2308
3358
4358

prune3.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 39.6b

Counts
2 → 1

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.0b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
0.8b
(- (sqrt (+ (* re re) (* im im))) re)
30.0b
(sqrt (+ (* re re) (* im im)))

rewrite24.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt
pow1 add-log-exp
*-un-lft-identity
add-cube-cbrt sqrt-prod
add-exp-log sqrt-div add-cbrt-cube
sqrt-pow1
flip3-- flip3-+ pow1/2 associate-*r/ flip-- flip-+ difference-of-squares
+-commutative sub-neg rem-sqrt-square diff-log pow-prod-down sum-log distribute-lft-out--
Counts
4 → 54
Calls
4 calls:
4.0ms
(+ (* re re) (* im im))
7.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
6.0ms
(- (sqrt (+ (* re re) (* im im))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))

series44.0ms

Counts
4 → 12
Calls
4 calls:
5.0ms
(+ (* re re) (* im im))
25.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
7.0ms
(sqrt (+ (* re re) (* im im)))

simplify108.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 3 (102.0ms)

IterNodesCost
0260458
1982428
23667421
35001420

prune114.0ms

Filtered
52 candidates to 66 candidates (-26.9%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New61566
Fresh000
Picked011
Done000
Total61667

Merged error: 18.9b

Counts
67 → 6

localize14.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
5.6b
(- (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
31.1b
(cbrt (+ (* re re) (* im im)))
31.1b
(cbrt (+ (* re re) (* im im)))

rewrite26.0ms

Algorithm
rewrite-expression-head
Rules
16×add-sqr-sqrt
10×cbrt-prod add-cube-cbrt *-un-lft-identity
associate-*r*
sqrt-prod
pow1 add-exp-log cbrt-div add-cbrt-cube add-log-exp
flip3-+ associate-*l* flip-+ unswap-sqr
pow1/3 sqrt-div associate-*r/
sub-neg flip3-- diff-log pow-prod-down prod-exp *-commutative flip-- cbrt-unprod
Counts
4 → 66
Calls
4 calls:
8.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
8.0ms
(- (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
3.0ms
(cbrt (+ (* re re) (* im im)))
5.0ms
(cbrt (+ (* re re) (* im im)))

series111.0ms

Counts
4 → 12
Calls
4 calls:
37.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
30.0ms
(- (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
21.0ms
(cbrt (+ (* re re) (* im im)))
23.0ms
(cbrt (+ (* re re) (* im im)))

simplify117.0ms

Algorithm
egg-herbie
Counts
78 → 78
Iterations

Useful iterations: 3 (107.0ms)

IterNodesCost
03411002
11180942
24515900
35002886

prune136.0ms

Filtered
66 candidates to 78 candidates (-18.2%)
Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New76278
Fresh044
Picked011
Done011
Total76884

Merged error: 18.8b

Counts
84 → 8

localize23.0ms

Local error

Found 4 expressions with local error:

31.1b
(cbrt (+ (* re re) (* im im)))
31.1b
(cbrt (+ (* re re) (* im im)))
31.1b
(cbrt (+ (* re re) (* im im)))
31.1b
(cbrt (+ (* re re) (* im im)))

rewrite15.0ms

Algorithm
rewrite-expression-head
Rules
12×cbrt-prod
add-sqr-sqrt add-cube-cbrt cbrt-div *-un-lft-identity
pow1 add-exp-log flip3-+ pow1/3 add-cbrt-cube flip-+ add-log-exp
Counts
4 → 52
Calls
4 calls:
4.0ms
(cbrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))
3.0ms
(cbrt (+ (* re re) (* im im)))
3.0ms
(cbrt (+ (* re re) (* im im)))

series87.0ms

Counts
4 → 12
Calls
4 calls:
23.0ms
(cbrt (+ (* re re) (* im im)))
21.0ms
(cbrt (+ (* re re) (* im im)))
21.0ms
(cbrt (+ (* re re) (* im im)))
22.0ms
(cbrt (+ (* re re) (* im im)))

simplify45.0ms

Algorithm
egg-herbie
Counts
64 → 64
Iterations

Useful iterations: 3 (38.0ms)

IterNodesCost
0151560
1426524
21225500
35002468

prune127.0ms

Filtered
56 candidates to 64 candidates (-14.3%)
Pruning

8 alts after pruning (5 fresh and 3 done)

PrunedKeptTotal
New63164
Fresh145
Picked011
Done022
Total64872

Merged error: 18.8b

Counts
72 → 8

localize26.0ms

Local error

Found 4 expressions with local error:

31.1b
(cbrt (+ (* re re) (* im im)))
31.1b
(cbrt (+ (* re re) (* im im)))
31.1b
(cbrt (+ (* re re) (* im im)))
33.3b
(pow (+ (* re re) (* im im)) 1/3)

rewrite16.0ms

Algorithm
rewrite-expression-head
Rules
cbrt-prod add-sqr-sqrt add-cube-cbrt *-un-lft-identity
cbrt-div
pow1 add-exp-log
add-cbrt-cube add-log-exp
unpow-prod-down pow-unpow flip3-+ pow1/3 flip-+
pow-to-exp pow-pow unpow1/3 pow-exp sqr-pow
Counts
4 → 57
Calls
4 calls:
4.0ms
(cbrt (+ (* re re) (* im im)))
3.0ms
(cbrt (+ (* re re) (* im im)))
3.0ms
(cbrt (+ (* re re) (* im im)))
5.0ms
(pow (+ (* re re) (* im im)) 1/3)

series87.0ms

Counts
4 → 12
Calls
4 calls:
21.0ms
(cbrt (+ (* re re) (* im im)))
22.0ms
(cbrt (+ (* re re) (* im im)))
21.0ms
(cbrt (+ (* re re) (* im im)))
23.0ms
(pow (+ (* re re) (* im im)) 1/3)

simplify80.0ms

Algorithm
egg-herbie
Counts
69 → 69
Iterations

Useful iterations: 3 (74.0ms)

IterNodesCost
0200539
1682479
22623435
35001407

prune148.0ms

Filtered
59 candidates to 69 candidates (-16.9%)
Pruning

8 alts after pruning (5 fresh and 3 done)

PrunedKeptTotal
New68169
Fresh044
Picked101
Done033
Total69877

Merged error: 18.8b

Counts
77 → 8

regimes698.0ms

Accuracy

55.8% (9.3b remaining)

Error of 26.8b against oracle of 17.5b and baseline of 38.6b

bsearch53.0ms

Steps
ItersRangePoint
7
9.713458418191775e-164
2.3030690137822174e-161
9.927723549652797e-164
9
3.101302953318024e-301
5.411045921540497e-294
1.3487210264843393e-296
4
-1.4725401500926607e+124
-9.648099655221202e+123
-1.341156763099232e+124

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05127
15327
25327

end0.0ms

sample2.4s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 0%

Guaranteed chance to sample good point: 72.674561%

Results
301.0ms6025×body80valid
196.0ms710×body2560valid
106.0ms471×body1280valid
98.0ms296×body5120valid
45.0ms260×body640valid
23.0ms161×body320valid
7.0ms77×body160valid

Profiling

Loading profile data...