Details

Time bar (total: 14.2s)

analyze1.3s (9%)

Algorithm
search
Search
TrueOtherFalseIter
0%99.8%0.2%0
0%99.8%0.2%1
0%99.8%0.2%2
0%99.8%0.2%3
0%99.8%0.2%4
0%99.8%0.2%5
0%99.8%0.2%6
0%99.8%0.2%7
0%99.8%0.2%8
6.2%93.6%0.2%9
28.1%68.6%3.3%10
29.6%65.5%4.9%11
32%61.7%6.3%12
35.5%56.9%7.6%13
48%38.7%13.4%14
Compiler

Compiled 20 to 12 computations (40% saved)

sample1.6s (11%)

Symmetry

(sort d2 d4)

Results
1.0s8256×body128valid
313.0ms2481×body128invalid
Compiler

Compiled 59 to 35 computations (40.7% saved)

simplify95.0ms (0.7%)

Algorithm
egg-herbie
Rules
1400×fma-neg_binary64
654×fma-def_binary64
233×sub-neg_binary64
210×unsub-neg_binary64
158×cancel-sign-sub-inv_binary64
Counts
1 → 2
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01219
13214
29413
326313
465513
5155613
6169113
7150013
8150013
9273913
10270713
11270713
12263213

prune3.0ms (0%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
0.0b
Counts
3 → 2
Alt Table
StatusErrorProgram
0.0b
(*.f64 d1 (+.f64 d4 (-.f64 (-.f64 d2 d3) d1)))
0.0b
(-.f64 (+.f64 (-.f64 (*.f64 d1 d2) (*.f64 d1 d3)) (*.f64 d4 d1)) (*.f64 d1 d1))
Compiler

Compiled 92 to 53 computations (42.4% saved)

localize7.0ms (0%)

Local error

Found 1 expressions with local error:

NewErrorProgram
0.0b
(*.f64 d1 (+.f64 d4 (-.f64 (-.f64 d2 d3) d1)))

series15.0ms (0.1%)

Counts
1 → 48
Calls

1 calls:

15.0ms
(*.f64 d1 (+.f64 d4 (-.f64 (-.f64 d2 d3) d1)))

rewrite10.0ms (0.1%)

Algorithm
rewrite-expression-head
Rules
12×*-un-lft-identity_binary64
associate-*r*_binary64
add-sqr-sqrt_binary64
distribute-lft-out--_binary64
distribute-lft-out_binary64
Counts
1 → 27
Calls

1 calls:

8.0ms
(*.f64 d1 (+.f64 d4 (-.f64 (-.f64 d2 d3) d1)))

simplify76.0ms (0.5%)

Algorithm
egg-herbie
Rules
617×distribute-rgt-in_binary64
603×distribute-lft-in_binary64
446×fma-neg_binary64
407×associate-*l*_binary64
313×associate-*r*_binary64
Counts
75 → 55
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
0711262
11951056
2718940
33249940
44599940
54980940

prune33.0ms (0.2%)

Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New52355
Fresh101
Picked011
Done000
Total53457
Error
0b
Counts
57 → 4
Alt Table
StatusErrorProgram
0.0b
(*.f64 d1 (+.f64 d4 (-.f64 (-.f64 d2 d3) d1)))
28.3b
(*.f64 (sqrt.f64 d1) (*.f64 (sqrt.f64 d1) (+.f64 d4 (-.f64 (-.f64 d2 d3) d1))))
41.7b
(/.f64 (*.f64 d1 (fma.f64 (-.f64 d2 (+.f64 d3 d1)) (-.f64 d1 (-.f64 d2 d3)) (*.f64 d4 d4))) (-.f64 d4 (-.f64 (-.f64 d2 d3) d1)))
37.9b
(*.f64 (sqrt.f64 (*.f64 d1 (+.f64 d4 (-.f64 (-.f64 d2 d3) d1)))) (sqrt.f64 (*.f64 d1 (+.f64 d4 (-.f64 (-.f64 d2 d3) d1)))))
Compiler

Compiled 955 to 235 computations (75.4% saved)

localize8.0ms (0.1%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.1b
(*.f64 (sqrt.f64 d1) (+.f64 d4 (-.f64 (-.f64 d2 d3) d1)))
0.2b
(*.f64 (sqrt.f64 d1) (*.f64 (sqrt.f64 d1) (+.f64 d4 (-.f64 (-.f64 d2 d3) d1))))

series53.0ms (0.4%)

Counts
2 → 80
Calls

2 calls:

32.0ms
(*.f64 (sqrt.f64 d1) (+.f64 d4 (-.f64 (-.f64 d2 d3) d1)))
21.0ms
(*.f64 (sqrt.f64 d1) (*.f64 (sqrt.f64 d1) (+.f64 d4 (-.f64 (-.f64 d2 d3) d1))))

rewrite24.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
16×*-un-lft-identity_binary64
12×associate-*l*_binary64
11×add-sqr-sqrt_binary64
add-cbrt-cube_binary64
add-exp-log_binary64
Counts
2 → 60
Calls

2 calls:

12.0ms
(*.f64 (sqrt.f64 d1) (*.f64 (sqrt.f64 d1) (+.f64 d4 (-.f64 (-.f64 d2 d3) d1))))
9.0ms
(*.f64 (sqrt.f64 d1) (+.f64 d4 (-.f64 (-.f64 d2 d3) d1)))

simplify101.0ms (0.7%)

Algorithm
egg-herbie
Rules
403×fma-def_binary64
359×*-commutative_binary64
346×exp-sum_binary64
306×fma-neg_binary64
302×div-sub_binary64
Counts
140 → 114
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
01142759
13002332
211172067
320721977
438841965
552681965

prune41.0ms (0.3%)

Pruning

4 alts after pruning (2 fresh and 2 done)

PrunedKeptTotal
New1140114
Fresh022
Picked011
Done011
Total1144118
Error
0b
Counts
118 → 4
Alt Table
StatusErrorProgram
0.0b
(*.f64 d1 (+.f64 d4 (-.f64 (-.f64 d2 d3) d1)))
28.3b
(*.f64 (sqrt.f64 d1) (*.f64 (sqrt.f64 d1) (+.f64 d4 (-.f64 (-.f64 d2 d3) d1))))
41.7b
(/.f64 (*.f64 d1 (fma.f64 (-.f64 d2 (+.f64 d3 d1)) (-.f64 d1 (-.f64 d2 d3)) (*.f64 d4 d4))) (-.f64 d4 (-.f64 (-.f64 d2 d3) d1)))
37.9b
(*.f64 (sqrt.f64 (*.f64 d1 (+.f64 d4 (-.f64 (-.f64 d2 d3) d1)))) (sqrt.f64 (*.f64 d1 (+.f64 d4 (-.f64 (-.f64 d2 d3) d1)))))
Compiler

Compiled 2187 to 430 computations (80.3% saved)

localize9.0ms (0.1%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(*.f64 d1 (+.f64 d4 (-.f64 (-.f64 d2 d3) d1)))
0.2b
(*.f64 (sqrt.f64 (*.f64 d1 (+.f64 d4 (-.f64 (-.f64 d2 d3) d1)))) (sqrt.f64 (*.f64 d1 (+.f64 d4 (-.f64 (-.f64 d2 d3) d1)))))
1.1b
(sqrt.f64 (*.f64 d1 (+.f64 d4 (-.f64 (-.f64 d2 d3) d1))))

series9.7s (68.5%)

Counts
2 → 68
Calls

2 calls:

9.5s
(*.f64 (sqrt.f64 (*.f64 d1 (+.f64 d4 (-.f64 (-.f64 d2 d3) d1)))) (sqrt.f64 (*.f64 d1 (+.f64 d4 (-.f64 (-.f64 d2 d3) d1)))))
246.0ms
(sqrt.f64 (*.f64 d1 (+.f64 d4 (-.f64 (-.f64 d2 d3) d1))))

rewrite34.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
54×pow1_binary64
30×sqrt-pow1_binary64
21×pow-prod-down_binary64
16×associate-*r/_binary64
14×sqrt-div_binary64
Counts
2 → 74
Calls

2 calls:

17.0ms
(*.f64 (sqrt.f64 (*.f64 d1 (+.f64 d4 (-.f64 (-.f64 d2 d3) d1)))) (sqrt.f64 (*.f64 d1 (+.f64 d4 (-.f64 (-.f64 d2 d3) d1)))))
10.0ms
(sqrt.f64 (*.f64 d1 (+.f64 d4 (-.f64 (-.f64 d2 d3) d1))))

simplify117.0ms (0.8%)

Algorithm
egg-herbie
Rules
339×cancel-sign-sub-inv_binary64
211×fma-def_binary64
203×sub-neg_binary64
183×distribute-neg-in_binary64
182×associate-*r*_binary64
Counts
142 → 149
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02744069
18323718
233533615
349833615

prune152.0ms (1.1%)

Pruning

4 alts after pruning (1 fresh and 3 done)

PrunedKeptTotal
New3200320
Fresh011
Picked011
Done022
Total3204324
Error
0b
Counts
324 → 4
Alt Table
StatusErrorProgram
0.0b
(*.f64 d1 (+.f64 d4 (-.f64 (-.f64 d2 d3) d1)))
28.3b
(*.f64 (sqrt.f64 d1) (*.f64 (sqrt.f64 d1) (+.f64 d4 (-.f64 (-.f64 d2 d3) d1))))
41.7b
(/.f64 (*.f64 d1 (fma.f64 (-.f64 d2 (+.f64 d3 d1)) (-.f64 d1 (-.f64 d2 d3)) (*.f64 d4 d4))) (-.f64 d4 (-.f64 (-.f64 d2 d3) d1)))
37.9b
(*.f64 (sqrt.f64 (*.f64 d1 (+.f64 d4 (-.f64 (-.f64 d2 d3) d1)))) (sqrt.f64 (*.f64 d1 (+.f64 d4 (-.f64 (-.f64 d2 d3) d1)))))
Compiler

Compiled 11921 to 3571 computations (70% saved)

localize13.0ms (0.1%)

Local error

Found 3 expressions with local error:

NewErrorProgram
4.5b
(fma.f64 (-.f64 d2 (+.f64 d3 d1)) (-.f64 d1 (-.f64 d2 d3)) (*.f64 d4 d4))
10.4b
(*.f64 d1 (fma.f64 (-.f64 d2 (+.f64 d3 d1)) (-.f64 d1 (-.f64 d2 d3)) (*.f64 d4 d4)))
28.9b
(/.f64 (*.f64 d1 (fma.f64 (-.f64 d2 (+.f64 d3 d1)) (-.f64 d1 (-.f64 d2 d3)) (*.f64 d4 d4))) (-.f64 d4 (-.f64 (-.f64 d2 d3) d1)))

series250.0ms (1.8%)

Counts
3 → 144
Calls

3 calls:

154.0ms
(/.f64 (*.f64 d1 (fma.f64 (-.f64 d2 (+.f64 d3 d1)) (-.f64 d1 (-.f64 d2 d3)) (*.f64 d4 d4))) (-.f64 d4 (-.f64 (-.f64 d2 d3) d1)))
62.0ms
(*.f64 d1 (fma.f64 (-.f64 d2 (+.f64 d3 d1)) (-.f64 d1 (-.f64 d2 d3)) (*.f64 d4 d4)))
34.0ms
(fma.f64 (-.f64 d2 (+.f64 d3 d1)) (-.f64 d1 (-.f64 d2 d3)) (*.f64 d4 d4))

rewrite16.0ms (0.1%)

Algorithm
rewrite-expression-head
Rules
25×*-un-lft-identity_binary64
13×add-sqr-sqrt_binary64
12×distribute-lft-out--_binary64
10×add-cbrt-cube_binary64
10×add-exp-log_binary64
Counts
3 → 65
Calls

3 calls:

8.0ms
(/.f64 (*.f64 d1 (fma.f64 (-.f64 d2 (+.f64 d3 d1)) (-.f64 d1 (-.f64 d2 d3)) (*.f64 d4 d4))) (-.f64 d4 (-.f64 (-.f64 d2 d3) d1)))
3.0ms
(*.f64 d1 (fma.f64 (-.f64 d2 (+.f64 d3 d1)) (-.f64 d1 (-.f64 d2 d3)) (*.f64 d4 d4)))
0.0ms
(fma.f64 (-.f64 d2 (+.f64 d3 d1)) (-.f64 d1 (-.f64 d2 d3)) (*.f64 d4 d4))

simplify144.0ms (1%)

Algorithm
egg-herbie
Rules
641×associate-/l*_binary64
632×times-frac_binary64
436×fma-def_binary64
202×+-commutative_binary64
165×associate-+r+_binary64
Counts
209 → 203
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
059411382
1198810440
2530910440

prune127.0ms (0.9%)

Pruning

4 alts after pruning (0 fresh and 4 done)

PrunedKeptTotal
New2030203
Fresh000
Picked011
Done033
Total2034207
Error
0b
Counts
207 → 4
Alt Table
StatusErrorProgram
0.0b
(*.f64 d1 (+.f64 d4 (-.f64 (-.f64 d2 d3) d1)))
28.3b
(*.f64 (sqrt.f64 d1) (*.f64 (sqrt.f64 d1) (+.f64 d4 (-.f64 (-.f64 d2 d3) d1))))
41.7b
(/.f64 (*.f64 d1 (fma.f64 (-.f64 d2 (+.f64 d3 d1)) (-.f64 d1 (-.f64 d2 d3)) (*.f64 d4 d4))) (-.f64 d4 (-.f64 (-.f64 d2 d3) d1)))
37.9b
(*.f64 (sqrt.f64 (*.f64 d1 (+.f64 d4 (-.f64 (-.f64 d2 d3) d1)))) (sqrt.f64 (*.f64 d1 (+.f64 d4 (-.f64 (-.f64 d2 d3) d1)))))
Compiler

Compiled 11943 to 3689 computations (69.1% saved)

regimes238.0ms (1.7%)

Accuracy

Total 0.0b remaining (42.9%)

Threshold costs 0.0b (42.9%)

Counts
54 → 1
Compiler

Compiled 4478 to 2764 computations (38.3% saved)

simplify2.0ms (0%)

Algorithm
egg-herbie
Rules
+-commutative_binary64
sub-neg_binary64
*-commutative_binary64
neg-sub0_binary64
neg-mul-1_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0913
11513
22313
32713
42913
52913

end57.0ms (0.4%)

Remove

(sort d2 d4)

Compiler

Compiled 135 to 74 computations (45.2% saved)

Profiling

Loading profile data...