Details

Time bar (total: 9.9s)

analyze667.0ms (6.7%)

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.1s (21%)

Results
2.0s8256×body128valid
Compiler

Compiled 130 to 94 computations (27.7% saved)

simplify21.0ms (0.2%)

Algorithm
egg-herbie
Rules
674×fma-neg_binary32
316×distribute-rgt-in_binary32
280×unsub-neg_binary32
279×distribute-lft-in_binary32
275×distribute-neg-in_binary32
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01739
14135
212835
356433
4296833
Stop Event
node limit
Counts
1 → 2

prune5.0ms (0%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
14.4b
Counts
3 → 2
Alt Table
StatusErrorProgram
14.6b
(*.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.5b
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (fma.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1)) 1)))
Compiler

Compiled 156 to 110 computations (29.5% saved)

localize48.0ms (0.5%)

Local error

Found 4 expressions with local error:

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

series222.0ms (2.2%)

Counts
4 → 88
Calls

4 calls:

146.0ms
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (fma.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1)) 1)))
62.0ms
(sqrt.f32 (fma.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1)) 1))
11.0ms
(fma.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1)) 1)
3.0ms
(*.f32 uy (*.f32 2 (PI.f32)))

rewrite67.0ms (0.7%)

Algorithm
batch-egg-rewrite
Rules
297×expm1-udef_binary32
297×log1p-udef_binary32
168×add-sqr-sqrt_binary32
158×log1p-expm1-u_binary32
158×expm1-log1p-u_binary32
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01681
133481
2434481
Stop Event
node limit
Counts
4 → 81
Calls

4 calls:

65.0ms
(sqrt.f32 (fma.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1)) 1))
65.0ms
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (fma.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1)) 1)))
65.0ms
(*.f32 uy (*.f32 2 (PI.f32)))
65.0ms
(fma.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1)) 1)

simplify92.0ms (0.9%)

Algorithm
egg-herbie
Rules
573×fma-def_binary32
414×associate-*r*_binary32
292×associate-*l*_binary32
230×times-frac_binary32
199×associate--l+_binary32
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
04298582
116067608
Stop Event
node limit
Counts
169 → 186

prune373.0ms (3.8%)

Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New1779186
Fresh101
Picked101
Done000
Total1799188
Error
0.1b
Counts
188 → 9
Alt Table
StatusErrorProgram
7.0b
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (*.f32 (-.f32 2 (*.f32 2 maxCos)) ux)))
14.6b
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (/.f32 (-.f32 (*.f32 (*.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1))) (*.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1)))) 1) (-.f32 (*.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1))) 1))))
14.6b
(log.f32 (pow.f32 (exp.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32))))) (sqrt.f32 (fma.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1)) 1))))
1.8b
(-.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 (fma.f32 maxCos maxCos 1) (*.f32 ux ux)) (*.f32 2 (*.f32 maxCos ux)))))) (*.f32 (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (+.f32 (*.f32 (fma.f32 maxCos maxCos 1) (*.f32 ux ux)) (*.f32 2 (*.f32 maxCos ux))))) (+.f32 (*.f32 2 (*.f32 uy (*.f32 uy (pow.f32 (PI.f32) 2)))) (*.f32 4/45 (*.f32 (pow.f32 uy 6) (pow.f32 (PI.f32) 6))))))
1.7b
(-.f32 (+.f32 (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)))))) (*.f32 2/3 (*.f32 (*.f32 (pow.f32 uy 4) (pow.f32 (PI.f32) 4)) (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))))))))) (+.f32 (*.f32 4/45 (*.f32 (*.f32 (pow.f32 uy 6) (pow.f32 (PI.f32) 6)) (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)))))))) (*.f32 2 (*.f32 (*.f32 (pow.f32 (PI.f32) 2) (pow.f32 uy 2)) (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))))))))))
15.4b
(pow.f32 (sqrt.f32 (*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (fma.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1)) 1)))) 2)
14.5b
(*.f32 (cos.f32 (expm1.f32 (log1p.f32 (*.f32 uy (*.f32 2 (PI.f32)))))) (sqrt.f32 (fma.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1)) 1)))
0.6b
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (-.f32 (fma.f32 (*.f32 maxCos (*.f32 ux ux)) (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux)))) (fma.f32 (*.f32 maxCos (*.f32 maxCos (pow.f32 ux 3))) (sqrt.f32 (/.f32 1 (pow.f32 (*.f32 ux (-.f32 2 ux)) 3))) (sqrt.f32 (*.f32 ux (-.f32 2 ux))))) (fma.f32 (*.f32 maxCos ux) (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux)))) (*.f32 1/2 (+.f32 (*.f32 (*.f32 ux ux) (*.f32 (*.f32 maxCos maxCos) (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux)))))) (*.f32 (*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (*.f32 ux (-.f32 2 ux)) 3))) (*.f32 maxCos maxCos)) (+.f32 (pow.f32 ux 4) (*.f32 ux ux))))))))
0.6b
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (-.f32 (+.f32 (*.f32 (sqrt.f32 (/.f32 1 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)))) (*.f32 maxCos (pow.f32 ux 2))) (+.f32 (*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 3))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 3))) (sqrt.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2))))) (+.f32 (*.f32 (sqrt.f32 (/.f32 1 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)))) (*.f32 maxCos ux)) (+.f32 (*.f32 1/2 (*.f32 (sqrt.f32 (/.f32 1 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 2)))) (+.f32 (*.f32 1/2 (*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 3))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 4)))) (*.f32 1/2 (*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 3))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 2)))))))))
Compiler

Compiled 13343 to 8905 computations (33.3% saved)

localize182.0ms (1.8%)

Local error

Found 4 expressions with local error:

NewErrorProgram
1.3b
(*.f32 (sqrt.f32 (/.f32 1 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)))) (*.f32 maxCos (pow.f32 ux 2)))
2.1b
(*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 3))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 4)))
2.9b
(*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 3))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 2)))
3.1b
(*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 3))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 3)))

series313.0ms (3.2%)

Counts
4 → 32
Calls

4 calls:

89.0ms
(*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 3))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 4)))
87.0ms
(*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 3))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 3)))
81.0ms
(*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 3))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 2)))
55.0ms
(*.f32 (sqrt.f32 (/.f32 1 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)))) (*.f32 maxCos (pow.f32 ux 2)))

rewrite42.0ms (0.4%)

Algorithm
batch-egg-rewrite
Rules
245×add-sqr-sqrt_binary32
241×log1p-expm1-u_binary32
241×expm1-log1p-u_binary32
235×add-cbrt-cube_binary32
230×add-cube-cbrt_binary32
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
026102
156394
Stop Event
node limit
Counts
4 → 56
Calls

4 calls:

41.0ms
(*.f32 (sqrt.f32 (/.f32 1 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)))) (*.f32 maxCos (pow.f32 ux 2)))
41.0ms
(*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 3))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 4)))
41.0ms
(*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 3))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 2)))
41.0ms
(*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 3))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 3)))

simplify41.0ms (0.4%)

Algorithm
egg-herbie
Rules
776×fma-def_binary32
602×associate-/r*_binary32
497×associate-/l*_binary32
260×cancel-sign-sub-inv_binary32
212×fma-neg_binary32
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01341716
14611684
218331450
Stop Event
node limit
Counts
88 → 120

prune622.0ms (6.3%)

Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New1200120
Fresh088
Picked011
Done000
Total1209129
Error
0.1b
Counts
129 → 9
Alt Table
StatusErrorProgram
7.0b
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (*.f32 (-.f32 2 (*.f32 2 maxCos)) ux)))
14.6b
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (/.f32 (-.f32 (*.f32 (*.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1))) (*.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1)))) 1) (-.f32 (*.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1))) 1))))
14.6b
(log.f32 (pow.f32 (exp.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32))))) (sqrt.f32 (fma.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1)) 1))))
1.8b
(-.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 (fma.f32 maxCos maxCos 1) (*.f32 ux ux)) (*.f32 2 (*.f32 maxCos ux)))))) (*.f32 (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (+.f32 (*.f32 (fma.f32 maxCos maxCos 1) (*.f32 ux ux)) (*.f32 2 (*.f32 maxCos ux))))) (+.f32 (*.f32 2 (*.f32 uy (*.f32 uy (pow.f32 (PI.f32) 2)))) (*.f32 4/45 (*.f32 (pow.f32 uy 6) (pow.f32 (PI.f32) 6))))))
1.7b
(-.f32 (+.f32 (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)))))) (*.f32 2/3 (*.f32 (*.f32 (pow.f32 uy 4) (pow.f32 (PI.f32) 4)) (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))))))))) (+.f32 (*.f32 4/45 (*.f32 (*.f32 (pow.f32 uy 6) (pow.f32 (PI.f32) 6)) (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)))))))) (*.f32 2 (*.f32 (*.f32 (pow.f32 (PI.f32) 2) (pow.f32 uy 2)) (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))))))))))
15.4b
(pow.f32 (sqrt.f32 (*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (fma.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1)) 1)))) 2)
14.5b
(*.f32 (cos.f32 (expm1.f32 (log1p.f32 (*.f32 uy (*.f32 2 (PI.f32)))))) (sqrt.f32 (fma.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1)) 1)))
0.6b
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (-.f32 (fma.f32 (*.f32 maxCos (*.f32 ux ux)) (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux)))) (fma.f32 (*.f32 maxCos (*.f32 maxCos (pow.f32 ux 3))) (sqrt.f32 (/.f32 1 (pow.f32 (*.f32 ux (-.f32 2 ux)) 3))) (sqrt.f32 (*.f32 ux (-.f32 2 ux))))) (fma.f32 (*.f32 maxCos ux) (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux)))) (*.f32 1/2 (+.f32 (*.f32 (*.f32 ux ux) (*.f32 (*.f32 maxCos maxCos) (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux)))))) (*.f32 (*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (*.f32 ux (-.f32 2 ux)) 3))) (*.f32 maxCos maxCos)) (+.f32 (pow.f32 ux 4) (*.f32 ux ux))))))))
0.6b
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (-.f32 (+.f32 (*.f32 (sqrt.f32 (/.f32 1 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)))) (*.f32 maxCos (pow.f32 ux 2))) (+.f32 (*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 3))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 3))) (sqrt.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2))))) (+.f32 (*.f32 (sqrt.f32 (/.f32 1 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)))) (*.f32 maxCos ux)) (+.f32 (*.f32 1/2 (*.f32 (sqrt.f32 (/.f32 1 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 2)))) (+.f32 (*.f32 1/2 (*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 3))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 4)))) (*.f32 1/2 (*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 3))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 2)))))))))
Compiler

Compiled 18270 to 13949 computations (23.7% saved)

localize160.0ms (1.6%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.6b
(pow.f32 (*.f32 ux (-.f32 2 ux)) 3)
0.7b
(*.f32 (*.f32 maxCos maxCos) (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux)))))
1.0b
(fma.f32 (*.f32 maxCos ux) (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux)))) (*.f32 1/2 (+.f32 (*.f32 (*.f32 ux ux) (*.f32 (*.f32 maxCos maxCos) (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux)))))) (*.f32 (*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (*.f32 ux (-.f32 2 ux)) 3))) (*.f32 maxCos maxCos)) (+.f32 (pow.f32 ux 4) (*.f32 ux ux))))))
2.1b
(*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (*.f32 ux (-.f32 2 ux)) 3))) (*.f32 maxCos maxCos))

series228.0ms (2.3%)

Counts
4 → 72
Calls

4 calls:

125.0ms
(fma.f32 (*.f32 maxCos ux) (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux)))) (*.f32 1/2 (+.f32 (*.f32 (*.f32 ux ux) (*.f32 (*.f32 maxCos maxCos) (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux)))))) (*.f32 (*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (*.f32 ux (-.f32 2 ux)) 3))) (*.f32 maxCos maxCos)) (+.f32 (pow.f32 ux 4) (*.f32 ux ux))))))
71.0ms
(*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (*.f32 ux (-.f32 2 ux)) 3))) (*.f32 maxCos maxCos))
29.0ms
(*.f32 (*.f32 maxCos maxCos) (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux)))))
3.0ms
(pow.f32 (*.f32 ux (-.f32 2 ux)) 3)

rewrite56.0ms (0.6%)

Algorithm
batch-egg-rewrite
Rules
275×log1p-expm1-u_binary32
275×expm1-log1p-u_binary32
270×add-cbrt-cube_binary32
263×add-log-exp_binary32
262×add-cube-cbrt_binary32
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
027121
1611106
Stop Event
node limit
Counts
4 → 57
Calls

4 calls:

53.0ms
(pow.f32 (*.f32 ux (-.f32 2 ux)) 3)
53.0ms
(*.f32 (*.f32 maxCos maxCos) (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux)))))
53.0ms
(fma.f32 (*.f32 maxCos ux) (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux)))) (*.f32 1/2 (+.f32 (*.f32 (*.f32 ux ux) (*.f32 (*.f32 maxCos maxCos) (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux)))))) (*.f32 (*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (*.f32 ux (-.f32 2 ux)) 3))) (*.f32 maxCos maxCos)) (+.f32 (pow.f32 ux 4) (*.f32 ux ux))))))
53.0ms
(*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (*.f32 ux (-.f32 2 ux)) 3))) (*.f32 maxCos maxCos))

simplify62.0ms (0.6%)

Algorithm
egg-herbie
Rules
627×associate-/l*_binary32
309×cancel-sign-sub-inv_binary32
190×fma-neg_binary32
186×sub-neg_binary32
165×fma-def_binary32
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01873161
15873005
223552826
Stop Event
node limit
Counts
129 → 129

prune544.0ms (5.5%)

Pruning

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New1600160
Fresh077
Picked011
Done011
Total1609169
Error
0.1b
Counts
169 → 9
Alt Table
StatusErrorProgram
7.0b
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (*.f32 (-.f32 2 (*.f32 2 maxCos)) ux)))
14.6b
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (/.f32 (-.f32 (*.f32 (*.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1))) (*.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1)))) 1) (-.f32 (*.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1))) 1))))
14.6b
(log.f32 (pow.f32 (exp.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32))))) (sqrt.f32 (fma.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1)) 1))))
1.8b
(-.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 (fma.f32 maxCos maxCos 1) (*.f32 ux ux)) (*.f32 2 (*.f32 maxCos ux)))))) (*.f32 (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (+.f32 (*.f32 (fma.f32 maxCos maxCos 1) (*.f32 ux ux)) (*.f32 2 (*.f32 maxCos ux))))) (+.f32 (*.f32 2 (*.f32 uy (*.f32 uy (pow.f32 (PI.f32) 2)))) (*.f32 4/45 (*.f32 (pow.f32 uy 6) (pow.f32 (PI.f32) 6))))))
1.7b
(-.f32 (+.f32 (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)))))) (*.f32 2/3 (*.f32 (*.f32 (pow.f32 uy 4) (pow.f32 (PI.f32) 4)) (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))))))))) (+.f32 (*.f32 4/45 (*.f32 (*.f32 (pow.f32 uy 6) (pow.f32 (PI.f32) 6)) (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)))))))) (*.f32 2 (*.f32 (*.f32 (pow.f32 (PI.f32) 2) (pow.f32 uy 2)) (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))))))))))
15.4b
(pow.f32 (sqrt.f32 (*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (fma.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1)) 1)))) 2)
14.5b
(*.f32 (cos.f32 (expm1.f32 (log1p.f32 (*.f32 uy (*.f32 2 (PI.f32)))))) (sqrt.f32 (fma.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1)) 1)))
0.6b
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (-.f32 (fma.f32 (*.f32 maxCos (*.f32 ux ux)) (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux)))) (fma.f32 (*.f32 maxCos (*.f32 maxCos (pow.f32 ux 3))) (sqrt.f32 (/.f32 1 (pow.f32 (*.f32 ux (-.f32 2 ux)) 3))) (sqrt.f32 (*.f32 ux (-.f32 2 ux))))) (fma.f32 (*.f32 maxCos ux) (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux)))) (*.f32 1/2 (+.f32 (*.f32 (*.f32 ux ux) (*.f32 (*.f32 maxCos maxCos) (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux)))))) (*.f32 (*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (*.f32 ux (-.f32 2 ux)) 3))) (*.f32 maxCos maxCos)) (+.f32 (pow.f32 ux 4) (*.f32 ux ux))))))))
0.6b
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (-.f32 (+.f32 (*.f32 (sqrt.f32 (/.f32 1 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)))) (*.f32 maxCos (pow.f32 ux 2))) (+.f32 (*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 3))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 3))) (sqrt.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2))))) (+.f32 (*.f32 (sqrt.f32 (/.f32 1 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)))) (*.f32 maxCos ux)) (+.f32 (*.f32 1/2 (*.f32 (sqrt.f32 (/.f32 1 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 2)))) (+.f32 (*.f32 1/2 (*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 3))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 4)))) (*.f32 1/2 (*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 3))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 2)))))))))
Compiler

Compiled 17895 to 11652 computations (34.9% saved)

localize187.0ms (1.9%)

Local error

Found 4 expressions with local error:

NewErrorProgram
1.0b
(pow.f32 (PI.f32) 2)
1.3b
(*.f32 (pow.f32 uy 6) (pow.f32 (PI.f32) 6))
1.6b
(pow.f32 (PI.f32) 6)
1.6b
(pow.f32 (PI.f32) 4)

series13.0ms (0.1%)

Counts
4 → 12
Calls

4 calls:

13.0ms
(*.f32 (pow.f32 uy 6) (pow.f32 (PI.f32) 6))
0.0ms
(pow.f32 (PI.f32) 4)
0.0ms
(pow.f32 (PI.f32) 2)
0.0ms
(pow.f32 (PI.f32) 6)

rewrite46.0ms (0.5%)

Algorithm
batch-egg-rewrite
Rules
785×log1p-expm1-u_binary32
785×expm1-log1p-u_binary32
99×add-cbrt-cube_binary32
97×add-sqr-sqrt_binary32
97×add-log-exp_binary32
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01123
123423
2245323
Stop Event
node limit
Counts
4 → 76
Calls

4 calls:

45.0ms
(pow.f32 (PI.f32) 2)
45.0ms
(*.f32 (pow.f32 uy 6) (pow.f32 (PI.f32) 6))
45.0ms
(pow.f32 (PI.f32) 6)
45.0ms
(pow.f32 (PI.f32) 4)

simplify84.0ms (0.8%)

Algorithm
egg-herbie
Rules
711×sqr-pow_binary32
392×unswap-sqr_binary32
375×*-commutative_binary32
316×associate-*l*_binary32
280×cube-prod_binary32
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
07132
115132
240132
3178132
41094132
51939132
62001132
72106132
82247132
92389132
102563132
112788132
123056132
133397132
143808132
154285132
164841132
Stop Event
node limit
Counts
88 → 77

prune417.0ms (4.2%)

Pruning

9 alts after pruning (6 fresh and 3 done)

PrunedKeptTotal
New77077
Fresh066
Picked011
Done022
Total77986
Error
0.1b
Counts
86 → 9
Alt Table
StatusErrorProgram
7.0b
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (*.f32 (-.f32 2 (*.f32 2 maxCos)) ux)))
14.6b
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (/.f32 (-.f32 (*.f32 (*.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1))) (*.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1)))) 1) (-.f32 (*.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1))) 1))))
14.6b
(log.f32 (pow.f32 (exp.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32))))) (sqrt.f32 (fma.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1)) 1))))
1.8b
(-.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 (fma.f32 maxCos maxCos 1) (*.f32 ux ux)) (*.f32 2 (*.f32 maxCos ux)))))) (*.f32 (sqrt.f32 (-.f32 (*.f32 2 (fma.f32 maxCos (*.f32 ux ux) ux)) (+.f32 (*.f32 (fma.f32 maxCos maxCos 1) (*.f32 ux ux)) (*.f32 2 (*.f32 maxCos ux))))) (+.f32 (*.f32 2 (*.f32 uy (*.f32 uy (pow.f32 (PI.f32) 2)))) (*.f32 4/45 (*.f32 (pow.f32 uy 6) (pow.f32 (PI.f32) 6))))))
1.7b
(-.f32 (+.f32 (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)))))) (*.f32 2/3 (*.f32 (*.f32 (pow.f32 uy 4) (pow.f32 (PI.f32) 4)) (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))))))))) (+.f32 (*.f32 4/45 (*.f32 (*.f32 (pow.f32 uy 6) (pow.f32 (PI.f32) 6)) (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)))))))) (*.f32 2 (*.f32 (*.f32 (pow.f32 (PI.f32) 2) (pow.f32 uy 2)) (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))))))))))
15.4b
(pow.f32 (sqrt.f32 (*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (sqrt.f32 (fma.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1)) 1)))) 2)
14.5b
(*.f32 (cos.f32 (expm1.f32 (log1p.f32 (*.f32 uy (*.f32 2 (PI.f32)))))) (sqrt.f32 (fma.f32 (-.f32 (fma.f32 ux maxCos 1) ux) (-.f32 ux (fma.f32 ux maxCos 1)) 1)))
0.6b
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (-.f32 (fma.f32 (*.f32 maxCos (*.f32 ux ux)) (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux)))) (fma.f32 (*.f32 maxCos (*.f32 maxCos (pow.f32 ux 3))) (sqrt.f32 (/.f32 1 (pow.f32 (*.f32 ux (-.f32 2 ux)) 3))) (sqrt.f32 (*.f32 ux (-.f32 2 ux))))) (fma.f32 (*.f32 maxCos ux) (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux)))) (*.f32 1/2 (+.f32 (*.f32 (*.f32 ux ux) (*.f32 (*.f32 maxCos maxCos) (sqrt.f32 (/.f32 1 (*.f32 ux (-.f32 2 ux)))))) (*.f32 (*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (*.f32 ux (-.f32 2 ux)) 3))) (*.f32 maxCos maxCos)) (+.f32 (pow.f32 ux 4) (*.f32 ux ux))))))))
0.6b
(*.f32 (cos.f32 (*.f32 uy (*.f32 2 (PI.f32)))) (-.f32 (+.f32 (*.f32 (sqrt.f32 (/.f32 1 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)))) (*.f32 maxCos (pow.f32 ux 2))) (+.f32 (*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 3))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 3))) (sqrt.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2))))) (+.f32 (*.f32 (sqrt.f32 (/.f32 1 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)))) (*.f32 maxCos ux)) (+.f32 (*.f32 1/2 (*.f32 (sqrt.f32 (/.f32 1 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 2)))) (+.f32 (*.f32 1/2 (*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 3))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 4)))) (*.f32 1/2 (*.f32 (sqrt.f32 (/.f32 1 (pow.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2)) 3))) (*.f32 (pow.f32 maxCos 2) (pow.f32 ux 2)))))))))
Compiler

Compiled 12662 to 9182 computations (27.5% saved)

regimes2.9s (29.7%)

Accuracy

Total 0.1b remaining (35.3%)

Threshold costs 0.1b (35.3%)

Counts
132 → 1
Compiler

Compiled 103699 to 76575 computations (26.2% saved)

simplify4.0ms (0%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
02147
13347
24147
36247
48147
59347
610047
710247
Stop Event
saturated

end392.0ms (4%)

Compiler

Compiled 704 to 506 computations (28.1% saved)

Profiling

Loading profile data...