Details

Time bar (total: 12.7s)

analyze1.1s (8.4%)

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)

sample97.0ms (0.8%)

Algorithm
intervals
Results
23.0ms60×body1024valid
17.0ms52×body1024invalid
13.0ms161×body128valid
7.0ms29×body512invalid
5.0ms20×body512valid
2.0ms15×body256valid
2.0ms10×body256invalid
2.0ms19×body128invalid
Compiler

Compiled 39 to 34 computations (12.8% saved)

simplify9.0ms (0.1%)

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (4.0ms)

IterNodesCost
010620
110620

prune5.0ms (0%)

Pruning

2 alts after pruning (2 fresh and 0 done)

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

Compiled 45 to 37 computations (17.8% saved)

localize10.0ms (0.1%)

Local error

Found 3 expressions with local error:

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

rewrite152.0ms (1.2%)

Algorithm
rewrite-expression-head
Error
0b
Rules
40×add-sqr-sqrt_binary64_441
38×times-frac_binary64_425
32×add-cube-cbrt_binary64_454 *-un-lft-identity_binary64_419
22×sqrt-prod_binary64_435 associate-*r*_binary64_359
10×add-exp-log_binary64_457 add-cbrt-cube_binary64_455
associate-/r*_binary64_363
pow1_binary64_480 add-log-exp_binary64_458
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
3 → 94
Calls

3 calls:

13.0ms
(*.f64 (cos.f64 th) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2)))
8.0ms
(+.f64 (*.f64 a1 a1) (*.f64 a2 a2))
7.0ms
(/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2))
Compiler

Compiled 2362 to 862 computations (63.5% saved)

series670.0ms (5.3%)

Error
0.3b
Counts
3 → 40
Calls

3 calls:

361.0ms
(*.f64 (cos.f64 th) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2)))
185.0ms
(/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2))
87.0ms
(+.f64 (*.f64 a1 a1) (*.f64 a2 a2))
Compiler

Compiled 1429 to 1264 computations (11.5% saved)

simplify81.0ms (0.6%)

Algorithm
egg-herbie
Counts
134 → 134
Iterations

Useful iterations: 0 (54.0ms)

IterNodesCost
050132823

prune144.0ms (1.1%)

Pruning

10 alts after pruning (10 fresh and 0 done)

PrunedKeptTotal
New1259134
Fresh011
Picked101
Done000
Total12610136
Error
0b
Counts
136 → 10
Compiler

Compiled 2847 to 1150 computations (59.6% saved)

localize10.0ms (0.1%)

Local error

Found 3 expressions with local error:

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

rewrite76.0ms (0.6%)

Algorithm
rewrite-expression-head
Error
0b
Rules
11×add-sqr-sqrt_binary64_441
10×add-exp-log_binary64_457 add-cbrt-cube_binary64_455
add-cube-cbrt_binary64_454 *-un-lft-identity_binary64_419
times-frac_binary64_425 sqrt-prod_binary64_435 associate-/r*_binary64_363
pow1_binary64_480 add-log-exp_binary64_458
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
3 → 60
Calls

3 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))
Compiler

Compiled 1347 to 424 computations (68.5% saved)

series732.0ms (5.8%)

Error
0b
Counts
3 → 44
Calls

3 calls:

372.0ms
(/.f64 (*.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (cos.f64 th)) (sqrt.f64 2))
238.0ms
(*.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (cos.f64 th))
89.0ms
(+.f64 (*.f64 a2 a2) (*.f64 a1 a1))
Compiler

Compiled 1637 to 1411 computations (13.8% saved)

simplify80.0ms (0.6%)

Algorithm
egg-herbie
Counts
104 → 104
Iterations

Useful iterations: 0 (58.0ms)

IterNodesCost
050011788

prune87.0ms (0.7%)

Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New1013104
Fresh459
Picked101
Done000
Total1068114
Error
0b
Counts
114 → 8
Compiler

Compiled 1831 to 724 computations (60.5% saved)

localize10.0ms (0.1%)

Local error

Found 3 expressions with local error:

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

rewrite210.0ms (1.7%)

Algorithm
rewrite-expression-head
Error
0b
Rules
156×times-frac_binary64_425
93×add-cube-cbrt_binary64_454 add-sqr-sqrt_binary64_441 *-un-lft-identity_binary64_419
48×sqrt-prod_binary64_435
25×associate-/r*_binary64_363
10×add-exp-log_binary64_457 add-cbrt-cube_binary64_455
associate-/l*_binary64_364
div-inv_binary64_416
add-log-exp_binary64_458
div-exp_binary64_470 cbrt-undiv_binary64_453
pow1_binary64_480
frac-2neg_binary64_430 clear-num_binary64_418 flip3-+_binary64_422 associate-/l/_binary64_366 flip-+_binary64_393
associate-/r/_binary64_365 sum-log_binary64_510 +-commutative_binary64_349
Counts
3 → 158
Calls

3 calls:

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

Compiled 4249 to 1613 computations (62% saved)

series519.0ms (4.1%)

Error
0b
Counts
3 → 32
Calls

3 calls:

375.0ms
(/.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (/.f64 (sqrt.f64 2) (cos.f64 th)))
82.0ms
(+.f64 (*.f64 a2 a2) (*.f64 a1 a1))
38.0ms
(/.f64 (sqrt.f64 2) (cos.f64 th))
Compiler

Compiled 1197 to 1024 computations (14.5% saved)

simplify107.0ms (0.8%)

Algorithm
egg-herbie
Counts
190 → 190
Iterations

Useful iterations: 0 (60.0ms)

IterNodesCost
050415364

prune192.0ms (1.5%)

Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New1891190
Fresh167
Picked011
Done000
Total1908198
Error
0b
Counts
198 → 8
Compiler

Compiled 4428 to 1644 computations (62.9% saved)

localize14.0ms (0.1%)

Local error

Found 4 expressions with local error:

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

rewrite708.0ms (5.6%)

Algorithm
rewrite-expression-head
Error
0b
Rules
540×times-frac_binary64_425
429×sqrt-prod_binary64_435
297×add-sqr-sqrt_binary64_441
295×add-cube-cbrt_binary64_454 *-un-lft-identity_binary64_419
48×associate-/r*_binary64_363
22×sqrt-div_binary64_436
17×associate-/r/_binary64_365
12×associate-/l*_binary64_364
11×add-exp-log_binary64_457 add-cbrt-cube_binary64_455 flip3-+_binary64_422 flip-+_binary64_393
div-inv_binary64_416
pow1_binary64_480
add-log-exp_binary64_458 div-exp_binary64_470 cbrt-undiv_binary64_453
sqrt-undiv_binary64_440
pow1/2_binary64_499 sqrt-pow1_binary64_437 rem-sqrt-square_binary64_432 frac-2neg_binary64_430 clear-num_binary64_418 associate-/l/_binary64_366
Counts
4 → 411
Calls

4 calls:

22.0ms
(/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (/.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)))))
8.0ms
(/.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))))
4.0ms
(sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)))
4.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
Compiler

Compiled 18617 to 4886 computations (73.8% saved)

series553.0ms (4.3%)

Error
0b
Counts
4 → 52
Calls

4 calls:

179.0ms
(/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (/.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)))))
153.0ms
(/.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))))
87.0ms
(sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)))
82.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
Compiler

Compiled 2946 to 2119 computations (28.1% saved)

simplify233.0ms (1.8%)

Algorithm
egg-herbie
Counts
463 → 463
Iterations

Useful iterations: 0 (73.0ms)

IterNodesCost
0496718597
1496718597

prune641.0ms (5%)

Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New4630463
Fresh066
Picked011
Done011
Total4638471
Error
0b
Counts
471 → 8
Compiler

Compiled 15797 to 4712 computations (70.2% saved)

regimes1.6s (12.8%)

Accuracy

Total 0.5b remaining (95.2%)

Threshold costs 0.5b (95.2%)

Compiler

Compiled 19938 to 14498 computations (27.3% saved)

bsearch0.0ms (0%)

simplify11.0ms (0.1%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
01525
11525
Remove

(sort a1 a2)

Compiler

Compiled 32 to 28 computations (12.5% saved)

end0.0ms (0%)

sample4.7s (36.8%)

Algorithm
intervals
Results
592.0ms1782×body1024valid
545.0ms1622×body1024invalid
393.0ms4890×body128valid
213.0ms874×body512valid
197.0ms821×body512invalid
71.0ms453×body256valid
64.0ms408×body256invalid
51.0ms618×body128invalid
0.0msbody2048valid
Compiler

Compiled 2506 to 1822 computations (27.3% saved)

Profiling

Loading profile data...