Details

Time bar (total: 6.6s)

analyze115.0ms (1.7%)

Algorithm
search
Search
TrueOtherFalseIter
0%2.1%97.9%0
0%2.1%97.9%1
1%1%97.9%2
1%1%97.9%3
1.5%0.5%97.9%4
1.5%0.5%97.9%5
1.8%0.3%97.9%6
1.8%0.3%97.9%7
1.9%0.1%97.9%8
1.9%0.1%97.9%9
2%0.1%97.9%10
2%0.1%97.9%11
2%0%97.9%12
2%0%97.9%13
2%0%97.9%14
Compiler

Compiled 50 to 36 computations (28% saved)

sample2.2s (33.5%)

Results
2.1s8256×body128valid
Compiler

Compiled 135 to 97 computations (28.1% saved)

simplify64.0ms (1%)

Algorithm
egg-herbie
Rules
672×fma-neg_binary32
634×associate-*l*_binary32
530×associate-*r*_binary32
445×associate-/r*_binary32
406×*-commutative_binary32
Counts
1 → 2
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02653
16643
223735
386432
4257232
5389032
6429332
7487132
8487032

prune5.0ms (0.1%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
0.1b
Counts
3 → 2
Alt Table
StatusErrorProgram
0.1b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (*.f32 (*.f32 2 (PI.f32)) s) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)))
1.3b
(*.f32 (/.f32 (/.f32 1/8 (*.f32 s (PI.f32))) r) (+.f32 (exp.f32 (/.f32 (neg.f32 r) s)) (pow.f32 (exp.f32 (/.f32 r s)) -1/3)))
Compiler

Compiled 169 to 117 computations (30.8% saved)

localize84.0ms (1.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.2b
(*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)
0.2b
(*.f32 (*.f32 (*.f32 2 (PI.f32)) s) r)
0.2b
(/.f32 (neg.f32 r) (*.f32 3 s))
0.4b
(*.f32 (*.f32 2 (PI.f32)) s)

series28.0ms (0.4%)

Counts
4 → 84
Calls

4 calls:

8.0ms
(*.f32 (*.f32 (*.f32 2 (PI.f32)) s) r)
8.0ms
(*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)
7.0ms
(/.f32 (neg.f32 r) (*.f32 3 s))
5.0ms
(*.f32 (*.f32 2 (PI.f32)) s)

rewrite50.0ms (0.8%)

Algorithm
rewrite-expression-head
Rules
32×add-cbrt-cube_binary32
32×add-exp-log_binary32
27×pow1_binary32
16×cbrt-unprod_binary32
16×prod-exp_binary32
Counts
4 → 105
Calls

4 calls:

31.0ms
(*.f32 (*.f32 2 (PI.f32)) s)
6.0ms
(*.f32 (*.f32 (*.f32 2 (PI.f32)) s) r)
5.0ms
(*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)
4.0ms
(/.f32 (neg.f32 r) (*.f32 3 s))

simplify93.0ms (1.4%)

Algorithm
egg-herbie
Rules
512×associate-/l*_binary32
418×associate-*l*_binary32
326×associate-/r*_binary32
318×distribute-rgt-neg-out_binary32
310×associate-*r*_binary32
Counts
189 → 154
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01872248
14421951
218851945
345711945
449351945

prune238.0ms (3.6%)

Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New1513154
Fresh011
Picked101
Done000
Total1524156
Error
0.0b
Counts
156 → 4
Alt Table
StatusErrorProgram
0.1b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (*.f32 (*.f32 2 (PI.f32)) s) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (exp.f32 (+.f32 (log.f32 (*.f32 (*.f32 6 (PI.f32)) s)) (log.f32 r)))))
0.2b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (*.f32 (*.f32 2 (PI.f32)) s) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (exp.f32 (+.f32 (+.f32 (+.f32 (log.f32 6) (log.f32 (PI.f32))) (log.f32 s)) (log.f32 r)))))
0.1b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (*.f32 (*.f32 (*.f32 2 (PI.f32)) (sqrt.f32 s)) (sqrt.f32 s)) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)))
1.3b
(*.f32 (/.f32 (/.f32 1/8 (*.f32 s (PI.f32))) r) (+.f32 (exp.f32 (/.f32 (neg.f32 r) s)) (pow.f32 (exp.f32 (/.f32 r s)) -1/3)))
Compiler

Compiled 6119 to 3516 computations (42.5% saved)

localize105.0ms (1.6%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.2b
(*.f32 (*.f32 (*.f32 (*.f32 2 (PI.f32)) (sqrt.f32 s)) (sqrt.f32 s)) r)
0.2b
(/.f32 (neg.f32 r) (*.f32 3 s))
0.4b
(*.f32 (*.f32 2 (PI.f32)) (sqrt.f32 s))
0.4b
(*.f32 (*.f32 (*.f32 2 (PI.f32)) (sqrt.f32 s)) (sqrt.f32 s))

series31.0ms (0.5%)

Counts
3 → 28
Calls

3 calls:

12.0ms
(*.f32 (*.f32 2 (PI.f32)) (sqrt.f32 s))
12.0ms
(*.f32 (*.f32 (*.f32 (*.f32 2 (PI.f32)) (sqrt.f32 s)) (sqrt.f32 s)) r)
7.0ms
(*.f32 (*.f32 (*.f32 2 (PI.f32)) (sqrt.f32 s)) (sqrt.f32 s))

rewrite27.0ms (0.4%)

Algorithm
rewrite-expression-head
Rules
31×add-cbrt-cube_binary32
31×add-exp-log_binary32
31×pow1_binary32
19×cbrt-unprod_binary32
19×prod-exp_binary32
Counts
3 → 75
Calls

3 calls:

8.0ms
(*.f32 (*.f32 (*.f32 (*.f32 2 (PI.f32)) (sqrt.f32 s)) (sqrt.f32 s)) r)
7.0ms
(*.f32 (*.f32 2 (PI.f32)) (sqrt.f32 s))
7.0ms
(*.f32 (*.f32 (*.f32 2 (PI.f32)) (sqrt.f32 s)) (sqrt.f32 s))

simplify111.0ms (1.7%)

Algorithm
egg-herbie
Rules
530×*-commutative_binary32
468×distribute-rgt-in_binary32
397×sqr-pow_binary32
346×associate-*l*_binary32
292×unswap-sqr_binary32
Counts
103 → 92
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01031354
12491165
29901165
315531165
420831165
532401165
649071165
750031165

prune264.0ms (4%)

Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New1530153
Fresh033
Picked011
Done000
Total1534157
Error
0.0b
Counts
157 → 4
Alt Table
StatusErrorProgram
0.1b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (*.f32 (*.f32 2 (PI.f32)) s) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (exp.f32 (+.f32 (log.f32 (*.f32 (*.f32 6 (PI.f32)) s)) (log.f32 r)))))
0.2b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (*.f32 (*.f32 2 (PI.f32)) s) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (exp.f32 (+.f32 (+.f32 (+.f32 (log.f32 6) (log.f32 (PI.f32))) (log.f32 s)) (log.f32 r)))))
0.1b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (*.f32 (*.f32 (*.f32 2 (PI.f32)) (sqrt.f32 s)) (sqrt.f32 s)) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)))
1.3b
(*.f32 (/.f32 (/.f32 1/8 (*.f32 s (PI.f32))) r) (+.f32 (exp.f32 (/.f32 (neg.f32 r) s)) (pow.f32 (exp.f32 (/.f32 r s)) -1/3)))
Compiler

Compiled 6665 to 3631 computations (45.5% saved)

localize113.0ms (1.7%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.2b
(/.f32 (neg.f32 r) (*.f32 3 s))
0.4b
(*.f32 (*.f32 2 (PI.f32)) s)
0.4b
(+.f32 (log.f32 (*.f32 (*.f32 6 (PI.f32)) s)) (log.f32 r))
2.7b
(exp.f32 (+.f32 (log.f32 (*.f32 (*.f32 6 (PI.f32)) s)) (log.f32 r)))

series1.5s (23.2%)

Counts
2 → 48
Calls

2 calls:

773.0ms
(+.f32 (log.f32 (*.f32 (*.f32 6 (PI.f32)) s)) (log.f32 r))
750.0ms
(exp.f32 (+.f32 (log.f32 (*.f32 (*.f32 6 (PI.f32)) s)) (log.f32 r)))

rewrite19.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
40×pow1_binary32
23×log-pow_binary32
17×*-un-lft-identity_binary32
16×distribute-lft-out_binary32
15×pow-prod-down_binary32
Counts
2 → 54
Calls

2 calls:

9.0ms
(+.f32 (log.f32 (*.f32 (*.f32 6 (PI.f32)) s)) (log.f32 r))
6.0ms
(exp.f32 (+.f32 (log.f32 (*.f32 (*.f32 6 (PI.f32)) s)) (log.f32 r)))

simplify115.0ms (1.7%)

Algorithm
egg-herbie
Rules
443×distribute-rgt-in_binary32
408×distribute-lft-in_binary32
384×fma-neg_binary32
328×exp-sum_binary32
303×associate-+l+_binary32
Counts
102 → 75
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
0911338
12011270
26901243
338931243
448521243
549481243
648411243

prune347.0ms (5.3%)

Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1604164
Fresh112
Picked101
Done011
Total1626168
Error
0.0b
Counts
168 → 6
Alt Table
StatusErrorProgram
0.1b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (expm1.f32 (log1p.f32 (*.f32 2 (*.f32 s (PI.f32))))) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (exp.f32 (+.f32 (log.f32 (*.f32 (*.f32 6 (PI.f32)) s)) (log.f32 r)))))
0.1b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (*.f32 (*.f32 2 (PI.f32)) s) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (*.f32 (exp.f32 (log.f32 (*.f32 (*.f32 6 (PI.f32)) s))) (exp.f32 (log.f32 r)))))
0.1b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (*.f32 (*.f32 2 (PI.f32)) s) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (*.f32 -1/3 r) s))) (exp.f32 (+.f32 (log.f32 (*.f32 (*.f32 6 (PI.f32)) s)) (log.f32 r)))))
0.2b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (*.f32 (*.f32 2 (PI.f32)) s) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (pow.f32 (E.f32) (+.f32 (log.f32 (*.f32 (*.f32 6 (PI.f32)) s)) (log.f32 r)))))
0.1b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (*.f32 (*.f32 (*.f32 2 (PI.f32)) (sqrt.f32 s)) (sqrt.f32 s)) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)))
1.3b
(*.f32 (/.f32 (/.f32 1/8 (*.f32 s (PI.f32))) r) (+.f32 (exp.f32 (/.f32 (neg.f32 r) s)) (pow.f32 (exp.f32 (/.f32 r s)) -1/3)))
Compiler

Compiled 7120 to 4234 computations (40.5% saved)

localize110.0ms (1.7%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.2b
(/.f32 (neg.f32 r) (*.f32 3 s))
0.4b
(*.f32 (*.f32 2 (PI.f32)) s)
1.3b
(exp.f32 (log.f32 r))
2.8b
(exp.f32 (log.f32 (*.f32 (*.f32 6 (PI.f32)) s)))

series5.0ms (0.1%)

Counts
2 → 24
Calls

2 calls:

3.0ms
(exp.f32 (log.f32 (*.f32 (*.f32 6 (PI.f32)) s)))
1.0ms
(exp.f32 (log.f32 r))

rewrite10.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
10×exp-prod_binary32
pow1_binary32
*-un-lft-identity_binary32
add-sqr-sqrt_binary32
add-cube-cbrt_binary32
Counts
2 → 33
Calls

2 calls:

7.0ms
(exp.f32 (log.f32 (*.f32 (*.f32 6 (PI.f32)) s)))
2.0ms
(exp.f32 (log.f32 r))

simplify81.0ms (1.2%)

Algorithm
egg-herbie
Rules
656×fma-def_binary32
460×prod-exp_binary32
305×*-commutative_binary32
284×unswap-sqr_binary32
257×times-frac_binary32
Counts
57 → 50
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
059364
176344
2177344
3652340
41294340
51766340
62161340
73665340
84897340
95138340

prune346.0ms (5.3%)

Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1372139
Fresh134
Picked101
Done011
Total1396145
Error
0.0b
Counts
145 → 6
Alt Table
StatusErrorProgram
0.2b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (*.f32 (*.f32 2 (PI.f32)) s) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (pow.f32 (E.f32) (+.f32 (log.f32 (*.f32 (*.f32 6 (PI.f32)) s)) (log.f32 r)))))
0.1b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (*.f32 (*.f32 2 (PI.f32)) s) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (*.f32 (*.f32 6 (*.f32 s (PI.f32))) (exp.f32 (log.f32 r)))))
0.1b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (*.f32 (*.f32 2 (PI.f32)) s) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (*.f32 -1/3 r) s))) (*.f32 (exp.f32 (log.f32 (*.f32 (*.f32 6 (PI.f32)) s))) (exp.f32 (log.f32 r)))))
0.1b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (expm1.f32 (log1p.f32 (*.f32 2 (*.f32 s (PI.f32))))) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (exp.f32 (+.f32 (log.f32 (*.f32 (*.f32 6 (PI.f32)) s)) (log.f32 r)))))
0.1b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (*.f32 (*.f32 (*.f32 2 (PI.f32)) (sqrt.f32 s)) (sqrt.f32 s)) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)))
1.3b
(*.f32 (/.f32 (/.f32 1/8 (*.f32 s (PI.f32))) r) (+.f32 (exp.f32 (/.f32 (neg.f32 r) s)) (pow.f32 (exp.f32 (/.f32 r s)) -1/3)))
Compiler

Compiled 5953 to 3443 computations (42.2% saved)

regimes323.0ms (4.9%)

Accuracy

Total 0.1b remaining (38.3%)

Threshold costs 0.1b (38.3%)

Counts
78 → 1
Compiler

Compiled 8872 to 6466 computations (27.1% saved)

simplify3.0ms (0.1%)

Algorithm
egg-herbie
Rules
12×*-commutative_binary32
+-commutative_binary32
sub-neg_binary32
neg-sub0_binary32
neg-mul-1_binary32
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02858
14558
24958
35258
45358
55358

end155.0ms (2.4%)

Compiler

Compiled 291 to 212 computations (27.1% saved)

Profiling

Loading profile data...