Details

Time bar (total: 3.2s)

sample55.0ms

Algorithm
intervals
Results
37.0ms699×body80valid

simplify75.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 2 (7.0ms)

IterNodesCost
05314
117313
253212
3168112
4427812
5500112

prune6.0ms

Filtered
1 candidates to 1 candidates (100.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New011
Fresh101
Picked000
Done000
Total112

Merged error: 0.2b

Counts
2 → 1

localize18.0ms

Local error

Found 4 expressions with local error:

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

rewrite10.0ms

Algorithm
rewrite-expression-head
Rules
+-commutative distribute-rgt-in distribute-lft-in associate-*r/ associate-*l* *-commutative fma-udef
pow-to-exp flip3-+ flip-+ sqr-pow
Counts
4 → 13
Calls
4 calls:
1.0ms
(fma 4.0 (fma (* a a) (- 1.0 a) (* (* b b) (+ 3.0 a))) (- (pow (+ (* a a) (* b b)) 2.0) 1.0))
1.0ms
(fma (* a a) (- 1.0 a) (* (* b b) (+ 3.0 a)))
4.0ms
(pow (+ (* a a) (* b b)) 2.0)
5.0ms
(* (* b b) (+ 3.0 a))

series273.0ms

Counts
4 → 12
Calls
4 calls:
95.0ms
(fma 4.0 (fma (* a a) (- 1.0 a) (* (* b b) (+ 3.0 a))) (- (pow (+ (* a a) (* b b)) 2.0) 1.0))
45.0ms
(fma (* a a) (- 1.0 a) (* (* b b) (+ 3.0 a)))
100.0ms
(pow (+ (* a a) (* b b)) 2.0)
33.0ms
(* (* b b) (+ 3.0 a))

simplify51.0ms

Algorithm
egg-herbie
Counts
25 → 25
Iterations

Useful iterations: 3 (48.0ms)

IterNodesCost
0168115
1626110
21858107
35002105

prune66.0ms

Filtered
25 candidates to 17 candidates (68.0%)
Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New22325
Fresh000
Picked011
Done000
Total22426

Merged error: 0.0b

Counts
26 → 4

localize23.0ms

Local error

Found 4 expressions with local error:

0.0b
(* 2.0 (pow a 2))
0.1b
(fma (* a a) (- 1.0 a) (* (* b b) (+ 3.0 a)))
0.4b
(* (* b b) (+ 3.0 a))
0.7b
(fma (* 2.0 (pow a 2)) (pow b 2) (pow b 4))

rewrite9.0ms

Algorithm
rewrite-expression-head
Rules
*-commutative
+-commutative distribute-rgt-in distribute-lft-in associate-*r/ associate-*r* associate-*l* fma-udef
flip3-+ flip-+ unpow2 sqr-pow
Counts
4 → 14
Calls
4 calls:
3.0ms
(* 2.0 (pow a 2))
1.0ms
(fma (* a a) (- 1.0 a) (* (* b b) (+ 3.0 a)))
5.0ms
(* (* b b) (+ 3.0 a))
1.0ms
(fma (* 2.0 (pow a 2)) (pow b 2) (pow b 4))

series170.0ms

Counts
4 → 12
Calls
4 calls:
29.0ms
(* 2.0 (pow a 2))
40.0ms
(fma (* a a) (- 1.0 a) (* (* b b) (+ 3.0 a)))
35.0ms
(* (* b b) (+ 3.0 a))
66.0ms
(fma (* 2.0 (pow a 2)) (pow b 2) (pow b 4))

simplify46.0ms

Algorithm
egg-herbie
Counts
26 → 26
Iterations

Useful iterations: 2 (13.0ms)

IterNodesCost
011991
148585
2148984
3500184

prune68.0ms

Filtered
26 candidates to 14 candidates (53.8%)
Pruning

4 alts after pruning (2 fresh and 2 done)

PrunedKeptTotal
New26026
Fresh022
Picked011
Done011
Total26430

Merged error: 0.0b

Counts
30 → 4

localize14.0ms

Local error

Found 4 expressions with local error:

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

rewrite8.0ms

Algorithm
rewrite-expression-head
Rules
+-commutative distribute-rgt-in distribute-lft-in associate-*r/ associate-*l* *-commutative fma-udef
pow-to-exp unpow-prod-down flip3-+ flip-+ div-inv sqr-pow
Counts
4 → 14
Calls
4 calls:
1.0ms
(fma 4.0 (fma (* a a) (- 1.0 a) (* (* b b) (+ 3.0 a))) (- (pow (/ -1 a) -4.0) 1.0))
1.0ms
(fma (* a a) (- 1.0 a) (* (* b b) (+ 3.0 a)))
2.0ms
(pow (/ -1 a) -4.0)
5.0ms
(* (* b b) (+ 3.0 a))

series344.0ms

Counts
4 → 12
Calls
4 calls:
87.0ms
(fma 4.0 (fma (* a a) (- 1.0 a) (* (* b b) (+ 3.0 a))) (- (pow (/ -1 a) -4.0) 1.0))
45.0ms
(fma (* a a) (- 1.0 a) (* (* b b) (+ 3.0 a)))
177.0ms
(pow (/ -1 a) -4.0)
35.0ms
(* (* b b) (+ 3.0 a))

simplify47.0ms

Algorithm
egg-herbie
Counts
26 → 26
Iterations

Useful iterations: 3 (44.0ms)

IterNodesCost
0182119
1588107
21789104
35002102

prune56.0ms

Filtered
26 candidates to 15 candidates (57.7%)
Pruning

4 alts after pruning (1 fresh and 3 done)

PrunedKeptTotal
New26026
Fresh011
Picked011
Done022
Total26430

Merged error: 0.0b

Counts
30 → 4

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(* 2 (pow a 2))
0.1b
(fma b (* b (fma b b (* 2 (pow a 2)))) (pow a 4))
0.2b
(* b (fma b b (* 2 (pow a 2))))

rewrite6.0ms

Algorithm
rewrite-expression-head
Rules
fma-udef
associate-*r* *-commutative
distribute-rgt-in distribute-lft-in unpow2 sqr-pow
Counts
3 → 7
Calls
3 calls:
3.0ms
(* 2 (pow a 2))
1.0ms
(fma b (* b (fma b b (* 2 (pow a 2)))) (pow a 4))
2.0ms
(* b (fma b b (* 2 (pow a 2))))

series161.0ms

Counts
3 → 9
Calls
3 calls:
28.0ms
(* 2 (pow a 2))
73.0ms
(fma b (* b (fma b b (* 2 (pow a 2)))) (pow a 4))
60.0ms
(* b (fma b b (* 2 (pow a 2))))

simplify45.0ms

Algorithm
egg-herbie
Counts
16 → 16
Iterations

Useful iterations: 2 (10.0ms)

IterNodesCost
07657
125857
298651
3500151

prune22.0ms

Filtered
16 candidates to 8 candidates (50.0%)
Pruning

4 alts after pruning (0 fresh and 4 done)

PrunedKeptTotal
New16016
Fresh000
Picked011
Done033
Total16420

Merged error: 0.0b

Counts
20 → 4

regimes66.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
01912
11912

end0.0ms

sample1.6s

Algorithm
intervals
Results
1.2s20696×body80valid