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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[3];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a... |
The wrong part of the code is:
o0 = in[3];
The right code snippet is:
o0 = in[0]; | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[3];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a,
... |
The right code snippet is:
o0 = in[0]; | '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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[3];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(... |
The wrong part of the code is:
o0 = in[3];
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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[3];
o1 = in[1];
o2 ... |
The wrong part of the code is:
o0 = in[3];
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
o0 = in[0]; | '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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a... |
The wrong part of the code is:
bool temp1 = false, temp2 = true;
The right code snippet is:
bool temp1, temp2; | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a,
... |
The right code snippet is:
bool temp1, temp2; | '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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(... |
The wrong part of the code is:
bool temp1 = false, temp2 = true;
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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 ... |
The wrong part of the code is:
bool temp1 = false, temp2 = true;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
bool temp1, temp2; | '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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a... |
The wrong part of the code is:
nand(temp2, temp1, -1);
The right code snippet is:
nand(temp2, temp1, temp1); | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a,
... |
The right code snippet is:
nand(temp2, temp1, temp1); | '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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(... |
The wrong part of the code is:
nand(temp2, temp1, -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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 ... |
The wrong part of the code is:
nand(temp2, temp1, -1);
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
nand(temp2, temp1, temp1); | '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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a... |
The wrong part of the code is:
for(int i=0; i>=0; i++)
The right code snippet is:
for(int i=0; i<10; i++) | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a,
... |
The right code snippet is:
for(int i=0; i<10; 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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(... |
The wrong part of the code is:
for(int i=0; i>=0; 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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 ... |
The wrong part of the code is:
for(int i=0; i>=0; i++)
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
for(int i=0; i<10; 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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a... |
The wrong part of the code is:
unsigned char temp1, temp2;
The right code snippet is:
bool temp1, temp2; | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a,
... |
The right code snippet is:
bool temp1, temp2; | '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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(... |
The wrong part of the code is:
unsigned char temp1, temp2;
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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 ... |
The wrong part of the code is:
unsigned char temp1, temp2;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
bool temp1, temp2; | '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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a... |
The wrong part of the code is:
nor_gate_using_nand(o0, o1, out_wire);
nor_gate_using_nand(o0, o1, out_wire);
nor_gate_using_nand(o0, o1, out_wire);
The right code snippet is:
nor_gate_using_nand(o0, o1, out_wire); | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a,
... |
The right code snippet is:
nor_gate_using_nand(o0, o1, out_wire); | '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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(... |
The wrong part of the code is:
nor_gate_using_nand(o0, o1, out_wire);
nor_gate_using_nand(o0, o1, out_wire);
nor_gate_using_nand(o0, o1, out_wire);
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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 ... |
The wrong part of the code is:
nor_gate_using_nand(o0, o1, out_wire);
nor_gate_using_nand(o0, o1, out_wire);
nor_gate_using_nand(o0, o1, out_wire);
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
nor_gate_using_nand(o0, o1, out_wire); | '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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a... |
The wrong part of the code is:
bool temp1 = 0, temp2 = 0;
The right code snippet is:
bool temp1, temp2; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a,
... |
The right code snippet is:
bool temp1, temp2; | '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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(... |
The wrong part of the code is:
bool temp1 = 0, temp2 = 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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 ... |
The wrong part of the code is:
bool temp1 = 0, temp2 = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
bool temp1, temp2; | '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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a... |
The wrong part of the code is:
binary_to_3bit_decoder(vec + 1, o0, o1, o2);
The right code snippet is:
binary_to_3bit_decoder(vec, o0, o1, o2); | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a,
... |
The right code snippet is:
binary_to_3bit_decoder(vec, o0, o1, o2); | '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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(... |
The wrong part of the code is:
binary_to_3bit_decoder(vec + 1, o0, o1, o2);
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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 ... |
The wrong part of the code is:
binary_to_3bit_decoder(vec + 1, o0, o1, o2);
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
binary_to_3bit_decoder(vec, o0, o1, o2); | '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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a... |
The wrong part of the code is:
#pragma HLS array_partition variable=o0 cyclic
The right code snippet is:
#pragma HLS array_partition variable=o0 complete | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a,
... |
The right code snippet is:
#pragma HLS array_partition variable=o0 complete | '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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(... |
The wrong part of the code is:
#pragma HLS array_partition variable=o0 cyclic
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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 ... |
The wrong part of the code is:
#pragma HLS array_partition variable=o0 cyclic
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=o0 complete | '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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a... |
The wrong part of the code is:
#pragma HLS array_partition variable=o0 factor=3
The right code snippet is:
#pragma HLS array_partition variable=o0 complete | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a,
... |
The right code snippet is:
#pragma HLS array_partition variable=o0 complete | '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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(... |
The wrong part of the code is:
#pragma HLS array_partition variable=o0 factor=3
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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 ... |
The wrong part of the code is:
#pragma HLS array_partition variable=o0 factor=3
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=o0 complete | '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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a... |
The wrong part of the code is:
#pragma HLS array_partition variable=o0 complete dim=2
The right code snippet is:
#pragma HLS array_partition variable=o0 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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a,
... |
The right code snippet is:
#pragma HLS array_partition variable=o0 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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(... |
The wrong part of the code is:
#pragma HLS array_partition variable=o0 complete dim=2
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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 ... |
The wrong part of the code is:
#pragma HLS array_partition variable=o0 complete dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=o0 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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a... |
The wrong part of the code is:
#pragma HLS dataflow loop_flatten
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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a,
... |
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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(... |
The wrong part of the code is:
#pragma HLS dataflow loop_flatten
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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 ... |
The wrong part of the code is:
#pragma HLS dataflow loop_flatten
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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=out
The right code snippet is:
#pragma HLS interface ap_none port=out | 'IDAP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a,
... |
The right code snippet is:
#pragma HLS interface ap_none port=out | '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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=out
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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 ... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=out
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_none port=out | '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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a... |
The wrong part of the code is:
#pragma HLS interface m_axi port=out offset=slave bundle=random_access
The right code snippet is:
#pragma HLS interface m_axi port=out 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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a,
... |
The right code snippet is:
#pragma HLS interface m_axi port=out 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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(... |
The wrong part of the code is:
#pragma HLS interface m_axi port=out offset=slave bundle=random_access
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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 ... |
The wrong part of the code is:
#pragma HLS interface m_axi port=out offset=slave bundle=random_access
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS interface m_axi port=out 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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a... |
The wrong part of the code is:
#pragma HLS interface bram port=in
The right code snippet is:
#pragma HLS interface ap_none port=in | 'SMA' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a,
... |
The right code snippet is:
#pragma HLS interface ap_none port=in | '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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(... |
The wrong part of the code is:
#pragma HLS interface bram port=in
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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 ... |
The wrong part of the code is:
#pragma HLS interface bram port=in
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS interface ap_none port=in | '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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=vec
The right code snippet is:
#pragma HLS interface ap_fifo port=vec | 'AMS' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a,
... |
The right code snippet is:
#pragma HLS interface ap_fifo port=vec | '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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=vec
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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 ... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=vec
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS interface ap_fifo port=vec | '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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a... |
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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a,
... |
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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(... |
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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 ... |
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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a... |
The wrong part of the code is:
#pragma HLS unroll factor=2
The right code snippet is:
#pragma HLS unroll | 'ILNU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(
bool a,
... |
The right code snippet is:
#pragma HLS unroll | '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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 = in[2];
}
void nor_gate_using_nand(... |
The wrong part of the code is:
#pragma HLS unroll factor=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 binary_to_3bit_decoder(
ap_uint<3> in,
bool& o0,
bool& o1,
bool& o2
) {
o0 = in[0];
o1 = in[1];
o2 ... |
The wrong part of the code is:
#pragma HLS unroll factor=2
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
#pragma HLS unroll | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HL... |
The wrong part of the code is:
Q = Q_reg2 + 2;
The right code snippet is:
Q = Q_reg2 + 1; | OOB |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INT... |
The right code snippet is:
Q = Q_reg2 + 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:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The wrong part of the code is:
Q = Q_reg2 + 2;
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:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS I... |
The wrong part of the code is:
Q = Q_reg2 + 2;
The high-level-synthesis bug type of the code is: OOB
The right code snippet is:
Q = Q_reg2 + 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:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HL... |
The wrong part of the code is:
ap_uint<2> Q_reg1, Q_reg2;
The right code snippet is:
static ap_uint<2> Q_reg1, Q_reg2; | INIT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INT... |
The right code snippet is:
static ap_uint<2> Q_reg1, Q_reg2; | 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:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The wrong part of the code is:
ap_uint<2> Q_reg1, Q_reg2;
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:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS I... |
The wrong part of the code is:
ap_uint<2> Q_reg1, Q_reg2;
The high-level-synthesis bug type of the code is: INIT
The right code snippet is:
static ap_uint<2> Q_reg1, Q_reg2; | INIT |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HL... |
The wrong part of the code is:
Q = Q_reg2 << 3;
The right code snippet is:
Q = Q_reg2 + 1; | SHFT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INT... |
The right code snippet is:
Q = Q_reg2 + 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:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The wrong part of the code is:
Q = Q_reg2 << 3;
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:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS I... |
The wrong part of the code is:
Q = Q_reg2 << 3;
The high-level-synthesis bug type of the code is: SHFT
The right code snippet is:
Q = Q_reg2 + 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:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HL... |
The wrong part of the code is:
if (RESET) {
while (1) {}
}
else if (LOAD) {
Q = DATA;
}
else {
Q = Q_reg2 + 1;
}
The right code snippet is:
if (RESET) {
Q = 0;
}
else if (LOAD) {
Q = DATA;
}
else {
Q = Q_reg2 + 1;
} | INF |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INT... |
The right code snippet is:
if (RESET) {
Q = 0;
}
else if (LOAD) {
Q = DATA;
}
else {
Q = Q_reg2 + 1;
} | 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:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The wrong part of the code is:
if (RESET) {
while (1) {}
}
else if (LOAD) {
Q = DATA;
}
else {
Q = Q_reg2 + 1;
}
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:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS I... |
The wrong part of the code is:
if (RESET) {
while (1) {}
}
else if (LOAD) {
Q = DATA;
}
else {
Q = Q_reg2 + 1;
}
The high-level-synthesis bug type of the code is: INF
The right code snippet is:
if (RESET) {
Q = 0;
}
else if (LOAD) {
Q = DATA;
}
else {
Q = Q_reg2 + 1;
} | INF |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HL... |
The wrong part of the code is:
Q = (ap_int<2>)Q_reg2 + 1;
The right code snippet is:
Q = Q_reg2 + 1; | USE |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INT... |
The right code snippet is:
Q = Q_reg2 + 1; | 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:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The wrong part of the code is:
Q = (ap_int<2>)Q_reg2 + 1;
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:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS I... |
The wrong part of the code is:
Q = (ap_int<2>)Q_reg2 + 1;
The high-level-synthesis bug type of the code is: USE
The right code snippet is:
Q = Q_reg2 + 1; | USE |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HL... |
The wrong part of the code is:
Q_reg1 = Q;
Q_reg2 = Q;
The right code snippet is:
Q_reg1 = Q;
Q_reg2 = Q_reg1; | MLU |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INT... |
The right code snippet is:
Q_reg1 = Q;
Q_reg2 = Q_reg1; | 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:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The wrong part of the code is:
Q_reg1 = Q;
Q_reg2 = Q;
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:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS I... |
The wrong part of the code is:
Q_reg1 = Q;
Q_reg2 = Q;
The high-level-synthesis bug type of the code is: MLU
The right code snippet is:
Q_reg1 = Q;
Q_reg2 = Q_reg1; | MLU |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HL... |
The wrong part of the code is:
if (RESET) {
Q = 1;
}
The right code snippet is:
if (RESET) {
Q = 0;
} | ZERO |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INT... |
The right code snippet is:
if (RESET) {
Q = 0;
} | 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:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The wrong part of the code is:
if (RESET) {
Q = 1;
}
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:
#include <ap_int.h>
void counter(ap_uint<1> clk, ap_uint<1> LOAD, ap_uint<1> RESET, ap_uint<2> DATA, ap_uint<2> &Q) {
#pragma HLS I... |
The wrong part of the code is:
if (RESET) {
Q = 1;
}
The high-level-synthesis bug type of the code is: ZERO
The right code snippet is:
if (RESET) {
Q = 0;
} | ZERO |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.