Details

Time bar (total: 1.1min)

analyze2.2s (3.2%)

Algorithm
search
Search
TrueOtherFalseIter
0%3%97%0
0%3%97%1
0%3%97%2
0%3%97%3
0%3%97%4
0%3%97%5
0%1.5%98.5%6
0%1.5%98.5%7
0%1.5%98.5%8
0%1.5%98.5%9
0%1.5%98.5%10
0.6%0.9%98.5%11
0.6%0.9%98.5%12
0.6%0.9%98.5%13
0.6%0.9%98.5%14
Compiler

Compiled 69 to 51 computations (26.1% saved)

sample2.8s (4.1%)

Symmetry

(sort cosTheta_i cosTheta_O)

(sort sinTheta_i sinTheta_O)

Results
2.7s8256×body128valid
36.0ms129×body128invalid
Compiler

Compiled 168 to 124 computations (26.2% saved)

simplify50.0ms (0.1%)

Algorithm
egg-herbie
Rules
788×fma-neg_binary32
718×fma-def_binary32
560×exp-diff_binary32
512×exp-sum_binary32
448×sub-neg_binary32
Counts
1 → 2
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02235
15333
214531
353229
4211929
5443129
6497529

prune5.0ms (0%)

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.2b
(*.f32 (/.f32 1/2 v) (exp.f32 (-.f32 (fma.f32 cosTheta_O (/.f32 cosTheta_i v) 6931/10000) (fma.f32 sinTheta_i (/.f32 sinTheta_O v) (/.f32 1 v)))))
0.2b
(exp.f32 (+.f32 (+.f32 (-.f32 (-.f32 (/.f32 (*.f32 cosTheta_i cosTheta_O) v) (/.f32 (*.f32 sinTheta_i sinTheta_O) v)) (/.f32 1 v)) 6931/10000) (log.f32 (/.f32 1 (*.f32 2 v)))))
Compiler

Compiled 160 to 112 computations (30% saved)

localize72.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(exp.f32 (+.f32 (+.f32 (-.f32 (-.f32 (/.f32 (*.f32 cosTheta_i cosTheta_O) v) (/.f32 (*.f32 sinTheta_i sinTheta_O) v)) (/.f32 1 v)) 6931/10000) (log.f32 (/.f32 1 (*.f32 2 v)))))
0.1b
(log.f32 (/.f32 1 (*.f32 2 v)))
6.2b
(/.f32 (*.f32 cosTheta_i cosTheta_O) v)
6.4b
(/.f32 (*.f32 sinTheta_i sinTheta_O) v)

series119.0ms (0.2%)

Counts
4 → 72
Calls

4 calls:

68.0ms
(exp.f32 (+.f32 (+.f32 (-.f32 (-.f32 (/.f32 (*.f32 cosTheta_i cosTheta_O) v) (/.f32 (*.f32 sinTheta_i sinTheta_O) v)) (/.f32 1 v)) 6931/10000) (log.f32 (/.f32 1 (*.f32 2 v)))))
26.0ms
(log.f32 (/.f32 1 (*.f32 2 v)))
13.0ms
(/.f32 (*.f32 cosTheta_i cosTheta_O) v)
11.0ms
(/.f32 (*.f32 sinTheta_i sinTheta_O) v)

rewrite51.0ms (0.1%)

Algorithm
batch-egg-rewrite
Rules
76×egg-rr
Counts
4 → 76
Calls

2 calls:

47.0ms
((/.f32 (*.f32 sinTheta_i sinTheta_O) v) (/.f32 (*.f32 cosTheta_i cosTheta_O) v) (log.f32 (/.f32 1 (*.f32 2 v))) (exp.f32 (+.f32 (+.f32 (-.f32 (-.f32 (/.f32 (*.f32 cosTheta_i cosTheta_O) v) (/.f32 (*.f32 sinTheta_i sinTheta_O) v)) (/.f32 1 v)) 6931/10000) (log.f32 (/.f32 1 (*.f32 2 v))))))
0.0ms
()
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02250
150550
2502650
000
100

simplify102.0ms (0.2%)

Algorithm
egg-herbie
Rules
468×times-frac_binary32
309×associate-*r*_binary32
267×associate-/l*_binary32
241×associate-+r+_binary32
240×associate-/r*_binary32
Counts
148 → 113
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02634691
18654599
243294301
350924301

prune177.0ms (0.3%)

Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New1085113
Fresh101
Picked101
Done000
Total1105115
Error
0.1b
Counts
115 → 5
Alt Table
StatusErrorProgram
0.1b
(exp.f32 (+.f32 (+.f32 (-.f32 (-.f32 (/.f32 (*.f32 cosTheta_i cosTheta_O) v) (/.f32 (*.f32 sinTheta_i sinTheta_O) v)) (/.f32 1 v)) 6931/10000) (-.f32 (log.f32 1/2) (log.f32 v))))
0.2b
(pow.f32 (sqrt.f32 (*.f32 (/.f32 1/2 v) (exp.f32 (+.f32 (-.f32 (/.f32 (-.f32 (*.f32 cosTheta_i cosTheta_O) (*.f32 sinTheta_i sinTheta_O)) v) (/.f32 1 v)) 6931/10000)))) 2)
0.3b
(pow.f32 (E.f32) (+.f32 (log.f32 (/.f32 1/2 v)) (+.f32 (-.f32 (/.f32 (-.f32 (*.f32 cosTheta_i cosTheta_O) (*.f32 sinTheta_i sinTheta_O)) v) (/.f32 1 v)) 6931/10000)))
0.2b
(*.f32 (pow.f32 (cbrt.f32 (*.f32 (/.f32 1/2 v) (exp.f32 (+.f32 (-.f32 (/.f32 (-.f32 (*.f32 cosTheta_i cosTheta_O) (*.f32 sinTheta_i sinTheta_O)) v) (/.f32 1 v)) 6931/10000)))) 2) (cbrt.f32 (*.f32 (/.f32 1/2 v) (exp.f32 (+.f32 (-.f32 (/.f32 (-.f32 (*.f32 cosTheta_i cosTheta_O) (*.f32 sinTheta_i sinTheta_O)) v) (/.f32 1 v)) 6931/10000)))))
0.2b
(*.f32 (exp.f32 (-.f32 (/.f32 (-.f32 (*.f32 cosTheta_i cosTheta_O) (*.f32 sinTheta_i sinTheta_O)) v) (/.f32 1 v))) (exp.f32 (+.f32 6931/10000 (log.f32 (/.f32 1/2 v)))))
Compiler

Compiled 5920 to 3770 computations (36.3% saved)

localize74.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(exp.f32 (+.f32 (+.f32 (-.f32 (-.f32 (/.f32 (*.f32 cosTheta_i cosTheta_O) v) (/.f32 (*.f32 sinTheta_i sinTheta_O) v)) (/.f32 1 v)) 6931/10000) (-.f32 (log.f32 1/2) (log.f32 v))))
0.3b
(-.f32 (log.f32 1/2) (log.f32 v))
6.2b
(/.f32 (*.f32 cosTheta_i cosTheta_O) v)
6.4b
(/.f32 (*.f32 sinTheta_i sinTheta_O) v)

series99.0ms (0.1%)

Counts
2 → 68
Calls

2 calls:

60.0ms
(exp.f32 (+.f32 (+.f32 (-.f32 (-.f32 (/.f32 (*.f32 cosTheta_i cosTheta_O) v) (/.f32 (*.f32 sinTheta_i sinTheta_O) v)) (/.f32 1 v)) 6931/10000) (-.f32 (log.f32 1/2) (log.f32 v))))
38.0ms
(-.f32 (log.f32 1/2) (log.f32 v))

rewrite36.0ms (0.1%)

Algorithm
batch-egg-rewrite
Rules
47×egg-rr
Counts
2 → 47
Calls

2 calls:

35.0ms
((-.f32 (log.f32 1/2) (log.f32 v)) (exp.f32 (+.f32 (+.f32 (-.f32 (-.f32 (/.f32 (*.f32 cosTheta_i cosTheta_O) v) (/.f32 (*.f32 sinTheta_i sinTheta_O) v)) (/.f32 1 v)) 6931/10000) (-.f32 (log.f32 1/2) (log.f32 v)))))
0.0ms
()
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02238
150736
2512236
000
100

simplify114.0ms (0.2%)

Algorithm
egg-herbie
Rules
464×times-frac_binary32
292×associate-*r*_binary32
263×associate-/l*_binary32
240×associate-+r+_binary32
240×associate-/r*_binary32
Counts
115 → 86
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02665172
18755004
243844638
351774638

prune231.0ms (0.3%)

Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New1182120
Fresh044
Picked011
Done000
Total1187125
Error
0.0b
Counts
125 → 7
Alt Table
StatusErrorProgram
0.1b
(exp.f32 (+.f32 (+.f32 (-.f32 (-.f32 (/.f32 (*.f32 cosTheta_i cosTheta_O) v) (/.f32 (*.f32 sinTheta_i sinTheta_O) v)) (/.f32 1 v)) 6931/10000) (-.f32 (log.f32 1/2) (log.f32 v))))
0.1b
(/.f32 (exp.f32 (-.f32 (+.f32 6931/10000 (+.f32 (log.f32 1/2) (/.f32 (*.f32 cosTheta_i cosTheta_O) v))) (/.f32 1 v))) v)
0.1b
(*.f32 1/2 (exp.f32 (-.f32 6931/10000 (+.f32 (/.f32 1 v) (+.f32 (log.f32 v) (/.f32 (*.f32 sinTheta_i sinTheta_O) v))))))
0.2b
(pow.f32 (sqrt.f32 (*.f32 (/.f32 1/2 v) (exp.f32 (+.f32 (-.f32 (/.f32 (-.f32 (*.f32 cosTheta_i cosTheta_O) (*.f32 sinTheta_i sinTheta_O)) v) (/.f32 1 v)) 6931/10000)))) 2)
0.3b
(pow.f32 (E.f32) (+.f32 (log.f32 (/.f32 1/2 v)) (+.f32 (-.f32 (/.f32 (-.f32 (*.f32 cosTheta_i cosTheta_O) (*.f32 sinTheta_i sinTheta_O)) v) (/.f32 1 v)) 6931/10000)))
0.2b
(*.f32 (pow.f32 (cbrt.f32 (*.f32 (/.f32 1/2 v) (exp.f32 (+.f32 (-.f32 (/.f32 (-.f32 (*.f32 cosTheta_i cosTheta_O) (*.f32 sinTheta_i sinTheta_O)) v) (/.f32 1 v)) 6931/10000)))) 2) (cbrt.f32 (*.f32 (/.f32 1/2 v) (exp.f32 (+.f32 (-.f32 (/.f32 (-.f32 (*.f32 cosTheta_i cosTheta_O) (*.f32 sinTheta_i sinTheta_O)) v) (/.f32 1 v)) 6931/10000)))))
0.2b
(*.f32 (exp.f32 (-.f32 (/.f32 (-.f32 (*.f32 cosTheta_i cosTheta_O) (*.f32 sinTheta_i sinTheta_O)) v) (/.f32 1 v))) (exp.f32 (+.f32 6931/10000 (log.f32 (/.f32 1/2 v)))))
Compiler

Compiled 6547 to 4106 computations (37.3% saved)

localize47.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(+.f32 (log.f32 1/2) (/.f32 (*.f32 cosTheta_i cosTheta_O) v))
0.1b
(exp.f32 (-.f32 (+.f32 6931/10000 (+.f32 (log.f32 1/2) (/.f32 (*.f32 cosTheta_i cosTheta_O) v))) (/.f32 1 v)))
6.2b
(/.f32 (*.f32 cosTheta_i cosTheta_O) v)
10.0b
(+.f32 6931/10000 (+.f32 (log.f32 1/2) (/.f32 (*.f32 cosTheta_i cosTheta_O) v)))

series63.0ms (0.1%)

Counts
3 → 66
Calls

3 calls:

22.0ms
(exp.f32 (-.f32 (+.f32 6931/10000 (+.f32 (log.f32 1/2) (/.f32 (*.f32 cosTheta_i cosTheta_O) v))) (/.f32 1 v)))
21.0ms
(+.f32 6931/10000 (+.f32 (log.f32 1/2) (/.f32 (*.f32 cosTheta_i cosTheta_O) v)))
20.0ms
(+.f32 (log.f32 1/2) (/.f32 (*.f32 cosTheta_i cosTheta_O) v))

rewrite77.0ms (0.1%)

Algorithm
batch-egg-rewrite
Rules
95×egg-rr
Counts
3 → 95
Calls

2 calls:

75.0ms
((+.f32 6931/10000 (+.f32 (log.f32 1/2) (/.f32 (*.f32 cosTheta_i cosTheta_O) v))) (exp.f32 (-.f32 (+.f32 6931/10000 (+.f32 (log.f32 1/2) (/.f32 (*.f32 cosTheta_i cosTheta_O) v))) (/.f32 1 v))) (+.f32 (log.f32 1/2) (/.f32 (*.f32 cosTheta_i cosTheta_O) v)))
0.0ms
()
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01550
133350
2451550
3488950
000
100

simplify49.0ms (0.1%)

Algorithm
egg-herbie
Rules
865×associate-/l*_binary32
486×associate-*l*_binary32
455×associate-/r*_binary32
415×fma-def_binary32
193×associate-*l/_binary32
Counts
161 → 123
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01101814
13131718
212691528
352221528

prune250.0ms (0.4%)

Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1373140
Fresh325
Picked101
Done011
Total1416147
Error
0.0b
Counts
147 → 6
Alt Table
StatusErrorProgram
0.1b
(exp.f32 (+.f32 (+.f32 (-.f32 (-.f32 (/.f32 (*.f32 cosTheta_i cosTheta_O) v) (/.f32 (*.f32 sinTheta_i sinTheta_O) v)) (/.f32 1 v)) 6931/10000) (-.f32 (log.f32 1/2) (log.f32 v))))
0.1b
(*.f32 1/2 (exp.f32 (-.f32 6931/10000 (+.f32 (/.f32 1 v) (+.f32 (log.f32 v) (/.f32 (*.f32 sinTheta_i sinTheta_O) v))))))
0.1b
(/.f32 (exp.f32 (-.f32 (pow.f32 (cbrt.f32 (+.f32 6931/10000 (+.f32 (log.f32 1/2) (/.f32 (*.f32 cosTheta_i cosTheta_O) v)))) 3) (/.f32 1 v))) v)
0.3b
(pow.f32 (E.f32) (+.f32 (log.f32 (/.f32 1/2 v)) (+.f32 (-.f32 (/.f32 (-.f32 (*.f32 cosTheta_i cosTheta_O) (*.f32 sinTheta_i sinTheta_O)) v) (/.f32 1 v)) 6931/10000)))
0.8b
(/.f32 (pow.f32 (pow.f32 (exp.f32 (-.f32 (+.f32 6931/10000 (+.f32 (log.f32 1/2) (/.f32 (*.f32 cosTheta_i cosTheta_O) v))) (/.f32 1 v))) 3) 1/3) v)
0.2b
(/.f32 (pow.f32 (E.f32) (-.f32 (+.f32 6931/10000 (+.f32 (log.f32 1/2) (/.f32 (*.f32 cosTheta_i cosTheta_O) v))) (/.f32 1 v))) v)
Compiler

Compiled 4222 to 2819 computations (33.2% saved)

localize62.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(exp.f32 (-.f32 (pow.f32 (cbrt.f32 (+.f32 6931/10000 (+.f32 (log.f32 1/2) (/.f32 (*.f32 cosTheta_i cosTheta_O) v)))) 3) (/.f32 1 v)))
0.9b
(pow.f32 (cbrt.f32 (+.f32 6931/10000 (+.f32 (log.f32 1/2) (/.f32 (*.f32 cosTheta_i cosTheta_O) v)))) 3)
6.2b
(/.f32 (*.f32 cosTheta_i cosTheta_O) v)
10.0b
(+.f32 6931/10000 (+.f32 (log.f32 1/2) (/.f32 (*.f32 cosTheta_i cosTheta_O) v)))

series60.0s (88.6%)

Counts
2 → 72
Calls

2 calls:

59.9s
(pow.f32 (cbrt.f32 (+.f32 6931/10000 (+.f32 (log.f32 1/2) (/.f32 (*.f32 cosTheta_i cosTheta_O) v)))) 3)
20.0ms
(exp.f32 (-.f32 (pow.f32 (cbrt.f32 (+.f32 6931/10000 (+.f32 (log.f32 1/2) (/.f32 (*.f32 cosTheta_i cosTheta_O) v)))) 3) (/.f32 1 v)))

rewrite74.0ms (0.1%)

Algorithm
batch-egg-rewrite
Rules
65×egg-rr
Counts
2 → 65
Calls

2 calls:

72.0ms
((pow.f32 (cbrt.f32 (+.f32 6931/10000 (+.f32 (log.f32 1/2) (/.f32 (*.f32 cosTheta_i cosTheta_O) v)))) 3) (exp.f32 (-.f32 (pow.f32 (cbrt.f32 (+.f32 6931/10000 (+.f32 (log.f32 1/2) (/.f32 (*.f32 cosTheta_i cosTheta_O) v)))) 3) (/.f32 1 v))))
0.0ms
()
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01838
137838
2484938
3519638
000
100

simplify75.0ms (0.1%)

Algorithm
egg-herbie
Rules
834×associate-/r*_binary32
642×fma-def_binary32
312×associate-/r/_binary32
212×times-frac_binary32
180×associate-/l*_binary32
Counts
137 → 107
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01923412
15793208
221962782
354102782

prune216.0ms (0.3%)

Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New1620162
Fresh044
Picked011
Done011
Total1626168
Error
0.0b
Counts
168 → 6
Alt Table
StatusErrorProgram
0.1b
(exp.f32 (+.f32 (+.f32 (-.f32 (-.f32 (/.f32 (*.f32 cosTheta_i cosTheta_O) v) (/.f32 (*.f32 sinTheta_i sinTheta_O) v)) (/.f32 1 v)) 6931/10000) (-.f32 (log.f32 1/2) (log.f32 v))))
0.1b
(*.f32 1/2 (exp.f32 (-.f32 6931/10000 (+.f32 (/.f32 1 v) (+.f32 (log.f32 v) (/.f32 (*.f32 sinTheta_i sinTheta_O) v))))))
0.1b
(/.f32 (exp.f32 (-.f32 (pow.f32 (cbrt.f32 (+.f32 6931/10000 (+.f32 (log.f32 1/2) (/.f32 (*.f32 cosTheta_i cosTheta_O) v)))) 3) (/.f32 1 v))) v)
0.3b
(pow.f32 (E.f32) (+.f32 (log.f32 (/.f32 1/2 v)) (+.f32 (-.f32 (/.f32 (-.f32 (*.f32 cosTheta_i cosTheta_O) (*.f32 sinTheta_i sinTheta_O)) v) (/.f32 1 v)) 6931/10000)))
0.8b
(/.f32 (pow.f32 (pow.f32 (exp.f32 (-.f32 (+.f32 6931/10000 (+.f32 (log.f32 1/2) (/.f32 (*.f32 cosTheta_i cosTheta_O) v))) (/.f32 1 v))) 3) 1/3) v)
0.2b
(/.f32 (pow.f32 (E.f32) (-.f32 (+.f32 6931/10000 (+.f32 (log.f32 1/2) (/.f32 (*.f32 cosTheta_i cosTheta_O) v))) (/.f32 1 v))) v)
Compiler

Compiled 5283 to 3515 computations (33.5% saved)

regimes600.0ms (0.9%)

Accuracy

Total 0.1b remaining (54%)

Threshold costs 0.1b (54%)

Counts
68 → 1
Compiler

Compiled 15348 to 11761 computations (23.4% saved)

simplify2.0ms (0%)

Algorithm
egg-herbie
Rules
+-commutative_binary32
sub-neg_binary32
*-commutative_binary32
distribute-neg-frac_binary32
neg-sub0_binary32
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01422
11922
22522
32722
42822
52622

end126.0ms (0.2%)

Remove

(sort sinTheta_i sinTheta_O)

(sort cosTheta_i cosTheta_O)

Compiler

Compiled 266 to 219 computations (17.7% saved)

Profiling

Loading profile data...