Skip to content

Commit

Permalink
Updated .data file
Browse files Browse the repository at this point in the history
  • Loading branch information
KabirSamsi committed Jul 17, 2024
1 parent b9eed83 commit 1080453
Show file tree
Hide file tree
Showing 3 changed files with 227 additions and 12 deletions.
123 changes: 122 additions & 1 deletion calyx-py/test/correctness/queues/binheap/binheap.data
Original file line number Diff line number Diff line change
@@ -1,6 +1,127 @@
{
"out": {
"commands": {
"data": [
4,
2,
2,
4,
0,
3,
1,
0,
1,
0,
2,
3,
1,
3,
4,
0,
4,
1,
0,
1
],
"format": {
"is_signed": false,
"numeric_type": "bitnum",
"width": 3
}
},
"values": {
"data": [
208,
143,
93,
392,
199,
81,
390,
36,
71,
316,
316,
227,
64,
67,
0,
2,
107,
396,
110,
84
],
"format": {
"is_signed": false,
"numeric_type": "bitnum",
"width": 32
}
},
"ranks": {
"data": [
85,
148,
160,
101,
276,
347,
320,
104,
93,
353,
100,
196,
152,
11,
184,
212,
84,
74,
135,
33
],
"format": {
"is_signed": false,
"numeric_type": "bitnum",
"width": 32
}
},
"times": {
"data": [
21,
19,
38,
37,
0,
38,
43,
45,
21,
4,
19,
22,
19,
30,
44,
20,
11,
30,
30,
45
],
"format": {
"is_signed": false,
"numeric_type": "bitnum",
"width": 32
}
},
"ans_mem": {
"data": [
0,
0,
0,
0,
0,
0,
0,
0,
Expand Down
113 changes: 103 additions & 10 deletions calyx-py/test/correctness/queues/binheap/binheap.expect
Original file line number Diff line number Diff line change
@@ -1,19 +1,112 @@
{
"out": [
3,
6,
6,
8,
9,
9,
10,
12,
3,
"ans_mem": [
143,
143,
316,
316,
93,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"commands": [
4,
2,
2,
4,
0,
3,
1,
0,
1,
0,
2,
3,
1,
3,
4,
0,
4,
1,
0,
1
],
"ranks": [
85,
148,
160,
101,
276,
347,
320,
104,
93,
353,
100,
196,
152,
11,
184,
212,
84,
74,
135,
33
],
"values": [
208,
143,
93,
392,
199,
81,
390,
36,
71,
316,
316,
227,
64,
67,
0,
2,
107,
396,
110,
84
],
"times": [
21,
19,
38,
37,
0,
38,
43,
45,
21,
4,
19,
22,
19,
30,
44,
20,
11,
30,
30,
45
]
}
3 changes: 2 additions & 1 deletion calyx-py/test/correctness/queues/binheap/binheap_pieo.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def insert_pieo(prog, name, val_queue, time_queue, rank_queue, queue_len, stats=
decr_num_elements = pieo.decr(num_elements)
incr_replace_tracker = pieo.incr(replace_tracker)


#Functions for then necessary PIEO functionality

def push():
"""
Pushes an element into the PIEO.
Expand Down

0 comments on commit 1080453

Please sign in to comment.