Details

Time bar (total: 11.0s)

analyze1.1s (10.4%)

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.9s (44.6%)

Symmetry

(sort a1 a2)

Results
1.4s1841×body1024valid
1.2s1609×body1024invalid
943.0ms5056×body128valid
482.0ms907×body512valid
422.0ms840×body512invalid
175.0ms449×body256valid
146.0ms426×body256invalid
133.0ms666×body128invalid
3.0msbody2048valid
1.0msbody2048invalid
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

prune5.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 (*.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 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
Compiler

Compiled 108 to 70 computations (35.2% saved)

localize9.0ms (0.1%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(fma.f64 a1 a1 (*.f64 a2 a2))
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))

series99.0ms (0.9%)

Counts
3 → 84
Calls

3 calls:

62.0ms
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
30.0ms
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))
8.0ms
(fma.f64 a1 a1 (*.f64 a2 a2))

rewrite22.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
40×add-sqr-sqrt_binary64
38×times-frac_binary64
32×*-un-lft-identity_binary64
32×add-cube-cbrt_binary64
22×associate-*r*_binary64
Counts
3 → 95
Calls

3 calls:

8.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))
0.0ms
(fma.f64 a1 a1 (*.f64 a2 a2))

simplify127.0ms (1.2%)

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
179 → 174
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01743607
13683275
212963231
343703231
451093231

prune181.0ms (1.7%)

Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New1659174
Fresh101
Picked101
Done000
Total1679176
Error
0b
Counts
176 → 9
Alt Table
StatusErrorProgram
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.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.9b
(*.f64 (*.f64 (cos.f64 th) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2)))) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 (sqrt.f64 2))))
0.7b
(*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1))))
0.9b
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))))
0.4b
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a2 a1) (/.f64 (hypot.f64 a2 a1) (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 (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))))
0.8b
(*.f64 (*.f64 (cos.f64 th) (fma.f64 a1 a1 (*.f64 a2 a2))) (/.f64 1 (sqrt.f64 2)))
Compiler

Compiled 4147 to 1945 computations (53.1% saved)

localize8.0ms (0.1%)

Local error

Found 3 expressions with local error:

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

series216.0ms (2%)

Counts
3 → 84
Calls

3 calls:

120.0ms
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a2 a1) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))))
72.0ms
(*.f64 (hypot.f64 a2 a1) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)))
24.0ms
(/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))

rewrite26.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
41×add-sqr-sqrt_binary64
38×times-frac_binary64
33×*-un-lft-identity_binary64
33×add-cube-cbrt_binary64
23×associate-*r*_binary64
Counts
3 → 110
Calls

3 calls:

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

simplify109.0ms (1%)

Algorithm
egg-herbie
Rules
731×associate-/l*_binary64
669×times-frac_binary64
233×fma-def_binary64
218×associate-/l/_binary64
166×associate-*r*_binary64
Counts
194 → 177
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02414340
15864018
220163928
350923928

prune189.0ms (1.7%)

Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New1752177
Fresh268
Picked101
Done000
Total1788186
Error
0b
Counts
186 → 8
Alt Table
StatusErrorProgram
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.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.9b
(*.f64 (*.f64 (cos.f64 th) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2)))) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 (sqrt.f64 2))))
0.7b
(*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1))))
0.9b
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))))
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))))
0.7b
(/.f64 (*.f64 (cos.f64 th) (+.f64 (pow.f64 a1 2) (pow.f64 a2 2))) (sqrt.f64 2))
0.4b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)))
Compiler

Compiled 4486 to 2444 computations (45.5% saved)

localize8.0ms (0.1%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.1b
(*.f64 (cos.f64 th) (hypot.f64 a2 a1))
0.3b
(*.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))

series158.0ms (1.4%)

Counts
2 → 72
Calls

2 calls:

120.0ms
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)))
38.0ms
(*.f64 (cos.f64 th) (hypot.f64 a2 a1))

rewrite18.0ms (0.2%)

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:

8.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))

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

prune181.0ms (1.6%)

Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New2283231
Fresh437
Picked011
Done000
Total2327239
Error
0b
Counts
239 → 7
Alt Table
StatusErrorProgram
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.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.5b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
0.7b
(*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1))))
0.7b
(/.f64 (*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (hypot.f64 a2 a1)) (sqrt.f64 2))
0.6b
(*.f64 (/.f64 (*.f64 (cos.f64 th) (hypot.f64 a1 a2)) (sqrt.f64 (sqrt.f64 2))) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2))))
0.4b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)))
Compiler

Compiled 5856 to 2920 computations (50.1% saved)

localize10.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 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2)))
0.3b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
0.3b
(/.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2)))

series170.0ms (1.5%)

Counts
3 → 84
Calls

3 calls:

117.0ms
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
29.0ms
(/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2)))
23.0ms
(/.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2)))

rewrite215.0ms (2%)

Algorithm
rewrite-expression-head
Rules
1116×sqrt-prod_binary64
1098×times-frac_binary64
576×*-un-lft-identity_binary64
576×add-sqr-sqrt_binary64
576×add-cube-cbrt_binary64
Counts
3 → 700
Calls

3 calls:

46.0ms
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
14.0ms
(/.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2)))
6.0ms
(/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2)))

simplify489.0ms (4.5%)

Algorithm
egg-herbie
Rules
494×associate-*l*_binary64
428×associate-/l/_binary64
415×associate-/l*_binary64
398×associate-*r*_binary64
393×associate-*r/_binary64
Counts
784 → 749
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
056626295
1156424420
2505924420

prune731.0ms (6.7%)

Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New8241825
Fresh145
Picked011
Done011
Total8257832
Error
0b
Counts
832 → 7
Alt Table
StatusErrorProgram
0.5b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
0.7b
(*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1))))
0.7b
(/.f64 (*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (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.5b
(/.f64 (*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2)))) (sqrt.f64 (sqrt.f64 2)))
0.6b
(*.f64 (/.f64 (*.f64 (cos.f64 th) (hypot.f64 a1 a2)) (sqrt.f64 (sqrt.f64 2))) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2))))
0.4b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)))
Compiler

Compiled 27394 to 16644 computations (39.2% saved)

regimes1.7s (15.6%)

Accuracy

Total 0.4b remaining (96.7%)

Threshold costs 0.4b (96.7%)

Counts
180 → 1
Compiler

Compiled 32497 to 21265 computations (34.6% saved)

simplify2.0ms (0%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01120
11320
21320

end119.0ms (1.1%)

Remove

(sort a1 a2)

Compiler

Compiled 199 to 134 computations (32.7% saved)

Profiling

Loading profile data...