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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> PARAM1 = 0;...
The wrong part of the code is: const ap_uint<32> PARAM1 = 0; The right code snippet is: const ap_uint<32> PARAM1 = 32'h00000000;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> PARAM1 = 0; ...
The right code snippet is: const ap_uint<32> PARAM1 = 32'h00000000;
'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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> ...
The wrong part of the code is: const ap_uint<32> PARAM1 = 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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //...
The wrong part of the code is: const ap_uint<32> PARAM1 = 0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: const ap_uint<32> PARAM1 = 32'h00000000;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> PARAM1 = 32...
The wrong part of the code is: ap_uint<8> temp_reg_buf[2]; temp_reg = temp_reg_buf[1]; The right code snippet is: ap_uint<8> temp_reg;
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> PARAM1 = 32'h000...
The right code snippet is: ap_uint<8> temp_reg;
'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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> ...
The wrong part of the code is: ap_uint<8> temp_reg_buf[2]; temp_reg = temp_reg_buf[1]; 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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //...
The wrong part of the code is: ap_uint<8> temp_reg_buf[2]; temp_reg = temp_reg_buf[1]; The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: ap_uint<8> temp_reg;
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> PARAM1 = 32...
The wrong part of the code is: #pragma HLS array_partition variable=temp_reg cyclic dim=0 The right code snippet is: #pragma HLS array_partition variable=temp_reg complete dim=0
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> PARAM1 = 32'h000...
The right code snippet is: #pragma HLS array_partition variable=temp_reg complete dim=0
'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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> ...
The wrong part of the code is: #pragma HLS array_partition variable=temp_reg cyclic dim=0 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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //...
The wrong part of the code is: #pragma HLS array_partition variable=temp_reg cyclic dim=0 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=temp_reg complete dim=0
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> PARAM1 = 32...
The wrong part of the code is: #pragma HLS array_partition variable=temp_reg complete factor=2 dim=0 The right code snippet is: #pragma HLS array_partition variable=temp_reg complete dim=0
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> PARAM1 = 32'h000...
The right code snippet is: #pragma HLS array_partition variable=temp_reg complete dim=0
'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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> ...
The wrong part of the code is: #pragma HLS array_partition variable=temp_reg complete factor=2 dim=0 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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //...
The wrong part of the code is: #pragma HLS array_partition variable=temp_reg complete factor=2 dim=0 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS array_partition variable=temp_reg complete dim=0
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> PARAM1 = 32...
The wrong part of the code is: #pragma HLS array_partition variable=temp_reg complete dim=1 The right code snippet is: #pragma HLS array_partition variable=temp_reg complete dim=0
'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> PARAM1 = 32'h000...
The right code snippet is: #pragma HLS array_partition variable=temp_reg complete dim=0
'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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> ...
The wrong part of the code is: #pragma HLS array_partition variable=temp_reg complete dim=1 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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //...
The wrong part of the code is: #pragma HLS array_partition variable=temp_reg complete dim=1 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS array_partition variable=temp_reg complete dim=0
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> PARAM1 = 32...
The wrong part of the code is: #pragma HLS dataflow region 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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> PARAM1 = 32'h000...
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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> ...
The wrong part of the code is: #pragma HLS dataflow region 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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //...
The wrong part of the code is: #pragma HLS dataflow region 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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> PARAM1 = 32...
The wrong part of the code is: #pragma HLS interface ap_stable port=return The right code snippet is: #pragma HLS interface ap_ctrl_none port=return
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> PARAM1 = 32'h000...
The right code snippet is: #pragma HLS interface ap_ctrl_none port=return
'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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> ...
The wrong part of the code is: #pragma HLS interface ap_stable port=return 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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //...
The wrong part of the code is: #pragma HLS interface ap_stable port=return The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS interface ap_ctrl_none port=return
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> PARAM1 = 32...
The wrong part of the code is: #pragma HLS interface m_axi port=return random The right code snippet is: #pragma HLS interface m_axi port=return
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> PARAM1 = 32'h000...
The right code snippet is: #pragma HLS interface m_axi port=return
'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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> ...
The wrong part of the code is: #pragma HLS interface m_axi port=return random 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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //...
The wrong part of the code is: #pragma HLS interface m_axi port=return random The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS interface m_axi port=return
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> PARAM1 = 32...
The wrong part of the code is: #pragma HLS interface bram port=i_reg_example The right code snippet is: #pragma HLS interface ap_none port=i_reg_example
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> PARAM1 = 32'h000...
The right code snippet is: #pragma HLS interface ap_none port=i_reg_example
'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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> ...
The wrong part of the code is: #pragma HLS interface bram port=i_reg_example 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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //...
The wrong part of the code is: #pragma HLS interface bram port=i_reg_example The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS interface ap_none port=i_reg_example
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> PARAM1 = 32...
The wrong part of the code is: #pragma HLS interface s_axilite port=i_reg_example The right code snippet is: #pragma HLS interface ap_none port=i_reg_example
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> PARAM1 = 32'h000...
The right code snippet is: #pragma HLS interface ap_none port=i_reg_example
'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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> ...
The wrong part of the code is: #pragma HLS interface s_axilite port=i_reg_example 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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //...
The wrong part of the code is: #pragma HLS interface s_axilite port=i_reg_example The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS interface ap_none port=i_reg_example
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> PARAM1 = 32...
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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> PARAM1 = 32'h000...
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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> ...
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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //...
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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> PARAM1 = 32...
The wrong part of the code is: #pragma HLS unroll factor=4 The right code snippet is: #pragma HLS unroll factor=8
'ILNU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> PARAM1 = 32'h000...
The right code snippet is: #pragma HLS unroll factor=8
'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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //local parameters const ap_uint<32> ...
The wrong part of the code is: #pragma HLS unroll factor=4 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: ```c++ #include <ap_int.h> void sdio_function_template (bool clk, bool rst, ap_uint<8> i_reg_example, ap_uint<8> &o_reg_example) { //...
The wrong part of the code is: #pragma HLS unroll factor=4 The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: #pragma HLS unroll factor=8
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #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: and4 = A[-1] & B[1] & C[0]; The right code snippet is: and4 = A & B & C;
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis port=B #prag...
The right code snippet is: and4 = A & B & C;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis ...
The wrong part of the code is: and4 = A[-1] & B[1] & C[0]; 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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis p...
The wrong part of the code is: and4 = A[-1] & B[1] & C[0]; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: and4 = A & B & C;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #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: bool and1, and2, and3, and4 = true; The right code snippet is: bool and1, and2, and3, and4;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis port=B #prag...
The right code snippet is: bool and1, and2, and3, and4;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis ...
The wrong part of the code is: bool and1, and2, and3, and4 = 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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis p...
The wrong part of the code is: bool and1, and2, and3, and4 = true; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: bool and1, and2, and3, and4;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #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: notA = A << 2; The right code snippet is: notA = !A;
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis port=B #prag...
The right code snippet is: notA = !A;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis ...
The wrong part of the code is: notA = A << 2; 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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis p...
The wrong part of the code is: notA = A << 2; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: notA = !A;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #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: while (true) { or3 = or2 | and4; } The right code snippet is: or3 = or2 | and4;
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis port=B #prag...
The right code snippet is: or3 = or2 | and4;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis ...
The wrong part of the code is: while (true) { or3 = or2 | and4; } 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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis p...
The wrong part of the code is: while (true) { or3 = or2 | and4; } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: or3 = or2 | and4;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #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: and1 = (unsigned int) A & !B & !C; The right code snippet is: and1 = A & !B & !C;
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis port=B #prag...
The right code snippet is: and1 = A & !B & !C;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis ...
The wrong part of the code is: and1 = (unsigned int) A & !B & !C; 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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis p...
The wrong part of the code is: and1 = (unsigned int) A & !B & !C; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: and1 = A & !B & !C;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #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: and1 = A & !B & !C; and2 = !A & B & !C; and3 = !A & !B & C; and4 = A & B & C; and1 = A & !B & !C; and2 = !A & B & !C; and3 = !A & !B & C; and4 = A & B & C; The right code snippet is: and1 = A & !B & !C; and2 = !A & B & !C; and3 = !A & !B & C; and4 = A & B & C;
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis port=B #prag...
The right code snippet is: and1 = A & !B & !C; and2 = !A & B & !C; and3 = !A & !B & C; and4 = A & B & C;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis ...
The wrong part of the code is: and1 = A & !B & !C; and2 = !A & B & !C; and3 = !A & !B & C; and4 = A & B & C; and1 = A & !B & !C; and2 = !A & B & !C; and3 = !A & !B & C; and4 = A & B & C; 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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis p...
The wrong part of the code is: and1 = A & !B & !C; and2 = !A & B & !C; and3 = !A & !B & C; and4 = A & B & C; and1 = A & !B & !C; and2 = !A & B & !C; and3 = !A & !B & C; and4 = A & B & C; The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: and1 = A & !B & !C; and2 = !A...
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #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: bool and1 = 0, and2 = 0, and3 = 0, and4 = 0; The right code snippet is: bool and1, and2, and3, and4;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis port=B #prag...
The right code snippet is: bool and1, and2, and3, and4;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis ...
The wrong part of the code is: bool and1 = 0, and2 = 0, and3 = 0, and4 = 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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis p...
The wrong part of the code is: bool and1 = 0, and2 = 0, and3 = 0, and4 = 0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: bool and1, and2, and3, and4;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #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: and3 = !A & !B & C[1]; The right code snippet is: and3 = !A & !B & C;
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis port=B #prag...
The right code snippet is: and3 = !A & !B & C;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis ...
The wrong part of the code is: and3 = !A & !B & C[1]; 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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis p...
The wrong part of the code is: and3 = !A & !B & C[1]; The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: and3 = !A & !B & C;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #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 array_partition variable=and1 cyclic factor=3 and1 = A & !B & !C; The right code snippet is: and1 = A & !B & !C;
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis port=B #prag...
The right code snippet is: and1 = A & !B & !C;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis ...
The wrong part of the code is: #pragma HLS array_partition variable=and1 cyclic factor=3 and1 = A & !B & !C; 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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis p...
The wrong part of the code is: #pragma HLS array_partition variable=and1 cyclic factor=3 and1 = A & !B & !C; The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: and1 = A & !B & !C;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #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 array_partition variable=and1 cyclic factor=4 and1 = A & !B & !C; The right code snippet is: and1 = A & !B & !C;
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis port=B #prag...
The right code snippet is: and1 = A & !B & !C;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis ...
The wrong part of the code is: #pragma HLS array_partition variable=and1 cyclic factor=4 and1 = A & !B & !C; 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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis p...
The wrong part of the code is: #pragma HLS array_partition variable=and1 cyclic factor=4 and1 = A & !B & !C; The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: and1 = A & !B & !C;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #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 array_partition variable=and1 cyclic dim=2 and1 = A & !B & !C; The right code snippet is: and1 = A & !B & !C;
'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis port=B #prag...
The right code snippet is: and1 = A & !B & !C;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis ...
The wrong part of the code is: #pragma HLS array_partition variable=and1 cyclic dim=2 and1 = A & !B & !C; 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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis p...
The wrong part of the code is: #pragma HLS array_partition variable=and1 cyclic dim=2 and1 = A & !B & !C; The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: and1 = A & !B & !C;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #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 dataflow and1 = A & !B & !C; The right code snippet is: and1 = A & !B & !C;
'DFP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis port=B #prag...
The right code snippet is: and1 = A & !B & !C;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis ...
The wrong part of the code is: #pragma HLS dataflow and1 = A & !B & !C; 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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis p...
The wrong part of the code is: #pragma HLS dataflow and1 = A & !B & !C; The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: and1 = A & !B & !C;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #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 interface ap_fifo port=and1 and1 = A & !B & !C; The right code snippet is: and1 = A & !B & !C;
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis port=B #prag...
The right code snippet is: and1 = A & !B & !C;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis ...
The wrong part of the code is: #pragma HLS interface ap_fifo port=and1 and1 = A & !B & !C; 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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis p...
The wrong part of the code is: #pragma HLS interface ap_fifo port=and1 and1 = A & !B & !C; The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: and1 = A & !B & !C;
'IDAP'