Details

Time bar (total: 18.9s)

analyze1.1s (5.9%)

Algorithm
search
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
027980
127980
033
133
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
Symmetry

(sort a1 a2)

Compiler

Compiled 20 to 16 computations (20% saved)

sample93.0ms (0.5%)

Algorithm
intervals
Results
20.0ms63×body1024valid
16.0ms51×body1024invalid
11.0ms147×body128valid
8.0ms35×body512valid
5.0ms24×body512invalid
2.0ms11×body256valid
2.0ms11×body256invalid
2.0ms21×body128invalid
Compiler

Compiled 39 to 34 computations (12.8% saved)

simplify9.0ms (0%)

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (4.0ms)

IterNodesCost
010620
110620

prune10.0ms (0.1%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022
Error
0.4b
Counts
2 → 2
Compiler

Compiled 45 to 37 computations (17.8% saved)

localize11.0ms (0.1%)

Local error

Found 4 expressions with local error:

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

rewrite173.0ms (0.9%)

Algorithm
rewrite-expression-head
Error
0b
Rules
41×add-sqr-sqrt_binary64_441
38×times-frac_binary64_425
33×add-cube-cbrt_binary64_454 *-un-lft-identity_binary64_419
22×sqrt-prod_binary64_435 associate-*r*_binary64_359
11×add-exp-log_binary64_457 add-cbrt-cube_binary64_455
pow1_binary64_480 add-log-exp_binary64_458 associate-/r*_binary64_363
associate-/l*_binary64_364 unswap-sqr_binary64_387 associate-*l*_binary64_360
div-exp_binary64_470 cbrt-undiv_binary64_453 div-inv_binary64_416 flip3-+_binary64_422 associate-/l/_binary64_366 flip-+_binary64_393 prod-exp_binary64_468 cbrt-unprod_binary64_452
frac-2neg_binary64_430 clear-num_binary64_418 pow-prod-down_binary64_490 associate-*r/_binary64_361 *-commutative_binary64_350 sum-log_binary64_510 +-commutative_binary64_349
Counts
4 → 101
Calls

4 calls:

12.0ms
(*.f64 (cos.f64 th) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2)))
7.0ms
(/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2))
4.0ms
(+.f64 (*.f64 a1 a1) (*.f64 a2 a2))
1.0ms
(cos.f64 th)
Compiler

Compiled 2216 to 800 computations (63.9% saved)

series1.1s (6%)

Error
0.4b
Counts
4 → 48
Calls

4 calls:

650.0ms
(*.f64 (cos.f64 th) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2)))
297.0ms
(/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2))
139.0ms
(+.f64 (*.f64 a1 a1) (*.f64 a2 a2))
20.0ms
(cos.f64 th)
Compiler

Compiled 1530 to 1388 computations (9.3% saved)

simplify91.0ms (0.5%)

Algorithm
egg-herbie
Counts
149 → 149
Iterations

Useful iterations: 0 (56.0ms)

IterNodesCost
049673100
149673100

prune153.0ms (0.8%)

Pruning

12 alts after pruning (11 fresh and 1 done)

PrunedKeptTotal
New13910149
Fresh011
Picked011
Done000
Total13912151
Error
0b
Counts
151 → 12
Compiler

Compiled 2273 to 969 computations (57.4% saved)

localize13.0ms (0.1%)

Local error

Found 4 expressions with local error:

0.0b
(+.f64 (*.f64 a2 a2) (*.f64 a1 a1))
0.2b
(*.f64 (cos.f64 th) (/.f64 (/.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
0.2b
(/.f64 (/.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2)))
0.3b
(/.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (sqrt.f64 (sqrt.f64 2)))

rewrite1.6s (8.2%)

Algorithm
rewrite-expression-head
Error
0b
Rules
1137×sqrt-prod_binary64_435
1119×times-frac_binary64_425
625×add-sqr-sqrt_binary64_441
578×add-cube-cbrt_binary64_454 *-un-lft-identity_binary64_419
283×associate-*r*_binary64_359
34×associate-/l*_binary64_364
22×div-inv_binary64_416
20×add-exp-log_binary64_457 add-cbrt-cube_binary64_455
18×associate-/r*_binary64_363
13×unswap-sqr_binary64_387
div-exp_binary64_470 cbrt-undiv_binary64_453
pow1_binary64_480 add-log-exp_binary64_458
associate-/l/_binary64_366 prod-exp_binary64_468 cbrt-unprod_binary64_452 associate-*l*_binary64_360
frac-2neg_binary64_430 clear-num_binary64_418 flip3-+_binary64_422 flip-+_binary64_393
pow-prod-down_binary64_490 associate-*r/_binary64_361 *-commutative_binary64_350 sum-log_binary64_510 +-commutative_binary64_349
Counts
4 → 713
Calls

4 calls:

84.0ms
(*.f64 (cos.f64 th) (/.f64 (/.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
25.0ms
(/.f64 (/.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2)))
9.0ms
(/.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (sqrt.f64 (sqrt.f64 2)))
4.0ms
(+.f64 (*.f64 a2 a2) (*.f64 a1 a1))
Compiler

Compiled 18034 to 10006 computations (44.5% saved)

series1.5s (8%)

Error
0b
Counts
4 → 54
Calls

4 calls:

660.0ms
(*.f64 (cos.f64 th) (/.f64 (/.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
386.0ms
(/.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (sqrt.f64 (sqrt.f64 2)))
294.0ms
(/.f64 (/.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2)))
136.0ms
(+.f64 (*.f64 a2 a2) (*.f64 a1 a1))
Compiler

Compiled 1912 to 1814 computations (5.1% saved)

simplify302.0ms (1.6%)

Algorithm
egg-herbie
Counts
767 → 767
Iterations

Useful iterations: 0 (78.0ms)

IterNodesCost
0497026923
1497026923

prune539.0ms (2.8%)

Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New7652767
Fresh6410
Picked101
Done011
Total7727779
Error
0b
Counts
779 → 7
Compiler

Compiled 8819 to 4568 computations (48.2% saved)

localize14.0ms (0.1%)

Local error

Found 4 expressions with local error:

0.2b
(*.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (cos.f64 th))
0.4b
(*.f64 (*.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (cos.f64 th)) (/.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
1.0b
(/.f64 1 (sqrt.f64 (sqrt.f64 2)))
1.0b
(/.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2)))

rewrite2.1s (11.3%)

Algorithm
rewrite-expression-head
Error
0b
Rules
1116×sqrt-prod_binary64_435
1098×times-frac_binary64_425
581×add-sqr-sqrt_binary64_441
579×add-cube-cbrt_binary64_454 *-un-lft-identity_binary64_419
286×associate-*r*_binary64_359
54×add-exp-log_binary64_457
34×add-cbrt-cube_binary64_455 associate-/l*_binary64_364
25×pow1_binary64_480
22×div-inv_binary64_416
20×sqrt-pow1_binary64_437 div-exp_binary64_470
18×associate-/r*_binary64_363
16×prod-exp_binary64_468
14×pow-flip_binary64_493
10×pow-div_binary64_494 pow1/2_binary64_499 cbrt-undiv_binary64_453 cbrt-unprod_binary64_452
associate-*l/_binary64_362
1-exp_binary64_463 rec-exp_binary64_469 add-log-exp_binary64_458 pow-prod-down_binary64_490 associate-*l*_binary64_360
flip3-+_binary64_422 flip-+_binary64_393
inv-pow_binary64_504 frac-2neg_binary64_430 clear-num_binary64_418 frac-times_binary64_429 *-commutative_binary64_350
associate-/l/_binary64_366 associate-*r/_binary64_361 unswap-sqr_binary64_387
Counts
4 → 740
Calls

4 calls:

72.0ms
(*.f64 (*.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (cos.f64 th)) (/.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
18.0ms
(/.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2)))
7.0ms
(*.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (cos.f64 th))
5.0ms
(/.f64 1 (sqrt.f64 (sqrt.f64 2)))
Compiler

Compiled 17083 to 11746 computations (31.2% saved)

series1.8s (9.3%)

Error
0b
Counts
4 → 36
Calls

4 calls:

1.1s
(*.f64 (*.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (cos.f64 th)) (/.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
648.0ms
(*.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (cos.f64 th))
0.0ms
(/.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2)))
0.0ms
(/.f64 1 (sqrt.f64 (sqrt.f64 2)))
Compiler

Compiled 1720 to 1546 computations (10.1% saved)

simplify448.0ms (2.4%)

Algorithm
egg-herbie
Counts
776 → 776
Iterations

Useful iterations: 0 (86.0ms)

IterNodesCost
0514120639

prune821.0ms (4.3%)

Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New7760776
Fresh055
Picked011
Done011
Total7767783
Error
0b
Counts
783 → 7
Compiler

Compiled 7352 to 4752 computations (35.4% saved)

localize10.0ms (0.1%)

Local error

Found 4 expressions with local error:

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

rewrite95.0ms (0.5%)

Algorithm
rewrite-expression-head
Error
0b
Rules
12×add-sqr-sqrt_binary64_441
11×add-exp-log_binary64_457 add-cbrt-cube_binary64_455
10×add-cube-cbrt_binary64_454 *-un-lft-identity_binary64_419
pow1_binary64_480 add-log-exp_binary64_458 times-frac_binary64_425 sqrt-prod_binary64_435 associate-/r*_binary64_363
associate-*l/_binary64_362
flip3-+_binary64_422 flip-+_binary64_393 associate-*l*_binary64_360 associate-*r*_binary64_359
prod-exp_binary64_468 div-exp_binary64_470 cbrt-undiv_binary64_453 cbrt-unprod_binary64_452 associate-/l/_binary64_366
frac-2neg_binary64_430 clear-num_binary64_418 div-inv_binary64_416 associate-/l*_binary64_364 pow-prod-down_binary64_490 unswap-sqr_binary64_387 *-commutative_binary64_350 sum-log_binary64_510 +-commutative_binary64_349
Counts
4 → 67
Calls

4 calls:

9.0ms
(/.f64 (*.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (cos.f64 th)) (sqrt.f64 2))
7.0ms
(*.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (cos.f64 th))
4.0ms
(+.f64 (*.f64 a2 a2) (*.f64 a1 a1))
1.0ms
(cos.f64 th)
Compiler

Compiled 1401 to 435 computations (69% saved)

series1.5s (7.8%)

Error
0b
Counts
4 → 54
Calls

4 calls:

647.0ms
(/.f64 (*.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (cos.f64 th)) (sqrt.f64 2))
548.0ms
(*.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (cos.f64 th))
202.0ms
(+.f64 (*.f64 a2 a2) (*.f64 a1 a1))
29.0ms
(cos.f64 th)
Compiler

Compiled 1877 to 1663 computations (11.4% saved)

simplify84.0ms (0.4%)

Algorithm
egg-herbie
Counts
121 → 121
Iterations

Useful iterations: 0 (44.0ms)

IterNodesCost
050342157

prune137.0ms (0.7%)

Pruning

7 alts after pruning (4 fresh and 3 done)

PrunedKeptTotal
New1210121
Fresh044
Picked011
Done022
Total1217128
Error
0b
Counts
128 → 7
Compiler

Compiled 1475 to 584 computations (60.4% saved)

regimes2.5s (12.9%)

Accuracy

Total 0.4b remaining (91.3%)

Threshold costs 0.4b (91.3%)

Compiler

Compiled 21077 to 16233 computations (23% saved)

bsearch0.0ms (0%)

simplify2.0ms (0%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
02443
12443

end11.0ms (0.1%)

Remove

(sort a1 a2)

Compiler

Compiled 78 to 72 computations (7.7% saved)

sample2.7s (14.5%)

Algorithm
intervals
Results
603.0ms1791×body1024valid
504.0ms1577×body1024invalid
373.0ms4821×body128valid
222.0ms949×body512valid
189.0ms792×body512invalid
71.0ms437×body256valid
57.0ms364×body256invalid
56.0ms652×body128invalid
1.0msbody2048valid
Compiler

Compiled 188 to 164 computations (12.8% saved)

Profiling

Loading profile data...