Details

Time bar (total: 9.1s)

analyze536.0ms (5.9%)

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.3s (25%)

Results
2.2s8256×body128valid
Compiler

Compiled 130 to 94 computations (27.7% saved)

simplify49.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

prune5.0ms (0.1%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
13.2b
Counts
3 → 2
Alt Table
StatusErrorProgram
13.4b
(*.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))))))
13.4b
(*.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)

localize51.0ms (0.6%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(cos.f32 (*.f32 (*.f32 uy 2) (PI.f32)))
0.3b
(*.f32 (*.f32 uy 2) (PI.f32))
0.4b
(*.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)) (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)))
12.9b
(-.f32 1 (*.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)) (+.f32 (-.f32 1 ux) (*.f32 ux maxCos))))

series34.0ms (0.4%)

Counts
4 → 72
Calls

4 calls:

19.0ms
(-.f32 1 (*.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)) (+.f32 (-.f32 1 ux) (*.f32 ux maxCos))))
8.0ms
(*.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)) (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)))
4.0ms
(*.f32 (*.f32 uy 2) (PI.f32))
2.0ms
(cos.f32 (*.f32 (*.f32 uy 2) (PI.f32)))

rewrite28.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
16×pow1_binary32
14×add-sqr-sqrt_binary32
12×*-un-lft-identity_binary32
11×add-cbrt-cube_binary32
11×add-exp-log_binary32
Counts
4 → 90
Calls

4 calls:

10.0ms
(*.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)) (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)))
8.0ms
(*.f32 (*.f32 uy 2) (PI.f32))
4.0ms
(-.f32 1 (*.f32 (+.f32 (-.f32 1 ux) (*.f32 ux maxCos)) (+.f32 (-.f32 1 ux) (*.f32 ux maxCos))))
1.0ms
(cos.f32 (*.f32 (*.f32 uy 2) (PI.f32)))

simplify121.0ms (1.3%)

Algorithm
egg-herbie
Rules
422×cancel-sign-sub-inv_binary32
357×associate-+l+_binary32
251×associate-*l*_binary32
230×associate-*r*_binary32
230×exp-prod_binary32
Counts
162 → 180
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02084124
15943285
223062943
348262931
449932931

prune239.0ms (2.6%)

Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New1737180
Fresh101
Picked101
Done000
Total1757182
Error
0.2b
Counts
182 → 7
Alt Table
StatusErrorProgram
13.4b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (/.f32 (-.f32 1 (pow.f32 (fma.f32 maxCos ux (-.f32 1 ux)) 4)) (+.f32 1 (pow.f32 (sqrt.f32 (fma.f32 maxCos ux (-.f32 1 ux))) 4)))))
2.2b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2))))
13.4b
(*.f32 (cos.f32 (expm1.f32 (log1p.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.3b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.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)))))))
0.3b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (*.f32 (+.f32 2 (*.f32 ux (+.f32 maxCos -1))) (-.f32 ux (*.f32 maxCos ux)))))
0.3b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (+.f32 (*.f32 ux (-.f32 2 (+.f32 ux (*.f32 2 maxCos)))) (*.f32 (*.f32 maxCos (*.f32 ux ux)) (-.f32 2 maxCos)))))
7.7b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (*.f32 (-.f32 2 (*.f32 2 maxCos)) ux)))
Compiler

Compiled 6201 to 3954 computations (36.2% saved)

localize88.0ms (1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(cos.f32 (*.f32 (*.f32 uy 2) (PI.f32)))
0.2b
(*.f32 (pow.f32 maxCos 2) (pow.f32 ux 2))
0.2b
(*.f32 maxCos (pow.f32 ux 2))
0.3b
(*.f32 (*.f32 uy 2) (PI.f32))

series19.0ms (0.2%)

Counts
2 → 0
Calls

2 calls:

10.0ms
(*.f32 (pow.f32 maxCos 2) (pow.f32 ux 2))
9.0ms
(*.f32 maxCos (pow.f32 ux 2))

rewrite15.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
31×add-sqr-sqrt_binary32
20×unswap-sqr_binary32
19×add-exp-log_binary32
18×unpow-prod-down_binary32
16×associate-*r*_binary32
Counts
2 → 82
Calls

2 calls:

6.0ms
(*.f32 maxCos (pow.f32 ux 2))
5.0ms
(*.f32 (pow.f32 maxCos 2) (pow.f32 ux 2))

simplify107.0ms (1.2%)

Algorithm
egg-herbie
Rules
694×fma-def_binary32
431×sqr-pow_binary32
315×*-commutative_binary32
281×distribute-lft-out_binary32
276×log-prod_binary32
Counts
82 → 113
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01021016
1186765
2541735
31035681
41673681
53450681
64694681
74974681
84941681

prune342.0ms (3.8%)

Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New1625167
Fresh246
Picked101
Done000
Total1659174
Error
0.1b
Counts
174 → 9
Alt Table
StatusErrorProgram
13.4b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (/.f32 (-.f32 1 (pow.f32 (fma.f32 maxCos ux (-.f32 1 ux)) 4)) (+.f32 1 (pow.f32 (sqrt.f32 (fma.f32 maxCos ux (-.f32 1 ux))) 4)))))
2.2b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2))))
0.3b
(*.f32 (cos.f32 (expm1.f32 (log1p.f32 (*.f32 2 (*.f32 uy (PI.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)))))))
0.3b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (+.f32 (*.f32 ux (-.f32 2 (+.f32 ux (*.f32 2 maxCos)))) (*.f32 (*.f32 maxCos (*.f32 ux ux)) (-.f32 2 maxCos)))))
0.9b
(*.f32 (log.f32 (exp.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.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)))))))
0.5b
(*.f32 (*.f32 (*.f32 (cbrt.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32))))) (cbrt.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))))) (cbrt.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.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)))))))
0.4b
(*.f32 (cos.f32 (*.f32 (*.f32 (*.f32 2 uy) (*.f32 (cbrt.f32 (PI.f32)) (cbrt.f32 (PI.f32)))) (cbrt.f32 (PI.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)))))))
7.7b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (*.f32 (-.f32 2 (*.f32 2 maxCos)) ux)))
0.4b
(*.f32 (expm1.f32 (log1p.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.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)))))))
Compiler

Compiled 7803 to 5391 computations (30.9% saved)

localize68.0ms (0.8%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(cos.f32 (*.f32 (*.f32 uy 2) (PI.f32)))
0.2b
(*.f32 ux (-.f32 2 (+.f32 ux (*.f32 2 maxCos))))
0.2b
(*.f32 maxCos (*.f32 ux ux))
0.3b
(*.f32 (*.f32 uy 2) (PI.f32))

series16.0ms (0.2%)

Counts
2 → 48
Calls

2 calls:

9.0ms
(*.f32 maxCos (*.f32 ux ux))
7.0ms
(*.f32 ux (-.f32 2 (+.f32 ux (*.f32 2 maxCos))))

rewrite17.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
24×add-sqr-sqrt_binary32
21×*-un-lft-identity_binary32
19×add-cube-cbrt_binary32
18×prod-diff_binary32
13×distribute-lft-in_binary32
Counts
2 → 71
Calls

2 calls:

8.0ms
(*.f32 ux (-.f32 2 (+.f32 ux (*.f32 2 maxCos))))
4.0ms
(*.f32 maxCos (*.f32 ux ux))

simplify91.0ms (1%)

Algorithm
egg-herbie
Rules
348×fma-def_binary32
292×fma-neg_binary32
272×*-commutative_binary32
261×exp-prod_binary32
241×distribute-rgt-in_binary32
Counts
119 → 100
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01572073
12861426
29071298
323951244
446481244
548261244

prune298.0ms (3.3%)

Pruning

11 alts after pruning (11 fresh and 0 done)

PrunedKeptTotal
New1513154
Fresh088
Picked101
Done000
Total15211163
Error
0.1b
Counts
163 → 11
Alt Table
StatusErrorProgram
0.4b
(*.f32 (cos.f32 (*.f32 (*.f32 (*.f32 2 uy) (*.f32 (cbrt.f32 (PI.f32)) (cbrt.f32 (PI.f32)))) (cbrt.f32 (PI.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)))))))
1.3b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (+.f32 (exp.f32 (+.f32 (log.f32 ux) (log.f32 (-.f32 2 (+.f32 ux (*.f32 2 maxCos)))))) (*.f32 (*.f32 maxCos (*.f32 ux ux)) (-.f32 2 maxCos)))))
0.6b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (+.f32 (+.f32 (*.f32 (fma.f32 (*.f32 (cbrt.f32 2) (cbrt.f32 2)) (cbrt.f32 2) (neg.f32 (*.f32 (sqrt.f32 (+.f32 ux (*.f32 2 maxCos))) (sqrt.f32 (+.f32 ux (*.f32 2 maxCos)))))) ux) (*.f32 (fma.f32 (neg.f32 (sqrt.f32 (+.f32 ux (*.f32 2 maxCos)))) (sqrt.f32 (+.f32 ux (*.f32 2 maxCos))) (*.f32 (sqrt.f32 (+.f32 ux (*.f32 2 maxCos))) (sqrt.f32 (+.f32 ux (*.f32 2 maxCos))))) ux)) (*.f32 (*.f32 maxCos (*.f32 ux ux)) (-.f32 2 maxCos)))))
13.4b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (/.f32 (-.f32 1 (pow.f32 (fma.f32 maxCos ux (-.f32 1 ux)) 4)) (+.f32 1 (pow.f32 (sqrt.f32 (fma.f32 maxCos ux (-.f32 1 ux))) 4)))))
2.2b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2))))
0.9b
(*.f32 (log.f32 (exp.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.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)))))))
0.5b
(*.f32 (*.f32 (*.f32 (cbrt.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32))))) (cbrt.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))))) (cbrt.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.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)))))))
0.3b
(*.f32 (cos.f32 (expm1.f32 (log1p.f32 (*.f32 2 (*.f32 uy (PI.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)))))))
7.7b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (*.f32 (-.f32 2 (*.f32 2 maxCos)) ux)))
0.5b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (+.f32 (*.f32 (*.f32 ux (sqrt.f32 (-.f32 2 (fma.f32 maxCos 2 ux)))) (sqrt.f32 (-.f32 2 (+.f32 ux (*.f32 2 maxCos))))) (*.f32 (*.f32 maxCos (*.f32 ux ux)) (-.f32 2 maxCos)))))
0.4b
(*.f32 (expm1.f32 (log1p.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.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)))))))
Compiler

Compiled 6654 to 4295 computations (35.5% saved)

localize105.0ms (1.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.2b
(*.f32 maxCos (pow.f32 ux 2))
0.2b
(log1p.f32 (*.f32 2 (*.f32 uy (PI.f32))))
0.2b
(expm1.f32 (log1p.f32 (*.f32 2 (*.f32 uy (PI.f32)))))
0.3b
(*.f32 uy (PI.f32))

series34.0ms (0.4%)

Counts
3 → 36
Calls

3 calls:

29.0ms
(log1p.f32 (*.f32 2 (*.f32 uy (PI.f32))))
3.0ms
(expm1.f32 (log1p.f32 (*.f32 2 (*.f32 uy (PI.f32)))))
2.0ms
(*.f32 uy (PI.f32))

rewrite5.0ms (0.1%)

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt_binary32
*-un-lft-identity_binary32
add-cube-cbrt_binary32
add-cbrt-cube_binary32
add-exp-log_binary32
Counts
3 → 42
Calls

3 calls:

3.0ms
(*.f32 uy (PI.f32))
0.0ms
(log1p.f32 (*.f32 2 (*.f32 uy (PI.f32))))
0.0ms
(expm1.f32 (log1p.f32 (*.f32 2 (*.f32 uy (PI.f32)))))

simplify110.0ms (1.2%)

Algorithm
egg-herbie
Rules
869×fma-neg_binary32
447×associate-*l*_binary32
401×associate-*r*_binary32
340×unswap-sqr_binary32
234×times-frac_binary32
Counts
78 → 91
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01121005
1260904
2861900
33309895
44944895

prune396.0ms (4.4%)

Pruning

11 alts after pruning (10 fresh and 1 done)

PrunedKeptTotal
New1350135
Fresh01010
Picked011
Done000
Total13511146
Error
0.1b
Counts
146 → 11
Alt Table
StatusErrorProgram
0.4b
(*.f32 (cos.f32 (*.f32 (*.f32 (*.f32 2 uy) (*.f32 (cbrt.f32 (PI.f32)) (cbrt.f32 (PI.f32)))) (cbrt.f32 (PI.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)))))))
1.3b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (+.f32 (exp.f32 (+.f32 (log.f32 ux) (log.f32 (-.f32 2 (+.f32 ux (*.f32 2 maxCos)))))) (*.f32 (*.f32 maxCos (*.f32 ux ux)) (-.f32 2 maxCos)))))
0.6b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (+.f32 (+.f32 (*.f32 (fma.f32 (*.f32 (cbrt.f32 2) (cbrt.f32 2)) (cbrt.f32 2) (neg.f32 (*.f32 (sqrt.f32 (+.f32 ux (*.f32 2 maxCos))) (sqrt.f32 (+.f32 ux (*.f32 2 maxCos)))))) ux) (*.f32 (fma.f32 (neg.f32 (sqrt.f32 (+.f32 ux (*.f32 2 maxCos)))) (sqrt.f32 (+.f32 ux (*.f32 2 maxCos))) (*.f32 (sqrt.f32 (+.f32 ux (*.f32 2 maxCos))) (sqrt.f32 (+.f32 ux (*.f32 2 maxCos))))) ux)) (*.f32 (*.f32 maxCos (*.f32 ux ux)) (-.f32 2 maxCos)))))
13.4b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (/.f32 (-.f32 1 (pow.f32 (fma.f32 maxCos ux (-.f32 1 ux)) 4)) (+.f32 1 (pow.f32 (sqrt.f32 (fma.f32 maxCos ux (-.f32 1 ux))) 4)))))
2.2b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (-.f32 (*.f32 2 ux) (pow.f32 ux 2))))
0.9b
(*.f32 (log.f32 (exp.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.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)))))))
0.5b
(*.f32 (*.f32 (*.f32 (cbrt.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32))))) (cbrt.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.f32)))))) (cbrt.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.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)))))))
0.3b
(*.f32 (cos.f32 (expm1.f32 (log1p.f32 (*.f32 2 (*.f32 uy (PI.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)))))))
7.7b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (*.f32 (-.f32 2 (*.f32 2 maxCos)) ux)))
0.5b
(*.f32 (cos.f32 (*.f32 (*.f32 uy 2) (PI.f32))) (sqrt.f32 (+.f32 (*.f32 (*.f32 ux (sqrt.f32 (-.f32 2 (fma.f32 maxCos 2 ux)))) (sqrt.f32 (-.f32 2 (+.f32 ux (*.f32 2 maxCos))))) (*.f32 (*.f32 maxCos (*.f32 ux ux)) (-.f32 2 maxCos)))))
0.4b
(*.f32 (expm1.f32 (log1p.f32 (cos.f32 (*.f32 2 (*.f32 uy (PI.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)))))))
Compiler

Compiled 6580 to 4549 computations (30.9% saved)

regimes3.7s (41.2%)

Accuracy

Total 0.2b remaining (73.3%)

Threshold costs 0.2b (73.3%)

Counts
210 → 1
Compiler

Compiled 88852 to 66410 computations (25.3% saved)

simplify4.0ms (0%)

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

Useful iterations: 2 (0.0ms)

IterNodesCost
02547
14247
25445
37345
48145
58445
68145

end285.0ms (3.1%)

Compiler

Compiled 510 to 387 computations (24.1% saved)

Profiling

Loading profile data...