Details

Time bar (total: 14.6s)

sample4.4s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 0.125122%

Guaranteed chance to sample good point: 55.092126%

Results
38.0ms47×body1280invalid
30.0ms247×body80valid
27.0ms51×body640invalid
8.0ms21×body320invalid
6.0ms13×body80invalid
3.0msbody1280valid
2.0msbody640valid
2.0msbody2560invalid
1.0msbody160invalid
0.0msbody160valid

simplify393.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
03121
15320
28420
320320
487920
5500120

prune30.0ms

Filtered
1 candidates to 1 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 35.1b

Counts
2 → 2

localize24.0ms

Local error

Found 4 expressions with local error:

1.9b
(* (atan2 x.im x.re) y.re)
32.2b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
32.3b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
32.3b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite21.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt
pow1 add-cube-cbrt *-un-lft-identity
add-exp-log sqrt-prod add-cbrt-cube
sqrt-div add-log-exp
associate-*r* associate-*l*
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
sin-sum pow-prod-down prod-exp *-commutative cbrt-unprod unswap-sqr
Counts
4 → 56
Calls
4 calls:
3.0ms
(* (atan2 x.im x.re) y.re)
6.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

series88.0ms

Counts
4 → 12
Calls
4 calls:
6.0ms
(* (atan2 x.im x.re) y.re)
62.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
14.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify81.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 2 (15.0ms)

IterNodesCost
0204434
1529395
21179392
32603392
45002392

prune125.0ms

Filtered
54 candidates to 68 candidates (-25.9%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New63568
Fresh011
Picked101
Done000
Total64670

Merged error: 21.1b

Counts
70 → 6

localize28.0ms

Local error

Found 4 expressions with local error:

6.0b
(cbrt (* (atan2 x.im x.re) y.re))
32.3b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
32.3b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
32.3b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (* (cbrt (* (atan2 x.im x.re) y.re)) (cbrt (* (atan2 x.im x.re) y.re))) (cbrt (* (atan2 x.im x.re) y.re)))))

rewrite20.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
pow1 add-cube-cbrt *-un-lft-identity sqrt-prod
add-exp-log sqrt-div add-cbrt-cube add-log-exp
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
cbrt-prod sin-sum pow1/3
Counts
4 → 47
Calls
4 calls:
2.0ms
(cbrt (* (atan2 x.im x.re) y.re))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
9.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (* (cbrt (* (atan2 x.im x.re) y.re)) (cbrt (* (atan2 x.im x.re) y.re))) (cbrt (* (atan2 x.im x.re) y.re)))))

series91.0ms

Counts
4 → 12
Calls
4 calls:
21.0ms
(cbrt (* (atan2 x.im x.re) y.re))
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
58.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (* (cbrt (* (atan2 x.im x.re) y.re)) (cbrt (* (atan2 x.im x.re) y.re))) (cbrt (* (atan2 x.im x.re) y.re)))))

simplify72.0ms

Algorithm
egg-herbie
Counts
59 → 59
Iterations

Useful iterations: 4 (65.0ms)

IterNodesCost
0203533
1412478
2856471
32218469
45002467

prune104.0ms

Filtered
50 candidates to 59 candidates (-18.0%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New59059
Fresh055
Picked011
Done000
Total59665

Merged error: 21.1b

Counts
65 → 6

localize25.0ms

Local error

Found 4 expressions with local error:

1.9b
(* (atan2 x.im x.re) y.re)
32.2b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
32.3b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
32.3b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite18.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt
pow1 add-cube-cbrt *-un-lft-identity
add-exp-log sqrt-prod add-cbrt-cube
sqrt-div add-log-exp
associate-*r* associate-*l*
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
sin-sum pow-prod-down prod-exp *-commutative cbrt-unprod unswap-sqr
Counts
4 → 56
Calls
4 calls:
3.0ms
(* (atan2 x.im x.re) y.re)
6.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
3.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

series74.0ms

Counts
4 → 12
Calls
4 calls:
6.0ms
(* (atan2 x.im x.re) y.re)
57.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify80.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 2 (15.0ms)

IterNodesCost
0204434
1529395
21179392
32603392
45002392

prune108.0ms

Filtered
54 candidates to 68 candidates (-25.9%)
Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New68068
Fresh044
Picked011
Done011
Total68674

Merged error: 21.1b

Counts
74 → 6

localize25.0ms

Local error

Found 4 expressions with local error:

13.1b
(cbrt (pow (sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re))) 3))
32.2b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
32.3b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
32.3b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite20.0ms

Algorithm
rewrite-expression-head
Rules
12×cbrt-prod
11×add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
pow1 sqrt-prod
add-exp-log sqrt-div add-cbrt-cube add-log-exp
unpow-prod-down cube-prod
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
cube-mult sin-sum pow1/3 unpow3 rem-cbrt-cube sqr-pow
Counts
4 → 59
Calls
4 calls:
5.0ms
(cbrt (pow (sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re))) 3))
6.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

series122.0ms

Counts
4 → 12
Calls
4 calls:
54.0ms
(cbrt (pow (sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re))) 3))
56.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify53.0ms

Algorithm
egg-herbie
Counts
71 → 71
Iterations

Useful iterations: 2 (14.0ms)

IterNodesCost
0201743
1526731
21327729
35001729

prune101.0ms

Filtered
56 candidates to 71 candidates (-26.8%)
Pruning

6 alts after pruning (3 fresh and 3 done)

PrunedKeptTotal
New71071
Fresh033
Picked011
Done022
Total71677

Merged error: 21.1b

Counts
77 → 6

regimes371.0ms

Accuracy

77% (3.3b remaining)

Error of 22.8b against oracle of 19.6b and baseline of 33.7b

bsearch69.0ms

Steps
ItersRangePoint
5
-8.803849925546127e-305
-3.2439133452398597e-305
-3.2976084584999315e-305

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04235
14235

end0.0ms

sample8.1s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 0.125122%

Guaranteed chance to sample good point: 55.092126%

Results
1.5s1968×body1280invalid
865.0ms7562×body80valid
658.0ms1293×body640invalid
161.0ms440×body320invalid
92.0ms126×body1280valid
77.0ms159×body640valid
75.0ms40×body2560invalid
46.0ms381×body80invalid
44.0ms190×body160invalid
34.0ms96×body320valid
14.0ms57×body160valid

Profiling

Loading profile data...