Details

Time bar (total: 4.4s)

sample87.0ms

Algorithm
intervals
Results
30.0ms88×body1280valid
18.0ms280×body80valid
16.0ms70×body640valid
5.0ms31×body320valid
2.0ms14×body160valid

simplify19.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
0267
1576
2876
31146
41326
51516
61716
71736
81736

prune8.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.4b

Counts
2 → 2

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(fma a1 a1 (* a2 a2))
0.2b
(* (cos th) (fma a1 a1 (* a2 a2)))
0.4b
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

rewrite7.0ms

Algorithm
rewrite-expression-head
Rules
fma-udef
*-commutative associate-/l*
distribute-rgt-in frac-2neg distribute-lft-in clear-num div-inv
Counts
3 → 9
Calls
3 calls:
1.0ms
(fma a1 a1 (* a2 a2))
2.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
4.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

series349.0ms

Counts
3 → 9
Calls
3 calls:
33.0ms
(fma a1 a1 (* a2 a2))
108.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
208.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

simplify111.0ms

Algorithm
egg-herbie
Counts
18 → 18
Iterations

Useful iterations: 3 (11.0ms)

IterNodesCost
06684
115780
232478
384769
4337469
5500269

prune44.0ms

Filtered
18 candidates to 11 candidates (61.1%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New13518
Fresh101
Picked011
Done000
Total14620

Merged error: 0.3b

Counts
20 → 6

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(fma a1 a1 (* a2 a2))
0.2b
(/ (sqrt 2.0) (cos th))
0.4b
(/ (fma a1 a1 (* a2 a2)) (/ (sqrt 2.0) (cos th)))

rewrite7.0ms

Algorithm
rewrite-expression-head
Rules
frac-2neg clear-num associate-/r/ div-inv
associate-/r* fma-udef
Counts
3 → 11
Calls
3 calls:
1.0ms
(fma a1 a1 (* a2 a2))
2.0ms
(/ (sqrt 2.0) (cos th))
3.0ms
(/ (fma a1 a1 (* a2 a2)) (/ (sqrt 2.0) (cos th)))

series245.0ms

Counts
3 → 9
Calls
3 calls:
37.0ms
(fma a1 a1 (* a2 a2))
40.0ms
(/ (sqrt 2.0) (cos th))
168.0ms
(/ (fma a1 a1 (* a2 a2)) (/ (sqrt 2.0) (cos th)))

simplify32.0ms

Algorithm
egg-herbie
Counts
20 → 20
Iterations

Useful iterations: 3 (29.0ms)

IterNodesCost
08593
124192
275787
3500277

prune51.0ms

Filtered
20 candidates to 11 candidates (55.0%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New16420
Fresh134
Picked011
Done101
Total18826

Merged error: 0.2b

Counts
26 → 8

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(fma a1 a1 (* a2 a2))
0.1b
(/ 1 (cos th))
0.3b
(* (sqrt 2.0) (/ 1 (cos th)))
0.4b
(/ (fma a1 a1 (* a2 a2)) (* (sqrt 2.0) (/ 1 (cos th))))

rewrite11.0ms

Algorithm
rewrite-expression-head
Rules
associate-*r/ clear-num
associate-/r/
frac-2neg un-div-inv div-inv
associate-/r*
associate-*r* *-commutative
fma-udef inv-pow
Counts
4 → 23
Calls
4 calls:
1.0ms
(fma a1 a1 (* a2 a2))
2.0ms
(/ 1 (cos th))
4.0ms
(* (sqrt 2.0) (/ 1 (cos th)))
4.0ms
(/ (fma a1 a1 (* a2 a2)) (* (sqrt 2.0) (/ 1 (cos th))))

series256.0ms

Counts
4 → 12
Calls
4 calls:
34.0ms
(fma a1 a1 (* a2 a2))
14.0ms
(/ 1 (cos th))
40.0ms
(* (sqrt 2.0) (/ 1 (cos th)))
168.0ms
(/ (fma a1 a1 (* a2 a2)) (* (sqrt 2.0) (/ 1 (cos th))))

simplify70.0ms

Algorithm
egg-herbie
Counts
35 → 35
Iterations

Useful iterations: 2 (14.0ms)

IterNodesCost
0110126
1473120
22292106
35002106

prune61.0ms

Filtered
35 candidates to 15 candidates (42.9%)
Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New33235
Fresh246
Picked011
Done011
Total35843

Merged error: 0.2b

Counts
43 → 8

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(fma a1 a1 (* a2 a2))
0.2b
(* (/ (fma a1 a1 (* a2 a2)) (sqrt 2.0)) (cos th))
0.4b
(/ (fma a1 a1 (* a2 a2)) (sqrt 2.0))

rewrite6.0ms

Algorithm
rewrite-expression-head
Rules
associate-*l/
frac-2neg clear-num div-inv
associate-*l* *-commutative fma-udef
Counts
3 → 9
Calls
3 calls:
1.0ms
(fma a1 a1 (* a2 a2))
3.0ms
(* (/ (fma a1 a1 (* a2 a2)) (sqrt 2.0)) (cos th))
2.0ms
(/ (fma a1 a1 (* a2 a2)) (sqrt 2.0))

series300.0ms

Counts
3 → 9
Calls
3 calls:
34.0ms
(fma a1 a1 (* a2 a2))
167.0ms
(* (/ (fma a1 a1 (* a2 a2)) (sqrt 2.0)) (cos th))
99.0ms
(/ (fma a1 a1 (* a2 a2)) (sqrt 2.0))

simplify120.0ms

Algorithm
egg-herbie
Counts
18 → 18
Iterations

Useful iterations: 3 (22.0ms)

IterNodesCost
05381
118781
275779
3384467
4500167

prune30.0ms

Filtered
18 candidates to 9 candidates (50.0%)
Pruning

8 alts after pruning (5 fresh and 3 done)

PrunedKeptTotal
New17118
Fresh145
Picked011
Done022
Total18826

Merged error: 0.2b

Counts
26 → 8

regimes186.0ms

Accuracy

0% (0.2b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0106

end0.0ms

sample2.4s

Algorithm
intervals
Results
865.0ms2566×body1280valid
497.0ms2102×body640valid
433.0ms8126×body80valid
172.0ms1026×body320valid
57.0ms506×body160valid