Details

Time bar (total: 8.0s)

analyze1.5s

Algorithm
search
Search
TrueOtherFalseIter
0%99.8%0.2%0
0%99.8%0.2%1
0%99.8%0.2%2
0%99.8%0.2%3
0%99.8%0.2%4
0%99.8%0.2%5
9.4%90.4%0.2%6
17.2%82.7%0.2%7
19.5%80.3%0.2%8
30.8%69%0.2%9
35.5%64.3%0.2%10
42.4%57.4%0.2%11
47.1%52.7%0.2%12
48.9%50.8%0.3%13
50%49.7%0.4%14

sample138.0ms

Algorithm
intervals
Results
42.0ms56×body1280invalid
28.0ms241×body80valid
27.0ms51×body640invalid
10.0ms18×body320invalid
3.0msbody640valid
2.0msbody160invalid
2.0ms14×body80invalid
2.0msbody1280valid
1.0msbody160valid
1.0msbody320valid

simplify467.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (49.0ms)

IterNodesCost
0493436
1493436

prune28.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: 34.6b

Counts
2 → 2

localize25.0ms

Local error

Found 4 expressions with local error:

1.1b
(* (atan2 x.im x.re) y.im)
31.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
31.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
33.1b
(cos (+ (* (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-+
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)))

simplify46.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 0 (40.0ms)

IterNodesCost
05029677

prune121.0ms

Filtered
56 candidates to 68 candidates (-21.4%)
Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New65368
Fresh011
Picked011
Done000
Total65570

Merged error: 21.2b

Counts
70 → 5

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(- (* (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.1b
(* (atan2 x.im x.re) y.im)
31.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite18.0ms

Algorithm
rewrite-expression-head
Rules
14×add-sqr-sqrt
11×pow1
add-cube-cbrt *-un-lft-identity associate-*l*
add-exp-log add-cbrt-cube
associate-*r* add-log-exp
sqrt-prod log-pow
sqrt-pow1 pow1/2 sqrt-div pow-prod-down prod-exp *-commutative cbrt-unprod unswap-sqr
sub-neg rem-sqrt-square flip3-- flip3-+ diff-log flip-- flip-+
Counts
4 → 65
Calls
4 calls:
4.0ms
(- (* (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)
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

series73.0ms

Counts
4 → 12
Calls
4 calls:
36.0ms
(- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im))
24.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)))

simplify49.0ms

Algorithm
egg-herbie
Counts
77 → 77
Iterations

Useful iterations: 0 (42.0ms)

IterNodesCost
04931892
14931892

prune118.0ms

Filtered
57 candidates to 77 candidates (-35.1%)
Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New74377
Fresh033
Picked011
Done011
Total74882

Merged error: 3.4b

Counts
82 → 8

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(exp (- (* (log (neg x.re)) y.re) (* (atan2 x.im x.re) y.im)))
0.0b
(- (* (log (neg x.re)) y.re) (* (atan2 x.im x.re) y.im))
0.1b
(* (log (neg x.re)) y.re)
1.1b
(* (atan2 x.im x.re) y.im)

rewrite17.0ms

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

series64.0ms

Counts
4 → 12
Calls
4 calls:
22.0ms
(exp (- (* (log (neg x.re)) y.re) (* (atan2 x.im x.re) y.im)))
23.0ms
(- (* (log (neg x.re)) y.re) (* (atan2 x.im x.re) y.im))
12.0ms
(* (log (neg x.re)) y.re)
6.0ms
(* (atan2 x.im x.re) y.im)

simplify55.0ms

Algorithm
egg-herbie
Counts
74 → 74
Iterations

Useful iterations: 0 (49.0ms)

IterNodesCost
04979693
14979693

prune97.0ms

Filtered
52 candidates to 74 candidates (-42.3%)
Pruning

8 alts after pruning (5 fresh and 3 done)

PrunedKeptTotal
New74074
Fresh055
Picked011
Done022
Total74882

Merged error: 3.4b

Counts
82 → 8

localize29.0ms

Local error

Found 4 expressions with local error:

31.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
33.1b
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
33.1b
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
33.1b
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite25.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
cos-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)))
7.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
6.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))
7.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

series161.0ms

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

simplify41.0ms

Algorithm
egg-herbie
Counts
51 → 51
Iterations

Useful iterations: 0 (35.0ms)

IterNodesCost
04993815
14993815

prune83.0ms

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

9 alts after pruning (5 fresh and 4 done)

PrunedKeptTotal
New50151
Fresh044
Picked011
Done033
Total50959

Merged error: 3.4b

Counts
59 → 9

regimes541.0ms

Accuracy

66.6% (5.5b remaining)

Error of 9.1b against oracle of 3.6b and baseline of 20.1b

bsearch262.0ms

Steps
ItersRangePoint
8
4.422363573017874e-48
1.7563168809935758e-45
1.7772110677640783e-47
10
2.3170939278246623e-181
2.058561309467564e-162
8.166050102475927e-163
10
-5.157736219728953e-293
2.8618744000636808e-307
-2.3629273245375e-310

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
08254
18254

end0.0ms

sample3.9s

Algorithm
intervals
Results
1.4s1972×body1280invalid
866.0ms7542×body80valid
651.0ms1286×body640invalid
188.0ms533×body320invalid
95.0ms126×body1280valid
86.0ms165×body640valid
53.0ms225×body160invalid
50.0ms431×body80invalid
39.0ms109×body320valid
14.0ms58×body160valid

Profiling

Loading profile data...