Details

Time bar (total: 4.2s)

analyze94.0ms (2.2%)

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)

sample2.0s (47.3%)

Results
1.9s8256×body128valid
Compiler

Compiled 135 to 97 computations (28.1% saved)

simplify61.0ms (1.5%)

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

prune4.0ms (0.1%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
0.0b
Counts
3 → 2
Alt Table
StatusErrorProgram
0.1b
(+.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)))
0.6b
(*.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 (1.8%)

Local error

Found 4 expressions with local error:

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

series29.0ms (0.7%)

Counts
4 → 84
Calls

4 calls:

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

rewrite70.0ms (1.7%)

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:

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

Useful iterations: 0 (0.0ms)

IterNodesCost
01639
133937
2387137
3499237
000
100

simplify31.0ms (0.7%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
015792
130792
269792
3107792
4108792
5108792

prune112.0ms (2.7%)

Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New92597
Fresh011
Picked101
Done000
Total93699
Error
0.0b
Counts
99 → 6
Alt Table
StatusErrorProgram
0.1b
(+.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 (/.f32 -1 (sqrt.f32 (*.f32 s 3))) (/.f32 r (sqrt.f32 (*.f32 s 3)))))) (*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)))
24.2b
(+.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)))) (log.f32 (+.f32 1 (expm1.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6))))))))
0.6b
(*.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.1b
(+.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)))) (exp.f32 (log.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6)))))))
17.1b
(+.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)))) (cbrt.f32 (pow.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6))) 3))))
0.1b
(+.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 (sqrt.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6)))) 2)))
Compiler

Compiled 3950 to 2482 computations (37.2% saved)

localize97.0ms (2.3%)

Local error

Found 4 expressions with local error:

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

series74.0ms (1.8%)

Counts
1 → 20
Calls

1 calls:

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

rewrite54.0ms (1.3%)

Algorithm
batch-egg-rewrite
Rules
525×log-prod_binary32
279×pow2_binary32
180×pow1/3_binary32
176×expm1-udef_binary32
176×log1p-udef_binary32
Counts
1 → 61
Calls

1 calls:

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

Useful iterations: 0 (0.0ms)

IterNodesCost
01010
12107
225617
350207
000
100

simplify68.0ms (1.6%)

Algorithm
egg-herbie
Rules
994×fma-def_binary32
735×associate-/l*_binary32
432×associate-*l*_binary32
431×fma-neg_binary32
410×associate-*l/_binary32
Counts
81 → 63
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
011280
123140
257140
3123140
4308140
51012140
63361140
73771140
84219140
95374140

prune198.0ms (4.7%)

Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1120112
Fresh055
Picked011
Done000
Total1126118
Error
0.0b
Counts
118 → 6
Alt Table
StatusErrorProgram
0.1b
(+.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 (/.f32 -1 (sqrt.f32 (*.f32 s 3))) (/.f32 r (sqrt.f32 (*.f32 s 3)))))) (*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)))
24.2b
(+.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)))) (log.f32 (+.f32 1 (expm1.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6))))))))
0.6b
(*.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.1b
(+.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)))) (exp.f32 (log.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6)))))))
17.1b
(+.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)))) (cbrt.f32 (pow.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6))) 3))))
0.1b
(+.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 (sqrt.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6)))) 2)))
Compiler

Compiled 4949 to 3267 computations (34% saved)

localize85.0ms (2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.3b
(*.f32 r (*.f32 s (*.f32 (PI.f32) 6)))
0.3b
(*.f32 (*.f32 (*.f32 2 (PI.f32)) s) r)
0.3b
(*.f32 (*.f32 2 (PI.f32)) s)
0.6b
(pow.f32 (sqrt.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6)))) 2)

series82.0ms (2%)

Counts
2 → 24
Calls

2 calls:

73.0ms
(pow.f32 (sqrt.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6)))) 2)
8.0ms
(*.f32 r (*.f32 s (*.f32 (PI.f32) 6)))

rewrite55.0ms (1.3%)

Algorithm
batch-egg-rewrite
Rules
859×log1p-expm1-u_binary32
859×expm1-log1p-u_binary32
98×add-sqr-sqrt_binary32
96×associate-*r*_binary32
93×add-log-exp_binary32
Counts
2 → 59
Calls

2 calls:

53.0ms
(*.f32 r (*.f32 s (*.f32 (PI.f32) 6)))
53.0ms
(pow.f32 (sqrt.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6)))) 2)
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01122
120922
2227622
3519922
000
100

simplify14.0ms (0.3%)

Algorithm
egg-herbie
Rules
26×associate-*l*_binary32
20×associate-*r*_binary32
17×*-commutative_binary32
Counts
83 → 49
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
08264
115264
235264
355264
455264
555264

prune140.0ms (3.4%)

Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New80181
Fresh134
Picked011
Done011
Total81687
Error
0.0b
Counts
87 → 6
Alt Table
StatusErrorProgram
0.1b
(+.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 (PI.f32) 6) (*.f32 r s))))
0.6b
(*.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.1b
(+.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 (/.f32 -1 (sqrt.f32 (*.f32 s 3))) (/.f32 r (sqrt.f32 (*.f32 s 3)))))) (*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)))
24.2b
(+.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)))) (log.f32 (+.f32 1 (expm1.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6))))))))
0.1b
(+.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)))) (exp.f32 (log.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6)))))))
0.1b
(+.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 (sqrt.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6)))) 2)))
Compiler

Compiled 3497 to 2204 computations (37% saved)

localize78.0ms (1.9%)

Local error

Found 4 expressions with local error:

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

series9.0ms (0.2%)

Counts
1 → 24
Calls

1 calls:

8.0ms
(*.f32 (*.f32 (PI.f32) 6) (*.f32 r s))

rewrite40.0ms (1%)

Algorithm
batch-egg-rewrite
Rules
710×log1p-expm1-u_binary32
710×expm1-log1p-u_binary32
146×expm1-udef_binary32
146×log1p-udef_binary32
130×log-pow_binary32
Counts
1 → 15
Calls

1 calls:

40.0ms
(*.f32 (*.f32 (PI.f32) 6) (*.f32 r s))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0811
116211
2187911
3495811
000
100

simplify13.0ms (0.3%)

Algorithm
egg-herbie
Rules
26×associate-*l*_binary32
20×associate-*r*_binary32
17×*-commutative_binary32
Counts
39 → 16
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
08264
115264
235264
355264
455264
555264

prune156.0ms (3.7%)

Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New95196
Fresh033
Picked101
Done022
Total966102
Error
0.0b
Counts
102 → 6
Alt Table
StatusErrorProgram
0.1b
(+.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 (/.f32 -1 (sqrt.f32 (*.f32 s 3))) (/.f32 r (sqrt.f32 (*.f32 s 3)))))) (*.f32 (*.f32 (*.f32 6 (PI.f32)) s) r)))
24.2b
(+.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)))) (log.f32 (+.f32 1 (expm1.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6))))))))
0.6b
(*.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.1b
(+.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)))) (exp.f32 (log.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6)))))))
0.1b
(+.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 (cbrt.f32 (*.f32 (*.f32 (PI.f32) 6) (*.f32 r s))) 3)))
0.1b
(+.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 (sqrt.f32 (*.f32 r (*.f32 s (*.f32 (PI.f32) 6)))) 2)))
Compiler

Compiled 3701 to 2211 computations (40.3% saved)

regimes413.0ms (9.9%)

Accuracy

Total 0.1b remaining (38.5%)

Threshold costs 0.1b (38.5%)

Counts
116 → 1
Compiler

Compiled 12868 to 9517 computations (26% saved)

simplify3.0ms (0.1%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
02856
14556
24956
35256
45356
55256

end143.0ms (3.4%)

Compiler

Compiled 290 to 214 computations (26.2% saved)

Profiling

Loading profile data...