Details

Time bar (total: 27.3s)

analyze2.6s (9.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
0%99.9%0.1%6
0%99.9%0.1%7
0%99.9%0.1%8
0%99.9%0.1%9
0%99.9%0.1%10
0%99.9%0.1%11
1.6%98.3%0.1%12
1.6%98.3%0.1%13
2.3%97.5%0.1%14
Compiler

Compiled 23 to 16 computations (30.4% saved)

sample17.1s (62.8%)

Symmetry

(sort a1 a2)

Results
12.9s4710×body8192exit
1.4s1770×body1024valid
1.0s5035×body128valid
618.0ms792×body1024invalid
502.0ms963×body512valid
294.0ms401×body512invalid
182.0ms482×body256valid
82.0ms185×body256invalid
42.0ms181×body128invalid
7.0msbody2048valid
Compiler

Compiled 45 to 31 computations (31.1% saved)

simplify19.0ms (0.1%)

Algorithm
egg-herbie
Rules
32×fma-def_binary64
29×*-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
25818
38818
411518
513518
615418
717418
817618

prune4.0ms (0%)

Pruning

3 alts after pruning (3 fresh and 0 done)

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

Compiled 108 to 70 computations (35.2% saved)

localize9.0ms (0%)

Local error

Found 3 expressions with local error:

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

series215.0ms (0.8%)

Counts
3 → 64
Calls

3 calls:

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

rewrite24.0ms (0.1%)

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-*l*_binary64
Counts
3 → 97
Calls

3 calls:

9.0ms
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (fma.f64 a1 a1 (*.f64 a2 a2)))
5.0ms
(/.f64 (cos.f64 th) (sqrt.f64 2))
0.0ms
(fma.f64 a1 a1 (*.f64 a2 a2))

simplify750.0ms (2.8%)

Algorithm
egg-herbie
Rules
496×associate-*l/_binary64
407×associate-/l*_binary64
394×distribute-lft-in_binary64
394×distribute-rgt-in_binary64
223×fma-def_binary64
Counts
161 → 153
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01953037
14962817
218352706

prune144.0ms (0.5%)

Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New1467153
Fresh101
Picked101
Done000
Total1487155
Error
0.0b
Counts
155 → 7
Alt Table
StatusErrorProgram
1.2b
(*.f64 (*.f64 (cbrt.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (fma.f64 a1 a1 (*.f64 a2 a2)))) (cbrt.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (fma.f64 a1 a1 (*.f64 a2 a2))))) (cbrt.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (fma.f64 a1 a1 (*.f64 a2 a2)))))
0.4b
(*.f64 (/.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))) (fma.f64 a1 a1 (*.f64 a2 a2)))
0.4b
(*.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)) (cos.f64 th))
0.5b
(*.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (/.f64 (cos.f64 th) (sqrt.f64 2)))
0.9b
(*.f64 (*.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2)))) (fma.f64 a1 a1 (*.f64 a2 a2)))
0.4b
(*.f64 (/.f64 (cos.f64 th) (/.f64 (sqrt.f64 2) (hypot.f64 a1 a2))) (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))))
0.4b
(*.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2)))) (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))))
Compiler

Compiled 3504 to 1737 computations (50.4% saved)

localize9.0ms (0%)

Local error

Found 3 expressions with local error:

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

series94.0ms (0.3%)

Counts
2 → 60
Calls

2 calls:

72.0ms
(*.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)) (cos.f64 th))
22.0ms
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))

rewrite16.0ms (0.1%)

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-*l*_binary64
Counts
2 → 85
Calls

2 calls:

6.0ms
(*.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)) (cos.f64 th))
4.0ms
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))

simplify1.2s (4.4%)

Algorithm
egg-herbie
Rules
589×associate-*r*_binary64
584×associate-*l*_binary64
372×associate-*l/_binary64
360×associate-/l*_binary64
321×associate-*r/_binary64
Counts
145 → 154
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01743670
14253364
214622960

prune305.0ms (1.1%)

Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New1693172
Fresh336
Picked101
Done000
Total1736179
Error
0b
Counts
179 → 6
Alt Table
StatusErrorProgram
0.5b
(*.f64 (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 (sqrt.f64 2))) (/.f64 (hypot.f64 a2 a1) (/.f64 (sqrt.f64 (sqrt.f64 2)) (cos.f64 th))))
0.4b
(/.f64 (*.f64 (cos.f64 th) (fma.f64 a2 a2 (*.f64 a1 a1))) (sqrt.f64 2))
0.4b
(*.f64 (+.f64 (*.f64 (/.f64 a2 (sqrt.f64 2)) a2) (/.f64 a1 (/.f64 (sqrt.f64 2) a1))) (cos.f64 th))
0.4b
(*.f64 (/.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))) (fma.f64 a1 a1 (*.f64 a2 a2)))
0.4b
(*.f64 (/.f64 (cos.f64 th) (/.f64 (sqrt.f64 2) (hypot.f64 a1 a2))) (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))))
0.4b
(*.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2)))) (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))))
Compiler

Compiled 4015 to 1876 computations (53.3% saved)

localize12.0ms (0%)

Local error

Found 3 expressions with local error:

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

series128.0ms (0.5%)

Counts
3 → 96
Calls

3 calls:

73.0ms
(/.f64 (*.f64 (cos.f64 th) (fma.f64 a2 a2 (*.f64 a1 a1))) (sqrt.f64 2))
39.0ms
(*.f64 (cos.f64 th) (fma.f64 a2 a2 (*.f64 a1 a1)))
16.0ms
(fma.f64 a2 a2 (*.f64 a1 a1))

rewrite16.0ms (0.1%)

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt_binary64
10×add-cbrt-cube_binary64
10×add-exp-log_binary64
*-un-lft-identity_binary64
add-cube-cbrt_binary64
Counts
3 → 61
Calls

3 calls:

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

simplify925.0ms (3.4%)

Algorithm
egg-herbie
Rules
436×fma-def_binary64
373×associate-/l/_binary64
368×times-frac_binary64
345×cancel-sign-sub-inv_binary64
266×distribute-lft-in_binary64
Counts
157 → 133
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01682838
14512592
219242523

prune133.0ms (0.5%)

Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1321133
Fresh145
Picked011
Done000
Total1336139
Error
0b
Counts
139 → 6
Alt Table
StatusErrorProgram
0.4b
(*.f64 (+.f64 (*.f64 (/.f64 a2 (sqrt.f64 2)) a2) (/.f64 a1 (/.f64 (sqrt.f64 2) a1))) (cos.f64 th))
0.5b
(/.f64 (/.f64 (*.f64 (cos.f64 th) (fma.f64 a2 a2 (*.f64 a1 a1))) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2)))
0.4b
(/.f64 (*.f64 (cos.f64 th) (fma.f64 a2 a2 (*.f64 a1 a1))) (sqrt.f64 2))
0.4b
(*.f64 (/.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))) (fma.f64 a1 a1 (*.f64 a2 a2)))
0.4b
(*.f64 (/.f64 (cos.f64 th) (/.f64 (sqrt.f64 2) (hypot.f64 a1 a2))) (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))))
0.4b
(*.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2)))) (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))))
Compiler

Compiled 2879 to 1356 computations (52.9% saved)

localize13.0ms (0%)

Local error

Found 4 expressions with local error:

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

series36.0ms (0.1%)

Counts
4 → 24
Calls

4 calls:

11.0ms
(*.f64 (/.f64 a2 (sqrt.f64 2)) a2)
11.0ms
(/.f64 a1 (/.f64 (sqrt.f64 2) a1))
9.0ms
(/.f64 a2 (sqrt.f64 2))
5.0ms
(/.f64 (sqrt.f64 2) a1)

rewrite47.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
194×times-frac_binary64
131×add-sqr-sqrt_binary64
123×*-un-lft-identity_binary64
123×add-cube-cbrt_binary64
70×sqrt-prod_binary64
Counts
4 → 234
Calls

4 calls:

9.0ms
(*.f64 (/.f64 a2 (sqrt.f64 2)) a2)
8.0ms
(/.f64 a1 (/.f64 (sqrt.f64 2) a1))
4.0ms
(/.f64 a2 (sqrt.f64 2))
4.0ms
(/.f64 (sqrt.f64 2) a1)

simplify979.0ms (3.6%)

Algorithm
egg-herbie
Rules
587×associate-/r*_binary64
524×*-commutative_binary64
233×associate-/r/_binary64
223×associate-/l/_binary64
207×associate-*r/_binary64
Counts
258 → 308
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02894181
16103952
221953820
337133764
449283764

prune288.0ms (1.1%)

Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New3080308
Fresh044
Picked011
Done011
Total3086314
Error
0b
Counts
314 → 6
Alt Table
StatusErrorProgram
0.4b
(*.f64 (+.f64 (*.f64 (/.f64 a2 (sqrt.f64 2)) a2) (/.f64 a1 (/.f64 (sqrt.f64 2) a1))) (cos.f64 th))
0.5b
(/.f64 (/.f64 (*.f64 (cos.f64 th) (fma.f64 a2 a2 (*.f64 a1 a1))) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2)))
0.4b
(/.f64 (*.f64 (cos.f64 th) (fma.f64 a2 a2 (*.f64 a1 a1))) (sqrt.f64 2))
0.4b
(*.f64 (/.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))) (fma.f64 a1 a1 (*.f64 a2 a2)))
0.4b
(*.f64 (/.f64 (cos.f64 th) (/.f64 (sqrt.f64 2) (hypot.f64 a1 a2))) (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))))
0.4b
(*.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2)))) (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))))
Compiler

Compiled 7663 to 4929 computations (35.7% saved)

regimes2.1s (7.5%)

Accuracy

Total 0.4b remaining (93%)

Threshold costs 0.4b (93%)

Counts
185 → 1
Compiler

Compiled 32671 to 22927 computations (29.8% saved)

simplify3.0ms (0%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
+-commutative_binary64
distribute-lft-neg-in_binary64
distribute-rgt-neg-in_binary64
distribute-lft-neg-out_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01325
11725

soundness9.0ms (0%)

Compiler

Compiled 325 to 238 computations (26.8% saved)

end111.0ms (0.4%)

Remove

(sort a1 a2)

Compiler

Compiled 194 to 135 computations (30.4% saved)

Profiling

Loading profile data...