Details

Time bar (total: 4.3s)

analyze98.0ms (2.3%)

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 (32.9%)

Results
1.4s8256×body128valid
Compiler

Compiled 47 to 37 computations (21.3% saved)

simplify57.0ms (1.3%)

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)

localize22.0ms (0.5%)

Local error

Found 3 expressions with local error:

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

series42.0ms (1%)

Counts
3 → 72
Calls

3 calls:

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

rewrite22.0ms (0.5%)

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 (exp.f32 (/.f32 (neg.f32 x) s)))
6.0ms
(/.f32 1 (+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s))))
4.0ms
(exp.f32 (/.f32 (neg.f32 x) s))

simplify106.0ms (2.4%)

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

prune117.0ms (2.7%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New1592161
Fresh000
Picked011
Done000
Total1593162
Error
0b
Counts
162 → 3
Alt Table
StatusErrorProgram
0.0b
(exp.f32 (neg.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
0.0b
(/.f32 1 (+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s))))
0.1b
(/.f32 (/.f32 1 (sqrt.f32 (+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s))))) (sqrt.f32 (+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s)))))
Compiler

Compiled 2688 to 1428 computations (46.9% saved)

localize23.0ms (0.5%)

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

series890.0ms (20.5%)

Counts
3 → 64
Calls

3 calls:

524.0ms
(exp.f32 (neg.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
361.0ms
(log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))
6.0ms
(exp.f32 (neg.f32 (/.f32 x s)))

rewrite10.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:

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

simplify137.0ms (3.1%)

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

prune80.0ms (1.8%)

Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New1180118
Fresh011
Picked011
Done011
Total1183121
Error
0b
Counts
121 → 3
Alt Table
StatusErrorProgram
0.0b
(exp.f32 (neg.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
0.0b
(/.f32 1 (+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s))))
0.1b
(/.f32 (/.f32 1 (sqrt.f32 (+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s))))) (sqrt.f32 (+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s)))))
Compiler

Compiled 1796 to 823 computations (54.2% saved)

localize32.0ms (0.7%)

Local error

Found 4 expressions with local error:

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

series56.0ms (1.3%)

Counts
2 → 48
Calls

2 calls:

30.0ms
(/.f32 1 (sqrt.f32 (+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s)))))
26.0ms
(/.f32 (/.f32 1 (sqrt.f32 (+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s))))) (sqrt.f32 (+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s)))))

rewrite95.0ms (2.2%)

Algorithm
rewrite-expression-head
Rules
378×times-frac_binary32
298×*-un-lft-identity_binary32
224×sqrt-prod_binary32
186×add-sqr-sqrt_binary32
186×add-cube-cbrt_binary32
Counts
2 → 303
Calls

2 calls:

19.0ms
(/.f32 (/.f32 1 (sqrt.f32 (+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s))))) (sqrt.f32 (+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s)))))
10.0ms
(/.f32 1 (sqrt.f32 (+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s)))))

simplify343.0ms (7.9%)

Algorithm
egg-herbie
Rules
823×fma-neg_binary32
696×times-frac_binary32
386×associate-/l*_binary32
364×associate-/r*_binary32
250×associate-*r*_binary32
Counts
351 → 296
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
020714390
146514069
2108212463
3463712457
4537812457

prune463.0ms (10.7%)

Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New4980498
Fresh000
Picked011
Done022
Total4983501
Error
0b
Counts
501 → 3
Alt Table
StatusErrorProgram
0.0b
(exp.f32 (neg.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
0.0b
(/.f32 1 (+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s))))
0.1b
(/.f32 (/.f32 1 (sqrt.f32 (+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s))))) (sqrt.f32 (+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s)))))
Compiler

Compiled 15677 to 8205 computations (47.7% saved)

regimes266.0ms (6.1%)

Accuracy

Total 0.0b remaining (39.5%)

Threshold costs 0.0b (39.5%)

Counts
35 → 1
Compiler

Compiled 4722 to 3425 computations (27.5% saved)

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

end53.0ms (1.2%)

Compiler

Compiled 62 to 47 computations (24.2% saved)

Profiling

Loading profile data...