Details

Time bar (total: 10.0s)

sample3.6s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 0%

Guaranteed chance to sample good point: 74.609375%

Results
9.0ms194×body80valid
6.0ms21×body2560valid
3.0ms14×body1280valid
3.0msbody5120valid
2.0ms13×body640valid
1.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.1b

Counts
2 → 1

localize10.0ms

Local error

Found 3 expressions with local error:

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

rewrite19.0ms

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

series41.0ms

Counts
3 → 9
Calls
3 calls:
24.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
10.0ms
(- (sqrt (+ (* re re) (* im im))) re)
7.0ms
(sqrt (+ (* re re) (* im im)))

simplify87.0ms

Algorithm
egg-herbie
Counts
52 → 52
Iterations

Useful iterations: 3 (81.0ms)

IterNodesCost
0234381
1812362
23077355
35001354

prune100.0ms

Filtered
43 candidates to 52 candidates (-20.9%)
Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New47552
Fresh000
Picked101
Done000
Total48553

Merged error: 17.6b

Counts
53 → 5

localize13.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
6.8b
(- (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
31.0b
(cbrt (+ (* re re) (* im im)))
31.0b
(cbrt (+ (* re re) (* im im)))

rewrite24.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)))
3.0ms
(cbrt (+ (* re re) (* im im)))

series109.0ms

Counts
4 → 12
Calls
4 calls:
33.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
29.0ms
(- (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
24.0ms
(cbrt (+ (* re re) (* im im)))
23.0ms
(cbrt (+ (* re re) (* im im)))

simplify110.0ms

Algorithm
egg-herbie
Counts
78 → 78
Iterations

Useful iterations: 3 (101.0ms)

IterNodesCost
03411002
11180942
24515900
35002886

prune139.0ms

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

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New75378
Fresh044
Picked101
Done000
Total76783

Merged error: 17.6b

Counts
83 → 7

localize18.0ms

Local error

Found 4 expressions with local error:

31.0b
(cbrt (+ (* re re) (* im im)))
31.0b
(cbrt (+ (* re re) (* im im)))
31.0b
(cbrt (+ (* re re) (* im im)))
31.0b
(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:
3.0ms
(cbrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))

series83.0ms

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

simplify43.0ms

Algorithm
egg-herbie
Counts
64 → 64
Iterations

Useful iterations: 3 (36.0ms)

IterNodesCost
0151560
1426524
21225500
35002468

prune120.0ms

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

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New63164
Fresh156
Picked011
Done000
Total64771

Merged error: 17.6b

Counts
71 → 7

localize13.0ms

Local error

Found 4 expressions with local error:

0.2b
(+ (sqrt (+ (* re re) (* im im))) re)
5.6b
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
22.4b
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
30.0b
(sqrt (+ (* re re) (* im im)))

rewrite36.0ms

Algorithm
rewrite-expression-head
Rules
44×*-un-lft-identity
32×times-frac
25×add-sqr-sqrt
24×add-cube-cbrt
15×unpow-prod-down
10×distribute-lft-out
add-exp-log
pow1 associate-/l*
add-cbrt-cube add-log-exp
unpow2 sqr-pow
associate-/r* sqrt-prod
sqrt-pow1 flip3-+ sqrt-div div-exp flip-+
pow1/2 associate-/r/
cbrt-undiv +-commutative pow-to-exp rem-sqrt-square frac-2neg associate-*r/ pow-prod-down pow-exp clear-num sum-log div-inv
Counts
4 → 99
Calls
4 calls:
6.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
11.0ms
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
10.0ms
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
5.0ms
(sqrt (+ (* re re) (* im im)))

series45.0ms

Counts
4 → 12
Calls
4 calls:
7.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
22.0ms
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
10.0ms
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify53.0ms

Algorithm
egg-herbie
Counts
111 → 111
Iterations

Useful iterations: 2 (39.0ms)

IterNodesCost
04121076
11494991
25002987

prune147.0ms

Filtered
78 candidates to 111 candidates (-42.3%)
Pruning

10 alts after pruning (9 fresh and 1 done)

PrunedKeptTotal
New1065111
Fresh145
Picked101
Done011
Total10810118

Merged error: 6.5b

Counts
118 → 10

regimes328.0ms

Accuracy

40.8% (19.4b remaining)

Error of 26.6b against oracle of 7.1b and baseline of 39.9b

bsearch231.0ms

Steps
ItersRangePoint
7
8355106611636677.0
1.8798288722006794e+18
38636472822869224.0
4
7.921561677907191e-25
1.1712415830611904e-24
1.0547731849269709e-24
7
3.1367703345281057e-143
2.1325094630940935e-141
3.185583124521705e-143
8
1.283739826604558e-207
1.4512130115630385e-204
3.974989552829448e-206
9
-9.400415056905811e-297
-1.1521681827193233e-301
-1.166134515309741e-300
9
-6.107610852753143e-165
-8.03951107182309e-171
-8.118211634895193e-171
7
-5.052728755528032e+54
-1.8783072856380372e+53
-4.996607267832153e+54

simplify3.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
09073
19573
29673
39673

end0.0ms

sample4.6s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 0%

Guaranteed chance to sample good point: 74.609375%

Results
292.0ms5932×body80valid
200.0ms718×body2560valid
111.0ms500×body1280valid
101.0ms302×body5120valid
56.0ms311×body640valid
22.0ms163×body320valid
8.0ms74×body160valid

Profiling

Loading profile data...