Details

Time bar (total: 1.6s)

analyze90.0ms (5.5%)

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
25%74.9%0.1%5
25%56.2%18.8%6
25%40.6%34.4%7
31.2%31.2%37.6%8
39%21.1%39.9%9
42.9%16%41.1%10
47.2%10.7%42%11
49.4%8.1%42.5%12
51.6%5.4%43%13
52.7%4.1%43.2%14
Compiler

Compiled 10 to 5 computations (50% saved)

sample689.0ms (42.3%)

Symmetry

(sort x y)

Results
651.0ms8256×body128valid
6.0ms79×body128invalid
Compiler

Compiled 29 to 14 computations (51.7% saved)

simplify15.0ms (0.9%)

Algorithm
egg-herbie
Rules
70×fma-def_binary64
24×associate-+l+_binary64
18×associate-+r+_binary64
10×distribute-rgt-in_binary64
*-commutative_binary64
Counts
1 → 1
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0510
11210
22610
34610
48110
510110
611710
713010
813210
913210

prune1.0ms (0.1%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022
Error
0.0b
Counts
2 → 1
Alt Table
StatusErrorProgram
0.0b
(*.f64 (+.f64 x y) (+.f64 x y))
Compiler

Compiled 27 to 12 computations (55.6% saved)

localize3.0ms (0.2%)

Local error

Found 1 expressions with local error:

NewErrorProgram
0.0b
(*.f64 (+.f64 x y) (+.f64 x y))

series6.0ms (0.3%)

Counts
1 → 24
Calls

1 calls:

6.0ms
(*.f64 (+.f64 x y) (+.f64 x y))

rewrite8.0ms (0.5%)

Algorithm
rewrite-expression-head
Rules
19×*-un-lft-identity_binary64
pow1_binary64
add-sqr-sqrt_binary64
distribute-lft-out_binary64
swap-sqr_binary64
Counts
1 → 42
Calls

1 calls:

6.0ms
(*.f64 (+.f64 x y) (+.f64 x y))

simplify50.0ms (3.1%)

Algorithm
egg-herbie
Rules
728×associate-+l+_binary64
594×unswap-sqr_binary64
430×distribute-rgt-in_binary64
422×distribute-lft-in_binary64
327×fma-def_binary64
Counts
66 → 64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
068994
1200853
2739757
32462692
45240692

prune45.0ms (2.7%)

Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New60464
Fresh000
Picked101
Done000
Total61465
Error
0b
Counts
65 → 4
Alt Table
StatusErrorProgram
0.0b
(+.f64 (*.f64 x (+.f64 x y)) (*.f64 y (+.f64 x y)))
0.0b
(+.f64 (*.f64 2 (*.f64 y x)) (+.f64 (pow.f64 y 2) (pow.f64 x 2)))
27.2b
(*.f64 y (+.f64 y (*.f64 2 x)))
1.2b
(*.f64 (*.f64 (cbrt.f64 (*.f64 (+.f64 x y) (+.f64 x y))) (cbrt.f64 (*.f64 (+.f64 x y) (+.f64 x y)))) (cbrt.f64 (*.f64 (+.f64 x y) (+.f64 x y))))
Compiler

Compiled 1013 to 317 computations (68.7% saved)

localize7.0ms (0.4%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
0.0b
(+.f64 (*.f64 2 (*.f64 y x)) (+.f64 (pow.f64 y 2) (pow.f64 x 2)))
0.0b
(*.f64 2 (*.f64 y x))

series18.0ms (1.1%)

Counts
3 → 18
Calls

3 calls:

7.0ms
(+.f64 (*.f64 2 (*.f64 y x)) (+.f64 (pow.f64 y 2) (pow.f64 x 2)))
6.0ms
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
5.0ms
(*.f64 2 (*.f64 y x))

rewrite25.0ms (1.5%)

Algorithm
rewrite-expression-head
Rules
10×*-un-lft-identity_binary64
10×add-log-exp_binary64
fma-def_binary64
add-cbrt-cube_binary64
add-exp-log_binary64
Counts
3 → 59
Calls

3 calls:

13.0ms
(+.f64 (*.f64 2 (*.f64 y x)) (+.f64 (pow.f64 y 2) (pow.f64 x 2)))
6.0ms
(+.f64 (pow.f64 y 2) (pow.f64 x 2))
4.0ms
(*.f64 2 (*.f64 y x))

simplify63.0ms (3.9%)

Algorithm
egg-herbie
Rules
662×fma-neg_binary64
651×associate-*l*_binary64
513×associate-*r*_binary64
471×fma-def_binary64
319×distribute-rgt-neg-in_binary64
Counts
77 → 95
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
088905
1248787
2837728
33406728
45028728

prune71.0ms (4.3%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New93295
Fresh213
Picked101
Done000
Total96399
Error
0b
Counts
99 → 3
Alt Table
StatusErrorProgram
3.4b
(expm1.f64 (log1p.f64 (fma.f64 x (fma.f64 2 y x) (*.f64 y y))))
27.2b
(*.f64 y (+.f64 y (*.f64 2 x)))
0.0b
(+.f64 (*.f64 2 (*.f64 y x)) (fma.f64 y y (pow.f64 x 2)))
Compiler

Compiled 1818 to 1103 computations (39.3% saved)

localize7.0ms (0.4%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.0b
(*.f64 2 (*.f64 y x))
0.0b
(+.f64 (*.f64 2 (*.f64 y x)) (fma.f64 y y (pow.f64 x 2)))

series8.0ms (0.5%)

Counts
1 → 24
Calls

1 calls:

8.0ms
(+.f64 (*.f64 2 (*.f64 y x)) (fma.f64 y y (pow.f64 x 2)))

rewrite14.0ms (0.8%)

Algorithm
rewrite-expression-head
Rules
add-log-exp_binary64
+-commutative_binary64
associate-+r+_binary64
fma-udef_binary64
flip-+_binary64
Counts
1 → 15
Calls

1 calls:

13.0ms
(+.f64 (*.f64 2 (*.f64 y x)) (fma.f64 y y (pow.f64 x 2)))

simplify66.0ms (4%)

Algorithm
egg-herbie
Rules
525×cancel-sign-sub-inv_binary64
352×associate-*l*_binary64
324×distribute-rgt-out_binary64
304×associate-*r*_binary64
304×fma-neg_binary64
Counts
39 → 35
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
039617
1121579
2451493
32265493
44677493
54957493

prune48.0ms (2.9%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New61263
Fresh202
Picked011
Done000
Total63366
Error
0b
Counts
66 → 3
Alt Table
StatusErrorProgram
0.0b
(+.f64 (*.f64 2 (*.f64 y x)) (fma.f64 y y (pow.f64 x 2)))
0.0b
(fma.f64 x (fma.f64 2 y x) (*.f64 y y))
0.0b
(+.f64 (*.f64 y (+.f64 (*.f64 x 2) y)) (pow.f64 x 2))
Compiler

Compiled 1136 to 624 computations (45.1% saved)

localize6.0ms (0.4%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.0b
(+.f64 (*.f64 y (+.f64 (*.f64 x 2) y)) (pow.f64 x 2))
0.0b
(*.f64 y (+.f64 (*.f64 x 2) y))

series13.0ms (0.8%)

Counts
2 → 48
Calls

2 calls:

7.0ms
(+.f64 (*.f64 y (+.f64 (*.f64 x 2) y)) (pow.f64 x 2))
6.0ms
(*.f64 y (+.f64 (*.f64 x 2) y))

rewrite12.0ms (0.7%)

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt_binary64
*-un-lft-identity_binary64
add-cube-cbrt_binary64
add-cbrt-cube_binary64
add-log-exp_binary64
Counts
2 → 40
Calls

2 calls:

6.0ms
(+.f64 (*.f64 y (+.f64 (*.f64 x 2) y)) (pow.f64 x 2))
5.0ms
(*.f64 y (+.f64 (*.f64 x 2) y))

simplify76.0ms (4.7%)

Algorithm
egg-herbie
Rules
493×distribute-rgt-in_binary64
478×distribute-lft-in_binary64
458×sub-neg_binary64
448×fma-def_binary64
311×+-commutative_binary64
Counts
88 → 78
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
076964
1236934
2839917
32874917
44398917
55053917

prune49.0ms (3%)

Pruning

2 alts after pruning (1 fresh and 1 done)

PrunedKeptTotal
New77178
Fresh101
Picked101
Done011
Total79281
Error
0b
Counts
81 → 2
Alt Table
StatusErrorProgram
0.0b
(fma.f64 y y (*.f64 x (fma.f64 2 y x)))
0.0b
(+.f64 (*.f64 2 (*.f64 y x)) (fma.f64 y y (pow.f64 x 2)))
Compiler

Compiled 1343 to 837 computations (37.7% saved)

regimes187.0ms (11.5%)

Accuracy

Total 0.0b remaining (68.2%)

Threshold costs 0.0b (68.2%)

Counts
45 → 1
Compiler

Compiled 2452 to 1455 computations (40.7% saved)

simplify3.0ms (0.2%)

Algorithm
egg-herbie
Rules
+-commutative_binary64
*-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0916
11316
21316

end51.0ms (3.2%)

Remove

(sort x y)

Compiler

Compiled 77 to 51 computations (33.8% saved)

Profiling

Loading profile data...