Details

Time bar (total: 10.5s)

analyze1.1s (10.1%)

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)

sample154.0ms (1.5%)

Algorithm
intervals
Symmetry

(sort a1 a2)

Results
41.0ms62×body1024invalid
24.0ms49×body1024valid
15.0ms159×body128valid
10.0ms33×body512valid
5.0ms17×body512invalid
3.0ms15×body256valid
2.0ms12×body256invalid
2.0ms14×body128invalid
Compiler

Compiled 48 to 34 computations (29.2% 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.3b
Counts
3 → 2
Alt Table
StatusErrorProgram
0.4b
(*.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)

localize10.0ms (0.1%)

Local error

Found 2 expressions with local error:

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

series85.0ms (0.8%)

Counts
2 → 60
Calls

2 calls:

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

rewrite89.0ms (0.8%)

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:

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

simplify175.0ms (1.7%)

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

prune158.0ms (1.5%)

Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New1438151
Fresh101
Picked101
Done000
Total1458153
Error
0b
Counts
153 → 8
Alt Table
StatusErrorProgram
0.5b
(*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1))))
0.6b
(*.f64 (*.f64 (cos.f64 th) (/.f64 1 (sqrt.f64 (sqrt.f64 2)))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))))
0.5b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (sqrt.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.4b
(*.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.4b
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a2 a1) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))))
0.4b
(*.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)) (cos.f64 th))
1.1b
(*.f64 (*.f64 (cbrt.f64 (*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))) (cbrt.f64 (*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))))) (cbrt.f64 (*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))))
Compiler

Compiled 3799 to 1794 computations (52.8% saved)

localize11.0ms (0.1%)

Local error

Found 2 expressions with local error:

NewErrorProgram
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))

series60.0ms (0.6%)

Counts
1 → 36
Calls

1 calls:

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

rewrite12.0ms (0.1%)

Algorithm
rewrite-expression-head
Rules
23×add-sqr-sqrt_binary64
22×associate-*l*_binary64
20×times-frac_binary64
15×*-un-lft-identity_binary64
15×add-cube-cbrt_binary64
Counts
1 → 44
Calls

1 calls:

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

simplify100.0ms (1%)

Algorithm
egg-herbie
Rules
454×associate-*l*_binary64
393×unswap-sqr_binary64
389×associate-*r*_binary64
331×fma-neg_binary64
310×times-frac_binary64
Counts
80 → 86
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01422273
13242099
29941695
336221695
451551695

prune145.0ms (1.4%)

Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1522154
Fresh437
Picked011
Done000
Total1566162
Error
0b
Counts
162 → 6
Alt Table
StatusErrorProgram
0.5b
(*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1))))
0.6b
(*.f64 (*.f64 (cos.f64 th) (/.f64 1 (sqrt.f64 (sqrt.f64 2)))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))))
0.4b
(*.f64 (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) 1) (*.f64 (cos.f64 th) (/.f64 (hypot.f64 a2 a1) (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.4b
(*.f64 (/.f64 (/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))) (cos.f64 th))
0.4b
(*.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)) (cos.f64 th))
Compiler

Compiled 3739 to 1751 computations (53.2% saved)

localize14.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.2b
(*.f64 (cos.f64 th) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)))
0.2b
(*.f64 (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) 1) (*.f64 (cos.f64 th) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))))
0.5b
(/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))
7.3b
(sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2)))

series338.0ms (3.2%)

Counts
4 → 120
Calls

4 calls:

228.0ms
(*.f64 (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) 1) (*.f64 (cos.f64 th) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))))
73.0ms
(*.f64 (cos.f64 th) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)))
23.0ms
(/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))
14.0ms
(sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2)))

rewrite63.0ms (0.6%)

Algorithm
rewrite-expression-head
Rules
56×times-frac_binary64
56×add-sqr-sqrt_binary64
47×*-un-lft-identity_binary64
47×add-cube-cbrt_binary64
41×add-exp-log_binary64
Counts
4 → 155
Calls

4 calls:

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

simplify220.0ms (2.1%)

Algorithm
egg-herbie
Rules
760×fma-def_binary64
335×fma-neg_binary64
284×associate-*r*_binary64
251×associate-/l*_binary64
237×associate-*l*_binary64
Counts
275 → 324
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
03707290
19636314
237476206
350086206

prune312.0ms (3%)

Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New3240324
Fresh044
Picked011
Done011
Total3246330
Error
0b
Counts
330 → 6
Alt Table
StatusErrorProgram
0.5b
(*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1))))
0.6b
(*.f64 (*.f64 (cos.f64 th) (/.f64 1 (sqrt.f64 (sqrt.f64 2)))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))))
0.4b
(*.f64 (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) 1) (*.f64 (cos.f64 th) (/.f64 (hypot.f64 a2 a1) (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.4b
(*.f64 (/.f64 (/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))) (cos.f64 th))
0.4b
(*.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)) (cos.f64 th))
Compiler

Compiled 9901 to 4894 computations (50.6% saved)

localize13.0ms (0.1%)

Local error

Found 3 expressions with local error:

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

series107.0ms (1%)

Counts
3 → 84
Calls

3 calls:

59.0ms
(*.f64 (/.f64 (/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))) (cos.f64 th))
25.0ms
(/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (sqrt.f64 (sqrt.f64 2)))
23.0ms
(/.f64 (/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2)))

rewrite265.0ms (2.5%)

Algorithm
rewrite-expression-head
Rules
1137×sqrt-prod_binary64
1119×times-frac_binary64
624×add-sqr-sqrt_binary64
577×*-un-lft-identity_binary64
577×add-cube-cbrt_binary64
Counts
3 → 706
Calls

3 calls:

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

simplify781.0ms (7.5%)

Algorithm
egg-herbie
Rules
671×associate-*r/_binary64
576×fma-neg_binary64
417×associate-/r/_binary64
386×associate-/l/_binary64
288×associate-*l/_binary64
Counts
790 → 818
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
047428065
1112525081
2245423711
3464223711
4515923711

prune903.0ms (8.6%)

Pruning

6 alts after pruning (3 fresh and 3 done)

PrunedKeptTotal
New8171818
Fresh123
Picked011
Done022
Total8186824
Error
0b
Counts
824 → 6
Alt Table
StatusErrorProgram
0.4b
(/.f64 (*.f64 (/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (sqrt.f64 (sqrt.f64 2))) (cos.f64 th)) (sqrt.f64 (sqrt.f64 2)))
0.5b
(*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (/.f64 (sqrt.f64 2) (hypot.f64 a2 a1))))
0.4b
(*.f64 (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) 1) (*.f64 (cos.f64 th) (/.f64 (hypot.f64 a2 a1) (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.4b
(*.f64 (/.f64 (/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))) (cos.f64 th))
0.4b
(*.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)) (cos.f64 th))
Compiler

Compiled 28049 to 16460 computations (41.3% saved)

regimes1.9s (18.1%)

Accuracy

Total 0.3b remaining (86.4%)

Threshold costs 0.3b (86.4%)

Counts
179 → 1
Compiler

Compiled 33310 to 22861 computations (31.4% saved)

simplify3.0ms (0%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
1-exp_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01630
12030
21930

end8.0ms (0.1%)

Remove

(sort a1 a2)

Compiler

Compiled 66 to 51 computations (22.7% saved)

sample3.5s (33.2%)

Algorithm
intervals
Results
868.0ms1755×body1024valid
749.0ms1492×body1024invalid
496.0ms4795×body128valid
302.0ms995×body512valid
244.0ms784×body512invalid
91.0ms451×body256valid
75.0ms377×body256invalid
65.0ms615×body128invalid
3.0msbody2048valid
Compiler

Compiled 170 to 122 computations (28.2% saved)

Profiling

Loading profile data...