Details

Time bar (total: 3.5s)

analyze101.0ms (2.9%)

Algorithm
search
Search
TrueOtherFalseIter
0%24.7%75.3%0
0%24.7%75.3%1
0%24.7%75.3%2
12.4%12.4%75.3%3
12.4%12.4%75.3%4
18.5%6.2%75.3%5
18.5%6.2%75.3%6
21.6%3.1%75.3%7
21.6%3.1%75.3%8
23.2%1.5%75.3%9
23.2%1.5%75.3%10
23.9%0.8%75.3%11
23.9%0.8%75.3%12
24.3%0.4%75.3%13
24.3%0.4%75.3%14
Compiler

Compiled 18 to 14 computations (22.2% saved)

sample1.3s (36.8%)

Results
1.2s8256×body128valid
Compiler

Compiled 47 to 37 computations (21.3% saved)

simplify55.0ms (1.6%)

Algorithm
egg-herbie
Rules
944×fma-neg_binary32
518×unswap-sqr_binary32
432×exp-prod_binary32
340×times-frac_binary32
333×associate-*l*_binary32
Counts
1 → 1
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0914
11714
22714
33614
45014
57914
614714
726114
852814
9167614
10316014
11412114
12485014

prune2.0ms (0%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022
Error
0.0b
Counts
2 → 1
Alt Table
StatusErrorProgram
0.0b
(/.f32 1 (+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s))))
Compiler

Compiled 33 to 27 computations (18.2% saved)

localize24.0ms (0.7%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s)))
0.0b
(/.f32 1 (+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s))))
0.0b
(exp.f32 (/.f32 (neg.f32 x) s))

series32.0ms (0.9%)

Counts
3 → 72
Calls

3 calls:

21.0ms
(/.f32 1 (+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s))))
6.0ms
(+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s)))
5.0ms
(exp.f32 (/.f32 (neg.f32 x) s))

rewrite20.0ms (0.6%)

Algorithm
rewrite-expression-head
Rules
43×*-un-lft-identity_binary32
42×times-frac_binary32
34×exp-prod_binary32
33×add-sqr-sqrt_binary32
33×add-cube-cbrt_binary32
Counts
3 → 102
Calls

3 calls:

6.0ms
(/.f32 1 (+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s))))
4.0ms
(exp.f32 (/.f32 (neg.f32 x) s))
4.0ms
(+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s)))

simplify117.0ms (3.3%)

Algorithm
egg-herbie
Rules
727×fma-neg_binary32
322×associate-/l/_binary32
269×associate-/r/_binary32
197×distribute-rgt-neg-in_binary32
190×distribute-lft-neg-in_binary32
Counts
174 → 161
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01702521
13462365
28062311
324142287
448502287
550892287

prune121.0ms (3.4%)

Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New1574161
Fresh000
Picked101
Done000
Total1584162
Error
0b
Counts
162 → 4
Alt Table
StatusErrorProgram
0.0b
(/.f32 1 (+.f32 1 (pow.f32 (E.f32) (/.f32 (neg.f32 x) s))))
0.0b
(/.f32 1 (+.f32 1 (pow.f32 (exp.f32 -1) (/.f32 x s))))
22.4b
(fma.f32 (/.f32 x s) 1/4 1/2)
0.0b
(exp.f32 (neg.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
Compiler

Compiled 2699 to 1443 computations (46.5% saved)

localize28.0ms (0.8%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(+.f32 1 (pow.f32 (E.f32) (/.f32 (neg.f32 x) s)))
0.0b
(/.f32 1 (+.f32 1 (pow.f32 (E.f32) (/.f32 (neg.f32 x) s))))
0.0b
(pow.f32 (E.f32) (/.f32 (neg.f32 x) s))

series39.0ms (1.1%)

Counts
3 → 72
Calls

3 calls:

26.0ms
(/.f32 1 (+.f32 1 (pow.f32 (E.f32) (/.f32 (neg.f32 x) s))))
6.0ms
(+.f32 1 (pow.f32 (E.f32) (/.f32 (neg.f32 x) s)))
6.0ms
(pow.f32 (E.f32) (/.f32 (neg.f32 x) s))

rewrite25.0ms (0.7%)

Algorithm
rewrite-expression-head
Rules
44×*-un-lft-identity_binary32
42×times-frac_binary32
34×pow-unpow_binary32
34×add-sqr-sqrt_binary32
34×add-cube-cbrt_binary32
Counts
3 → 109
Calls

3 calls:

5.0ms
(/.f32 1 (+.f32 1 (pow.f32 (E.f32) (/.f32 (neg.f32 x) s))))
4.0ms
(pow.f32 (E.f32) (/.f32 (neg.f32 x) s))
4.0ms
(+.f32 1 (pow.f32 (E.f32) (/.f32 (neg.f32 x) s)))

simplify141.0ms (4%)

Algorithm
egg-herbie
Rules
665×fma-neg_binary32
261×associate-*r*_binary32
229×associate-/l*_binary32
228×times-frac_binary32
223×associate-/l/_binary32
Counts
181 → 172
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
01842820
14622541
212122486
340362473
448112469
549492469
648752469

prune115.0ms (3.3%)

Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New1720172
Fresh033
Picked011
Done000
Total1724176
Error
0b
Counts
176 → 4
Alt Table
StatusErrorProgram
0.0b
(/.f32 1 (+.f32 1 (pow.f32 (E.f32) (/.f32 (neg.f32 x) s))))
0.0b
(/.f32 1 (+.f32 1 (pow.f32 (exp.f32 -1) (/.f32 x s))))
22.4b
(fma.f32 (/.f32 x s) 1/4 1/2)
0.0b
(exp.f32 (neg.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
Compiler

Compiled 3020 to 1505 computations (50.2% saved)

localize26.0ms (0.7%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(+.f32 1 (pow.f32 (exp.f32 -1) (/.f32 x s)))
0.0b
(/.f32 1 (+.f32 1 (pow.f32 (exp.f32 -1) (/.f32 x s))))
0.0b
(pow.f32 (exp.f32 -1) (/.f32 x s))

series38.0ms (1.1%)

Counts
3 → 72
Calls

3 calls:

23.0ms
(/.f32 1 (+.f32 1 (pow.f32 (exp.f32 -1) (/.f32 x s))))
8.0ms
(pow.f32 (exp.f32 -1) (/.f32 x s))
7.0ms
(+.f32 1 (pow.f32 (exp.f32 -1) (/.f32 x s)))

rewrite25.0ms (0.7%)

Algorithm
rewrite-expression-head
Rules
32×*-un-lft-identity_binary32
22×add-sqr-sqrt_binary32
22×add-cube-cbrt_binary32
21×times-frac_binary32
13×pow-unpow_binary32
Counts
3 → 88
Calls

3 calls:

5.0ms
(/.f32 1 (+.f32 1 (pow.f32 (exp.f32 -1) (/.f32 x s))))
4.0ms
(+.f32 1 (pow.f32 (exp.f32 -1) (/.f32 x s)))
3.0ms
(pow.f32 (exp.f32 -1) (/.f32 x s))

simplify103.0ms (2.9%)

Algorithm
egg-herbie
Rules
717×fma-neg_binary32
238×associate-*r*_binary32
236×distribute-rgt-neg-in_binary32
215×unswap-sqr_binary32
212×fma-def_binary32
Counts
160 → 146
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01482396
13482254
28692200
330382188
447562188
549292188

prune105.0ms (3%)

Pruning

4 alts after pruning (2 fresh and 2 done)

PrunedKeptTotal
New1460146
Fresh022
Picked011
Done011
Total1464150
Error
0b
Counts
150 → 4
Alt Table
StatusErrorProgram
0.0b
(/.f32 1 (+.f32 1 (pow.f32 (E.f32) (/.f32 (neg.f32 x) s))))
0.0b
(/.f32 1 (+.f32 1 (pow.f32 (exp.f32 -1) (/.f32 x s))))
22.4b
(fma.f32 (/.f32 x s) 1/4 1/2)
0.0b
(exp.f32 (neg.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
Compiler

Compiled 2532 to 1679 computations (33.7% saved)

localize24.0ms (0.7%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(exp.f32 (neg.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
0.0b
(exp.f32 (neg.f32 (/.f32 x s)))
1.1b
(log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))

series555.0ms (15.8%)

Counts
3 → 64
Calls

3 calls:

274.0ms
(exp.f32 (neg.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
274.0ms
(log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))
7.0ms
(exp.f32 (neg.f32 (/.f32 x s)))

rewrite10.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
40×exp-prod_binary32
21×*-un-lft-identity_binary32
21×add-sqr-sqrt_binary32
21×add-cube-cbrt_binary32
18×times-frac_binary32
Counts
3 → 78
Calls

3 calls:

4.0ms
(exp.f32 (neg.f32 (/.f32 x s)))
2.0ms
(exp.f32 (neg.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
0.0ms
(log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))

simplify129.0ms (3.7%)

Algorithm
egg-herbie
Rules
452×fma-neg_binary32
354×distribute-neg-frac_binary32
292×times-frac_binary32
241×associate-/l*_binary32
200×associate-/r*_binary32
Counts
142 → 118
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
01722142
13671839
29641802
332831774
447921772
549341772
649911772
749181772

prune70.0ms (2%)

Pruning

2 alts after pruning (1 fresh and 1 done)

PrunedKeptTotal
New1171118
Fresh101
Picked101
Done112
Total1202122
Error
0b
Counts
122 → 2
Alt Table
StatusErrorProgram
0.0b
(/.f32 1 (+.f32 1 (pow.f32 (exp.f32 -1) (/.f32 x s))))
0.0b
(pow.f32 (E.f32) (neg.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
Compiler

Compiled 1756 to 797 computations (54.6% saved)

regimes278.0ms (7.9%)

Accuracy

Total 0.0b remaining (33.8%)

Threshold costs 0.0b (33.8%)

Counts
21 → 1
Compiler

Compiled 1994 to 1649 computations (17.3% saved)

simplify2.0ms (0.1%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
01016
12016
22716
33116
43216
53116

end41.0ms (1.2%)

Compiler

Compiled 45 to 37 computations (17.8% saved)

Profiling

Loading profile data...