Details

Time bar (total: 10.4s)

analyze658.0ms (6.3%)

Algorithm
search
Search
TrueOtherFalseIter
0%0.1%99.9%0
0%0.1%99.9%1
0%0.1%99.9%2
0%0.1%99.9%3
0%0%99.9%4
0%0%99.9%5
0%0%99.9%6
0.1%0%99.9%7
0.1%0%99.9%8
0.1%0%99.9%9
0.1%0%99.9%10
0.1%0%99.9%11
0.1%0%99.9%12
0.1%0%99.9%13
0.1%0%99.9%14
Compiler

Compiled 51 to 37 computations (27.5% saved)

sample2.2s (20.9%)

Results
2.0s8256×body128valid
Compiler

Compiled 130 to 94 computations (27.7% saved)

simplify47.0ms (0.5%)

Algorithm
egg-herbie
Rules
743×sub-neg_binary32
674×fma-neg_binary32
386×associate--l-_binary32
316×distribute-rgt-in_binary32
286×unsub-neg_binary32
Counts
1 → 2
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01739
14135
211735
343133
4175533
5413533
6496633

prune7.0ms (0.1%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
14.0b
Counts
3 → 2
Alt Table
StatusErrorProgram
14.1b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (-.f32 1 (*.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)) (+.f32 (-.f32 1 ux) (*.f32 ux maxCos))))))
14.2b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (fma.f32 (fma.f32 ux maxCos (-.f32 1 ux)) (-.f32 ux (fma.f32 ux maxCos 1)) 1)))
Compiler

Compiled 156 to 110 computations (29.5% saved)

localize49.0ms (0.5%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.2b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (-.f32 1 (*.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)) (+.f32 (-.f32 1 ux) (*.f32 ux maxCos))))))
0.4b
(*.f32 (*.f32 uy 2) (PI.f32))
0.4b
(*.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)) (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)))
13.7b
(-.f32 1 (*.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)) (+.f32 (-.f32 1 ux) (*.f32 ux maxCos))))

series276.0ms (2.7%)

Counts
4 → 92
Calls

4 calls:

229.0ms
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (-.f32 1 (*.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)) (+.f32 (-.f32 1 ux) (*.f32 ux maxCos))))))
24.0ms
(*.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)) (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)))
19.0ms
(-.f32 1 (*.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)) (+.f32 (-.f32 1 ux) (*.f32 ux maxCos))))
3.0ms
(*.f32 (*.f32 uy 2) (PI.f32))

rewrite87.0ms (0.8%)

Algorithm
batch-egg-rewrite
Rules
321×log1p-udef_binary32
185×add-sqr-sqrt_binary32
177×log1p-expm1-u_binary32
177×expm1-log1p-u_binary32
173×add-log-exp_binary32
Counts
4 → 94
Calls

4 calls:

84.0ms
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (-.f32 1 (*.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)) (+.f32 (-.f32 1 ux) (*.f32 ux maxCos))))))
84.0ms
(*.f32 (*.f32 uy 2) (PI.f32))
84.0ms
(*.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)) (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)))
84.0ms
(-.f32 1 (*.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)) (+.f32 (-.f32 1 ux) (*.f32 ux maxCos))))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01767
137061
2467261
3511461
000
100

simplify171.0ms (1.6%)

Algorithm
egg-herbie
Rules
519×fma-neg_binary32
377×sub-neg_binary32
318×fma-def_binary32
268×associate-*r*_binary32
250×associate-*l*_binary32
Counts
186 → 176
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02896589
110055816
241515810
349755810
450625810

prune393.0ms (3.8%)

Pruning

11 alts after pruning (11 fresh and 0 done)

PrunedKeptTotal
New16610176
Fresh011
Picked101
Done000
Total16711178
Error
0.2b
Counts
178 → 11
Alt Table
StatusErrorProgram
7.0b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (*.f32 (-.f32 2 (*.f32 2 maxCos)) ux)))
14.2b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (fma.f32 (fma.f32 ux maxCos (-.f32 1 ux)) (-.f32 ux (fma.f32 ux maxCos 1)) 1)))
14.2b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (/.f32 (-.f32 1 (pow.f32 (fma.f32 ux maxCos (-.f32 1 ux)) 6)) (+.f32 1 (+.f32 (pow.f32 (fma.f32 ux maxCos (-.f32 1 ux)) 2) (pow.f32 (fma.f32 ux maxCos (-.f32 1 ux)) 4))))))
2.0b
(fma.f32 (+.f32 (*.f32 2/3 (*.f32 (pow.f32 (PI.f32) 4) (pow.f32 uy 4))) 1) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (+.f32 (*.f32 2 (*.f32 maxCos ux)) (*.f32 (fma.f32 maxCos maxCos 1) (*.f32 ux ux))))) (*.f32 (*.f32 (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (+.f32 (*.f32 2 (*.f32 maxCos ux)) (*.f32 (fma.f32 maxCos maxCos 1) (*.f32 ux ux))))) (*.f32 (*.f32 uy uy) (pow.f32 (PI.f32) 2))) -2))
0.7b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (+.f32 ux (*.f32 2 maxCos))))))
1.5b
(-.f32 (*.f32 (+.f32 (*.f32 2/3 (*.f32 (pow.f32 (PI.f32) 4) (pow.f32 uy 4))) 1) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (+.f32 (*.f32 2 (*.f32 maxCos ux)) (*.f32 (fma.f32 maxCos maxCos 1) (*.f32 ux ux)))))) (*.f32 (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (+.f32 (*.f32 2 (*.f32 maxCos ux)) (*.f32 (fma.f32 maxCos maxCos 1) (*.f32 ux ux))))) (+.f32 (*.f32 2 (*.f32 (*.f32 uy uy) (pow.f32 (PI.f32) 2))) (*.f32 4/45 (*.f32 (pow.f32 uy 6) (pow.f32 (PI.f32) 6))))))
14.1b
(log.f32 (pow.f32 (exp.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32)))) (sqrt.f32 (-.f32 1 (pow.f32 (fma.f32 ux maxCos (-.f32 1 ux)) 2)))))
5.2b
(sqrt.f32 (-.f32 (+.f32 (*.f32 2 (*.f32 maxCos (pow.f32 ux 2))) (*.f32 2 ux)) (+.f32 (pow.f32 ux 2) (+.f32 (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 2)) (*.f32 2 (*.f32 maxCos ux))))))
14.8b
(pow.f32 (sqrt.f32 (*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (-.f32 1 (pow.f32 (fma.f32 ux maxCos (-.f32 1 ux)) 2))))) 2)
5.9b
(-.f32 (+.f32 (*.f32 (*.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))) (*.f32 maxCos (pow.f32 ux 2))) (sqrt.f32 (/.f32 1 (-.f32 (*.f32 2 ux) (pow.f32 ux 2))))) (+.f32 (*.f32 1/2 (*.f32 (*.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))) (*.f32 (pow.f32 maxCos 3) (pow.f32 ux 6))) (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 5))))) (+.f32 (*.f32 1/2 (*.f32 (*.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))) (*.f32 (pow.f32 maxCos 3) (pow.f32 ux 4))) (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 3))))) (+.f32 (*.f32 3/2 (*.f32 (*.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))) (*.f32 (pow.f32 maxCos 3) (pow.f32 ux 4))) (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 5))))) (+.f32 (*.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))) (sqrt.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)))) (*.f32 (*.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 3))) (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 3))))))))) (+.f32 (*.f32 1/2 (*.f32 (*.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 2))) (sqrt.f32 (/.f32 1 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)))))) (+.f32 (*.f32 1/2 (*.f32 (*.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))) (*.f32 (pow.f32 maxCos 3) (pow.f32 ux 3))) (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 3))))) (+.f32 (*.f32 1/2 (*.f32 (*.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 4))) (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 3))))) (+.f32 (*.f32 1/2 (*.f32 (*.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))) (*.f32 (pow.f32 maxCos 3) (pow.f32 ux 3))) (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 5))))) (+.f32 (*.f32 3/2 (*.f32 (*.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))) (*.f32 (pow.f32 maxCos 3) (pow.f32 ux 5))) (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 5))))) (+.f32 (*.f32 (*.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))) (*.f32 maxCos ux)) (sqrt.f32 (/.f32 1 (-.f32 (*.f32 2 ux) (pow.f32 ux 2))))) (*.f32 1/2 (*.f32 (*.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 2))) (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 3))))))))))))
1.0b
(-.f32 (fma.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))) (*.f32 (*.f32 maxCos (*.f32 ux ux)) (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux))))) (*.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))) (+.f32 (sqrt.f32 (*.f32 ux (-.f32 2 ux))) (*.f32 (*.f32 (*.f32 maxCos maxCos) (pow.f32 ux 3)) (sqrt.f32 (/.f32 1 (pow.f32 (*.f32 ux (-.f32 2 ux)) 3))))))) (+.f32 (*.f32 1/2 (*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (*.f32 ux (-.f32 2 ux)) 3))) (+.f32 (*.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))) (*.f32 (*.f32 maxCos maxCos) (pow.f32 ux 4))) (*.f32 (*.f32 ux ux) (*.f32 maxCos (*.f32 maxCos (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))))))))) (*.f32 (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux)))) (+.f32 (*.f32 1/2 (*.f32 (*.f32 ux ux) (*.f32 maxCos (*.f32 maxCos (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))))))) (*.f32 maxCos (*.f32 ux (cos.f32 (*.f32 2 (*.f32 uy (PI.f32))))))))))
Compiler

Compiled 10898 to 7344 computations (32.6% saved)

localize58.0ms (0.6%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(cos.f32 (*.f32 (*.f32 uy 2) (PI.f32)))
0.1b
(sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (+.f32 ux (*.f32 2 maxCos)))))
0.1b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (+.f32 ux (*.f32 2 maxCos))))))
0.4b
(*.f32 (*.f32 uy 2) (PI.f32))

series419.0ms (4%)

Counts
3 → 48
Calls

3 calls:

312.0ms
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (+.f32 ux (*.f32 2 maxCos))))))
102.0ms
(sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (+.f32 ux (*.f32 2 maxCos)))))
4.0ms
(cos.f32 (*.f32 (*.f32 uy 2) (PI.f32)))

rewrite79.0ms (0.8%)

Algorithm
batch-egg-rewrite
Rules
350×log1p-udef_binary32
196×add-sqr-sqrt_binary32
186×log1p-expm1-u_binary32
186×expm1-log1p-u_binary32
182×add-log-exp_binary32
Counts
3 → 56
Calls

3 calls:

78.0ms
(cos.f32 (*.f32 (*.f32 uy 2) (PI.f32)))
78.0ms
(sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (+.f32 ux (*.f32 2 maxCos)))))
78.0ms
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (+.f32 ux (*.f32 2 maxCos))))))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01872
138968
2497868
3549568
000
100

simplify87.0ms (0.8%)

Algorithm
egg-herbie
Rules
371×fma-neg_binary32
347×sub-neg_binary32
340×fma-def_binary32
311×associate-*r*_binary32
243×distribute-rgt-neg-in_binary32
Counts
104 → 123
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02694068
18833518
233503516
351513516

prune406.0ms (3.9%)

Pruning

12 alts after pruning (12 fresh and 0 done)

PrunedKeptTotal
New1327139
Fresh5510
Picked101
Done000
Total13812150
Error
0.1b
Counts
150 → 12
Alt Table
StatusErrorProgram
1.2b
(*.f32 (log.f32 (exp.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))))) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (+.f32 ux (*.f32 2 maxCos))))))
0.8b
(*.f32 (cos.f32 (log.f32 (pow.f32 (pow.f32 (exp.f32 uy) 2) (PI.f32)))) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (+.f32 ux (*.f32 2 maxCos))))))
0.7b
(*.f32 (cos.f32 (expm1.f32 (log1p.f32 (*.f32 (*.f32 uy 2) (PI.f32))))) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (+.f32 ux (*.f32 2 maxCos))))))
6.6b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (log.f32 (exp.f32 (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (fma.f32 2 maxCos ux)))))))
1.2b
(pow.f32 (cbrt.f32 (*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (fma.f32 2 maxCos ux)))))) 3)
0.7b
(*.f32 (cos.f32 (cbrt.f32 (*.f32 (pow.f32 (PI.f32) 3) (pow.f32 (*.f32 uy 2) 3)))) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (+.f32 ux (*.f32 2 maxCos))))))
1.5b
(-.f32 (*.f32 (+.f32 (*.f32 2/3 (*.f32 (pow.f32 (PI.f32) 4) (pow.f32 uy 4))) 1) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (+.f32 (*.f32 2 (*.f32 maxCos ux)) (*.f32 (fma.f32 maxCos maxCos 1) (*.f32 ux ux)))))) (*.f32 (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (+.f32 (*.f32 2 (*.f32 maxCos ux)) (*.f32 (fma.f32 maxCos maxCos 1) (*.f32 ux ux))))) (+.f32 (*.f32 2 (*.f32 (*.f32 uy uy) (pow.f32 (PI.f32) 2))) (*.f32 4/45 (*.f32 (pow.f32 uy 6) (pow.f32 (PI.f32) 6))))))
14.2b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (fma.f32 (fma.f32 ux maxCos (-.f32 1 ux)) (-.f32 ux (fma.f32 ux maxCos 1)) 1)))
0.9b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (/.f32 (sqrt.f32 (-.f32 (*.f32 4 (pow.f32 (fma.f32 maxCos (*.f32 ux ux) ux) 2)) (pow.f32 (*.f32 ux (fma.f32 2 maxCos ux)) 2))) (sqrt.f32 (fma.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux) (*.f32 ux (fma.f32 2 maxCos ux))))))
5.2b
(sqrt.f32 (-.f32 (+.f32 (*.f32 2 (*.f32 maxCos (pow.f32 ux 2))) (*.f32 2 ux)) (+.f32 (pow.f32 ux 2) (+.f32 (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 2)) (*.f32 2 (*.f32 maxCos ux))))))
14.8b
(pow.f32 (sqrt.f32 (*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (-.f32 1 (pow.f32 (fma.f32 ux maxCos (-.f32 1 ux)) 2))))) 2)
1.0b
(-.f32 (fma.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))) (*.f32 (*.f32 maxCos (*.f32 ux ux)) (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux))))) (*.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))) (+.f32 (sqrt.f32 (*.f32 ux (-.f32 2 ux))) (*.f32 (*.f32 (*.f32 maxCos maxCos) (pow.f32 ux 3)) (sqrt.f32 (/.f32 1 (pow.f32 (*.f32 ux (-.f32 2 ux)) 3))))))) (+.f32 (*.f32 1/2 (*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (*.f32 ux (-.f32 2 ux)) 3))) (+.f32 (*.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))) (*.f32 (*.f32 maxCos maxCos) (pow.f32 ux 4))) (*.f32 (*.f32 ux ux) (*.f32 maxCos (*.f32 maxCos (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))))))))) (*.f32 (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux)))) (+.f32 (*.f32 1/2 (*.f32 (*.f32 ux ux) (*.f32 maxCos (*.f32 maxCos (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))))))) (*.f32 maxCos (*.f32 ux (cos.f32 (*.f32 2 (*.f32 uy (PI.f32))))))))))
Compiler

Compiled 8118 to 5499 computations (32.3% saved)

localize79.0ms (0.8%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (+.f32 ux (*.f32 2 maxCos)))))
0.1b
(*.f32 (cos.f32 (cbrt.f32 (*.f32 (pow.f32 (PI.f32) 3) (pow.f32 (*.f32 uy 2) 3)))) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (+.f32 ux (*.f32 2 maxCos))))))
0.2b
(*.f32 (pow.f32 (PI.f32) 3) (pow.f32 (*.f32 uy 2) 3))
1.0b
(pow.f32 (PI.f32) 3)

series230.0ms (2.2%)

Counts
3 → 36
Calls

3 calls:

217.0ms
(*.f32 (cos.f32 (cbrt.f32 (*.f32 (pow.f32 (PI.f32) 3) (pow.f32 (*.f32 uy 2) 3)))) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (+.f32 ux (*.f32 2 maxCos))))))
12.0ms
(*.f32 (pow.f32 (PI.f32) 3) (pow.f32 (*.f32 uy 2) 3))
0.0ms
(pow.f32 (PI.f32) 3)

rewrite65.0ms (0.6%)

Algorithm
batch-egg-rewrite
Rules
257×prod-diff_binary32
227×add-sqr-sqrt_binary32
218×log1p-expm1-u_binary32
218×expm1-log1p-u_binary32
213×add-cbrt-cube_binary32
Counts
3 → 46
Calls

3 calls:

63.0ms
(*.f32 (cos.f32 (cbrt.f32 (*.f32 (pow.f32 (PI.f32) 3) (pow.f32 (*.f32 uy 2) 3)))) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (+.f32 ux (*.f32 2 maxCos))))))
63.0ms
(*.f32 (pow.f32 (PI.f32) 3) (pow.f32 (*.f32 uy 2) 3))
63.0ms
(pow.f32 (PI.f32) 3)
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02253
147351
2471251
3500951
000
100

simplify85.0ms (0.8%)

Algorithm
egg-herbie
Rules
584×cancel-sign-sub-inv_binary32
550×fma-neg_binary32
394×times-frac_binary32
249×associate-*r*_binary32
187×associate-*l*_binary32
Counts
82 → 83
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01892844
15832463
222762201
345522201
452542201

prune458.0ms (4.4%)

Pruning

12 alts after pruning (12 fresh and 0 done)

PrunedKeptTotal
New1301131
Fresh01111
Picked101
Done000
Total13112143
Error
0.1b
Counts
143 → 12
Alt Table
StatusErrorProgram
1.2b
(*.f32 (log.f32 (exp.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))))) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (+.f32 ux (*.f32 2 maxCos))))))
0.8b
(*.f32 (cos.f32 (log.f32 (pow.f32 (pow.f32 (exp.f32 uy) 2) (PI.f32)))) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (+.f32 ux (*.f32 2 maxCos))))))
0.7b
(*.f32 (cos.f32 (expm1.f32 (log1p.f32 (*.f32 (*.f32 uy 2) (PI.f32))))) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (+.f32 ux (*.f32 2 maxCos))))))
6.6b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (log.f32 (exp.f32 (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (fma.f32 2 maxCos ux)))))))
1.2b
(pow.f32 (cbrt.f32 (*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (fma.f32 2 maxCos ux)))))) 3)
1.8b
(*.f32 (cos.f32 (cbrt.f32 (*.f32 (pow.f32 (PI.f32) 3) (pow.f32 (*.f32 uy 2) 3)))) (pow.f32 (pow.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (fma.f32 2 maxCos ux))) 3/2) 1/3))
1.5b
(-.f32 (*.f32 (+.f32 (*.f32 2/3 (*.f32 (pow.f32 (PI.f32) 4) (pow.f32 uy 4))) 1) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (+.f32 (*.f32 2 (*.f32 maxCos ux)) (*.f32 (fma.f32 maxCos maxCos 1) (*.f32 ux ux)))))) (*.f32 (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (+.f32 (*.f32 2 (*.f32 maxCos ux)) (*.f32 (fma.f32 maxCos maxCos 1) (*.f32 ux ux))))) (+.f32 (*.f32 2 (*.f32 (*.f32 uy uy) (pow.f32 (PI.f32) 2))) (*.f32 4/45 (*.f32 (pow.f32 uy 6) (pow.f32 (PI.f32) 6))))))
14.2b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (fma.f32 (fma.f32 ux maxCos (-.f32 1 ux)) (-.f32 ux (fma.f32 ux maxCos 1)) 1)))
0.9b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (/.f32 (sqrt.f32 (-.f32 (*.f32 4 (pow.f32 (fma.f32 maxCos (*.f32 ux ux) ux) 2)) (pow.f32 (*.f32 ux (fma.f32 2 maxCos ux)) 2))) (sqrt.f32 (fma.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux) (*.f32 ux (fma.f32 2 maxCos ux))))))
5.2b
(sqrt.f32 (-.f32 (+.f32 (*.f32 2 (*.f32 maxCos (pow.f32 ux 2))) (*.f32 2 ux)) (+.f32 (pow.f32 ux 2) (+.f32 (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 2)) (*.f32 2 (*.f32 maxCos ux))))))
14.8b
(pow.f32 (sqrt.f32 (*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (-.f32 1 (pow.f32 (fma.f32 ux maxCos (-.f32 1 ux)) 2))))) 2)
1.0b
(-.f32 (fma.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))) (*.f32 (*.f32 maxCos (*.f32 ux ux)) (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux))))) (*.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))) (+.f32 (sqrt.f32 (*.f32 ux (-.f32 2 ux))) (*.f32 (*.f32 (*.f32 maxCos maxCos) (pow.f32 ux 3)) (sqrt.f32 (/.f32 1 (pow.f32 (*.f32 ux (-.f32 2 ux)) 3))))))) (+.f32 (*.f32 1/2 (*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (*.f32 ux (-.f32 2 ux)) 3))) (+.f32 (*.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))) (*.f32 (*.f32 maxCos maxCos) (pow.f32 ux 4))) (*.f32 (*.f32 ux ux) (*.f32 maxCos (*.f32 maxCos (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))))))))) (*.f32 (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux)))) (+.f32 (*.f32 1/2 (*.f32 (*.f32 ux ux) (*.f32 maxCos (*.f32 maxCos (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))))))) (*.f32 maxCos (*.f32 ux (cos.f32 (*.f32 2 (*.f32 uy (PI.f32))))))))))
Compiler

Compiled 8060 to 5617 computations (30.3% saved)

localize70.0ms (0.7%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(*.f32 (cos.f32 (expm1.f32 (log1p.f32 (*.f32 (*.f32 uy 2) (PI.f32))))) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (+.f32 ux (*.f32 2 maxCos))))))
0.2b
(log1p.f32 (*.f32 (*.f32 uy 2) (PI.f32)))
0.3b
(expm1.f32 (log1p.f32 (*.f32 (*.f32 uy 2) (PI.f32))))
0.4b
(*.f32 (*.f32 uy 2) (PI.f32))

series229.0ms (2.2%)

Counts
3 → 48
Calls

3 calls:

219.0ms
(*.f32 (cos.f32 (expm1.f32 (log1p.f32 (*.f32 (*.f32 uy 2) (PI.f32))))) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (+.f32 ux (*.f32 2 maxCos))))))
6.0ms
(log1p.f32 (*.f32 (*.f32 uy 2) (PI.f32)))
3.0ms
(expm1.f32 (log1p.f32 (*.f32 (*.f32 uy 2) (PI.f32))))

rewrite75.0ms (0.7%)

Algorithm
batch-egg-rewrite
Rules
365×log1p-udef_binary32
204×add-sqr-sqrt_binary32
195×expm1-log1p-u_binary32
194×log1p-expm1-u_binary32
189×add-log-exp_binary32
Counts
3 → 61
Calls

3 calls:

74.0ms
(*.f32 (cos.f32 (expm1.f32 (log1p.f32 (*.f32 (*.f32 uy 2) (PI.f32))))) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (+.f32 ux (*.f32 2 maxCos))))))
74.0ms
(log1p.f32 (*.f32 (*.f32 uy 2) (PI.f32)))
74.0ms
(expm1.f32 (log1p.f32 (*.f32 (*.f32 uy 2) (PI.f32))))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02055
140853
2484953
3539253
000
100

simplify98.0ms (0.9%)

Algorithm
egg-herbie
Rules
667×cancel-sign-sub-inv_binary32
556×fma-neg_binary32
263×sub-neg_binary32
246×fma-def_binary32
228×associate-*r*_binary32
Counts
109 → 117
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02293143
17252762
227282758
348332758
450172758

prune262.0ms (2.5%)

Pruning

12 alts after pruning (11 fresh and 1 done)

PrunedKeptTotal
New1330133
Fresh01111
Picked011
Done000
Total13312145
Error
0.1b
Counts
145 → 12
Alt Table
StatusErrorProgram
1.2b
(*.f32 (log.f32 (exp.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))))) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (+.f32 ux (*.f32 2 maxCos))))))
0.8b
(*.f32 (cos.f32 (log.f32 (pow.f32 (pow.f32 (exp.f32 uy) 2) (PI.f32)))) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (+.f32 ux (*.f32 2 maxCos))))))
0.7b
(*.f32 (cos.f32 (expm1.f32 (log1p.f32 (*.f32 (*.f32 uy 2) (PI.f32))))) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (+.f32 ux (*.f32 2 maxCos))))))
6.6b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (log.f32 (exp.f32 (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (fma.f32 2 maxCos ux)))))))
1.2b
(pow.f32 (cbrt.f32 (*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (fma.f32 2 maxCos ux)))))) 3)
1.8b
(*.f32 (cos.f32 (cbrt.f32 (*.f32 (pow.f32 (PI.f32) 3) (pow.f32 (*.f32 uy 2) 3)))) (pow.f32 (pow.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (*.f32 ux (fma.f32 2 maxCos ux))) 3/2) 1/3))
1.5b
(-.f32 (*.f32 (+.f32 (*.f32 2/3 (*.f32 (pow.f32 (PI.f32) 4) (pow.f32 uy 4))) 1) (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (+.f32 (*.f32 2 (*.f32 maxCos ux)) (*.f32 (fma.f32 maxCos maxCos 1) (*.f32 ux ux)))))) (*.f32 (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (+.f32 (*.f32 2 (*.f32 maxCos ux)) (*.f32 (fma.f32 maxCos maxCos 1) (*.f32 ux ux))))) (+.f32 (*.f32 2 (*.f32 (*.f32 uy uy) (pow.f32 (PI.f32) 2))) (*.f32 4/45 (*.f32 (pow.f32 uy 6) (pow.f32 (PI.f32) 6))))))
14.2b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (fma.f32 (fma.f32 ux maxCos (-.f32 1 ux)) (-.f32 ux (fma.f32 ux maxCos 1)) 1)))
0.9b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (/.f32 (sqrt.f32 (-.f32 (*.f32 4 (pow.f32 (fma.f32 maxCos (*.f32 ux ux) ux) 2)) (pow.f32 (*.f32 ux (fma.f32 2 maxCos ux)) 2))) (sqrt.f32 (fma.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux) (*.f32 ux (fma.f32 2 maxCos ux))))))
5.2b
(sqrt.f32 (-.f32 (+.f32 (*.f32 2 (*.f32 maxCos (pow.f32 ux 2))) (*.f32 2 ux)) (+.f32 (pow.f32 ux 2) (+.f32 (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 2)) (*.f32 2 (*.f32 maxCos ux))))))
14.8b
(pow.f32 (sqrt.f32 (*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (-.f32 1 (pow.f32 (fma.f32 ux maxCos (-.f32 1 ux)) 2))))) 2)
1.0b
(-.f32 (fma.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))) (*.f32 (*.f32 maxCos (*.f32 ux ux)) (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux))))) (*.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))) (+.f32 (sqrt.f32 (*.f32 ux (-.f32 2 ux))) (*.f32 (*.f32 (*.f32 maxCos maxCos) (pow.f32 ux 3)) (sqrt.f32 (/.f32 1 (pow.f32 (*.f32 ux (-.f32 2 ux)) 3))))))) (+.f32 (*.f32 1/2 (*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (*.f32 ux (-.f32 2 ux)) 3))) (+.f32 (*.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))) (*.f32 (*.f32 maxCos maxCos) (pow.f32 ux 4))) (*.f32 (*.f32 ux ux) (*.f32 maxCos (*.f32 maxCos (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))))))))) (*.f32 (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux)))) (+.f32 (*.f32 1/2 (*.f32 (*.f32 ux ux) (*.f32 maxCos (*.f32 maxCos (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))))))) (*.f32 maxCos (*.f32 ux (cos.f32 (*.f32 2 (*.f32 uy (PI.f32))))))))))
Compiler

Compiled 6615 to 4332 computations (34.5% saved)

regimes3.4s (33%)

Accuracy

Total 0.2b remaining (64%)

Threshold costs 0.2b (64%)

Counts
207 → 1
Compiler

Compiled 95864 to 70387 computations (26.6% saved)

simplify6.0ms (0.1%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
02357
13757
24657
35857
48157
59757
610757
711357
811557
911457

end401.0ms (3.9%)

Compiler

Compiled 606 to 425 computations (29.9% saved)

Profiling

Loading profile data...