Details

Time bar (total: 10.7s)

analyze2.5s (23.6%)

Algorithm
search
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05136473
055
155
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
0%99.8%0.2%6
0%99.8%0.2%7
0%99.8%0.2%8
12.5%87.3%0.2%9
12.5%87.3%0.2%10
18.7%81.1%0.2%11
18.7%81.1%0.2%12
18.7%81.1%0.2%13
20.5%79.3%0.2%14
Compiler

Compiled 30 to 24 computations (20% saved)

sample47.0ms (0.4%)

Algorithm
intervals
Results
25.0ms255×body128valid
1.0msbody1024invalid
1.0ms11×body128invalid
1.0msbody1024valid
1.0msbody512invalid
Compiler

Compiled 59 to 52 computations (11.9% saved)

simplify52.0ms (0.5%)

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (41.0ms)

IterNodesCost
0509743

prune6.0ms (0.1%)

Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New011
Fresh101
Picked000
Done000
Total112
Error
17.0b
Counts
2 → 1
Compiler

Compiled 56 to 44 computations (21.4% saved)

localize19.0ms (0.2%)

Local error

Found 4 expressions with local error:

0.0b
(-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))
0.0b
(-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M)
0.0b
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)
35.3b
(cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))

rewrite180.0ms (1.7%)

Algorithm
rewrite-expression-head
Error
17.0b
Rules
20×*-un-lft-identity_binary64_1101
18×add-sqr-sqrt_binary64_1123
11×add-log-exp_binary64_1140
10×cancel-sign-sub-inv_binary64_1067
add-cube-cbrt_binary64_1136
unpow-prod-down_binary64_1180
pow1_binary64_1162 add-exp-log_binary64_1139
cos-sum_binary64_1235 add-cbrt-cube_binary64_1137 difference-of-squares_binary64_1070 distribute-lft-out--_binary64_1053
sub-neg_binary64_1094 pow-unpow_binary64_1178 diff-log_binary64_1193
flip3--_binary64_1105 flip--_binary64_1076 distribute-lft-out_binary64_1052
cos-diff_binary64_1238 times-frac_binary64_1107 pow-pow_binary64_1173 pow-to-exp_binary64_1170 pow-exp_binary64_1169 unpow2_binary64_1166 sqr-pow_binary64_1073 sum-log_binary64_1192 associate--r+_binary64_1037
Counts
4 → 69
Calls

4 calls:

17.0ms
(-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))
10.0ms
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)
9.0ms
(cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))
8.0ms
(-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M)
Compiler

Compiled 2698 to 1339 computations (50.4% saved)

series2.1s (19.5%)

Error
0.2b
Counts
4 → 94
Calls

4 calls:

985.0ms
(-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))
448.0ms
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)
366.0ms
(-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M)
147.0ms
(cos.f64 (-.f64 (/.f64 (*.f64 K (+.f64 m n)) 2) M))
Compiler

Compiled 7998 to 5476 computations (31.5% saved)

simplify77.0ms (0.7%)

Algorithm
egg-herbie
Counts
163 → 163
Iterations

Useful iterations: 0 (45.0ms)

IterNodesCost
049753444
149753444

prune259.0ms (2.4%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New1612163
Fresh000
Picked101
Done000
Total1622164
Error
0.2b
Counts
164 → 2
Compiler

Compiled 5296 to 2482 computations (53.1% saved)

localize14.0ms (0.1%)

Local error

Found 2 expressions with local error:

0.0b
(-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))
0.0b
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)

rewrite88.0ms (0.8%)

Algorithm
rewrite-expression-head
Error
0.2b
Rules
14×*-un-lft-identity_binary64_1101
12×add-sqr-sqrt_binary64_1123
add-log-exp_binary64_1140
unpow-prod-down_binary64_1180
add-cube-cbrt_binary64_1136
cancel-sign-sub-inv_binary64_1067
difference-of-squares_binary64_1070 distribute-lft-out--_binary64_1053 pow-unpow_binary64_1178 pow1_binary64_1162 add-exp-log_binary64_1139
add-cbrt-cube_binary64_1137 diff-log_binary64_1193 distribute-lft-out_binary64_1052
times-frac_binary64_1107 pow-pow_binary64_1173 pow-to-exp_binary64_1170 pow-exp_binary64_1169 unpow2_binary64_1166 sqr-pow_binary64_1073 sum-log_binary64_1192 flip3--_binary64_1105 sub-neg_binary64_1094 flip--_binary64_1076 associate--r+_binary64_1037
Counts
2 → 41
Calls

2 calls:

16.0ms
(-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))
10.0ms
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)
Compiler

Compiled 1264 to 653 computations (48.3% saved)

series1.5s (13.6%)

Error
0.2b
Counts
2 → 60
Calls

2 calls:

943.0ms
(-.f64 (fabs.f64 (-.f64 m n)) (+.f64 (pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2) l))
432.0ms
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)
Compiler

Compiled 4104 to 2868 computations (30.1% saved)

simplify66.0ms (0.6%)

Algorithm
egg-herbie
Counts
101 → 101
Iterations

Useful iterations: 0 (40.0ms)

IterNodesCost
049692463
149692463

prune133.0ms (1.2%)

Pruning

2 alts after pruning (1 fresh and 1 done)

PrunedKeptTotal
New1010101
Fresh011
Picked011
Done000
Total1012103
Error
0.2b
Counts
103 → 2
Compiler

Compiled 2561 to 1157 computations (54.8% saved)

localize18.0ms (0.2%)

Local error

Found 4 expressions with local error:

0.0b
(*.f64 1/2 (*.f64 K n))
0.0b
(-.f64 (*.f64 1/2 (*.f64 K n)) M)
0.0b
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)
24.0b
(cos.f64 (-.f64 (*.f64 1/2 (*.f64 K n)) M))

rewrite146.0ms (1.4%)

Algorithm
rewrite-expression-head
Error
0.2b
Rules
14×add-sqr-sqrt_binary64_1123
11×*-un-lft-identity_binary64_1101
10×pow1_binary64_1162 add-exp-log_binary64_1139
add-cube-cbrt_binary64_1136 add-cbrt-cube_binary64_1137
cancel-sign-sub-inv_binary64_1067 add-log-exp_binary64_1140 unpow-prod-down_binary64_1180
cos-sum_binary64_1235
pow-unpow_binary64_1178 pow-prod-down_binary64_1172 prod-exp_binary64_1150 cbrt-unprod_binary64_1134 associate-*l*_binary64_1042
sub-neg_binary64_1094 difference-of-squares_binary64_1070
cos-diff_binary64_1238 times-frac_binary64_1107 distribute-lft-out--_binary64_1053 pow-pow_binary64_1173 pow-to-exp_binary64_1170 pow-exp_binary64_1169 unpow2_binary64_1166 sqr-pow_binary64_1073 diff-log_binary64_1193 flip3--_binary64_1105 flip--_binary64_1076 associate-*r*_binary64_1041 *-commutative_binary64_1032
Counts
4 → 65
Calls

4 calls:

10.0ms
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)
7.0ms
(cos.f64 (-.f64 (*.f64 1/2 (*.f64 K n)) M))
5.0ms
(-.f64 (*.f64 1/2 (*.f64 K n)) M)
5.0ms
(*.f64 1/2 (*.f64 K n))
Compiler

Compiled 2224 to 1198 computations (46.1% saved)

series875.0ms (8.2%)

Error
0.2b
Counts
4 → 60
Calls

4 calls:

421.0ms
(pow.f64 (-.f64 (/.f64 (+.f64 m n) 2) M) 2)
198.0ms
(-.f64 (*.f64 1/2 (*.f64 K n)) M)
92.0ms
(*.f64 1/2 (*.f64 K n))
80.0ms
(cos.f64 (-.f64 (*.f64 1/2 (*.f64 K n)) M))
Compiler

Compiled 4539 to 3212 computations (29.2% saved)

simplify74.0ms (0.7%)

Algorithm
egg-herbie
Counts
125 → 125
Iterations

Useful iterations: 0 (53.0ms)

IterNodesCost
052211780

prune190.0ms (1.8%)

Pruning

2 alts after pruning (0 fresh and 2 done)

PrunedKeptTotal
New1250125
Fresh000
Picked011
Done011
Total1252127
Error
0.2b
Counts
127 → 2
Compiler

Compiled 3697 to 1840 computations (50.2% saved)

regimes372.0ms (3.5%)

Accuracy

Total 0.2b remaining (11.3%)

Threshold costs 0.2b (11.3%)

Compiler

Compiled 3296 to 3210 computations (2.6% saved)

bsearch0.0ms (0%)

simplify3.0ms (0%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
06231
16231

end0.0ms (0%)

sample2.0s (18.8%)

Algorithm
intervals
Results
806.0ms7830×body128valid
39.0ms94×body1024invalid
35.0ms70×body1024valid
34.0ms294×body128invalid
26.0ms86×body512invalid
18.0ms55×body512valid
11.0ms52×body256invalid
9.0ms44×body256valid
8.0ms15×body2048invalid
1.0msbody2048valid
Compiler

Compiled 588 to 566 computations (3.7% saved)

Profiling

Loading profile data...