Details

Time bar (total: 6.9s)

analyze4.3s

Algorithm
search
sampling

Space saved by range analysis: 0.195169%

Space saved by search: 0.320047%

Guaranteed chance to sample good point: 55.092126%

sample153.0ms

Algorithm
intervals
Results
59.0ms68×body1280invalid
29.0ms241×body80valid
22.0ms42×body640invalid
5.0msbody1280valid
4.0ms11×body320invalid
4.0msbody2560invalid
3.0msbody320valid
2.0msbody160invalid
1.0msbody80invalid
1.0msbody640valid

simplify381.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
03121
15320
28420
320320
487920
5500120

prune20.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: 36.8b

Counts
2 → 2

localize45.0ms

Local error

Found 4 expressions with local error:

2.5b
(* (atan2 x.im x.re) y.im)
32.4b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
32.4b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
34.0b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

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.im)
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
8.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

series87.0ms

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

simplify81.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 2 (14.0ms)

IterNodesCost
0206434
1539395
21201392
32732392
45002392

prune165.0ms

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

11 alts after pruning (11 fresh and 0 done)

PrunedKeptTotal
New581068
Fresh011
Picked101
Done000
Total591170

Merged error: 20.8b

Counts
70 → 11

localize30.0ms

Local error

Found 4 expressions with local error:

32.4b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
32.4b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
32.4b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
34.0b
(sin (+ (* (log (* (* (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im))))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite34.0ms

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

series73.0ms

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

simplify68.0ms

Algorithm
egg-herbie
Counts
65 → 65
Iterations

Useful iterations: 4 (61.0ms)

IterNodesCost
0158616
1336558
2704557
32021557
45001554

prune156.0ms

Filtered
55 candidates to 65 candidates (-18.2%)
Pruning

11 alts after pruning (10 fresh and 1 done)

PrunedKeptTotal
New64165
Fresh1910
Picked011
Done000
Total651176

Merged error: 20.8b

Counts
76 → 11

localize27.0ms

Local error

Found 4 expressions with local error:

32.4b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
34.0b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
34.0b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
34.0b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite22.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
pow1 add-cube-cbrt *-un-lft-identity
add-exp-log add-cbrt-cube add-log-exp
sin-sum sqrt-prod
sqrt-div
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
Counts
4 → 39
Calls
4 calls:
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
6.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (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)))
6.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

series166.0ms

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

simplify61.0ms

Algorithm
egg-herbie
Counts
51 → 51
Iterations

Useful iterations: 4 (54.0ms)

IterNodesCost
0152580
1321508
2672505
31724505
45001504

prune138.0ms

Filtered
48 candidates to 51 candidates (-6.3%)
Pruning

11 alts after pruning (10 fresh and 1 done)

PrunedKeptTotal
New50151
Fresh099
Picked101
Done011
Total511162

Merged error: 20.8b

Counts
62 → 11

localize28.0ms

Local error

Found 4 expressions with local error:

32.4b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
32.4b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
34.0b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
35.0b
(cbrt (pow (* (atan2 x.im x.re) y.im) 3))

rewrite16.0ms

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

series77.0ms

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

simplify83.0ms

Algorithm
egg-herbie
Counts
67 → 67
Iterations

Useful iterations: 4 (77.0ms)

IterNodesCost
0211456
1537424
21142423
32771423
45001421

prune117.0ms

Filtered
55 candidates to 67 candidates (-21.8%)
Pruning

11 alts after pruning (10 fresh and 1 done)

PrunedKeptTotal
New66167
Fresh099
Picked101
Done011
Total671178

Merged error: 20.8b

Counts
78 → 11

regimes548.0ms

bsearch2.0ms

Profiling

Loading profile data...