Details

Time bar (total: 4.1s)

sample29.0ms

Algorithm
intervals
Results
15.0ms256×body80valid

simplify71.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
03310
17910
221010
348310
491010
5151610
6281810
7500110

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: 26.5b

Counts
2 → 1

localize15.0ms

Local error

Found 4 expressions with local error:

0.0b
(* (+ x y) z)
1.7b
(- (+ (* (+ x y) z) (* (+ t y) a)) (* y b))
2.5b
(+ (* (+ x y) z) (* (+ t y) a))
24.8b
(/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y))

rewrite32.0ms

Algorithm
rewrite-expression-head
Rules
10×associate-*l/
flip3-+ flip-+
frac-add
+-commutative flip3-- fma-def associate--l+ associate-/r/ *-commutative flip-- associate-/l/
sub-neg frac-2neg div-sub clear-num div-inv
Counts
4 → 26
Calls
4 calls:
3.0ms
(* (+ x y) z)
9.0ms
(- (+ (* (+ x y) z) (* (+ t y) a)) (* y b))
7.0ms
(+ (* (+ x y) z) (* (+ t y) a))
12.0ms
(/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y))

series734.0ms

Counts
4 → 12
Calls
4 calls:
20.0ms
(* (+ x y) z)
96.0ms
(- (+ (* (+ x y) z) (* (+ t y) a)) (* y b))
48.0ms
(+ (* (+ x y) z) (* (+ t y) a))
569.0ms
(/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y))

simplify45.0ms

Algorithm
egg-herbie
Counts
38 → 38
Iterations

Useful iterations: 2 (40.0ms)

IterNodesCost
0358299
11524290
25001282

prune154.0ms

Filtered
38 candidates to 33 candidates (86.8%)
Pruning

10 alts after pruning (10 fresh and 0 done)

PrunedKeptTotal
New281038
Fresh000
Picked101
Done000
Total291039

Merged error: 9.0b

Counts
39 → 10

localize15.0ms

Local error

Found 4 expressions with local error:

0.5b
(fma x z (* z y))
1.7b
(- (+ (fma x z (* z y)) (* (+ t y) a)) (* y b))
2.5b
(+ (fma x z (* z y)) (* (+ t y) a))
24.8b
(/ (- (+ (fma x z (* z y)) (* (+ t y) a)) (* y b)) (+ (+ x t) y))

rewrite18.0ms

Algorithm
rewrite-expression-head
Rules
associate--l+ fma-udef
+-commutative associate-+l+ flip3-- flip3-+ associate-/r/ flip-- flip-+ associate-/l/
sub-neg frac-2neg div-sub clear-num div-inv
Counts
4 → 20
Calls
4 calls:
1.0ms
(fma x z (* z y))
5.0ms
(- (+ (fma x z (* z y)) (* (+ t y) a)) (* y b))
3.0ms
(+ (fma x z (* z y)) (* (+ t y) a))
8.0ms
(/ (- (+ (fma x z (* z y)) (* (+ t y) a)) (* y b)) (+ (+ x t) y))

series410.0ms

Counts
4 → 12
Calls
4 calls:
30.0ms
(fma x z (* z y))
104.0ms
(- (+ (fma x z (* z y)) (* (+ t y) a)) (* y b))
49.0ms
(+ (fma x z (* z y)) (* (+ t y) a))
227.0ms
(/ (- (+ (fma x z (* z y)) (* (+ t y) a)) (* y b)) (+ (+ x t) y))

simplify32.0ms

Algorithm
egg-herbie
Counts
32 → 32
Iterations

Useful iterations: 2 (27.0ms)

IterNodesCost
0214226
1967217
25002203

prune105.0ms

Filtered
32 candidates to 20 candidates (62.5%)
Pruning

10 alts after pruning (10 fresh and 0 done)

PrunedKeptTotal
New27532
Fresh459
Picked101
Done000
Total321042

Merged error: 9.0b

Counts
42 → 10

localize16.0ms

Local error

Found 4 expressions with local error:

0.5b
(fma x z (* z y))
1.3b
(fma a (+ t y) (fma x z (* z y)))
1.9b
(+ (- (fma a (+ t y) (fma x z (* z y)))) (* y b))
24.8b
(/ (+ (- (fma a (+ t y) (fma x z (* z y)))) (* y b)) (- (+ (+ x t) y)))

rewrite12.0ms

Algorithm
rewrite-expression-head
Rules
flip3-+ flip-+ fma-udef
neg-sub0 associate-+l- neg-mul-1 associate-/r/ associate-/l/ distribute-neg-frac
+-commutative associate-+l+ distribute-neg-in fma-def frac-2neg div-sub clear-num associate-/r* div-inv
Counts
4 → 17
Calls
4 calls:
1.0ms
(fma x z (* z y))
1.0ms
(fma a (+ t y) (fma x z (* z y)))
4.0ms
(+ (- (fma a (+ t y) (fma x z (* z y)))) (* y b))
7.0ms
(/ (+ (- (fma a (+ t y) (fma x z (* z y)))) (* y b)) (- (+ (+ x t) y)))

series599.0ms

Counts
4 → 12
Calls
4 calls:
37.0ms
(fma x z (* z y))
53.0ms
(fma a (+ t y) (fma x z (* z y)))
105.0ms
(+ (- (fma a (+ t y) (fma x z (* z y)))) (* y b))
405.0ms
(/ (+ (- (fma a (+ t y) (fma x z (* z y)))) (* y b)) (- (+ (+ x t) y)))

simplify71.0ms

Algorithm
egg-herbie
Counts
29 → 29
Iterations

Useful iterations: 3 (66.0ms)

IterNodesCost
0176186
1568179
22799169
35002163

prune112.0ms

Filtered
29 candidates to 22 candidates (75.9%)
Pruning

10 alts after pruning (9 fresh and 1 done)

PrunedKeptTotal
New26329
Fresh369
Picked011
Done000
Total291039

Merged error: 9.0b

Counts
39 → 10

localize17.0ms

Local error

Found 4 expressions with local error:

0.5b
(fma x z (* z y))
0.8b
(fma b y (- (fma a (+ t y) (fma x z (* z y)))))
1.3b
(fma a (+ t y) (fma x z (* z y)))
24.8b
(/ (+ (+ x t) y) (fma b y (- (fma a (+ t y) (fma x z (* z y))))))

rewrite11.0ms

Algorithm
rewrite-expression-head
Rules
fma-udef
associate-/l/
frac-2neg flip3-+ clear-num flip-+ div-inv
Counts
4 → 8
Calls
4 calls:
1.0ms
(fma x z (* z y))
1.0ms
(fma b y (- (fma a (+ t y) (fma x z (* z y)))))
1.0ms
(fma a (+ t y) (fma x z (* z y)))
8.0ms
(/ (+ (+ x t) y) (fma b y (- (fma a (+ t y) (fma x z (* z y))))))

series290.0ms

Counts
4 → 12
Calls
4 calls:
34.0ms
(fma x z (* z y))
105.0ms
(fma b y (- (fma a (+ t y) (fma x z (* z y)))))
48.0ms
(fma a (+ t y) (fma x z (* z y)))
102.0ms
(/ (+ (+ x t) y) (fma b y (- (fma a (+ t y) (fma x z (* z y))))))

simplify32.0ms

Algorithm
egg-herbie
Counts
20 → 20
Iterations

Useful iterations: 3 (29.0ms)

IterNodesCost
010177
130775
2109575
3500174

prune50.0ms

Filtered
20 candidates to 13 candidates (65.0%)
Pruning

11 alts after pruning (10 fresh and 1 done)

PrunedKeptTotal
New17320
Fresh178
Picked101
Done011
Total191130

Merged error: 9.0b

Counts
30 → 11

regimes421.0ms

Accuracy

11.7% (15.9b remaining)

Error of 24.4b against oracle of 8.5b and baseline of 26.5b

bsearch149.0ms

Steps
ItersRangePoint
9
1.3162785925840912e+227
9.437977601653335e+232
1.3343332095766483e+227
5
-4.961076293749726e+105
-1.6602378069308091e+105
-4.481297718724827e+105
6
-1.972394196766702e+125
-3.3547147040715454e+124
-9.285471348708677e+124
10
-3.3206432797516923e+212
-7.001826016169787e+195
-7.128374583617386e+195

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04111
14611
24611

end0.0ms

sample656.0ms

Algorithm
intervals
Results
388.0ms7999×body80valid
0.0msbody320valid