Details

Time bar (total: 7.5s)

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

sample150.0ms

Algorithm
intervals
Results
62.0ms79×body1280invalid
28.0ms243×body80valid
20.0ms41×body640invalid
9.0ms26×body320invalid
3.0msbody640valid
3.0ms11×body160invalid
2.0msbody1280valid
1.0msbody80invalid
1.0msbody320valid
0.0msbody160valid

simplify488.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (52.0ms)

IterNodesCost
0493436
1493436

prune15.0ms

Filtered
1 candidates to 1 candidates (0.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New101
Fresh011
Picked000
Done000
Total112

Merged error: 35.3b

Counts
2 → 1

localize24.0ms

Local error

Found 4 expressions with local error:

1.8b
(* (atan2 x.im x.re) y.re)
32.0b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
32.0b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
34.6b
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite37.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.re)
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
19.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)))

series86.0ms

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

simplify43.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 0 (37.0ms)

IterNodesCost
05098677

prune126.0ms

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

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New63568
Fresh000
Picked101
Done000
Total64569

Merged error: 18.8b

Counts
69 → 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.6b
(* (atan2 x.im x.re) y.im)
32.0b
(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)
4.0ms
(* (atan2 x.im x.re) y.im)
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

series76.0ms

Counts
4 → 12
Calls
4 calls:
40.0ms
(- (* (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)))

simplify51.0ms

Algorithm
egg-herbie
Counts
77 → 77
Iterations

Useful iterations: 0 (44.0ms)

IterNodesCost
04931892
14931892

prune119.0ms

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

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New74377
Fresh134
Picked101
Done000
Total76682

Merged error: 3.3b

Counts
82 → 6

localize17.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.6b
(* (atan2 x.im x.re) y.im)
2.1b
(log (exp (sqrt (+ (* x.re x.re) (* x.im x.im)))))
32.0b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite18.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)
5.0ms
(log (exp (sqrt (+ (* x.re x.re) (* x.im x.im)))))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

series43.0ms

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

simplify54.0ms

Algorithm
egg-herbie
Counts
82 → 82
Iterations

Useful iterations: 0 (48.0ms)

IterNodesCost
04966744
14966744

prune123.0ms

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

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New81182
Fresh145
Picked011
Done000
Total82688

Merged error: 3.3b

Counts
88 → 6

localize12.0ms

Local error

Found 3 expressions with local error:

0.0b
(- (* (log (neg x.re)) y.re) (* (atan2 x.im x.re) y.im))
0.2b
(* (log (neg x.re)) y.re)
1.6b
(* (atan2 x.im x.re) y.im)

rewrite12.0ms

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt
pow1
add-exp-log add-cube-cbrt *-un-lft-identity associate-*l* add-cbrt-cube
associate-*r*
add-log-exp
pow-prod-down prod-exp *-commutative cbrt-unprod unswap-sqr
sub-neg flip3-- diff-log log-pow flip--
Counts
3 → 48
Calls
3 calls:
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)

series41.0ms

Counts
3 → 9
Calls
3 calls:
24.0ms
(- (* (log (neg x.re)) y.re) (* (atan2 x.im x.re) y.im))
11.0ms
(* (log (neg x.re)) y.re)
7.0ms
(* (atan2 x.im x.re) y.im)

simplify73.0ms

Algorithm
egg-herbie
Counts
57 → 57
Iterations

Useful iterations: 0 (68.0ms)

IterNodesCost
06389492

prune52.0ms

Filtered
36 candidates to 57 candidates (-58.3%)
Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New57057
Fresh044
Picked011
Done011
Total57663

Merged error: 3.3b

Counts
63 → 6

regimes437.0ms

Accuracy

82.7% (5.5b remaining)

Error of 9.2b against oracle of 3.7b and baseline of 35.2b

bsearch203.0ms

Steps
ItersRangePoint
9
9.176971540993956e-47
2.6776788610594255e-38
2.0538964275531915e-46
7
6.244224889483291e-113
3.0290628435590816e-111
1.3420662967240638e-111
8
-1.860806577041847e-305
4.3133035984950444e-308
-2.8978419282618e-311

simplify3.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
011994
111994

end0.0ms

sample3.6s

Algorithm
intervals
Results
1.3s1823×body1280invalid
816.0ms7537×body80valid
637.0ms1339×body640invalid
187.0ms564×body320invalid
98.0ms138×body1280valid
70.0ms148×body640valid
56.0ms251×body160invalid
43.0ms382×body80invalid
38.0ms114×body320valid
17.0ms63×body160valid

Profiling

Loading profile data...