Details

Time bar (total: 10.8s)

analyze1.6s

Algorithm
search

sample137.0ms

Algorithm
intervals
Results
50.0ms58×body1280invalid
31.0ms243×body80valid
18.0ms33×body640invalid
7.0ms18×body320invalid
3.0msbody1280valid
2.0msbody320valid
2.0msbody2560invalid
2.0msbody640valid
2.0ms12×body80invalid
0.0msbody160invalid
0.0msbody160valid

simplify406.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: 33.1b

Counts
2 → 2

localize47.0ms

Local error

Found 4 expressions with local error:

0.9b
(* (atan2 x.im x.re) y.im)
29.3b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.3b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
34.1b
(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
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:
4.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)))

series89.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)))
71.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

prune141.0ms

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

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New62668
Fresh011
Picked101
Done000
Total63770

Merged error: 17.6b

Counts
70 → 7

localize28.0ms

Local error

Found 4 expressions with local error:

5.8b
(cbrt (atan2 x.im x.re))
29.3b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.3b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
34.1b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite18.0ms

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

series76.0ms

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

simplify73.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 4 (65.0ms)

IterNodesCost
0170414
1367380
2792377
32193377
45002375

prune131.0ms

Filtered
51 candidates to 61 candidates (-19.6%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New58361
Fresh156
Picked101
Done000
Total60868

Merged error: 17.6b

Counts
68 → 8

localize33.0ms

Local error

Found 4 expressions with local error:

5.8b
(cbrt (atan2 x.im x.re))
29.3b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.3b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
34.1b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite15.0ms

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

series78.0ms

Counts
4 → 12
Calls
4 calls:
10.0ms
(cbrt (atan2 x.im x.re))
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)))

simplify71.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 4 (65.0ms)

IterNodesCost
0170414
1367380
2792377
32193377
45002375

prune127.0ms

Filtered
51 candidates to 61 candidates (-19.6%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New60161
Fresh167
Picked101
Done000
Total62769

Merged error: 17.6b

Counts
69 → 7

localize34.0ms

Local error

Found 4 expressions with local error:

6.1b
(log (exp (cbrt (atan2 x.im x.re))))
29.3b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.3b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
34.1b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite17.0ms

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

series77.0ms

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

simplify72.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 4 (66.0ms)

IterNodesCost
0198452
1403407
2844404
32297404
45001402

prune92.0ms

Filtered
57 candidates to 68 candidates (-19.3%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New67168
Fresh066
Picked101
Done000
Total68775

Merged error: 17.6b

Counts
75 → 7

regimes405.0ms

Accuracy

78.4% (3.1b remaining)

Error of 22.3b against oracle of 19.2b and baseline of 33.7b

bsearch1.4s

Steps
ItersRangePoint
8
-3.9727907335540565e-306
8.751989257076327e-307
-5.7950528508698e-310

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04235
14235

end0.0ms

analyze1.3s

Algorithm
search

sample4.2s

Algorithm
intervals
Results
1.7s2130×body1280invalid
915.0ms7547×body80valid
665.0ms1251×body640invalid
174.0ms476×body320invalid
97.0ms127×body1280valid
85.0ms159×body640valid
73.0ms43×body2560invalid
50.0ms383×body80invalid
41.0ms170×body160invalid
41.0ms110×body320valid
14.0ms57×body160valid

Profiling

Loading profile data...