Details

Time bar (total: 6.7s)

analyze5.0ms (0.1%)

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
99.9%0%0.1%4
Compiler

Compiled 18 to 12 computations (33.3% saved)

sample1.3s (19.6%)

Symmetry

(sort x y z)

Results
1.3s8256×body128valid
Compiler

Compiled 53 to 35 computations (34% saved)

simplify8.0ms (0.1%)

Algorithm
egg-herbie
Rules
fma-def_binary64
+-commutative_binary64
associate-+r+_binary64
associate-+l+_binary64
Counts
1 → 2
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01219
11717
22717
33117
43117

prune3.0ms (0%)

Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New112
Fresh101
Picked000
Done000
Total213
Error
36.1b
Counts
3 → 1
Alt Table
StatusErrorProgram
36.1b
(sqrt.f64 (/.f64 (fma.f64 z z (fma.f64 x x (*.f64 y y))) 3))
Compiler

Compiled 59 to 34 computations (42.4% saved)

localize9.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(fma.f64 x x (*.f64 y y))
0.0b
(fma.f64 z z (fma.f64 x x (*.f64 y y)))
0.1b
(/.f64 (fma.f64 z z (fma.f64 x x (*.f64 y y))) 3)
36.1b
(sqrt.f64 (/.f64 (fma.f64 z z (fma.f64 x x (*.f64 y y))) 3))

series239.0ms (3.6%)

Counts
4 → 132
Calls

4 calls:

139.0ms
(sqrt.f64 (/.f64 (fma.f64 z z (fma.f64 x x (*.f64 y y))) 3))
54.0ms
(/.f64 (fma.f64 z z (fma.f64 x x (*.f64 y y))) 3)
30.0ms
(fma.f64 z z (fma.f64 x x (*.f64 y y)))
14.0ms
(fma.f64 x x (*.f64 y y))

rewrite22.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
22×add-sqr-sqrt_binary64
19×*-un-lft-identity_binary64
19×times-frac_binary64
19×add-cube-cbrt_binary64
13×sqrt-prod_binary64
Counts
4 → 76
Calls

4 calls:

6.0ms
(/.f64 (fma.f64 z z (fma.f64 x x (*.f64 y y))) 3)
5.0ms
(sqrt.f64 (/.f64 (fma.f64 z z (fma.f64 x x (*.f64 y y))) 3))
1.0ms
(fma.f64 z z (fma.f64 x x (*.f64 y y)))
1.0ms
(fma.f64 x x (*.f64 y y))

simplify249.0ms (3.7%)

Algorithm
egg-herbie
Rules
358×sub-neg_binary64
354×fma-neg_binary64
279×fma-def_binary64
227×times-frac_binary64
207×associate-*r*_binary64
Counts
208 → 228
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
04005513
110125152
241075152
350785152

prune334.0ms (5%)

Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New2244228
Fresh000
Picked101
Done000
Total2254229
Error
0.3b
Counts
229 → 4
Alt Table
StatusErrorProgram
36.2b
(/.f64 (sqrt.f64 (fma.f64 z z (fma.f64 x x (*.f64 y y)))) (sqrt.f64 3))
36.3b
(sqrt.f64 (/.f64 (fma.f64 x x (*.f64 z z)) 3))
0.8b
(*.f64 (sqrt.f64 1/3) (hypot.f64 x z))
29.9b
(*.f64 (sqrt.f64 1/3) (hypot.f64 y x))
Compiler

Compiled 6711 to 3789 computations (43.5% saved)

localize10.0ms (0.1%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.0b
(hypot.f64 x z)
0.4b
(*.f64 (sqrt.f64 1/3) (hypot.f64 x z))

series68.0ms (1%)

Counts
2 → 48
Calls

2 calls:

44.0ms
(*.f64 (sqrt.f64 1/3) (hypot.f64 x z))
23.0ms
(hypot.f64 x z)

rewrite15.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt_binary64
associate-*l*_binary64
*-un-lft-identity_binary64
add-cube-cbrt_binary64
sqrt-prod_binary64
Counts
2 → 35
Calls

2 calls:

8.0ms
(*.f64 (sqrt.f64 1/3) (hypot.f64 x z))
5.0ms
(hypot.f64 x z)

simplify133.0ms (2%)

Algorithm
egg-herbie
Rules
904×fma-neg_binary64
600×times-frac_binary64
384×associate-/l*_binary64
380×associate-*r*_binary64
345×associate-*l*_binary64
Counts
83 → 99
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01311647
13811602
212451582
350001582
456731582

prune300.0ms (4.5%)

Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New95499
Fresh123
Picked011
Done000
Total967103
Error
0.1b
Counts
103 → 7
Alt Table
StatusErrorProgram
36.2b
(/.f64 (sqrt.f64 (fma.f64 z z (fma.f64 x x (*.f64 y y)))) (sqrt.f64 3))
1.8b
(*.f64 (*.f64 (cbrt.f64 (*.f64 (sqrt.f64 1/3) (hypot.f64 x z))) (cbrt.f64 (*.f64 (sqrt.f64 1/3) (hypot.f64 x z)))) (cbrt.f64 (*.f64 (sqrt.f64 1/3) (hypot.f64 x z))))
0.8b
(*.f64 (sqrt.f64 1/3) (hypot.f64 x z))
1.1b
(*.f64 (*.f64 (sqrt.f64 1/3) (sqrt.f64 (hypot.f64 x z))) (sqrt.f64 (hypot.f64 x z)))
0.8b
(*.f64 (sqrt.f64 (sqrt.f64 1/3)) (*.f64 (sqrt.f64 (sqrt.f64 1/3)) (hypot.f64 x z)))
29.9b
(*.f64 (sqrt.f64 1/3) (hypot.f64 y x))
1.1b
(*.f64 (sqrt.f64 (*.f64 (sqrt.f64 1/3) (hypot.f64 x z))) (sqrt.f64 (*.f64 (sqrt.f64 1/3) (hypot.f64 x z))))
Compiler

Compiled 1878 to 1320 computations (29.7% saved)

localize12.0ms (0.2%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(hypot.f64 x z)
0.1b
(*.f64 (sqrt.f64 (sqrt.f64 1/3)) (hypot.f64 x z))
0.3b
(*.f64 (sqrt.f64 (sqrt.f64 1/3)) (*.f64 (sqrt.f64 (sqrt.f64 1/3)) (hypot.f64 x z)))

series106.0ms (1.6%)

Counts
2 → 48
Calls

2 calls:

69.0ms
(*.f64 (sqrt.f64 (sqrt.f64 1/3)) (hypot.f64 x z))
37.0ms
(*.f64 (sqrt.f64 (sqrt.f64 1/3)) (*.f64 (sqrt.f64 (sqrt.f64 1/3)) (hypot.f64 x z)))

rewrite41.0ms (0.6%)

Algorithm
rewrite-expression-head
Rules
21×sqrt-prod_binary64
18×associate-*l*_binary64
15×add-sqr-sqrt_binary64
*-un-lft-identity_binary64
add-cube-cbrt_binary64
Counts
2 → 56
Calls

2 calls:

16.0ms
(*.f64 (sqrt.f64 (sqrt.f64 1/3)) (*.f64 (sqrt.f64 (sqrt.f64 1/3)) (hypot.f64 x z)))
9.0ms
(*.f64 (sqrt.f64 (sqrt.f64 1/3)) (hypot.f64 x z))

simplify167.0ms (2.5%)

Algorithm
egg-herbie
Rules
785×fma-neg_binary64
710×times-frac_binary64
483×associate-/l*_binary64
470×fma-def_binary64
235×cancel-sign-sub-inv_binary64
Counts
104 → 131
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01602514
14632398
216572278
347852274
453012274

prune214.0ms (3.2%)

Pruning

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New1703173
Fresh145
Picked011
Done011
Total1719180
Error
0.0b
Counts
180 → 9
Alt Table
StatusErrorProgram
36.2b
(/.f64 (sqrt.f64 (fma.f64 z z (fma.f64 x x (*.f64 y y)))) (sqrt.f64 3))
1.8b
(*.f64 (*.f64 (cbrt.f64 (*.f64 (sqrt.f64 1/3) (hypot.f64 x z))) (cbrt.f64 (*.f64 (sqrt.f64 1/3) (hypot.f64 x z)))) (cbrt.f64 (*.f64 (sqrt.f64 1/3) (hypot.f64 x z))))
0.8b
(*.f64 (sqrt.f64 1/3) (hypot.f64 x z))
0.8b
(*.f64 (sqrt.f64 (sqrt.f64 (*.f64 (cbrt.f64 1/3) (cbrt.f64 1/3)))) (*.f64 (sqrt.f64 (sqrt.f64 (cbrt.f64 1/3))) (*.f64 (sqrt.f64 (sqrt.f64 1/3)) (hypot.f64 x z))))
1.0b
(*.f64 (sqrt.f64 (sqrt.f64 1/3)) (*.f64 (sqrt.f64 (sqrt.f64 (sqrt.f64 1/3))) (*.f64 (sqrt.f64 (sqrt.f64 (sqrt.f64 1/3))) (hypot.f64 x z))))
0.9b
(*.f64 (sqrt.f64 (sqrt.f64 (sqrt.f64 1/3))) (*.f64 (sqrt.f64 (sqrt.f64 (sqrt.f64 1/3))) (*.f64 (sqrt.f64 (sqrt.f64 1/3)) (hypot.f64 x z))))
0.8b
(*.f64 (sqrt.f64 (sqrt.f64 1/3)) (*.f64 (sqrt.f64 (sqrt.f64 1/3)) (hypot.f64 x z)))
29.9b
(*.f64 (sqrt.f64 1/3) (hypot.f64 y x))
1.1b
(*.f64 (sqrt.f64 (*.f64 (sqrt.f64 1/3) (hypot.f64 x z))) (sqrt.f64 (*.f64 (sqrt.f64 1/3) (hypot.f64 x z))))
Compiler

Compiled 3864 to 2969 computations (23.2% saved)

localize14.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(*.f64 (sqrt.f64 (sqrt.f64 1/3)) (hypot.f64 x z))
0.2b
(*.f64 (sqrt.f64 (sqrt.f64 (cbrt.f64 1/3))) (*.f64 (sqrt.f64 (sqrt.f64 1/3)) (hypot.f64 x z)))
0.4b
(*.f64 (sqrt.f64 (sqrt.f64 (*.f64 (cbrt.f64 1/3) (cbrt.f64 1/3)))) (*.f64 (sqrt.f64 (sqrt.f64 (cbrt.f64 1/3))) (*.f64 (sqrt.f64 (sqrt.f64 1/3)) (hypot.f64 x z))))
1.0b
(*.f64 (cbrt.f64 1/3) (cbrt.f64 1/3))

series147.0ms (2.2%)

Counts
3 → 48
Calls

3 calls:

75.0ms
(*.f64 (sqrt.f64 (sqrt.f64 (cbrt.f64 1/3))) (*.f64 (sqrt.f64 (sqrt.f64 1/3)) (hypot.f64 x z)))
71.0ms
(*.f64 (sqrt.f64 (sqrt.f64 (*.f64 (cbrt.f64 1/3) (cbrt.f64 1/3)))) (*.f64 (sqrt.f64 (sqrt.f64 (cbrt.f64 1/3))) (*.f64 (sqrt.f64 (sqrt.f64 1/3)) (hypot.f64 x z))))
0.0ms
(*.f64 (cbrt.f64 1/3) (cbrt.f64 1/3))

rewrite64.0ms (1%)

Algorithm
rewrite-expression-head
Rules
25×associate-*l*_binary64
25×add-sqr-sqrt_binary64
24×pow1_binary64
20×sqrt-prod_binary64
19×cbrt-prod_binary64
Counts
3 → 100
Calls

3 calls:

28.0ms
(*.f64 (sqrt.f64 (sqrt.f64 (*.f64 (cbrt.f64 1/3) (cbrt.f64 1/3)))) (*.f64 (sqrt.f64 (sqrt.f64 (cbrt.f64 1/3))) (*.f64 (sqrt.f64 (sqrt.f64 1/3)) (hypot.f64 x z))))
18.0ms
(*.f64 (sqrt.f64 (sqrt.f64 (cbrt.f64 1/3))) (*.f64 (sqrt.f64 (sqrt.f64 1/3)) (hypot.f64 x z)))
7.0ms
(*.f64 (cbrt.f64 1/3) (cbrt.f64 1/3))

simplify267.0ms (4%)

Algorithm
egg-herbie
Rules
676×fma-neg_binary64
583×cancel-sign-sub-inv_binary64
372×associate-*r*_binary64
356×times-frac_binary64
295×associate-*l*_binary64
Counts
148 → 183
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02324743
16344297
222934289
344764282
449924282

prune547.0ms (8.2%)

Pruning

8 alts after pruning (5 fresh and 3 done)

PrunedKeptTotal
New2441245
Fresh246
Picked011
Done022
Total2468254
Error
0.0b
Counts
254 → 8
Alt Table
StatusErrorProgram
0.8b
(*.f64 (sqrt.f64 1/3) (hypot.f64 x z))
0.8b
(*.f64 (sqrt.f64 (sqrt.f64 (*.f64 (cbrt.f64 1/3) (cbrt.f64 1/3)))) (*.f64 (sqrt.f64 (sqrt.f64 (cbrt.f64 1/3))) (*.f64 (sqrt.f64 (sqrt.f64 1/3)) (hypot.f64 x z))))
36.2b
(/.f64 (sqrt.f64 (fma.f64 z z (fma.f64 x x (*.f64 y y)))) (sqrt.f64 3))
1.2b
(*.f64 (pow.f64 (sqrt.f64 (sqrt.f64 (cbrt.f64 1/3))) 3) (*.f64 (sqrt.f64 (sqrt.f64 1/3)) (hypot.f64 x z)))
0.9b
(*.f64 (sqrt.f64 (sqrt.f64 (sqrt.f64 1/3))) (*.f64 (sqrt.f64 (sqrt.f64 (sqrt.f64 1/3))) (*.f64 (sqrt.f64 (sqrt.f64 1/3)) (hypot.f64 x z))))
0.8b
(*.f64 (sqrt.f64 (sqrt.f64 1/3)) (*.f64 (sqrt.f64 (sqrt.f64 1/3)) (hypot.f64 x z)))
29.9b
(*.f64 (sqrt.f64 1/3) (hypot.f64 y x))
1.1b
(*.f64 (sqrt.f64 (*.f64 (sqrt.f64 1/3) (hypot.f64 x z))) (sqrt.f64 (*.f64 (sqrt.f64 1/3) (hypot.f64 x z))))
Compiler

Compiled 7853 to 6759 computations (13.9% saved)

regimes1.4s (20.3%)

Accuracy

Total 0.7b remaining (83.5%)

Threshold costs 0.7b (83.5%)

Counts
68 → 1
Compiler

Compiled 11355 to 8989 computations (20.8% saved)

simplify4.0ms (0.1%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0918
11118
21118

end1.0s (15.3%)

Compiler

Compiled 182 to 151 computations (17% saved)

Profiling

Loading profile data...