Details

Time bar (total: 4.1s)

sample55.0ms

Algorithm
intervals
Results
36.0ms683×body80valid

simplify93.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
05315
116115
245915
3132315
4299215
5500115

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

Counts
2 → 1

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))
0.1b
(* (* a a) (+ 1.0 a))
0.2b
(* (* b b) (- 1.0 (* 3.0 a)))
0.3b
(pow (+ (* a a) (* b b)) 2.0)

rewrite28.0ms

Algorithm
rewrite-expression-head
Rules
22×distribute-rgt-in distribute-lft-in
18×associate-*r/
+-commutative associate-+l+ associate-+r+
sub-neg
*-commutative
flip3-+ associate-*l* frac-add flip-+
flip3-- flip--
pow-to-exp sqr-pow
Counts
4 → 47
Calls
4 calls:
13.0ms
(* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))
5.0ms
(* (* a a) (+ 1.0 a))
5.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
4.0ms
(pow (+ (* a a) (* b b)) 2.0)

series275.0ms

Counts
4 → 12
Calls
4 calls:
65.0ms
(* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))
52.0ms
(* (* a a) (+ 1.0 a))
49.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
108.0ms
(pow (+ (* a a) (* b b)) 2.0)

simplify51.0ms

Algorithm
egg-herbie
Counts
59 → 59
Iterations

Useful iterations: 1 (11.0ms)

IterNodesCost
0446485
11926470
25001470

prune152.0ms

Filtered
59 candidates to 30 candidates (50.8%)
Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New57259
Fresh000
Picked011
Done000
Total57360

Merged error: 0.1b

Counts
60 → 3

localize35.0ms

Local error

Found 4 expressions with local error:

0.0b
(* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))
0.1b
(* (* a a) (+ 1.0 a))
0.2b
(* (* b b) (- 1.0 (* 3.0 a)))
2.5b
(* (pow a 2) (pow b 2))

rewrite32.0ms

Algorithm
rewrite-expression-head
Rules
22×distribute-rgt-in distribute-lft-in
18×associate-*r/
+-commutative associate-+l+ associate-+r+
sub-neg associate-*l* *-commutative unpow2 sqr-pow
flip3-+ frac-add flip-+ unswap-sqr
flip3-- flip--
pow-to-exp associate-*r*
pow-prod-down prod-exp
Counts
4 → 56
Calls
4 calls:
12.0ms
(* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))
5.0ms
(* (* a a) (+ 1.0 a))
8.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
4.0ms
(* (pow a 2) (pow b 2))

series195.0ms

Counts
4 → 12
Calls
4 calls:
65.0ms
(* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))
46.0ms
(* (* a a) (+ 1.0 a))
53.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
31.0ms
(* (pow a 2) (pow b 2))

simplify55.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 1 (11.0ms)

IterNodesCost
0442490
11931475
25002475

prune163.0ms

Filtered
68 candidates to 33 candidates (48.5%)
Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New68068
Fresh011
Picked011
Done011
Total68371

Merged error: 0.1b

Counts
71 → 3

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))
0.1b
(* (* a a) (+ 1.0 a))
0.2b
(* (* b b) (- 1.0 (* 3.0 a)))
0.4b
(pow (/ 1 a) -4.0)

rewrite30.0ms

Algorithm
rewrite-expression-head
Rules
22×distribute-rgt-in distribute-lft-in
18×associate-*r/
+-commutative associate-+l+ associate-+r+
sub-neg
*-commutative
flip3-+ associate-*l* frac-add flip-+
flip3-- flip--
pow-to-exp unpow-prod-down pow-pow div-inv inv-pow sqr-pow
Counts
4 → 49
Calls
4 calls:
12.0ms
(* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))
5.0ms
(* (* a a) (+ 1.0 a))
5.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
2.0ms
(pow (/ 1 a) -4.0)

series358.0ms

Counts
4 → 12
Calls
4 calls:
69.0ms
(* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))
54.0ms
(* (* a a) (+ 1.0 a))
50.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
184.0ms
(pow (/ 1 a) -4.0)

simplify54.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 2 (47.0ms)

IterNodesCost
0455481
11893466
25001464

prune125.0ms

Filtered
61 candidates to 31 candidates (50.8%)
Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New60161
Fresh000
Picked101
Done022
Total61364

Merged error: 0.0b

Counts
64 → 3

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(- (+ (pow a (* -1 -4.0)) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))) 1.0)
0.0b
(* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))
0.1b
(* (* a a) (+ 1.0 a))
0.2b
(* (* b b) (- 1.0 (* 3.0 a)))

rewrite239.0ms

Algorithm
rewrite-expression-head
Rules
40×distribute-rgt-in distribute-lft-in
36×associate-+r+
22×associate--l+
18×associate-*r/
16×associate-+l+
15×+-commutative
11×sub-neg
*-commutative
flip3-- flip3-+ associate-*l* frac-add flip-- flip-+
Counts
4 → 71
Calls
4 calls:
20.0ms
(- (+ (pow a (* -1 -4.0)) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))) 1.0)
12.0ms
(* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))
198.0ms
(* (* a a) (+ 1.0 a))
5.0ms
(* (* b b) (- 1.0 (* 3.0 a)))

series233.0ms

Counts
4 → 12
Calls
4 calls:
67.0ms
(- (+ (pow a (* -1 -4.0)) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))) 1.0)
64.0ms
(* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))
53.0ms
(* (* a a) (+ 1.0 a))
50.0ms
(* (* b b) (- 1.0 (* 3.0 a)))

simplify61.0ms

Algorithm
egg-herbie
Counts
83 → 83
Iterations

Useful iterations: 1 (14.0ms)

IterNodesCost
0508734
12083719
25003719

prune183.0ms

Filtered
83 candidates to 48 candidates (57.8%)
Pruning

4 alts after pruning (1 fresh and 3 done)

PrunedKeptTotal
New82183
Fresh000
Picked011
Done022
Total82486

Merged error: 0.0b

Counts
86 → 4

regimes127.0ms

Accuracy

0% (0.2b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02715
12715

end0.0ms

sample1.5s

Algorithm
intervals
Results
1.1s20539×body80valid