Details

Time bar (total: 15.7s)

sample4.9s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 0.183105%

Guaranteed chance to sample good point: 49.663691%

Results
38.0ms53×body1280invalid
27.0ms239×body80valid
18.0ms37×body640invalid
9.0ms28×body320invalid
4.0msbody640valid
2.0ms11×body160invalid
2.0msbody1280valid
1.0ms13×body80invalid
1.0msbody320valid
1.0msbody160valid

simplify368.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.0b

Counts
2 → 2

localize23.0ms

Local error

Found 4 expressions with local error:

1.4b
(* (atan2 x.im x.re) y.im)
30.8b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
30.8b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
33.3b
(cos (+ (* (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-+
cos-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
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

series85.0ms

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

simplify79.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 2 (14.0ms)

IterNodesCost
0199426
1523389
21179387
32665387
45002387

prune134.0ms

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

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New61768
Fresh101
Picked101
Done000
Total63770

Merged error: 19.1b

Counts
70 → 7

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(exp (- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im)))
0.3b
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
1.4b
(* (atan2 x.im x.re) y.im)
30.8b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite20.0ms

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

series71.0ms

Counts
4 → 12
Calls
4 calls:
37.0ms
(exp (- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im)))
23.0ms
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
6.0ms
(* (atan2 x.im x.re) y.im)
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify61.0ms

Algorithm
egg-herbie
Counts
81 → 81
Iterations

Useful iterations: 3 (52.0ms)

IterNodesCost
0299556
1864496
22274481
35002479

prune134.0ms

Filtered
60 candidates to 81 candidates (-35.0%)
Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New77481
Fresh156
Picked101
Done000
Total79988

Merged error: 3.7b

Counts
88 → 9

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(* (log (log (exp (sqrt (+ (* x.re x.re) (* x.im x.im)))))) y.re)
1.4b
(* (atan2 x.im x.re) y.im)
3.3b
(log (exp (sqrt (+ (* x.re x.re) (* x.im x.im)))))
30.8b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite17.0ms

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

series42.0ms

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

simplify102.0ms

Algorithm
egg-herbie
Counts
82 → 82
Iterations

Useful iterations: 2 (17.0ms)

IterNodesCost
0261514
1727445
21711432
33709432
45001432

prune133.0ms

Filtered
61 candidates to 82 candidates (-34.4%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New81182
Fresh178
Picked011
Done000
Total82991

Merged error: 3.7b

Counts
91 → 9

localize26.0ms

Local error

Found 4 expressions with local error:

1.3b
(* (atan2 x.im x.re) (* (cbrt y.im) (cbrt y.im)))
30.8b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
30.8b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
33.3b
(cos (+ (* (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
11×pow1
10×add-sqr-sqrt
add-exp-log
add-cube-cbrt *-un-lft-identity add-cbrt-cube
sqrt-prod
sqrt-div add-log-exp
associate-*l* pow-prod-down prod-exp cbrt-unprod
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
cos-sum associate-*r* *-commutative unswap-sqr
Counts
4 → 57
Calls
4 calls:
7.0ms
(* (atan2 x.im x.re) (* (cbrt y.im) (cbrt y.im)))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
6.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

series86.0ms

Counts
4 → 12
Calls
4 calls:
24.0ms
(* (atan2 x.im x.re) (* (cbrt y.im) (cbrt y.im)))
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
6.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
51.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify57.0ms

Algorithm
egg-herbie
Counts
69 → 69
Iterations

Useful iterations: 3 (48.0ms)

IterNodesCost
0275515
1668463
21794448
35001442

prune83.0ms

Filtered
55 candidates to 69 candidates (-25.5%)
Pruning

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New69069
Fresh077
Picked011
Done011
Total69978

Merged error: 3.7b

Counts
78 → 9

regimes547.0ms

Accuracy

82.8% (5.4b remaining)

Error of 9.0b against oracle of 3.5b and baseline of 35.2b

bsearch210.0ms

Steps
ItersRangePoint
9
-2.39638253738344e-305
1.5904371949932397e-304
3.2929543682718e-310
5
-9.952989512993498e-65
-3.0842229109411626e-65
-9.752848790142804e-65
7
-2.530682891571387e-34
-1.5040095855804174e-35
-6.400708351997873e-35

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05136
15736
25736

end0.0ms

sample8.4s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 0.183105%

Guaranteed chance to sample good point: 49.663691%

Results
1.3s1825×body1280invalid
835.0ms7560×body80valid
610.0ms1293×body640invalid
188.0ms560×body320invalid
108.0ms138×body1280valid
88.0ms163×body640valid
56.0ms252×body160invalid
44.0ms389×body80invalid
29.0ms85×body320valid
15.0ms54×body160valid

Profiling

Loading profile data...