Details

Time bar (total: 4.0s)

sample30.0ms

Algorithm
intervals
Results
8.0ms256×body80valid
7.0ms230×body80nan

simplify12.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0227
1447
2637
3707
4717
5717

prune3.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 18.5b

Counts
2 → 1

localize14.0ms

Local error

Found 3 expressions with local error:

0.6b
(+ (* x y) (* x z))
1.6b
(+ (+ (* x y) (* x z)) (* y z))
17.5b
(sqrt (+ (+ (* x y) (* x z)) (* y z)))

rewrite21.0ms

Algorithm
rewrite-expression-head
Rules
*-commutative
fma-def
+-commutative flip3-+ flip-+
associate-+l+ distribute-rgt-out sqrt-div distribute-lft-out
pow1/2
Counts
3 → 17
Calls
3 calls:
5.0ms
(+ (* x y) (* x z))
8.0ms
(+ (+ (* x y) (* x z)) (* y z))
8.0ms
(sqrt (+ (+ (* x y) (* x z)) (* y z)))

series173.0ms

Counts
3 → 9
Calls
3 calls:
36.0ms
(+ (* x y) (* x z))
22.0ms
(+ (+ (* x y) (* x z)) (* y z))
115.0ms
(sqrt (+ (+ (* x y) (* x z)) (* y z)))

simplify74.0ms

Algorithm
egg-herbie
Counts
26 → 26
Iterations

Useful iterations: 3 (70.0ms)

IterNodesCost
0192148
1649134
22437125
35002124

prune72.0ms

Filtered
26 candidates to 18 candidates (69.2%)
Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New24226
Fresh000
Picked011
Done000
Total24327

Merged error: 18.5b

Counts
27 → 3

localize16.0ms

Local error

Found 4 expressions with local error:

10.1b
(- (* (+ (* x y) (* x z)) (+ (* x y) (* x z))) (* (* y z) (* y z)))
11.3b
(/ (sqrt (- (* (+ (* x y) (* x z)) (+ (* x y) (* x z))) (* (* y z) (* y z)))) (sqrt (- (+ (* x y) (* x z)) (* y z))))
12.1b
(sqrt (- (+ (* x y) (* x z)) (* y z)))
13.8b
(sqrt (- (* (+ (* x y) (* x z)) (+ (* x y) (* x z))) (* (* y z) (* y z))))

rewrite96.0ms

Algorithm
rewrite-expression-head
Rules
179×*-commutative
80×prod-diff
56×swap-sqr
54×distribute-rgt-out distribute-lft-out
38×associate-*r* associate-*l*
12×difference-of-squares
10×fma-neg
sqrt-div sqrt-prod
flip3-- flip--
associate--l+ associate-/l*
+-commutative distribute-rgt-in distribute-lft-in pow1/2 associate-/r/ associate-/l/
sub-neg sqrt-undiv frac-2neg clear-num div-inv
Counts
4 → 124
Calls
4 calls:
24.0ms
(- (* (+ (* x y) (* x z)) (+ (* x y) (* x z))) (* (* y z) (* y z)))
29.0ms
(/ (sqrt (- (* (+ (* x y) (* x z)) (+ (* x y) (* x z))) (* (* y z) (* y z)))) (sqrt (- (+ (* x y) (* x z)) (* y z))))
8.0ms
(sqrt (- (+ (* x y) (* x z)) (* y z)))
26.0ms
(sqrt (- (* (+ (* x y) (* x z)) (+ (* x y) (* x z))) (* (* y z) (* y z))))

series621.0ms

Counts
4 → 12
Calls
4 calls:
77.0ms
(- (* (+ (* x y) (* x z)) (+ (* x y) (* x z))) (* (* y z) (* y z)))
234.0ms
(/ (sqrt (- (* (+ (* x y) (* x z)) (+ (* x y) (* x z))) (* (* y z) (* y z)))) (sqrt (- (+ (* x y) (* x z)) (* y z))))
113.0ms
(sqrt (- (+ (* x y) (* x z)) (* y z)))
197.0ms
(sqrt (- (* (+ (* x y) (* x z)) (+ (* x y) (* x z))) (* (* y z) (* y z))))

simplify75.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 2 (51.0ms)

IterNodesCost
04331921
115081565
250021551

prune409.0ms

Filtered
136 candidates to 37 candidates (27.2%)
Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New1333136
Fresh011
Picked101
Done011
Total1345139

Merged error: 18.3b

Counts
139 → 5

localize17.0ms

Local error

Found 4 expressions with local error:

0.6b
(+ (* x y) (* x z))
0.9b
(- (+ (* x y) (* x z)) (* y z))
11.3b
(/ (fma x y (* x z)) (sqrt (- (+ (* x y) (* x z)) (* y z))))
12.1b
(sqrt (- (+ (* x y) (* x z)) (* y z)))

rewrite30.0ms

Algorithm
rewrite-expression-head
Rules
11×*-commutative
distribute-rgt-out sqrt-div prod-diff distribute-lft-out
flip3-- flip--
+-commutative fma-def fma-neg associate--l+ associate-/r/
sub-neg frac-2neg flip3-+ pow1/2 clear-num flip-+ div-inv
Counts
4 → 27
Calls
4 calls:
5.0ms
(+ (* x y) (* x z))
8.0ms
(- (+ (* x y) (* x z)) (* y z))
8.0ms
(/ (fma x y (* x z)) (sqrt (- (+ (* x y) (* x z)) (* y z))))
8.0ms
(sqrt (- (+ (* x y) (* x z)) (* y z)))

series369.0ms

Counts
4 → 12
Calls
4 calls:
37.0ms
(+ (* x y) (* x z))
25.0ms
(- (+ (* x y) (* x z)) (* y z))
193.0ms
(/ (fma x y (* x z)) (sqrt (- (+ (* x y) (* x z)) (* y z))))
114.0ms
(sqrt (- (+ (* x y) (* x z)) (* y z)))

simplify104.0ms

Algorithm
egg-herbie
Counts
39 → 39
Iterations

Useful iterations: 3 (99.0ms)

IterNodesCost
0253262
1827236
23754226
35001225

prune113.0ms

Filtered
39 candidates to 26 candidates (66.7%)
Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New38139
Fresh033
Picked101
Done011
Total39544

Merged error: 18.2b

Counts
44 → 5

localize20.0ms

Local error

Found 4 expressions with local error:

0.6b
(+ (* x y) (* x z))
0.9b
(- (+ (* x y) (* x z)) (* y z))
11.3b
(/ (fma x y (* x z)) (pow (- (+ (* x y) (* x z)) (* y z)) 1/2))
16.7b
(pow (- (+ (* x y) (* x z)) (* y z)) 1/2)

rewrite25.0ms

Algorithm
rewrite-expression-head
Rules
11×*-commutative
distribute-rgt-out prod-diff distribute-lft-out
+-commutative fma-def fma-neg associate--l+ sqr-pow
pow-to-exp sub-neg flip3-- frac-2neg flip3-+ clear-num associate-/r* flip-- flip-+ div-inv unpow1/2
Counts
4 → 26
Calls
4 calls:
5.0ms
(+ (* x y) (* x z))
8.0ms
(- (+ (* x y) (* x z)) (* y z))
6.0ms
(/ (fma x y (* x z)) (pow (- (+ (* x y) (* x z)) (* y z)) 1/2))
5.0ms
(pow (- (+ (* x y) (* x z)) (* y z)) 1/2)

series468.0ms

Counts
4 → 12
Calls
4 calls:
39.0ms
(+ (* x y) (* x z))
25.0ms
(- (+ (* x y) (* x z)) (* y z))
194.0ms
(/ (fma x y (* x z)) (pow (- (+ (* x y) (* x z)) (* y z)) 1/2))
209.0ms
(pow (- (+ (* x y) (* x z)) (* y z)) 1/2)

simplify106.0ms

Algorithm
egg-herbie
Counts
38 → 38
Iterations

Useful iterations: 3 (101.0ms)

IterNodesCost
0283217
1904190
23994180
35001177

prune99.0ms

Filtered
38 candidates to 26 candidates (68.4%)
Pruning

5 alts after pruning (3 fresh and 2 done)

PrunedKeptTotal
New35338
Fresh303
Picked011
Done011
Total38543

Merged error: 18.1b

Counts
43 → 5

regimes172.0ms

Accuracy

0% (0.5b remaining)

Error of 19.8b against oracle of 19.3b and baseline of 19.8b

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0177
1177

end0.0ms

sample840.0ms

Algorithm
intervals
Results
267.0ms8000×body80valid
250.0ms7925×body80nan