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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int ...
The wrong part of the code is: sum[i] = A[i+1] ^ B[i] ^ carry[i-1]; The right code snippet is: sum[i] = A[i] ^ B[i] ^ carry[i-1];
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int i = 1...
The right code snippet is: sum[i] = A[i] ^ B[i] ^ carry[i-1];
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; ...
The wrong part of the code is: sum[i] = A[i+1] ^ B[i] ^ carry[i-1]; The high-level-synthesis bug type of the code is: 'OOB'
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ ...
The wrong part of the code is: sum[i] = A[i+1] ^ B[i] ^ carry[i-1]; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: sum[i] = A[i] ^ B[i] ^ carry[i-1];
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8] = {1, 0, 1, 0, 1, 0, 1, 0}; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = ...
The wrong part of the code is: ap_uint<8> carry[8] = {1, 0, 1, 0, 1, 0, 1, 0}; The right code snippet is: ap_uint<8> carry[8];
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8] = {1, 0, 1, 0, 1, 0, 1, 0}; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] ...
The right code snippet is: ap_uint<8> carry[8];
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8] = {1, 0, 1, 0, 1, 0, 1, 0}; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; ...
The wrong part of the code is: ap_uint<8> carry[8] = {1, 0, 1, 0, 1, 0, 1, 0}; The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8] = {1, 0, 1, 0, 1, 0, 1, 0}; ap_uint<8> su...
The wrong part of the code is: ap_uint<8> carry[8] = {1, 0, 1, 0, 1, 0, 1, 0}; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: ap_uint<8> carry[8];
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int ...
The wrong part of the code is: carry[i] = (A[i] & B[i]) | (A[i] & carry[i+1]) | (B[i] & carry[i-1]); The right code snippet is: carry[i] = (A[i] & B[i]) | (A[i] & carry[i-1]) | (B[i] & carry[i-1]);
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int i = 1...
The right code snippet is: carry[i] = (A[i] & B[i]) | (A[i] & carry[i-1]) | (B[i] & carry[i-1]);
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; ...
The wrong part of the code is: carry[i] = (A[i] & B[i]) | (A[i] & carry[i+1]) | (B[i] & carry[i-1]); The high-level-synthesis bug type of the code is: 'SHFT'
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ ...
The wrong part of the code is: carry[i] = (A[i] & B[i]) | (A[i] & carry[i+1]) | (B[i] & carry[i-1]); The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: carry[i] = (A[i] & B[i]) | (A[i] & carry[i-1]) | (B[i] & carry[i-1]);
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int ...
The wrong part of the code is: for (int i = 1; i >= 0; i--) { The right code snippet is: for (int i = 1; i < 8; i++) {
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int i = 1...
The right code snippet is: for (int i = 1; i < 8; i++) {
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; ...
The wrong part of the code is: for (int i = 1; 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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ ...
The wrong part of the code is: for (int i = 1; i >= 0; i--) { The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: for (int i = 1; i < 8; i++) {
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int ...
The wrong part of the code is: result = (int8_t)(carry[7], sum); The right code snippet is: result = (carry[7], sum);
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int i = 1...
The right code snippet is: result = (carry[7], sum);
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; ...
The wrong part of the code is: result = (int8_t)(carry[7], sum); The high-level-synthesis bug type of the code is: 'USE'
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ ...
The wrong part of the code is: result = (int8_t)(carry[7], sum); The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: result = (carry[7], sum);
'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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int ...
The wrong part of the code is: for (int i = 1; i < 4; i++) { The right code snippet is: for (int i = 1; i < 8; i++) {
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int i = 1...
The right code snippet is: for (int i = 1; i < 8; i++) {
'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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; ...
The wrong part of the code is: for (int i = 1; i < 4; i++) { 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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ ...
The wrong part of the code is: for (int i = 1; i < 4; i++) { The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: for (int i = 1; i < 8; i++) {
'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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8] = {0}; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for...
The wrong part of the code is: ap_uint<8> carry[8] = {0}; The right code snippet is: ap_uint<8> carry[8];
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8] = {0}; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int...
The right code snippet is: ap_uint<8> carry[8];
'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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8] = {0}; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0...
The wrong part of the code is: ap_uint<8> carry[8] = {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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8] = {0}; ap_uint<8> sum[8]; sum[0] = A...
The wrong part of the code is: ap_uint<8> carry[8] = {0}; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: ap_uint<8> carry[8];
'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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int ...
The wrong part of the code is: sum[i] = A[i+4] ^ B[i+4] ^ carry[i-1]; The right code snippet is: sum[i] = A[i] ^ B[i] ^ carry[i-1];
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int i = 1...
The right code snippet is: sum[i] = A[i] ^ B[i] ^ carry[i-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: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; ...
The wrong part of the code is: sum[i] = A[i+4] ^ B[i+4] ^ carry[i-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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ ...
The wrong part of the code is: sum[i] = A[i+4] ^ B[i+4] ^ carry[i-1]; The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: sum[i] = A[i] ^ B[i] ^ carry[i-1];
'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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int ...
The wrong part of the code is: #pragma HLS array_partition variable=carry cyclic The right code snippet is: #pragma HLS array_partition variable=carry complete
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int i = 1...
The right code snippet is: #pragma HLS array_partition variable=carry 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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; ...
The wrong part of the code is: #pragma HLS array_partition variable=carry 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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ ...
The wrong part of the code is: #pragma HLS array_partition variable=carry cyclic The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=carry 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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int ...
The wrong part of the code is: #pragma HLS array_partition variable=carry factor=3 The right code snippet is: #pragma HLS array_partition variable=carry complete
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int i = 1...
The right code snippet is: #pragma HLS array_partition variable=carry 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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; ...
The wrong part of the code is: #pragma HLS array_partition variable=carry 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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ ...
The wrong part of the code is: #pragma HLS array_partition variable=carry factor=3 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS array_partition variable=carry 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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int ...
The wrong part of the code is: #pragma HLS array_partition variable=carry dim=2 The right code snippet is: #pragma HLS array_partition variable=carry complete
'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int i = 1...
The right code snippet is: #pragma HLS array_partition variable=carry complete
'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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; ...
The wrong part of the code is: #pragma HLS array_partition variable=carry 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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ ...
The wrong part of the code is: #pragma HLS array_partition variable=carry dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS array_partition variable=carry complete
'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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int ...
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: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int i = 1...
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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; ...
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: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ ...
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: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int ...
The wrong part of the code is: #pragma HLS interface ap_ctrl_hs 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: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int i = 1...
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: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; ...
The wrong part of the code is: #pragma HLS interface ap_ctrl_hs 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: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ ...
The wrong part of the code is: #pragma HLS interface ap_ctrl_hs 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: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int ...
The wrong part of the code is: #pragma HLS interface m_axi port=result random The right code snippet is: #pragma HLS interface m_axi port=result
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int i = 1...
The right code snippet is: #pragma HLS interface m_axi port=result
'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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; ...
The wrong part of the code is: #pragma HLS interface m_axi port=result 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: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ ...
The wrong part of the code is: #pragma HLS interface m_axi port=result random The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS interface m_axi port=result
'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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int ...
The wrong part of the code is: #pragma HLS interface bram port=A #pragma HLS interface bram port=B The right code snippet is: #pragma HLS interface ap_none port=A #pragma HLS interface ap_none port=B
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int i = 1...
The right code snippet is: #pragma HLS interface ap_none port=A #pragma HLS interface ap_none port=B
'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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; ...
The wrong part of the code is: #pragma HLS interface bram port=A #pragma HLS interface bram port=B 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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ ...
The wrong part of the code is: #pragma HLS interface bram port=A #pragma HLS interface bram port=B The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS interface ap_none port=A #pragma HLS interface ap_none port=B
'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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int ...
The wrong part of the code is: #pragma HLS interface ap_vld port=result The right code snippet is: #pragma HLS interface ap_none port=result
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int i = 1...
The right code snippet is: #pragma HLS interface ap_none port=result
'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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; ...
The wrong part of the code is: #pragma HLS interface ap_vld port=result 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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ ...
The wrong part of the code is: #pragma HLS interface ap_vld port=result The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS interface ap_none port=result
'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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int ...
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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; for (int i = 1...
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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; ...
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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ ...
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 adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; #pragma H...
The wrong part of the code is: #pragma HLS unroll for (int i = 1; i < 8; i++) { The right code snippet is: for (int i = 1; i < 8; i++) {
'ILNU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; #pragma HLS un...
The right code snippet is: for (int i = 1; i < 8; i++) {
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ B[0]; carry[0] = A[0] & B[0]; ...
The wrong part of the code is: #pragma HLS unroll for (int i = 1; i < 8; i++) { The high-level-synthesis bug type of the code is: 'ILNU'
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void adder (ap_uint<8> A, ap_uint<8> B, ap_uint<16>& result) { ap_uint<8> carry[8]; ap_uint<8> sum[8]; sum[0] = A[0] ^ ...
The wrong part of the code is: #pragma HLS unroll for (int i = 1; i < 8; i++) { The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: for (int i = 1; i < 8; i++) {
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp = 0; ap_uint<16> shift_reg = b; for (int i = 0; i < 16; i++) { ...
The wrong part of the code is: for (int i = -1; i < 16; i++) { if (a[i] == 1) { temp += (shift_reg << i); } } The right code snippet is: for (int i = 0; i < 16; i++) { if (a[i] == 1) { temp += (shift_reg << i); } }
'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 multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp = 0; ap_uint<16> shift_reg = b; for (int i = 0; i < 16; i++) { ...
The right code snippet is: for (int i = 0; i < 16; i++) { if (a[i] == 1) { temp += (shift_reg << i); } }
'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 multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp = 0; ap_uint<16> shift_reg = b; for (int i = 0; i < 1...
The wrong part of the code is: for (int i = -1; i < 16; i++) { if (a[i] == 1) { temp += (shift_reg << i); } } 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 multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp = 0; ap_uint<16> shi...
The wrong part of the code is: for (int i = -1; i < 16; i++) { if (a[i] == 1) { temp += (shift_reg << i); } } The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: for (int i = 0; i < 16; i++) { if (a[i] == 1) { temp += (shift_reg << i); ...
'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 multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp; ap_uint<16> shift_reg = b; for (int i = 0; i < 16; i++) { ...
The wrong part of the code is: ap_uint<32> temp; The right code snippet is: ap_uint<32> temp = 0;
'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 multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp; ap_uint<16> shift_reg = b; for (int i = 0; i < 16; i++) { if...
The right code snippet is: ap_uint<32> temp = 0;
'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 multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp; ap_uint<16> shift_reg = b; for (int i = 0; i < 16; i...
The wrong part of the code is: ap_uint<32> temp; 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 multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp; ap_uint<16> shift_r...
The wrong part of the code is: ap_uint<32> temp; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: ap_uint<32> temp = 0;
'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 multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp = 0; ap_uint<16> shift_reg = b; for (int i = 0; i < 16; i++) { ...
The wrong part of the code is: temp += (shift_reg << 17); The right code snippet is: temp += (shift_reg << i);
'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 multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp = 0; ap_uint<16> shift_reg = b; for (int i = 0; i < 16; i++) { ...
The right code snippet is: temp += (shift_reg << i);
'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 multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp = 0; ap_uint<16> shift_reg = b; for (int i = 0; i < 1...
The wrong part of the code is: temp += (shift_reg << 17); 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 multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp = 0; ap_uint<16> shi...
The wrong part of the code is: temp += (shift_reg << 17); The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: temp += (shift_reg << i);
'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 multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp = 0; ap_uint<16> shift_reg = b; for (int i = 0; ; i++) { ...
The wrong part of the code is: for (int i = 0; ; i++) { The right code snippet is: for (int i = 0; i < 16; i++) {
'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 multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp = 0; ap_uint<16> shift_reg = b; for (int i = 0; ; i++) { if (...
The right code snippet is: for (int i = 0; i < 16; 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: ``` #include <ap_int.h> void multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp = 0; ap_uint<16> shift_reg = b; for (int i = 0; ; i++...
The wrong part of the code is: for (int 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: ``` #include <ap_int.h> void multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp = 0; ap_uint<16> shi...
The wrong part of the code is: for (int i = 0; ; i++) { The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: for (int i = 0; i < 16; 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: ``` #include <ap_int.h> void multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp = 0; ap_int<16> shift_reg = b; for (int i = 0; i < 16; i++) { ...
The wrong part of the code is: ap_int<16> shift_reg = b; The right code snippet is: ap_uint<16> shift_reg = b;
'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 multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp = 0; ap_int<16> shift_reg = b; for (int i = 0; i < 16; i++) { ...
The right code snippet is: ap_uint<16> shift_reg = b;
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp = 0; ap_int<16> shift_reg = b; for (int i = 0; i < 16...
The wrong part of the code is: ap_int<16> shift_reg = b; The high-level-synthesis bug type of the code is: 'USE'
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp = 0; ap_int<16> shif...
The wrong part of the code is: ap_int<16> shift_reg = b; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: ap_uint<16> shift_reg = b;
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp = 0; ap_uint<16> shift_reg = b; for (int i = 0; i < 8; i++) { ...
The wrong part of the code is: for (int i = 0; i < 8; i++) { if (a[i] == 1) { temp += (shift_reg << i); } if (a[15-i] == 1) { temp += (shift_reg << (16+i)); } } The right code snippet is: for (int i = 0; i < 16; i++) {
'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 multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp = 0; ap_uint<16> shift_reg = b; for (int i = 0; i < 8; i++) { if ...
The right code snippet is: for (int i = 0; i < 16; i++) {
'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 multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp = 0; ap_uint<16> shift_reg = b; for (int i = 0; i < 8...
The wrong part of the code is: for (int i = 0; i < 8; i++) { if (a[i] == 1) { temp += (shift_reg << i); } if (a[15-i] == 1) { temp += (shift_reg << (16+i)); } } 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 multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp = 0; ap_uint<16> shi...
The wrong part of the code is: for (int i = 0; i < 8; i++) { if (a[i] == 1) { temp += (shift_reg << i); } if (a[15-i] == 1) { temp += (shift_reg << (16+i)); } } The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: for (int i = 0; i < 16;...
'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 multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp = 1; ap_uint<16> shift_reg = b; for (int i = 0; i < 16; i++) { ...
The wrong part of the code is: ap_uint<32> temp = 1; The right code snippet is: ap_uint<32> temp = 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 multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp = 1; ap_uint<16> shift_reg = b; for (int i = 0; i < 16; i++) { ...
The right code snippet is: ap_uint<32> temp = 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 multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp = 1; ap_uint<16> shift_reg = b; for (int i = 0; i < 1...
The wrong part of the code is: ap_uint<32> temp = 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 multiplier(ap_uint<16> a, ap_uint<16> b, ap_uint<32> &out) { ap_uint<32> temp = 1; ap_uint<16> shi...
The wrong part of the code is: ap_uint<32> temp = 1; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: ap_uint<32> temp = 0;
'ZERO'