instruction stringlengths 139 357k | response stringlengths 36 4.54k | buggy_type stringclasses 745
values |
|---|---|---|
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The right code snippet is:
#pragma HLS pipeline | 'MLP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS INTE... |
The right code snippet is:
#pragma HLS pipeline | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The high-level-synthesis bug type of the code is: 'MLP' | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The high-level-synthesis bug type of the code is: 'MLP'
The right code snippet is:
#pragma HLS pipeline | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS... |
The wrong part of the code is:
for (int i = 0; i < 2; i+=2) {
The right code snippet is:
for (int i = 0; i < 3; i++) { | 'ILNU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS INTE... |
The right code snippet is:
for (int i = 0; i < 3; i++) { | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
... |
The wrong part of the code is:
for (int i = 0; i < 2; i+=2) {
The high-level-synthesis bug type of the code is: 'ILNU' | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port... |
The wrong part of the code is:
for (int i = 0; i < 2; i+=2) {
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
for (int i = 0; i < 3; i++) { | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite po... |
The wrong part of the code is:
Y = (!S & A[1]) | (S & B);
The right code snippet is:
Y = (!S & A) | (S & B); | OOB |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite port=B
... |
The right code snippet is:
Y = (!S & A) | (S & B); | OOB |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s... |
The wrong part of the code is:
Y = (!S & A[1]) | (S & B);
The high-level-synthesis bug type of the code is: OOB | OOB |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axili... |
The wrong part of the code is:
Y = (!S & A[1]) | (S & B);
The high-level-synthesis bug type of the code is: OOB
The right code snippet is:
Y = (!S & A) | (S & B); | OOB |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S; bool Y;) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite po... |
The wrong part of the code is:
bool A, bool B, bool S; bool Y;
The right code snippet is:
bool A, bool B, bool S, bool &Y | INIT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void mux2to1(bool A, bool B, bool S; bool Y;) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite port=B
... |
The right code snippet is:
bool A, bool B, bool S, bool &Y | INIT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void mux2to1(bool A, bool B, bool S; bool Y;) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s... |
The wrong part of the code is:
bool A, bool B, bool S; bool Y;
The high-level-synthesis bug type of the code is: INIT | INIT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S; bool Y;) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axili... |
The wrong part of the code is:
bool A, bool B, bool S; bool Y;
The high-level-synthesis bug type of the code is: INIT
The right code snippet is:
bool A, bool B, bool S, bool &Y | INIT |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite po... |
The wrong part of the code is:
Y = (!S << A) | (S >> B);
The right code snippet is:
Y = (!S & A) | (S & B); | SHFT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite port=B
... |
The right code snippet is:
Y = (!S & A) | (S & B); | SHFT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s... |
The wrong part of the code is:
Y = (!S << A) | (S >> B);
The high-level-synthesis bug type of the code is: SHFT | SHFT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axili... |
The wrong part of the code is:
Y = (!S << A) | (S >> B);
The high-level-synthesis bug type of the code is: SHFT
The right code snippet is:
Y = (!S & A) | (S & B); | SHFT |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
while(true) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTE... |
The wrong part of the code is:
void mux2to1(bool A, bool B, bool S, bool &Y) {
while(true) {
The right code snippet is:
void mux2to1(bool A, bool B, bool S, bool &Y) { | INF |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
while(true) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE... |
The right code snippet is:
void mux2to1(bool A, bool B, bool S, bool &Y) { | INF |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
while(true) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#prag... |
The wrong part of the code is:
void mux2to1(bool A, bool B, bool S, bool &Y) {
while(true) {
The high-level-synthesis bug type of the code is: INF | INF |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
while(true) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
void mux2to1(bool A, bool B, bool S, bool &Y) {
while(true) {
The high-level-synthesis bug type of the code is: INF
The right code snippet is:
void mux2to1(bool A, bool B, bool S, bool &Y) { | INF |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite po... |
The wrong part of the code is:
Y = (!S & (signed int)A) | (S & (signed int)B);
The right code snippet is:
Y = (!S & A) | (S & B); | USE |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite port=B
... |
The right code snippet is:
Y = (!S & A) | (S & B); | USE |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s... |
The wrong part of the code is:
Y = (!S & (signed int)A) | (S & (signed int)B);
The high-level-synthesis bug type of the code is: USE | USE |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axili... |
The wrong part of the code is:
Y = (!S & (signed int)A) | (S & (signed int)B);
The high-level-synthesis bug type of the code is: USE
The right code snippet is:
Y = (!S & A) | (S & B); | USE |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite po... |
The wrong part of the code is:
Y = (!S & A) | (S & B);
Y = (!S & A) | (S & B);
The right code snippet is:
Y = (!S & A) | (S & B); | MLU |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite port=B
... |
The right code snippet is:
Y = (!S & A) | (S & B); | MLU |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s... |
The wrong part of the code is:
Y = (!S & A) | (S & B);
Y = (!S & A) | (S & B);
The high-level-synthesis bug type of the code is: MLU | MLU |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axili... |
The wrong part of the code is:
Y = (!S & A) | (S & B);
Y = (!S & A) | (S & B);
The high-level-synthesis bug type of the code is: MLU
The right code snippet is:
Y = (!S & A) | (S & B); | MLU |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A=0, bool B=0, bool S=0, bool Y=0;) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_ax... |
The wrong part of the code is:
bool A=0, bool B=0, bool S=0, bool Y=0;
The right code snippet is:
bool A, bool B, bool S, bool &Y | ZERO |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void mux2to1(bool A=0, bool B=0, bool S=0, bool Y=0;) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite... |
The right code snippet is:
bool A, bool B, bool S, bool &Y | ZERO |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void mux2to1(bool A=0, bool B=0, bool S=0, bool Y=0;) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INT... |
The wrong part of the code is:
bool A=0, bool B=0, bool S=0, bool Y=0;
The high-level-synthesis bug type of the code is: ZERO | ZERO |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A=0, bool B=0, bool S=0, bool Y=0;) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE... |
The wrong part of the code is:
bool A=0, bool B=0, bool S=0, bool Y=0;
The high-level-synthesis bug type of the code is: ZERO
The right code snippet is:
bool A, bool B, bool S, bool &Y | ZERO |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite po... |
The wrong part of the code is:
Y = (!S & B) | (S & A);
The right code snippet is:
Y = (!S & A) | (S & B); | BUF |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite port=B
... |
The right code snippet is:
Y = (!S & A) | (S & B); | BUF |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s... |
The wrong part of the code is:
Y = (!S & B) | (S & A);
The high-level-synthesis bug type of the code is: BUF | BUF |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axili... |
The wrong part of the code is:
Y = (!S & B) | (S & A);
The high-level-synthesis bug type of the code is: BUF
The right code snippet is:
Y = (!S & A) | (S & B); | BUF |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite po... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=A cyclic dim=1
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=A complete dim=1 | APT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite port=B
... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=A complete dim=1 | APT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=A cyclic dim=1
The high-level-synthesis bug type of the code is: APT | APT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axili... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=A cyclic dim=1
The high-level-synthesis bug type of the code is: APT
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=A complete dim=1 | APT |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite po... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=A complete dim=2
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=A complete dim=1 | FND |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite port=B
... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=A complete dim=1 | FND |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=A complete dim=2
The high-level-synthesis bug type of the code is: FND | FND |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axili... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=A complete dim=2
The high-level-synthesis bug type of the code is: FND
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=A complete dim=1 | FND |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite po... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=A complete dim=3
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=A complete dim=1 | DID |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite port=B
... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=A complete dim=1 | DID |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=A complete dim=3
The high-level-synthesis bug type of the code is: DID | DID |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axili... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=A complete dim=3
The high-level-synthesis bug type of the code is: DID
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=A complete dim=1 | DID |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite po... |
The wrong part of the code is:
#pragma HLS DATAFLOW off
The right code snippet is:
#pragma HLS DATAFLOW | DFP |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite port=B
... |
The right code snippet is:
#pragma HLS DATAFLOW | DFP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s... |
The wrong part of the code is:
#pragma HLS DATAFLOW off
The high-level-synthesis bug type of the code is: DFP | DFP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axili... |
The wrong part of the code is:
#pragma HLS DATAFLOW off
The high-level-synthesis bug type of the code is: DFP
The right code snippet is:
#pragma HLS DATAFLOW | DFP |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE m_axilite port=A
#pragma HLS INTERFACE s_axilite po... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axilite port=A
The right code snippet is:
#pragma HLS INTERFACE s_axilite port=A | IDAP |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE m_axilite port=A
#pragma HLS INTERFACE s_axilite port=B
... |
The right code snippet is:
#pragma HLS INTERFACE s_axilite port=A | IDAP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE m_axilite port=A
#pragma HLS INTERFACE s... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axilite port=A
The high-level-synthesis bug type of the code is: IDAP | IDAP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE m_axili... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axilite port=A
The high-level-synthesis bug type of the code is: IDAP
The right code snippet is:
#pragma HLS INTERFACE s_axilite port=A | IDAP |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite po... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi depth=50 port=A offset=ramdom
The right code snippet is:
#pragma HLS INTERFACE m_axi depth=50 port=A offset=slave | RAMB |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite port=B
... |
The right code snippet is:
#pragma HLS INTERFACE m_axi depth=50 port=A offset=slave | RAMB |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi depth=50 port=A offset=ramdom
The high-level-synthesis bug type of the code is: RAMB | RAMB |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axili... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi depth=50 port=A offset=ramdom
The high-level-synthesis bug type of the code is: RAMB
The right code snippet is:
#pragma HLS INTERFACE m_axi depth=50 port=A offset=slave | RAMB |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite po... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=A
The right code snippet is:
#pragma HLS INTERFACE ap_memory port=A | SMA |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite port=B
... |
The right code snippet is:
#pragma HLS INTERFACE ap_memory port=A | SMA |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=A
The high-level-synthesis bug type of the code is: SMA | SMA |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axili... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=A
The high-level-synthesis bug type of the code is: SMA
The right code snippet is:
#pragma HLS INTERFACE ap_memory port=A | SMA |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE s_axilite port=B
... |
The wrong part of the code is:
#pragma HLS INTERFACE axis port=A
The right code snippet is:
#pragma HLS INTERFACE s_axilite port=A | AMS |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE s_axilite port=B
#... |
The right code snippet is:
#pragma HLS INTERFACE s_axilite port=A | AMS |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
#pragma HLS INTERFACE axis port=A
The high-level-synthesis bug type of the code is: AMS | AMS |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis po... |
The wrong part of the code is:
#pragma HLS INTERFACE axis port=A
The high-level-synthesis bug type of the code is: AMS
The right code snippet is:
#pragma HLS INTERFACE s_axilite port=A | AMS |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite po... |
The wrong part of the code is:
#pragma HLS PIPELINE II=2
The right code snippet is:
#pragma HLS PIPELINE II=1 | MLP |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite port=B
... |
The right code snippet is:
#pragma HLS PIPELINE II=1 | MLP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s... |
The wrong part of the code is:
#pragma HLS PIPELINE II=2
The high-level-synthesis bug type of the code is: MLP | MLP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axili... |
The wrong part of the code is:
#pragma HLS PIPELINE II=2
The high-level-synthesis bug type of the code is: MLP
The right code snippet is:
#pragma HLS PIPELINE II=1 | MLP |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite po... |
The wrong part of the code is:
for(int i=0; i<2; i++){
Y = (!S & A[i]) | (S & B[i]);
}
The right code snippet is:
Y = (!S & A) | (S & B); | ILNU |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s_axilite port=B
... |
The right code snippet is:
Y = (!S & A) | (S & B); | ILNU |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=A
#pragma HLS INTERFACE s... |
The wrong part of the code is:
for(int i=0; i<2; i++){
Y = (!S & A[i]) | (S & B[i]);
}
The high-level-synthesis bug type of the code is: ILNU | ILNU |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void mux2to1(bool A, bool B, bool S, bool &Y) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axili... |
The wrong part of the code is:
for(int i=0; i<2; i++){
Y = (!S & A[i]) | (S & B[i]);
}
The high-level-synthesis bug type of the code is: ILNU
The right code snippet is:
Y = (!S & A) | (S & B); | ILNU |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void adder_8bit (int a[8], int b[8], int s[8], bool& overflow) {
int c[9];
int g[9];
int p[9];
int e[9];
int f[9];
g[0] = 0;
p[0] = 0;
for (int i ... |
The wrong part of the code is:
g[i] = a[i-2] & b[i-1];
The right code snippet is:
g[i] = a[i-1] & b[i-1]; | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void adder_8bit (int a[8], int b[8], int s[8], bool& overflow) {
int c[9];
int g[9];
int p[9];
int e[9];
int f[9];
g[0] = 0;
p[0] = 0;
for (int i = 1; ... |
The right code snippet is:
g[i] = a[i-1] & b[i-1]; | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void adder_8bit (int a[8], int b[8], int s[8], bool& overflow) {
int c[9];
int g[9];
int p[9];
int e[9];
int f[9];
g[0] = 0;
p[0] = 0;
... |
The wrong part of the code is:
g[i] = a[i-2] & b[i-1];
The high-level-synthesis bug type of the code is: 'OOB' | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void adder_8bit (int a[8], int b[8], int s[8], bool& overflow) {
int c[9];
int g[9];
int p[9];
int e[9];
int f[9... |
The wrong part of the code is:
g[i] = a[i-2] & b[i-1];
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
g[i] = a[i-1] & b[i-1]; | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void adder_8bit (int a[8], int b[8], int s[8], bool& overflow) {
int c[9] = {0};
int g[9];
int p[9];
int e[9];
int f[9];
g[0] = 0;
p[0] = 0;
for (... |
The wrong part of the code is:
int c[9] = {0};
The right code snippet is:
int c[9]; | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void adder_8bit (int a[8], int b[8], int s[8], bool& overflow) {
int c[9] = {0};
int g[9];
int p[9];
int e[9];
int f[9];
g[0] = 0;
p[0] = 0;
for (int i... |
The right code snippet is:
int c[9]; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void adder_8bit (int a[8], int b[8], int s[8], bool& overflow) {
int c[9] = {0};
int g[9];
int p[9];
int e[9];
int f[9];
g[0] = 0;
p[0] = 0;... |
The wrong part of the code is:
int c[9] = {0};
The high-level-synthesis bug type of the code is: 'INIT' | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void adder_8bit (int a[8], int b[8], int s[8], bool& overflow) {
int c[9] = {0};
int g[9];
int p[9];
int e[9];
i... |
The wrong part of the code is:
int c[9] = {0};
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
int c[9]; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void adder_8bit (int a[8], int b[8], int s[8], bool& overflow) {
int c[9];
int g[9];
int p[9];
int e[9];
int f[9];
g[0] = 0;
p[0] = 0;
for (int i ... |
The wrong part of the code is:
e[i] = g[i-1] | (p[i-1] << e[i-1]);
The right code snippet is:
e[i] = g[i-1] | (p[i-1] & e[i-1]); | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void adder_8bit (int a[8], int b[8], int s[8], bool& overflow) {
int c[9];
int g[9];
int p[9];
int e[9];
int f[9];
g[0] = 0;
p[0] = 0;
for (int i = 1; ... |
The right code snippet is:
e[i] = g[i-1] | (p[i-1] & e[i-1]); | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void adder_8bit (int a[8], int b[8], int s[8], bool& overflow) {
int c[9];
int g[9];
int p[9];
int e[9];
int f[9];
g[0] = 0;
p[0] = 0;
... |
The wrong part of the code is:
e[i] = g[i-1] | (p[i-1] << e[i-1]);
The high-level-synthesis bug type of the code is: 'SHFT' | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void adder_8bit (int a[8], int b[8], int s[8], bool& overflow) {
int c[9];
int g[9];
int p[9];
int e[9];
int f[9... |
The wrong part of the code is:
e[i] = g[i-1] | (p[i-1] << e[i-1]);
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
e[i] = g[i-1] | (p[i-1] & e[i-1]); | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void adder_8bit (int a[8], int b[8], int s[8], bool& overflow) {
int c[9];
int g[9];
int p[9];
int e[9];
int f[9];
g[0] = 0;
p[0] = 0;
for (int i ... |
The wrong part of the code is:
for (int i = 1; i >= 8; i++) {
The right code snippet is:
for (int i = 1; i <= 8; i++) { | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void adder_8bit (int a[8], int b[8], int s[8], bool& overflow) {
int c[9];
int g[9];
int p[9];
int e[9];
int f[9];
g[0] = 0;
p[0] = 0;
for (int i = 1; ... |
The right code snippet is:
for (int i = 1; i <= 8; i++) { | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void adder_8bit (int a[8], int b[8], int s[8], bool& overflow) {
int c[9];
int g[9];
int p[9];
int e[9];
int f[9];
g[0] = 0;
p[0] = 0;
... |
The wrong part of the code is:
for (int i = 1; i >= 8; i++) {
The high-level-synthesis bug type of the code is: 'INF' | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void adder_8bit (int a[8], int b[8], int s[8], bool& overflow) {
int c[9];
int g[9];
int p[9];
int e[9];
int f[9... |
The wrong part of the code is:
for (int i = 1; i >= 8; i++) {
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
for (int i = 1; i <= 8; i++) { | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void adder_8bit (int a[8], int b[8], int s[8], bool& overflow) {
int c[9];
unsigned int g[9];
int p[9];
int e[9];
int f[9];
g[0] = 0;
p[0] = 0;
fo... |
The wrong part of the code is:
unsigned int g[9];
The right code snippet is:
int g[9]; | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void adder_8bit (int a[8], int b[8], int s[8], bool& overflow) {
int c[9];
unsigned int g[9];
int p[9];
int e[9];
int f[9];
g[0] = 0;
p[0] = 0;
for (in... |
The right code snippet is:
int g[9]; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void adder_8bit (int a[8], int b[8], int s[8], bool& overflow) {
int c[9];
unsigned int g[9];
int p[9];
int e[9];
int f[9];
g[0] = 0;
p[0] =... |
The wrong part of the code is:
unsigned int g[9];
The high-level-synthesis bug type of the code is: 'USE' | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void adder_8bit (int a[8], int b[8], int s[8], bool& overflow) {
int c[9];
unsigned int g[9];
int p[9];
int e[9];
... |
The wrong part of the code is:
unsigned int g[9];
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
int g[9]; | 'USE' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.