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: ``` #include <ap_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_stream& data...
The wrong part of the code is: static int16_t memory[65536]; The right code snippet is: static ap_uint<16> memory[65536];
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_stream& data_in, ...
The right code snippet is: static ap_uint<16> memory[65536];
'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_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_s...
The wrong part of the code is: static int16_t memory[65536]; 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_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& w...
The wrong part of the code is: static int16_t memory[65536]; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: static ap_uint<16> memory[65536];
'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_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_stream& data...
The wrong part of the code is: for(int i = 0; i < 640; i+=2){ pixel_out_reg = memory[(vga_v_reg*640)+vga_h_reg+i]; pixel_out.data = pixel_out_reg; pixel_out.last = 1; } The right code snippet is: // No suitable code snippet found
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_stream& data_in, ...
The right code snippet is: // No suitable code snippet found
'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_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_s...
The wrong part of the code is: for(int i = 0; i < 640; i+=2){ pixel_out_reg = memory[(vga_v_reg*640)+vga_h_reg+i]; pixel_out.data = pixel_out_reg; pixel_out.last = 1; } 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_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& w...
The wrong part of the code is: for(int i = 0; i < 640; i+=2){ pixel_out_reg = memory[(vga_v_reg*640)+vga_h_reg+i]; pixel_out.data = pixel_out_reg; pixel_out.last = 1; } The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: // No suitable code snippet found
'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_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_stream& data...
The wrong part of the code is: static ap_uint<16> memory[65536] = {0}; The right code snippet is: static ap_uint<16> memory[65536];
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_stream& data_in, ...
The right code snippet is: static ap_uint<16> memory[65536];
'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_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_s...
The wrong part of the code is: static ap_uint<16> memory[65536] = {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: ``` #include <ap_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& w...
The wrong part of the code is: static ap_uint<16> memory[65536] = {0}; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: static ap_uint<16> memory[65536];
'ZERO'
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_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_stream& data...
The wrong part of the code is: if (!load.data) { pixel_out_reg = memory[(vga_v_reg*320)+vga_h_reg]; pixel_out.data = pixel_out_reg; pixel_out.last = 1; } The right code snippet is: if (!load.data) { pixel_out_reg = memory[(vga_v_reg*640)+vga_h_reg]; pixel_out.data = pixel_out_reg; ...
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_stream& data_in, ...
The right code snippet is: if (!load.data) { pixel_out_reg = memory[(vga_v_reg*640)+vga_h_reg]; pixel_out.data = pixel_out_reg; pixel_out.last = 1; }
'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: ``` #include <ap_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_s...
The wrong part of the code is: if (!load.data) { pixel_out_reg = memory[(vga_v_reg*320)+vga_h_reg]; pixel_out.data = pixel_out_reg; pixel_out.last = 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: ``` #include <ap_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& w...
The wrong part of the code is: if (!load.data) { pixel_out_reg = memory[(vga_v_reg*320)+vga_h_reg]; pixel_out.data = pixel_out_reg; pixel_out.last = 1; } The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: if (!load.data) { pixel_out_reg = memory[(vga_...
'BUF'
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_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_stream& data...
The wrong part of the code is: #pragma HLS array_partition variable=memory cyclic factor=3 dim=1 The right code snippet is: static ap_uint<16> memory[65536];
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_stream& data_in, ...
The right code snippet is: static ap_uint<16> memory[65536];
'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: ``` #include <ap_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_s...
The wrong part of the code is: #pragma HLS array_partition variable=memory cyclic factor=3 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: ``` #include <ap_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& w...
The wrong part of the code is: #pragma HLS array_partition variable=memory cyclic factor=3 dim=1 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: static ap_uint<16> memory[65536];
'APT'
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_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_stream& data...
The wrong part of the code is: #pragma HLS array_partition variable=memory cyclic factor=7 dim=1 The right code snippet is: static ap_uint<16> memory[65536];
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_stream& data_in, ...
The right code snippet is: static ap_uint<16> memory[65536];
'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: ``` #include <ap_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_s...
The wrong part of the code is: #pragma HLS array_partition variable=memory cyclic factor=7 dim=1 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: ``` #include <ap_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& w...
The wrong part of the code is: #pragma HLS array_partition variable=memory cyclic factor=7 dim=1 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: static ap_uint<16> memory[65536];
'FND'
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_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_stream& data...
The wrong part of the code is: #pragma HLS array_partition variable=memory cyclic factor=8 dim=2 The right code snippet is: static ap_uint<16> memory[65536];
'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_stream& data_in, ...
The right code snippet is: static ap_uint<16> memory[65536];
'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: ``` #include <ap_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_s...
The wrong part of the code is: #pragma HLS array_partition variable=memory cyclic factor=8 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: ``` #include <ap_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& w...
The wrong part of the code is: #pragma HLS array_partition variable=memory cyclic factor=8 dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: static ap_uint<16> memory[65536];
'DID'
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_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_stream& data...
The wrong part of the code is: #pragma HLS dataflow loop_flatten off The right code snippet is: // No suitable code snippet found
'DFP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_stream& data_in, ...
The right code snippet is: // No suitable code snippet found
'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: ``` #include <ap_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_s...
The wrong part of the code is: #pragma HLS dataflow loop_flatten 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: ``` #include <ap_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& w...
The wrong part of the code is: #pragma HLS dataflow loop_flatten off The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: // No suitable code snippet found
'DFP'
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_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_stream& data...
The wrong part of the code is: #pragma HLS interface ap_fifo port=write_address #pragma HLS interface ap_fifo port=data_in #pragma HLS interface ap_fifo port=load #pragma HLS interface ap_fifo port=vga_h #pragma HLS interface ap_fifo port=vga_v #pragma HLS interface ap_fifo port=pixel_out The right code sn...
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_stream& data_in, ...
The right code snippet is: // No suitable code snippet found
'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: ``` #include <ap_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_s...
The wrong part of the code is: #pragma HLS interface ap_fifo port=write_address #pragma HLS interface ap_fifo port=data_in #pragma HLS interface ap_fifo port=load #pragma HLS interface ap_fifo port=vga_h #pragma HLS interface ap_fifo port=vga_v #pragma HLS interface ap_fifo port=pixel_out The high-level-sy...
'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: ``` #include <ap_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& w...
The wrong part of the code is: #pragma HLS interface ap_fifo port=write_address #pragma HLS interface ap_fifo port=data_in #pragma HLS interface ap_fifo port=load #pragma HLS interface ap_fifo port=vga_h #pragma HLS interface ap_fifo port=vga_v #pragma HLS interface ap_fifo port=pixel_out The high-level-sy...
'IDAP'
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_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_stream& data...
The wrong part of the code is: #pragma HLS interface m_axi port=write_address #pragma HLS interface m_axi port=data_in #pragma HLS interface m_axi port=load #pragma HLS interface m_axi port=vga_h #pragma HLS interface m_axi port=vga_v #pragma HLS interface m_axi port=pixel_out The right code snippet is: ...
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_stream& data_in, ...
The right code snippet is: // No suitable code snippet found
'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: ``` #include <ap_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& write_address, int_s...
The wrong part of the code is: #pragma HLS interface m_axi port=write_address #pragma HLS interface m_axi port=data_in #pragma HLS interface m_axi port=load #pragma HLS interface m_axi port=vga_h #pragma HLS interface m_axi port=vga_v #pragma HLS interface m_axi port=pixel_out The high-level-synthesis bug ...
'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: ``` #include <ap_axi_sdata.h> typedef ap_axis<16,1,1,1> int_stream; void frame_buffer(int_stream& clk, int_stream& w...
The wrong part of the code is: #pragma HLS interface m_axi port=write_address #pragma HLS interface m_axi port=data_in #pragma HLS interface m_axi port=load #pragma HLS interface m_axi port=vga_h #pragma HLS interface m_axi port=vga_v #pragma HLS interface m_axi port=pixel_out The high-level-synthesis bug ...
'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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; case 2: ...
The wrong part of the code is: case 4: out = in3; break; The right code snippet is: case 3: out = in3; break;
OOB
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; case 2: out =...
The right code snippet is: case 3: out = in3; break;
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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; ...
The wrong part of the code is: case 4: out = in3; break; 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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; ...
The wrong part of the code is: case 4: out = in3; break; The high-level-synthesis bug type of the code is: OOB The right code snippet is: case 3: out = in3; break;
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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; case 2: o...
The wrong part of the code is: bool out The right code snippet is: bool& out
INIT
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; case 2: out = ...
The right code snippet is: bool& out
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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; ...
The wrong part of the code is: bool out 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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool out) { switch(sel) { case 0: out = in0; break; ...
The wrong part of the code is: bool out The high-level-synthesis bug type of the code is: INIT The right code snippet is: bool& out
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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel << 5, bool& out) { switch(sel << 5) { case 0: out = in0; break; case 1: out = in1; break; ...
The wrong part of the code is: sel << 5 The right code snippet is: sel
SHFT
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel << 5, bool& out) { switch(sel << 5) { case 0: out = in0; break; case 1: out = in1; break; cas...
The right code snippet is: sel
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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel << 5, bool& out) { switch(sel << 5) { case 0: out = in0; break; case 1: out = in1; br...
The wrong part of the code is: sel << 5 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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel << 5, bool& out) { switch(sel << 5) { case 0: out = in0;...
The wrong part of the code is: sel << 5 The high-level-synthesis bug type of the code is: SHFT The right code snippet is: sel
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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; case 2: ...
The wrong part of the code is: while(1); The right code snippet is: No suitable snippet found.
INF
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; case 2: out =...
The right code snippet is: No suitable snippet found.
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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; ...
The wrong part of the code is: while(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: void mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; ...
The wrong part of the code is: while(1); The high-level-synthesis bug type of the code is: INF The right code snippet is: No suitable snippet found.
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 mux4to1(char in0, char in1, char in2, char in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; case 2: ...
The wrong part of the code is: char in0, char in1, char in2, char in3 The right code snippet is: bool in0, bool in1, bool in2, bool in3
USE
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void mux4to1(char in0, char in1, char in2, char in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; case 2: out =...
The right code snippet is: bool in0, bool in1, bool in2, bool in3
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 mux4to1(char in0, char in1, char in2, char in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; ...
The wrong part of the code is: char in0, char in1, char in2, char in3 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 mux4to1(char in0, char in1, char in2, char in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; ...
The wrong part of the code is: char in0, char in1, char in2, char in3 The high-level-synthesis bug type of the code is: USE The right code snippet is: bool in0, bool in1, bool in2, bool in3
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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; case 2: ...
The wrong part of the code is: for(int i = 0; i < 4; i+=2) {out = in[i] && in[i+1];} The right code snippet is: No suitable snippet found.
MLU
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; case 2: out =...
The right code snippet is: No suitable snippet found.
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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; ...
The wrong part of the code is: for(int i = 0; i < 4; i+=2) {out = in[i] && in[i+1];} 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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; ...
The wrong part of the code is: for(int i = 0; i < 4; i+=2) {out = in[i] && in[i+1];} The high-level-synthesis bug type of the code is: MLU The right code snippet is: No suitable snippet found.
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 mux4to1(bool in0 = 0, bool in1 = 0, bool in2 = 0, bool in3 = 0, ap_uint<2> sel = 0, bool& out = 0) { switch(sel) { case 0: out = in0; break; case 1: out = in1;...
The wrong part of the code is: bool in0 = 0, bool in1 = 0, bool in2 = 0, bool in3 = 0, ap_uint<2> sel = 0, bool& out = 0 The right code snippet is: bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out
ZERO
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void mux4to1(bool in0 = 0, bool in1 = 0, bool in2 = 0, bool in3 = 0, ap_uint<2> sel = 0, bool& out = 0) { switch(sel) { case 0: out = in0; break; case 1: out = in1; brea...
The right code snippet is: bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out
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 mux4to1(bool in0 = 0, bool in1 = 0, bool in2 = 0, bool in3 = 0, ap_uint<2> sel = 0, bool& out = 0) { switch(sel) { case 0: out = in0; break; case 1:...
The wrong part of the code is: bool in0 = 0, bool in1 = 0, bool in2 = 0, bool in3 = 0, ap_uint<2> sel = 0, bool& out = 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 mux4to1(bool in0 = 0, bool in1 = 0, bool in2 = 0, bool in3 = 0, ap_uint<2> sel = 0, bool& out = 0) { switch(sel) { case...
The wrong part of the code is: bool in0 = 0, bool in1 = 0, bool in2 = 0, bool in3 = 0, ap_uint<2> sel = 0, bool& out = 0 The high-level-synthesis bug type of the code is: ZERO The right code snippet is: bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out
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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; case 2: ...
The wrong part of the code is: for(int i = 0; i < 2; i++) {out = in[i];} The right code snippet is: No suitable snippet found.
BUF
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; case 2: out =...
The right code snippet is: No suitable snippet found.
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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; ...
The wrong part of the code is: for(int i = 0; i < 2; i++) {out = in[i];} 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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; ...
The wrong part of the code is: for(int i = 0; i < 2; i++) {out = in[i];} The high-level-synthesis bug type of the code is: BUF The right code snippet is: No suitable snippet found.
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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; case 2: ...
The wrong part of the code is: #pragma HLS array_partition variable=in complete The right code snippet is: No suitable snippet found.
APT
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; case 2: out =...
The right code snippet is: No suitable snippet found.
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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; ...
The wrong part of the code is: #pragma HLS array_partition variable=in complete 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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; ...
The wrong part of the code is: #pragma HLS array_partition variable=in complete The high-level-synthesis bug type of the code is: APT The right code snippet is: No suitable snippet found.
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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; case 2: ...
The wrong part of the code is: #pragma HLS array_partition variable=in factor=3 The right code snippet is: No suitable snippet found.
FND
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; case 2: out =...
The right code snippet is: No suitable snippet found.
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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; ...
The wrong part of the code is: #pragma HLS array_partition variable=in 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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; ...
The wrong part of the code is: #pragma HLS array_partition variable=in factor=3 The high-level-synthesis bug type of the code is: FND The right code snippet is: No suitable snippet found.
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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; case 2: ...
The wrong part of the code is: #pragma HLS array_partition variable=in dim=2 factor=2 The right code snippet is: No suitable snippet found.
DID
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; case 2: out =...
The right code snippet is: No suitable snippet found.
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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; ...
The wrong part of the code is: #pragma HLS array_partition variable=in dim=2 factor=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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; ...
The wrong part of the code is: #pragma HLS array_partition variable=in dim=2 factor=2 The high-level-synthesis bug type of the code is: DID The right code snippet is: No suitable snippet found.
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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; case 2: ...
The wrong part of the code is: #pragma HLS dataflow The right code snippet is: No suitable snippet found.
DFP
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; case 2: out =...
The right code snippet is: No suitable snippet found.
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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; ...
The wrong part of the code is: #pragma HLS dataflow 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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; ...
The wrong part of the code is: #pragma HLS dataflow The high-level-synthesis bug type of the code is: DFP The right code snippet is: No suitable snippet found.
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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; case 2: ...
The wrong part of the code is: #pragma HLS interface ap_none port=in The right code snippet is: No suitable snippet found.
IDAP
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; case 2: out =...
The right code snippet is: No suitable snippet found.
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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; ...
The wrong part of the code is: #pragma HLS interface ap_none port=in 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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; ...
The wrong part of the code is: #pragma HLS interface ap_none port=in The high-level-synthesis bug type of the code is: IDAP The right code snippet is: No suitable snippet found.
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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; case 2: ...
The wrong part of the code is: #pragma HLS interface m_axi port=in offset=slave The right code snippet is: No suitable snippet found.
RAMB
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; case 2: out =...
The right code snippet is: No suitable snippet found.
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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; ...
The wrong part of the code is: #pragma HLS interface m_axi port=in offset=slave 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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; ...
The wrong part of the code is: #pragma HLS interface m_axi port=in offset=slave The high-level-synthesis bug type of the code is: RAMB The right code snippet is: No suitable snippet found.
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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; case 2: ...
The wrong part of the code is: #pragma HLS interface axis port=in The right code snippet is: No suitable snippet found.
SMA
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; case 2: out =...
The right code snippet is: No suitable snippet found.
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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; case 1: out = in1; break; ...
The wrong part of the code is: #pragma HLS interface axis 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 mux4to1(bool in0, bool in1, bool in2, bool in3, ap_uint<2> sel, bool& out) { switch(sel) { case 0: out = in0; break; ...
The wrong part of the code is: #pragma HLS interface axis port=in The high-level-synthesis bug type of the code is: SMA The right code snippet is: No suitable snippet found.
SMA