Details

Time bar (total: 2.2s)

analyze95.0ms (4.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 (61.7%)

Results
1.3s8256×body128valid
Compiler

Compiled 47 to 37 computations (21.3% saved)

simplify58.0ms (2.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.1%)

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

Local error

Found 3 expressions with local error:

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

series33.0ms (1.5%)

Counts
3 → 72
Calls

3 calls:

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

rewrite22.0ms (1%)

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

simplify109.0ms (4.9%)

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

prune95.0ms (4.3%)

Pruning

2 alts after pruning (1 fresh and 1 done)

PrunedKeptTotal
New1601161
Fresh000
Picked011
Done000
Total1602162
Error
0b
Counts
162 → 2
Alt Table
StatusErrorProgram
23.9b
(fma.f32 (pow.f32 (/.f32 x s) 3) -1/48 (fma.f32 1/4 (/.f32 x s) 1/2))
0.0b
(/.f32 1 (+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s))))
Compiler

Compiled 2656 to 1404 computations (47.1% saved)

localize25.0ms (1.1%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(fma.f32 1/4 (/.f32 x s) 1/2)
0.3b
(pow.f32 (/.f32 x s) 3)
6.6b
(fma.f32 (pow.f32 (/.f32 x s) 3) -1/48 (fma.f32 1/4 (/.f32 x s) 1/2))

series44.0ms (2%)

Counts
3 → 72
Calls

3 calls:

24.0ms
(pow.f32 (/.f32 x s) 3)
14.0ms
(fma.f32 (pow.f32 (/.f32 x s) 3) -1/48 (fma.f32 1/4 (/.f32 x s) 1/2))
6.0ms
(fma.f32 1/4 (/.f32 x s) 1/2)

rewrite7.0ms (0.3%)

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

3 calls:

3.0ms
(pow.f32 (/.f32 x s) 3)
0.0ms
(fma.f32 (pow.f32 (/.f32 x s) 3) -1/48 (fma.f32 1/4 (/.f32 x s) 1/2))
0.0ms
(fma.f32 1/4 (/.f32 x s) 1/2)

simplify81.0ms (3.7%)

Algorithm
egg-herbie
Rules
731×times-frac_binary32
447×associate-/l*_binary32
394×log-div_binary32
332×associate-/r*_binary32
331×fma-def_binary32
Counts
140 → 78
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01141702
12961531
210131515
346031515
454371515

prune38.0ms (1.7%)

Pruning

2 alts after pruning (0 fresh and 2 done)

PrunedKeptTotal
New78078
Fresh000
Picked011
Done011
Total78280
Error
0b
Counts
80 → 2
Alt Table
StatusErrorProgram
23.9b
(fma.f32 (pow.f32 (/.f32 x s) 3) -1/48 (fma.f32 1/4 (/.f32 x s) 1/2))
0.0b
(/.f32 1 (+.f32 1 (exp.f32 (/.f32 (neg.f32 x) s))))
Compiler

Compiled 1450 to 829 computations (42.8% saved)

regimes175.0ms (7.9%)

Accuracy

Total 0.0b remaining (15.3%)

Threshold costs 0.0b (15.3%)

Counts
22 → 1
Compiler

Compiled 2424 to 2023 computations (16.5% 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
0914
11714
22314
32714
42814
52814

end38.0ms (1.7%)

Compiler

Compiled 46 to 35 computations (23.9% saved)

Profiling

Loading profile data...