Details

Time bar (total: 10.8s)

analyze2.1s (19.2%)

Algorithm
search
Search
TrueOtherFalseIter
0%99.9%0.1%0
0%99.9%0.1%1
0%99.9%0.1%2
0%99.9%0.1%3
0%99.9%0.1%4
0%99.9%0.1%5
25%74.9%0.1%6
25%74.9%0.1%7
25%74.9%0.1%8
25%74.9%0.1%9
25%64%11.1%10
31.2%54.6%14.2%11
39%44.1%16.9%12
39%41.5%19.5%13
42.9%37%20.1%14
Compiler

Compiled 23 to 16 computations (30.4% saved)

sample4.6s (42.5%)

Symmetry

(sort a1 a2)

Results
1.3s1888×body1024valid
1.1s1710×body1024invalid
828.0ms4927×body128valid
448.0ms944×body512valid
406.0ms822×body512invalid
167.0ms491×body256valid
131.0ms410×body256invalid
116.0ms662×body128invalid
6.0msbody2048valid
Compiler

Compiled 68 to 47 computations (30.9% saved)

simplify10.0ms (0.1%)

Algorithm
egg-herbie
Rules
32×fma-def_binary64
23×*-commutative_binary64
20×associate-/l*_binary64
11×associate-/r/_binary64
associate-*r/_binary64
Counts
1 → 2
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01320
12718
25318
37618
410318
511718
613218
713418
813618
913618

prune4.0ms (0%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
0.6b
Counts
3 → 2
Alt Table
StatusErrorProgram
0.7b
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
0.7b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
Compiler

Compiled 108 to 70 computations (35.2% saved)

localize11.0ms (0.1%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.2b
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
0.6b
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))

series78.0ms (0.7%)

Counts
2 → 60
Calls

2 calls:

58.0ms
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
20.0ms
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))

rewrite17.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
39×add-sqr-sqrt_binary64
38×times-frac_binary64
31×*-un-lft-identity_binary64
31×add-cube-cbrt_binary64
22×associate-*r*_binary64
Counts
2 → 85
Calls

2 calls:

7.0ms
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
3.0ms
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))

simplify110.0ms (1%)

Algorithm
egg-herbie
Rules
456×associate-*l*_binary64
410×associate-*r*_binary64
396×fma-neg_binary64
332×associate-/l*_binary64
299×sub-neg_binary64
Counts
145 → 151
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01703315
13653012
212892968
343592968
450762968

prune144.0ms (1.3%)

Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New1447151
Fresh011
Picked101
Done000
Total1458153
Error
0b
Counts
153 → 8
Alt Table
StatusErrorProgram
0.9b
(*.f64 (cos.f64 th) (*.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2)))))
0.5b
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a2 a1) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))))
1.2b
(*.f64 (*.f64 (cbrt.f64 (cos.f64 th)) (cbrt.f64 (cos.f64 th))) (*.f64 (cbrt.f64 (cos.f64 th)) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))))
0.8b
(*.f64 (cos.f64 th) (/.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
0.8b
(*.f64 (/.f64 (cos.f64 th) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (cbrt.f64 (sqrt.f64 2))))
0.7b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 2)))
0.7b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.7b
(*.f64 (*.f64 (cos.f64 th) (/.f64 (hypot.f64 a2 a1) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
Compiler

Compiled 3771 to 1790 computations (52.5% saved)

localize11.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(hypot.f64 a2 a1)
0.2b
(*.f64 (hypot.f64 a2 a1) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)))
0.2b
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a2 a1) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))))
0.4b
(/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))

series198.0ms (1.8%)

Counts
4 → 108
Calls

4 calls:

104.0ms
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a2 a1) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))))
61.0ms
(*.f64 (hypot.f64 a2 a1) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)))
19.0ms
(/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))
13.0ms
(hypot.f64 a2 a1)

rewrite29.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
42×add-sqr-sqrt_binary64
38×times-frac_binary64
34×*-un-lft-identity_binary64
34×add-cube-cbrt_binary64
23×associate-*r*_binary64
Counts
4 → 120
Calls

4 calls:

7.0ms
(*.f64 (hypot.f64 a2 a1) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)))
6.0ms
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a2 a1) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))))
3.0ms
(/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))
0.0ms
(hypot.f64 a2 a1)

simplify148.0ms (1.4%)

Algorithm
egg-herbie
Rules
760×times-frac_binary64
619×fma-neg_binary64
356×fma-def_binary64
223×cancel-sign-sub-inv_binary64
166×associate-*r*_binary64
Counts
228 → 218
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02724908
16824559
223284453
346304453
450374453

prune205.0ms (1.9%)

Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New2573260
Fresh437
Picked011
Done000
Total2617268
Error
0b
Counts
268 → 7
Alt Table
StatusErrorProgram
0.5b
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a2 a1) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))))
0.4b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)))
0.9b
(*.f64 (cos.f64 th) (*.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2)))))
0.8b
(*.f64 (cos.f64 th) (/.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
0.8b
(*.f64 (/.f64 (cos.f64 th) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (cbrt.f64 (sqrt.f64 2))))
0.7b
(/.f64 (*.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (cos.f64 th)) (sqrt.f64 2))
0.6b
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a2 a1) (sqrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) 2))))
Compiler

Compiled 6295 to 3365 computations (46.5% saved)

localize8.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(hypot.f64 a2 a1)
0.1b
(*.f64 (cos.f64 th) (hypot.f64 a2 a1))
0.2b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)))
0.4b
(/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))

series144.0ms (1.3%)

Counts
2 → 72
Calls

2 calls:

107.0ms
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)))
37.0ms
(*.f64 (cos.f64 th) (hypot.f64 a2 a1))

rewrite15.0ms (0.1%)

Algorithm
rewrite-expression-head
Rules
25×associate-*r*_binary64
19×add-sqr-sqrt_binary64
18×times-frac_binary64
17×*-un-lft-identity_binary64
17×add-cube-cbrt_binary64
Counts
2 → 64
Calls

2 calls:

7.0ms
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)))
3.0ms
(*.f64 (cos.f64 th) (hypot.f64 a2 a1))

simplify110.0ms (1%)

Algorithm
egg-herbie
Rules
670×times-frac_binary64
519×fma-neg_binary64
367×fma-def_binary64
298×associate-*l*_binary64
246×associate-/r/_binary64
Counts
136 → 155
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02263472
16242973
223372869
347992867
451362867

prune228.0ms (2.1%)

Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New3141315
Fresh145
Picked101
Done011
Total3166322
Error
0b
Counts
322 → 6
Alt Table
StatusErrorProgram
0.9b
(*.f64 (cos.f64 th) (*.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2)))))
0.6b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (sqrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) 2)))
0.5b
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a2 a1) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))))
0.8b
(*.f64 (cos.f64 th) (/.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
0.8b
(*.f64 (/.f64 (cos.f64 th) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (cbrt.f64 (sqrt.f64 2))))
0.7b
(/.f64 (*.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (cos.f64 th)) (sqrt.f64 2))
Compiler

Compiled 7728 to 3872 computations (49.9% saved)

localize11.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(*.f64 (cos.f64 th) (hypot.f64 a2 a1))
0.2b
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) 2)
0.2b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (sqrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) 2)))
5.4b
(sqrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) 2))

series119.0ms (1.1%)

Counts
3 → 84
Calls

3 calls:

89.0ms
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (sqrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) 2)))
19.0ms
(sqrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) 2))
10.0ms
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) 2)

rewrite19.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
29×add-sqr-sqrt_binary64
28×times-frac_binary64
26×*-un-lft-identity_binary64
26×sqrt-prod_binary64
26×add-cube-cbrt_binary64
Counts
3 → 90
Calls

3 calls:

9.0ms
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (sqrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) 2)))
2.0ms
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) 2)
2.0ms
(sqrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) 2))

simplify146.0ms (1.4%)

Algorithm
egg-herbie
Rules
767×times-frac_binary64
619×fma-neg_binary64
488×cancel-sign-sub-inv_binary64
293×associate-*r*_binary64
260×associate-*l*_binary64
Counts
174 → 211
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02935151
17524553
227413865
350003865
452833865

prune273.0ms (2.5%)

Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New2861287
Fresh134
Picked011
Done011
Total2876293
Error
0b
Counts
293 → 6
Alt Table
StatusErrorProgram
0.8b
(*.f64 (cos.f64 th) (/.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
0.7b
(*.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (*.f64 (sqrt.f64 1/2) (cos.f64 th)))
0.6b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (sqrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) 2)))
0.5b
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a2 a1) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))))
0.8b
(*.f64 (/.f64 (cos.f64 th) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (cbrt.f64 (sqrt.f64 2))))
0.7b
(/.f64 (*.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (cos.f64 th)) (sqrt.f64 2))
Compiler

Compiled 7864 to 3470 computations (55.9% saved)

regimes1.9s (18.1%)

Accuracy

Total 0.4b remaining (91.4%)

Threshold costs 0.4b (91.4%)

Counts
224 → 1
Compiler

Compiled 36297 to 24579 computations (32.3% saved)

simplify2.0ms (0%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01120
11420
21420

end143.0ms (1.3%)

Remove

(sort a1 a2)

Compiler

Compiled 173 to 116 computations (32.9% saved)

Profiling

Loading profile data...