Details

Time bar (total: 2.7s)

sample23.0ms

Algorithm
intervals
Results
7.0ms64×body640valid
4.0ms139×body80valid
2.0ms15×body1280valid
2.0ms23×body320valid
1.0ms16×body160valid

simplify18.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0187
1317
2437
3577
4737
5927
61267
71587
82077
92097
102097

prune2.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: 9.3b

Counts
2 → 1

localize8.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ 1.0 (+ x 1.0))
0.0b
(- (/ 1.0 (+ x 1.0)) (/ 2.0 x))
0.0b
(/ 1.0 (- x 1.0))
2.7b
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (/ 1.0 (- x 1.0)))

rewrite29.0ms

Algorithm
rewrite-expression-head
Rules
37×frac-2neg clear-num
36×frac-sub
33×frac-add
11×div-inv
10×associate-/r/
prod-diff
associate-+l+ flip3-- flip3-+ flip-- flip-+
fma-neg
sub-neg
+-commutative associate-+l-
Counts
4 → 71
Calls
4 calls:
3.0ms
(/ 1.0 (+ x 1.0))
6.0ms
(- (/ 1.0 (+ x 1.0)) (/ 2.0 x))
3.0ms
(/ 1.0 (- x 1.0))
13.0ms
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (/ 1.0 (- x 1.0)))

series321.0ms

Counts
4 → 12
Calls
4 calls:
30.0ms
(/ 1.0 (+ x 1.0))
42.0ms
(- (/ 1.0 (+ x 1.0)) (/ 2.0 x))
33.0ms
(/ 1.0 (- x 1.0))
215.0ms
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (/ 1.0 (- x 1.0)))

simplify94.0ms

Algorithm
egg-herbie
Counts
83 → 83
Iterations

Useful iterations: 2 (82.0ms)

IterNodesCost
08271090
13620964
25001941

prune195.0ms

Filtered
83 candidates to 65 candidates (78.3%)
Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New80383
Fresh000
Picked101
Done000
Total81384

Merged error: 0.1b

Counts
84 → 3

localize15.0ms

Local error

Found 4 expressions with local error:

0.0b
(* (- x) (- x 1.0))
0.0b
(- (* 1.0 x) (* (+ x 1.0) 2.0))
0.0b
(* (+ x 1.0) (* (- x) (- x 1.0)))
30.0b
(fma (- (* 1.0 x) (* (+ x 1.0) 2.0)) (- x 1.0) (* (* (+ x 1.0) x) 1.0))

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
10×distribute-rgt-in distribute-lft-in associate-*r/
*-commutative
sub-neg
flip3-- flip--
frac-times prod-diff
flip3-+ associate-*r* flip-+
distribute-lft-neg-out neg-mul-1 fma-neg associate-*l* associate-*l/
distribute-rgt-neg-out fma-udef
Counts
4 → 41
Calls
4 calls:
4.0ms
(* (- x) (- x 1.0))
5.0ms
(- (* 1.0 x) (* (+ x 1.0) 2.0))
6.0ms
(* (+ x 1.0) (* (- x) (- x 1.0)))
1.0ms
(fma (- (* 1.0 x) (* (+ x 1.0) 2.0)) (- x 1.0) (* (* (+ x 1.0) x) 1.0))

series410.0ms

Counts
4 → 12
Calls
4 calls:
66.0ms
(* (- x) (- x 1.0))
37.0ms
(- (* 1.0 x) (* (+ x 1.0) 2.0))
125.0ms
(* (+ x 1.0) (* (- x) (- x 1.0)))
182.0ms
(fma (- (* 1.0 x) (* (+ x 1.0) 2.0)) (- x 1.0) (* (* (+ x 1.0) x) 1.0))

simplify37.0ms

Algorithm
egg-herbie
Counts
53 → 53
Iterations

Useful iterations: 2 (32.0ms)

IterNodesCost
0283313
11264304
25002279

prune116.0ms

Filtered
53 candidates to 31 candidates (58.5%)
Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New52153
Fresh022
Picked101
Done000
Total53356

Merged error: 0.1b

Counts
56 → 3

localize8.0ms

Local error

Found 3 expressions with local error:

0.0b
(* (- x) (- x 1.0))
0.0b
(* (+ x 1.0) (* (- x) (- x 1.0)))
0.1b
(/ (- 2.0) (* (+ x 1.0) (* (- x) (- x 1.0))))

rewrite19.0ms

Algorithm
rewrite-expression-head
Rules
18×associate-*r/
10×distribute-rgt-in neg-mul-1 distribute-lft-in
associate-*r*
frac-times associate-/r/
flip3-- *-commutative flip--
sub-neg flip3-+ flip-+
times-frac associate-/r*
associate-*l* associate-*l/
distribute-lft-neg-out
neg-sub0 frac-2neg div-sub distribute-frac-neg clear-num distribute-rgt-neg-out div-inv associate-/l*
Counts
3 → 54
Calls
3 calls:
3.0ms
(* (- x) (- x 1.0))
6.0ms
(* (+ x 1.0) (* (- x) (- x 1.0)))
7.0ms
(/ (- 2.0) (* (+ x 1.0) (* (- x) (- x 1.0))))

series276.0ms

Counts
3 → 9
Calls
3 calls:
65.0ms
(* (- x) (- x 1.0))
118.0ms
(* (+ x 1.0) (* (- x) (- x 1.0)))
93.0ms
(/ (- 2.0) (* (+ x 1.0) (* (- x) (- x 1.0))))

simplify39.0ms

Algorithm
egg-herbie
Counts
63 → 63
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0347417
11468410
25001385

prune130.0ms

Filtered
63 candidates to 48 candidates (76.2%)
Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New60363
Fresh202
Picked101
Done000
Total63366

Merged error: 0.0b

Counts
66 → 3

localize8.0ms

Local error

Found 3 expressions with local error:

0.0b
(/ (- 2.0) (* (+ x 1.0) -1))
0.0b
(* x (- x 1.0))
0.1b
(/ (/ (- 2.0) (* (+ x 1.0) -1)) (* x (- x 1.0)))

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
18×times-frac
13×*-commutative
10×neg-mul-1 associate-/r/
associate-*l/
associate-/l*
associate-/r* associate-/l/
div-inv
flip3-+ associate-*r/ flip-+
frac-2neg div-sub distribute-frac-neg clear-num
neg-sub0 distribute-rgt-in sub-neg flip3-- distribute-lft-in flip--
Counts
3 → 49
Calls
3 calls:
4.0ms
(/ (- 2.0) (* (+ x 1.0) -1))
3.0ms
(* x (- x 1.0))
8.0ms
(/ (/ (- 2.0) (* (+ x 1.0) -1)) (* x (- x 1.0)))

series160.0ms

Counts
3 → 9
Calls
3 calls:
26.0ms
(/ (- 2.0) (* (+ x 1.0) -1))
44.0ms
(* x (- x 1.0))
89.0ms
(/ (/ (- 2.0) (* (+ x 1.0) -1)) (* x (- x 1.0)))

simplify38.0ms

Algorithm
egg-herbie
Counts
58 → 58
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0321317
11201298
25002288

prune118.0ms

Filtered
58 candidates to 48 candidates (82.8%)
Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New56258
Fresh112
Picked011
Done000
Total57461

Merged error: 0b

Counts
61 → 4

regimes16.0ms

Accuracy

0% (0.1b remaining)

Error of 0.1b against oracle of 0.0b and baseline of 0.1b

bsearch0.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0167
1197
2237
3237

end0.0ms

sample596.0ms

Algorithm
intervals
Results
206.0ms1901×body640valid
123.0ms4168×body80valid
77.0ms567×body1280valid
71.0ms909×body320valid
24.0ms460×body160valid