Details

Time bar (total: 4.8s)

analyze114.0ms (2.4%)

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

Results
1.3s8256×body128valid
Compiler

Compiled 47 to 37 computations (21.3% saved)

simplify56.0ms (1.2%)

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)

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

series34.0ms (0.7%)

Counts
3 → 72
Calls

3 calls:

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

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

simplify103.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

prune149.0ms (3.1%)

Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New1556161
Fresh000
Picked101
Done000
Total1566162
Error
0.0b
Counts
162 → 6
Alt Table
StatusErrorProgram
0.3b
(*.f32 (/.f32 1 (hypot.f32 1 (pow.f32 (exp.f32 (/.f32 x s)) -1/2))) (/.f32 1 (hypot.f32 1 (pow.f32 (exp.f32 (/.f32 x s)) -1/2))))
0.1b
(/.f32 1 (+.f32 1 (pow.f32 (exp.f32 (*.f32 (cbrt.f32 (/.f32 (neg.f32 x) s)) (cbrt.f32 (/.f32 (neg.f32 x) s)))) (cbrt.f32 (/.f32 (neg.f32 x) s)))))
0.1b
(exp.f32 (neg.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
0.1b
(/.f32 1 (+.f32 1 (pow.f32 (exp.f32 -1) (/.f32 x s))))
0.1b
(/.f32 1 (+.f32 1 (pow.f32 (E.f32) (/.f32 (neg.f32 x) s))))
9.8b
(*.f32 (/.f32 1 (+.f32 1 (pow.f32 (exp.f32 (/.f32 x s)) -3))) (+.f32 (*.f32 1 1) (-.f32 (*.f32 (exp.f32 (/.f32 (neg.f32 x) s)) (exp.f32 (/.f32 (neg.f32 x) s))) (*.f32 1 (exp.f32 (/.f32 (neg.f32 x) s))))))
Compiler

Compiled 2849 to 1533 computations (46.2% saved)

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

series543.0ms (11.3%)

Counts
3 → 64
Calls

3 calls:

273.0ms
(exp.f32 (neg.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
265.0ms
(log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))
5.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:

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 (2.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

prune131.0ms (2.7%)

Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New1171118
Fresh145
Picked101
Done000
Total1195124
Error
0.0b
Counts
124 → 5
Alt Table
StatusErrorProgram
0.3b
(*.f32 (/.f32 1 (hypot.f32 1 (pow.f32 (exp.f32 (/.f32 x s)) -1/2))) (/.f32 1 (hypot.f32 1 (pow.f32 (exp.f32 (/.f32 x s)) -1/2))))
0.1b
(/.f32 1 (+.f32 1 (pow.f32 (exp.f32 (*.f32 (cbrt.f32 (/.f32 (neg.f32 x) s)) (cbrt.f32 (/.f32 (neg.f32 x) s)))) (cbrt.f32 (/.f32 (neg.f32 x) s)))))
0.1b
(pow.f32 (E.f32) (neg.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
0.1b
(/.f32 1 (+.f32 1 (pow.f32 (exp.f32 -1) (/.f32 x s))))
9.8b
(*.f32 (/.f32 1 (+.f32 1 (pow.f32 (exp.f32 (/.f32 x s)) -3))) (+.f32 (*.f32 1 1) (-.f32 (*.f32 (exp.f32 (/.f32 (neg.f32 x) s)) (exp.f32 (/.f32 (neg.f32 x) s))) (*.f32 1 (exp.f32 (/.f32 (neg.f32 x) s))))))
Compiler

Compiled 1945 to 918 computations (52.8% saved)

localize25.0ms (0.5%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.1b
(pow.f32 (E.f32) (neg.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
0.1b
(exp.f32 (neg.f32 (/.f32 x s)))
1.7b
(log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))

series536.0ms (11.1%)

Counts
1 → 24
Calls

1 calls:

536.0ms
(pow.f32 (E.f32) (neg.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))

rewrite3.0ms (0.1%)

Algorithm
rewrite-expression-head
Rules
10×pow-unpow_binary32
*-un-lft-identity_binary32
add-sqr-sqrt_binary32
add-cube-cbrt_binary32
distribute-lft-neg-in_binary32
Counts
1 → 29
Calls

1 calls:

2.0ms
(pow.f32 (E.f32) (neg.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))

simplify89.0ms (1.8%)

Algorithm
egg-herbie
Rules
481×associate-/l*_binary32
463×times-frac_binary32
362×fma-def_binary32
329×fma-neg_binary32
297×associate-*l/_binary32
Counts
53 → 41
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
079955
1188915
2446899
31429881
44668881
54873881
64998881
74898881

prune155.0ms (3.2%)

Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New1200120
Fresh044
Picked011
Done000
Total1205125
Error
0.0b
Counts
125 → 5
Alt Table
StatusErrorProgram
0.3b
(*.f32 (/.f32 1 (hypot.f32 1 (pow.f32 (exp.f32 (/.f32 x s)) -1/2))) (/.f32 1 (hypot.f32 1 (pow.f32 (exp.f32 (/.f32 x s)) -1/2))))
0.1b
(/.f32 1 (+.f32 1 (pow.f32 (exp.f32 (*.f32 (cbrt.f32 (/.f32 (neg.f32 x) s)) (cbrt.f32 (/.f32 (neg.f32 x) s)))) (cbrt.f32 (/.f32 (neg.f32 x) s)))))
0.1b
(pow.f32 (E.f32) (neg.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
0.1b
(/.f32 1 (+.f32 1 (pow.f32 (exp.f32 -1) (/.f32 x s))))
9.8b
(*.f32 (/.f32 1 (+.f32 1 (pow.f32 (exp.f32 (/.f32 x s)) -3))) (+.f32 (*.f32 1 1) (-.f32 (*.f32 (exp.f32 (/.f32 (neg.f32 x) s)) (exp.f32 (/.f32 (neg.f32 x) s))) (*.f32 1 (exp.f32 (/.f32 (neg.f32 x) s))))))
Compiler

Compiled 2046 to 842 computations (58.8% saved)

localize31.0ms (0.6%)

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

series40.0ms (0.8%)

Counts
3 → 72
Calls

3 calls:

27.0ms
(/.f32 1 (+.f32 1 (pow.f32 (exp.f32 -1) (/.f32 x s))))
7.0ms
(+.f32 1 (pow.f32 (exp.f32 -1) (/.f32 x s)))
6.0ms
(pow.f32 (exp.f32 -1) (/.f32 x s))

rewrite21.0ms (0.4%)

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:

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

simplify119.0ms (2.5%)

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

prune209.0ms (4.4%)

Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1433146
Fresh123
Picked101
Done011
Total1456151
Error
0.0b
Counts
151 → 6
Alt Table
StatusErrorProgram
0.1b
(pow.f32 (E.f32) (neg.f32 (log1p.f32 (exp.f32 (neg.f32 (/.f32 x s))))))
0.1b
(/.f32 1 (+.f32 (pow.f32 (exp.f32 -1) (/.f32 x s)) 1))
9.8b
(*.f32 (/.f32 1 (+.f32 1 (pow.f32 (exp.f32 (neg.f32 (/.f32 x s))) 3))) (+.f32 (*.f32 1 1) (-.f32 (*.f32 (pow.f32 (exp.f32 -1) (/.f32 x s)) (pow.f32 (exp.f32 -1) (/.f32 x s))) (*.f32 1 (pow.f32 (exp.f32 -1) (/.f32 x s))))))
9.8b
(*.f32 (/.f32 1 (+.f32 1 (pow.f32 (exp.f32 (/.f32 x s)) -3))) (+.f32 (*.f32 1 1) (-.f32 (*.f32 (exp.f32 (/.f32 (neg.f32 x) s)) (exp.f32 (/.f32 (neg.f32 x) s))) (*.f32 1 (exp.f32 (/.f32 (neg.f32 x) s))))))
0.3b
(*.f32 (/.f32 1 (hypot.f32 1 (pow.f32 (exp.f32 (/.f32 x s)) -1/2))) (/.f32 1 (hypot.f32 1 (pow.f32 (exp.f32 (/.f32 x s)) -1/2))))
0.1b
(/.f32 1 (+.f32 1 (*.f32 (pow.f32 (sqrt.f32 (exp.f32 -1)) (/.f32 x s)) (pow.f32 (sqrt.f32 (exp.f32 -1)) (/.f32 x s)))))
Compiler

Compiled 2615 to 1734 computations (33.7% saved)

regimes792.0ms (16.5%)

Accuracy

Total 0.0b remaining (60.4%)

Threshold costs 0.0b (60.4%)

Counts
127 → 1
Compiler

Compiled 14526 to 10979 computations (24.4% saved)

simplify5.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

end100.0ms (2.1%)

Compiler

Compiled 163 to 119 computations (27% saved)

Profiling

Loading profile data...