Details

Time bar (total: 6.1s)

sample340.0ms

Algorithm
intervals
Results
52.0ms457×body80valid
7.0ms21×body640valid
3.0ms10×body320valid
2.0msbody1280valid
0.0msbody160valid

simplify67.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 3 (61.0ms)

IterNodesCost
010959
141756
2213653
3500152

prune21.0ms

Filtered
1 candidates to 1 candidates (100.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 0.3b

Counts
2 → 2

localize54.0ms

Local error

Found 4 expressions with local error:

3.3b
(- (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0)) 3.0)
5.6b
(* (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1)) (* (* 3.0 x1) x1))
5.6b
(* (* x1 x1) (- (* 4.0 (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0))) 6.0))
7.3b
(fma (* (- (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0)) 3.0) 2.0) (/ (* x1 (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1))) (fma x1 x1 1.0)) (* (* x1 x1) (- (* 4.0 (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0))) 6.0)))

rewrite42.0ms

Algorithm
rewrite-expression-head
Rules
*-commutative
associate-*r* associate-*l*
sub-neg fma-neg
distribute-rgt-in flip3-- distribute-lft-in associate-*r/ associate-/r/ flip--
associate--l- flip3-+ div-sub flip-+ fma-udef div-inv
Counts
4 → 23
Calls
4 calls:
13.0ms
(- (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0)) 3.0)
4.0ms
(* (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1)) (* (* 3.0 x1) x1))
19.0ms
(* (* x1 x1) (- (* 4.0 (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0))) 6.0))
3.0ms
(fma (* (- (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0)) 3.0) 2.0) (/ (* x1 (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1))) (fma x1 x1 1.0)) (* (* x1 x1) (- (* 4.0 (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0))) 6.0)))

series550.0ms

Counts
4 → 12
Calls
4 calls:
106.0ms
(- (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0)) 3.0)
46.0ms
(* (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1)) (* (* 3.0 x1) x1))
94.0ms
(* (* x1 x1) (- (* 4.0 (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0))) 6.0))
304.0ms
(fma (* (- (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0)) 3.0) 2.0) (/ (* x1 (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1))) (fma x1 x1 1.0)) (* (* x1 x1) (- (* 4.0 (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0))) 6.0)))

simplify108.0ms

Algorithm
egg-herbie
Counts
35 → 35
Iterations

Useful iterations: 3 (102.0ms)

IterNodesCost
0282318
1935298
24201289
35001275

prune269.0ms

Filtered
35 candidates to 24 candidates (68.6%)
Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New27835
Fresh011
Picked101
Done000
Total28937

Merged error: 0.1b

Counts
37 → 9

localize47.0ms

Local error

Found 4 expressions with local error:

0.2b
(* x1 (fma x1 (/ (* (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1)) 4.0) (fma x1 x1 1.0)) (* (- 6.0) x1)))
3.3b
(- (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0)) 3.0)
5.6b
(* (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1)) (* (* 3.0 x1) x1))
7.3b
(fma (* (- (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0)) 3.0) 2.0) (/ (* x1 (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1))) (fma x1 x1 1.0)) (* x1 (fma x1 (/ (* (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1)) 4.0) (fma x1 x1 1.0)) (* (- 6.0) x1))))

rewrite21.0ms

Algorithm
rewrite-expression-head
Rules
associate-*r* *-commutative
fma-neg fma-udef
associate-*l* associate-/r/
associate--l- distribute-rgt-in sub-neg flip3-- distribute-lft-in flip3-+ div-sub flip-- flip-+ div-inv
Counts
4 → 17
Calls
4 calls:
2.0ms
(* x1 (fma x1 (/ (* (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1)) 4.0) (fma x1 x1 1.0)) (* (- 6.0) x1)))
13.0ms
(- (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0)) 3.0)
4.0ms
(* (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1)) (* (* 3.0 x1) x1))
1.0ms
(fma (* (- (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0)) 3.0) 2.0) (/ (* x1 (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1))) (fma x1 x1 1.0)) (* x1 (fma x1 (/ (* (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1)) 4.0) (fma x1 x1 1.0)) (* (- 6.0) x1))))

series542.0ms

Counts
4 → 12
Calls
4 calls:
105.0ms
(* x1 (fma x1 (/ (* (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1)) 4.0) (fma x1 x1 1.0)) (* (- 6.0) x1)))
106.0ms
(- (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0)) 3.0)
43.0ms
(* (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1)) (* (* 3.0 x1) x1))
288.0ms
(fma (* (- (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0)) 3.0) 2.0) (/ (* x1 (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1))) (fma x1 x1 1.0)) (* x1 (fma x1 (/ (* (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1)) 4.0) (fma x1 x1 1.0)) (* (- 6.0) x1))))

simplify82.0ms

Algorithm
egg-herbie
Counts
29 → 29
Iterations

Useful iterations: 3 (78.0ms)

IterNodesCost
0241227
1742218
23193211
35001197

prune222.0ms

Filtered
29 candidates to 19 candidates (65.5%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New27229
Fresh358
Picked101
Done000
Total31738

Merged error: 0.1b

Counts
38 → 7

localize50.0ms

Local error

Found 4 expressions with local error:

0.2b
(* x1 (* (- 6.0) x1))
3.3b
(- (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0)) 3.0)
5.6b
(* (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1)) (* (* 3.0 x1) x1))
7.3b
(fma (* (- (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0)) 3.0) 2.0) (/ (* x1 (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1))) (fma x1 x1 1.0)) (+ (* x1 (* x1 (/ (* (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1)) 4.0) (fma x1 x1 1.0)))) (* x1 (* (- 6.0) x1))))

rewrite23.0ms

Algorithm
rewrite-expression-head
Rules
associate-*r*
*-commutative
fma-neg associate-*l*
associate-/r/
distribute-lft-neg-out associate--l- neg-mul-1 sub-neg flip3-- flip3-+ div-sub distribute-rgt-neg-out flip-- flip-+ fma-udef div-inv
Counts
4 → 19
Calls
4 calls:
4.0ms
(* x1 (* (- 6.0) x1))
13.0ms
(- (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0)) 3.0)
4.0ms
(* (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1)) (* (* 3.0 x1) x1))
1.0ms
(fma (* (- (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0)) 3.0) 2.0) (/ (* x1 (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1))) (fma x1 x1 1.0)) (+ (* x1 (* x1 (/ (* (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1)) 4.0) (fma x1 x1 1.0)))) (* x1 (* (- 6.0) x1))))

series443.0ms

Counts
4 → 12
Calls
4 calls:
28.0ms
(* x1 (* (- 6.0) x1))
103.0ms
(- (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0)) 3.0)
45.0ms
(* (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1)) (* (* 3.0 x1) x1))
267.0ms
(fma (* (- (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0)) 3.0) 2.0) (/ (* x1 (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1))) (fma x1 x1 1.0)) (+ (* x1 (* x1 (/ (* (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1)) 4.0) (fma x1 x1 1.0)))) (* x1 (* (- 6.0) x1))))

simplify71.0ms

Algorithm
egg-herbie
Counts
31 → 31
Iterations

Useful iterations: 3 (67.0ms)

IterNodesCost
0219195
1653188
22831181
35001170

prune244.0ms

Filtered
31 candidates to 22 candidates (71.0%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New30131
Fresh156
Picked011
Done000
Total31738

Merged error: 0.1b

Counts
38 → 7

localize50.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (* x1 x1) (* x1 x1))
5.6b
(* (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1)) (* (* 3.0 x1) x1))
7.3b
(fma (* (fma (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (- (* (* x1 x1) (* x1 x1)) (* 1.0 1.0))) (- (* x1 x1) 1.0) (- 3.0)) 2.0) (/ (* x1 (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1))) (fma x1 x1 1.0)) (* x1 (fma x1 (/ (* (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1)) 4.0) (fma x1 x1 1.0)) (* (- 6.0) x1))))
7.6b
(fma (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (- (* (* x1 x1) (* x1 x1)) (* 1.0 1.0))) (- (* x1 x1) 1.0) (- 3.0))

rewrite14.0ms

Algorithm
rewrite-expression-head
Rules
14×*-commutative
pow2
associate-*r*
swap-sqr associate-*l* unswap-sqr
fma-udef
pow-prod-down pow-sqr pow-prod-up
Counts
4 → 24
Calls
4 calls:
6.0ms
(* (* x1 x1) (* x1 x1))
6.0ms
(* (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1)) (* (* 3.0 x1) x1))
1.0ms
(fma (* (fma (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (- (* (* x1 x1) (* x1 x1)) (* 1.0 1.0))) (- (* x1 x1) 1.0) (- 3.0)) 2.0) (/ (* x1 (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1))) (fma x1 x1 1.0)) (* x1 (fma x1 (/ (* (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1)) 4.0) (fma x1 x1 1.0)) (* (- 6.0) x1))))
1.0ms
(fma (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (- (* (* x1 x1) (* x1 x1)) (* 1.0 1.0))) (- (* x1 x1) 1.0) (- 3.0))

series468.0ms

Counts
4 → 12
Calls
4 calls:
32.0ms
(* (* x1 x1) (* x1 x1))
49.0ms
(* (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1)) (* (* 3.0 x1) x1))
287.0ms
(fma (* (fma (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (- (* (* x1 x1) (* x1 x1)) (* 1.0 1.0))) (- (* x1 x1) 1.0) (- 3.0)) 2.0) (/ (* x1 (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1))) (fma x1 x1 1.0)) (* x1 (fma x1 (/ (* (fma 3.0 (* x1 x1) (- (* 2.0 x2) x1)) 4.0) (fma x1 x1 1.0)) (* (- 6.0) x1))))
100.0ms
(fma (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (- (* (* x1 x1) (* x1 x1)) (* 1.0 1.0))) (- (* x1 x1) 1.0) (- 3.0))

simplify73.0ms

Algorithm
egg-herbie
Counts
36 → 36
Iterations

Useful iterations: 3 (69.0ms)

IterNodesCost
0187151
1600143
22664138
35002130

prune153.0ms

Filtered
36 candidates to 16 candidates (44.4%)
Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New36036
Fresh055
Picked011
Done011
Total36743

Merged error: 0.1b

Counts
43 → 7

regimes298.0ms

Accuracy

0% (0.1b remaining)

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

bsearch0.0ms

simplify3.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
06053
16853
27153
37153

end0.0ms

sample1.8s

Algorithm
intervals
Results
1.2s13974×body80valid
142.0ms415×body640valid
81.0ms186×body1280valid
72.0ms276×body320valid
32.0ms174×body160valid