Details

Time bar (total: 6.8s)

analyze609.0ms (8.9%)

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
6.2%93.6%0.1%6
12.5%87.4%0.1%7
15.6%84.3%0.1%8
18.7%71.8%9.5%9
23.4%56%20.6%10
26.3%52.2%21.5%11
31%40.1%28.9%12
35.6%28.9%35.5%13
36.8%27.5%35.7%14
Compiler

Compiled 18 to 12 computations (33.3% saved)

sample1.3s (18.8%)

Symmetry

(sort x y z)

Results
980.0ms8256×body128valid
259.0ms2351×body128invalid
Compiler

Compiled 53 to 35 computations (34% saved)

simplify10.0ms (0.2%)

Algorithm
egg-herbie
Rules
25×fma-def_binary64
+-commutative_binary64
*-commutative_binary64
distribute-rgt-out_binary64
associate-+r+_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01218
12316
24516
36416
46916
57016
Stop Event
saturated
Counts
1 → 2

prune3.0ms (0%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New112
Fresh011
Picked000
Done000
Total123
Error
17.3b
Counts
3 → 1
Alt Table
StatusErrorProgram
17.3b
(*.f64 2 (sqrt.f64 (+.f64 (+.f64 (*.f64 x y) (*.f64 x z)) (*.f64 y z))))
Compiler

Compiled 62 to 39 computations (37.1% saved)

localize8.0ms (0.1%)

Local error

Found 3 expressions with local error:

NewErrorProgram
1.2b
(+.f64 (+.f64 (*.f64 x y) (*.f64 x z)) (*.f64 y z))
1.2b
(+.f64 (*.f64 x y) (*.f64 x z))
16.3b
(sqrt.f64 (+.f64 (+.f64 (*.f64 x y) (*.f64 x z)) (*.f64 y z)))

series173.0ms (2.5%)

Counts
3 → 84
Calls

3 calls:

155.0ms
(sqrt.f64 (+.f64 (+.f64 (*.f64 x y) (*.f64 x z)) (*.f64 y z)))
10.0ms
(+.f64 (*.f64 x y) (*.f64 x z))
8.0ms
(+.f64 (+.f64 (*.f64 x y) (*.f64 x z)) (*.f64 y z))

rewrite88.0ms (1.3%)

Algorithm
batch-egg-rewrite
Rules
812×fma-def_binary64
367×fma-neg_binary64
205×expm1-udef_binary64
205×log1p-udef_binary64
201×egg-rr
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01035
122331
2325531
Stop Event
node limit
Counts
3 → 201
Calls

3 calls:

84.0ms
(+.f64 (+.f64 (*.f64 x y) (*.f64 x z)) (*.f64 y z))
84.0ms
(+.f64 (*.f64 x y) (*.f64 x z))
84.0ms
(sqrt.f64 (+.f64 (+.f64 (*.f64 x y) (*.f64 x z)) (*.f64 y z)))

simplify46.0ms (0.7%)

Algorithm
egg-herbie
Rules
605×cancel-sign-sub-inv_binary64
591×associate-*l*_binary64
528×associate-*r*_binary64
198×fma-def_binary64
174×associate-/r*_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01911448
15281389
219021344
Stop Event
node limit
Counts
285 → 230

prune275.0ms (4%)

Pruning

14 alts after pruning (14 fresh and 0 done)

PrunedKeptTotal
New21614230
Fresh000
Picked101
Done000
Total21714231
Error
16.7b
Counts
231 → 14
Alt Table
StatusErrorProgram
44.7b
(*.f64 2 (fma.f64 1/2 (*.f64 z (+.f64 (sqrt.f64 (/.f64 x y)) (sqrt.f64 (/.f64 y x)))) (sqrt.f64 (*.f64 y x))))
40.3b
(*.f64 2 (sqrt.f64 (*.f64 y z)))
17.2b
(*.f64 2 (sqrt.f64 (fma.f64 x z (fma.f64 x y (*.f64 y z)))))
39.7b
(*.f64 2 (sqrt.f64 (*.f64 z (+.f64 y x))))
29.3b
(*.f64 2 (sqrt.f64 (fma.f64 (sqrt.f64 z) (*.f64 (sqrt.f64 z) y) (*.f64 x (+.f64 y z)))))
63.4b
(*.f64 2 (+.f64 (sqrt.f64 (*.f64 z x)) (*.f64 y (*.f64 1/2 (+.f64 (sqrt.f64 (/.f64 z x)) (sqrt.f64 (/.f64 x z)))))))
17.3b
(*.f64 2 (sqrt.f64 (fma.f64 y z (*.f64 x (+.f64 y z)))))
61.9b
(*.f64 2 (sqrt.f64 (*.f64 z x)))
50.6b
(*.f64 2 (/.f64 (sqrt.f64 (-.f64 (pow.f64 (*.f64 x (+.f64 y z)) 2) (pow.f64 (*.f64 y z) 2))) (sqrt.f64 (-.f64 (*.f64 x (+.f64 y z)) (*.f64 y z)))))
32.1b
(*.f64 2 (cbrt.f64 (pow.f64 (fma.f64 x y (*.f64 z (+.f64 x y))) 3/2)))
17.5b
(*.f64 2 (pow.f64 (pow.f64 (fma.f64 x y (*.f64 z (+.f64 x y))) 1/4) 2))
40.7b
(*.f64 2 (sqrt.f64 (*.f64 y x)))
17.5b
(*.f64 2 (sqrt.f64 (fma.f64 (*.f64 (cbrt.f64 (*.f64 z (+.f64 x y))) (cbrt.f64 (*.f64 z (+.f64 x y)))) (cbrt.f64 (*.f64 z (+.f64 x y))) (*.f64 x y))))
26.8b
(*.f64 2 (sqrt.f64 (fma.f64 (cbrt.f64 (*.f64 x x)) (*.f64 (cbrt.f64 x) y) (*.f64 z (+.f64 x y)))))
Compiler

Compiled 5471 to 2367 computations (56.7% saved)

localize7.0ms (0.1%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(fma.f64 x z (fma.f64 x y (*.f64 y z)))
1.0b
(fma.f64 x y (*.f64 y z))
16.3b
(sqrt.f64 (fma.f64 x z (fma.f64 x y (*.f64 y z))))

series153.0ms (2.2%)

Counts
3 → 84
Calls

3 calls:

135.0ms
(sqrt.f64 (fma.f64 x z (fma.f64 x y (*.f64 y z))))
10.0ms
(fma.f64 x z (fma.f64 x y (*.f64 y z)))
7.0ms
(fma.f64 x y (*.f64 y z))

rewrite45.0ms (0.7%)

Algorithm
batch-egg-rewrite
Rules
705×log1p-expm1-u_binary64
705×expm1-log1p-u_binary64
250×prod-diff_binary64
144×log1p-udef_binary64
80×add-sqr-sqrt_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0834
115931
2192231
Stop Event
node limit
Counts
3 → 76
Calls

3 calls:

43.0ms
(fma.f64 x z (fma.f64 x y (*.f64 y z)))
43.0ms
(fma.f64 x y (*.f64 y z))
43.0ms
(sqrt.f64 (fma.f64 x z (fma.f64 x y (*.f64 y z))))

simplify39.0ms (0.6%)

Algorithm
egg-herbie
Rules
605×cancel-sign-sub-inv_binary64
592×associate-*l*_binary64
531×associate-*r*_binary64
196×fma-def_binary64
171×associate-/r*_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01911448
15271389
219011344
Stop Event
node limit
Counts
160 → 107

prune122.0ms (1.8%)

Pruning

13 alts after pruning (13 fresh and 0 done)

PrunedKeptTotal
New1052107
Fresh21113
Picked101
Done000
Total10813121
Error
16.7b
Counts
121 → 13
Alt Table
StatusErrorProgram
39.6b
(*.f64 2 (sqrt.f64 (fma.f64 x z (*.f64 y x))))
44.7b
(*.f64 2 (fma.f64 1/2 (*.f64 z (+.f64 (sqrt.f64 (/.f64 x y)) (sqrt.f64 (/.f64 y x)))) (sqrt.f64 (*.f64 y x))))
40.3b
(*.f64 2 (sqrt.f64 (*.f64 y z)))
29.3b
(*.f64 2 (sqrt.f64 (fma.f64 (sqrt.f64 z) (*.f64 (sqrt.f64 z) y) (*.f64 x (+.f64 y z)))))
63.4b
(*.f64 2 (+.f64 (sqrt.f64 (*.f64 z x)) (*.f64 y (*.f64 1/2 (+.f64 (sqrt.f64 (/.f64 z x)) (sqrt.f64 (/.f64 x z)))))))
50.6b
(*.f64 2 (/.f64 (sqrt.f64 (-.f64 (pow.f64 (*.f64 x (+.f64 y z)) 2) (pow.f64 (*.f64 y z) 2))) (sqrt.f64 (-.f64 (*.f64 x (+.f64 y z)) (*.f64 y z)))))
32.1b
(*.f64 2 (cbrt.f64 (pow.f64 (fma.f64 x y (*.f64 z (+.f64 x y))) 3/2)))
39.7b
(*.f64 2 (sqrt.f64 (*.f64 z (+.f64 y x))))
17.5b
(*.f64 2 (pow.f64 (pow.f64 (fma.f64 x y (*.f64 z (+.f64 x y))) 1/4) 2))
40.7b
(*.f64 2 (sqrt.f64 (*.f64 y x)))
17.5b
(*.f64 2 (sqrt.f64 (fma.f64 (*.f64 (cbrt.f64 (*.f64 z (+.f64 x y))) (cbrt.f64 (*.f64 z (+.f64 x y)))) (cbrt.f64 (*.f64 z (+.f64 x y))) (*.f64 x y))))
26.8b
(*.f64 2 (sqrt.f64 (fma.f64 (cbrt.f64 (*.f64 x x)) (*.f64 (cbrt.f64 x) y) (*.f64 z (+.f64 x y)))))
17.3b
(*.f64 2 (sqrt.f64 (fma.f64 y (+.f64 z x) (*.f64 z x))))
Compiler

Compiled 2992 to 1485 computations (50.4% saved)

localize7.0ms (0.1%)

Local error

Found 2 expressions with local error:

NewErrorProgram
2.0b
(fma.f64 y (+.f64 z x) (*.f64 z x))
16.3b
(sqrt.f64 (fma.f64 y (+.f64 z x) (*.f64 z x)))

series142.0ms (2.1%)

Counts
2 → 48
Calls

2 calls:

132.0ms
(sqrt.f64 (fma.f64 y (+.f64 z x) (*.f64 z x)))
9.0ms
(fma.f64 y (+.f64 z x) (*.f64 z x))

rewrite47.0ms (0.7%)

Algorithm
batch-egg-rewrite
Rules
834×expm1-log1p-u_binary64
750×prod-diff_binary64
85×add-sqr-sqrt_binary64
81×log1p-expm1-u_binary64
80×add-cbrt-cube_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0824
116824
2223624
Stop Event
node limit
Counts
2 → 51
Calls

2 calls:

46.0ms
(fma.f64 y (+.f64 z x) (*.f64 z x))
46.0ms
(sqrt.f64 (fma.f64 y (+.f64 z x) (*.f64 z x)))

simplify37.0ms (0.5%)

Algorithm
egg-herbie
Rules
605×cancel-sign-sub-inv_binary64
593×associate-*l*_binary64
531×associate-*r*_binary64
194×fma-def_binary64
175×associate-/r*_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01901214
15241155
218971110
Stop Event
node limit
Counts
99 → 86

prune97.0ms (1.4%)

Pruning

13 alts after pruning (12 fresh and 1 done)

PrunedKeptTotal
New86086
Fresh01212
Picked011
Done000
Total861399
Error
16.7b
Counts
99 → 13
Alt Table
StatusErrorProgram
39.6b
(*.f64 2 (sqrt.f64 (fma.f64 x z (*.f64 y x))))
44.7b
(*.f64 2 (fma.f64 1/2 (*.f64 z (+.f64 (sqrt.f64 (/.f64 x y)) (sqrt.f64 (/.f64 y x)))) (sqrt.f64 (*.f64 y x))))
40.3b
(*.f64 2 (sqrt.f64 (*.f64 y z)))
29.3b
(*.f64 2 (sqrt.f64 (fma.f64 (sqrt.f64 z) (*.f64 (sqrt.f64 z) y) (*.f64 x (+.f64 y z)))))
63.4b
(*.f64 2 (+.f64 (sqrt.f64 (*.f64 z x)) (*.f64 y (*.f64 1/2 (+.f64 (sqrt.f64 (/.f64 z x)) (sqrt.f64 (/.f64 x z)))))))
50.6b
(*.f64 2 (/.f64 (sqrt.f64 (-.f64 (pow.f64 (*.f64 x (+.f64 y z)) 2) (pow.f64 (*.f64 y z) 2))) (sqrt.f64 (-.f64 (*.f64 x (+.f64 y z)) (*.f64 y z)))))
32.1b
(*.f64 2 (cbrt.f64 (pow.f64 (fma.f64 x y (*.f64 z (+.f64 x y))) 3/2)))
39.7b
(*.f64 2 (sqrt.f64 (*.f64 z (+.f64 y x))))
17.5b
(*.f64 2 (pow.f64 (pow.f64 (fma.f64 x y (*.f64 z (+.f64 x y))) 1/4) 2))
40.7b
(*.f64 2 (sqrt.f64 (*.f64 y x)))
17.5b
(*.f64 2 (sqrt.f64 (fma.f64 (*.f64 (cbrt.f64 (*.f64 z (+.f64 x y))) (cbrt.f64 (*.f64 z (+.f64 x y)))) (cbrt.f64 (*.f64 z (+.f64 x y))) (*.f64 x y))))
26.8b
(*.f64 2 (sqrt.f64 (fma.f64 (cbrt.f64 (*.f64 x x)) (*.f64 (cbrt.f64 x) y) (*.f64 z (+.f64 x y)))))
17.3b
(*.f64 2 (sqrt.f64 (fma.f64 y (+.f64 z x) (*.f64 z x))))
Compiler

Compiled 2592 to 1319 computations (49.1% saved)

localize10.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.5b
(*.f64 (cbrt.f64 (*.f64 z (+.f64 x y))) (cbrt.f64 (*.f64 z (+.f64 x y))))
0.5b
(fma.f64 (*.f64 (cbrt.f64 (*.f64 z (+.f64 x y))) (cbrt.f64 (*.f64 z (+.f64 x y)))) (cbrt.f64 (*.f64 z (+.f64 x y))) (*.f64 x y))
11.7b
(cbrt.f64 (*.f64 z (+.f64 x y)))
16.3b
(sqrt.f64 (fma.f64 (*.f64 (cbrt.f64 (*.f64 z (+.f64 x y))) (cbrt.f64 (*.f64 z (+.f64 x y)))) (cbrt.f64 (*.f64 z (+.f64 x y))) (*.f64 x y)))

series2.2s (31.7%)

Counts
4 → 128
Calls

4 calls:

1.0s
(fma.f64 (*.f64 (cbrt.f64 (*.f64 z (+.f64 x y))) (cbrt.f64 (*.f64 z (+.f64 x y)))) (cbrt.f64 (*.f64 z (+.f64 x y))) (*.f64 x y))
608.0ms
(sqrt.f64 (fma.f64 (*.f64 (cbrt.f64 (*.f64 z (+.f64 x y))) (cbrt.f64 (*.f64 z (+.f64 x y)))) (cbrt.f64 (*.f64 z (+.f64 x y))) (*.f64 x y)))
321.0ms
(*.f64 (cbrt.f64 (*.f64 z (+.f64 x y))) (cbrt.f64 (*.f64 z (+.f64 x y))))
208.0ms
(cbrt.f64 (*.f64 z (+.f64 x y)))

rewrite57.0ms (0.8%)

Algorithm
batch-egg-rewrite
Rules
557×log-prod_binary64
401×fma-def_binary64
197×expm1-udef_binary64
197×log1p-udef_binary64
185×log-pow_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01149
123445
2310245
Stop Event
node limit
Counts
4 → 112
Calls

4 calls:

55.0ms
(*.f64 (cbrt.f64 (*.f64 z (+.f64 x y))) (cbrt.f64 (*.f64 z (+.f64 x y))))
55.0ms
(fma.f64 (*.f64 (cbrt.f64 (*.f64 z (+.f64 x y))) (cbrt.f64 (*.f64 z (+.f64 x y)))) (cbrt.f64 (*.f64 z (+.f64 x y))) (*.f64 x y))
55.0ms
(cbrt.f64 (*.f64 z (+.f64 x y)))
55.0ms
(sqrt.f64 (fma.f64 (*.f64 (cbrt.f64 (*.f64 z (+.f64 x y))) (cbrt.f64 (*.f64 z (+.f64 x y)))) (cbrt.f64 (*.f64 z (+.f64 x y))) (*.f64 x y)))

simplify109.0ms (1.6%)

Algorithm
egg-herbie
Rules
348×fma-def_binary64
288×associate-*r*_binary64
248×*-commutative_binary64
211×fma-neg_binary64
203×+-commutative_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
04665872
113955297
245475167
Stop Event
node limit
Counts
240 → 265

prune467.0ms (6.8%)

Pruning

14 alts after pruning (12 fresh and 2 done)

PrunedKeptTotal
New4261427
Fresh01111
Picked011
Done011
Total42614440
Error
16.7b
Counts
440 → 14
Alt Table
StatusErrorProgram
39.6b
(*.f64 2 (sqrt.f64 (fma.f64 x z (*.f64 y x))))
44.7b
(*.f64 2 (fma.f64 1/2 (*.f64 z (+.f64 (sqrt.f64 (/.f64 x y)) (sqrt.f64 (/.f64 y x)))) (sqrt.f64 (*.f64 y x))))
40.3b
(*.f64 2 (sqrt.f64 (*.f64 y z)))
29.3b
(*.f64 2 (sqrt.f64 (fma.f64 (sqrt.f64 z) (*.f64 (sqrt.f64 z) y) (*.f64 x (+.f64 y z)))))
63.4b
(*.f64 2 (+.f64 (sqrt.f64 (*.f64 z x)) (*.f64 y (*.f64 1/2 (+.f64 (sqrt.f64 (/.f64 z x)) (sqrt.f64 (/.f64 x z)))))))
50.6b
(*.f64 2 (/.f64 (sqrt.f64 (-.f64 (pow.f64 (*.f64 x (+.f64 y z)) 2) (pow.f64 (*.f64 y z) 2))) (sqrt.f64 (-.f64 (*.f64 x (+.f64 y z)) (*.f64 y z)))))
32.1b
(*.f64 2 (cbrt.f64 (pow.f64 (fma.f64 x y (*.f64 z (+.f64 x y))) 3/2)))
39.7b
(*.f64 2 (sqrt.f64 (*.f64 z (+.f64 y x))))
17.5b
(*.f64 2 (pow.f64 (pow.f64 (fma.f64 x y (*.f64 z (+.f64 x y))) 1/4) 2))
40.7b
(*.f64 2 (sqrt.f64 (*.f64 y x)))
17.5b
(*.f64 2 (sqrt.f64 (fma.f64 (*.f64 (cbrt.f64 (*.f64 z (+.f64 x y))) (cbrt.f64 (*.f64 z (+.f64 x y)))) (cbrt.f64 (*.f64 z (+.f64 x y))) (*.f64 x y))))
26.8b
(*.f64 2 (sqrt.f64 (fma.f64 (cbrt.f64 (*.f64 x x)) (*.f64 (cbrt.f64 x) y) (*.f64 z (+.f64 x y)))))
63.1b
(*.f64 2 (sqrt.f64 (fma.f64 y x (pow.f64 (exp.f64 1/3) (+.f64 (*.f64 2 (+.f64 (log.f64 z) (log.f64 x))) (+.f64 (log.f64 z) (log.f64 x)))))))
17.3b
(*.f64 2 (sqrt.f64 (fma.f64 y (+.f64 z x) (*.f64 z x))))
Compiler

Compiled 16960 to 7594 computations (55.2% saved)

regimes638.0ms (9.4%)

Accuracy

Total 0.5b remaining (2.6%)

Threshold costs 0.5b (2.6%)

Counts
106 → 1
Compiler

Compiled 12434 to 7586 computations (39% saved)

simplify2.0ms (0%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
01016
11316
Stop Event
saturated

end185.0ms (2.7%)

Remove

(sort x y z)

Compiler

Compiled 311 to 198 computations (36.3% saved)

Profiling

Loading profile data...