Details

Time bar (total: 8.6s)

analyze539.0ms (6.3%)

Algorithm
search
Search
TrueOtherFalseIter
0%99.9%0.1%0
0%99.9%0.1%1
0%99.9%0.1%2
0%99.9%0.1%3
0%99.9%0.1%4
50%50%0.1%5
50%50%0.1%6
50%37.5%12.6%7
50%37.5%12.6%8
50%31.2%18.8%9
50%31.2%18.8%10
50%28.1%22%11
50%28.1%22%12
50%26.5%23.5%13
50%26.5%23.5%14
Compiler

Compiled 14 to 11 computations (21.4% saved)

sample4.7s (54.5%)

Results
1.5s2101×body1024valid
1.2s1999×body1024invalid
705.0ms4625×body128valid
396.0ms1027×body512valid
380.0ms1042×body512invalid
140.0ms484×body256invalid
130.0ms500×body256valid
108.0ms693×body128invalid
3.0msbody2048valid
Compiler

Compiled 41 to 32 computations (22% saved)

simplify114.0ms (1.3%)

Algorithm
egg-herbie
Rules
575×fma-def_binary64
533×associate-/l*_binary64
430×unswap-sqr_binary64
374×times-frac_binary64
354×fma-neg_binary64
Counts
1 → 2
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01118
12818
26518
39917
415417
526917
653217
791617
8333217
9326017
10400617
11426517
12469217
13484017
14489117
15491717

prune3.0ms (0%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New112
Fresh011
Picked000
Done000
Total123
Error
0.0b
Counts
3 → 1
Alt Table
StatusErrorProgram
0.0b
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
Compiler

Compiled 50 to 35 computations (30% saved)

localize9.0ms (0.1%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))
0.0b
(cos.f64 re)
0.0b
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))

series21.0ms (0.2%)

Counts
3 → 36
Calls

3 calls:

17.0ms
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
2.0ms
(+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))
2.0ms
(cos.f64 re)

rewrite15.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity_binary64
add-cbrt-cube_binary64
add-exp-log_binary64
pow1_binary64
add-sqr-sqrt_binary64
Counts
3 → 51
Calls

3 calls:

7.0ms
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
4.0ms
(+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))
1.0ms
(cos.f64 re)

simplify99.0ms (1.1%)

Algorithm
egg-herbie
Rules
652×fma-def_binary64
529×fma-neg_binary64
357×distribute-rgt-in_binary64
325×distribute-lft-in_binary64
214×cancel-sign-sub-inv_binary64
Counts
87 → 97
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01511623
14221397
214791366
344751366
449931366
549171366

prune87.0ms (1%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New94397
Fresh000
Picked101
Done000
Total95398
Error
0.0b
Counts
98 → 3
Alt Table
StatusErrorProgram
0.4b
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (*.f64 im im)) (*.f64 1/24 (pow.f64 im 4)))))
0.0b
(+.f64 (*.f64 (exp.f64 (neg.f64 im)) (*.f64 1/2 (cos.f64 re))) (*.f64 (exp.f64 im) (*.f64 1/2 (cos.f64 re))))
15.6b
(*.f64 (sqrt.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) (sqrt.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))
Compiler

Compiled 1960 to 868 computations (55.7% saved)

localize10.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(cos.f64 re)
0.0b
(*.f64 (exp.f64 im) (*.f64 1/2 (cos.f64 re)))
0.0b
(*.f64 (exp.f64 (neg.f64 im)) (*.f64 1/2 (cos.f64 re)))
0.0b
(+.f64 (*.f64 (exp.f64 (neg.f64 im)) (*.f64 1/2 (cos.f64 re))) (*.f64 (exp.f64 im) (*.f64 1/2 (cos.f64 re))))

series47.0ms (0.5%)

Counts
3 → 72
Calls

3 calls:

24.0ms
(+.f64 (*.f64 (exp.f64 (neg.f64 im)) (*.f64 1/2 (cos.f64 re))) (*.f64 (exp.f64 im) (*.f64 1/2 (cos.f64 re))))
12.0ms
(*.f64 (exp.f64 (neg.f64 im)) (*.f64 1/2 (cos.f64 re)))
12.0ms
(*.f64 (exp.f64 im) (*.f64 1/2 (cos.f64 re)))

rewrite25.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
13×add-cbrt-cube_binary64
13×pow1_binary64
add-exp-log_binary64
associate-*l*_binary64
cbrt-unprod_binary64
Counts
3 → 57
Calls

3 calls:

9.0ms
(*.f64 (exp.f64 (neg.f64 im)) (*.f64 1/2 (cos.f64 re)))
9.0ms
(+.f64 (*.f64 (exp.f64 (neg.f64 im)) (*.f64 1/2 (cos.f64 re))) (*.f64 (exp.f64 im) (*.f64 1/2 (cos.f64 re))))
5.0ms
(*.f64 (exp.f64 im) (*.f64 1/2 (cos.f64 re)))

simplify121.0ms (1.4%)

Algorithm
egg-herbie
Rules
747×fma-neg_binary64
491×cancel-sign-sub-inv_binary64
363×distribute-rgt-out_binary64
336×times-frac_binary64
260×associate-*r*_binary64
Counts
129 → 138
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01772334
15282082
220452038
343802029
453842029

prune185.0ms (2.1%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New1711172
Fresh112
Picked011
Done000
Total1723175
Error
0.0b
Counts
175 → 3
Alt Table
StatusErrorProgram
0.5b
(log.f64 (*.f64 (exp.f64 (*.f64 (exp.f64 (neg.f64 im)) (*.f64 1/2 (cos.f64 re)))) (exp.f64 (*.f64 (exp.f64 im) (*.f64 1/2 (cos.f64 re))))))
0.0b
(+.f64 (*.f64 (exp.f64 (neg.f64 im)) (*.f64 1/2 (cos.f64 re))) (*.f64 (exp.f64 im) (*.f64 1/2 (cos.f64 re))))
0.4b
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (*.f64 im im)) (*.f64 1/24 (pow.f64 im 4)))))
Compiler

Compiled 4008 to 2008 computations (49.9% saved)

localize10.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(*.f64 1/2 (*.f64 im im))
0.0b
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (*.f64 im im)) (*.f64 1/24 (pow.f64 im 4)))))
0.1b
(*.f64 1/24 (pow.f64 im 4))
0.1b
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (*.f64 im im)) (*.f64 1/24 (pow.f64 im 4))))

series71.0ms (0.8%)

Counts
4 → 60
Calls

4 calls:

35.0ms
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (*.f64 im im)) (*.f64 1/24 (pow.f64 im 4)))))
30.0ms
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (*.f64 im im)) (*.f64 1/24 (pow.f64 im 4))))
3.0ms
(*.f64 1/24 (pow.f64 im 4))
3.0ms
(*.f64 1/2 (*.f64 im im))

rewrite30.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
19×add-sqr-sqrt_binary64
16×add-exp-log_binary64
13×add-cbrt-cube_binary64
11×associate-*r*_binary64
11×*-un-lft-identity_binary64
Counts
4 → 90
Calls

4 calls:

10.0ms
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (*.f64 im im)) (*.f64 1/24 (pow.f64 im 4)))))
7.0ms
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (*.f64 im im)) (*.f64 1/24 (pow.f64 im 4))))
4.0ms
(*.f64 1/2 (*.f64 im im))
4.0ms
(*.f64 1/24 (pow.f64 im 4))

simplify117.0ms (1.4%)

Algorithm
egg-herbie
Rules
599×distribute-rgt-in_binary64
546×cancel-sign-sub-inv_binary64
498×fma-neg_binary64
235×associate-*r*_binary64
221×associate-*l*_binary64
Counts
150 → 156
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02102882
15592756
221882678
346812675
449992675

prune164.0ms (1.9%)

Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New1551156
Fresh101
Picked011
Done011
Total1563159
Error
0.0b
Counts
159 → 3
Alt Table
StatusErrorProgram
0.4b
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (*.f64 im im)) (*.f64 1/24 (pow.f64 im 4)))))
0.4b
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (log.f64 (sqrt.f64 (exp.f64 (*.f64 im im)))) (*.f64 1/24 (pow.f64 im 4)))))
0.0b
(+.f64 (*.f64 (exp.f64 (neg.f64 im)) (*.f64 1/2 (cos.f64 re))) (*.f64 (exp.f64 im) (*.f64 1/2 (cos.f64 re))))
Compiler

Compiled 4193 to 2542 computations (39.4% saved)

localize12.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (log.f64 (sqrt.f64 (exp.f64 (*.f64 im im)))) (*.f64 1/24 (pow.f64 im 4)))))
0.1b
(*.f64 (cos.f64 re) (+.f64 (log.f64 (sqrt.f64 (exp.f64 (*.f64 im im)))) (*.f64 1/24 (pow.f64 im 4))))
0.1b
(*.f64 1/24 (pow.f64 im 4))
3.4b
(log.f64 (sqrt.f64 (exp.f64 (*.f64 im im))))

series1.3s (14.8%)

Counts
3 → 60
Calls

3 calls:

573.0ms
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (log.f64 (sqrt.f64 (exp.f64 (*.f64 im im)))) (*.f64 1/24 (pow.f64 im 4)))))
384.0ms
(*.f64 (cos.f64 re) (+.f64 (log.f64 (sqrt.f64 (exp.f64 (*.f64 im im)))) (*.f64 1/24 (pow.f64 im 4))))
317.0ms
(log.f64 (sqrt.f64 (exp.f64 (*.f64 im im))))

rewrite17.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt_binary64
*-un-lft-identity_binary64
add-cube-cbrt_binary64
pow1_binary64
add-exp-log_binary64
Counts
3 → 63
Calls

3 calls:

7.0ms
(*.f64 (cos.f64 re) (+.f64 (log.f64 (sqrt.f64 (exp.f64 (*.f64 im im)))) (*.f64 1/24 (pow.f64 im 4))))
4.0ms
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (log.f64 (sqrt.f64 (exp.f64 (*.f64 im im)))) (*.f64 1/24 (pow.f64 im 4)))))
2.0ms
(log.f64 (sqrt.f64 (exp.f64 (*.f64 im im))))

simplify118.0ms (1.4%)

Algorithm
egg-herbie
Rules
586×distribute-rgt-in_binary64
557×distribute-lft-in_binary64
461×cancel-sign-sub-inv_binary64
296×fma-neg_binary64
177×fma-def_binary64
Counts
123 → 134
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01743075
14722926
217922850
346512521
450262521

prune182.0ms (2.1%)

Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New1670167
Fresh000
Picked011
Done022
Total1673170
Error
0.0b
Counts
170 → 3
Alt Table
StatusErrorProgram
0.4b
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (*.f64 im im)) (*.f64 1/24 (pow.f64 im 4)))))
0.4b
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (log.f64 (sqrt.f64 (exp.f64 (*.f64 im im)))) (*.f64 1/24 (pow.f64 im 4)))))
0.0b
(+.f64 (*.f64 (exp.f64 (neg.f64 im)) (*.f64 1/2 (cos.f64 re))) (*.f64 (exp.f64 im) (*.f64 1/2 (cos.f64 re))))
Compiler

Compiled 4619 to 2517 computations (45.5% saved)

regimes571.0ms (6.6%)

Accuracy

Total 0.0b remaining (56.6%)

Threshold costs 0.0b (56.6%)

Counts
98 → 1
Compiler

Compiled 9732 to 7119 computations (26.8% saved)

simplify3.0ms (0%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
+-commutative_binary64
*-lft-identity_binary64
sub-neg_binary64
neg-sub0_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01318
12218
22418
32518
42418

end72.0ms (0.8%)

Compiler

Compiled 83 to 60 computations (27.7% saved)

Profiling

Loading profile data...