Details

Time bar (total: 3.1s)

analyze1.0ms (0%)

Algorithm
search
Search
TrueOtherFalseIter
0%99.9%0.1%0
99.9%0%0.1%1
Compiler

Compiled 32 to 20 computations (37.5% saved)

sample1.1s (35.2%)

Results
997.0ms8256×body128valid
Compiler

Compiled 95 to 59 computations (37.9% saved)

simplify60.0ms (1.9%)

Algorithm
egg-herbie
Rules
620×fma-def_binary64
556×cancel-sign-sub-inv_binary64
552×unswap-sqr_binary64
357×unsub-neg_binary64
344×+-commutative_binary64
Counts
1 → 2
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
01939
15737
216837
349237
4160433
5289133
6430933
7521433

prune5.0ms (0.2%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
14.0b
Counts
3 → 2
Alt Table
StatusErrorProgram
16.3b
(-.f64 (+.f64 (pow.f64 (+.f64 (*.f64 a a) (*.f64 b b)) 2) (*.f64 4 (+.f64 (*.f64 (*.f64 a a) (-.f64 1 a)) (*.f64 (*.f64 b b) (+.f64 3 a))))) 1)
14.0b
(+.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
Compiler

Compiled 166 to 104 computations (37.3% saved)

localize16.0ms (0.5%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1)
3.2b
(*.f64 (*.f64 b b) (+.f64 a 3))
4.6b
(fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3)))
9.2b
(+.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))

series78.0ms (2.5%)

Counts
4 → 96
Calls

4 calls:

37.0ms
(+.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
18.0ms
(fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1)
11.0ms
(*.f64 (*.f64 b b) (+.f64 a 3))
11.0ms
(fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3)))

rewrite16.0ms (0.5%)

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

4 calls:

6.0ms
(*.f64 (*.f64 b b) (+.f64 a 3))
6.0ms
(+.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
0.0ms
(fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1)
0.0ms
(fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3)))

simplify104.0ms (3.4%)

Algorithm
egg-herbie
Rules
587×associate-+l+_binary64
471×distribute-rgt-in_binary64
461×distribute-lft-in_binary64
383×associate--l+_binary64
273×cancel-sign-sub-inv_binary64
Counts
164 → 163
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01713677
14743305
216013213
352043213

prune179.0ms (5.8%)

Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New1603163
Fresh101
Picked011
Done000
Total1614165
Error
0b
Counts
165 → 4
Alt Table
StatusErrorProgram
12.0b
(+.f64 (*.f64 (*.f64 b b) (+.f64 (+.f64 12 (*.f64 b b)) (*.f64 a (+.f64 4 (*.f64 2 a))))) (fma.f64 4 (*.f64 a a) -1))
14.0b
(+.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
0.6b
(+.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 12 (*.f64 b b) -1))
14.1b
(fma.f64 (sqrt.f64 (pow.f64 (hypot.f64 a b) 4)) (sqrt.f64 (pow.f64 (hypot.f64 a b) 4)) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
Compiler

Compiled 4826 to 2892 computations (40.1% saved)

localize9.0ms (0.3%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.0b
(+.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 12 (*.f64 b b) -1))
0.1b
(fma.f64 12 (*.f64 b b) -1)

series45.0ms (1.5%)

Counts
2 → 36
Calls

2 calls:

42.0ms
(+.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 12 (*.f64 b b) -1))
3.0ms
(fma.f64 12 (*.f64 b b) -1)

rewrite15.0ms (0.5%)

Algorithm
rewrite-expression-head
Rules
fma-def_binary64
*-un-lft-identity_binary64
add-sqr-sqrt_binary64
add-cube-cbrt_binary64
add-log-exp_binary64
Counts
2 → 32
Calls

2 calls:

13.0ms
(+.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 12 (*.f64 b b) -1))
0.0ms
(fma.f64 12 (*.f64 b b) -1)

simplify76.0ms (2.5%)

Algorithm
egg-herbie
Rules
593×associate-+l+_binary64
545×associate-+r+_binary64
444×unsub-neg_binary64
273×fma-def_binary64
205×fma-neg_binary64
Counts
68 → 64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
0641155
11581078
24521012
317051010
445971010
551421010

prune73.0ms (2.4%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New63164
Fresh112
Picked101
Done011
Total65368
Error
0b
Counts
68 → 3
Alt Table
StatusErrorProgram
0.6b
(+.f64 (fma.f64 12 (*.f64 b b) (pow.f64 (hypot.f64 a b) 4)) -1)
14.0b
(+.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
14.1b
(fma.f64 (sqrt.f64 (pow.f64 (hypot.f64 a b) 4)) (sqrt.f64 (pow.f64 (hypot.f64 a b) 4)) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
Compiler

Compiled 1269 to 750 computations (40.9% saved)

localize8.0ms (0.2%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.0b
(+.f64 (fma.f64 12 (*.f64 b b) (pow.f64 (hypot.f64 a b) 4)) -1)
0.1b
(fma.f64 12 (*.f64 b b) (pow.f64 (hypot.f64 a b) 4))

series87.0ms (2.8%)

Counts
2 → 48
Calls

2 calls:

44.0ms
(fma.f64 12 (*.f64 b b) (pow.f64 (hypot.f64 a b) 4))
44.0ms
(+.f64 (fma.f64 12 (*.f64 b b) (pow.f64 (hypot.f64 a b) 4)) -1)

rewrite7.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity_binary64
add-sqr-sqrt_binary64
add-log-exp_binary64
fma-def_binary64
add-cube-cbrt_binary64
Counts
2 → 29
Calls

2 calls:

6.0ms
(+.f64 (fma.f64 12 (*.f64 b b) (pow.f64 (hypot.f64 a b) 4)) -1)
0.0ms
(fma.f64 12 (*.f64 b b) (pow.f64 (hypot.f64 a b) 4))

simplify80.0ms (2.6%)

Algorithm
egg-herbie
Rules
776×associate-*r*_binary64
652×distribute-rgt-in_binary64
612×distribute-lft-in_binary64
612×fma-neg_binary64
235×fma-def_binary64
Counts
77 → 68
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
0651702
11491590
23861447
313531447
448701447
552781447

prune68.0ms (2.2%)

Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New68068
Fresh011
Picked011
Done011
Total68371
Error
0b
Counts
71 → 3
Alt Table
StatusErrorProgram
0.6b
(+.f64 (fma.f64 12 (*.f64 b b) (pow.f64 (hypot.f64 a b) 4)) -1)
14.0b
(+.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
14.1b
(fma.f64 (sqrt.f64 (pow.f64 (hypot.f64 a b) 4)) (sqrt.f64 (pow.f64 (hypot.f64 a b) 4)) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
Compiler

Compiled 1441 to 853 computations (40.8% saved)

localize16.0ms (0.5%)

Local error

Found 4 expressions with local error:

NewErrorProgram
3.2b
(*.f64 (*.f64 b b) (+.f64 a 3))
4.6b
(fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3)))
9.8b
(fma.f64 (sqrt.f64 (pow.f64 (hypot.f64 a b) 4)) (sqrt.f64 (pow.f64 (hypot.f64 a b) 4)) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
15.4b
(sqrt.f64 (pow.f64 (hypot.f64 a b) 4))

series104.0ms (3.4%)

Counts
2 → 48
Calls

2 calls:

53.0ms
(sqrt.f64 (pow.f64 (hypot.f64 a b) 4))
51.0ms
(fma.f64 (sqrt.f64 (pow.f64 (hypot.f64 a b) 4)) (sqrt.f64 (pow.f64 (hypot.f64 a b) 4)) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))

rewrite3.0ms (0.1%)

Algorithm
rewrite-expression-head
Rules
sqrt-prod_binary64
add-sqr-sqrt_binary64
*-un-lft-identity_binary64
unpow-prod-down_binary64
add-cube-cbrt_binary64
Counts
2 → 31
Calls

2 calls:

2.0ms
(sqrt.f64 (pow.f64 (hypot.f64 a b) 4))
0.0ms
(fma.f64 (sqrt.f64 (pow.f64 (hypot.f64 a b) 4)) (sqrt.f64 (pow.f64 (hypot.f64 a b) 4)) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))

simplify95.0ms (3.1%)

Algorithm
egg-herbie
Rules
627×fma-def_binary64
567×fma-neg_binary64
532×cancel-sign-sub-inv_binary64
512×associate-+l+_binary64
335×distribute-lft-out_binary64
Counts
79 → 80
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
0991708
12481553
27461322
330761301
448891301
550081301

prune222.0ms (7.2%)

Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New1860186
Fresh000
Picked011
Done022
Total1863189
Error
0b
Counts
189 → 3
Alt Table
StatusErrorProgram
0.6b
(+.f64 (fma.f64 12 (*.f64 b b) (pow.f64 (hypot.f64 a b) 4)) -1)
14.0b
(+.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
14.1b
(fma.f64 (sqrt.f64 (pow.f64 (hypot.f64 a b) 4)) (sqrt.f64 (pow.f64 (hypot.f64 a b) 4)) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
Compiler

Compiled 6254 to 3591 computations (42.6% saved)

regimes547.0ms (17.8%)

Accuracy

Total 0.5b remaining (98.6%)

Threshold costs 0.5b (98.6%)

Counts
102 → 1
Compiler

Compiled 10089 to 7213 computations (28.5% saved)

simplify2.0ms (0.1%)

Algorithm
egg-herbie
Rules
+-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01117
11217
21217

end79.0ms (2.6%)

Compiler

Compiled 99 to 68 computations (31.3% saved)

Profiling

Loading profile data...