Details

Time bar (total: 3.8s)

analyze91.0ms (2.4%)

Algorithm
search
Search
TrueOtherFalseIter
0%2.1%97.9%0
0%2.1%97.9%1
1%1%97.9%2
1%1%97.9%3
1.5%0.5%97.9%4
1.5%0.5%97.9%5
1.8%0.3%97.9%6
1.8%0.3%97.9%7
1.9%0.1%97.9%8
1.9%0.1%97.9%9
2%0.1%97.9%10
2%0.1%97.9%11
2%0%97.9%12
2%0%97.9%13
2%0%97.9%14
Compiler

Compiled 50 to 36 computations (28% saved)

sample1.9s (51.4%)

Results
1.9s8256×body128valid
Compiler

Compiled 135 to 97 computations (28.1% saved)

simplify59.0ms (1.6%)

Algorithm
egg-herbie
Rules
672×fma-neg_binary32
634×associate-*l*_binary32
530×associate-*r*_binary32
445×associate-/r*_binary32
406×*-commutative_binary32
Counts
1 → 2
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02653
16643
223735
386432
4257232
5389032
6429332
7487132
8487032

prune5.0ms (0.1%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
0.2b
Counts
3 → 2
Alt Table
StatusErrorProgram
0.3b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (*.f32 (*.f32 2 (PI.f32)) s) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)))
1.0b
(*.f32 (/.f32 (/.f32 1/8 (*.f32 s (PI.f32))) r) (+.f32 (exp.f32 (/.f32 (neg.f32 r) s)) (pow.f32 (exp.f32 (/.f32 r s)) -1/3)))
Compiler

Compiled 169 to 117 computations (30.8% saved)

localize76.0ms (2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.3b
(*.f32 (*.f32 (*.f32 2 (PI.f32)) s) r)
0.3b
(*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)
0.3b
(/.f32 (neg.f32 r) (*.f32 3 s))
0.4b
(*.f32 (*.f32 2 (PI.f32)) s)

series27.0ms (0.7%)

Counts
4 → 84
Calls

4 calls:

9.0ms
(*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)
8.0ms
(*.f32 (*.f32 (*.f32 2 (PI.f32)) s) r)
6.0ms
(/.f32 (neg.f32 r) (*.f32 3 s))
3.0ms
(*.f32 (*.f32 2 (PI.f32)) s)

rewrite69.0ms (1.8%)

Algorithm
batch-egg-rewrite
Rules
276×expm1-udef_binary32
276×log1p-udef_binary32
239×log-pow_binary32
166×associate-*r*_binary32
166×add-sqr-sqrt_binary32
Counts
4 → 93
Calls

4 calls:

68.0ms
(*.f32 (*.f32 (*.f32 2 (PI.f32)) s) r)
68.0ms
(*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)
68.0ms
(/.f32 (neg.f32 r) (*.f32 3 s))
68.0ms
(*.f32 (*.f32 2 (PI.f32)) s)
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01639
133937
2387137
3499237
000
100

simplify29.0ms (0.8%)

Algorithm
egg-herbie
Rules
51×associate-*l*_binary32
35×associate-*r*_binary32
29×*-commutative_binary32
associate-/l*_binary32
associate-*r/_binary32
Counts
177 → 96
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
015792
130792
269792
3107792
4108792
5108792

prune126.0ms (3.3%)

Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New90696
Fresh011
Picked101
Done000
Total91798
Error
0.2b
Counts
98 → 7
Alt Table
StatusErrorProgram
0.3b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (*.f32 (*.f32 2 (PI.f32)) s) r)) (/.f32 (*.f32 3/4 (exp.f32 (*.f32 -1/3 (/.f32 r s)))) (*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)))
23.2b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (-.f32 (exp.f32 (log1p.f32 (*.f32 (*.f32 2 (PI.f32)) s))) 1) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)))
16.7b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (*.f32 (*.f32 2 (PI.f32)) s) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (pow.f32 (pow.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6))) 3) 1/3)))
17.8b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (pow.f32 (pow.f32 (*.f32 (*.f32 2 (PI.f32)) s) 3) 1/3) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)))
0.3b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 2 (*.f32 s (*.f32 (PI.f32) r)))) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)))
0.3b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (*.f32 (*.f32 2 (PI.f32)) s) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (expm1.f32 (log1p.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6)))))))
1.0b
(*.f32 (/.f32 (/.f32 1/8 (*.f32 s (PI.f32))) r) (+.f32 (exp.f32 (/.f32 (neg.f32 r) s)) (pow.f32 (exp.f32 (/.f32 r s)) -1/3)))
Compiler

Compiled 3975 to 2505 computations (37% saved)

localize76.0ms (2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.3b
(*.f32 s (*.f32 (PI.f32) r))
0.3b
(*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)
0.3b
(/.f32 (neg.f32 r) (*.f32 3 s))
0.4b
(*.f32 (PI.f32) r)

series9.0ms (0.2%)

Counts
2 → 0
Calls

2 calls:

7.0ms
(*.f32 s (*.f32 (PI.f32) r))
2.0ms
(*.f32 (PI.f32) r)

rewrite54.0ms (1.4%)

Algorithm
batch-egg-rewrite
Rules
532×log1p-expm1-u_binary32
532×expm1-log1p-u_binary32
438×unpow-prod-down_binary32
330×log-prod_binary32
160×pow2_binary32
Counts
2 → 34
Calls

2 calls:

53.0ms
(*.f32 s (*.f32 (PI.f32) r))
53.0ms
(*.f32 (PI.f32) r)
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0613
111913
2141213
3536813
000
100

simplify7.0ms (0.2%)

Algorithm
egg-herbie
Counts
34 → 34
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
000
100

prune140.0ms (3.7%)

Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New96298
Fresh246
Picked101
Done000
Total996105
Error
0.2b
Counts
105 → 6
Alt Table
StatusErrorProgram
0.3b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 2 (*.f32 s (pow.f32 (cbrt.f32 (*.f32 (PI.f32) r)) 3)))) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)))
1.0b
(*.f32 (/.f32 (/.f32 1/8 (*.f32 s (PI.f32))) r) (+.f32 (exp.f32 (/.f32 (neg.f32 r) s)) (pow.f32 (exp.f32 (/.f32 r s)) -1/3)))
16.7b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (*.f32 (*.f32 2 (PI.f32)) s) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (pow.f32 (pow.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6))) 3) 1/3)))
17.8b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (pow.f32 (pow.f32 (*.f32 (*.f32 2 (PI.f32)) s) 3) 1/3) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)))
0.3b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (*.f32 (*.f32 2 (PI.f32)) s) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (expm1.f32 (log1p.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6)))))))
0.3b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 2 (*.f32 s (*.f32 (PI.f32) r)))) (/.f32 (*.f32 3/4 (exp.f32 (*.f32 -1/3 (/.f32 r s)))) (*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)))
Compiler

Compiled 4009 to 2320 computations (42.1% saved)

localize83.0ms (2.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.3b
(*.f32 s (*.f32 (PI.f32) r))
0.3b
(*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)
0.4b
(*.f32 (PI.f32) r)
0.5b
(*.f32 -1/3 (/.f32 r s))

series7.0ms (0.2%)

Counts
1 → 0
Calls

1 calls:

6.0ms
(*.f32 -1/3 (/.f32 r s))

rewrite74.0ms (2%)

Algorithm
batch-egg-rewrite
Rules
607×log1p-expm1-u_binary32
607×expm1-log1p-u_binary32
317×log-prod_binary32
116×expm1-udef_binary32
116×log1p-udef_binary32
Counts
1 → 26
Calls

1 calls:

74.0ms
(*.f32 -1/3 (/.f32 r s))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
067
11277
215747
349527
451027
000
100

simplify6.0ms (0.2%)

Algorithm
egg-herbie
Counts
26 → 26
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
000
100

prune134.0ms (3.6%)

Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New72476
Fresh235
Picked101
Done000
Total75782
Error
0.2b
Counts
82 → 7
Alt Table
StatusErrorProgram
16.7b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (*.f32 (*.f32 2 (PI.f32)) s) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (pow.f32 (pow.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6))) 3) 1/3)))
17.8b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (pow.f32 (pow.f32 (*.f32 (*.f32 2 (PI.f32)) s) 3) 1/3) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)))
0.3b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 2 (*.f32 s (*.f32 (PI.f32) r)))) (/.f32 (*.f32 3/4 (exp.f32 (*.f32 -1/3 (/.f32 r s)))) (pow.f32 (sqrt.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6)))) 2)))
0.3b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 2 (*.f32 s (*.f32 (PI.f32) r)))) (/.f32 (*.f32 3/4 (exp.f32 (*.f32 -1/3 (/.f32 r s)))) (expm1.f32 (log1p.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6)))))))
0.3b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 2 (*.f32 s (*.f32 (PI.f32) r)))) (/.f32 (*.f32 3/4 (exp.f32 (*.f32 -1/3 (/.f32 r s)))) (exp.f32 (log.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6)))))))
1.0b
(*.f32 (/.f32 (/.f32 1/8 (*.f32 s (PI.f32))) r) (+.f32 (exp.f32 (/.f32 (neg.f32 r) s)) (pow.f32 (exp.f32 (/.f32 r s)) -1/3)))
0.3b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 2 (*.f32 s (pow.f32 (sqrt.f32 (*.f32 (PI.f32) r)) 2)))) (/.f32 (*.f32 3/4 (exp.f32 (*.f32 -1/3 (/.f32 r s)))) (*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)))
Compiler

Compiled 3204 to 1845 computations (42.4% saved)

localize85.0ms (2.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.3b
(*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)
0.4b
(*.f32 (PI.f32) r)
0.5b
(*.f32 -1/3 (/.f32 r s))
0.5b
(pow.f32 (sqrt.f32 (*.f32 (PI.f32) r)) 2)

series15.0ms (0.4%)

Counts
1 → 0
Calls

1 calls:

15.0ms
(pow.f32 (sqrt.f32 (*.f32 (PI.f32) r)) 2)

rewrite78.0ms (2.1%)

Algorithm
batch-egg-rewrite
Rules
906×log1p-udef_binary32
479×log1p-expm1-u_binary32
479×expm1-log1p-u_binary32
417×unpow-prod-down_binary32
263×log-prod_binary32
Counts
1 → 65
Calls

1 calls:

77.0ms
(pow.f32 (sqrt.f32 (*.f32 (PI.f32) r)) 2)
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
075
11255
212825
349955
465015
000
100

simplify6.0ms (0.2%)

Algorithm
egg-herbie
Counts
65 → 65
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
000
100

prune240.0ms (6.4%)

Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New1240124
Fresh066
Picked011
Done000
Total1247131
Error
0.2b
Counts
131 → 7
Alt Table
StatusErrorProgram
16.7b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (*.f32 (*.f32 2 (PI.f32)) s) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (pow.f32 (pow.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6))) 3) 1/3)))
17.8b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 (pow.f32 (pow.f32 (*.f32 (*.f32 2 (PI.f32)) s) 3) 1/3) r)) (/.f32 (*.f32 3/4 (exp.f32 (/.f32 (neg.f32 r) (*.f32 3 s)))) (*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)))
0.3b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 2 (*.f32 s (*.f32 (PI.f32) r)))) (/.f32 (*.f32 3/4 (exp.f32 (*.f32 -1/3 (/.f32 r s)))) (pow.f32 (sqrt.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6)))) 2)))
0.3b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 2 (*.f32 s (*.f32 (PI.f32) r)))) (/.f32 (*.f32 3/4 (exp.f32 (*.f32 -1/3 (/.f32 r s)))) (expm1.f32 (log1p.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6)))))))
0.3b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 2 (*.f32 s (*.f32 (PI.f32) r)))) (/.f32 (*.f32 3/4 (exp.f32 (*.f32 -1/3 (/.f32 r s)))) (exp.f32 (log.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6)))))))
1.0b
(*.f32 (/.f32 (/.f32 1/8 (*.f32 s (PI.f32))) r) (+.f32 (exp.f32 (/.f32 (neg.f32 r) s)) (pow.f32 (exp.f32 (/.f32 r s)) -1/3)))
0.3b
(+.f32 (/.f32 (*.f32 1/4 (exp.f32 (/.f32 (neg.f32 r) s))) (*.f32 2 (*.f32 s (pow.f32 (sqrt.f32 (*.f32 (PI.f32) r)) 2)))) (/.f32 (*.f32 3/4 (exp.f32 (*.f32 -1/3 (/.f32 r s)))) (*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)))
Compiler

Compiled 5081 to 2866 computations (43.6% saved)

regimes172.0ms (4.6%)

Accuracy

Total 0.1b remaining (42.4%)

Threshold costs 0.1b (42.4%)

Counts
47 → 1
Compiler

Compiled 5236 to 3874 computations (26% saved)

simplify5.0ms (0.1%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
02858
14658
25258
35758
45958
55958

end157.0ms (4.2%)

Compiler

Compiled 322 to 240 computations (25.5% saved)

Profiling

Loading profile data...