Details

Time bar (total: 5.3s)

analyze91.0ms (1.7%)

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.4s (26.9%)

Results
1.3s8256×body128valid
Compiler

Compiled 47 to 37 computations (21.3% saved)

simplify57.0ms (1.1%)

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.1b
Counts
2 → 1
Alt Table
StatusErrorProgram
0.1b
(/.f32 1 (+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s))))
Compiler

Compiled 33 to 27 computations (18.2% saved)

localize23.0ms (0.4%)

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.1b
(exp.f32 (/.f32 (neg.f32 x) s))

series31.0ms (0.6%)

Counts
3 → 72
Calls

3 calls:

19.0ms
(/.f32 1 (+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s))))
7.0ms
(+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s)))
5.0ms
(exp.f32 (/.f32 (neg.f32 x) s))

rewrite20.0ms (0.4%)

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)))

simplify109.0ms (2.1%)

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

prune150.0ms (2.8%)

Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New1565161
Fresh000
Picked101
Done000
Total1575162
Error
0b
Counts
162 → 5
Alt Table
StatusErrorProgram
0.0b
(exp.f32 (neg.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
24.3b
(fma.f32 (pow.f32 (/.f32 x s) 3) -1/48 (fma.f32 (/.f32 x s) 1/4 1/2))
0.0b
(/.f32 1 (exp.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
17.7b
(/.f32 1 (+.f32 1 (pow.f32 (exp.f32 (sqrt.f32 (/.f32 (neg.f32 x) s))) (sqrt.f32 (/.f32 (neg.f32 x) s)))))
0.1b
(/.f32 1 (+.f32 1 (*.f32 (*.f32 (cbrt.f32 (exp.f32 (/.f32 (neg.f32 x) s))) (cbrt.f32 (exp.f32 (/.f32 (neg.f32 x) s)))) (cbrt.f32 (exp.f32 (/.f32 (neg.f32 x) s))))))
Compiler

Compiled 2775 to 1475 computations (46.8% saved)

localize22.0ms (0.4%)

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.1b
(exp.f32 (neg.f32 (/.f32 x s)))
1.1b
(log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))

series661.0ms (12.5%)

Counts
3 → 64
Calls

3 calls:

383.0ms
(exp.f32 (neg.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
273.0ms
(log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))
5.0ms
(exp.f32 (neg.f32 (/.f32 x s)))

rewrite12.0ms (0.2%)

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))))

simplify136.0ms (2.6%)

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

prune85.0ms (1.6%)

Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New1171118
Fresh224
Picked011
Done000
Total1194123
Error
0b
Counts
123 → 4
Alt Table
StatusErrorProgram
0.0b
(exp.f32 (neg.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
0.0b
(/.f32 1 (exp.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
17.7b
(/.f32 1 (+.f32 1 (pow.f32 (exp.f32 (sqrt.f32 (/.f32 (neg.f32 x) s))) (sqrt.f32 (/.f32 (neg.f32 x) s)))))
0.2b
(exp.f32 (neg.f32 (*.f32 (sqrt.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))) (sqrt.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))))
Compiler

Compiled 1839 to 846 computations (54% saved)

localize25.0ms (0.5%)

Local error

Found 4 expressions with local error:

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

series589.0ms (11.2%)

Counts
2 → 48
Calls

2 calls:

295.0ms
(exp.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s)))))
294.0ms
(/.f32 1 (exp.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))

rewrite6.0ms (0.1%)

Algorithm
rewrite-expression-head
Rules
12×*-un-lft-identity_binary32
12×add-sqr-sqrt_binary32
12×add-cube-cbrt_binary32
times-frac_binary32
exp-prod_binary32
Counts
2 → 50
Calls

2 calls:

3.0ms
(/.f32 1 (exp.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
1.0ms
(exp.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s)))))

simplify111.0ms (2.1%)

Algorithm
egg-herbie
Rules
597×cancel-sign-sub-inv_binary32
561×associate-/r*_binary32
558×fma-def_binary32
483×fma-neg_binary32
196×associate-/r/_binary32
Counts
98 → 77
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
0891665
11881548
24241509
315421499
445381499
549681499
649991499
749241499

prune112.0ms (2.1%)

Pruning

4 alts after pruning (2 fresh and 2 done)

PrunedKeptTotal
New1560156
Fresh022
Picked011
Done011
Total1564160
Error
0b
Counts
160 → 4
Alt Table
StatusErrorProgram
0.0b
(exp.f32 (neg.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
0.0b
(/.f32 1 (exp.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
17.7b
(/.f32 1 (+.f32 1 (pow.f32 (exp.f32 (sqrt.f32 (/.f32 (neg.f32 x) s))) (sqrt.f32 (/.f32 (neg.f32 x) s)))))
0.2b
(exp.f32 (neg.f32 (*.f32 (sqrt.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))) (sqrt.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))))
Compiler

Compiled 2498 to 1098 computations (56% saved)

localize34.0ms (0.6%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(exp.f32 (neg.f32 (*.f32 (sqrt.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))) (sqrt.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))))
0.1b
(exp.f32 (neg.f32 (/.f32 x s)))
0.2b
(*.f32 (sqrt.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))) (sqrt.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
1.1b
(log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))

series560.0ms (10.6%)

Counts
2 → 48
Calls

2 calls:

285.0ms
(exp.f32 (neg.f32 (*.f32 (sqrt.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))) (sqrt.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))))
275.0ms
(*.f32 (sqrt.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))) (sqrt.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))

rewrite14.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
27×add-sqr-sqrt_binary32
18×sqrt-prod_binary32
17×pow1_binary32
11×*-un-lft-identity_binary32
11×add-cube-cbrt_binary32
Counts
2 → 72
Calls

2 calls:

6.0ms
(*.f32 (sqrt.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))) (sqrt.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
2.0ms
(exp.f32 (neg.f32 (*.f32 (sqrt.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))) (sqrt.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))))

simplify96.0ms (1.8%)

Algorithm
egg-herbie
Rules
593×cancel-sign-sub-inv_binary32
474×fma-neg_binary32
221×associate-*l*_binary32
218×times-frac_binary32
211×distribute-neg-frac_binary32
Counts
120 → 106
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01262213
12541801
26971733
326841668
448241668
549491668

prune189.0ms (3.6%)

Pruning

4 alts after pruning (1 fresh and 3 done)

PrunedKeptTotal
New2640264
Fresh011
Picked011
Done022
Total2644268
Error
0b
Counts
268 → 4
Alt Table
StatusErrorProgram
0.0b
(exp.f32 (neg.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
0.0b
(/.f32 1 (exp.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
17.7b
(/.f32 1 (+.f32 1 (pow.f32 (exp.f32 (sqrt.f32 (/.f32 (neg.f32 x) s))) (sqrt.f32 (/.f32 (neg.f32 x) s)))))
0.2b
(exp.f32 (neg.f32 (*.f32 (sqrt.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))) (sqrt.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))))
Compiler

Compiled 6019 to 1851 computations (69.2% saved)

regimes657.0ms (12.5%)

Accuracy

Total 0.0b remaining (34.5%)

Threshold costs 0.0b (34.5%)

Counts
89 → 1
Compiler

Compiled 11300 to 9175 computations (18.8% saved)

simplify2.0ms (0%)

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
0914
11714
22314
32714
42814
52814

end56.0ms (1.1%)

Compiler

Compiled 78 to 54 computations (30.8% saved)

Profiling

Loading profile data...