Details

Time bar (total: 8.7s)

analyze1.0s (11.6%)

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)

sample129.0ms (1.5%)

Algorithm
intervals
Symmetry

(sort a1 a2)

Results
27.0ms54×body1024valid
19.0ms38×body1024invalid
17.0ms156×body128valid
11.0ms34×body512valid
9.0ms34×body512invalid
2.0ms12×body256valid
1.0ms15×body128invalid
1.0msbody256invalid
Compiler

Compiled 48 to 34 computations (29.2% saved)

simplify9.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.1%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
0.4b
Counts
3 → 2
Alt Table
StatusErrorProgram
0.5b
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
0.5b
(+.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)

localize8.0ms (0.1%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(cos.f64 th)
0.1b
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
0.5b
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))

series84.0ms (1%)

Counts
3 → 64
Calls

3 calls:

61.0ms
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
21.0ms
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))
2.0ms
(cos.f64 th)

rewrite19.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 → 94
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))
1.0ms
(cos.f64 th)

simplify109.0ms (1.3%)

Algorithm
egg-herbie
Rules
486×associate-*l*_binary64
420×associate-*r*_binary64
337×unswap-sqr_binary64
336×associate-/l*_binary64
276×associate-*r/_binary64
Counts
158 → 168
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01823431
13983117
213733069
344143069
452053069

prune149.0ms (1.7%)

Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1635168
Fresh101
Picked011
Done000
Total1646170
Error
0b
Counts
170 → 6
Alt Table
StatusErrorProgram
0.5b
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
0.5b
(*.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.5b
(*.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))))
0.5b
(/.f64 (*.f64 (cos.f64 th) (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 2))
0.4b
(*.f64 (cos.f64 th) (*.f64 (/.f64 (hypot.f64 a2 a1) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (hypot.f64 a2 a1) (cbrt.f64 (sqrt.f64 2)))))
Compiler

Compiled 3938 to 1841 computations (53.3% saved)

localize12.0ms (0.1%)

Local error

Found 4 expressions with local error:

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

series287.0ms (3.3%)

Counts
4 → 108
Calls

4 calls:

111.0ms
(*.f64 (cos.f64 th) (*.f64 (/.f64 (hypot.f64 a2 a1) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (hypot.f64 a2 a1) (cbrt.f64 (sqrt.f64 2)))))
67.0ms
(/.f64 (hypot.f64 a2 a1) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))
66.0ms
(*.f64 (/.f64 (hypot.f64 a2 a1) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (hypot.f64 a2 a1) (cbrt.f64 (sqrt.f64 2))))
42.0ms
(/.f64 (hypot.f64 a2 a1) (cbrt.f64 (sqrt.f64 2)))

rewrite57.0ms (0.7%)

Algorithm
rewrite-expression-head
Rules
72×add-sqr-sqrt_binary64
70×times-frac_binary64
61×add-exp-log_binary64
50×*-un-lft-identity_binary64
50×add-cube-cbrt_binary64
Counts
4 → 181
Calls

4 calls:

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

simplify180.0ms (2.1%)

Algorithm
egg-herbie
Rules
517×cancel-sign-sub-inv_binary64
363×fma-neg_binary64
266×associate-*r*_binary64
250×associate-*l*_binary64
250×associate-*r/_binary64
Counts
289 → 309
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
03479877
19387509
236177422
350797422

prune297.0ms (3.4%)

Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New3090309
Fresh044
Picked011
Done011
Total3096315
Error
0b
Counts
315 → 6
Alt Table
StatusErrorProgram
0.5b
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
0.5b
(*.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.5b
(*.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))))
0.5b
(/.f64 (*.f64 (cos.f64 th) (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 2))
0.4b
(*.f64 (cos.f64 th) (*.f64 (/.f64 (hypot.f64 a2 a1) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (hypot.f64 a2 a1) (cbrt.f64 (sqrt.f64 2)))))
Compiler

Compiled 10413 to 6827 computations (34.4% saved)

localize12.0ms (0.1%)

Local error

Found 4 expressions with local error:

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

series193.0ms (2.2%)

Counts
3 → 84
Calls

3 calls:

104.0ms
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a2 a1) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))))
69.0ms
(*.f64 (hypot.f64 a2 a1) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)))
21.0ms
(/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))

rewrite24.0ms (0.3%)

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:

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

simplify98.0ms (1.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

prune152.0ms (1.8%)

Pruning

6 alts after pruning (3 fresh and 3 done)

PrunedKeptTotal
New1931194
Fresh123
Picked011
Done022
Total1946200
Error
0b
Counts
200 → 6
Alt Table
StatusErrorProgram
0.5b
(/.f64 (*.f64 (cos.f64 th) (*.f64 (hypot.f64 a2 a1) (hypot.f64 a2 a1))) (sqrt.f64 2))
0.4b
(*.f64 (cos.f64 th) (*.f64 (/.f64 (hypot.f64 a2 a1) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (hypot.f64 a2 a1) (cbrt.f64 (sqrt.f64 2)))))
0.5b
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
0.5b
(*.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.5b
(*.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))))
Compiler

Compiled 4645 to 2481 computations (46.6% saved)

localize8.0ms (0.1%)

Local error

Found 4 expressions with local error:

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

series236.0ms (2.7%)

Counts
3 → 96
Calls

3 calls:

106.0ms
(/.f64 (*.f64 (cos.f64 th) (*.f64 (hypot.f64 a2 a1) (hypot.f64 a2 a1))) (sqrt.f64 2))
80.0ms
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a2 a1) (hypot.f64 a2 a1)))
50.0ms
(*.f64 (hypot.f64 a2 a1) (hypot.f64 a2 a1))

rewrite19.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
19×add-cbrt-cube_binary64
19×add-exp-log_binary64
15×add-sqr-sqrt_binary64
15×pow1_binary64
12×*-un-lft-identity_binary64
Counts
3 → 81
Calls

3 calls:

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

simplify100.0ms (1.2%)

Algorithm
egg-herbie
Rules
614×times-frac_binary64
429×associate-/r*_binary64
399×fma-def_binary64
301×cancel-sign-sub-inv_binary64
240×associate-/r/_binary64
Counts
177 → 151
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01843276
14402877
216482721
347802711
449872711

prune143.0ms (1.6%)

Pruning

6 alts after pruning (2 fresh and 4 done)

PrunedKeptTotal
New1680168
Fresh022
Picked011
Done033
Total1686174
Error
0b
Counts
174 → 6
Alt Table
StatusErrorProgram
0.5b
(/.f64 (*.f64 (cos.f64 th) (*.f64 (hypot.f64 a2 a1) (hypot.f64 a2 a1))) (sqrt.f64 2))
0.4b
(*.f64 (cos.f64 th) (*.f64 (/.f64 (hypot.f64 a2 a1) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (hypot.f64 a2 a1) (cbrt.f64 (sqrt.f64 2)))))
0.5b
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
0.5b
(*.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.5b
(*.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))))
Compiler

Compiled 3535 to 1658 computations (53.1% saved)

regimes2.0s (23.6%)

Accuracy

Total 0.3b remaining (89%)

Threshold costs 0.3b (89%)

Counts
189 → 1
Compiler

Compiled 31178 to 21092 computations (32.3% saved)

simplify2.0ms (0%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01324
11524
21524

end16.0ms (0.2%)

Remove

(sort a1 a2)

Compiler

Compiled 57 to 36 computations (36.8% saved)

sample3.3s (37.7%)

Algorithm
intervals
Results
845.0ms1815×body1024valid
723.0ms1506×body1024invalid
478.0ms4849×body128valid
260.0ms899×body512valid
223.0ms767×body512invalid
84.0ms431×body256valid
71.0ms376×body256invalid
63.0ms634×body128invalid
5.0msbody2048valid
Compiler

Compiled 164 to 115 computations (29.9% saved)

Profiling

Loading profile data...