Details

Time bar (total: 11.3s)

analyze1.3s (12%)

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)

sample131.0ms (1.2%)

Algorithm
intervals
Results
31.0ms62×body1024invalid
28.0ms59×body1024valid
16.0ms152×body128valid
12.0ms34×body512valid
11.0ms37×body512invalid
3.0ms17×body256invalid
2.0ms11×body256valid
1.0ms12×body128invalid
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

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.4b
(+.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)

localize26.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

series133.0ms (1.2%)

Counts
4 → 88
Calls

4 calls:

74.0ms
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
26.0ms
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2))
26.0ms
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1))
7.0ms
(/.f64 (cos.f64 th) (sqrt.f64 2))

rewrite89.0ms (0.8%)

Algorithm
rewrite-expression-head
Rules
58×times-frac_binary64
55×add-sqr-sqrt_binary64
45×*-un-lft-identity_binary64
45×add-cube-cbrt_binary64
44×associate-*l*_binary64
Counts
4 → 151
Calls

4 calls:

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

simplify151.0ms (1.3%)

Algorithm
egg-herbie
Rules
652×fma-def_binary64
381×fma-neg_binary64
215×associate-*r*_binary64
196×*-commutative_binary64
194×associate-/r/_binary64
Counts
239 → 248
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02614527
17044412
222934278
348404278
450194278

prune417.0ms (3.7%)

Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New2918299
Fresh011
Picked101
Done000
Total2929301
Error
0b
Counts
301 → 9
Alt Table
StatusErrorProgram
0.5b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) a2) a2))
0.5b
(+.f64 (*.f64 (/.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.6b
(+.f64 (*.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (*.f64 a1 a1))) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.6b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (*.f64 a2 a2))))
19.7b
(+.f64 (cbrt.f64 (*.f64 (pow.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) 3) (pow.f64 a1 6))) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.4b
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
0.5b
(+.f64 (*.f64 (/.f64 1 (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (*.f64 (/.f64 (cos.f64 th) (cbrt.f64 (sqrt.f64 2))) (*.f64 a1 a1))) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.4b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))) (*.f64 a2 a2)))
0.4b
(/.f64 (*.f64 (sqrt.f64 2) (*.f64 (cos.f64 th) (fma.f64 a2 a2 (*.f64 a1 a1)))) 2)
Compiler

Compiled 8932 to 4976 computations (44.3% saved)

localize11.0ms (0.1%)

Local error

Found 4 expressions with local error:

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

series124.0ms (1.1%)

Counts
4 → 112
Calls

4 calls:

55.0ms
(/.f64 (*.f64 (sqrt.f64 2) (*.f64 (cos.f64 th) (fma.f64 a2 a2 (*.f64 a1 a1)))) 2)
40.0ms
(*.f64 (sqrt.f64 2) (*.f64 (cos.f64 th) (fma.f64 a2 a2 (*.f64 a1 a1))))
26.0ms
(*.f64 (cos.f64 th) (fma.f64 a2 a2 (*.f64 a1 a1)))
2.0ms
(cos.f64 th)

rewrite21.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
20×add-cbrt-cube_binary64
20×add-exp-log_binary64
12×add-sqr-sqrt_binary64
11×pow1_binary64
10×*-un-lft-identity_binary64
Counts
4 → 83
Calls

4 calls:

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

simplify156.0ms (1.4%)

Algorithm
egg-herbie
Rules
810×cancel-sign-sub-inv_binary64
531×fma-neg_binary64
313×associate-*r*_binary64
237×associate-*l*_binary64
222×fma-def_binary64
Counts
195 → 178
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02404283
16243788
226063691
343553689
449813689
549653689

prune178.0ms (1.6%)

Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New1726178
Fresh718
Picked101
Done000
Total1807187
Error
0b
Counts
187 → 7
Alt Table
StatusErrorProgram
0.4b
(/.f64 (*.f64 (sqrt.f64 2) (*.f64 (*.f64 (cos.f64 th) (hypot.f64 a1 a2)) (sqrt.f64 (fma.f64 a2 a2 (*.f64 a1 a1))))) 2)
0.4b
(/.f64 (*.f64 (cos.f64 th) (*.f64 (+.f64 (pow.f64 a1 2) (pow.f64 a2 2)) (sqrt.f64 2))) 2)
0.5b
(/.f64 1 (/.f64 2 (*.f64 (sqrt.f64 2) (*.f64 (cos.f64 th) (fma.f64 a2 a2 (*.f64 a1 a1))))))
0.4b
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
0.5b
(/.f64 (*.f64 (sqrt.f64 (sqrt.f64 2)) (*.f64 (sqrt.f64 (sqrt.f64 2)) (*.f64 (cos.f64 th) (fma.f64 a2 a2 (*.f64 a1 a1))))) 2)
0.4b
(/.f64 (*.f64 (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (*.f64 (cos.f64 th) (fma.f64 a2 a2 (*.f64 a1 a1))))) 2)
0.5b
(/.f64 (sqrt.f64 2) (/.f64 2 (*.f64 (cos.f64 th) (fma.f64 a2 a2 (*.f64 a1 a1)))))
Compiler

Compiled 4361 to 2300 computations (47.3% saved)

localize14.0ms (0.1%)

Local error

Found 4 expressions with local error:

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

series459.0ms (4.1%)

Counts
3 → 108
Calls

3 calls:

359.0ms
(*.f64 (cbrt.f64 (sqrt.f64 2)) (*.f64 (cos.f64 th) (fma.f64 a2 a2 (*.f64 a1 a1))))
58.0ms
(/.f64 (*.f64 (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (*.f64 (cos.f64 th) (fma.f64 a2 a2 (*.f64 a1 a1))))) 2)
41.0ms
(*.f64 (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (*.f64 (cos.f64 th) (fma.f64 a2 a2 (*.f64 a1 a1)))))

rewrite42.0ms (0.4%)

Algorithm
rewrite-expression-head
Rules
58×add-exp-log_binary64
36×add-cbrt-cube_binary64
33×cbrt-unprod_binary64
33×prod-exp_binary64
29×pow1_binary64
Counts
3 → 101
Calls

3 calls:

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

simplify133.0ms (1.2%)

Algorithm
egg-herbie
Rules
864×cancel-sign-sub-inv_binary64
487×associate-*r*_binary64
413×associate-*l*_binary64
401×unswap-sqr_binary64
314×fma-neg_binary64
Counts
209 → 184
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02925843
17384870
233154856
357614856

prune271.0ms (2.4%)

Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New2350235
Fresh066
Picked011
Done000
Total2357242
Error
0b
Counts
242 → 7
Alt Table
StatusErrorProgram
0.4b
(/.f64 (*.f64 (sqrt.f64 2) (*.f64 (*.f64 (cos.f64 th) (hypot.f64 a1 a2)) (sqrt.f64 (fma.f64 a2 a2 (*.f64 a1 a1))))) 2)
0.4b
(/.f64 (*.f64 (cos.f64 th) (*.f64 (+.f64 (pow.f64 a1 2) (pow.f64 a2 2)) (sqrt.f64 2))) 2)
0.5b
(/.f64 1 (/.f64 2 (*.f64 (sqrt.f64 2) (*.f64 (cos.f64 th) (fma.f64 a2 a2 (*.f64 a1 a1))))))
0.4b
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
0.5b
(/.f64 (*.f64 (sqrt.f64 (sqrt.f64 2)) (*.f64 (sqrt.f64 (sqrt.f64 2)) (*.f64 (cos.f64 th) (fma.f64 a2 a2 (*.f64 a1 a1))))) 2)
0.4b
(/.f64 (*.f64 (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (*.f64 (cos.f64 th) (fma.f64 a2 a2 (*.f64 a1 a1))))) 2)
0.5b
(/.f64 (sqrt.f64 2) (/.f64 2 (*.f64 (cos.f64 th) (fma.f64 a2 a2 (*.f64 a1 a1)))))
Compiler

Compiled 7825 to 4938 computations (36.9% saved)

localize14.0ms (0.1%)

Local error

Found 4 expressions with local error:

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

series334.0ms (3%)

Counts
4 → 132
Calls

4 calls:

162.0ms
(*.f64 (sqrt.f64 2) (*.f64 (*.f64 (cos.f64 th) (hypot.f64 a1 a2)) (sqrt.f64 (fma.f64 a2 a2 (*.f64 a1 a1)))))
126.0ms
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a1 a2)) (sqrt.f64 (fma.f64 a2 a2 (*.f64 a1 a1))))
34.0ms
(*.f64 (cos.f64 th) (hypot.f64 a1 a2))
12.0ms
(sqrt.f64 (fma.f64 a2 a2 (*.f64 a1 a1)))

rewrite22.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
21×pow1_binary64
20×add-cbrt-cube_binary64
20×add-exp-log_binary64
14×add-sqr-sqrt_binary64
11×*-un-lft-identity_binary64
Counts
4 → 85
Calls

4 calls:

7.0ms
(*.f64 (sqrt.f64 2) (*.f64 (*.f64 (cos.f64 th) (hypot.f64 a1 a2)) (sqrt.f64 (fma.f64 a2 a2 (*.f64 a1 a1)))))
5.0ms
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a1 a2)) (sqrt.f64 (fma.f64 a2 a2 (*.f64 a1 a1))))
3.0ms
(*.f64 (cos.f64 th) (hypot.f64 a1 a2))
1.0ms
(sqrt.f64 (fma.f64 a2 a2 (*.f64 a1 a1)))

simplify106.0ms (0.9%)

Algorithm
egg-herbie
Rules
746×cancel-sign-sub-inv_binary64
600×times-frac_binary64
373×associate-*r*_binary64
340×associate-*l*_binary64
301×fma-neg_binary64
Counts
217 → 221
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02754825
17863943
227913938
350623938

prune187.0ms (1.7%)

Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New2210221
Fresh055
Picked011
Done011
Total2217228
Error
0b
Counts
228 → 7
Alt Table
StatusErrorProgram
0.4b
(/.f64 (*.f64 (sqrt.f64 2) (*.f64 (*.f64 (cos.f64 th) (hypot.f64 a1 a2)) (sqrt.f64 (fma.f64 a2 a2 (*.f64 a1 a1))))) 2)
0.4b
(/.f64 (*.f64 (cos.f64 th) (*.f64 (+.f64 (pow.f64 a1 2) (pow.f64 a2 2)) (sqrt.f64 2))) 2)
0.5b
(/.f64 1 (/.f64 2 (*.f64 (sqrt.f64 2) (*.f64 (cos.f64 th) (fma.f64 a2 a2 (*.f64 a1 a1))))))
0.4b
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
0.5b
(/.f64 (*.f64 (sqrt.f64 (sqrt.f64 2)) (*.f64 (sqrt.f64 (sqrt.f64 2)) (*.f64 (cos.f64 th) (fma.f64 a2 a2 (*.f64 a1 a1))))) 2)
0.4b
(/.f64 (*.f64 (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (*.f64 (cos.f64 th) (fma.f64 a2 a2 (*.f64 a1 a1))))) 2)
0.5b
(/.f64 (sqrt.f64 2) (/.f64 2 (*.f64 (cos.f64 th) (fma.f64 a2 a2 (*.f64 a1 a1)))))
Compiler

Compiled 6290 to 2919 computations (53.6% saved)

regimes2.0s (18%)

Accuracy

Total 0.4b remaining (90.8%)

Threshold costs 0.4b (90.8%)

Counts
199 → 1
Compiler

Compiled 40969 to 29569 computations (27.8% saved)

simplify3.0ms (0%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01321
11621
21621

end7.0ms (0.1%)

Remove

(sort a1 a2)

Compiler

Compiled 51 to 36 computations (29.4% saved)

sample4.8s (43%)

Algorithm
intervals
Results
1.2s1735×body1024valid
1.0s1541×body1024invalid
672.0ms4912×body128valid
373.0ms894×body512valid
345.0ms815×body512invalid
143.0ms451×body256valid
109.0ms357×body256invalid
90.0ms614×body128invalid
12.0msbody2048valid
Compiler

Compiled 182 to 135 computations (25.8% saved)

Profiling

Loading profile data...