{"task_id": "CHStone", "path": "CHStone/adpcm/adpcm.c", "left_context": "/*\n+--------------------------------------------------------------------------+\n| CHStone : a suite of benchmark programs for C-based High-Level Synthesis |\n| ======================================================================== |\n| |\n| * Collected and Modified : Y. Hara, H. Tomiyama, S. Honda, |\n| H. Takada and K. Ishii |\n| Nagoya University, Japan |\n| |\n| * Remark : |\n| 1. This source code is modified to unify the formats of the benchmark |\n| programs in CHStone. |\n| 2. Test vectors are added for CHStone. |\n| 3. If \"main_result\" is 0 at the end of the program, the program is |\n| correctly executed. |\n| 4. Please follow the copyright of each benchmark program. |\n+--------------------------------------------------------------------------+\n*/\n/*************************************************************************/\n/* */\n/* SNU-RT Benchmark Suite for Worst Case Timing Analysis */\n/* ===================================================== */\n/* Collected and Modified by S.-S. Lim */\n/* sslim@archi.snu.ac.kr */\n/* Real-Time Research Group */\n/* Seoul National University */\n/* */\n/* */\n/* < Features > - restrictions for our experimental environment */\n/* */\n/* 1. Completely structured. */\n/* - There are no unconditional jumps. */\n/* - There are no exit from loop bodies. */\n/* (There are no 'break' or 'return' in loop bodies) */\n/* 2. No 'switch' statements. */\n/* 3. No 'do..while' statements. */\n/* 4. Expressions are restricted. */\n/* - There are no multiple expressions joined by 'or', */\n/* 'and' operations. */\n/* 5. No library calls. */\n/* - All the functions needed are implemented in the */\n/* source file. */\n/* */\n/* */\n/*************************************************************************/\n/* */\n/* FILE: adpcm.c */\n/* SOURCE : C Algorithms for Real-Time DSP by P. M. Embree */\n/* */\n/* DESCRIPTION : */\n/* */\n/* CCITT G.722 ADPCM (Adaptive Differential Pulse Code Modulation) */\n/* algorithm. */\n/* 16khz sample rate data is stored in the array test_data[SIZE]. */\n/* Results are stored in the array compressed[SIZE] and result[SIZE].*/\n/* Execution time is determined by the constant SIZE (default value */\n/* is 2000). */\n/* */\n/* REMARK : */\n/* */\n/* EXECUTION TIME : */\n/* */\n/* */\n/*************************************************************************/\n#include \n\nint encode (int, int);\nvoid decode (int);\nint filtez (int *bpl, int *dlt);\nvoid upzero (int dlt, int *dlti, int *bli);\nint filtep (int rlt1, int al1, int rlt2, int al2);\nint quantl (int el, int detl);\nint logscl (int il, int nbl);\nint scalel (int nbl, int shift_constant);\nint uppol2 (int al1, int al2, int plt, int plt1, int plt2);\nint uppol1 (int al1, int apl2, int plt, int plt1);\nint logsch (int ih, int nbh);\nvoid reset ();\n\n/* G722 C code */\n\n/* variables for transimit quadrature mirror filter here */\nint tqmf[24];\n\n/* QMF filter coefficients:\nscaled by a factor of 4 compared to G722 CCITT recomendation */\nconst int h[24] = {\n 12, -44, -44, 212, 48, -624, 128, 1448,\n -840, -3220, 3804, 15504, 15504, 3804, -3220, -840,\n 1448, 128, -624, 48, 212, -44, -44, 12\n};\n\nint xl, xh;\n\n/* variables for receive quadrature mirror filter here */\nint accumc[11], accumd[11];\n\n/* outputs of decode() */\nint xout1, xout2;\n\nint xs, xd;\n\n/* variables for encoder (hi and lo) here */\n\nint il, szl, spl, sl, el;\n\nconst int qq4_code4_table[16] = {\n 0, -20456, -12896, -8968, -6288, -4240, -2584, -1200,\n 20456, 12896, 8968, 6288, 4240, 2584, 1200, 0\n};\n\n\nconst int qq6_code6_table[64] = {\n -136, -136, -136, -136, -24808, -21904, -19008, -16704,\n -14984, -13512, -12280, -11192, -10232, -9360, -8576, -7856,\n -7192, -6576, -6000, -5456, -4944, -4464, -4008, -3576,\n -3168, -2776, -2400, -2032, -1688, -1360, -1040, -728,\n 24808, 21904, 19008, 16704, 14984, 13512, 12280, 11192,\n 10232, 9360, 8576, 7856, 7192, 6576, 6000, 5456,\n 4944, 4464, 4008, 3576, 3168, 2776, 2400, 2032,\n 1688, 1360, 1040, 728, 432, 136, -432, -136\n};\n\nint delay_bpl[6];\n\nint delay_dltx[6];\n\nconst int wl_code_table[16] = {\n -60, 3042, 1198, 538, 334, 172, 58, -30,\n 3042, 1198, 538, 334, 172, 58, -30, -60\n};\n\nconst int ilb_table[32] = {\n 2048, 2093, 2139, 2186, 2233, 2282, 2332, 2383,\n 2435, 2489, 2543, 2599, 2656, 2714, 2774, 2834,\n 2896, 2960, 3025, 3091, 3158, 3228, 3298, 3371,\n 3444, 3520, 3597, 3676, 3756, 3838, 3922, 4008\n};\n\nint nbl;\t\t\t/* delay line */\nint al1, al2;\nint plt, plt1, plt2;\nint dlt;\nint rlt, rlt1, rlt2;\n\n/* decision levels - pre-multiplied by 8, 0 to indicate end */\nconst int decis_levl[30] = {\n 280, 576, 880, 1200, 1520, 1864, 2208, 2584,\n 2960, 3376, 3784, 4240, 4696, 5200, 5712, 6288,\n 6864, 7520, 8184, 8968, 9752, 10712, 11664, 12896,\n 14120, 15840, 17560, 20456, 23352, 32767\n};\n\nint detl;\n\n/* quantization table 31 long to make quantl look-up easier,\nlast entry is for mil=30 case when wd is max */\nconst int quant26bt_pos[31] = {\n 61, 60, 59, 58, 57, 56, 55, 54,\n 53, 52, 51, 50, 49, 48, 47, 46,\n 45, 44, 43, 42, 41, 40, 39, 38,\n 37, 36, 35, 34, 33, 32, 32\n};\n\n/* quantization table 31 long to make quantl look-up easier,\nlast entry is for mil=30 case when wd is max */\nconst int quant26bt_neg[31] = {\n 63, 62, 31, 30, 29, 28, 27, 26,\n 25, 24, 23, 22, 21, 20, 19, 18,\n 17, 16, 15, 14, 13, 12, 11, 10,\n 9, 8, 7, 6, 5, 4, 4\n};\n\n\nint deth;\nint sh;\t\t\t\t/* this comes from adaptive predictor */\nint eh;\n\nconst int qq2_code2_table[4] = {\n -7408, -1616, 7408, 1616\n};\n\nconst int wh_code_table[4] = {\n 798, -214, 798, -214\n};\n\n\nint dh, ih;\nint nbh, szh;\nint sph, ph, yh, rh;\n\nint delay_dhx[6];\n\nint delay_bph[6];\n\nint ah1, ah2;\nint ph1, ph2;\nint rh1, rh2;\n\n/* variables for decoder here */\nint ilr, rl;\nint dec_deth, dec_detl, dec_dlt;\n\nint dec_del_bpl[6];\n\nint dec_del_dltx[6];\n\nint dec_plt, dec_plt1, dec_plt2;\nint dec_szl, dec_spl, dec_sl;\nint dec_rlt1, dec_rlt2, dec_rlt;\nint dec_al1, dec_al2;\nint dl;\nint dec_nbl, dec_dh, dec_nbh;\n\n/* variables used in filtez */\nint dec_del_bph[6];\n\nint dec_del_dhx[6];\n\nint dec_szh;\n/* variables used in filtep */\nint dec_rh1, dec_rh2;\nint dec_ah1, dec_ah2;\nint dec_ph, dec_sph;\n\nint dec_sh;\n\nint dec_ph1, dec_ph2;\n\n/* G722 encode function two ints in, one 8 bit output */\n\n/* put input samples in xin1 = first value, xin2 = second value */\n/* returns il and ih stored together */\n\nint\nabs (int n)\n{\n int m;\n\n if (n >= 0)\n m = n;\n else\n m = -n;\n return m;\n}\n\nint\nencode (int xin1, int xin2)\n{\n int i;\n const int *h_ptr;\n int *tqmf_ptr, *tqmf_ptr1;\n long int xa, xb;\n int decis;\n\n/* transmit quadrature mirror filters implemented here */\n h_ptr = h;\n tqmf_ptr = tqmf;\n xa = (long) (*tqmf_ptr++) * (*h_ptr++);\n xb = (long) (*tqmf_ptr++) * (*h_ptr++);\n/* main multiply accumulate loop for samples and coefficients */\n for (i = 0; i < 10; i++)\n {\n xa += (long) (*tqmf_ptr++) * (*h_ptr++);\n xb += (long) (*tqmf_ptr++) * (*h_ptr++);\n }\n/* final mult/accumulate */\n xa += (long) (*tqmf_ptr++) * (*h_ptr++);\n xb += (long) (*tqmf_ptr) * (*h_ptr++);\n\n/* update delay line tqmf */\n tqmf_ptr1 = tqmf_ptr - 2;\n for (i = 0; i < 22; i++)\n *tqmf_ptr-- = *tqmf_ptr1--;\n *tqmf_ptr-- = xin1;\n *tqmf_ptr = xin2;\n\n/* scale outputs */\n xl = (xa + xb) >> 15;\n xh = (xa - xb) >> 15;\n\n/* end of quadrature mirror filter code */\n\n/* starting with lower sub band encoder */\n\n/* filtez - compute predictor output section - zero section */\n szl = filtez (delay_bpl, delay_dltx);\n\n/* filtep - compute predictor output signal (pole section) */\n spl = filtep (rlt1, al1, rlt2, al2);\n\n/* compute the predictor output value in the lower sub_band encoder */\n sl = szl + spl;\n el = xl - sl;\n\n/* quantl: quantize the difference signal */\n il = quantl (el, detl);\n\n/* computes quantized difference signal */\n/* for invqbl, truncate by 2 lsbs, so mode = 3 */\n dlt = ((long) detl * qq4_code4_table[il >> 2]) >> 15;\n\n/* logscl: updates logarithmic quant. scale factor in low sub band */\n nbl = logscl (il, nbl);\n\n/* scalel: compute the quantizer scale factor in the lower sub band */\n/* calling parameters nbl and 8 (constant such that scalel can be scaleh) */\n detl = scalel (nbl, 8);\n\n/* parrec - simple addition to compute recontructed signal for adaptive pred */\n plt = dlt + szl;\n\n/* upzero: update zero section predictor coefficients (sixth order)*/\n/* calling parameters: dlt, dlt1, dlt2, ..., dlt6 from dlt */\n/* bpli (linear_buffer in which all six values are delayed */\n/* return params: updated bpli, delayed dltx */\n upzero (dlt, delay_dltx, delay_bpl);\n\n/* uppol2- update second predictor coefficient apl2 and delay it as al2 */\n/* calling parameters: al1, al2, plt, plt1, plt2 */\n al2 = uppol2 (al1, al2, plt, plt1, plt2);\n\n/* uppol1 :update first predictor coefficient apl1 and delay it as al1 */\n/* calling parameters: al1, apl2, plt, plt1 */\n al1 = uppol1 (al1, al2, plt, plt1);\n\n/* recons : compute recontructed signal for adaptive predictor */\n rlt = sl + dlt;\n\n/* done with lower sub_band encoder; now implement delays for next time*/\n rlt2 = rlt1;\n rlt1 = rlt;\n plt2 = plt1;\n plt1 = plt;\n\n/* high band encode */\n\n szh = filtez (delay_bph, delay_dhx);\n\n sph = filtep (rh1, ah1, rh2, ah2);\n\n/* predic: sh = sph + szh */\n sh = sph + szh;\n/* subtra: eh = xh - sh */\n eh = xh - sh;\n\n/* quanth - quantization of difference signal for higher sub-band */\n/* quanth: in-place for speed params: eh, deth (has init. value) */\n if (eh >= 0)\n {\n ih = 3;\t\t\t/* 2,3 are pos codes */\n }\n else\n {\n ih = 1;\t\t\t/* 0,1 are neg codes */\n }\n decis = (564L * (long) deth) >> 12L;\n if (abs (eh) > decis)\n ih--;\t\t\t/* mih = 2 case */\n\n/* compute the quantized difference signal, higher sub-band*/\n dh = ((long) deth * qq2_code2_table[ih]) >> 15L;\n\n/* logsch: update logarithmic quantizer scale factor in hi sub-band*/\n nbh = logsch (ih, nbh);\n\n/* note : scalel and scaleh use same code, different parameters */\n deth = scalel (nbh, 10);\n\n/* parrec - add pole predictor output to quantized diff. signal */\n ph = dh + szh;\n\n/* upzero: update zero section predictor coefficients (sixth order) */\n/* calling parameters: dh, dhi, bphi */\n/* return params: updated bphi, delayed dhx */\n upzero (dh, delay_dhx, delay_bph);\n\n/* uppol2: update second predictor coef aph2 and delay as ah2 */\n/* calling params: ah1, ah2, ph, ph1, ph2 */\n ah2 = uppol2 (ah1, ah2, ph, ph1, ph2);\n\n/* uppol1: update first predictor coef. aph2 and delay it as ah1 */\n ah1 = uppol1 (ah1, ah2, ph, ph1);\n\n/* recons for higher sub-band */\n yh = sh + dh;\n\n/* done with higher sub-band encoder, now Delay for next time */\n rh2 = rh1;\n rh1 = yh;\n ph2 = ph1;\n ph1 = ph;\n\n/* multiplex ih and il to get signals together */\n return (il | (ih << 6));\n}\n\n/* decode function, result in xout1 and xout2 */\n\nvoid\ndecode (int input)\n{\n int i;\n long int xa1, xa2;\t\t/* qmf accumulators */\n const int *h_ptr;\n int *ac_ptr, *ac_ptr1, *ad_ptr, *ad_ptr1;\n\n/* split transmitted word from input into ilr and ih */\n ilr = input & 0x3f;\n ih = input >> 6;\n\n/* LOWER SUB_BAND DECODER */\n\n/* filtez: compute predictor output for zero section */\n dec_szl = filtez (dec_del_bpl, dec_del_dltx);\n\n/* filtep: compute predictor output signal for pole section */\n dec_spl = filtep (dec_rlt1, dec_al1, dec_rlt2, dec_al2);\n\n dec_sl = dec_spl + dec_szl;\n\n/* compute quantized difference signal for adaptive predic */\n dec_dlt = ((long) dec_detl * qq4_code4_table[ilr >> 2]) >> 15;\n\n/* compute quantized difference signal for decoder output */\n dl = ((long) dec_detl * qq6_code6_table[il]) >> 15;\n\n rl = dl + dec_sl;\n\n/* logscl: quantizer scale factor adaptation in the lower sub-band */\n dec_nbl = logscl (ilr, dec_nbl);\n\n/* scalel: computes quantizer scale factor in the lower sub band */\n dec_detl = scalel (dec_nbl, 8);\n\n/* parrec - add pole predictor output to quantized diff. signal */\n/* for partially reconstructed signal */\n dec_plt = dec_dlt + dec_szl;\n\n/* upzero: update zero section predictor coefficients */\n upzero (dec_dlt, dec_del_dltx, dec_del_bpl);\n\n/* uppol2: update second predictor coefficient apl2 and delay it as al2 */\n dec_al2 = uppol2 (dec_al1, dec_al2, dec_plt, dec_plt1, dec_plt2);\n\n/* uppol1: update first predictor coef. (pole setion) */\n dec_al1 = uppol1 (dec_al1, dec_al2, dec_plt, dec_plt1);\n\n/* recons : compute recontructed signal for adaptive predictor */\n dec_rlt = dec_sl + dec_dlt;\n\n/* done with lower sub band decoder, implement delays for next time */\n dec_rlt2 = dec_rlt1;\n dec_rlt1 = dec_rlt;\n dec_plt2 = dec_plt1;\n dec_plt1 = dec_plt;\n\n/* HIGH SUB-BAND DECODER */\n\n/* filtez: compute predictor output for zero section */\n dec_szh = filtez (dec_del_bph, dec_del_dhx);\n\n/* filtep: compute predictor output signal for pole section */\n dec_sph = filtep (dec_rh1, dec_ah1, dec_rh2, dec_ah2);\n\n/* predic:compute the predictor output value in the higher sub_band decoder */\n dec_sh = dec_sph + dec_szh;\n\n/* in-place compute the quantized difference signal */\n dec_dh = ((long) dec_deth * qq2_code2_table[ih]) >> 15L;\n\n/* logsch: update logarithmic quantizer scale factor in hi sub band */\n dec_nbh = logsch (ih, dec_nbh);\n\n/* scalel: compute the quantizer scale factor in the higher sub band */\n dec_deth = scalel (dec_nbh, 10);\n\n/* parrec: compute partially recontructed signal */\n dec_ph = dec_dh + dec_szh;\n\n/* upzero: update zero section predictor coefficients */\n upzero (dec_dh, dec_del_dhx, dec_del_bph);\n\n/* uppol2: update second predictor coefficient aph2 and delay it as ah2 */\n dec_ah2 = uppol2 (dec_ah1, dec_ah2, dec_ph, dec_ph1, dec_ph2);\n\n/* uppol1: update first predictor coef. (pole setion) */\n dec_ah1 = uppol1 (dec_ah1, dec_ah2, dec_ph, dec_ph1);\n\n/* recons : compute recontructed signal for adaptive predictor */\n rh = dec_sh + dec_dh;\n\n/* done with high band decode, implementing delays for next time here */\n dec_rh2 = dec_rh1;\n dec_rh1 = rh;\n dec_ph2 = dec_ph1;\n dec_ph1 = dec_ph;\n\n/* end of higher sub_band decoder */\n\n/* end with receive quadrature mirror filters */\n xd = rl - rh;\n xs = rl + rh;\n\n/* receive quadrature mirror filters implemented here */\n h_ptr = h;\n ac_ptr = accumc;\n ad_ptr = accumd;\n xa1 = (long) xd *(*h_ptr++);\n xa2 = (long) xs *(*h_ptr++);\n/* main multiply accumulate loop for samples and coefficients */\n for (i = 0; i < 10; i++)\n {\n xa1 += (long) (*ac_ptr++) * (*h_ptr++);\n xa2 += (long) (*ad_ptr++) * (*h_ptr++);\n }\n/* final mult/accumulate */\n xa1 += (long) (*ac_ptr) * (*h_ptr++);\n xa2 += (long) (*ad_ptr) * (*h_ptr++);\n\n/* scale by 2^14 */\n xout1 = xa1 >> 14;\n xout2 = xa2 >> 14;\n\n/* update delay lines */\n ac_ptr1 = ac_ptr - 1;\n ad_ptr1 = ad_ptr - 1;\n for (i = 0; i < 10; i++)\n {\n *ac_ptr-- = *ac_ptr1--;\n *ad_ptr-- = *ad_ptr1--;\n }\n *ac_ptr = xd;\n *ad_ptr = xs;\n}\n\n/* clear all storage locations */\n\nvoid\nreset ()\n{\n int i;\n\n detl = dec_detl = 32;\t\t/* reset to min scale factor */\n deth = dec_deth = 8;\n nbl = al1 = al2 = plt1 = plt2 = rlt1 = rlt2 = 0;\n nbh = ah1 = ah2 = ph1 = ph2 = rh1 = rh2 = 0;\n dec_nbl = dec_al1 = dec_al2 = dec_plt1 = dec_plt2 = dec_rlt1 = dec_rlt2 = 0;\n dec_nbh = dec_ah1 = dec_ah2 = dec_ph1 = dec_ph2 = dec_rh1 = dec_rh2 = 0;\n\n for (i = 0; i < 6; i++)\n {\n delay_dltx[i] = 0;\n delay_dhx[i] = 0;\n dec_del_dltx[i] = 0;\n dec_del_dhx[i] = 0;\n }\n\n for (i = 0; i < 6; i++)\n {\n delay_bpl[i] = 0;\n delay_bph[i] = 0;\n dec_del_bpl[i] = 0;\n dec_del_bph[i] = 0;\n }\n\n for (i = 0; i < 24; i++)\n tqmf[i] = 0;\t\t// i<23\n\n for (i = 0; i < 11; i++)\n {\n accumc[i] = 0;\n accumd[i] = 0;\n }\n}\n\n/* filtez - compute predictor output signal (zero section) */\n/* input: bpl1-6 and dlt1-6, output: szl */\n\nint\nfiltez (int *bpl, int *dlt)\n{\n int i;\n long int zl;\n zl = (long) (*bpl++) * (*dlt++);\n for (i = 1; i < 6; i++)\n zl += (long) (*bpl++) * (*dlt++);\n\n return ((int) (zl >> 14));\t/* x2 here */\n}\n\n/* filtep - compute predictor output signal (pole section) */\n/* input rlt1-2 and al1-2, output spl */\n\nint\nfiltep (int rlt1, int al1, int rlt2, int al2)\n{\n long int pl, pl2;\n pl = 2 * rlt1;\n pl = (long) al1 *pl;\n pl2 = 2 * rlt2;\n pl += (long) al2 *pl2;\n return ((int) (pl >> 15));\n}\n\n/* quantl - quantize the difference signal in the lower sub-band */\nint\nquantl (int el, int detl)\n{\n int ril, mil;\n long int wd, decis;\n\n/* abs of difference signal */\n wd = abs (el);\n/* determine mil based on decision levels and detl gain */\n for (mil = 0; mil < 30; mil++)\n {\n decis = (decis_levl[mil] * (long) detl) >> 15L;\n if (wd <= decis)\n\tbreak;\n }\n/* if mil=30 then wd is less than all decision levels */\n if (el >= 0)\n ril = quant26bt_pos[mil];\n else\n ril = quant26bt_neg[mil];\n return (ril);\n}\n\n/* logscl - update log quantizer scale factor in lower sub-band */\n/* note that nbl is passed and returned */\n\nint\nlogscl (int il, int nbl)\n{\n long int wd;\n wd = ((long) nbl * 127L) >> 7L;\t/* leak factor 127/128 */\n nbl = (int) wd + wl_code_table[il >> 2];\n if (nbl < 0)\n nbl = 0;\n if (nbl > 18432)\n nbl = 18432;\n return (nbl);\n}\n\n/* scalel: compute quantizer scale factor in lower or upper sub-band*/\n\nint\nscalel (int nbl, int shift_constant)\n{\n int wd1, wd2, wd3;\n wd1 = (nbl >> 6) & 31;\n wd2 = nbl >> 11;\n wd3 = ilb_table[wd1] >> (shift_constant + 1 - wd2);\n return (wd3 << 3);\n}\n\n/* upzero - inputs: dlt, dlti[0-5], bli[0-5], outputs: updated bli[0-5] */\n/* also implements delay of bli and update of dlti from dlt */\n\nvoid\nupzero (int dlt, int *dlti, int *bli)\n{\n int i, wd2, wd3;\n/*if dlt is zero, then no sum into bli */\n if (dlt == 0)\n {\n for (i = 0; i < 6; i++)\n\t{\n\t bli[i] = (int) ((255L * bli[i]) >> 8L);\t/* leak factor of 255/256 */\n\t}\n }\n else\n {\n for (i = 0; i < 6; i++)\n\t{\n\t if ((long) dlt * dlti[i] >= 0)\n\t wd2 = 128;\n\t else\n\t wd2 = -128;\n\t wd3 = (int) ((255L * bli[i]) >> 8L);\t/* leak factor of 255/256 */\n\t bli[i] = wd2 + wd3;\n\t}\n }\n/* implement delay line for dlt */\n dlti[5] = dlti[4];\n dlti[4] = dlti[3];\n dlti[3] = dlti[2];\n dlti[2] = dlti[1];\n dlti[1] = dlti[0];\n dlti[0] = dlt;\n}\n\n/* uppol2 - update second predictor coefficient (pole section) */\n/* inputs: al1, al2, plt, plt1, plt2. outputs: apl2 */\n\nint\nuppol2 (int al1, int al2, int plt, int plt1, int plt2)\n{\n long int wd2, wd4;\n int apl2;\n wd2 = 4L * (long) al1;\n if ((long) plt * plt1 >= 0L)\n wd2 = -wd2;\t\t\t/* check same sign */\n wd2 = wd2 >> 7;\t\t/* gain of 1/128 */\n if ((long) plt * plt2 >= 0L)\n {\n wd4 = wd2 + 128;\t\t/* same sign case */\n }\n else\n", "right_context": "/* apl2 is limited to +-.75 */\n if (apl2 > 12288)\n apl2 = 12288;\n if (apl2 < -12288)\n apl2 = -12288;\n return (apl2);\n}\n\n/* uppol1 - update first predictor coefficient (pole section) */\n/* inputs: al1, apl2, plt, plt1. outputs: apl1 */\n\nint\nuppol1 (int al1, int apl2, int plt, int plt1)\n{\n long int wd2;\n int wd3, apl1;\n wd2 = ((long) al1 * 255L) >> 8L;\t/* leak factor of 255/256 */\n if ((long) plt * plt1 >= 0L)\n {\n apl1 = (int) wd2 + 192;\t/* same sign case */\n }\n else\n {\n apl1 = (int) wd2 - 192;\n }\n/* note: wd3= .9375-.75 is always positive */\n wd3 = 15360 - apl2;\t\t/* limit value */\n if (apl1 > wd3)\n apl1 = wd3;\n if (apl1 < -wd3)\n apl1 = -wd3;\n return (apl1);\n}\n\n/* logsch - update log quantizer scale factor in higher sub-band */\n/* note that nbh is passed and returned */\n\nint\nlogsch (int ih, int nbh)\n{\n int wd;\n wd = ((long) nbh * 127L) >> 7L;\t/* leak factor 127/128 */\n nbh = wd + wh_code_table[ih];\n if (nbh < 0)\n nbh = 0;\n if (nbh > 22528)\n nbh = 22528;\n return (nbh);\n}\n\n/*\n+--------------------------------------------------------------------------+\n| * Test Vectors (added for CHStone) |\n| test_data : input data |\n| test_compressed : expected output data for \"encode\" |\n| test_result : expected output data for \"decode\" |\n+--------------------------------------------------------------------------+\n*/\n\n#define SIZE 100\n#define IN_END 100\n\nconst int test_data[SIZE] = {\n 0x44, 0x44, 0x44, 0x44, 0x44,\n 0x44, 0x44, 0x44, 0x44, 0x44,\n 0x44, 0x44, 0x44, 0x44, 0x44,\n 0x44, 0x44, 0x43, 0x43, 0x43,\n 0x43, 0x43, 0x43, 0x43, 0x42,\n 0x42, 0x42, 0x42, 0x42, 0x42,\n 0x41, 0x41, 0x41, 0x41, 0x41,\n 0x40, 0x40, 0x40, 0x40, 0x40,\n 0x40, 0x40, 0x40, 0x3f, 0x3f,\n 0x3f, 0x3f, 0x3f, 0x3e, 0x3e,\n 0x3e, 0x3e, 0x3e, 0x3e, 0x3d,\n 0x3d, 0x3d, 0x3d, 0x3d, 0x3d,\n 0x3c, 0x3c, 0x3c, 0x3c, 0x3c,\n 0x3c, 0x3c, 0x3c, 0x3c, 0x3b,\n 0x3b, 0x3b, 0x3b, 0x3b, 0x3b,\n 0x3b, 0x3b, 0x3b, 0x3b, 0x3b,\n 0x3b, 0x3b, 0x3b, 0x3b, 0x3b,\n 0x3b, 0x3b, 0x3b, 0x3b, 0x3b,\n 0x3b, 0x3b, 0x3c, 0x3c, 0x3c,\n 0x3c, 0x3c, 0x3c, 0x3c, 0x3c\n};\nint compressed[SIZE], result[SIZE];\nconst int test_compressed[SIZE] = {\n 0xfd, 0xde, 0x77, 0xba, 0xf2, \n 0x90, 0x20, 0xa0, 0xec, 0xed, \n 0xef, 0xf1, 0xf3, 0xf4, 0xf5, \n 0xf5, 0xf5, 0xf5, 0xf6, 0xf6, \n 0xf6, 0xf7, 0xf8, 0xf7, 0xf8, \n 0xf7, 0xf9, 0xf8, 0xf7, 0xf9, \n 0xf8, 0xf8, 0xf6, 0xf8, 0xf8, \n 0xf7, 0xf9, 0xf9, 0xf9, 0xf8, \n 0xf7, 0xfa, 0xf8, 0xf8, 0xf7, \n 0xfb, 0xfa, 0xf9, 0xf8, 0xf8\n};\nconst int test_result[SIZE] = {\n 0, 0xffffffff, 0xffffffff, 0, 0, \n 0xffffffff, 0, 0, 0xffffffff, 0xffffffff, \n 0, 0, 0x1, 0x1, 0, \n 0xfffffffe, 0xffffffff, 0xfffffffe, 0, 0xfffffffc, \n 0x1, 0x1, 0x1, 0xfffffffb, 0x2, \n 0x2, 0x3, 0xb, 0x14, 0x14, \n 0x16, 0x18, 0x20, 0x21, 0x26, \n 0x27, 0x2e, 0x2f, 0x33, 0x32, \n 0x35, 0x33, 0x36, 0x34, 0x37, \n 0x34, 0x37, 0x35, 0x38, 0x36, \n 0x39, 0x38, 0x3b, 0x3a, 0x3f, \n 0x3f, 0x40, 0x3a, 0x3d, 0x3e, \n 0x41, 0x3c, 0x3e, 0x3f, 0x42, \n 0x3e, 0x3b, 0x37, 0x3b, 0x3e, \n 0x41, 0x3b, 0x3b, 0x3a, 0x3b, \n 0x36, 0x39, 0x3b, 0x3f, 0x3c, \n 0x3b, 0x37, 0x3b, 0x3d, 0x41, \n 0x3d, 0x3e, 0x3c, 0x3e, 0x3b, \n 0x3a, 0x37, 0x3b, 0x3e, 0x41, \n 0x3c, 0x3b, 0x39, 0x3a, 0x36\n};\n\nvoid\nadpcm_main ()\n{\n int i, j;\n\n/* reset, initialize required memory */\n reset ();\n\n j = 10;\n\n for (i = 0; i < IN_END; i += 2)\n {\n compressed[i / 2] = encode (test_data[i], test_data[i + 1]);\n }\n for (i = 0; i < IN_END; i += 2)\n {\n decode (compressed[i / 2]);\n result[i] = xout1;\n result[i + 1] = xout2;\n }\n}\n\nint\nmain ()\n{\n int i;\n int main_result;\n\n main_result = 0;\n adpcm_main ();\n for (i = 0; i < IN_END / 2; i++)\n\t{\n\t if (compressed[i] != test_compressed[i])\n\t {\n\t main_result += 1;\n\t }\n\t}\n for (i = 0; i < IN_END; i++)\n\t{\n\t if (result[i] != test_result[i])\n\t {\n\t main_result += 1;\n\t }\n\t}\n printf (\"%d\\n\", main_result);\n return main_result;\n }\n", "groundtruth": " {\n wd4 = wd2 - 128;\n }\n", "crossfile_context": ""} {"task_id": "CHStone", "path": "CHStone/blowfish/bf.c", "left_context": "/*\n+--------------------------------------------------------------------------+\n| CHStone : a suite of benchmark programs for C-based High-Level Synthesis |\n| ======================================================================== |\n| |\n| * Collected and Modified : Y. Hara, H. Tomiyama, S. Honda, |\n| H. Takada and K. Ishii |\n| Nagoya University, Japan |\n| |\n| * Remark : |\n| 1. This source code is modified to unify the formats of the benchmark |\n| programs in CHStone. |\n| 2. Test vectors are added for CHStone. |\n| 3. If \"main_result\" is 0 at the end of the program, the program is |\n| correctly executed. |\n| 4. Please follow the copyright of each benchmark program. |\n+--------------------------------------------------------------------------+\n*/\n/* crypto/bf/bf.c */\n/* Copyright (C) 1995-1997 Eric Young (eay@mincom.oz.au)\n * All rights reserved.\n *\n * This package is an SSL implementation written\n * by Eric Young (eay@mincom.oz.au).\n * The implementation was written so as to conform with Netscapes SSL.\n * \n * This library is free for commercial and non-commercial use as long as\n * the following conditions are aheared to. The following conditions\n * apply to all code found in this distribution, be it the RC4, RSA,\n * lhash, DES, etc., code; not just the SSL code. The SSL documentation\n * included with this distribution is covered by the same copyright terms\n * except that the holder is Tim Hudson (tjh@mincom.oz.au).\n * \n * Copyright remains Eric Young's, and as such any Copyright notices in\n * the code are not to be removed.\n * If this package is used in a product, Eric Young should be given attribution\n * as the author of the parts of the library used.\n * This can be in the form of a textual message at program startup or\n * in documentation (online or textual) provided with the package.\n * \n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the copyright\n * notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n * 3. All advertising materials mentioning features or use of this software\n * must display the following acknowledgement:\n * \"This product includes cryptographic software written by\n * Eric Young (eay@mincom.oz.au)\"\n * The word 'cryptographic' can be left out if the rouines from the library\n * being used are not cryptographic related :-).\n * 4. If you include any Windows specific code (or a derivative thereof) from \n * the apps directory (application code) you must include an acknowledgement:\n * \"This product includes software written by Tim Hudson (tjh@mincom.oz.au)\"\n * \n * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n * \n * The licence and distribution terms for any publically available version or\n * derivative of this code cannot be changed. i.e. this code cannot simply be\n * copied and put under another distribution licence\n * [including the GNU Public Licence.]\n */\n#include \n\n#include \"blowfish.h\"\n#include \"bf_locl.h\"\n#include \"bf_pi.h\"\n#include \"bf_skey.c\"\n#include \"bf_cfb64.c\"\n#include \"bf_enc.c\"\n\n/*\n+--------------------------------------------------------------------------+\n| * Test Vectors (added for CHStone) |\n| in_key : input data |\n| out_key : expected output data |\n+--------------------------------------------------------------------------+\n*/\n#define KEYSIZE 5200\nconst unsigned char in_key[KEYSIZE] = {\n 75, 117, 114, 116, 86, 111, 110, 110, 101, 103, 117, 116, 115, 67, 111, 109,\n 109, 101, 110, 99, 101, 109, 101, 110, 116, 65, 100, 100, 114, 101, 115,\n 115, 97, 116, 77, 73, 84, 76, 97, 100,\n 105, 101, 115, 97, 110, 100, 103, 101, 110, 116, 108, 101, 109, 101, 110,\n 111, 102, 116, 104, 101, 99, 108, 97, 115, 115, 111, 102, 57, 55, 87, 101,\n 97, 114, 115, 117, 110, 115, 99, 114, 101,\n 101, 110, 73, 102, 73, 99, 111, 117, 108, 100, 111, 102, 102, 101, 114, 121,\n 111, 117, 111, 110, 108, 121, 111, 110, 101, 116, 105, 112, 102, 111, 114,\n 116, 104, 101, 102, 117, 116, 117, 114, 101,\n 115, 117, 110, 115, 99, 114, 101, 101, 110, 119, 111, 117, 108, 100, 98,\n 101, 105, 116, 84, 104, 101, 108, 111, 110, 103, 116, 101, 114, 109, 98,\n 101, 110, 101, 102, 105, 116, 115, 111, 102, 115,\n 117, 110, 115, 99, 114, 101, 101, 110, 104, 97, 118, 101, 98, 101, 101, 110,\n 112, 114, 111, 118, 101, 100, 98, 121, 115, 99, 105, 101, 110, 116, 105,\n 115, 116, 115, 119, 104, 101, 114, 101, 97,\n 115, 116, 104, 101, 114, 101, 115, 116, 111, 102, 109, 121, 97, 100, 118,\n 105, 99, 101, 104, 97, 115, 110, 111, 98, 97, 115, 105, 115, 109, 111,\n 114, 101, 114, 101, 108, 105, 97, 98, 108, 101,\n 116, 104, 97, 110, 109, 121, 111, 119, 110, 109, 101, 97, 110, 100, 101,\n 114, 105, 110, 103, 101, 120, 112, 101, 114, 105, 101, 110, 99, 101, 73,\n 119, 105, 108, 108, 100, 105, 115, 112, 101, 110,\n 115, 101, 116, 104, 105, 115, 97, 100, 118, 105, 99, 101, 110, 111, 119, 69,\n 110, 106, 111, 121, 116, 104, 101, 112, 111, 119, 101, 114, 97, 110, 100,\n 98, 101, 97, 117, 116, 121, 111, 102, 121,\n 111, 117, 114, 121, 111, 117, 116, 104, 79, 104, 110, 101, 118, 101, 114,\n 109, 105, 110, 100, 89, 111, 117, 119, 105, 108, 108, 110, 111, 116, 117,\n 110, 100, 101, 114, 115, 116, 97, 110, 100, 116,\n 104, 101, 112, 111, 119, 101, 114, 97, 110, 100, 98, 101, 97, 117, 116, 121,\n 111, 102, 121, 111, 117, 114, 121, 111, 117, 116, 104, 117, 110, 116, 105,\n 108, 116, 104, 101, 121, 118, 101, 102, 97,\n 100, 101, 100, 66, 117, 116, 116, 114, 117, 115, 116, 109, 101, 105, 110,\n 50, 48, 121, 101, 97, 114, 115, 121, 111, 117, 108, 108, 108, 111, 111,\n 107, 98, 97, 99, 107, 97, 116, 112, 104, 111,\n 116, 111, 115, 111, 102, 121, 111, 117, 114, 115, 101, 108, 102, 97, 110,\n 100, 114, 101, 99, 97, 108, 108, 105, 110, 97, 119, 97, 121, 121, 111,\n 117, 99, 97, 110, 116, 103, 114, 97, 115, 112,\n 110, 111, 119, 104, 111, 119, 109, 117, 99, 104, 112, 111, 115, 115, 105,\n 98, 105, 108, 105, 116, 121, 108, 97, 121, 98, 101, 102, 111, 114, 101,\n 121, 111, 117, 97, 110, 100, 104, 111, 119, 102,\n 97, 98, 117, 108, 111, 117, 115, 121, 111, 117, 114, 101, 97, 108, 108, 121,\n 108, 111, 111, 107, 101, 100, 89, 111, 117, 97, 114, 101, 110, 111, 116,\n 97, 115, 102, 97, 116, 97, 115, 121, 111,\n 117, 105, 109, 97, 103, 105, 110, 101, 68, 111, 110, 116, 119, 111, 114,\n 114, 121, 97, 98, 111, 117, 116, 116, 104, 101, 102, 117, 116, 117, 114,\n 101, 79, 114, 119, 111, 114, 114, 121, 98, 117,\n 116, 107, 110, 111, 119, 116, 104, 97, 116, 75, 117, 114, 116, 86, 111, 110,\n 110, 101, 103, 117, 75, 117, 114, 116, 86, 111, 110, 110, 101, 103, 117,\n 116, 115, 67, 111, 109, 109, 101, 110, 99,\n 101, 109, 101, 110, 116, 65, 100, 100, 114, 101, 115, 115, 97, 116, 77, 73,\n 84, 76, 97, 100, 105, 101, 115, 97, 110, 100, 103, 101, 110, 116, 108,\n 101, 109, 101, 110, 111, 102, 116, 104, 101,\n 99, 108, 97, 115, 115, 111, 102, 57, 55, 87, 101, 97, 114, 115, 117, 110,\n 115, 99, 114, 101, 101, 110, 73, 102, 73, 99, 111, 117, 108, 100, 111,\n 102, 102, 101, 114, 121, 111, 117, 111, 110,\n 108, 121, 111, 110, 101, 116, 105, 112, 102, 111, 114, 116, 104, 101, 102,\n 117, 116, 117, 114, 101, 115, 117, 110, 115, 99, 114, 101, 101, 110, 119,\n 111, 117, 108, 100, 98, 101, 105, 116, 84, 104,\n 101, 108, 111, 110, 103, 116, 101, 114, 109, 98, 101, 110, 101, 102, 105,\n 116, 115, 111, 102, 115, 117, 110, 115, 99, 114, 101, 101, 110, 104, 97,\n 118, 101, 98, 101, 101, 110, 112, 114, 111, 118,\n 101, 100, 98, 121, 115, 99, 105, 101, 110, 116, 105, 115, 116, 115, 119,\n 104, 101, 114, 101, 97, 115, 116, 104, 101, 114, 101, 115, 116, 111, 102,\n 109, 121, 97, 100, 118, 105, 99, 101, 104, 97,\n 115, 110, 111, 98, 97, 115, 105, 115, 109, 111, 114, 101, 114, 101, 108,\n 105, 97, 98, 108, 101, 116, 104, 97, 110, 109, 121, 111, 119, 110, 109,\n 101, 97, 110, 100, 101, 114, 105, 110, 103, 101,\n 120, 112, 101, 114, 105, 101, 110, 99, 101, 73, 119, 105, 108, 108, 100,\n 105, 115, 112, 101, 110, 115, 101, 116, 104, 105, 115, 97, 100, 118, 105,\n 99, 101, 110, 111, 119, 69, 110, 106, 111, 121,\n 116, 104, 101, 112, 111, 119, 101, 114, 97, 110, 100, 98, 101, 97, 117, 116,\n 121, 111, 102, 121, 111, 117, 114, 121, 111, 117, 116, 104, 79, 104, 110,\n 101, 118, 101, 114, 109, 105, 110, 100, 89,\n 111, 117, 119, 105, 108, 108, 110, 111, 116, 117, 110, 100, 101, 114, 115,\n 116, 97, 110, 100, 116, 104, 101, 112, 111, 119, 101, 114, 97, 110, 100,\n 98, 101, 97, 117, 116, 121, 111, 102, 121, 111,\n 117, 114, 121, 111, 117, 116, 104, 117, 110, 116, 105, 108, 116, 104, 101,\n 121, 118, 101, 102, 97, 100, 101, 100, 66, 117, 116, 116, 114, 117, 115,\n 116, 109, 101, 105, 110, 50, 48, 121, 101, 97,\n 114, 115, 121, 111, 117, 108, 108, 108, 111, 111, 107, 98, 97, 99, 107, 97,\n 116, 112, 104, 111, 116, 111, 115, 111, 102, 121, 111, 117, 114, 115, 101,\n 108, 102, 97, 110, 100, 114, 101, 99, 97,\n 108, 108, 105, 110, 97, 119, 97, 121, 121, 111, 117, 99, 97, 110, 116, 103,\n 114, 97, 115, 112, 110, 111, 119, 104, 111, 119, 109, 117, 99, 104, 112,\n 111, 115, 115, 105, 98, 105, 108, 105, 116,\n 121, 108, 97, 121, 98, 101, 102, 111, 114, 101, 121, 111, 117, 97, 110, 100,\n 104, 111, 119, 102, 97, 98, 117, 108, 111, 117, 115, 121, 111, 117, 114,\n 101, 97, 108, 108, 121, 108, 111, 111, 107,\n 101, 100, 89, 111, 117, 97, 114, 101, 110, 111, 116, 97, 115, 102, 97, 116,\n 97, 115, 121, 111, 117, 105, 109, 97, 103, 105, 110, 101, 68, 111, 110,\n 116, 119, 111, 114, 114, 121, 97, 98, 111,\n 117, 116, 116, 104, 101, 102, 117, 116, 117, 114, 101, 79, 114, 119, 111,\n 114, 114, 121, 98, 117, 116, 107, 110, 111, 119, 116, 104, 97, 116, 75,\n 117, 114, 116, 86, 111, 110, 110, 101, 103, 117,\n 116, 115, 67, 111, 109, 109, 101, 110, 99, 101, 109, 101, 110, 116, 65, 100,\n 100, 114, 101, 115, 115, 97, 116, 77, 73, 84, 76, 97, 100, 105, 101, 115,\n 97, 110, 100, 103, 101, 110, 116, 108,\n 101, 109, 101, 110, 111, 102, 116, 104, 101, 99, 108, 97, 115, 115, 111,\n 102, 57, 55, 87, 101, 97, 114, 115, 117, 110, 115, 99, 114, 101, 101, 110,\n 73, 102, 73, 99, 111, 117, 108, 100, 111,\n 102, 102, 101, 114, 121, 111, 117, 111, 110, 108, 121, 111, 110, 101, 116,\n 105, 112, 102, 111, 114, 116, 104, 101, 102, 117, 116, 117, 114, 101, 115,\n 117, 110, 115, 99, 114, 101, 101, 110, 119, 111,\n 117, 108, 100, 98, 101, 105, 116, 84, 104, 101, 108, 111, 110, 103, 116,\n 101, 114, 109, 98, 101, 110, 101, 102, 105, 116, 115, 111, 102, 115, 117,\n 110, 115, 99, 114, 101, 101, 110, 104, 97, 118,\n 101, 98, 101, 101, 110, 112, 114, 111, 118, 101, 100, 98, 121, 115, 99, 105,\n 101, 110, 116, 105, 115, 116, 115, 119, 104, 101, 114, 101, 97, 115, 116,\n 104, 101, 114, 101, 115, 116, 111, 102, 109,\n 121, 97, 100, 118, 105, 99, 101, 104, 97, 115, 110, 111, 98, 97, 115, 105,\n 115, 109, 111, 114, 101, 114, 101, 108, 105, 97, 98, 108, 101, 116, 104,\n 97, 110, 109, 121, 111, 119, 110, 109, 101,\n 97, 110, 100, 101, 114, 105, 110, 103, 101, 120, 112, 101, 114, 105, 101,\n 110, 99, 101, 73, 119, 105, 108, 108, 100, 105, 115, 112, 101, 110, 115,\n 101, 116, 104, 105, 115, 97, 100, 118, 105, 99,\n 101, 110, 111, 119, 69, 110, 106, 111, 121, 116, 104, 101, 112, 111, 119,\n 101, 114, 97, 110, 100, 98, 101, 97, 117, 116, 121, 111, 102, 121, 111,\n 117, 114, 121, 111, 117, 116, 104, 79, 104, 110,\n 101, 118, 101, 114, 109, 105, 110, 100, 89, 111, 117, 119, 105, 108, 108,\n 110, 111, 116, 117, 110, 100, 101, 114, 115, 116, 97, 110, 100, 116, 104,\n 101, 112, 111, 119, 101, 114, 97, 110, 100, 98,\n 101, 97, 117, 116, 121, 111, 102, 121, 111, 117, 114, 121, 111, 117, 116,\n 104, 117, 110, 116, 105, 108, 116, 104, 101, 121, 118, 101, 102, 97, 100,\n 101, 100, 66, 117, 116, 116, 114, 117, 115, 116,\n 109, 101, 105, 110, 50, 48, 121, 101, 97, 114, 115, 121, 111, 117, 108, 108,\n 108, 111, 111, 107, 98, 97, 99, 107, 97, 116, 112, 104, 111, 116, 111,\n 115, 111, 102, 121, 111, 117, 114, 115, 101,\n 108, 102, 97, 110, 100, 114, 101, 99, 97, 108, 108, 105, 110, 97, 119, 97,\n 121, 121, 111, 117, 99, 97, 110, 116, 103, 114, 97, 115, 112, 110, 111,\n 119, 104, 111, 119, 109, 117, 99, 104, 112,\n 111, 115, 115, 105, 98, 105, 108, 105, 116, 121, 108, 97, 121, 98, 101, 102,\n 111, 114, 101, 121, 111, 117, 97, 110, 100, 104, 111, 119, 102, 97, 98,\n 117, 108, 111, 117, 115, 121, 111, 117, 114,\n 101, 97, 108, 108, 121, 108, 111, 111, 107, 101, 100, 89, 111, 117, 97, 114,\n 101, 110, 111, 116, 97, 115, 102, 97, 116, 97, 115, 121, 111, 117, 105,\n 109, 97, 103, 105, 110, 101, 68, 111, 110,\n 116, 119, 111, 114, 114, 121, 97, 98, 111, 117, 116, 116, 104, 101, 102,\n 117, 116, 117, 114, 101, 79, 114, 119, 111, 114, 114, 121, 98, 117, 116,\n 107, 110, 111, 119, 116, 104, 97, 116, 75, 117,\n 114, 116, 86, 111, 110, 110, 101, 103, 117, 116, 115, 67, 111, 109, 109,\n 101, 110, 99, 101, 109, 101, 110, 116, 65, 100, 100, 114, 101, 115, 115,\n 97, 116, 77, 73, 84, 76, 97, 100, 105, 101,\n 115, 97, 110, 100, 103, 101, 110, 116, 108, 101, 109, 101, 110, 111, 102,\n 116, 104, 101, 99, 108, 97, 115, 115, 111, 102, 57, 55, 87, 101, 97, 114,\n 115, 117, 110, 115, 99, 114, 101, 101, 110,\n 73, 102, 73, 99, 111, 117, 108, 100, 111, 102, 102, 101, 114, 121, 111, 117,\n 111, 110, 108, 121, 111, 110, 101, 116, 105, 112, 102, 111, 114, 116, 104,\n 101, 102, 117, 116, 117, 114, 101, 115, 117,\n 110, 115, 99, 114, 101, 101, 110, 119, 111, 117, 108, 100, 98, 101, 105,\n 116, 84, 104, 101, 108, 111, 110, 103, 116, 101, 114, 109, 98, 101, 110,\n 101, 102, 105, 116, 115, 111, 102, 115, 117, 110,\n 115, 99, 114, 101, 101, 110, 104, 97, 118, 101, 98, 101, 101, 110, 112, 114,\n 111, 118, 101, 100, 98, 121, 115, 99, 105, 101, 110, 116, 105, 115, 116,\n 115, 119, 104, 101, 114, 101, 97, 115, 116,\n 104, 101, 114, 101, 115, 116, 111, 102, 109, 121, 97, 100, 118, 105, 99,\n 101, 104, 97, 115, 110, 111, 98, 97, 115, 105, 115, 109, 111, 114, 101,\n 114, 101, 108, 105, 97, 98, 108, 101, 116, 104,\n 97, 110, 109, 121, 111, 119, 110, 109, 101, 97, 110, 100, 101, 114, 105,\n 110, 103, 101, 120, 112, 101, 114, 105, 101, 110, 99, 101, 73, 119, 105,\n 108, 108, 100, 105, 115, 112, 101, 110, 115, 101,\n 116, 104, 105, 115, 97, 100, 118, 105, 99, 101, 110, 111, 119, 69, 110, 106,\n 111, 121, 116, 104, 101, 112, 111, 119, 101, 114, 97, 110, 100, 98, 101,\n 97, 117, 116, 121, 111, 102, 121, 111, 117,\n 114, 121, 111, 117, 116, 104, 79, 104, 110, 101, 118, 101, 114, 109, 105,\n 110, 100, 89, 111, 117, 119, 105, 108, 108, 110, 111, 116, 117, 110, 100,\n 101, 114, 115, 116, 97, 110, 100, 116, 104, 101,\n 112, 111, 119, 101, 114, 97, 110, 100, 98, 101, 97, 117, 116, 121, 111, 102,\n 121, 111, 117, 114, 121, 111, 117, 116, 104, 117, 110, 116, 105, 108, 116,\n 104, 101, 121, 118, 101, 102, 97, 100, 101,\n 100, 66, 117, 116, 116, 114, 117, 115, 116, 109, 101, 105, 110, 50, 48, 121,\n 101, 97, 114, 115, 121, 111, 117, 108, 108, 108, 111, 111, 107, 98, 97,\n 99, 107, 97, 116, 112, 104, 111, 116, 111,\n 115, 111, 102, 121, 111, 117, 114, 115, 101, 108, 102, 97, 110, 100, 114,\n 101, 99, 97, 108, 108, 105, 110, 97, 119, 97, 121, 121, 111, 117, 99, 97,\n 110, 116, 103, 114, 97, 115, 112, 110, 111,\n 119, 104, 111, 119, 109, 117, 99, 104, 112, 111, 115, 115, 105, 98, 105,\n 108, 105, 116, 121, 108, 97, 121, 98, 101, 102, 111, 114, 101, 121, 111,\n 117, 97, 110, 100, 104, 111, 119, 102, 97, 98,\n 117, 108, 111, 117, 115, 121, 111, 117, 114, 101, 97, 108, 108, 121, 108,\n 111, 111, 107, 101, 100, 89, 111, 117, 97, 114, 101, 110, 111, 116, 97,\n 115, 102, 97, 116, 97, 115, 121, 111, 117, 105,\n 109, 97, 103, 105, 110, 101, 68, 111, 110, 116, 119, 111, 114, 114, 121, 97,\n 98, 111, 117, 116, 116, 104, 101, 102, 117, 116, 117, 114, 101, 79, 114,\n 119, 111, 114, 114, 121, 75, 117, 114, 116,\n 86, 111, 110, 110, 101, 103, 117, 116, 115, 67, 111, 109, 109, 101, 110, 99,\n 101, 109, 101, 110, 116, 65, 100, 100, 114, 101, 115, 115, 97, 116, 77,\n 73, 84, 76, 97, 100, 105, 101, 115, 97,\n 110, 100, 103, 101, 110, 116, 108, 101, 109, 101, 110, 111, 102, 116, 104,\n 101, 99, 108, 97, 115, 115, 111, 102, 57, 55, 87, 101, 97, 114, 115, 117,\n 110, 115, 99, 114, 101, 101, 110, 73, 102,\n 73, 99, 111, 117, 108, 100, 111, 102, 102, 101, 114, 121, 111, 117, 111,\n 110, 108, 121, 111, 110, 101, 116, 105, 112, 102, 111, 114, 116, 104, 101,\n 102, 117, 116, 117, 114, 101, 115, 117, 110, 115,\n 99, 114, 101, 101, 110, 119, 111, 117, 108, 100, 98, 101, 105, 116, 84, 104,\n 101, 108, 111, 110, 103, 116, 101, 114, 109, 98, 101, 110, 101, 102, 105,\n 116, 115, 111, 102, 115, 117, 110, 115, 99,\n 114, 101, 101, 110, 104, 97, 118, 101, 98, 101, 101, 110, 112, 114, 111,\n 118, 101, 100, 98, 121, 115, 99, 105, 101, 110, 116, 105, 115, 116, 115,\n 119, 104, 101, 114, 101, 97, 115, 116, 104, 101,\n 114, 101, 115, 116, 111, 102, 109, 121, 97, 100, 118, 105, 99, 101, 104, 97,\n 115, 110, 111, 98, 97, 115, 105, 115, 109, 111, 114, 101, 114, 101, 108,\n 105, 97, 98, 108, 101, 116, 104, 97, 110,\n 109, 121, 111, 119, 110, 109, 101, 97, 110, 100, 101, 114, 105, 110, 103,\n 101, 120, 112, 101, 114, 105, 101, 110, 99, 101, 73, 119, 105, 108, 108,\n 100, 105, 115, 112, 101, 110, 115, 101, 116, 104,\n 105, 115, 97, 100, 118, 105, 99, 101, 110, 111, 119, 69, 110, 106, 111, 121,\n 116, 104, 101, 112, 111, 119, 101, 114, 97, 110, 100, 98, 101, 97, 117,\n 116, 121, 111, 102, 121, 111, 117, 114, 121,\n 111, 117, 116, 104, 79, 104, 110, 101, 118, 101, 114, 109, 105, 110, 100,\n 89, 111, 117, 119, 105, 108, 108, 110, 111, 116, 117, 110, 100, 101, 114,\n 115, 116, 97, 110, 100, 116, 104, 101, 112, 111,\n 119, 101, 114, 97, 110, 100, 98, 101, 97, 117, 116, 121, 111, 102, 121, 111,\n 117, 114, 121, 111, 117, 116, 104, 117, 110, 116, 105, 108, 116, 104, 101,\n 121, 118, 101, 102, 97, 100, 101, 100, 66,\n 117, 116, 116, 114, 117, 115, 116, 109, 101, 105, 110, 50, 48, 121, 101, 97,\n 114, 115, 121, 111, 117, 108, 108, 108, 111, 111, 107, 98, 97, 99, 107,\n 97, 116, 112, 104, 111, 116, 111, 115, 111,\n 102, 121, 111, 117, 114, 115, 101, 108, 102, 97, 110, 100, 114, 101, 99, 97,\n 108, 108, 105, 110, 97, 119, 97, 121, 121, 111, 117, 99, 97, 110, 116,\n 103, 114, 97, 115, 112, 110, 111, 119, 104,\n 111, 119, 109, 117, 99, 104, 112, 111, 115, 115, 105, 98, 105, 108, 105,\n 116, 121, 108, 97, 121, 98, 101, 102, 111, 114, 101, 121, 111, 117, 97,\n 110, 100, 104, 111, 119, 102, 97, 98, 117, 108,\n 111, 117, 115, 121, 111, 117, 114, 101, 97, 108, 108, 121, 108, 111, 111,\n 107, 101, 100, 89, 111, 117, 97, 114, 101, 110, 111, 116, 97, 115, 102,\n 97, 116, 97, 115, 121, 111, 117, 105, 109, 97,\n 103, 105, 110, 101, 68, 111, 110, 116, 119, 111, 114, 114, 121, 97, 98, 111,\n 117, 116, 116, 104, 101, 102, 117, 116, 117, 114, 101, 79, 114, 119, 111,\n 114, 114, 121, 98, 117, 116, 107, 110, 111,\n 119, 116, 104, 97, 116, 75, 117, 114, 116, 86, 111, 110, 110, 101, 103, 117,\n 75, 117, 114, 116, 86, 111, 110, 110, 101, 103, 117, 116, 115, 67, 111,\n 109, 109, 101, 110, 99, 101, 109, 101, 110,\n 116, 65, 100, 100, 114, 101, 115, 115, 97, 116, 77, 73, 84, 76, 97, 100,\n 105, 101, 115, 97, 110, 100, 103, 101, 110, 116, 108, 101, 109, 101, 110,\n 111, 102, 116, 104, 101, 99, 108, 97, 115,\n 115, 111, 102, 57, 55, 87, 101, 97, 114, 115, 117, 110, 115, 99, 114, 101,\n 101, 110, 73, 102, 73, 99, 111, 117, 108, 100, 111, 102, 102, 101, 114,\n 121, 111, 117, 111, 110, 108, 121, 111, 110,\n 101, 116, 105, 112, 102, 111, 114, 116, 104, 101, 102, 117, 116, 117, 114,\n 101, 115, 117, 110, 115, 99, 114, 101, 101, 110, 119, 111, 117, 108, 100,\n 98, 101, 105, 116, 84, 104, 101, 108, 111, 110,\n 103, 116, 101, 114, 109, 98, 101, 110, 101, 102, 105, 116, 115, 111, 102,\n 115, 117, 110, 115, 99, 114, 101, 101, 110, 104, 97, 118, 101, 98, 101,\n 101, 110, 112, 114, 111, 118, 101, 100, 98, 121,\n 115, 99, 105, 101, 110, 116, 105, 115, 116, 115, 119, 104, 101, 114, 101,\n 97, 115, 116, 104, 101, 114, 101, 115, 116, 111, 102, 109, 121, 97, 100,\n 118, 105, 99, 101, 104, 97, 115, 110, 111, 98,\n 97, 115, 105, 115, 109, 111, 114, 101, 114, 101, 108, 105, 97, 98, 108, 101,\n 116, 104, 97, 110, 109, 121, 111, 119, 110, 109, 101, 97, 110, 100, 101,\n 114, 105, 110, 103, 101, 120, 112, 101, 114,\n 105, 101, 110, 99, 101, 73, 119, 105, 108, 108, 100, 105, 115, 112, 101,\n 110, 115, 101, 116, 104, 105, 115, 97, 100, 118, 105, 99, 101, 110, 111,\n 119, 69, 110, 106, 111, 121, 116, 104, 101, 112,\n 111, 119, 101, 114, 97, 110, 100, 98, 101, 97, 117, 116, 121, 111, 102, 121,\n 111, 117, 114, 121, 111, 117, 116, 104, 79, 104, 110, 101, 118, 101, 114,\n 109, 105, 110, 100, 89, 111, 117, 119, 105,\n 108, 108, 110, 111, 116, 117, 110, 100, 101, 114, 115, 116, 97, 110, 100,\n 116, 104, 101, 112, 111, 119, 101, 114, 97, 110, 100, 98, 101, 97, 117,\n 116, 121, 111, 102, 121, 111, 117, 114, 121, 111,\n 117, 116, 104, 117, 110, 116, 105, 108, 116, 104, 101, 121, 118, 101, 102,\n 97, 100, 101, 100, 66, 117, 116, 116, 114, 117, 115, 116, 109, 101, 105,\n 110, 50, 48, 121, 101, 97, 114, 115, 121, 111,\n 117, 108, 108, 108, 111, 111, 107, 98, 97, 99, 107, 97, 116, 112, 104, 111,\n 116, 111, 115, 111, 102, 121, 111, 117, 114, 115, 101, 108, 102, 97, 110,\n 100, 114, 101, 99, 97, 108, 108, 105, 110,\n 97, 119, 97, 121, 121, 111, 117, 99, 97, 110, 116, 103, 114, 97, 115, 112,\n 110, 111, 119, 104, 111, 119, 109, 117, 99, 104, 112, 111, 115, 115, 105,\n 98, 105, 108, 105, 116, 121, 108, 97, 121,\n 98, 101, 102, 111, 114, 101, 121, 111, 117, 97, 110, 100, 104, 111, 119,\n 102, 97, 98, 117, 108, 111, 117, 115, 121, 111, 117, 114, 101, 97, 108,\n 108, 121, 108, 111, 111, 107, 101, 100, 89, 111,\n 117, 97, 114, 101, 110, 111, 116, 97, 115, 102, 97, 116, 97, 115, 121, 111,\n 117, 105, 109, 97, 103, 105, 110, 101, 68, 111, 110, 116, 119, 111, 114,\n 114, 121, 97, 98, 111, 117, 116, 116, 104,\n 101, 102, 117, 116, 117, 114, 101, 79, 114, 119, 111, 114, 114, 121, 98,\n 117, 116, 107, 110, 111, 119, 116, 104, 97, 116, 75, 117, 114, 116, 86,\n 111, 110, 110, 101, 103, 117, 116, 115, 67, 111,\n 109, 109, 101, 110, 99, 101, 109, 101, 110, 116, 65, 100, 100, 114, 101,\n 115, 115, 97, 116, 77, 73, 84, 76, 97, 100, 105, 101, 115, 97, 110, 100,\n 103, 101, 110, 116, 108, 101, 109, 101, 110,\n 111, 102, 116, 104, 101, 99, 108, 97, 115, 115, 111, 102, 57, 55, 87, 101,\n 97, 114, 115, 117, 110, 115, 99, 114, 101, 101, 110, 73, 102, 73, 99, 111,\n 117, 108, 100, 111, 102, 102, 101, 114,\n 121, 111, 117, 111, 110, 108, 121, 111, 110, 101, 116, 105, 112, 102, 111,\n 114, 116, 104, 101, 102, 117, 116, 117, 114, 101, 115, 117, 110, 115, 99,\n 114, 101, 101, 110, 119, 111, 117, 108, 100, 98,\n 101, 105, 116, 84, 104, 101, 108, 111, 110, 103, 116, 101, 114, 109, 98,\n 101, 110, 101, 102, 105, 116, 115, 111, 102, 115, 117, 110, 115, 99, 114,\n 101, 101, 110, 104, 97, 118, 101, 98, 101, 101,\n 110, 112, 114, 111, 118, 101, 100, 98, 121, 115, 99, 105, 101, 110, 116,\n 105, 115, 116, 115, 119, 104, 101, 114, 101, 97, 115, 116, 104, 101, 114,\n 101, 115, 116, 111, 102, 109, 121, 97, 100, 118,\n 105, 99, 101, 104, 97, 115, 110, 111, 98, 97, 115, 105, 115, 109, 111, 114,\n 101, 114, 101, 108, 105, 97, 98, 108, 101, 116, 104, 97, 110, 109, 121,\n 111, 119, 110, 109, 101, 97, 110, 100, 101,\n 114, 105, 110, 103, 101, 120, 112, 101, 114, 105, 101, 110, 99, 101, 73,\n 119, 105, 108, 108, 100, 105, 115, 112, 101, 110, 115, 101, 116, 104, 105,\n 115, 97, 100, 118, 105, 99, 101, 110, 111, 119,\n 69, 110, 106, 111, 121, 116, 104, 101, 112, 111, 119, 101, 114, 97, 110,\n 100, 98, 101, 97, 117, 116, 121, 111, 102, 121, 111, 117, 114, 121, 111,\n 117, 116, 104, 79, 104, 110, 101, 118, 101, 114,\n 109, 105, 110, 100, 89, 111, 117, 119, 105, 108, 108, 110, 111, 116, 117,\n 110, 100, 101, 114, 115, 116, 97, 110, 100, 116, 104, 101, 112, 111, 119,\n 101, 114, 97, 110, 100, 98, 101, 97, 117, 116,\n 121, 111, 102, 121, 111, 117, 114, 121, 111, 117, 116, 104, 117, 110, 116,\n 105, 108, 116, 104, 101, 121, 118, 101, 102, 97, 100, 101, 100, 66, 117,\n 116, 116, 114, 117, 115, 116, 109, 101, 105, 110,\n 50, 48, 121, 101, 97, 114, 115, 121, 111, 117, 108, 108, 108, 111, 111, 107,\n 98, 97, 99, 107, 97, 116, 112, 104, 111, 116, 111, 115, 111, 102, 121,\n 111, 117, 114, 115, 101, 108, 102, 97, 110,\n 100, 114, 101, 99, 97, 108, 108, 105, 110, 97, 119, 97, 121, 121, 111, 117,\n 99, 97, 110, 116, 103, 114, 97, 115, 112, 110, 111, 119, 104, 111, 119,\n 109, 117, 99, 104, 112, 111, 115, 115, 105,\n 98, 105, 108, 105, 116, 121, 108, 97, 121, 98, 101, 102, 111, 114, 101, 121,\n 111, 117, 97, 110, 100, 104, 111, 119, 102, 97, 98, 117, 108, 111, 117,\n 115, 121, 111, 117, 114, 101, 97, 108, 108,\n 121, 108, 111, 111, 107, 101, 100, 89, 111, 117, 97, 114, 101, 110, 111,\n 116, 97, 115, 102, 97, 116, 97, 115, 121, 111, 117, 105, 109, 97, 103,\n 105, 110, 101, 68, 111, 110, 116, 119, 111, 114,\n 114, 121, 97, 98, 111, 117, 116, 116, 104, 101, 102, 117, 116, 117, 114,\n 101, 79, 114, 119, 111, 114, 114, 121, 98, 117, 116, 107, 110, 111, 119,\n 116, 104, 97, 116, 75, 117, 114, 116, 86, 111,\n 110, 110, 101, 103, 117, 116, 115, 67, 111, 109, 109, 101, 110, 99, 101,\n 109, 101, 110, 116, 65, 100, 100, 114, 101, 115, 115, 97, 116, 77, 73, 84,\n 76, 97, 100, 105, 101, 115, 97, 110, 100,\n 103, 101, 110, 116, 108, 101, 109, 101, 110, 111, 102, 116, 104, 101, 99,\n 108, 97, 115, 115, 111, 102, 57, 55, 87, 101, 97, 114, 115, 117, 110, 115,\n 99, 114, 101, 101, 110, 73, 102, 73, 99,\n 111, 117, 108, 100, 111, 102, 102, 101, 114, 121, 111, 117, 111, 110, 108,\n 121, 111, 110, 101, 116, 105, 112, 102, 111, 114, 116, 104, 101, 102, 117,\n 116, 117, 114, 101, 115, 117, 110, 115, 99, 114,\n 101, 101, 110, 119, 111, 117, 108, 100, 98, 101, 105, 116, 84, 104, 101,\n 108, 111, 110, 103, 116, 101, 114, 109, 98, 101, 110, 101, 102, 105, 116,\n 115, 111, 102, 115, 117, 110, 115, 99, 114, 101,\n 101, 110, 104, 97, 118, 101, 98, 101, 101, 110, 112, 114, 111, 118, 101,\n 100, 98, 121, 115, 99, 105, 101, 110, 116, 105, 115, 116, 115, 119, 104,\n 101, 114, 101, 97, 115, 116, 104, 101, 114, 101,\n 115, 116, 111, 102, 109, 121, 97, 100, 118, 105, 99, 101, 104, 97, 115, 110,\n 111, 98, 97, 115, 105, 115, 109, 111, 114, 101, 114, 101, 108, 105, 97,\n 98, 108, 101, 116, 104, 97, 110, 109, 121,\n 111, 119, 110, 109, 101, 97, 110, 100, 101, 114, 105, 110, 103, 101, 120,\n 112, 101, 114, 105, 101, 110, 99, 101, 73, 119, 105, 108, 108, 100, 105,\n 115, 112, 101, 110, 115, 101, 116, 104, 105, 115,\n 97, 100, 118, 105, 99, 101, 110, 111, 119, 69, 110, 106, 111, 121, 116, 104,\n 101, 112, 111, 119, 101, 114, 97, 110, 100, 98, 101, 97, 117, 116, 121,\n 111, 102, 121, 111, 117, 114, 121, 111, 117,\n 116, 104, 79, 104, 110, 101, 118, 101, 114, 109, 105, 110, 100, 89, 111,\n 117, 119, 105, 108, 108, 110, 111, 116, 117, 110, 100, 101, 114, 115, 116,\n 97, 110, 100, 116, 104, 101, 112, 111, 119, 101,\n 114, 97, 110, 100, 98, 101, 97, 117, 116, 121, 111, 102, 121, 111, 117, 114,\n 121, 111, 117, 116, 104, 117, 110, 116, 105, 108, 116, 104, 101, 121, 118,\n 101, 102, 97, 100, 101, 100, 66, 117, 116,\n 116, 114, 117, 115, 116, 109, 101, 105, 110, 50, 48, 121, 101, 97, 114, 115,\n 121, 111, 117, 108, 108, 108, 111, 111, 107, 98, 97, 99, 107, 97, 116,\n 112, 104, 111, 116, 111, 115, 111, 102, 121,\n 111, 117, 114, 115, 101, 108, 102, 97, 110, 100, 114, 101, 99, 97, 108, 108,\n 105, 110, 97, 119, 97, 121, 121, 111, 117, 99, 97, 110, 116, 103, 114, 97,\n 115, 112, 110, 111, 119, 104, 111, 119,\n 109, 117, 99, 104, 112, 111, 115, 115, 105, 98, 105, 108, 105, 116, 121,\n 108, 97, 121, 98, 101, 102, 111, 114, 101, 121, 111, 117, 97, 110, 100,\n 104, 111, 119, 102, 97, 98, 117, 108, 111, 117,\n 115, 121, 111, 117, 114, 101, 97, 108, 108, 121, 108, 111, 111, 107, 101,\n 100, 89, 111, 117, 97, 114, 101, 110, 111, 116, 97, 115, 102, 97, 116, 97,\n 115, 121, 111, 117, 105, 109, 97, 103, 105,\n 110, 101, 68, 111, 110, 116, 119, 111, 114, 114, 121, 97, 98, 111, 117, 116,\n 116, 104, 101, 102, 117, 116, 117, 114, 101, 79, 114, 119, 111, 114, 114,\n 121, 98, 117, 116, 107, 110, 111, 119, 116,\n 104, 97, 116, 116, 115, 67, 111, 109, 109, 101, 110, 99, 101, 109, 101, 110,\n 116, 65, 100, 100, 114, 101, 115, 115, 97, 116, 77, 73, 84, 76, 97, 100,\n 105, 101, 115, 97, 110, 100, 103, 101,\n 110, 116, 108, 101, 109, 101, 110, 111, 102, 116, 104, 101, 99, 108, 97,\n 115, 115, 111, 102, 57, 55, 87, 101, 97, 114, 115, 117, 110, 115, 99, 114,\n 101, 101, 110, 73, 102, 73, 99, 111, 117,\n 108, 100, 111, 102, 102, 101, 114, 121, 111, 117, 111, 110, 108, 121, 111,\n 110, 101, 116, 105, 112, 102, 111, 114, 116, 104, 101, 102, 117, 116, 117,\n 114, 101, 75, 117, 114, 116, 86, 111, 110, 110,\n 101, 103, 117, 116, 115, 67, 111, 109, 109, 101, 110, 99, 101, 109, 101,\n 110, 116, 65, 100, 100, 114, 101, 115, 115, 97, 116, 77, 73, 84, 76, 97,\n 100, 105, 101, 115, 97, 110, 100, 103, 101,\n 110, 116, 108, 101, 109, 101, 110, 111, 102, 116, 104, 101, 99, 108, 97,\n 115, 115, 111, 102, 57, 55, 87, 101, 97, 114, 115, 117, 110, 115, 99, 114,\n 101, 101, 110, 73, 102, 73, 99, 111, 117,\n 108, 100, 111, 102, 102, 101, 114, 121, 111, 117, 111, 110, 108, 121, 111,\n 110, 101, 116, 105, 112, 102, 111, 114, 116, 104, 101, 102, 117, 116, 117,\n 114, 101, 115, 117, 110, 115, 99, 114, 101, 101,\n 110, 119, 111, 117, 108, 100, 98, 101, 105, 116, 84, 104, 101, 108, 111,\n 110, 103, 116, 101, 114, 109, 98, 101, 110, 101, 102, 105, 116, 115, 111,\n 102, 115, 117, 110, 115, 99, 114, 101, 101, 110,\n 104, 97, 118, 101, 98, 101, 101, 110, 112, 114, 111, 118, 101, 100, 98, 121,\n 115, 99, 105, 101, 110, 116, 105, 115, 116, 115, 119, 104, 101, 114, 101,\n 97, 115, 116, 104, 101, 114, 101, 115, 116\n};\n\nconst unsigned char out_key[KEYSIZE] = {\n 5, 140, 229, 49, 55, 247, 179, 22, 234, 116, 197, 105, 104, 250, 30, 106,\n 253, 124, 41, 105, 239, 252, 189, 239, 182, 63, 187, 140, 239, 253, 142,\n 216, 26, 137, 170, 225, 52, 248, 13, 173, 77, 52, 249, 67, 194, 246, 207,\n 5, 77, 17, 170, 24, 33, 72, 252, 9, 28, 7, 33, 144, 57, 125, 250, 143, 48,\n 87, 203, 193, 205, 203, 207, 202, 214, 135, 56, 19, 76, 251, 100, 122,\n 141, 135, 103, 210, 173, 79, 109, 16, 204, 155, 2, 12, 35, 122, 247, 66,\n 212, 30, 183, 207, 142, 201, 255, 49, 229, 209, 56, 213, 171, 232, 181,\n 122, 62, 42, 75, 53, 136, 234, 3, 44, 18, 8, 134, 160, 193, 222, 92, 151,\n 93, 238, 76, 67, 186, 145, 29, 184, 214, 173, 178, 49, 41, 251, 128, 185,\n 191, 49, 112, 223, 252, 85, 219, 95, 68, 104, 210, 3, 19, 55, 127, 76, 74,\n 12, 180, 22, 124, 252, 46, 170, 55, 0, 55, 202, 144, 232, 179, 200, 201,\n 206, 37, 219, 195, 98, 77, 154, 157, 22, 39, 169, 66, 87, 204, 150, 25,\n 81, 214, 145, 163, 154, 166, 220, 26, 93, 42, 35, 1, 143, 178, 133, 3, 11,\n 53, 184, 8, 143, 207, 230, 43, 188, 71, 56, 56, 241, 230, 126, 180, 101,\n 134, 122, 171, 217, 173, 221, 56, 46, 166, 240, 159, 29, 181, 228, 119,\n 240, 208, 10, 188, 164, 1, 57, 74, 15, 9, 138, 82, 251, 149, 246, 57, 28,\n 70, 243, 168, 144, 194, 107, 213, 112, 103, 186, 175, 59, 187, 250, 90,\n 239, 73, 230, 133, 173, 195, 92, 211, 142, 163, 226, 184, 237, 115, 57,\n 16, 17, 43, 188, 186, 133, 165, 50, 195, 19, 68, 36, 153, 178, 15, 52, 85,\n 52, 123, 93, 125, 86, 36, 138, 53, 59, 161, 161, 26, 178, 203, 228, 27,\n 37, 140, 67, 236, 7, 182, 88, 71, 139, 228, 22, 15, 147, 220, 18, 132,\n 111, 13, 249, 40, 1, 111, 5, 140, 38, 107, 6, 249, 230, 130, 71, 178, 81,\n 39, 40, 28, 217, 216, 118, 159, 228, 208, 121, 10, 56, 105, 11, 1, 167,\n 105, 64, 209, 44, 86, 191, 237, 254, 101, 25, 126, 161, 37, 54, 12, 87,\n 156, 150, 155, 69, 52, 112, 234, 143, 149, 41, 15, 45, 211, 165, 189, 162,\n 137, 166, 188, 175, 128, 224, 32, 153, 128, 190, 169, 130, 127, 191, 238,\n 223, 146, 155, 177, 142, 176, 78, 229, 52, 96, 141, 119, 223, 36, 10, 24,\n 15, 245, 128, 7, 196, 106, 100, 30, 32, 63, 132, 88, 133, 250, 195, 137,\n 34, 92, 219, 20, 117, 81, 216, 181, 116, 241, 78, 131, 178, 34, 138, 206,\n 10, 144, 51, 210, 108, 111, 122, 116, 49, 213, 152, 232, 228, 20, 245,\n 122, 212, 225, 173, 190, 152, 21, 61, 61, 179, 173, 71, 110, 38, 7, 198,\n 157, 153, 207, 87, 17, 42, 42, 215, 18, 208, 90, 172, 157, 23, 46, 37,\n 166, 218, 65, 25, 136, 173, 85, 149, 105, 54, 20, 218, 6, 65, 184, 239,\n 46, 38, 157, 68, 240, 228, 117, 224, 19, 153, 3, 34, 233, 47, 57, 103, 79,\n 17, 208, 223, 92, 30, 111, 127, 61, 205, 212, 232, 5, 207, 107, 158, 81,\n 192, 135, 67, 75, 60, 118, 68, 51, 30, 200, 176, 187, 62, 1, 100, 173, 63,\n 118, 31, 108, 139, 138, 248, 233, 81, 244, 36, 241, 231, 58, 154, 201,\n 110, 9, 39, 86, 227, 73, 60, 61, 40, 80, 195, 224, 187, 55, 154, 72, 104,\n 218, 60, 253, 248, 216, 90, 44, 213, 78, 177, 148, 76, 244, 57, 170, 1,\n 166, 75, 206, 123, 166, 206, 135, 221, 33, 130, 26, 148, 148, 224, 117,\n 56, 75, 151, 50, 90, 49, 4, 48, 255, 147, 42, 183, 58, 76, 131, 16, 109,\n 222, 86, 85, 134, 253, 209, 74, 17, 220, 238, 82, 200, 140, 89, 210, 117,\n 174, 180, 68, 6, 163, 9, 249, 249, 51, 124, 182, 53, 6, 61, 39, 190, 10,\n 40, 63, 207, 92, 189, 30, 69, 49, 8, 233, 116, 121, 80, 149, 169, 72, 164,\n 203, 152, 71, 201, 169, 144, 205, 83, 10, 214, 213, 0, 147, 32, 62, 91,\n 162, 164, 160, 211, 196, 159, 166, 9, 73, 221, 79, 117, 116, 20, 103, 112,\n 80, 147, 226, 205, 25, 108, 210, 61, 163, 46, 57, 102, 185, 126, 3, 6, 27,\n 118, 139, 113, 67, 62, 4, 242, 88, 152, 95, 92, 142, 233, 139, 34, 177,\n 244, 130, 12, 4, 83, 29, 168, 171, 15, 70, 115, 216, 36, 218, 106, 213,\n 92, 215, 215, 43, 155, 200, 77, 198, 68, 37, 255, 215, 62, 154, 52, 251,\n 198, 148, 55, 207, 79, 99, 243, 135, 43, 64, 204, 179, 106, 144, 78, 120,\n 94, 233, 160, 200, 92, 191, 50, 43, 129, 229, 168, 194, 48, 131, 78, 228,\n 163, 157, 96, 175, 203, 189, 205, 81, 238, 82, 61, 84, 84, 111, 217, 163,\n 7, 18, 77, 156, 41, 209, 47, 10, 250, 58, 236, 187, 248, 212, 131, 60, 52,\n 126, 180, 113, 207, 135, 112, 192, 190, 177, 68, 171, 77, 219, 253, 105,\n 12, 157, 222, 32, 159, 92, 185, 88, 192, 113, 39, 18, 77, 215, 112, 223,\n 114, 128, 102, 42, 219, 15, 127, 23, 114, 152, 125, 254, 12, 52, 78, 242,\n 74, 130, 125, 138, 18, 44, 152, 12, 236, 117, 194, 83, 192, 255, 109, 223,\n 237, 31, 203, 170, 40, 188, 90, 46, 196, 124, 243, 153, 127, 247, 116,\n 174, 67, 233, 199, 148, 111, 68, 60, 78, 196, 119, 159, 218, 85, 112, 9,\n 20, 70, 168, 77, 46, 26, 39, 19, 10, 172, 159, 135, 10, 126, 25, 133, 207,\n 193, 32, 153, 125, 101, 51, 85, 78, 78, 76, 145, 186, 102, 249, 78, 182,\n 138, 224, 17, 207, 21, 205, 50, 139, 223, 5, 196, 78, 254, 239, 82, 129,\n 222, 22, 146, 245, 178, 205, 169, 168, 138, 147, 24, 111, 69, 94, 113,\n 190, 157, 82, 233, 87, 134, 149, 253, 91, 161, 128, 45, 254, 81, 75, 102,\n 26, 154, 159, 73, 163, 198, 6, 27, 84, 136, 165, 116, 190, 234, 17, 160,\n 0, 237, 120, 150, 252, 123, 174, 238, 136, 29, 226, 211, 20, 86, 104, 122,\n 135, 241, 17, 229, 207, 122, 66, 137, 164, 26, 1, 90, 106, 143, 182, 69,\n 160, 186, 10, 231, 57, 79, 226, 209, 186, 123, 82, 231, 228, 66, 239, 214,\n 104, 200, 97, 1, 229, 102, 128, 77, 105, 54, 118, 58, 85, 36, 239, 133,\n 35, 4, 208, 141, 19, 177, 172, 108, 109, 158, 39, 67, 70, 48, 175, 212,\n 181, 75, 50, 248, 98, 94, 161, 124, 249, 187, 158, 137, 78, 35, 142, 90,\n 130, 113, 121, 63, 37, 75, 93, 174, 22, 116, 115, 105, 215, 221, 147, 117,\n 40, 142, 38, 105, 43, 154, 169, 39, 80, 46, 54, 6, 153, 143, 248, 193,\n 110, 232, 77, 140, 97, 20, 122, 253, 82, 80, 205, 249, 140, 168, 142, 2,\n 223, 155, 128, 75, 248, 75, 168, 70, 113, 130, 196, 104, 101, 111, 182,\n 38, 250, 55, 24, 156, 73, 175, 78, 54, 10, 2, 142, 253, 206, 4, 203, 177,\n 223, 95, 231, 45, 12, 123, 121, 237, 149, 191, 49, 93, 82, 157, 85, 85,\n 150, 34, 241, 236, 87, 9, 188, 172, 151, 95, 88, 0, 96, 233, 215, 130,\n 247, 157, 10, 30, 153, 249, 198, 159, 188, 47, 80, 175, 219, 171, 55, 172,\n 214, 231, 54, 88, 50, 87, 113, 84, 10, 35, 170, 122, 95, 172, 73, 224, 97,\n 98, 40, 154, 135, 94, 138, 109, 51, 189, 149, 176, 52, 157, 107, 24, 24,\n 29, 162, 83, 20, 228, 197, 163, 163, 238, 110, 166, 213, 132, 35, 170, 64,\n 242, 159, 44, 95, 224, 242, 254, 122, 158, 181, 214, 216, 224, 3, 35, 116,\n 226, 246, 19, 248, 231, 154, 189, 72, 33, 31, 169, 34, 204, 99, 76, 10,\n 53, 126, 52, 168, 112, 187, 51, 173, 10, 102, 170, 247, 18, 78, 234, 54,\n 211, 165, 112, 68, 85, 113, 248, 165, 90, 95, 20, 73, 121, 40, 238, 115,\n 29, 127, 223, 179, 252, 77, 107, 41, 233, 119, 239, 75, 208, 61, 188, 201,\n 35, 230, 215, 3, 203, 141, 124, 210, 180, 252, 0, 244, 148, 190, 96, 45,\n 218, 234, 120, 143, 136, 0, 63, 71, 215, 9, 233, 27, 226, 29, 255, 112,\n 64, 236, 165, 65, 39, 106, 34, 34, 251, 252, 188, 32, 22, 248, 150, 68,\n 92, 9, 7, 51, 205, 132, 0, 6, 163, 147, 64, 96, 168, 207, 235, 109, 138,\n 29, 14, 222, 104, 141, 97, 183, 117, 142, 38, 24, 192, 54, 206, 104, 2,\n 60, 14, 77, 234, 182, 41, 16, 192, 3, 11, 212, 104, 224, 47, 27, 103, 213,\n 167, 183, 122, 62, 130, 179, 122, 238, 33, 222, 93, 207, 238, 117, 105,\n 121, 98, 103, 89, 63, 132, 168, 32, 102, 244, 240, 17, 11, 169, 78, 167,\n 247, 253, 226, 174, 213, 116, 125, 99, 26, 104, 54, 38, 252, 208, 135,\n 176, 93, 10, 29, 99, 217, 155, 198, 41, 244, 42, 99, 20, 233, 212, 193,\n 175, 27, 123, 120, 187, 155, 167, 14, 70, 225, 203, 18, 129, 59, 177, 135,\n 0, 253, 4, 127, 159, 55, 87, 215, 194, 208, 4, 233, 94, 45, 130, 213, 231,\n 90, 204, 99, 90, 41, 166, 93, 8, 26, 16, 124, 14, 31, 133, 16, 184, 128,\n 209, 178, 247, 223, 211, 9, 126, 96, 26, 86, 43, 126, 17, 122, 13, 90,\n 107, 153, 193, 86, 38, 19, 217, 117, 72, 241, 184, 164, 142, 164, 169,\n 236, 226, 114, 169, 22, 230, 168, 113, 128, 3, 166, 49, 94, 71, 45, 161,\n 32, 77, 164, 126, 197, 226, 131, 188, 176, 114, 127, 31, 162, 200, 168,\n 107, 131, 88, 62, 248, 72, 131, 225, 113, 146, 189, 252, 104, 148, 17, 54,\n 60, 191, 206, 161, 113, 85, 201, 26, 201, 124, 23, 145, 134, 18, 187, 143,\n 35, 246, 74, 116, 43, 37, 104, 247, 250, 47, 59, 251, 147, 96, 205, 207,\n 132, 202, 97, 188, 169, 134, 15, 95, 186, 31, 156, 183, 0, 241, 131, 134,\n 0, 60, 150, 147, 59, 17, 154, 73, 245, 18, 60, 180, 181, 113, 199, 143,\n 96, 162, 197, 249, 64, 37, 174, 217, 48, 23, 125, 141, 213, 227, 250, 139,\n 194, 76, 234, 22, 185, 238, 114, 88, 11, 63, 8, 88, 218, 81, 49, 31, 214,\n 212, 61, 39, 191, 199, 97, 63, 47, 94, 252, 197, 2, 95, 243, 50, 151, 254,\n 53, 244, 196, 57, 60, 48, 84, 14, 85, 210, 163, 49, 214, 71, 191, 159,\n 239, 165, 66, 155, 85, 240, 92, 90, 58, 120, 18, 203, 188, 80, 38, 188,\n 177, 112, 176, 104, 159, 214, 211, 49, 92, 122, 65, 176, 56, 70, 32, 153,\n 69, 12, 137, 199, 159, 70, 242, 180, 60, 116, 235, 100, 88, 250, 67, 225,\n 104, 129, 73, 155, 170, 100, 123, 243, 47, 17, 10, 137, 184, 62, 3, 243,\n 52, 244, 147, 118, 184, 23, 7, 22, 68, 206, 41, 167, 203, 166, 226, 214,\n 179, 243, 249, 22, 118, 224, 103, 56, 56, 6, 246, 47, 40, 107, 192, 56,\n 21, 52, 166, 220, 103, 219, 84, 210, 20, 25, 86, 38, 177, 157, 192, 163,\n 67, 170, 96, 42, 119, 203, 205, 140, 216, 235, 228, 138, 42, 179, 125, 73,\n 112, 199, 180, 38, 159, 100, 92, 144, 158, 240, 183, 206, 42, 240, 206,\n 246, 182, 64, 57, 73, 102, 164, 229, 140, 89, 219, 234, 99, 169, 110, 124,\n 93, 187, 91, 5, 197, 88, 41, 1, 66, 146, 14, 130, 112, 190, 28, 17, 121,\n 217, 113, 31, 235, 205, 164, 192, 101, 248, 130, 49, 57, 239, 87, 6, 117,\n 129, 118, 61, 213, 219, 48, 69, 113, 183, 50, 63, 154, 227, 103, 129, 67,\n 113, 152, 247, 179, 81, 136, 234, 96, 146, 93, 139, 195, 107, 218, 150,\n 43, 129, 31, 83, 57, 171, 234, 11, 90, 70, 168, 0, 210, 130, 61, 110, 215,\n 251, 161, 61, 146, 115, 154, 161, 173, 138, 66, 246, 61, 16, 80, 74, 118,\n 103, 144, 216, 219, 112, 55, 213, 48, 245, 201, 240, 77, 95, 231, 217,\n 204, 206, 52, 227, 247, 58, 129, 101, 231, 39, 179, 187, 66, 114, 90, 193,\n 69, 203, 202, 252, 98, 130, 146, 161, 54, 73, 171, 169, 201, 24, 125, 17,\n 232, 185, 65, 27, 212, 225, 142, 96, 83, 23, 141, 91, 154, 161, 82, 253,\n 250, 154, 50, 85, 221, 27, 181, 168, 115, 243, 249, 24, 229, 154, 136,\n 115, 110, 22, 215, 166, 63, 19, 19, 201, 187, 59, 84, 17, 129, 112, 146,\n 99, 19, 176, 207, 119, 11, 221, 214, 6, 22, 135, 225, 145, 116, 61, 101,\n 128, 86, 218, 210, 110, 98, 19, 196, 117, 248, 198, 13, 150, 109, 30, 110,\n 52, 63, 220, 170, 214, 226, 98, 151, 123, 196, 233, 165, 198, 142, 75, 5,\n 188, 241, 159, 34, 56, 101, 61, 61, 208, 140, 179, 25, 137, 133, 126, 176,\n 166, 24, 206, 133, 61, 93, 128, 255, 216, 97, 7, 51, 251, 48, 77, 208,\n 139, 158, 187, 216, 216, 159, 10, 114, 243, 31, 248, 81, 160, 119, 189,\n 223, 75, 79, 45, 13, 135, 193, 229, 247, 146, 241, 114, 63, 65, 34, 103,\n 96, 197, 5, 15, 228, 45, 208, 200, 201, 149, 74, 46, 99, 182, 201, 143,\n 184, 44, 158, 59, 55, 53, 10, 249, 119, 8, 239, 174, 244, 168, 15, 150,\n 65, 182, 186, 50, 9, 197, 176, 240, 243, 177, 181, 82, 251, 12, 35, 244,\n 23, 158, 62, 152, 43, 237, 51, 211, 29, 207, 90, 156, 11, 80, 199, 193,\n 116, 230, 151, 152, 253, 244, 86, 155, 8, 246, 184, 99, 43, 64, 196, 93,\n 91, 169, 5, 237, 2, 58, 208, 89, 225, 206, 31, 28, 145, 32, 74, 48, 19,\n 51, 198, 183, 239, 52, 216, 188, 152, 93, 110, 140, 45, 146, 49, 31, 172,\n 117, 50, 8, 68, 204, 3, 219, 117, 40, 195, 232, 179, 200, 186, 120, 55, 1,\n 98, 168, 120, 112, 182, 218, 222, 77, 113, 255, 189, 0, 145, 88, 72, 199,\n 87, 204, 105, 46, 188, 77, 77, 183, 21, 86, 50, 217, 195, 10, 215, 29,\n 174, 155, 62, 219, 72, 127, 181, 80, 179, 177, 175, 56, 213, 65, 60, 99,\n 177, 55, 13, 205, 246, 35, 202, 103, 215, 113, 109, 185, 87, 185, 90, 1,\n 74, 88, 149, 187, 230, 81, 3, 135, 170, 73, 70, 113, 118, 183, 250, 209,\n 208, 248, 17, 196, 36, 188, 128, 185, 49, 134, 150, 109, 195, 14, 193,\n 142, 43, 5, 117, 148, 15, 44, 146, 145, 162, 124, 202, 239, 125, 205, 130,\n 189, 221, 253, 171, 73, 36, 127, 35, 12, 230, 153, 159, 37, 227, 82, 188,\n 226, 108, 182, 130, 61, 109, 126, 142, 254, 243, 43, 88, 172, 30, 193,\n 120, 152, 144, 252, 40, 31, 19, 181, 118, 27, 67, 167, 254, 242, 98, 87,\n 192, 22, 173, 173, 129, 9, 112, 118, 90, 142, 175, 41, 80, 198, 23, 17,\n 83, 197, 163, 252, 4, 122, 249, 125, 71, 27, 87, 71, 25, 237, 131, 144,\n 189, 244, 140, 222, 11, 95, 136, 166, 112, 88, 4, 27, 250, 7, 221, 159,\n 118, 34, 181, 112, 11, 64, 222, 95, 71, 127, 210, 89, 11, 73, 127, 217,\n 215, 250, 135, 223, 224, 155, 28, 210, 170, 127, 45, 124, 148, 155, 124,\n 131, 63, 122, 133, 21, 47, 147, 36, 189, 176, 145, 73, 8, 31, 197, 138,\n 43, 160, 163, 46, 72, 48, 26, 56, 171, 138, 52, 22, 183, 191, 234, 107,\n 230, 202, 87, 255, 108, 172, 132, 164, 154, 136, 200, 85, 131, 4, 188,\n 106, 1, 213, 42, 49, 221, 70, 222, 112, 99, 71, 105, 206, 13, 103, 223,\n 37, 104, 36, 97, 253, 149, 222, 81, 232, 233, 228, 223, 136, 123, 201, 10,\n 51, 175, 80, 168, 198, 238, 40, 161, 113, 170, 46, 144, 194, 218, 152, 80,\n 2, 228, 221, 68, 191, 91, 81, 21, 216, 68, 156, 117, 145, 88, 111, 241,\n 201, 33, 158, 35, 245, 69, 140, 162, 43, 108, 46, 119, 69, 224, 121, 136,\n 77, 60, 118, 219, 151, 147, 79, 161, 234, 193, 46, 216, 223, 241, 235, 15,\n 227, 27, 71, 234, 235, 163, 143, 130, 106, 244, 202, 23, 222, 185, 52,\n 109, 150, 43, 81, 68, 218, 162, 175, 76, 165, 133, 232, 172, 104, 240,\n 226, 134, 16, 186, 202, 60, 42, 91, 209, 128, 4, 255, 126, 156, 142, 240,\n 143, 224, 240, 6, 99, 63, 215, 74, 71, 57, 18, 25, 69, 147, 86, 156, 252,\n 157, 227, 171, 157, 16, 97, 101, 77, 70, 218, 212, 50, 68, 151, 107, 173,\n 140, 221, 186, 217, 39, 38, 23, 217, 75, 251, 73, 178, 6, 226, 9, 187,\n 228, 75, 198, 93, 191, 180, 26, 29, 61, 215, 135, 0, 236, 65, 44, 44, 178,\n 24, 2, 98, 92, 151, 250, 68, 45, 196, 178, 174, 95, 57, 217, 88, 109, 163,\n 237, 97, 202, 146, 231, 39, 197, 27, 242, 111, 191, 11, 209, 2, 157, 4,\n 26, 53, 147, 250, 142, 66, 205, 77, 230, 84, 149, 54, 61, 20, 212, 64, 63,\n 241, 99, 236, 186, 120, 28, 46, 209, 123, 254, 86, 98, 0, 138, 191, 2,\n 182, 250, 179, 66, 223, 193, 128, 255, 15, 99, 4, 10, 178, 133, 157, 14,\n 32, 203, 42, 221, 160, 7, 178, 47, 76, 139, 131, 108, 252, 88, 144, 41,\n 19, 219, 168, 209, 248, 193, 129, 87, 178, 121, 56, 132, 81, 36, 95, 30,\n 94, 242, 77, 224, 115, 59, 208, 142, 175, 107, 199, 192, 102, 148, 26, 36,\n 167, 213, 108, 105, 185, 99, 180, 100, 172, 163, 239, 248, 232, 54, 169,\n 182, 252, 134, 84, 112, 66, 26, 26, 83, 143, 162, 198, 214, 2, 238, 137,\n 195, 165, 17, 35, 221, 8, 101, 32, 60, 84, 138, 142, 102, 241, 35, 254,\n 168, 190, 110, 62, 58, 48, 228, 105, 219, 58, 159, 176, 162, 226, 32, 85,\n 218, 125, 124, 221, 39, 175, 59, 247, 110, 182, 130, 30, 74, 16, 141, 232,\n 113, 203, 141, 234, 42, 90, 251, 56, 93, 1, 155, 255, 4, 61, 67, 16, 45,\n 233, 195, 74, 14, 148, 118, 247, 224, 170, 141, 226, 83, 190, 209, 90, 52,\n 225, 120, 201, 238, 76, 205, 12, 56, 42, 84, 122, 94, 236, 24, 124, 135,\n 162, 216, 144, 5, 231, 108, 160, 33, 196, 99, 2, 253, 175, 57, 59, 5, 5,\n 229, 22, 241, 38, 124, 184, 65, 82, 96, 211, 145, 15, 28, 127, 144, 231,\n 172, 111, 184, 251, 71, 214, 144, 96, 120, 141, 128, 86, 97, 84, 138, 124,\n 170, 163, 19, 11, 182, 182, 109, 254, 119, 233, 73, 111, 148, 9, 76, 180,\n 118, 20, 29, 186, 3, 239, 245, 179, 123, 131, 15, 203, 215, 64, 58, 103,\n 141, 29, 1, 206, 182, 168, 211, 118, 152, 246, 68, 115, 160, 39, 15, 34,\n 137, 174, 170, 139, 118, 205, 18, 166, 228, 84, 142, 89, 177, 201, 13,\n 163, 68, 179, 220, 63, 186, 100, 26, 205, 147, 241, 125, 188, 114, 166,\n 168, 214, 101, 148, 64, 255, 32, 213, 2, 39, 51, 54, 98, 73, 189, 113, 14,\n 105, 86, 224, 105, 177, 50, 53, 137, 173, 153, 113, 215, 6, 112, 129, 113,\n 254, 98, 74, 119, 15, 247, 114, 237, 165, 134, 247, 227, 116, 181, 89,\n 189, 44, 82, 7, 197, 140, 154, 123, 157, 101, 147, 57, 162, 143, 248, 143,\n 130, 105, 154, 245, 198, 109, 38, 139, 206, 255, 170, 63, 33, 132, 120,\n 225, 213, 29, 186, 168, 204, 124, 239, 196, 135, 24, 6, 101, 214, 62, 42,\n 239, 45, 29, 249, 186, 168, 116, 84, 54, 130, 98, 170, 116, 128, 114, 163,\n 19, 211, 28, 142, 7, 105, 152, 188, 17, 41, 9, 40, 31, 137, 69, 98, 99,\n 209, 80, 30, 210, 31, 112, 147, 223, 106, 65, 74, 102, 16, 105, 32, 209,\n 115, 183, 70, 46, 253, 79, 186, 27, 17, 53, 145, 57, 16, 18, 249, 21, 170,\n 9, 110, 191, 115, 34, 71, 119, 189, 22, 154, 231, 154, 248, 11, 228, 71,\n 198, 15, 26, 224, 38, 25, 169, 76, 164, 50, 170, 185, 112, 186, 131, 212,\n 191, 1, 32, 168, 92, 20, 231, 64, 167, 193, 191, 176, 62, 89, 182, 142,\n 23, 3, 83, 15, 121, 74, 177, 116, 92, 88, 175, 236, 69, 253, 16, 29, 223,\n 197, 138, 120, 154, 185, 221, 48, 133, 126, 27, 237, 128, 103, 148, 210,\n 131, 95, 107, 23, 46, 56, 167, 145, 190, 69, 86, 188, 247, 95, 173, 187,\n 35, 43, 163, 180, 201, 209, 192, 209, 145, 82, 43, 252, 82, 23, 13, 182,\n 165, 210, 194, 92, 116, 250, 100, 67, 159, 132, 149, 100, 137, 84, 28,\n 207, 105, 13, 61, 46, 125, 9, 113, 107, 194, 192, 145, 215, 180, 70, 27,\n 25, 232, 220, 143, 29, 64, 188, 208, 11, 5, 217, 195, 95, 11, 226, 99,\n 226, 202, 117, 107, 141, 55, 47, 110, 185, 198, 214, 148, 177, 209, 150,\n 115, 19, 201, 205, 173, 240, 126, 174, 139, 213, 215, 4, 20, 93, 40, 108,\n 184, 252, 100, 117, 54, 120, 127, 71, 164, 252, 248, 73, 134, 43, 50, 223,\n 72, 139, 146, 185, 113, 37, 173, 162, 140, 210, 36, 197, 16, 159, 116,\n 146, 212, 97, 129, 248, 252, 137, 148, 96, 130, 108, 207, 41, 123, 207,\n 247, 99, 253, 174, 13, 172, 214, 186, 194, 207, 255, 160, 146, 197, 250,\n 218, 110, 193, 19, 126, 76, 99, 88, 109, 50, 133, 187, 206, 116, 15, 209,\n 124, 81, 188, 88, 28, 239, 241, 68, 71, 30, 125, 130, 30, 163, 109, 156,\n 140, 112, 238, 93, 40, 208, 8, 228, 161, 227, 255, 189, 175, 5, 196, 237,\n 181, 101, 119, 83, 186, 137, 212, 113, 131, 49, 155, 122, 115, 159, 54,\n 15, 118, 9, 86, 194, 205, 140, 33, 3, 2, 8, 209, 31, 160, 5, 26, 29, 179,\n 252, 153, 210, 92, 242, 83, 22, 96, 77, 61, 123, 228, 118, 67, 79, 2, 24,\n 232, 6, 212, 50, 214, 184, 47, 24, 75, 218, 160, 190, 132, 42, 190, 85,\n 178, 230, 70, 209, 83, 40, 150, 176, 134, 124, 95, 64, 234, 163, 212, 96,\n 199, 78, 199, 173, 26, 35, 27, 118, 73, 145, 184, 139, 43, 35, 76, 147,\n 177, 162, 94, 229, 98, 171, 14, 46, 208, 6, 112, 65, 174, 229, 128, 49,\n 29, 201, 75, 48, 215, 137, 188, 236, 13, 212, 21, 119, 253, 188, 78, 111,\n 121, 178, 2, 90, 201, 58, 247, 93, 183, 16, 138, 238, 202, 46, 77, 40, 28,\n 186, 126, 229, 217, 198, 190, 166, 118, 52, 100, 235, 95, 215, 152, 60,\n 22, 123, 235, 208, 48, 195, 127, 216, 189, 98, 138, 170, 244, 222, 121,\n 203, 204, 165, 17, 105, 49, 91, 184, 121, 158, 51, 149, 156, 199, 28, 160,\n 162, 7, 203, 60, 123, 240, 151, 247, 50, 224, 222, 134, 205, 115, 72, 108,\n 1, 46, 27, 124, 178, 175, 222, 19, 123, 65, 53, 77, 88, 82, 193, 241, 10,\n 101, 131, 207, 118, 110, 113, 49, 17, 170, 118, 1, 15, 99, 195, 210, 237,\n 181, 230, 52, 59, 177, 115, 59, 235, 209, 57, 128, 200, 222, 8, 111, 7,\n 77, 244, 9, 109, 251, 236, 126, 225, 19, 96, 91, 89, 98, 39, 224, 173, 70,\n 143, 68, 105, 177, 253, 12, 92, 79, 88, 206, 36, 131, 100, 187, 83, 223,\n 162, 171, 84, 29, 69, 232, 111, 240, 37, 4, 142, 117, 49, 86, 204, 217,\n 36, 58, 36, 14, 110, 221, 16, 25, 187, 243, 29, 69, 19, 77, 43, 10, 81,\n 35, 229, 229, 56, 247, 67, 129, 100, 210, 148, 41, 239, 233, 71, 138, 191,\n 3, 74, 15, 159, 223, 60, 201, 210, 159, 75, 30, 216, 131, 177, 171, 63,\n 243, 189, 39, 156, 255, 115, 181, 240, 9, 216, 184, 228, 203, 135, 242,\n 108, 108, 167, 18, 50, 171, 23, 139, 149, 232, 41, 184, 38, 216, 232, 103,\n 50, 116, 146, 141, 187, 204, 60, 249, 140, 13, 13, 105, 140, 113, 184,\n 121, 234, 199, 32, 171, 19, 246, 192, 99, 194, 54, 160, 95, 177, 99, 92,\n 180, 157, 84, 10, 127, 141, 252, 62, 59, 139, 84, 155, 77, 212, 14, 91,\n 176, 163, 216, 2, 156, 228, 233, 33, 150, 223, 181, 194, 96, 50, 46, 77,\n 160, 238, 166, 35, 0, 180, 8, 126, 15, 94, 8, 10, 38, 95, 85, 133, 163,\n 151, 19, 253, 34, 103, 42, 122, 214, 221, 45, 138, 213, 160, 207, 94, 118,\n 33, 129, 192, 22, 161, 183, 211, 192, 141, 206, 197, 141, 46, 254, 124,\n 75, 232, 26, 175, 77, 184, 238, 26, 89, 141, 118, 139, 73, 181, 113, 225,\n 249, 132, 108, 8, 9, 207, 153, 76, 233, 21, 53, 169, 217, 101, 134, 227,\n 215, 199, 229, 87, 31, 234, 39, 17, 136, 196, 90, 14, 77, 253, 208, 19,\n 229, 43, 254, 2, 113, 83, 70, 76, 39, 39, 71, 135, 1, 178, 143, 91, 205,\n 28, 102, 87, 226, 70, 75, 174, 75, 163, 126, 86, 62, 65, 135, 139, 132,\n 134, 62, 92, 186, 0, 3, 87, 253, 109, 166, 56, 186, 124, 224, 49, 171, 32,\n 239, 46, 163, 105, 168, 243, 142, 111, 100, 207, 208, 8, 112, 94, 145, 30,\n 25, 113, 225, 69, 233, 223, 242, 33, 197, 204, 3, 84, 51, 189, 88, 153,\n 88, 61, 135, 22, 226, 177, 222, 149, 70, 166, 199, 39, 103, 175, 198, 18,\n 183, 119, 92, 85, 53, 170, 105, 116, 97, 211, 71, 207, 5, 107, 245, 154,\n 212, 3, 134, 206, 43, 122, 224, 195, 26, 189, 26, 215, 179, 199, 18, 252,\n 178, 101, 185, 194, 169, 155, 177, 136, 211, 180, 234, 88, 224, 23, 219,\n 175, 50, 35, 74, 241, 147, 108, 127, 110, 211, 241, 159, 208, 233, 194,\n 169, 5, 116, 155, 160, 122, 144, 98, 200, 215, 49, 9, 131, 140, 124, 155,\n 82, 222, 231, 224, 203, 65, 115, 94, 200, 113, 140, 192, 125, 35, 167,\n 131, 152, 158, 65, 193, 57, 81, 172, 232, 45, 184, 65, 58, 12, 211, 106,\n 227, 253, 78, 175, 84, 208, 243, 113, 100, 64, 105, 39, 245, 223, 115,\n 252, 106, 79, 192, 166, 25, 149, 141, 240, 215, 189, 183, 193, 74, 191,\n 115, 80, 98, 25, 182, 1, 164, 156, 11, 19, 71, 109, 217, 109, 255, 1, 216,\n 241, 149, 113, 74, 90, 43, 10, 200, 231, 40, 73, 231, 71, 206, 127, 243,\n 159, 186, 171, 57, 116, 9, 90, 16, 50, 170, 7, 5, 80, 60, 128, 74, 68,\n 178, 98, 246, 112, 186, 72, 226, 183, 192, 4, 57, 30, 221, 49, 203, 237,\n 3, 37, 253, 47, 199, 202, 40, 56, 101, 177, 150, 211, 151, 165, 103, 235,\n 211, 209, 137, 48, 3, 46, 6, 198, 36, 167, 251, 190, 73, 214, 8, 208, 249,\n 5, 7, 245, 169, 195, 230, 116, 108, 129, 180, 55, 109, 203, 124, 11, 179,\n 45, 168, 54, 20, 54, 230, 253, 127, 195, 122, 236, 175, 164, 205, 245, 77,\n 195, 114, 11, 195, 143, 245, 123, 232, 241, 92, 213, 199, 27, 170, 230,\n 32, 66, 175, 127, 90, 147, 1, 233, 76, 20, 229, 86, 126, 167, 191, 216,\n 117, 85, 248, 188, 214, 233, 139, 85, 194, 8, 214, 157, 235, 168, 178, 35,\n 192, 177, 124, 140, 70, 212, 118, 116, 122, 237, 20, 105, 229, 14, 177,\n 231, 201, 99, 140, 97, 104, 26, 226, 67, 233, 25, 176, 52, 80, 136, 220,\n 144, 204, 192, 104, 0, 152, 83, 175, 255, 123, 40, 116, 20, 191, 79, 68,\n 61, 224, 212, 76, 214, 190, 234, 87, 66, 224, 51, 187, 102, 40, 48, 155,\n 106, 216, 105, 212, 109, 233, 114, 120, 225, 157, 130, 13, 58, 44, 111,\n 223, 211, 69, 108, 65, 17, 213, 188, 75, 197, 242, 40, 74, 33, 98, 9, 18,\n 204, 193, 122, 100, 206, 204, 189, 243, 173, 71, 110, 230, 243, 103, 165,\n 99, 18, 87, 209, 183, 34, 195, 2, 199, 193, 182, 151, 146, 107, 202, 166,\n 222, 79, 196, 141, 89, 197, 254, 184, 16, 52, 3, 216, 9, 53, 77, 29, 222,\n 128, 148, 43, 117, 43, 166, 59, 153, 207, 153, 90, 211, 120, 255, 110, 91,\n 98, 130, 171, 149, 92, 43, 179, 43, 26, 185, 15, 7, 16, 93, 111, 85, 162,\n 32, 143, 14, 0, 173, 1, 70, 197, 216, 170, 231, 142, 174, 238, 209, 32,\n 22, 228, 208, 39, 98, 15, 50, 13, 69, 220, 169, 208, 68, 64, 101, 209,\n 117, 175, 93, 212, 253, 73, 75, 249, 1, 53, 180, 94, 123, 82, 168, 32, 65,\n 138, 136, 252, 90, 66, 193, 185, 60, 248, 172, 161, 228, 128, 130, 110,\n 118, 92, 198, 57, 51, 83, 82, 240, 65, 116, 148, 223, 206, 148, 124, 109,\n 54, 202, 28, 169, 202, 100, 27, 235, 237, 49, 50, 188, 72, 88, 186, 97,\n 40, 18, 81, 157, 120, 109, 193, 46, 3, 80, 53, 182, 31, 214, 165, 32, 151,\n 94, 4, 113, 78, 220, 205, 36, 133, 237, 151, 1, 50, 160, 63, 210, 65, 84,\n 148, 88, 33, 14, 208, 92, 174, 117, 164, 181, 197, 155, 238, 144, 246, 26,\n 12, 208, 60, 58, 95, 121, 105, 133, 29, 64, 24, 41, 221, 184, 39, 77, 169,\n 113, 139, 160, 37, 232, 100, 83, 184, 209, 4, 53, 48, 235, 62, 103, 247,\n 21, 56, 60, 109, 154, 76, 6, 93, 94, 69, 19, 75, 204, 65, 9, 223, 116,\n 251, 245, 114, 21, 244, 247, 46, 152, 61, 215, 105, 247, 45, 61, 11, 115,\n 163, 17, 55, 206, 54, 15, 173, 115, 127, 12, 2, 62, 227, 160, 3, 42, 253,\n 55, 165, 149, 2, 231, 134, 121, 66, 79, 25, 123, 217, 139, 173, 87, 232,\n 232, 94, 148, 169, 166, 32, 36, 158, 203, 141, 145, 26, 124, 178, 84, 239,\n 23, 204, 104, 198, 186, 144, 151, 81, 151, 236, 130, 249, 72, 85, 103,\n 109, 183, 120, 149, 45, 62, 90, 238, 145, 34, 109, 209, 126, 129, 207,\n 129, 76, 92, 184, 58, 121, 107, 49, 39, 74, 160, 210, 35\n};\n\n#define N 40\n\nint\nblowfish_main ()\n{\n unsigned char ukey[8];\n unsigned char indata[N];\n unsigned char outdata[N];\n", "right_context": " int num;\n int i, j, k, l;\n int encordec;\n int check;\n\n num = 0;\n k = 0;\n l = 0;\n encordec = 1;\n check = 0;\n for (i = 0; i < 8; i++)\n {\n ukey[i] = 0;\n ivec[i] = 0;\n }\n BF_set_key (8, ukey);\n i = 0;\n while (k < KEYSIZE)\n {\n while (k < KEYSIZE && i < N)\n\tindata[i++] = in_key[k++];\n\n BF_cfb64_encrypt (indata, outdata, i, ivec, &num, encordec);\n\n for (j = 0; j < i; j++)\n\tcheck += (outdata[j] != out_key[l++]);\n\n i = 0;\n }\n return check;\n}\n\nint\nmain ()\n{\n int main_result;\n\n main_result = 0;\n main_result = blowfish_main ();\n\n printf (\"%d\\n\", main_result);\n\n return main_result;\n }\n", "groundtruth": " unsigned char ivec[8];\n", "crossfile_context": ""} {"task_id": "CHStone", "path": "CHStone/dfdiv/dfdiv.c", "left_context": "/*\n+--------------------------------------------------------------------------+\n| CHStone : a suite of benchmark programs for C-based High-Level Synthesis |\n| ======================================================================== |\n| |\n| * Collected and Modified : Y. Hara, H. Tomiyama, S. Honda, |\n| H. Takada and K. Ishii |\n| Nagoya University, Japan |\n| |\n| * Remark : |\n| 1. This source code is modified to unify the formats of the benchmark |\n| programs in CHStone. |\n| 2. Test vectors are added for CHStone. |\n| 3. If \"main_result\" is 0 at the end of the program, the program is |\n| correctly executed. |\n| 4. Please follow the copyright of each benchmark program. |\n+--------------------------------------------------------------------------+\n*/\n/*\n * Copyright (C) 2008\n * Y. Hara, H. Tomiyama, S. Honda, H. Takada and K. Ishii\n * Nagoya University, Japan\n * All rights reserved.\n *\n * Disclaimer of Warranty\n *\n * These software programs are available to the user without any license fee or\n * royalty on an \"as is\" basis. The authors disclaims any and all warranties, \n * whether express, implied, or statuary, including any implied warranties or \n * merchantability or of fitness for a particular purpose. In no event shall the\n * copyright-holder be liable for any incidental, punitive, or consequential damages\n * of any kind whatsoever arising from the use of these programs. This disclaimer\n * of warranty extends to the user of these programs and user's customers, employees,\n * agents, transferees, successors, and assigns.\n *\n */\n#include \n#include \"softfloat.c\"\n\n", "right_context": " union\n {\n double d;\n unsigned long long ll;\n } t;\n\n t.ll = x;\n return t.d;\n}\n\n/*\n+--------------------------------------------------------------------------+\n| * Test Vectors (added for CHStone) |\n| a_input, b_input : input data |\n| z_output : expected output data |\n+--------------------------------------------------------------------------+\n*/\n#define N 22\n\nconst float64 a_input[N] = {\n 0x7FFF000000000000ULL,\t/* nan */\n 0x7FF0000000000000ULL,\t/* inf */\n 0x7FF0000000000000ULL,\t/* inf */\n 0x7FF0000000000000ULL,\t/* inf */\n 0x3FF0000000000000ULL,\t/* 1.0 */\n 0x3FF0000000000000ULL,\t/* 1.0 */\n 0x0000000000000000ULL,\t/* 0.0 */\n 0x3FF0000000000000ULL,\t/* 1.0 */\n 0x0000000000000000ULL,\t/* 0.0 */\n 0x8000000000000000ULL,\t/* -0.0 */\n 0x4008000000000000ULL,\t/* 3.0 */\n 0xC008000000000000ULL,\t/* -3.0 */\n 0x4008000000000000ULL,\t/* 3.0 */\n 0xC008000000000000ULL,\t/* -3.0 */\n 0x4000000000000000ULL,\t/* 2.0 */\n 0xC000000000000000ULL,\t/* -2.0 */\n 0x4000000000000000ULL,\t/* 2.0 */\n 0xC000000000000000ULL,\t/* -2.0 */\n 0x3FF0000000000000ULL,\t/* 1.0 */\n 0xBFF0000000000000ULL,\t/* -1.0 */\n 0x3FF0000000000000ULL,\t/* 1.0 */\n 0xBFF0000000000000ULL\t\t/* -1.0 */\n};\n\nconst float64 b_input[N] = {\n 0x3FF0000000000000ULL,\t/* 1.0 */\n 0x7FF8000000000000ULL,\t/* nan */\n 0x7FF0000000000000ULL,\t/* inf */\n 0x3FF0000000000000ULL,\t/* 1.0 */\n 0x7FF8000000000000ULL,\t/* nan */\n 0x7FF0000000000000ULL,\t/* inf */\n 0x0000000000000000ULL,\t/* 0.0 */\n 0x0000000000000000ULL,\t/* 0.0 */\n 0x3FF0000000000000ULL,\t/* 1.0 */\n 0x3FF0000000000000ULL,\t/* 1.0 */\n 0x4000000000000000ULL,\t/* 2.0 */\n 0x4000000000000000ULL,\t/* 2.0 */\n 0xC000000000000000ULL,\t/* 2.0 */\n 0xC000000000000000ULL,\t/* -2.0 */\n 0x4010000000000000ULL,\t/* 4.0 */\n 0x4010000000000000ULL,\t/* 4.0 */\n 0xC010000000000000ULL,\t/* -4.0 */\n 0xC010000000000000ULL,\t/* -4.0 */\n 0x3FF8000000000000ULL,\t/* 1.5 */\n 0x3FF8000000000000ULL,\t/* 1.5 */\n 0xBFF8000000000000ULL,\t/* -1.5 */\n 0xBFF8000000000000ULL\t\t/* -1.5 */\n};\n\nconst float64 z_output[N] = {\n 0x7FFF000000000000ULL,\t/* nan */\n 0x7FF8000000000000ULL,\t/* nan */\n 0x7FFFFFFFFFFFFFFFULL,\t/* nan */\n 0x7FF0000000000000ULL,\t/* inf */\n 0x7FF8000000000000ULL,\t/* nan */\n 0x0000000000000000ULL,\t/* 0.0 */\n 0x7FFFFFFFFFFFFFFFULL,\t/* nan */\n 0x7FF0000000000000ULL,\t/* inf */\n 0x0000000000000000ULL,\t/* 0.0 */\n 0x8000000000000000ULL,\t/* -0.0 */\n 0x3FF8000000000000ULL,\t/* 1.5 */\n 0xBFF8000000000000ULL,\t/* -1.5 */\n 0xBFF8000000000000ULL,\t/* 1.5 */\n 0x3FF8000000000000ULL,\t/* -1.5 */\n 0x3FE0000000000000ULL,\t/* 0.5 */\n 0xBFE0000000000000ULL,\t/* 5.0 */\n 0xBFE0000000000000ULL,\t/* -5.0 */\n 0x3FE0000000000000ULL,\t/* 0.5 */\n 0x3FE5555555555555ULL,\t/* 0.666667 */\n 0xBFE5555555555555ULL,\t/* -0.666667 */\n 0xBFE5555555555555ULL,\t/* -0.666667 */\n 0x3FE5555555555555ULL\t\t/* 0.666667 */\n};\n\nint\nmain ()\n{\n int main_result;\n int i;\n float64 x1, x2;\n main_result = 0;\n for (i = 0; i < N; i++)\n\t{\n\t float64 result;\n\t x1 = a_input[i];\n\t x2 = b_input[i];\n\t result = float64_div (x1, x2);\n\t main_result += (result != z_output[i]);\n\n\t printf\n\t (\"a_input=%016llx b_input=%016llx expected=%016llx output=%016llx (%lf)\\n\",\n\t a_input[i], b_input[i], z_output[i], result,\n\t ullong_to_double (result));\n\t}\n printf (\"%d\\n\", main_result);\n return main_result;\n }\n", "groundtruth": "double\nullong_to_double (unsigned long long x)\n", "crossfile_context": ""} {"task_id": "CHStone", "path": "CHStone/dfmul/softfloat.h", "left_context": "/*\n+--------------------------------------------------------------------------+\n| CHStone : a suite of benchmark programs for C-based High-Level Synthesis |\n| ======================================================================== |\n| |\n| * Collected and Modified : Y. Hara, H. Tomiyama, S. Honda, |\n| H. Takada and K. Ishii |\n| Nagoya University, Japan |\n| |\n| * Remark : |\n| 1. This source code is modified to unify the formats of the benchmark |\n| programs in CHStone. |\n| 2. Test vectors are added for CHStone. |\n| 3. If \"main_result\" is 0 at the end of the program, the program is |\n| correctly executed. |\n| 4. Please follow the copyright of each benchmark program. |\n+--------------------------------------------------------------------------+\n*/\n/*============================================================================\n\nThis C header file is part of the SoftFloat IEC/IEEE Floating-point Arithmetic\nPackage, Release 2b.\n\nWritten by John R. Hauser. This work was made possible in part by the\nInternational Computer Science Institute, located at Suite 600, 1947 Center\nStreet, Berkeley, California 94704. Funding was partially provided by the\nNational Science Foundation under grant MIP-9311980. The original version\nof this code was written as part of a project to build a fixed-point vector\nprocessor in collaboration with the University of California at Berkeley,\noverseen by Profs. Nelson Morgan and John Wawrzynek. More information\nis available through the Web page `http://www.cs.berkeley.edu/~jhauser/\narithmetic/SoftFloat.html'.\n\nTHIS SOFTWARE IS DISTRIBUTED AS IS, FOR FREE. Although reasonable effort has\nbeen made to avoid it, THIS SOFTWARE MAY CONTAIN FAULTS THAT WILL AT TIMES\nRESULT IN INCORRECT BEHAVIOR. USE OF THIS SOFTWARE IS RESTRICTED TO PERSONS\nAND ORGANIZATIONS WHO CAN AND WILL TAKE FULL RESPONSIBILITY FOR ALL LOSSES,\nCOSTS, OR OTHER PROBLEMS THEY INCUR DUE TO THE SOFTWARE, AND WHO FURTHERMORE\nEFFECTIVELY INDEMNIFY JOHN HAUSER AND THE INTERNATIONAL COMPUTER SCIENCE\nINSTITUTE (possibly via similar legal warning) AGAINST ALL LOSSES, COSTS, OR\nOTHER PROBLEMS INCURRED BY THEIR CUSTOMERS AND CLIENTS DUE TO THE SOFTWARE.\n\nDerivative works are acceptable, even for commercial purposes, so long as\n(1) the source code for the derivative work includes prominent notice that\nthe work is derivative, and (2) the source code includes prominent notice with\nthese four paragraphs for those parts of this code that are retained.\n\n=============================================================================*/\n\n/*----------------------------------------------------------------------------\n| Software IEC/IEEE floating-point types.\n*----------------------------------------------------------------------------*/\n", "right_context": "typedef unsigned long long float64;\n\n/*----------------------------------------------------------------------------\n| Software IEC/IEEE floating-point underflow tininess-detection mode.\n*----------------------------------------------------------------------------*/\n#define float_tininess_after_rounding 0\n#define float_tininess_before_rounding 1\n\n/*----------------------------------------------------------------------------\n| Software IEC/IEEE floating-point rounding mode.\n*----------------------------------------------------------------------------*/\n#define float_round_nearest_even 0\n#define float_round_to_zero 1\n#define float_round_up 2\n#define float_round_down 3\n\n/*----------------------------------------------------------------------------\n| Software IEC/IEEE floating-point exception flags.\n*----------------------------------------------------------------------------*/\n#define float_flag_inexact 1\n#define float_flag_divbyzero 2\n#define float_flag_underflow 4\n#define float_flag_overflow 8\n#define float_flag_invalid 16\n", "groundtruth": "typedef unsigned int float32;\n", "crossfile_context": ""} {"task_id": "CHStone", "path": "CHStone/dfsin/dfsin.c", "left_context": "/*\n+--------------------------------------------------------------------------+\n| CHStone : a suite of benchmark programs for C-based High-Level Synthesis |\n| ======================================================================== |\n| |\n| * Collected and Modified : Y. Hara, H. Tomiyama, S. Honda, |\n| H. Takada and K. Ishii |\n| Nagoya University, Japan |\n| |\n| * Remark : |\n| 1. This source code is modified to unify the formats of the benchmark |\n| programs in CHStone. |\n| 2. Test vectors are added for CHStone. |\n| 3. If \"main_result\" is 0 at the end of the program, the program is |\n| correctly executed. |\n| 4. Please follow the copyright of each benchmark program. |\n+--------------------------------------------------------------------------+\n*/\n/*\n * Copyright (C) 2008\n * Y. Hara, H. Tomiyama, S. Honda, H. Takada and K. Ishii\n * Nagoya University, Japan\n * All rights reserved.\n *\n * Disclaimer of Warranty\n *\n * These software programs are available to the user without any license fee or\n * royalty on an \"as is\" basis. The authors disclaims any and all warranties, \n * whether express, implied, or statuary, including any implied warranties or \n * merchantability or of fitness for a particular purpose. In no event shall the\n * copyright-holder be liable for any incidental, punitive, or consequential damages\n * of any kind whatsoever arising from the use of these programs. This disclaimer\n * of warranty extends to the user of these programs and user's customers, employees,\n * agents, transferees, successors, and assigns.\n *\n */\n#include \n#include \"softfloat.c\"\n\nfloat64\nfloat64_abs (float64 x)\n", "right_context": "local_sin (float64 rad)\n{\n float64 app;\n float64 diff;\n float64 m_rad2;\n int inc;\n\n app = diff = rad;\n inc = 1;\n m_rad2 = float64_neg (float64_mul (rad, rad));\n do\n {\n diff = float64_div (float64_mul (diff, m_rad2),\n\t\t\t int32_to_float64 ((2 * inc) * (2 * inc + 1)));\n app = float64_add (app, diff);\n inc++;\n }\n while (float64_ge (float64_abs (diff), 0x3ee4f8b588e368f1ULL));\t/* 0.00001 */\n return app;\n}\n\ndouble\nullong_to_double (unsigned long long x)\n{\n union\n {\n double d;\n unsigned long long ll;\n } t;\n\n t.ll = x;\n return t.d;\n}\n\n/*\n+--------------------------------------------------------------------------+\n| * Test Vectors (added for CHStone) |\n| test_in : input data |\n| test_out : expected output data |\n+--------------------------------------------------------------------------+\n*/\n#define N 36\nconst float64 test_in[N] = {\n 0x0000000000000000ULL,\t/* 0 */\n 0x3fc65717fced55c1ULL,\t/* PI/18 */\n 0x3fd65717fced55c1ULL,\t/* PI/9 */\n 0x3fe0c151fdb20051ULL,\t/* PI/6 */\n 0x3fe65717fced55c1ULL,\t/* 2PI/9 */\n 0x3febecddfc28ab31ULL,\t/* 5PI/18 */\n 0x3ff0c151fdb20051ULL,\t/* PI/3 */\n 0x3ff38c34fd4fab09ULL,\t/* 7PI/18 */\n 0x3ff65717fced55c1ULL,\t/* 4PI/9 */\n 0x3ff921fafc8b0079ULL,\t/* PI/2 */\n 0x3ffbecddfc28ab31ULL,\t/* 5PI/9 */\n 0x3ffeb7c0fbc655e9ULL,\t/* 11PI/18 */\n 0x4000c151fdb20051ULL,\t/* 2PI/3 */\n 0x400226c37d80d5adULL,\t/* 13PI/18 */\n 0x40038c34fd4fab09ULL,\t/* 7PI/9 */\n 0x4004f1a67d1e8065ULL,\t/* 5PI/6 */\n 0x40065717fced55c1ULL,\t/* 8PI/9 */\n 0x4007bc897cbc2b1dULL,\t/* 17PI/18 */\n 0x400921fafc8b0079ULL,\t/* PI */\n 0x400a876c7c59d5d5ULL,\t/* 19PI/18 */\n 0x400becddfc28ab31ULL,\t/* 10PI/9 */\n 0x400d524f7bf7808dULL,\t/* 7PI/6 */\n 0x400eb7c0fbc655e9ULL,\t/* 11PI/9 */\n 0x40100e993dca95a3ULL,\t/* 23PI/18 */\n 0x4010c151fdb20051ULL,\t/* 8PI/6 */\n 0x4011740abd996affULL,\t/* 25PI/18 */\n 0x401226c37d80d5adULL,\t/* 13PI/9 */\n 0x4012d97c3d68405bULL,\t/* 3PI/2 */\n 0x40138c34fd4fab09ULL,\t/* 14PI/9 */\n 0x40143eedbd3715b7ULL,\t/* 29PI/18 */\n 0x4014f1a67d1e8065ULL,\t/* 15PI/9 */\n 0x4015a45f3d05eb13ULL,\t/* 31PI/18 */\n 0x40165717fced55c1ULL,\t/* 16PI/9 */\n 0x401709d0bcd4c06fULL,\t/* 33PI/18 */\n 0x4017bc897cbc2b1dULL,\t/* 17PI/9 */\n 0x40186f423ca395cbULL\n};\t\t\t\t/* 35PI/18 */\n\nconst float64 test_out[N] = {\n 0x0000000000000000ULL,\t/* 0.000000 */\n 0x3fc63a1a335aadcdULL,\t/* 0.173648 */\n 0x3fd5e3a82b09bf3eULL,\t/* 0.342020 */\n 0x3fdfffff91f9aa91ULL,\t/* 0.500000 */\n 0x3fe491b716c242e3ULL,\t/* 0.642787 */\n 0x3fe8836f672614a6ULL,\t/* 0.766044 */\n 0x3febb67ac40b2bedULL,\t/* 0.866025 */\n 0x3fee11f6127e28adULL,\t/* 0.939693 */\n 0x3fef838b6adffac0ULL,\t/* 0.984808 */\n 0x3fefffffe1cbd7aaULL,\t/* 1.000000 */\n 0x3fef838bb0147989ULL,\t/* 0.984808 */\n 0x3fee11f692d962b4ULL,\t/* 0.939693 */\n 0x3febb67b77c0142dULL,\t/* 0.866026 */\n 0x3fe883709d4ea869ULL,\t/* 0.766045 */\n 0x3fe491b81d72d8e8ULL,\t/* 0.642788 */\n 0x3fe00000ea5f43c8ULL,\t/* 0.500000 */\n 0x3fd5e3aa4e0590c5ULL,\t/* 0.342021 */\n 0x3fc63a1d2189552cULL,\t/* 0.173648 */\n 0x3ea6aedffc454b91ULL,\t/* 0.000001 */\n 0xbfc63a1444ddb37cULL,\t/* -0.173647 */\n 0xbfd5e3a4e68f8f3eULL,\t/* -0.342019 */\n 0xbfdffffd494cf96bULL,\t/* -0.499999 */\n 0xbfe491b61cb9a3d3ULL,\t/* -0.642787 */\n 0xbfe8836eb2dcf815ULL,\t/* -0.766044 */\n 0xbfebb67a740aae32ULL,\t/* -0.866025 */\n 0xbfee11f5912d2157ULL,\t/* -0.939692 */\n 0xbfef838b1ac64afcULL,\t/* -0.984808 */\n 0xbfefffffc2e5dc8fULL,\t/* -1.000000 */\n 0xbfef838b5ea2e7eaULL,\t/* -0.984808 */\n 0xbfee11f7112dae27ULL,\t/* -0.939693 */\n 0xbfebb67c2c31cb4aULL,\t/* -0.866026 */\n 0xbfe883716e6fd781ULL,\t/* -0.766045 */\n 0xbfe491b9cd1b5d56ULL,\t/* -0.642789 */\n 0xbfe000021d0ca30dULL,\t/* -0.500001 */\n 0xbfd5e3ad0a69caf7ULL,\t/* -0.342021 */\n 0xbfc63a23c48863ddULL\n};\t\t\t\t/* -0.173649 */\n\nint\nmain ()\n{\n int main_result;\n int i;\n main_result = 0;\n for (i = 0; i < N; i++)\n\t{\n\t float64 result;\n\t result = local_sin (test_in[i]);\n\t main_result += (result != test_out[i]);\n\n\t printf\n\t (\"input=%016llx expected=%016llx output=%016llx (%lf)\\n\",\n\t test_in[i], test_out[i], result, ullong_to_double (result));\n\t}\n printf (\"%d\\n\", main_result);\n return main_result;\n }\n", "groundtruth": "{\n return (x & 0x7fffffffffffffffULL);\n}\n", "crossfile_context": ""} {"task_id": "CHStone", "path": "CHStone/jpeg/decode.h", "left_context": "/*\n+--------------------------------------------------------------------------+\n| CHStone : a suite of benchmark programs for C-based High-Level Synthesis |\n| ======================================================================== |\n| |\n| * Collected and Modified : Y. Hara, H. Tomiyama, S. Honda, |\n| H. Takada and K. Ishii |\n| Nagoya University, Japan |\n| |\n| * Remark : |\n| 1. This source code is modified to unify the formats of the benchmark |\n| programs in CHStone. |\n| 2. Test vectors are added for CHStone. |\n| 3. If \"main_result\" is 0 at the end of the program, the program is |\n| correctly executed. |\n| 4. Please follow the copyright of each benchmark program. |\n+--------------------------------------------------------------------------+\n*/\n/*\n * Copyright (C) 2008\n * Y. Hara, H. Tomiyama, S. Honda, H. Takada and K. Ishii\n * Nagoya University, Japan\n * All rights reserved.\n *\n * Disclaimer of Warranty\n *\n * These software programs are available to the user without any license fee or\n * royalty on an \"as is\" basis. The authors disclaims any and all warranties, \n * whether express, implied, or statuary, including any implied warranties or \n * merchantability or of fitness for a particular purpose. In no event shall the\n * copyright-holder be liable for any incidental, punitive, or consequential damages\n * of any kind whatsoever arising from the use of these programs. This disclaimer\n * of warranty extends to the user of these programs and user's customers, employees,\n * agents, transferees, successors, and assigns.\n *\n */\n/*\n * Header file for decoding\n *\n * @(#) $Id: decode.h,v 1.2 2003/07/18 10:19:21 honda Exp $\n */\n\n#ifndef _DECODE_H_\n#define _DECODE_H_\n\n#define NUM_HUFF_TBLS 2\n#define NUM_QUANT_TBLS 4\n#define DCTSIZE 8\n#define DCTSIZE2 64\n\n\n/*\n * Fix the number of components as 3\n */\n#define NUM_COMPONENT 3\n\n#define RGB_NUM 3\n\n/*\n * Define the sample precision as 8\n */\n#define IDCT_SHIFT 128\n#define IDCT_BOUNT 255\n#define MARKER_MARKER 0xff\n\n/* SAMPLING_FACTOR */\n#define SF1_1_1 0\n#define SF4_1_1 2\n\nchar p_jinfo_data_precision;\nshort p_jinfo_image_height;\nshort p_jinfo_image_width;\nchar p_jinfo_num_components;\nint p_jinfo_smp_fact;\n\nchar p_jinfo_comps_info_index[NUM_COMPONENT];\nchar p_jinfo_comps_info_id[NUM_COMPONENT];\nchar p_jinfo_comps_info_h_samp_factor[NUM_COMPONENT];\nchar p_jinfo_comps_info_v_samp_factor[NUM_COMPONENT];\nchar p_jinfo_comps_info_quant_tbl_no[NUM_COMPONENT];\nchar p_jinfo_comps_info_dc_tbl_no[NUM_COMPONENT];\nchar p_jinfo_comps_info_ac_tbl_no[NUM_COMPONENT];\n\nunsigned int p_jinfo_quant_tbl_quantval[NUM_QUANT_TBLS][DCTSIZE2];\n\nint p_jinfo_dc_xhuff_tbl_bits[NUM_HUFF_TBLS][36];\nint p_jinfo_dc_xhuff_tbl_huffval[NUM_HUFF_TBLS][257];\n\nint p_jinfo_ac_xhuff_tbl_bits[NUM_HUFF_TBLS][36];\nint p_jinfo_ac_xhuff_tbl_huffval[NUM_HUFF_TBLS][257];\n\nint p_jinfo_dc_dhuff_tbl_ml[NUM_HUFF_TBLS];\nint p_jinfo_dc_dhuff_tbl_maxcode[NUM_HUFF_TBLS][36];\nint p_jinfo_dc_dhuff_tbl_mincode[NUM_HUFF_TBLS][36];\nint p_jinfo_dc_dhuff_tbl_valptr[NUM_HUFF_TBLS][36];\n\nint p_jinfo_ac_dhuff_tbl_ml[NUM_HUFF_TBLS];\n", "right_context": "int p_jinfo_ac_dhuff_tbl_mincode[NUM_HUFF_TBLS][36];\nint p_jinfo_ac_dhuff_tbl_valptr[NUM_HUFF_TBLS][36];\n\nint p_jinfo_MCUWidth;\nint p_jinfo_MCUHeight;\nint p_jinfo_NumMCU;\n\nunsigned char *p_jinfo_jpeg_data;\n\n#endif /* _DECODE_H_ */\n", "groundtruth": "int p_jinfo_ac_dhuff_tbl_maxcode[NUM_HUFF_TBLS][36];\n", "crossfile_context": ""} {"task_id": "CHStone", "path": "CHStone/jpeg/jpeg2bmp.c", "left_context": "/*\n+--------------------------------------------------------------------------+\n| CHStone : a suite of benchmark programs for C-based High-Level Synthesis |\n| ======================================================================== |\n| |\n| * Collected and Modified : Y. Hara, H. Tomiyama, S. Honda, |\n| H. Takada and K. Ishii |\n| Nagoya University, Japan |\n| |\n| * Remark : |\n| 1. This source code is modified to unify the formats of the benchmark |\n| programs in CHStone. |\n| 2. Test vectors are added for CHStone. |\n| 3. If \"main_result\" is 0 at the end of the program, the program is |\n| correctly executed. |\n| 4. Please follow the copyright of each benchmark program. |\n+--------------------------------------------------------------------------+\n*/\n/*\n * Copyright (C) 2008\n * Y. Hara, H. Tomiyama, S. Honda, H. Takada and K. Ishii\n * Nagoya University, Japan\n * All rights reserved.\n *\n * Disclaimer of Warranty\n *\n * These software programs are available to the user without any license fee or\n * royalty on an \"as is\" basis. The authors disclaims any and all warranties, \n * whether express, implied, or statuary, including any implied warranties or \n * merchantability or of fitness for a particular purpose. In no event shall the\n * copyright-holder be liable for any incidental, punitive, or consequential damages\n * of any kind whatsoever arising from the use of these programs. This disclaimer\n * of warranty extends to the user of these programs and user's customers, employees,\n * agents, transferees, successors, and assigns.\n *\n */\n/*\n * Transformation: JPEG -> BMP\n * \n * @(#) $Id: jpeg2bmp.c,v 1.2 2003/07/18 10:19:21 honda Exp $ \n */\n\n/*\n * Buffer for reading JPEG file\n */\nunsigned char JpegFileBuf[JPEG_FILE_SIZE];\n\n\nint\njpeg2bmp_main ()\n{\n int ci;\n unsigned char *c;\n int i, j;\n\n /*\n * Store input data in buffer\n */\n c = JpegFileBuf;\n for (i = 0; i < JPEGSIZE; i++)\n \n {\n ci = hana_jpg[i];\n *c++ = ci;\n }\n\n jpeg_read (JpegFileBuf);\n\n for (i = 0; i < RGB_NUM; i++)\n {\n for (j = 0; j < BMP_OUT_SIZE; j++)\n\t{\n\t if (OutData_comp_buf[i][j] != hana_bmp[i][j])\n\t {\n\t main_result++;\n\t }\n\t}\n }\n if (OutData_image_width != out_width)\n {\n main_result++;\n }\n", "right_context": "}\n", "groundtruth": " if (OutData_image_height != out_length)\n {\n main_result++;\n", "crossfile_context": ""} {"task_id": "CHStone", "path": "CHStone/jpeg/main.c", "left_context": "/*\n+--------------------------------------------------------------------------+\n| CHStone : a suite of benchmark programs for C-based High-Level Synthesis |\n| ======================================================================== |\n| |\n| * Collected and Modified : Y. Hara, H. Tomiyama, S. Honda, |\n| H. Takada and K. Ishii |\n| Nagoya University, Japan |\n| |\n| * Remark : |\n| 1. This source code is modified to unify the formats of the benchmark |\n| programs in CHStone. |\n| 2. Test vectors are added for CHStone. |\n| 3. If \"main_result\" is 0 at the end of the program, the program is |\n| correctly executed. |\n| 4. Please follow the copyright of each benchmark program. |\n+--------------------------------------------------------------------------+\n*/\n/*\n * Copyright (C) 2008\n * Y. Hara, H. Tomiyama, S. Honda, H. Takada and K. Ishii\n * Nagoya University, Japan\n * All rights reserved.\n *\n * Disclaimer of Warranty\n *\n * These software programs are available to the user without any license fee or\n * royalty on an \"as is\" basis. The authors disclaims any and all warranties, \n * whether express, implied, or statuary, including any implied warranties or \n * merchantability or of fitness for a particular purpose. In no event shall the\n * copyright-holder be liable for any incidental, punitive, or consequential damages\n * of any kind whatsoever arising from the use of these programs. This disclaimer\n * of warranty extends to the user of these programs and user's customers, employees,\n * agents, transferees, successors, and assigns.\n *\n */\n#include \n#include \n\n#include \"global.h\"\n#include \"decode.h\"\n#include \"init.h\"\n#include \"marker.c\"\n#include \"chenidct.c\"\n#include \"huffman.h\"\n#include \"decode.c\"\n#include \"huffman.c\"\n#include \"jfif_read.c\"\n#include \"jpeg2bmp.c\"\n\nint\nmain ()\n{\n main_result = 0;\n jpeg2bmp_main ();\n\n printf (\"%d\\n\", main_result);\n", "right_context": "", "groundtruth": "\n return main_result;\n", "crossfile_context": ""} {"task_id": "CHStone", "path": "CHStone/motion/getbits.c", "left_context": "/*\n+--------------------------------------------------------------------------+\n| CHStone : a suite of benchmark programs for C-based High-Level Synthesis |\n| ======================================================================== |\n| |\n| * Collected and Modified : Y. Hara, H. Tomiyama, S. Honda, |\n| H. Takada and K. Ishii |\n| Nagoya University, Japan |\n| |\n| * Remark : |\n| 1. This source code is modified to unify the formats of the benchmark |\n| programs in CHStone. |\n| 2. Test vectors are added for CHStone. |\n| 3. If \"main_result\" is 0 at the end of the program, the program is |\n| correctly executed. |\n| 4. Please follow the copyright of each benchmark program. |\n+--------------------------------------------------------------------------+\n*/\n/* getbits.c, bit level routines */\n\n/*\n * All modifications (mpeg2decode -> mpeg2play) are\n * Copyright (C) 1996, Stefan Eckart. All Rights Reserved.\n */\n\n/* Copyright (C) 1996, MPEG Software Simulation Group. All Rights Reserved. */\n\n/*\n * Disclaimer of Warranty\n *\n * These software programs are available to the user without any license fee or\n * royalty on an \"as is\" basis. The MPEG Software Simulation Group disclaims\n * any and all warranties, whether express, implied, or statuary, including any\n * implied warranties or merchantability or of fitness for a particular\n * purpose. In no event shall the copyright-holder be liable for any\n * incidental, punitive, or consequential damages of any kind whatsoever\n * arising from the use of these programs.\n *\n * This disclaimer of warranty extends to the user of these programs and user's\n * customers, employees, agents, transferees, successors, and assigns.\n *\n * The MPEG Software Simulation Group does not represent or warrant that the\n * programs furnished hereunder are free of infringement of any third-party\n * patents.\n *\n * Commercial implementations of MPEG-1 and MPEG-2 video, including shareware,\n * are subject to royalty fees to patent holders. Many of these patents are\n * general enough such that they are unavoidable regardless of implementation\n * design.\n *\n */\n\n\n/* initialize buffer, call once before first getbits or showbits */\nint\nread (unsigned char *s1, const unsigned char *s2, int n)\n{\n unsigned char *p1;\n const unsigned char *p2;\n int n_tmp;\n \np1 = s1;\n p2 = s2;\n n_tmp = n;\n \nwhile (n_tmp-- > 0)\n {\n *p1 = *p2;\n \np1++;\n \np2++;\n \n}\n \nreturn n;\n}\n\nvoid\nFill_Buffer ()\n{\n int Buffer_Level;\n unsigned char *p;\n p = ld_Rdbfr;\n\n\n Buffer_Level = read (ld_Rdbfr, inRdbfr, 2048);\n ld_Rdptr = ld_Rdbfr;\n\n if (System_Stream_Flag)\n ld_Rdmax -= 2048;\n\n\n /* end of the bitstream file */\n if (Buffer_Level < 2048)\n {\n /* just to be safe */\n if (Buffer_Level < 0)\n\tBuffer_Level = 0;\n\n /* pad until the next to the next 32-bit word boundary */\n while (Buffer_Level & 3)\n\tld_Rdbfr[Buffer_Level++] = 0;\n\n /* pad the buffer with sequence end codes */\n while (Buffer_Level < 2048)\n\t{\n\t ld_Rdbfr[Buffer_Level++] = SEQUENCE_END_CODE >> 24;\n\t ld_Rdbfr[Buffer_Level++] = SEQUENCE_END_CODE >> 16;\n\t ld_Rdbfr[Buffer_Level++] = SEQUENCE_END_CODE >> 8;\n\t ld_Rdbfr[Buffer_Level++] = SEQUENCE_END_CODE & 0xff;\n\t}\n }\n}\n\nunsigned int\nShow_Bits (N)\n int N;\n{\n return ld_Bfr >> (unsigned)(32-N)%32;\n}\n\n\n/* return next bit (could be made faster than Get_Bits(1)) */\n\nunsigned int\nGet_Bits1 ()\n{\n return Get_Bits (1);\n}\n\n\n/* advance by n bits */\n\nvoid\nFlush_Buffer (N)\n int N;\n{\n int Incnt;\n\n#ifdef RAND_VAL \n\t/* N is between 0 and 20 with realistic input sets, while it may become larger than the width of the integer type when using randomly generated input sets which are used in the contained input set. The following is to avoid this. */\n\tld_Bfr <<= (N%20);\n#else\n ld_Bfr <<= N;\n#endif\n\t\n Incnt = ld_Incnt -= N;\n\n if (Incnt <= 24)\n {\n if (ld_Rdptr < ld_Rdbfr + 2044)\n\t{\n\t do\n\t {\n#ifdef RAND_VAL \n\t/* N is between 0 and 20 with realistic input sets, while it may become larger than the width of the integer type when using randomly generated input sets which are used in the contained input set. The following is to avoid this. */\n\t \tld_Bfr |= *ld_Rdptr++ << ((24 - Incnt)%20);\n#else\n\t \tld_Bfr |= *ld_Rdptr++ << (24 - Incnt);\n#endif\n\t \tIncnt += 8;\n\t }\n\t while (Incnt <= 24);\n\t}\n else\n\t{\n\t do\n\t {\n\t if (ld_Rdptr >= ld_Rdbfr + 2048)\n\t\tFill_Buffer ();\n#ifdef RAND_VAL \n\t/* N is between 0 and 20 with realistic input sets, while it may become larger than the width of the integer type when using randomly generated input sets which are used in the contained input set. The following is to avoid this. */\n\t ld_Bfr |= *ld_Rdptr++ << ((24 - Incnt)%20);\n#else\n\t ld_Bfr |= *ld_Rdptr++ << (24 - Incnt);\n#endif\n\t Incnt += 8;\n\t }\n\t while (Incnt <= 24);\n\t}\n ld_Incnt = Incnt;\n }\n}\n\n\n/* return next n bits (right adjusted) */\n\nunsigned int\nGet_Bits (N)\n", "right_context": "{\n unsigned int Val;\n\n Val = Show_Bits (N);\n Flush_Buffer (N);\n\n return Val;\n}\n", "groundtruth": " int N;\n", "crossfile_context": ""} {"task_id": "CHStone", "path": "CHStone/motion/global.h", "left_context": "/*\n+--------------------------------------------------------------------------+\n| CHStone : a suite of benchmark programs for C-based High-Level Synthesis |\n| ======================================================================== |\n| |\n| * Collected and Modified : Y. Hara, H. Tomiyama, S. Honda, |\n| H. Takada and K. Ishii |\n| Nagoya University, Japan |\n| |\n| * Remark : |\n| 1. This source code is modified to unify the formats of the benchmark |\n| programs in CHStone. |\n| 2. Test vectors are added for CHStone. |\n| 3. If \"main_result\" is 0 at the end of the program, the program is |\n| correctly executed. |\n| 4. Please follow the copyright of each benchmark program. |\n+--------------------------------------------------------------------------+\n*/\n/* global.h, global variables */\n\n/* Copyright (C) 1996, MPEG Software Simulation Group. All Rights Reserved. */\n\n/*\n * Disclaimer of Warranty\n *\n * These software programs are available to the user without any license fee or\n * royalty on an \"as is\" basis. The MPEG Software Simulation Group disclaims\n * any and all warranties, whether express, implied, or statuary, including any\n * implied warranties or merchantability or of fitness for a particular\n * purpose. In no event shall the copyright-holder be liable for any\n * incidental, punitive, or consequential damages of any kind whatsoever\n * arising from the use of these programs.\n *\n * This disclaimer of warranty extends to the user of these programs and user's\n * customers, employees, agents, transferees, successors, and assigns.\n *\n * The MPEG Software Simulation Group does not represent or warrant that the\n * programs furnished hereunder are free of infringement of any third-party\n * patents.\n *\n * Commercial implementations of MPEG-1 and MPEG-2 video, including shareware,\n * are subject to royalty fees to patent holders. Many of these patents are\n * general enough such that they are unavoidable regardless of implementation\n * design.\n *\n */\n\n#include \"mpeg2dec.h\"\n\n/* choose between declaration (GLOBAL undefined)\n * and definition (GLOBAL defined)\n * GLOBAL is defined in exactly one file mpeg2dec.c)\n */\n\n\n/* Get_Bits.c */\nvoid Fill_Buffer _ANSI_ARGS_ ((void));\n", "right_context": "unsigned int Get_Bits1 _ANSI_ARGS_ ((void));\nvoid Flush_Buffer _ANSI_ARGS_ ((int n));\nunsigned int Get_Bits _ANSI_ARGS_ ((int n));\nint Get_Byte _ANSI_ARGS_ ((void));\n\n/* getvlc.c */\nint Get_motion_code _ANSI_ARGS_ ((void));\nint Get_dmvector _ANSI_ARGS_ ((void));\nint Get_coded_block_pattern _ANSI_ARGS_ ((void));\n\n\n/* motion.c */\nvoid motion_vector\n_ANSI_ARGS_ ((int *PMV, int *dmvector, int h_r_size, int v_r_size, int dmv,\n\t int mvscale, int full_pel_vector));\n\nint System_Stream_Flag;\n\nunsigned char ld_Rdbfr[2048];\nunsigned char *ld_Rdptr, *ld_Rdmax;\nunsigned int ld_Bfr;\nint ld_Incnt;\n", "groundtruth": "unsigned int Show_Bits _ANSI_ARGS_ ((int n));\n", "crossfile_context": ""} {"task_id": "CHStone", "path": "CHStone/motion/mpeg2.c", "left_context": "/*\n+--------------------------------------------------------------------------+\n| CHStone : a suite of benchmark programs for C-based High-Level Synthesis |\n| ======================================================================== |\n| |\n| * Collected and Modified : Y. Hara, H. Tomiyama, S. Honda, |\n| H. Takada and K. Ishii |\n| Nagoya University, Japan |\n| |\n| * Remark : |\n| 1. This source code is modified to unify the formats of the benchmark |\n| programs in CHStone. |\n| 2. Test vectors are added for CHStone. |\n| 3. If \"main_result\" is 0 at the end of the program, the program is |\n| correctly executed. |\n| 4. Please follow the copyright of each benchmark program. |\n+--------------------------------------------------------------------------+\n*/\n/*\n * Copyright (C) 2008\n * Y. Hara, H. Tomiyama, S. Honda, H. Takada and K. Ishii\n * Nagoya University, Japan\n * All rights reserved.\n *\n * Disclaimer of Warranty\n *\n * These software programs are available to the user without any license fee or\n * royalty on an \"as is\" basis. The authors disclaims any and all warranties, \n * whether express, implied, or statuary, including any implied warranties or \n * merchantability or of fitness for a particular purpose. In no event shall the\n * copyright-holder be liable for any incidental, punitive, or consequential damages\n * of any kind whatsoever arising from the use of these programs. This disclaimer\n * of warranty extends to the user of these programs and user's customers, employees,\n * agents, transferees, successors, and assigns.\n *\n */\n#include \n\n#define Num 2048\n\n/*\n+--------------------------------------------------------------------------+\n| * Test Vectors (added for CHStone) |\n| inRdbfr, inPMV, inPMV : input data |\n| outPMV, outmvfs : expected output data |\n+--------------------------------------------------------------------------+\n*/\nconst unsigned char inRdbfr[Num] = {\n 0, 104, 120, 48, 72, 32, 160, 192, 192, 64, 56, 248, 248, 88, 136, 224, 200,\n 208, 176, 72, 96, 40, 184, 160, 32, 32, 120, 168, 64, 32, 72, 184,\n 216, 240, 0, 216, 192, 64, 112, 48, 160, 152, 40, 176, 32, 32, 248, 200,\n 104, 24, 216, 240, 128, 176, 72, 232, 240, 184, 48, 120, 48, 192, 64, 168,\n 160, 128, 160, 160, 232, 208, 104, 120, 232, 120, 8, 184, 120, 200, 64, 160,\n 200, 224, 64, 168, 40, 120, 80, 104, 16, 0, 8, 120, 144, 136, 80, 144,\n 72, 24, 128, 216, 216, 24, 80, 16, 64, 32, 200, 112, 128, 144, 88, 24, 112,\n 120, 32, 104, 72, 176, 24, 16, 184, 56, 24, 200, 152, 152, 48, 48,\n 136, 80, 240, 8, 216, 200, 240, 32, 168, 112, 48, 56, 40, 192, 232, 32, 48,\n 232, 232, 32, 0, 88, 208, 24, 240, 72, 120, 96, 248, 136, 224, 208,\n 8, 184, 192, 144, 88, 48, 144, 136, 112, 192, 96, 240, 200, 160, 184, 160,\n 24, 48, 208, 152, 128, 184, 184, 144, 144, 168, 240, 144, 160, 168, 48,\n 48,\n 24, 200, 144, 120, 208, 56, 96, 72, 48, 88, 80, 200, 248, 208, 248, 40, 136,\n 112, 32, 8, 8, 80, 192, 40, 32, 224, 56, 192, 200, 56, 56, 232,\n 200, 80, 120, 8, 184, 216, 232, 80, 168, 128, 32, 216, 136, 104, 248, 168,\n 248, 8, 192, 168, 192, 56, 240, 192, 208, 136, 120, 48, 224, 112, 168, 80,\n 192, 96, 80, 120, 120, 16, 120, 48, 168, 168, 160, 224, 128, 24, 72, 24,\n 248, 240, 152, 160, 208, 56, 192, 56, 88, 128, 192, 136, 128, 208, 112,\n 40,\n 64, 192, 32, 176, 80, 56, 168, 208, 24, 168, 168, 248, 240, 136, 96, 32, 56,\n 184, 8, 136, 16, 0, 176, 40, 0, 32, 104, 160, 56, 88, 232, 56,\n 0, 240, 184, 232, 88, 32, 176, 0, 216, 248, 184, 40, 16, 80, 8, 208, 64,\n 224, 72, 40, 72, 72, 144, 80, 144, 120, 136, 64, 184, 160, 136, 16,\n 48, 104, 232, 104, 104, 72, 208, 72, 192, 184, 40, 56, 232, 72, 160, 80,\n 152, 232, 248, 32, 224, 40, 0, 168, 24, 96, 112, 160, 152, 8, 32, 160,\n 104, 208, 32, 24, 248, 8, 248, 144, 120, 16, 192, 88, 152, 176, 200, 160,\n 152, 160, 96, 168, 240, 16, 248, 176, 24, 216, 0, 56, 80, 248, 96, 8,\n 128, 32, 192, 104, 48, 208, 240, 184, 128, 80, 56, 192, 0, 112, 176, 48, 96,\n 56, 24, 56, 24, 32, 24, 96, 80, 0, 64, 112, 48, 24, 88, 56,\n 152, 224, 160, 192, 184, 72, 248, 128, 8, 8, 104, 104, 200, 48, 136, 136,\n 208, 144, 80, 40, 136, 96, 8, 208, 160, 104, 160, 80, 64, 96, 176, 144,\n 8, 56, 88, 88, 208, 120, 48, 240, 240, 96, 248, 192, 104, 128, 248, 24, 104,\n 72, 64, 120, 248, 192, 48, 192, 32, 80, 144, 16, 80, 96, 112, 184,\n 56, 80, 248, 232, 0, 40, 248, 56, 192, 32, 192, 96, 248, 48, 136, 224, 80,\n 0, 192, 128, 104, 120, 208, 128, 0, 176, 216, 8, 192, 96, 16, 40,\n 184, 96, 32, 72, 80, 192, 104, 104, 136, 0, 16, 160, 24, 104, 48, 8, 24,\n 152, 120, 128, 72, 32, 176, 112, 104, 120, 16, 32, 144, 160, 56, 240,\n 0, 232, 184, 24, 16, 208, 200, 240, 200, 200, 104, 112, 24, 208, 128, 168,\n 248, 64, 152, 120, 64, 224, 128, 208, 120, 216, 16, 152, 48, 144, 240, 80,\n 144, 224, 48, 160, 192, 248, 0, 128, 120, 128, 160, 232, 168, 208, 112, 112,\n 104, 184, 8, 192, 56, 176, 40, 96, 64, 72, 104, 216, 152, 216, 80, 152,\n 184, 216, 32, 56, 32, 64, 240, 152, 240, 168, 136, 8, 232, 168, 128, 88, 72,\n 128, 8, 192, 48, 120, 112, 32, 144, 208, 192, 216, 16, 176, 168, 160,\n 168, 88, 136, 56, 8, 64, 0, 80, 216, 104, 64, 80, 88, 208, 64, 80, 200, 24,\n 120, 160, 80, 72, 56, 216, 24, 56, 72, 40, 72, 0, 56, 136,\n 56, 200, 72, 136, 88, 72, 136, 240, 0, 176, 176, 152, 192, 248, 224, 240,\n 72, 8, 112, 232, 200, 120, 16, 0, 40, 48, 64, 72, 32, 136, 104, 152,\n 16, 240, 184, 80, 0, 152, 32, 176, 128, 120, 0, 160, 40, 64, 112, 40, 80,\n 48, 144, 96, 168, 0, 152, 72, 184, 136, 88, 152, 184, 48, 88, 152,\n 96, 216, 240, 184, 200, 136, 64, 104, 112, 232, 0, 208, 176, 128, 112, 248,\n 144, 248, 120, 112, 0, 120, 240, 88, 88, 88, 8, 248, 80, 8, 64, 216,\n 240, 56, 56, 144, 112, 208, 144, 72, 16, 160, 136, 216, 176, 112, 56, 8,\n 168, 104, 72, 40, 176, 88, 40, 120, 24, 40, 56, 104, 40, 160, 232, 160,\n 24, 144, 144, 232, 120, 144, 112, 96, 136, 176, 8, 128, 112, 184, 96, 120,\n 64, 112, 0, 184, 80, 72, 184, 80, 144, 72, 120, 200, 168, 32, 24, 0,\n 144, 72, 24, 248, 24, 152, 72, 128, 0, 8, 224, 32, 72, 72, 48, 112, 232, 16,\n 240, 24, 64, 32, 232, 120, 168, 200, 152, 112, 8, 144, 0, 120,\n 112, 0, 112, 144, 72, 160, 24, 216, 112, 128, 224, 152, 104, 136, 40, 0, 16,\n 144, 48, 248, 136, 48, 64, 88, 152, 208, 248, 16, 112, 224, 184, 168,\n 40, 168, 64, 248, 144, 104, 200, 144, 152, 16, 168, 192, 240, 96, 72, 136,\n 216, 136, 0, 32, 192, 112, 240, 160, 248, 184, 16, 48, 232, 88, 160, 16,\n 104, 176, 144, 136, 24, 240, 184, 160, 8, 16, 32, 56, 176, 144, 168, 168,\n 56, 88, 88, 104, 248, 184, 96, 32, 128, 88, 224, 240, 32, 120, 216, 136,\n 8, 72, 80, 104, 120, 152, 32, 96, 232, 80, 232, 24, 80, 200, 208, 216, 184,\n 16, 56, 40, 216, 208, 128, 120, 16, 16, 80, 200, 144, 104, 160, 72,\n 24, 136, 176, 32, 192, 120, 136, 80, 16, 88, 208, 160, 16, 232, 40, 24, 144,\n 208, 32, 16, 88, 192, 48, 176, 152, 24, 160, 32, 80, 24, 240, 80,\n 160, 152, 160, 128, 80, 88, 40, 184, 208, 144, 48, 200, 200, 48, 112, 144,\n 104, 224, 144, 224, 200, 8, 224, 240, 32, 152, 232, 16, 8, 80, 184, 40,\n 184, 248, 64, 8, 232, 16, 88, 88, 8, 120, 128, 48, 240, 88, 64, 104, 104,\n 248, 96, 240, 192, 152, 208, 56, 152, 240, 136, 8, 216, 24, 112, 168,\n 88, 136, 80, 224, 136, 152, 40, 24, 248, 216, 152, 136, 96, 224, 64, 80, 56,\n 56, 72, 8, 24, 64, 144, 24, 208, 216, 128, 120, 96, 168, 120, 152,\n 112, 232, 136, 80, 72, 96, 152, 208, 72, 216, 64, 120, 120, 48, 232, 72,\n 184, 176, 48, 232, 200, 184, 120, 72, 112, 128, 248, 160, 168, 216, 152,\n 80,\n 176, 112, 48, 152, 112, 64, 40, 200, 232, 80, 160, 56, 216, 192, 168, 72,\n 40, 64, 208, 32, 224, 240, 24, 104, 232, 240, 168, 24, 248, 32, 80, 152,\n 144, 160, 112, 120, 96, 240, 64, 160, 248, 248, 152, 48, 112, 88, 128, 232,\n 240, 240, 232, 168, 120, 32, 152, 176, 104, 16, 80, 152, 240, 224, 128,\n 16,\n 48, 32, 216, 8, 104, 248, 184, 208, 216, 120, 80, 208, 128, 56, 112, 40,\n 184, 16, 224, 168, 152, 248, 56, 144, 168, 224, 8, 168, 80, 136, 152, 48,\n 96, 0, 184, 88, 192, 24, 16, 128, 0, 176, 152, 40, 96, 72, 192, 0, 32, 128,\n 24, 240, 48, 248, 176, 120, 16, 168, 224, 72, 8, 200, 48, 176,\n 112, 224, 160, 8, 152, 64, 16, 16, 240, 224, 64, 144, 128, 80, 184, 40, 232,\n 200, 112, 248, 24, 112, 176, 128, 128, 56, 40, 152, 24, 184, 120, 104,\n 72, 64, 200, 48, 224, 0, 56, 232, 32, 240, 184, 104, 104, 32, 192, 200, 200,\n 64, 152, 72, 216, 216, 80, 0, 80, 0, 0, 160, 120, 40, 136, 240,\n 32, 120, 152, 216, 56, 112, 16, 24, 8, 120, 104, 192, 144, 176, 8, 16, 96,\n 104, 168, 80, 192, 232, 112, 112, 56, 88, 176, 240, 32, 176, 248, 80,\n 176, 24, 224, 192, 8, 176, 168, 16, 232, 248, 16, 16, 104, 128, 232, 0, 32,\n 240, 112, 32, 184, 184, 56, 232, 80, 144, 16, 72, 240, 208, 64, 176,\n 240, 16, 136, 16, 80, 192, 24, 72, 216, 56, 80, 216, 32, 144, 72, 24, 64,\n 248, 0, 224, 72, 32, 136, 232, 240, 72, 32, 88, 128, 104, 16, 8,\n 32, 192, 224, 8, 152, 248, 224, 0, 176, 48, 16, 104, 216, 176, 24, 240, 200,\n 80, 248, 208, 128, 200, 72, 8, 152, 128, 80, 120, 80, 152, 232, 200,\n 168, 88, 16, 176, 232, 40, 72, 208, 232, 112, 240, 112, 80, 176, 176, 16,\n 72, 120, 32, 184, 224, 80, 24, 176, 0, 208, 16, 56, 112, 16, 120, 160,\n 24, 216, 128, 136, 192, 152, 248, 120, 160, 56, 192, 224, 0, 136, 112, 112,\n 8, 8, 184, 168, 88, 160, 120, 160, 240, 168, 32, 40, 168, 88, 8, 16,\n 24, 104, 104, 48, 248, 136, 72, 144, 128, 160, 216, 88, 240, 120, 232, 72,\n 192, 200, 248, 192, 48, 240, 104, 208, 40, 104, 16, 128, 80, 224, 224, 56,\n 56, 120, 40, 24, 176, 16, 184, 24, 176, 224, 168, 16, 184, 104, 136, 200,\n 168, 208, 120, 200, 224, 40, 208, 16, 112, 160, 192, 224, 64, 40, 232,\n 120,\n 24, 232, 168, 80, 88, 144, 104, 72, 192, 112, 0, 112, 104, 224, 232, 160,\n 112, 208, 176, 216, 56, 224, 224, 160, 104, 56, 176, 216, 192, 24, 208, 8,\n 40, 56, 248, 8, 120, 184, 128, 40, 168, 56, 184, 192, 136, 96, 72, 216, 8,\n 64, 72, 56, 16, 176, 144, 16, 128, 176, 136, 208, 120, 16, 184, 224,\n 160, 216, 144, 88, 208, 200, 144, 96, 152, 200, 224, 208, 240, 120, 8, 104,\n 184, 112, 168, 200, 112, 72, 0, 192, 0, 40, 120, 136, 112, 40, 152, 56,\n 144, 32, 224, 240, 32, 192, 56, 200, 16, 136, 104, 192, 192, 0, 0, 0, 8,\n 232, 104, 240, 88, 192, 8, 168, 216, 208, 184, 224, 240, 72, 152, 72,\n 168, 184, 176, 216, 48, 144, 80, 32, 184, 208, 112, 160, 88, 88, 8, 144,\n 144, 120, 152, 48, 200, 168, 112, 8, 160, 216, 240, 128, 104, 128, 144,\n 248,\n 64, 168, 136, 240, 160, 56, 136, 216, 80, 56, 192, 32, 64, 128, 80, 32, 32,\n 96, 88, 200, 152, 72, 160, 16, 128, 200, 160, 144, 112, 16, 112, 152,\n 56, 136, 56, 216, 8, 24, 192, 144, 176, 200, 48, 72, 40, 72, 240, 120, 120,\n 160, 80, 152, 144, 216, 224, 152, 40, 144, 160, 88, 184, 184, 192, 128,\n 0, 200, 72, 112, 208, 248, 152, 0, 152, 8, 40, 16, 168, 152, 64, 176, 88,\n 24, 232, 136, 32, 152, 232, 208, 192, 240, 136, 0, 232, 200, 8, 216,\n 104, 184, 64, 192, 8, 96, 184, 120, 208, 80, 16, 64, 136, 136, 72, 8, 112,\n 184, 248, 120, 136, 8, 56, 232, 208, 96, 16, 64, 168, 112, 48, 32,\n 184, 224, 72, 88, 128, 184, 72, 168, 224, 216, 160, 232, 64, 168, 48, 152,\n 64, 152, 16, 200, 168, 56, 144, 192, 64, 120, 168, 8, 128, 216, 16, 8,\n 104, 32, 128, 96, 160, 88, 136, 96, 56, 16, 128, 56, 88, 16, 208, 200, 24,\n 96, 240, 32, 232, 192, 104, 168, 40, 0, 192, 40, 200, 96, 184, 8,\n 72, 216, 104, 232, 112, 248, 8, 8, 248, 192, 152, 32, 0, 168, 232, 80, 248,\n 64, 8, 24, 80, 32, 96, 240, 232, 48, 80, 16, 144, 200, 16, 48,\n 88, 40, 112, 232, 88, 168, 56, 160, 232, 16, 128, 248, 48, 80, 200, 168,\n 152, 72, 216, 224, 72, 208, 152, 192, 0, 224, 48, 136, 168, 96, 16, 152\n};\nconst unsigned char out_ld_Rdptr[Num] = {\n 72, 184, 216, 240, 0, 216, 192, 64, 112, 48, 160, 152, 40, 176, 32, 32, 248,\n 200, 104, 24, 216, 240, 128, 176, 72, 232, 240, 184, 48, 120, 48, 192,\n 64, 168, 160, 128, 160, 160, 232, 208, 104, 120, 232, 120, 8, 184, 120, 200,\n 64, 160, 200, 224, 64, 168, 40, 120, 80, 104, 16, 0, 8, 120, 144, 136,\n 80, 144, 72, 24, 128, 216, 216, 24, 80, 16, 64, 32, 200, 112, 128, 144, 88,\n 24, 112, 120, 32, 104, 72, 176, 24, 16, 184, 56, 24, 200, 152, 152,\n 48, 48, 136, 80, 240, 8, 216, 200, 240, 32, 168, 112, 48, 56, 40, 192, 232,\n 32, 48, 232, 232, 32, 0, 88, 208, 24, 240, 72, 120, 96, 248, 136,\n 224, 208, 8, 184, 192, 144, 88, 48, 144, 136, 112, 192, 96, 240, 200, 160,\n 184, 160, 24, 48, 208, 152, 128, 184, 184, 144, 144, 168, 240, 144, 160,\n 168,\n 48, 48, 24, 200, 144, 120, 208, 56, 96, 72, 48, 88, 80, 200, 248, 208, 248,\n 40, 136, 112, 32, 8, 8, 80, 192, 40, 32, 224, 56, 192, 200, 56,\n 56, 232, 200, 80, 120, 8, 184, 216, 232, 80, 168, 128, 32, 216, 136, 104,\n 248, 168, 248, 8, 192, 168, 192, 56, 240, 192, 208, 136, 120, 48, 224,\n 112,\n 168, 80, 192, 96, 80, 120, 120, 16, 120, 48, 168, 168, 160, 224, 128, 24,\n 72, 24, 248, 240, 152, 160, 208, 56, 192, 56, 88, 128, 192, 136, 128, 208,\n 112, 40, 64, 192, 32, 176, 80, 56, 168, 208, 24, 168, 168, 248, 240, 136,\n 96, 32, 56, 184, 8, 136, 16, 0, 176, 40, 0, 32, 104, 160, 56, 88,\n 232, 56, 0, 240, 184, 232, 88, 32, 176, 0, 216, 248, 184, 40, 16, 80, 8,\n 208, 64, 224, 72, 40, 72, 72, 144, 80, 144, 120, 136, 64, 184, 160,\n 136, 16, 48, 104, 232, 104, 104, 72, 208, 72, 192, 184, 40, 56, 232, 72,\n 160, 80, 152, 232, 248, 32, 224, 40, 0, 168, 24, 96, 112, 160, 152, 8,\n 32, 160, 104, 208, 32, 24, 248, 8, 248, 144, 120, 16, 192, 88, 152, 176,\n 200, 160, 152, 160, 96, 168, 240, 16, 248, 176, 24, 216, 0, 56, 80, 248,\n 96, 8, 128, 32, 192, 104, 48, 208, 240, 184, 128, 80, 56, 192, 0, 112, 176,\n 48, 96, 56, 24, 56, 24, 32, 24, 96, 80, 0, 64, 112, 48, 24,\n 88, 56, 152, 224, 160, 192, 184, 72, 248, 128, 8, 8, 104, 104, 200, 48, 136,\n 136, 208, 144, 80, 40, 136, 96, 8, 208, 160, 104, 160, 80, 64, 96,\n 176, 144, 8, 56, 88, 88, 208, 120, 48, 240, 240, 96, 248, 192, 104, 128,\n 248, 24, 104, 72, 64, 120, 248, 192, 48, 192, 32, 80, 144, 16, 80, 96,\n 112, 184, 56, 80, 248, 232, 0, 40, 248, 56, 192, 32, 192, 96, 248, 48, 136,\n 224, 80, 0, 192, 128, 104, 120, 208, 128, 0, 176, 216, 8, 192, 96,\n 16, 40, 184, 96, 32, 72, 80, 192, 104, 104, 136, 0, 16, 160, 24, 104, 48, 8,\n 24, 152, 120, 128, 72, 32, 176, 112, 104, 120, 16, 32, 144, 160,\n", "right_context": " 168, 160, 168, 88, 136, 56, 8, 64, 0, 80, 216, 104, 64, 80, 88, 208, 64, 80,\n 200, 24, 120, 160, 80, 72, 56, 216, 24, 56, 72, 40, 72, 0,\n 56, 136, 56, 200, 72, 136, 88, 72, 136, 240, 0, 176, 176, 152, 192, 248,\n 224, 240, 72, 8, 112, 232, 200, 120, 16, 0, 40, 48, 64, 72, 32, 136,\n 104, 152, 16, 240, 184, 80, 0, 152, 32, 176, 128, 120, 0, 160, 40, 64, 112,\n 40, 80, 48, 144, 96, 168, 0, 152, 72, 184, 136, 88, 152, 184, 48,\n 88, 152, 96, 216, 240, 184, 200, 136, 64, 104, 112, 232, 0, 208, 176, 128,\n 112, 248, 144, 248, 120, 112, 0, 120, 240, 88, 88, 88, 8, 248, 80, 8,\n 64, 216, 240, 56, 56, 144, 112, 208, 144, 72, 16, 160, 136, 216, 176, 112,\n 56, 8, 168, 104, 72, 40, 176, 88, 40, 120, 24, 40, 56, 104, 40, 160,\n 232, 160, 24, 144, 144, 232, 120, 144, 112, 96, 136, 176, 8, 128, 112, 184,\n 96, 120, 64, 112, 0, 184, 80, 72, 184, 80, 144, 72, 120, 200, 168, 32,\n 24, 0, 144, 72, 24, 248, 24, 152, 72, 128, 0, 8, 224, 32, 72, 72, 48, 112,\n 232, 16, 240, 24, 64, 32, 232, 120, 168, 200, 152, 112, 8, 144,\n 0, 120, 112, 0, 112, 144, 72, 160, 24, 216, 112, 128, 224, 152, 104, 136,\n 40, 0, 16, 144, 48, 248, 136, 48, 64, 88, 152, 208, 248, 16, 112, 224,\n 184, 168, 40, 168, 64, 248, 144, 104, 200, 144, 152, 16, 168, 192, 240, 96,\n 72, 136, 216, 136, 0, 32, 192, 112, 240, 160, 248, 184, 16, 48, 232, 88,\n 160, 16, 104, 176, 144, 136, 24, 240, 184, 160, 8, 16, 32, 56, 176, 144,\n 168, 168, 56, 88, 88, 104, 248, 184, 96, 32, 128, 88, 224, 240, 32, 120,\n 216, 136, 8, 72, 80, 104, 120, 152, 32, 96, 232, 80, 232, 24, 80, 200, 208,\n 216, 184, 16, 56, 40, 216, 208, 128, 120, 16, 16, 80, 200, 144, 104,\n 160, 72, 24, 136, 176, 32, 192, 120, 136, 80, 16, 88, 208, 160, 16, 232, 40,\n 24, 144, 208, 32, 16, 88, 192, 48, 176, 152, 24, 160, 32, 80, 24,\n 240, 80, 160, 152, 160, 128, 80, 88, 40, 184, 208, 144, 48, 200, 200, 48,\n 112, 144, 104, 224, 144, 224, 200, 8, 224, 240, 32, 152, 232, 16, 8, 80,\n 184, 40, 184, 248, 64, 8, 232, 16, 88, 88, 8, 120, 128, 48, 240, 88, 64,\n 104, 104, 248, 96, 240, 192, 152, 208, 56, 152, 240, 136, 8, 216, 24,\n 112, 168, 88, 136, 80, 224, 136, 152, 40, 24, 248, 216, 152, 136, 96, 224,\n 64, 80, 56, 56, 72, 8, 24, 64, 144, 24, 208, 216, 128, 120, 96, 168,\n 120, 152, 112, 232, 136, 80, 72, 96, 152, 208, 72, 216, 64, 120, 120, 48,\n 232, 72, 184, 176, 48, 232, 200, 184, 120, 72, 112, 128, 248, 160, 168,\n 216,\n 152, 80, 176, 112, 48, 152, 112, 64, 40, 200, 232, 80, 160, 56, 216, 192,\n 168, 72, 40, 64, 208, 32, 224, 240, 24, 104, 232, 240, 168, 24, 248, 32,\n 80, 152, 144, 160, 112, 120, 96, 240, 64, 160, 248, 248, 152, 48, 112, 88,\n 128, 232, 240, 240, 232, 168, 120, 32, 152, 176, 104, 16, 80, 152, 240,\n 224,\n 128, 16, 48, 32, 216, 8, 104, 248, 184, 208, 216, 120, 80, 208, 128, 56,\n 112, 40, 184, 16, 224, 168, 152, 248, 56, 144, 168, 224, 8, 168, 80, 136,\n 152, 48, 96, 0, 184, 88, 192, 24, 16, 128, 0, 176, 152, 40, 96, 72, 192, 0,\n 32, 128, 24, 240, 48, 248, 176, 120, 16, 168, 224, 72, 8, 200,\n 48, 176, 112, 224, 160, 8, 152, 64, 16, 16, 240, 224, 64, 144, 128, 80, 184,\n 40, 232, 200, 112, 248, 24, 112, 176, 128, 128, 56, 40, 152, 24, 184,\n 120, 104, 72, 64, 200, 48, 224, 0, 56, 232, 32, 240, 184, 104, 104, 32, 192,\n 200, 200, 64, 152, 72, 216, 216, 80, 0, 80, 0, 0, 160, 120, 40,\n 136, 240, 32, 120, 152, 216, 56, 112, 16, 24, 8, 120, 104, 192, 144, 176, 8,\n 16, 96, 104, 168, 80, 192, 232, 112, 112, 56, 88, 176, 240, 32, 176,\n 248, 80, 176, 24, 224, 192, 8, 176, 168, 16, 232, 248, 16, 16, 104, 128,\n 232, 0, 32, 240, 112, 32, 184, 184, 56, 232, 80, 144, 16, 72, 240, 208,\n 64, 176, 240, 16, 136, 16, 80, 192, 24, 72, 216, 56, 80, 216, 32, 144, 72,\n 24, 64, 248, 0, 224, 72, 32, 136, 232, 240, 72, 32, 88, 128, 104,\n 16, 8, 32, 192, 224, 8, 152, 248, 224, 0, 176, 48, 16, 104, 216, 176, 24,\n 240, 200, 80, 248, 208, 128, 200, 72, 8, 152, 128, 80, 120, 80, 152,\n 232, 200, 168, 88, 16, 176, 232, 40, 72, 208, 232, 112, 240, 112, 80, 176,\n 176, 16, 72, 120, 32, 184, 224, 80, 24, 176, 0, 208, 16, 56, 112, 16,\n 120, 160, 24, 216, 128, 136, 192, 152, 248, 120, 160, 56, 192, 224, 0, 136,\n 112, 112, 8, 8, 184, 168, 88, 160, 120, 160, 240, 168, 32, 40, 168, 88,\n 8, 16, 24, 104, 104, 48, 248, 136, 72, 144, 128, 160, 216, 88, 240, 120,\n 232, 72, 192, 200, 248, 192, 48, 240, 104, 208, 40, 104, 16, 128, 80, 224,\n 224, 56, 56, 120, 40, 24, 176, 16, 184, 24, 176, 224, 168, 16, 184, 104,\n 136, 200, 168, 208, 120, 200, 224, 40, 208, 16, 112, 160, 192, 224, 64,\n 40,\n 232, 120, 24, 232, 168, 80, 88, 144, 104, 72, 192, 112, 0, 112, 104, 224,\n 232, 160, 112, 208, 176, 216, 56, 224, 224, 160, 104, 56, 176, 216, 192,\n 24,\n 208, 8, 40, 56, 248, 8, 120, 184, 128, 40, 168, 56, 184, 192, 136, 96, 72,\n 216, 8, 64, 72, 56, 16, 176, 144, 16, 128, 176, 136, 208, 120, 16,\n 184, 224, 160, 216, 144, 88, 208, 200, 144, 96, 152, 200, 224, 208, 240,\n 120, 8, 104, 184, 112, 168, 200, 112, 72, 0, 192, 0, 40, 120, 136, 112,\n 40,\n 152, 56, 144, 32, 224, 240, 32, 192, 56, 200, 16, 136, 104, 192, 192, 0, 0,\n 0, 8, 232, 104, 240, 88, 192, 8, 168, 216, 208, 184, 224, 240, 72,\n 152, 72, 168, 184, 176, 216, 48, 144, 80, 32, 184, 208, 112, 160, 88, 88, 8,\n 144, 144, 120, 152, 48, 200, 168, 112, 8, 160, 216, 240, 128, 104, 128,\n 144, 248, 64, 168, 136, 240, 160, 56, 136, 216, 80, 56, 192, 32, 64, 128,\n 80, 32, 32, 96, 88, 200, 152, 72, 160, 16, 128, 200, 160, 144, 112, 16,\n 112, 152, 56, 136, 56, 216, 8, 24, 192, 144, 176, 200, 48, 72, 40, 72, 240,\n 120, 120, 160, 80, 152, 144, 216, 224, 152, 40, 144, 160, 88, 184, 184,\n 192, 128, 0, 200, 72, 112, 208, 248, 152, 0, 152, 8, 40, 16, 168, 152, 64,\n 176, 88, 24, 232, 136, 32, 152, 232, 208, 192, 240, 136, 0, 232, 200,\n 8, 216, 104, 184, 64, 192, 8, 96, 184, 120, 208, 80, 16, 64, 136, 136, 72,\n 8, 112, 184, 248, 120, 136, 8, 56, 232, 208, 96, 16, 64, 168, 112,\n 48, 32, 184, 224, 72, 88, 128, 184, 72, 168, 224, 216, 160, 232, 64, 168,\n 48, 152, 64, 152, 16, 200, 168, 56, 144, 192, 64, 120, 168, 8, 128, 216,\n 16, 8, 104, 32, 128, 96, 160, 88, 136, 96, 56, 16, 128, 56, 88, 16, 208,\n 200, 24, 96, 240, 32, 232, 192, 104, 168, 40, 0, 192, 40, 200, 96,\n 184, 8, 72, 216, 104, 232, 112, 248, 8, 8, 248, 192, 152, 32, 0, 168, 232,\n 80, 248, 64, 8, 24, 80, 32, 96, 240, 232, 48, 80, 16, 144, 200,\n 16, 48, 88, 40, 112, 232, 88, 168, 56, 160, 232, 16, 128, 248, 48, 80, 200,\n 168, 152, 72, 216, 224, 72, 208, 152, 192, 0, 224, 48, 136, 168, 96,\n 16, 152, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 227, 227, 227,\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0\n};\nconst int inPMV[2][2][2] = { {{45, 207}, {70, 41}}, {{4, 180}, {120, 216}} };\nconst int inmvfs[2][2] = { {232, 200}, {32, 240} };\nconst int outPMV[2][2][2] =\n { {{1566, 206}, {70, 41}}, {{1566, 206}, {120, 216}} };\nconst int outmvfs[2][2] = { {0, 200}, {0, 240} };\n\nint evalue;\n#include \"config.h\"\n#include \"global.h\"\n#include \"getbits.c\"\n#include \"getvlc.h\"\n#include \"getvlc.c\"\n#include \"motion.c\"\n\nvoid\nInitialize_Buffer ()\n{\n ld_Incnt = 0;\n ld_Rdptr = ld_Rdbfr + 2048;\n ld_Rdmax = ld_Rdptr;\n ld_Bfr = 68157440;\n Flush_Buffer (0);\t\t/* fills valid data into bfr */\n}\n\nint\nmain ()\n{\n int i, j, k;\n int main_result;\n int PMV[2][2][2];\n int dmvector[2];\n int motion_vertical_field_select[2][2];\n int s, motion_vector_count, mv_format, h_r_size, v_r_size, dmv, mvscale;\n\n main_result = 0;\n evalue = 0;\n System_Stream_Flag = 0;\n s = 0;\n motion_vector_count = 1;\n mv_format = 0;\n h_r_size = 200;\n v_r_size = 200;\n dmv = 0;\n mvscale = 1;\n for (i = 0; i < 2; i++)\n\t{\n\t dmvector[i] = 0;\n\t for (j = 0; j < 2; j++)\n\t {\n\t motion_vertical_field_select[i][j] = inmvfs[i][j];\n\t for (k = 0; k < 2; k++)\n\t\tPMV[i][j][k] = inPMV[i][j][k];\n\t }\n\t}\n\n Initialize_Buffer ();\n motion_vectors (PMV, dmvector, motion_vertical_field_select, s,\n\t\t motion_vector_count, mv_format, h_r_size, v_r_size, dmv,\n\t\t mvscale);\n\n for (i = 0; i < 2; i++)\n\tfor (j = 0; j < 2; j++)\n\t {\n\t main_result +=\n\t (motion_vertical_field_select[i][j] != outmvfs[i][j]);\n\t for (k = 0; k < 2; k++)\n\t main_result += (PMV[i][j][k] != outPMV[i][j][k]);\n\t }\n\n \n printf (\"%d\\n\", main_result);\n return main_result;\n\n}\n", "groundtruth": " 56, 240, 0, 232, 184, 24, 16, 208, 200, 240, 200, 200, 104, 112, 24, 208,\n 128, 168, 248, 64, 152, 120, 64, 224, 128, 208, 120, 216, 16, 152, 48,\n 144,\n 240, 80, 144, 224, 48, 160, 192, 248, 0, 128, 120, 128, 160, 232, 168, 208,\n", "crossfile_context": ""} {"task_id": "catapult", "path": "catapult/source/Boolean/E1_SVM/hls_stream.h", "left_context": "// (c) Copyright 2011-2022 Xilinx, Inc.\n// All Rights Reserved.\n//\n// Licensed to the Apache Software Foundation (ASF) under one\n// or more contributor license agreements. See the NOTICE file\n// distributed with this work for additional information\n// regarding copyright ownership. The ASF licenses this file\n// to you under the Apache License, Version 2.0 (the\n// \"License\"); you may not use this file except in compliance\n// with the License. You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing,\n// software distributed under the License is distributed on an\n// \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n// KIND, either express or implied. See the License for the\n// specific language governing permissions and limitations\n// under the License.\n\n#ifndef X_HLS_STREAM_SIM_H\n#define X_HLS_STREAM_SIM_H\n\n/*\n * This file contains a C++ model of hls::stream.\n * It defines C simulation model.\n */\n#ifndef __cplusplus\n\n#error C++ is required to include this header file\n\n#else\n\n//////////////////////////////////////////////\n// C level simulation models for hls::stream\n//////////////////////////////////////////////\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\n#include \n#include \n#include \n\n#ifndef _MSC_VER\n#include \n#include \n#endif\n\nnamespace hls {\n#if !defined(__HLS_COSIM__) && defined(__VITIS_HLS__)\n// We are in bcsim mode, where reads must be non-blocking\n#define ALLOW_EMPTY_HLS_STREAM_READS\n#ifdef X_HLS_TASK_H\n#error \"bcsim is not supported with hls::tasks\"\n#endif\n#endif\n\ntemplate\nclass stream_delegate {\npublic:\n virtual bool read(void *elem) = 0;\n virtual void write(const void *elem) = 0;\n virtual bool read_nb(void *elem) = 0;\n virtual size_t size() = 0;\n};\n\nclass stream_globals {\npublic:\n static void print_max_size() {\n std::cout << \"INFO [HLS SIM]: The maximum depth reached by any hls::stream() instance in the design is \" << get_max_size() << std::endl;\n }\n\n static void incr_blocked_counter() {\n get_blocked_counter()++;\n }\n\n static void decr_blocked_counter() {\n get_blocked_counter()--;\n }\n\n static void incr_task_counter() {\n get_task_counter()++;\n }\n\n static void decr_task_counter() {\n get_task_counter()--;\n }\n\n static void start_threads() {\n // These initializations must be in ONE static function that is called elsewhere\n#if defined(__HLS_COSIM__) \n static std::thread t(deadlock_thread);\n#endif\n static std::atomic_flag init_done = ATOMIC_FLAG_INIT;\n if (!init_done.test_and_set()) {\n // Perform global initialization actions once\n // Register function executed at exit\n std::atexit(print_max_size);\n\n#if defined(__HLS_COSIM__) \n // Detach the thread to avoid error at end with unwaited thread\n t.detach();\n#endif\n }\n }\n\n static std::atomic &get_max_size() {\n static std::atomic max_size(0);\n\n return max_size;\n }\n\nprivate:\n static bool check_deadlock() {\n // Check that it is larger than, because the testbench main thread is not counted.\n return get_blocked_counter() > get_task_counter();\n }\n\n#ifdef HLS_STREAM_THREAD_SAFE\n static std::mutex &get_mutex() {\n static std::mutex mutex;\n\n return mutex;\n }\n#endif\n\n static void deadlock_thread() {\n while (1) {\n sleep(1);\n if (stream_globals::check_deadlock()) {\n if (get_task_counter()) {\n std::cout << \"ERROR [HLS SIM]: deadlock detected when simulating hls::tasks.\" \n << std::endl;\n std::cout << \"Execute C simulation in debug mode in the GUI and examine the\"\n << \" source code location of all the blocked hls::stream::read()\"\n << \" calls to debug.\" << std::endl;\n } else {\n std::cout << \"ERROR [HLS SIM]: an hls::stream is read while empty,\"\n << \" which may result in RTL simulation hanging.\" << std::endl;\n std::cout << \"If this is not expected, execute C simulation in debug mode in\"\n << \" the GUI and examine the source code location of the blocked\"\n << \" hls::stream::read() call to debug.\" << std::endl;\n std::cout << \"If this is expected, add -DALLOW_EMPTY_HLS_STREAM_READS\"\n << \" to -cflags to turn this error into a warning and allow empty\"\n << \" hls::stream reads to return the default value for the data type.\"\n << std::endl;\n }\n abort();\n }\n }\n }\n\n static std::atomic &get_task_counter() {\n static std::atomic task_counter(0);\n\n return task_counter;\n }\n\n static std::atomic &get_blocked_counter() {\n static std::atomic blocked_counter(0);\n\n return blocked_counter;\n }\n};\n\ntemplate\nclass stream_entity {\npublic:\n#ifdef HLS_STREAM_THREAD_SAFE\n stream_entity() : d(0), invalid(false) {}\n ~stream_entity() {\n std::unique_lock ul(mutex);\n invalid = true;\n condition_var.notify_all();\n }\n#else\n stream_entity() : d(0) {}\n#endif\n\n bool read(void *elem) {\n if (d)\n return d->read(elem);\n\n#ifdef HLS_STREAM_THREAD_SAFE\n std::unique_lock ul(mutex);\n#endif\n // needed to start the deadlock detector and size reporter\n stream_globals::start_threads();\n\n if (data.empty()) { \n#ifdef ALLOW_EMPTY_HLS_STREAM_READS\n std::cout << \"WARNING [HLS SIM]: hls::stream '\"\n << name\n << \"' is read while empty,\"\n << \" which may result in RTL simulation hanging.\"\n << std::endl;\n return false;\n#else\n stream_globals::incr_blocked_counter();\n while (data.empty()) {\n#ifdef HLS_STREAM_THREAD_SAFE\n while (invalid) { sleep(1); }\n condition_var.wait(ul);\n#endif\n }\n stream_globals::decr_blocked_counter();\n#endif\n }\n std::array &elem_data = data.front();\n memcpy(elem, elem_data.data(), SIZE);\n data.pop_front();\n return true;\n }\n\n void write(const void *elem) {\n if (d) {\n d->write(elem);\n return;\n }\n\n std::array elem_data;\n memcpy(elem_data.data(), elem, SIZE);\n\n#ifdef HLS_STREAM_THREAD_SAFE\n std::unique_lock ul(mutex);\n#endif\n data.push_back(elem_data);\n \n // needed to start the deadlock detector and size reporter\n stream_globals::start_threads();\n \n if (stream_globals::get_max_size() < data.size()) \n stream_globals::get_max_size() = data.size();\n#ifdef HLS_STREAM_THREAD_SAFE\n condition_var.notify_one();\n#endif\n }\n\n /// Nonblocking read\n bool read_nb(void *elem) {\n if (d)\n return d->read_nb(elem);\n\n#ifdef HLS_STREAM_THREAD_SAFE\n std::lock_guard lg(mutex);\n#endif\n bool is_empty = data.empty();\n if (!is_empty) {\n std::array &elem_data = data.front();\n memcpy(elem, elem_data.data(), SIZE);\n data.pop_front();\n }\n return !is_empty; \n }\n\n /// Fifo size\n size_t size() {\n if (d)\n return d->size();\n\n#ifdef HLS_STREAM_THREAD_SAFE\n std::lock_guard lg(mutex);\n#endif\n return data.size();\n }\n\n /// Set name for c-sim debugging.\n void set_name(const char *n) {\n#ifdef HLS_STREAM_THREAD_SAFE\n std::lock_guard lg(mutex);\n#endif\n name = n;\n }\n\n stream_delegate *d;\n std::string name;\n std::deque > data;\n#ifdef HLS_STREAM_THREAD_SAFE \n", "right_context": " std::condition_variable condition_var;\n bool invalid;\n#endif\n};\n\ntemplate\nclass stream_map {\npublic:\n static size_t count(void *p) {\n#ifdef HLS_STREAM_THREAD_SAFE\n std::lock_guard lg(get_mutex());\n#endif\n return get_map().count(p);\n }\n\n static void insert(void *p) {\n#ifdef HLS_STREAM_THREAD_SAFE\n std::lock_guard lg(get_mutex());\n#endif\n auto &map = get_map();\n map.erase(p);\n map[p];\n }\n\n static stream_entity &get_entity(void *p) {\n#ifdef HLS_STREAM_THREAD_SAFE\n std::lock_guard lg(get_mutex());\n#endif\n return get_map()[p];\n }\n\nprivate:\n#ifdef HLS_STREAM_THREAD_SAFE\n static std::mutex &get_mutex() {\n static std::mutex *mutex = new std::mutex();\n return *mutex;\n }\n#endif\n static std::unordered_map > &get_map() {\n static std::unordered_map > *map = \n new std::unordered_map >();\n return *map;\n }\n};\n\ntemplate\nclass stream;\ntemplate\nclass stream<__STREAM_T__, 0> \n{\n public:\n using value_type = __STREAM_T__;\n\n private:\n typedef stream_map map_t;\n\n protected:\n#if defined(__VITIS_HLS__)\n __STREAM_T__ _data;\n#else\n stream_entity _data;\n#endif\n\n protected:\n public:\n /// Constructors\n // Keep consistent with the synthesis model's constructors\n stream() {\n std::stringstream ss;\n#ifndef _MSC_VER\n char* _demangle_name = abi::__cxa_demangle(typeid(*this).name(), 0, 0, 0);\n if (_demangle_name) {\n ss << _demangle_name;\n free(_demangle_name);\n }\n else {\n ss << \"hls_stream\";\n }\n#else\n ss << typeid(*this).name();\n#endif\n\n#ifdef HLS_STREAM_THREAD_SAFE\n static std::atomic counter(0);\n#else\n static unsigned counter = 0;\n#endif\n\n#if defined(__VITIS_HLS__)\n map_t::insert(&_data);\n#endif\n ss << counter++;\n get_entity().set_name(ss.str().c_str());\n }\n\n stream(const char *name) {\n // default constructor,\n // capacity set to predefined maximum\n#if defined(__VITIS_HLS__)\n map_t::insert(&_data);\n#endif\n get_entity().set_name(name);\n }\n\n /// Make copy constructor and assignment operator private\n /// They should not be called.\n private:\n stream(const stream< __STREAM_T__ >& chn):\n _data(chn._data) {\n }\n\n stream& operator = (const stream< __STREAM_T__ >& chn) {\n return *this;\n }\n\n stream_entity &get_entity() {\n#if defined(__VITIS_HLS__)\n return map_t::get_entity(&_data);\n#else\n return _data;\n#endif\n }\n \n public:\n /// Overload >> and << operators to implement read() and write()\n void operator >> (__STREAM_T__& rdata) {\n read(rdata);\n }\n\n void operator << (const __STREAM_T__& wdata) {\n write(wdata);\n }\n\n\n public:\n /// Destructor\n /// Check status of the queue\n ~stream() {\n if (!empty())\n {\n std::cout << \"WARNING [HLS SIM]: hls::stream '\" \n << get_entity().name\n << \"' contains leftover data,\"\n << \" which may result in RTL simulation hanging.\"\n << std::endl;\n }\n }\n\n#if defined(__VITIS_HLS__)\n bool exist() {\n return map_t::count(&_data);\n }\n#endif\n\n /// Status of the queue\n bool empty() {\n return size() == 0;\n } \n\n bool full() const { return false; }\n\n /// Blocking read\n void read(__STREAM_T__& head) {\n head = read();\n }\n\n /// Blocking read\n bool read_dep(__STREAM_T__& head, volatile bool flag) {\n head = read();\n return flag;\n }\n\n __STREAM_T__ read() {\n __STREAM_T__ elem;\n auto &entity = get_entity();\n if (!entity.read(&elem)) \n elem = __STREAM_T__();\n return elem;\n }\n\n /// Blocking write\n void write(const __STREAM_T__& tail) { \n get_entity().write(&tail);\n }\n\n /// Blocking write\n bool write_dep(const __STREAM_T__& tail, volatile bool flag) { \n write(tail);\n return flag;\n }\n\n /// Nonblocking read\n bool read_nb(__STREAM_T__& head) {\n __STREAM_T__ elem;\n auto &entity = get_entity();\n bool not_empty = entity.read_nb(&elem);\n if (not_empty)\n head = elem;\n return not_empty;\n }\n\n /// Nonblocking write\n bool write_nb(const __STREAM_T__& tail) {\n bool is_full = full();\n write(tail);\n return !is_full;\n }\n\n /// Fifo size\n size_t size() {\n return get_entity().size();\n }\n\n /// Fifo capacity\n size_t capacity() {\n // actually no limit on simulation model\n return std::numeric_limits::max();\n }\n\n /// Set name for c-sim debugging.\n void set_name(const char *name) { \n get_entity().set_name(name);\n }\n\n void set_delegate(stream_delegate *d) {\n get_entity().d = d;\n }\n};\n\ntemplate\nclass stream : public stream<__STREAM_T__, 0> {\npublic:\n stream() {}\n stream(const char* name) : stream<__STREAM_T__, 0>(name) {}\n};\n\n} // namespace hls\n\n#endif // __cplusplus\n#endif // X_HLS_STREAM_H\n\n\n", "groundtruth": " std::mutex mutex;\n", "crossfile_context": ""} {"task_id": "catapult", "path": "catapult/source/DA/E3_KNN/ac_int.h", "left_context": "/**************************************************************************\n * *\n * Algorithmic C (tm) Datatypes *\n * *\n * Software Version: 4.8 *\n * *\n * Release Date : Sun Jan 28 19:38:23 PST 2024 *\n * Release Type : Production Release *\n * Release Build : 4.8.0 *\n * *\n * Copyright 2004-2022, Mentor Graphics Corporation, *\n * *\n * All Rights Reserved. *\n * *\n **************************************************************************\n * Licensed under the Apache License, Version 2.0 (the \"License\"); *\n * you may not use this file except in compliance with the License. *\n * You may obtain a copy of the License at *\n * *\n * http://www.apache.org/licenses/LICENSE-2.0 *\n * *\n * Unless required by applicable law or agreed to in writing, software *\n * distributed under the License is distributed on an \"AS IS\" BASIS, *\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or *\n * implied. *\n * See the License for the specific language governing permissions and *\n * limitations under the License. *\n **************************************************************************\n * *\n * The most recent version of this package is available at github. *\n * *\n *************************************************************************/\n\n/*\n// Source: ac_int.h\n// Description: fast arbitrary-length bit-accurate integer types:\n// - unsigned integer of length W: ac_int\n// - signed integer of length W: ac_int\n// Author: Andres Takach, Ph.D.\n// Notes:\n// - C++ Runtime: important to use optimization flag (for example -O3)\n//\n// - Compiler support: recent GNU compilers are required for correct\n// template compilation\n//\n// - Most frequent migration issues:\n// - need to cast to common type when using question mark operator:\n// (a < 0) ? -a : a; // a is ac_int\n// change :\n// (a < 0) ? -a : (ac_int) a;\n// or\n// (a < 0) ? (ac_int) -a : (ac_int) a;\n//\n// - left shift is not arithmetic (\"a< b = a << 1; // a is ac_int\n// is not equivalent to b=2*a. In order to get 2*a behavior change to:\n// ac_int b = (ac_int)a << 1;\n//\n// - only static length read/write slices are supported:\n// - read: x.slc<4>(k) => returns ac_int for 4-bit slice x(4+k-1 DOWNTO k)\n// - write: x.set_slc(k,y) = writes bits of y to x starting at index k\n*/\n\n#ifndef __AC_INT_H\n#define __AC_INT_H\n\n#define AC_VERSION 4\n#define AC_VERSION_MINOR 8\n\n#ifndef __cplusplus\n#error C++ is required to include this header file\n#endif\n\n#if (defined(__GNUC__) && __GNUC__ < 3 && !defined(__EDG__))\n#error GCC version 3 or greater is required to include this header file\n#endif\n\n#if (defined(_MSC_VER) && _MSC_VER < 1400 && !defined(__EDG__))\n#error Microsoft Visual Studio 8 or newer is required to include this header file\n#endif\n\n#if (defined(_MSC_VER) && !defined(__EDG__))\n#pragma warning( push )\n#pragma warning( disable: 4127 4100 4244 4307 4310 4365 4514 4554 4706 4800 )\n#endif\n\n// for safety\n#if (defined(N) || defined(N2) || defined(D) || defined(Q) || defined(R))\n#error One or more of the following is defined: N, N2, D, Q, R. Definition conflicts with their usage as template parameters.\n#error DO NOT use defines before including third party header files.\n#endif\n\n// for safety\n#if (defined(W) || defined(I) || defined(S) || defined(W2) || defined(I2) || defined(S2))\n#error One or more of the following is defined: W, I, S, W2, I2, S2. Definition conflicts with their usage as template parameters.\n#error DO NOT use defines before including third party header files.\n#endif\n\n#if defined(true)\n#warning The C++ keyword true is defined which may result in subtle compilation problems. Undefining it.\n#undef true\n#endif\n#if defined(false)\n#warning The C++ keyword false is defined which may result in subtle compilation problems. Undefining it.\n#undef false\n#endif\n\n#ifndef __ASSERT_H__\n#define __ASSERT_H__\n#include \n#endif\n#include \n#ifndef AC_USER_DEFINED_ASSERT\n#include \n#else\n#include \n#endif\n#include \n#include \n\n#ifndef __SYNTHESIS__\n#ifndef __AC_INT_UTILITY_BASE\n#define __AC_INT_UTILITY_BASE\n#endif\n\n#endif\n\n#ifdef __AC_NAMESPACE\nnamespace __AC_NAMESPACE {\n#endif\n\n#define AC_MAX(a,b) ((a) > (b) ? (a) : (b))\n#define AC_MIN(a,b) ((a) < (b) ? (a) : (b))\n#define AC_ABS(a) ((a) < 0 ? -(a) : (a))\n\n#if defined(_MSC_VER)\ntypedef unsigned __int64 Ulong;\ntypedef signed __int64 Slong;\n#else\ntypedef unsigned long long Ulong;\ntypedef signed long long Slong;\n#endif\n\nenum ac_base_mode { AC_BIN=2, AC_OCT=8, AC_DEC=10, AC_HEX=16 };\nenum ac_special_val {AC_VAL_DC, AC_VAL_0, AC_VAL_MIN, AC_VAL_MAX, AC_VAL_QUANTUM};\n\ntemplate class ac_int;\n\nnamespace ac_private {\n#if defined(__SYNTHESIS__) && !defined(AC_IGNORE_BUILTINS)\n#pragma builtin\n#endif\n\n enum {long_w = std::numeric_limits::digits};\n const unsigned int all_ones = (unsigned) ~0;\n const Ulong all_ones64 = (Ulong) ~(Ulong)0;\n\n // PRIVATE FUNCTIONS in namespace: for implementing ac_int/ac_fixed\n\n inline double mgc_floor(double d) { return floor(d); }\n\n #define AC_ASSERT(cond, msg) ac_private::ac_assert(cond, __FILE__, __LINE__, msg)\n inline void ac_assert(bool condition, const char *file=0, int line=0, const char *msg=0) {\n #ifndef __SYNTHESIS__\n #ifndef AC_USER_DEFINED_ASSERT\n if(!condition) {\n std::cerr << \"Assert\";\n if(file)\n std::cerr << \" in file \" << file << \":\" << line;\n if(msg)\n std::cerr << \" \" << msg;\n std::cerr << std::endl;\n assert(0);\n }\n #else\n AC_USER_DEFINED_ASSERT(condition, file, line, msg);\n #endif\n #endif\n }\n\n // helper structs for statically computing log2 like functions (nbits, log2_floor, log2_ceil)\n // using recursive templates\n template\n struct s_N {\n template\n struct s_X {\n enum {\n X2 = X >> N,\n N_div_2 = N >> 1,\n nbits = X ? (X2 ? N + (int) s_N::template s_X::nbits : (int) s_N::template s_X::nbits) : 0\n };\n };\n };\n template<> struct s_N<0> {\n template\n struct s_X {\n enum {nbits = !!X };\n };\n };\n\n template\n inline double ldexpr32(double d) {\n double d2 = d;\n if(N < 0)\n for(int i=0; i < -N; i++)\n d2 /= (Ulong) 1 << 32;\n else\n for(int i=0; i < N; i++)\n d2 *= (Ulong) 1 << 32;\n return d2;\n }\n template<> inline double ldexpr32<0>(double d) { return d; }\n template<> inline double ldexpr32<1>(double d) { return d * ((Ulong) 1 << 32); }\n template<> inline double ldexpr32<-1>(double d) { return d / ((Ulong) 1 << 32); }\n template<> inline double ldexpr32<2>(double d) { return (d * ((Ulong) 1 << 32)) * ((Ulong) 1 << 32); }\n template<> inline double ldexpr32<-2>(double d) { return (d / ((Ulong) 1 << 32)) / ((Ulong) 1 << 32); }\n\n template\n inline double ldexpr(double d) {\n return ldexpr32( N < 0 ? d/( (unsigned) 1 << (-N & 31)) : d * ( (unsigned) 1 << (N & 31)));\n }\n\n template\n inline void iv_copy(const int *op, int *r) {\n for(int i=0; i < N; i++)\n r[i] = op[i];\n }\n template<> inline void iv_copy<1>(const int *op, int *r) {\n r[0] = op[0];\n }\n template<> inline void iv_copy<2>(const int *op, int *r) {\n r[0] = op[0];\n r[1] = op[1];\n }\n\n template\n inline bool iv_equal_zero(const int *op){\n for(int i=0; i < N; i++)\n if(op[i])\n return false;\n return true;\n }\n template<> inline bool iv_equal_zero<0>(const int * /*op*/) { return true; }\n template<> inline bool iv_equal_zero<1>(const int *op) {\n return !op[0];\n }\n template<> inline bool iv_equal_zero<2>(const int *op) {\n return !(op[0] || op[1]);\n }\n\n template\n inline bool iv_equal_ones(const int *op){\n for(int i=0; i < N; i++)\n if(~op[i])\n return false;\n return true;\n }\n template<> inline bool iv_equal_ones<0>(const int * /*op*/) { return true; }\n template<> inline bool iv_equal_ones<1>(const int *op) {\n return !~op[0];\n }\n template<> inline bool iv_equal_ones<2>(const int *op) {\n return !(~op[0] || ~op[1]);\n }\n\n template\n inline bool iv_equal(const int *op1, const int *op2){\n const int M1 = AC_MAX(N1,N2);\n const int M2 = AC_MIN(N1,N2);\n const int *OP1 = N1 >= N2 ? op1 : op2;\n const int *OP2 = N1 >= N2 ? op2 : op1;\n for(int i=0; i < M2; i++)\n if(OP1[i] != OP2[i])\n return false;\n int ext = OP2[M2-1] < 0 ? ~0 : 0;\n for(int i=M2; i < M1; i++)\n if(OP1[i] != ext)\n return false;\n return true;\n }\n template<> inline bool iv_equal<1,1>(const int *op1, const int *op2) {\n return op1[0] == op2[0];\n }\n\n template\n inline bool iv_equal_ones_from(const int *op){\n if((B >= 32*N && op[N-1] >= 0) || (B&31 && ~(op[B/32] >> (B&31))))\n return false;\n return iv_equal_ones(&op[(B+31)/32]);\n }\n template<> inline bool iv_equal_ones_from<0,1>(const int *op){\n return iv_equal_ones<1>(op);\n }\n template<> inline bool iv_equal_ones_from<0,2>(const int *op){\n return iv_equal_ones<2>(op);\n }\n\n template\n inline bool iv_equal_zeros_from(const int *op){\n if((B >= 32*N && op[N-1] < 0) || (B&31 && (op[B/32] >> (B&31))))\n return false;\n return iv_equal_zero(&op[(B+31)/32]);\n }\n template<> inline bool iv_equal_zeros_from<0,1>(const int *op){\n return iv_equal_zero<1>(op);\n }\n template<> inline bool iv_equal_zeros_from<0,2>(const int *op){\n return iv_equal_zero<2>(op);\n }\n\n template\n inline bool iv_equal_ones_to(const int *op){\n if((B >= 32*N && op[N-1] >= 0) || (B&31 && ~(op[B/32] | (all_ones << (B&31)))))\n return false;\n return iv_equal_ones(op);\n }\n template<> inline bool iv_equal_ones_to<0,1>(const int *op){\n return iv_equal_ones<1>(op);\n }\n template<> inline bool iv_equal_ones_to<0,2>(const int *op){\n return iv_equal_ones<2>(op);\n }\n\n template\n inline bool iv_equal_zeros_to(const int *op){\n if((B >= 32*N && op[N-1] < 0) || (B&31 && (op[B/32] & ~(all_ones << (B&31)))))\n return false;\n return iv_equal_zero(op);\n }\n template<> inline bool iv_equal_zeros_to<0,1>(const int *op){\n return iv_equal_zero<1>(op);\n }\n template<> inline bool iv_equal_zeros_to<0,2>(const int *op){\n return iv_equal_zero<2>(op);\n }\n\n template\n inline bool iv_compare(const int *op1, const int *op2){\n const int M1 = AC_MAX(N1,N2);\n const int M2 = AC_MIN(N1,N2);\n const int *OP1 = N1 >= N2 ? op1 : op2;\n const int *OP2 = N1 >= N2 ? op2 : op1;\n const bool b = (N1 >= N2) == greater;\n int ext = OP2[M2-1] < 0 ? ~0 : 0;\n int i2 = M1 > M2 ? ext : OP2[M1-1];\n if(OP1[M1-1] != i2)\n return b ^ (OP1[M1-1] < i2);\n for(int i=M1-2; i >= M2; i--) {\n if((unsigned) OP1[i] != (unsigned) ext)\n return b ^ ((unsigned) OP1[i] < (unsigned) ext);\n }\n for(int i=M2-1; i >= 0; i--) {\n if((unsigned) OP1[i] != (unsigned) OP2[i])\n return b ^ ((unsigned) OP1[i] < (unsigned) OP2[i]);\n }\n return false;\n }\n template<> inline bool iv_compare<1,1,true>(const int *op1, const int *op2) {\n return op1[0] > op2[0];\n }\n template<> inline bool iv_compare<1,1,false>(const int *op1, const int *op2) {\n return op1[0] < op2[0];\n }\n\n template\n inline void iv_extend(int *r, int ext) {\n for(int i=0; i < N; i++)\n r[i] = ext;\n }\n template<> inline void iv_extend<-2>(int * /*r*/, int /*ext*/) { }\n template<> inline void iv_extend<-1>(int * /*r*/, int /*ext*/) { }\n template<> inline void iv_extend<0>(int * /*r*/, int /*ext*/) { }\n template<> inline void iv_extend<1>(int *r, int ext) {\n r[0] = ext;\n }\n template<> inline void iv_extend<2>(int *r, int ext) {\n r[0] = ext;\n r[1] = ext;\n }\n\n template\n inline void iv_assign_int64(int *r, Slong l) {\n r[0] = (int) l;\n if(Nr > 1) {\n r[1] = (int) (l >> 32);\n iv_extend(r+2, (r[1] < 0) ? ~0 : 0);\n }\n }\n template<> inline void iv_assign_int64<1>(int *r, Slong l) {\n r[0] = (int) l;\n }\n template<> inline void iv_assign_int64<2>(int *r, Slong l) {\n r[0] = (int) l;\n r[1] = (int) (l >> 32);\n }\n\n template\n inline void iv_assign_uint64(int *r, Ulong l) {\n r[0] = (int) l;\n if(Nr > 1) {\n r[1] = (int) (l >> 32);\n iv_extend(r+2, 0);\n }\n }\n template<> inline void iv_assign_uint64<1>(int *r, Ulong l) {\n r[0] = (int) l;\n }\n template<> inline void iv_assign_uint64<2>(int *r, Ulong l) {\n r[0] = (int) l;\n r[1] = (int) (l >> 32);\n }\n\n inline Ulong mult_u_u(int a, int b) {\n return (Ulong) (unsigned) a * (Ulong) (unsigned) b;\n }\n inline Slong mult_u_s(int a, int b) {\n return (Ulong) (unsigned) a * (Slong) (signed) b;\n }\n inline Slong mult_s_u(int a, int b) {\n return (Slong) (signed) a * (Ulong) (unsigned) b;\n }\n inline Slong mult_s_s(int a, int b) {\n return (Slong) (signed) a * (Slong) (signed) b;\n }\n inline void accumulate(Ulong a, Ulong &l1, Slong &l2) {\n l1 += (Ulong) (unsigned) a;\n l2 += a >> 32;\n }\n inline void accumulate(Slong a, Ulong &l1, Slong &l2) {\n l1 += (Ulong) (unsigned) a;\n l2 += a >> 32;\n }\n\n template\n inline void iv_mult(const int *op1, const int *op2, int *r) {\n if(Nr==1)\n r[0] = op1[0] * op2[0];\n else if(N1==1 && N2==1)\n iv_assign_int64(r, ((Slong) op1[0]) * ((Slong) op2[0]));\n else {\n const int M1 = AC_MAX(N1,N2);\n const int M2 = AC_MIN(N1,N2);\n const int *OP1 = N1 >= N2 ? op1 : op2;\n const int *OP2 = N1 >= N2 ? op2 : op1;\n const int T1 = AC_MIN(M2-1,Nr);\n const int T2 = AC_MIN(M1-1,Nr);\n const int T3 = AC_MIN(M1+M2-2,Nr);\n\n Ulong l1 = 0;\n Slong l2 = 0;\n for(int k=0; k < T1; k++) {\n for(int i=0; i < k+1; i++)\n accumulate(mult_u_u(OP1[k-i], OP2[i]), l1, l2);\n l2 += (Ulong) (unsigned) (l1 >> 32);\n r[k] = (int) l1;\n l1 = (unsigned) l2;\n l2 >>= 32;\n }\n for(int k=T1; k < T2; k++) {\n accumulate(mult_u_s(OP1[k-M2+1], OP2[M2-1]), l1, l2);\n for(int i=0; i < M2-1; i++)\n accumulate(mult_u_u(OP1[k-i], OP2[i]), l1, l2);\n l2 += (Ulong) (unsigned) (l1 >> 32);\n r[k] = (int) l1;\n l1 = (unsigned) l2;\n l2 >>= 32;\n }\n for(int k=T2; k < T3; k++) {\n accumulate(mult_u_s(OP1[k-M2+1], OP2[M2-1]), l1, l2);\n for(int i=k-T2+1; i < M2-1; i++)\n accumulate(mult_u_u(OP1[k-i], OP2[i]), l1, l2);\n accumulate(mult_s_u(OP1[M1-1], OP2[k-M1+1]), l1, l2);\n l2 += (Ulong) (unsigned) (l1 >> 32);\n r[k] = (int) l1;\n l1 = (unsigned) l2;\n l2 >>= 32;\n }\n if(Nr >= M1+M2-1) {\n accumulate(mult_s_s(OP1[M1-1], OP2[M2-1]), l1, l2);\n r[M1+M2-2] = (int) l1;\n if(Nr >= M1+M2) {\n l2 += (Ulong) (unsigned) (l1 >> 32);\n r[M1+M2-1] = (int) l2;\n iv_extend(r+M1+M2, (r[M1+M2-1] < 0) ? ~0 : 0);\n }\n }\n }\n }\n template<> inline void iv_mult<1,1,1>(const int *op1, const int *op2, int *r) {\n r[0] = op1[0] * op2[0];\n }\n template<> inline void iv_mult<1,1,2>(const int *op1, const int *op2, int *r) {\n iv_assign_int64<2>(r, ((Slong) op1[0]) * ((Slong) op2[0]));\n }\n\n template\n inline bool iv_uadd_carry(const int *op1, bool carry, int *r) {\n Slong l = carry;\n for(int i=0; i < N; i++) {\n l += (Ulong) (unsigned) op1[i];\n r[i] = (int) l;\n l >>= 32;\n }\n return l != 0;\n }\n template<> inline bool iv_uadd_carry<0>(const int * /*op1*/, bool carry, int * /*r*/) { return carry; }\n template<> inline bool iv_uadd_carry<1>(const int *op1, bool carry, int *r) {\n Ulong l = carry + (Ulong) (unsigned) op1[0];\n r[0] = (int) l;\n return (l >> 32) & 1;\n }\n\n template\n inline bool iv_add_int_carry(const int *op1, int op2, bool carry, int *r) {\n if(N==0)\n return carry;\n if(N==1) {\n Ulong l = carry + (Slong) op1[0] + (Slong) op2;\n r[0] = (int) l;\n return (l >> 32) & 1;\n }\n Slong l = carry + (Ulong) (unsigned) op1[0] + (Slong) op2;\n r[0] = (int) l;\n l >>= 32;\n for(int i=1; i < N-1; i++) {\n l += (Ulong) (unsigned) op1[i];\n r[i] = (int) l;\n l >>= 32;\n }\n l += (Slong) op1[N-1];\n r[N-1] = (int) l;\n return (l >> 32) & 1;\n }\n template<> inline bool iv_add_int_carry<0>(const int * /*op1*/, int /*op2*/, bool carry, int * /*r*/) { return carry; }\n template<> inline bool iv_add_int_carry<1>(const int *op1, int op2, bool carry, int *r) {\n Ulong l = carry + (Slong) op1[0] + (Slong) op2;\n r[0] = (int) l;\n return (l >> 32) & 1;\n }\n\n template\n inline bool iv_uadd_n(const int *op1, const int *op2, int *r) {\n Ulong l = 0;\n for(int i=0; i < N; i++) {\n l += (Ulong)(unsigned) op1[i] + (Ulong)(unsigned) op2[i];\n r[i] = (int) l;\n l >>= 32;\n }\n return l & 1;\n }\n template<> inline bool iv_uadd_n<0>(const int * /*op1*/, const int * /*op2*/, int * /*r*/) { return false; }\n template<> inline bool iv_uadd_n<1>(const int *op1, const int *op2, int *r) {\n Ulong l = (Ulong) (unsigned) op1[0] + (Ulong) (unsigned) op2[0];\n r[0] = (int) l;\n return (l >> 32) & 1;\n }\n template<> inline bool iv_uadd_n<2>(const int *op1, const int *op2, int *r) {\n Ulong l = (Ulong) (unsigned) op1[0] + (Ulong) (unsigned) op2[0];\n r[0] = (int) l;\n l >>= 32;\n l += (Ulong) (unsigned) op1[1] + (Ulong) (unsigned) op2[1];\n r[1] = (int) l;\n return (l >> 32) & 1;\n }\n\n template\n inline void iv_add(const int *op1, const int *op2, int *r) {\n if(Nr==1)\n r[0] = (unsigned) op1[0] + (unsigned) op2[0];\n else {\n const int M1 = AC_MAX(N1,N2);\n const int M2 = AC_MIN(N1,N2);\n const int *OP1 = N1 >= N2 ? op1 : op2;\n const int *OP2 = N1 >= N2 ? op2 : op1;\n const int T1 = AC_MIN(M2-1,Nr);\n const int T2 = AC_MIN(M1,Nr);\n\n bool carry = iv_uadd_n(OP1, OP2, r);\n carry = iv_add_int_carry(OP1+T1, OP2[T1], carry, r+T1);\n iv_extend(r+T2, carry ? ~0 : 0);\n }\n }\n template<> inline void iv_add<1,1,1>(const int *op1, const int *op2, int *r) {\n r[0] = (unsigned) op1[0] + (unsigned) op2[0];\n }\n template<> inline void iv_add<1,1,2>(const int *op1, const int *op2, int *r) {\n iv_assign_int64<2>(r, (Slong) op1[0] + (Slong) op2[0]);\n }\n\n template\n inline bool iv_sub_int_borrow(const int *op1, int op2, bool borrow, int *r) {\n if(N==1) {\n Ulong l = (Slong) op1[0] - (Slong) op2 - borrow;\n r[0] = (int) l;\n return (l >> 32) & 1;\n }\n Slong l = (Ulong) (unsigned) op1[0] - (Slong) op2 - borrow;\n r[0] = (int) l;\n l >>= 32;\n for(int i=1; i < N-1; i++) {\n l += (Ulong) (unsigned) op1[i];\n r[i] = (int) l;\n l >>= 32;\n }\n l += (Slong) op1[N-1];\n r[N-1] = (int) l;\n return (l >> 32) & 1;\n }\n template<> inline bool iv_sub_int_borrow<0>(const int * /*op1*/, int /*op2*/, bool borrow, int * /*r*/) { return borrow; }\n template<> inline bool iv_sub_int_borrow<1>(const int *op1, int op2, bool borrow, int *r) {\n Ulong l = (Slong) op1[0] - (Slong) op2 - borrow;\n r[0] = (int) l;\n return (l >> 32) & 1;\n }\n\n template\n inline bool iv_sub_int_borrow(int op1, const int *op2, bool borrow, int *r) {\n if(N==1) {\n Ulong l = (Slong) op1 - (Slong) op2[0] - borrow;\n r[0] = (int) l;\n return (l >> 32) & 1;\n }\n Slong l = (Slong) op1 - (Ulong) (unsigned) op2[0] - borrow;\n r[0] = (int) l;\n l >>= 32;\n for(int i=1; i < N-1; i++) {\n l -= (Ulong) (unsigned) op2[i];\n r[i] = (int) l;\n l >>= 32;\n }\n l -= (Slong) op2[N-1];\n r[N-1] = (int) l;\n return (l >> 32) & 1;\n }\n template<> inline bool iv_sub_int_borrow<0>(int /*op1*/, const int * /*op2*/, bool borrow, int * /*r*/) { return borrow; }\n template<> inline bool iv_sub_int_borrow<1>(int op1, const int *op2, bool borrow, int *r) {\n Ulong l = (Slong) op1 - (Slong) op2[0] - borrow;\n r[0] = (int) l;\n return (l >> 32) & 1;\n }\n\n template\n inline bool iv_usub_n(const int *op1, const int *op2, int *r) {\n Slong l = 0;\n for(int i=0; i < N; i++) {\n l += (Ulong)(unsigned) op1[i] - (Ulong)(unsigned) op2[i];\n r[i] = (int) l;\n l >>= 32;\n }\n return l & 1;\n }\n template<> inline bool iv_usub_n<1>(const int *op1, const int *op2, int *r) {\n Ulong l = (Ulong) (unsigned) op1[0] - (Ulong) (unsigned) op2[0];\n r[0] = (int) l;\n return (l >> 32) & 1;\n }\n template<> inline bool iv_usub_n<2>(const int *op1, const int *op2, int *r) {\n Slong l = (Ulong) (unsigned) op1[0] - (Ulong) (unsigned) op2[0];\n r[0] = (int) l;\n l >>= 32;\n l += (Ulong) (unsigned) op1[1] - (Ulong) (unsigned) op2[1];\n r[1] = (int) l;\n return (l >> 32) & 1;\n }\n\n template\n inline void iv_sub(const int *op1, const int *op2, int *r) {\n if(Nr==1)\n r[0] = (unsigned) op1[0] - (unsigned) op2[0];\n else {\n const int M1 = AC_MAX(N1,N2);\n const int M2 = AC_MIN(N1,N2);\n const int T1 = AC_MIN(M2-1,Nr);\n const int T2 = AC_MIN(M1,Nr);\n bool borrow = iv_usub_n(op1, op2, r);\n if(N1 > N2)\n borrow = iv_sub_int_borrow(op1+T1, op2[T1], borrow, r+T1);\n else\n borrow = iv_sub_int_borrow(op1[T1], op2+T1, borrow, r+T1);\n iv_extend(r+T2, borrow ? ~0 : 0);\n }\n }\n template<> inline void iv_sub<1,1,1>(const int *op1, const int *op2, int *r) {\n r[0] = (unsigned) op1[0] - (unsigned) op2[0];\n }\n template<> inline void iv_sub<1,1,2>(const int *op1, const int *op2, int *r) {\n iv_assign_int64<2>(r, (Slong) op1[0] - (Slong) op2[0]);\n }\n\n template\n inline bool iv_all_bits_same(const int *op, bool bit) {\n int t = bit ? ~0 : 0;\n for(int i=0; i < N; i++)\n if(op[i] != t)\n return false;\n return true;\n }\n template<> inline bool iv_all_bits_same<0>(const int * /*op*/, bool /*bit*/) { return true; }\n template<> inline bool iv_all_bits_same<1>(const int *op, bool bit) {\n return op[0] == (bit ? ~0 : 0);\n }\n\n template \n void iv_neg(const int *op1, int *r) {\n Slong l = 0;\n for(int k = 0; k < AC_MIN(N,Nr); k++) {\n l -= (Ulong) (unsigned) op1[k];\n r[k] = (unsigned) l;\n l >>= 32;\n }\n if(Nr > N) {\n r[N] = (unsigned) (l - (op1[N-1] < 0 ? ~0 : 0));\n iv_extend(r+N+1, r[N] < 0 ? ~0 : 0);\n }\n }\n\n template \n void iv_abs(const int *op1, int *r) {\n if( S && op1[N-1] < 0) {\n iv_neg(op1, r);\n } else {\n iv_copy(op1, r);\n iv_extend(r+N, 0);\n }\n }\n\n template\n void iv_udiv(const sw2 *n, const sw2 *d, sw2 *q, sw2 *r) {\n const int w2_length = 2*w1_length;\n int d_msi; // most significant int for d\n for(d_msi = D-1; d_msi > 0 && !d[d_msi]; d_msi--) {}\n uw4 d1 = 0;\n if(!d_msi && !d[0]) {\n d1 = n[0]/d[0]; // d is zero => divide by zero\n return;\n }\n int n_msi; // most significant int for n\n for(n_msi = N-1; n_msi > 0 && !n[n_msi]; n_msi--) {}\n for(int i=0; i < Q; i++)\n q[i] = 0;\n for(int i=0; i < R; i++)\n r[i] = n[i];\n // write most significant \"words\" into d1\n bool d_mss_odd = (bool) (d[d_msi] >> w1_length);\n int d_mss= 2*d_msi + d_mss_odd; // index to most significant short (16-bit)\n d1 = (uw4) (uw2) d[d_msi] << (w1_length << (int) !d_mss_odd);\n if(d_msi)\n d1 |= (uw2) d[d_msi-1] >> (d_mss_odd ? w1_length : 0);\n bool n_mss_odd = (bool) (n[n_msi] >> w1_length);\n int n_mss = 2*n_msi + n_mss_odd;\n if(n_mss < d_mss) {\n // q already initialized to 0\n if(R) {\n int r_msi = AC_MIN(R-1, n_msi);\n for(int j = 0; j <= r_msi; j++)\n r[j] = n[j];\n for(int j = r_msi+1; j < R; j++)\n r[j] = 0;\n }\n } else {\n uw2 r1[N+1];\n r1[n_msi+1] = 0;\n for(int k = n_msi; k >= 0; k--)\n r1[k] = n[k];\n for(int k = n_mss; k >=d_mss; k--) {\n int k_msi = k >> 1;\n bool odd = k & 1;\n uw2 r1m1 = k_msi > 0 ? r1[k_msi-1] : (uw2) 0;\n uw4 n1 = odd ?\n (uw4) ((r1[k_msi+1] << w1_length) | (r1[k_msi] >> w1_length)) << w2_length | ((r1[k_msi] << w1_length) | (r1m1 >> w1_length)) :\n (uw4) r1[k_msi] << w2_length | r1m1;\n uw2 q1 = n1/d1;\n if(q1 >> w1_length)\n q1--;\n AC_ASSERT(!(q1 >> w1_length), \"Problem detected in long division algorithm, Please report\");\n unsigned k2 = k - d_mss;\n unsigned k2_i = k2 >> 1;\n bool odd_2 = k2 & 1;\n uw2 q2 = q1 << (odd_2 ? w1_length : 0);\n sw4 l = 0;\n for(int j = 0; j <= d_msi; j++) {\n l += r1[k2_i + j];\n bool l_sign = l < 0;\n sw4 prod = (uw4) (uw2) d[j] * (uw4) q2;\n l -= prod;\n bool ov1 = (l >= 0) & ((prod < 0) | l_sign);\n bool ov2 = (l < 0) & (prod < 0) & l_sign;\n r1[k2_i + j] = (uw2) l;\n l >>= w2_length;\n if(ov1)\n l |= ((uw4) -1 << w2_length);\n if(ov2)\n l ^= ((sw4) 1 << w2_length);\n }\n if(odd_2 | d_mss_odd) {\n l += r1[k2_i + d_msi + 1];\n r1[k2_i + d_msi + 1] = (uw2) l;\n }\n if(l < 0) {\n l = 0;\n for(int j = 0; j <= d_msi; j++) {\n l += (sw4) (uw2) d[j] << (odd_2 ? w1_length : 0);\n l += r1[k2_i + j];\n r1[k2_i + j] = (uw2) l;\n l >>= w2_length;\n }\n if(odd_2 | d_mss_odd)\n r1[k2_i + d_msi + 1] += (uw2) l;\n q1--;\n }\n if(Q && k2_i < Q) {\n if(odd_2)\n q[k2_i] = q1 << w1_length;\n else\n q[k2_i] |= q1;\n }\n }\n if(R) {\n int r_msi = AC_MIN(R-1, n_msi);\n for(int j = 0; j <= r_msi; j++)\n r[j] = r1[j];\n for(int j = r_msi+1; j < R; j++)\n r[j] = 0;\n }\n }\n }\n\n inline Slong conv_to_Slong(const int *x) {\n return (Slong) ( ((Ulong) x[1] << 32) | (unsigned) x[0] );\n }\n\n template\n inline void iv_div(const int *op1, const int *op2, int *r) {\n enum { N1_over = N1+(Den_s && (Num_s==2)) };\n if(N1_over==1 && N2==1) {\n r[0] = op1[0] / op2[0];\n iv_extend(r+1, ((Num_s || Den_s) && (r[0] < 0)) ? ~0 : 0);\n }\n else if(N1_over==1 && N2==2)\n iv_assign_int64(r, ((Slong) op1[0]) / conv_to_Slong(op2) );\n else if(N1_over==2 && N2==1)\n if(N1 == 1)\n iv_assign_int64(r, ((Slong) op1[0]) / ((Slong) op2[0]) );\n else\n iv_assign_int64(r, conv_to_Slong(op1) / ((Slong) op2[0]) );\n else if(N1_over==2 && N2==2)\n if(N1 == 1)\n iv_assign_int64(r, ((Slong) op1[0]) / conv_to_Slong(op2) );\n else\n iv_assign_int64(r, conv_to_Slong(op1) / conv_to_Slong(op2) );\n else if(!Num_s && !Den_s) {\n iv_udiv(op1, op2, r, 0);\n }\n else {\n enum { N1_neg = N1+(Num_s==2), N2_neg = N2+(Den_s==2)};\n int numerator[N1_neg];\n int denominator[N2_neg];\n int quotient[N1_neg];\n iv_abs(op1, numerator);\n iv_abs(op2, denominator);\n iv_udiv(numerator, denominator, quotient, 0);\n if( (Num_s && op1[N1-1] < 0) ^ (Den_s && op2[N2-1] < 0) )\n iv_neg(quotient, r);\n else {\n iv_copy(quotient, r);\n iv_extend(r+N1_neg, (Num_s || Den_s) && r[N1_neg-1] < 0 ? ~0 : 0);\n }\n }\n }\n\n template\n inline void iv_rem(const int *op1, const int *op2, int *r) {\n enum { N1_over = N1+(Den_s && (Num_s==2)) }; // N1_over corresponds to the division\n if(N1_over==1 && N2==1) {\n r[0] = op1[0] % op2[0];\n iv_extend(r+1, Num_s && r[0] < 0 ? ~0 : 0);\n }\n else if(N1_over==1 && N2==2)\n iv_assign_int64(r, ((Slong) op1[0]) % conv_to_Slong(op2) );\n else if(N1_over==2 && N2==1)\n if(N1 == 1)\n iv_assign_int64(r, ((Slong) op1[0]) % ((Slong) op2[0]) );\n else\n iv_assign_int64(r, conv_to_Slong(op1) % ((Slong) op2[0]) );\n else if(N1_over==2 && N2==2)\n if(N1 == 1)\n iv_assign_int64(r, ((Slong) op1[0]) % conv_to_Slong(op2) );\n else\n iv_assign_int64(r, conv_to_Slong(op1) % conv_to_Slong(op2) );\n else if(!Num_s && !Den_s) {\n iv_udiv(op1, op2, 0, r);\n }\n else {\n enum { N1_neg = N1+(Num_s==2), N2_neg = N2+(Den_s==2)};\n int numerator[N1_neg];\n int denominator[N2_neg];\n int remainder[N2];\n iv_abs(op1, numerator);\n iv_abs(op2, denominator);\n iv_udiv(numerator, denominator, 0, remainder);\n if( (Num_s && op1[N1-1] < 0) )\n iv_neg(remainder, r);\n else {\n iv_copy(remainder, r);\n iv_extend(r+N2, Num_s && r[N2-1] < 0 ? ~0 : 0);\n }\n }\n }\n\n template\n inline void iv_bitwise_complement_n(const int *op, int *r) {\n", "right_context": " r[i] = ~op[i];\n }\n template<> inline void iv_bitwise_complement_n<1>(const int *op, int *r) {\n r[0] = ~op[0];\n }\n template<> inline void iv_bitwise_complement_n<2>(const int *op, int *r) {\n r[0] = ~op[0];\n r[1] = ~op[1];\n }\n\n template\n inline void iv_bitwise_complement(const int *op, int *r) {\n const int M = AC_MIN(N,Nr);\n iv_bitwise_complement_n(op, r);\n iv_extend(r+M, (r[M-1] < 0) ? ~0 : 0);\n }\n\n template\n inline void iv_bitwise_and_n(const int *op1, const int *op2, int *r) {\n for(int i=0; i < N; i++)\n r[i] = op1[i] & op2[i];\n }\n template<> inline void iv_bitwise_and_n<1>(const int *op1, const int *op2, int *r) {\n r[0] = op1[0] & op2[0];\n }\n template<> inline void iv_bitwise_and_n<2>(const int *op1, const int *op2, int *r) {\n r[0] = op1[0] & op2[0];\n r[1] = op1[1] & op2[1];\n }\n\n template\n inline void iv_bitwise_and(const int *op1, const int *op2, int *r) {\n const int M1 = AC_MIN(AC_MAX(N1,N2), Nr);\n const int M2 = AC_MIN(AC_MIN(N1,N2), Nr);\n const int *OP1 = N1 > N2 ? op1 : op2;\n const int *OP2 = N1 > N2 ? op2 : op1;\n\n iv_bitwise_and_n(op1, op2, r);\n if(OP2[M2-1] < 0)\n iv_copy(OP1+M2, r+M2);\n else\n iv_extend(r+M2, 0);\n iv_extend(r+M1, (r[M1-1] < 0) ? ~0 : 0);\n }\n\n template\n inline void iv_bitwise_or_n(const int *op1, const int *op2, int *r) {\n for(int i=0; i < N; i++)\n r[i] = op1[i] | op2[i];\n }\n template<> inline void iv_bitwise_or_n<1>(const int *op1, const int *op2, int *r) {\n r[0] = op1[0] | op2[0];\n }\n template<> inline void iv_bitwise_or_n<2>(const int *op1, const int *op2, int *r) {\n r[0] = op1[0] | op2[0];\n r[1] = op1[1] | op2[1];\n }\n\n template\n inline void iv_bitwise_or(const int *op1, const int *op2, int *r) {\n const int M1 = AC_MIN(AC_MAX(N1,N2), Nr);\n const int M2 = AC_MIN(AC_MIN(N1,N2), Nr);\n const int *OP1 = N1 >= N2 ? op1 : op2;\n const int *OP2 = N1 >= N2 ? op2 : op1;\n\n iv_bitwise_or_n(op1, op2, r);\n if(OP2[M2-1] < 0)\n iv_extend(r+M2, ~0);\n else\n iv_copy(OP1+M2, r+M2);\n iv_extend(r+M1, (r[M1-1] < 0) ? ~0 : 0);\n }\n\n template\n inline void iv_bitwise_xor_n(const int *op1, const int *op2, int *r) {\n for(int i=0; i < N; i++)\n r[i] = op1[i] ^ op2[i];\n }\n template<> inline void iv_bitwise_xor_n<1>(const int *op1, const int *op2, int *r) {\n r[0] = op1[0] ^ op2[0];\n }\n template<> inline void iv_bitwise_xor_n<2>(const int *op1, const int *op2, int *r) {\n r[0] = op1[0] ^ op2[0];\n r[1] = op1[1] ^ op2[1];\n }\n\n template\n inline void iv_bitwise_xor(const int *op1, const int *op2, int *r) {\n const int M1 = AC_MIN(AC_MAX(N1,N2), Nr);\n const int M2 = AC_MIN(AC_MIN(N1,N2), Nr);\n const int *OP1 = N1 >= N2 ? op1 : op2;\n const int *OP2 = N1 >= N2 ? op2 : op1;\n\n iv_bitwise_xor_n(op1, op2, r);\n if(OP2[M2-1] < 0)\n iv_bitwise_complement_n(OP1+M2, r+M2);\n else\n iv_copy(OP1+M2, r+M2);\n iv_extend(r+M1, (r[M1-1] < 0) ? ~0 : 0);\n }\n\n template\n inline void iv_shift_l(const int *op1, unsigned op2, int *r) {\n unsigned s31 = op2 & 31;\n unsigned ishift = (op2 >> 5) > Nr ? Nr : (op2 >> 5);\n if(s31 && ishift!=Nr) {\n unsigned lw = 0;\n for(unsigned i=0; i < Nr; i++) {\n unsigned hw = (i >= ishift && i < N) ? op1[i-ishift] : 0;\n r[i] = (hw << s31) | (lw >> (32-s31));\n lw = hw;\n }\n } else {\n for(unsigned i=0; i < Nr ; i++)\n r[i] = (i >= ishift && i < N) ? op1[i-ishift] : 0;\n }\n }\n template<> inline void iv_shift_l<1,1>(const int *op1, unsigned op2, int *r) {\n r[0] = op2 < 32 ? op1[0] << op2 : 0;\n }\n template<> inline void iv_shift_l<2,1>(const int *op1, unsigned op2, int *r) {\n Ulong vop1 =\n (static_cast(op1[1]) << 32) | static_cast(op1[0]);\n vop1 = op2 < 64 ? vop1 << op2 : (Ulong) 0;\n r[0] = vop1;\n }\n template<> inline void iv_shift_l<2,2>(const int *op1, unsigned op2, int *r) {\n Ulong vop1 =\n (static_cast(op1[1]) << 32) | static_cast(op1[0]);\n vop1 = op2 < 64 ? vop1 << op2 : (Ulong) 0;\n iv_assign_uint64<2>(r, vop1);\n }\n\n template\n inline void iv_shift_r(const int *op1, unsigned op2, int *r) {\n unsigned s31 = op2 & 31;\n unsigned ishift = (op2 >> 5) > N ? N : (op2 >> 5);\n int ext = op1[N-1] < 0 ? ~0 : 0;\n if(s31 && ishift!=N) {\n unsigned lw = (ishift < N) ? op1[ishift] : ext;\n for(unsigned i=0; i < Nr; i++) {\n unsigned hw = (i+ishift+1 < N) ? op1[i+ishift+1] : ext;\n r[i] = (lw >> s31) | (hw << (32-s31));\n lw = hw;\n }\n } else {\n for(unsigned i=0; i < Nr ; i++)\n r[i] = (i+ishift < N) ? op1[i+ishift] : ext;\n }\n }\n template<> inline void iv_shift_r<1,1>(const int *op1, unsigned op2, int *r) {\n r[0] = (op2 < 32) ? (op1[0] >> op2) : (op1[0] >> 31);\n }\n template<> inline void iv_shift_r<2,1>(const int *op1, unsigned op2, int *r) {\n Slong vop1 =\n (static_cast(op1[1]) << 32) | static_cast(op1[0]);\n vop1 = (op2 < 64) ? (vop1 >> op2) : (vop1 >> 63);\n r[0] = vop1;\n }\n template<> inline void iv_shift_r<2,2>(const int *op1, unsigned op2, int *r) {\n Slong vop1 =\n (static_cast(op1[1]) << 32) | static_cast(op1[0]);\n vop1 = (op2 < 64) ? (vop1 >> op2) : (vop1 >> 63);\n iv_assign_int64<2>(r, vop1);\n }\n\n template\n inline void iv_shift_l2(const int *op1, signed op2, int *r) {\n if(S && op2 < 0)\n iv_shift_r(op1, -op2, r);\n else\n iv_shift_l(op1, op2, r);\n }\n\n template<> inline void iv_shift_l2<1,1,false>(const int *op1, signed op2, int *r) {\n r[0] = (op2 < 32) ? ( (unsigned) op1[0] << op2) : 0;\n }\n template<> inline void iv_shift_l2<1,1,true>(const int *op1, signed op2, int *r) {\n r[0] = (op2 >= 0) ?\n (op2 < 32) ? ( (unsigned) op1[0] << op2) : 0 :\n (op2 > -32) ? (op1[0] >> -op2) : (op1[0] >> 31);\n }\n\n template\n inline void iv_shift_r2(const int *op1, signed op2, int *r) {\n if(S && op2 < 0)\n iv_shift_l(op1, -op2, r);\n else\n iv_shift_r(op1, op2, r);\n }\n\n template<> inline void iv_shift_r2<1,1,false>(const int *op1, signed op2, int *r) {\n r[0] = (op2 < 32) ? (op1[0] >> op2) : (op1[0] >> 31);\n }\n template<> inline void iv_shift_r2<1,1,true>(const int *op1, signed op2, int *r) {\n r[0] = (op2 >= 0) ?\n (op2 < 32) ? (op1[0] >> op2) : (op1[0] >> 31) :\n (op2 > -32) ? ( (unsigned) op1[0] << -op2) : 0;\n }\n\n template\n inline void iv_const_shift_l(const int *op1, int *r) {\n // B >= 0\n if(!B) {\n const int M1 = AC_MIN(N,Nr);\n iv_copy(op1, r);\n iv_extend(r+M1, r[M1-1] < 0 ? -1 : 0);\n }\n else {\n const unsigned s31 = B & 31;\n const int ishift = (((B >> 5) > Nr) ? Nr : (B >> 5));\n iv_extend(r, 0);\n const int M1 = AC_MIN(N+ishift,Nr);\n if(s31) {\n unsigned lw = 0;\n for(int i=ishift; i < M1; i++) {\n unsigned hw = op1[i-ishift];\n r[i] = (hw << s31) | (lw >> ((32-s31)&31)); // &31 is to quiet compilers\n lw = hw;\n }\n if(Nr > M1) {\n r[M1] = (signed) lw >> ((32-s31)&31); // &31 is to quiet compilers\n iv_extend(r+M1+1, r[M1] < 0 ? ~0 : 0);\n }\n } else {\n for(int i=ishift; i < M1 ; i++)\n r[i] = op1[i-ishift];\n iv_extend(r+M1, r[M1-1] < 0 ? -1 : 0);\n }\n }\n }\n template<> inline void iv_const_shift_l<1,1,0>(const int *op1, int *r) {\n r[0] = op1[0];\n }\n template<> inline void iv_const_shift_l<2,1,0>(const int *op1, int *r) {\n r[0] = op1[0];\n }\n\n template\n inline void iv_const_shift_r(const int *op1, int *r) {\n if(!B) {\n const int M1 = AC_MIN(N,Nr);\n iv_copy(op1, r);\n iv_extend(r+M1, r[M1-1] < 0 ? ~0 : 0);\n }\n else {\n const unsigned s31 = B & 31;\n const int ishift = (((B >> 5) > N) ? N : (B >> 5));\n int ext = op1[N-1] < 0 ? ~0 : 0;\n if(s31 && ishift!=N) {\n unsigned lw = (ishift < N) ? op1[ishift] : ext;\n for(int i=0; i < Nr; i++) {\n unsigned hw = (i+ishift+1 < N) ? op1[i+ishift+1] : ext;\n r[i] = (lw >> s31) | (hw << ((32-s31)&31)); // &31 is to quiet compilers\n lw = hw;\n }\n } else {\n for(int i=0; i < Nr ; i++)\n r[i] = (i+ishift < N) ? op1[i+ishift] : ext;\n }\n }\n }\n template<> inline void iv_const_shift_r<1,1,0>(const int *op1, int *r) {\n r[0] = op1[0];\n }\n template<> inline void iv_const_shift_r<2,1,0>(const int *op1, int *r) {\n r[0] = op1[0];\n }\n\n template\n inline void iv_conv_from_fraction(double d, int *r, bool *qb, bool *rbits, bool *o) {\n bool b = d < 0;\n double d2 = b ? -d : d;\n double dfloor = mgc_floor(d2);\n *o = dfloor != 0.0;\n d2 = d2 - dfloor;\n for(int i=N-1; i >=0; i--) {\n d2 *= (Ulong) 1 << 32;\n unsigned k = (unsigned int) d2;\n r[i] = b ? ~k : k;\n d2 -= k;\n }\n d2 *= 2;\n bool k = ((int) d2) != 0; // is 0 or 1\n d2 -= k;\n *rbits = d2 != 0.0;\n *qb = (b && *rbits) ^ k;\n if(b && !*rbits && !*qb)\n iv_uadd_carry(r, true, r);\n *o |= b ^ (r[N-1] < 0);\n }\n\n template\n inline int to_str(int *v, int w, bool left_just, char *r) {\n const char digits[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};\n const unsigned char B = b==AC_BIN ? 1 : (b==AC_OCT ? 3 : (b==AC_HEX ? 4 : 0));\n int k = (w+B-1)/B;\n int n = (w+31) >> 5;\n int bits = 0;\n if(b != AC_BIN && left_just) {\n if( (bits = -(w % B)) )\n r[--k] = 0;\n }\n for(int i = 0; i < n; i++) {\n if (b != AC_BIN && bits < 0)\n r[k] += (unsigned char) (( (unsigned) v[i] << (B+bits)) & (b-1));\n unsigned int m = (unsigned) v[i] >> -bits;\n for(bits += 32; bits > 0 && k; bits -= B) {\n r[--k] = (char) (m & (b-1));\n m >>= B;\n }\n }\n for(int i=0; i < (w+B-1)/B; i++)\n r[i] = digits[(int)r[i]];\n return (w+B-1)/B;\n }\n template<> inline int to_str(int *v, int w, bool left_just, char *r) {\n int k = 0;\n int msw = (w-1) >> 5;\n if(left_just) {\n unsigned bits_msw = w & 31;\n if(bits_msw) {\n unsigned left_shift = 32 - bits_msw;\n for(int i=msw; i > 0; i--)\n v[i] = (unsigned) v[i] << left_shift | (unsigned) v[i-1] >> bits_msw;\n v[0] = (unsigned) v[0] << left_shift;\n }\n int lsw = 0;\n while(lsw < msw || v[msw] ) {\n Ulong l = 0;\n for(int i=lsw; i <= msw; i++) {\n l += (Ulong) (unsigned) v[i] * 10;\n v[i] = l;\n l >>= 32;\n if(i==lsw && !v[i])\n lsw++;\n }\n r[k++] = (char) ('0' + (int) l);\n }\n } else {\n const unsigned d = 1000000000; // 10E9\n for(; msw > 0 && !v[msw]; msw--) {}\n while(msw >= 0) {\n Ulong nl = 0;\n for(int i = msw; i >= 0; i--) {\n nl <<= 32;\n nl |= (unsigned) v[i];\n unsigned q = nl/d;\n nl -= (Ulong) q * d;\n v[i] = q;\n }\n if(!v[msw])\n msw--;\n bool last = msw == -1;\n unsigned rem = (unsigned) nl;\n for(int i=0; (i < 9 && !last) || rem; i++) {\n r[k++] = (char) ('0' + (int) (rem % 10));\n rem /= 10;\n }\n }\n for(int i=0; i < k/2; i++) {\n char c = r[i];\n r[i] = r[k-1-i];\n r[k-1-i] = c;\n }\n }\n r[k] = 0;\n return k;\n }\n\n inline int to_string(int *v, int w, bool sign_mag, ac_base_mode base, bool left_just, bool pad_to_width, char *r) {\n if(!left_just && !pad_to_width) {\n int n = (w+31) >> 5;\n bool neg = !sign_mag && v[n-1] < 0;\n while(n-- && v[n] == (neg ? ~0 : 0)) {}\n int w2 = 32*(n+1);\n if(w2) {\n int m = v[n];\n for(int i = 16; i > 0; i >>= 1) {\n if((m >> i) == (neg ? ~0 : 0))\n w2 -= i;\n else\n m >>= i;\n }\n }\n if(w2 < w)\n w = w2;\n w += !sign_mag;\n }\n if(base == AC_DEC)\n return to_str(v, w, left_just, r);\n else if (base == AC_HEX)\n return to_str(v, w, left_just, r);\n else if (base == AC_OCT)\n return to_str(v, w, left_just, r);\n else if (base == AC_BIN)\n return to_str(v, w, left_just, r);\n return 0;\n }\n\n template\n inline unsigned iv_leading_bits(const int *op, bool bit);\n\n template<> inline unsigned iv_leading_bits<1>(const int *op, bool bit) {\n const unsigned char tab[] = {4, 3, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0};\n unsigned t = bit ? ~*op : *op;\n unsigned cnt = 0;\n if(t >> 16)\n t >>= 16;\n else\n cnt += 16;\n if(t >> 8)\n t >>= 8;\n else\n cnt += 8;\n if(t >> 4)\n t >>= 4;\n else\n cnt += 4;\n cnt += tab[t];\n return cnt;\n }\n\n template\n inline unsigned iv_leading_bits(const int *op, bool bit) {\n int ext_sign = bit ? -1 : 0;\n int k;\n for(k = N-1; k >= 0 && op[k] == ext_sign; k--) {}\n return 32*(N-1-k) + (k < 0 ? 0 : iv_leading_bits<1>(op+k, bit));\n }\n\n template\n inline unsigned reverse_u(unsigned x) {\n unsigned r = x;\n if(W > 1) {\n int mask = 0x55555555;\n int shift = 1;\n r = (mask & r) << shift | unsigned(~mask & r) >> shift;\n if(W > 2) {\n mask = 0x33333333;\n shift = 2;\n r = (mask & r) << shift | unsigned(~mask & r) >> shift;\n if(W > 4) {\n mask = 0x0f0f0f0f;\n shift = 4;\n r = (mask & r) << shift | unsigned(~mask & r) >> shift;\n if(W > 8) {\n mask = 0x00ff00ff;\n shift = 8;\n r = (mask & r) << shift | unsigned(~mask & r) >> shift;\n if(W > 16) {\n mask = 0x0000ffff;\n shift = 16;\n r = (mask & r) << shift | unsigned(~mask & r) >> shift;\n }\n }\n }\n }\n r >>= shift*2-W;\n }\n return r;\n }\n\n template\n inline void iv_reverse(const int *op, int *r) {\n for(int k=0; k < N; k++)\n r[k] = reverse_u<32>((unsigned) op[N-1-k]);\n }\n template<> inline void iv_reverse<1>(const int *op, int *r) {\n r[0] = reverse_u<32>((unsigned) op[0]);\n }\n template<> inline void iv_reverse<2>(const int *op, int *r) {\n r[0] = reverse_u<32>((unsigned) op[1]);\n r[1] = reverse_u<32>((unsigned) op[0]);\n }\n\n inline int set_bits_int(int op, int lsb, int WS, int slc) {\n // WS < 32, lsb+WS-1 < 32\n // set the bits [pos+WS-1,pos] of op with the lower WS bits of slc\n unsigned mask = ~(all_ones << WS);\n unsigned r = op;\n unsigned wslc = slc & mask;\n wslc <<= lsb;\n mask <<= lsb;\n r &= ~mask;\n r |= wslc;\n return r;\n }\n\n inline Slong set_bits_int64(Slong op, int lsb, int WS, Slong slc) {\n // WS < 64, lsb+WS-1 < 64\n // set the bits [pos+WS-1,pos] of op with the lower WS bits of slc\n Ulong mask = ~(all_ones64 << WS);\n Ulong r = op;\n Ulong wslc = slc & mask;\n wslc <<= lsb;\n mask <<= lsb;\n r &= ~mask;\n r |= wslc;\n return r;\n }\n\n //////////////////////////////////////////////////////////////////////////////\n // Integer Vector class: iv\n //////////////////////////////////////////////////////////////////////////////\n template\n class iv {\n protected:\n int v[N];\n public:\n template friend class iv;\n iv() {}\n template\n iv ( const iv &b ) {\n const int M = AC_MIN(N,N2);\n iv_copy(b.v, v);\n iv_extend(v+M, (v[M-1] < 0) ? ~0 : 0);\n }\n iv ( Slong t) {\n iv_assign_int64(v, t);\n }\n iv ( Ulong t) {\n iv_assign_uint64(v, t);\n }\n iv ( int t) {\n v[0] = t;\n iv_extend(v+1, (t < 0) ? ~0 : 0);\n }\n iv ( unsigned int t) {\n v[0] = t;\n iv_extend(v+1, 0);\n }\n iv ( long t) {\n if(long_w == 32) {\n v[0] = t;\n iv_extend(v+1, (t < 0) ? ~0 : 0);\n } else\n iv_assign_int64(v, t);\n }\n iv ( unsigned long t) {\n if(long_w == 32) {\n v[0] = t;\n iv_extend(v+1, 0);\n } else\n iv_assign_uint64(v, t);\n }\n iv ( double d ) {\n double d2 = ldexpr32<-N>(d);\n bool qb, rbits, o;\n iv_conv_from_fraction(d2, v, &qb, &rbits, &o);\n }\n\n // Explicit conversion functions to C built-in types -------------\n inline Slong to_int64() const { return N==1 ? v[0] : ((Ulong)v[1] << 32) | (Ulong) (unsigned) v[0]; }\n inline Ulong to_uint64() const { return N==1 ? (Ulong) v[0] : ((Ulong)v[1] << 32) | (Ulong) (unsigned) v[0]; }\n inline double to_double() const {\n double a = v[N-1];\n for(int i=N-2; i >= 0; i--) {\n a *= (Ulong) 1 << 32;\n a += (unsigned) v[i];\n }\n return a;\n }\n inline void conv_from_fraction(double d, bool *qb, bool *rbits, bool *o) {\n iv_conv_from_fraction(d, v, qb, rbits, o);\n }\n\n template\n inline void mult(const iv &op2, iv &r) const {\n iv_mult(v, op2.v, r.v);\n }\n template\n void add(const iv &op2, iv &r) const {\n iv_add(v, op2.v, r.v);\n }\n template\n void sub(const iv &op2, iv &r) const {\n iv_sub(v, op2.v, r.v);\n }\n template\n void div(const iv &op2, iv &r) const {\n iv_div(v, op2.v, r.v);\n }\n template\n void rem(const iv &op2, iv &r) const {\n iv_rem(v, op2.v, r.v);\n }\n void increment() {\n iv_uadd_carry(v, true, v);\n }\n void decrement() {\n iv_sub_int_borrow(v, 0, true, v);\n }\n template\n void neg(iv &r) const {\n iv_neg(v, r.v);\n }\n template\n void shift_l(unsigned op2, iv &r) const {\n iv_shift_l(v, op2, r.v);\n }\n template\n void shift_l2(signed op2, iv &r) const {\n iv_shift_l2(v, op2, r.v);\n }\n template\n void shift_r(unsigned op2, iv &r) const {\n iv_shift_r(v, op2, r.v);\n }\n template\n void shift_r2(signed op2, iv &r) const {\n iv_shift_r2(v, op2, r.v);\n }\n template\n void const_shift_l(iv &r) const {\n iv_const_shift_l(v, r.v);\n }\n template\n void const_shift_r(iv &r) const {\n iv_const_shift_r(v, r.v);\n }\n template\n void bitwise_complement(iv &r) const {\n iv_bitwise_complement(v, r.v);\n }\n template\n void bitwise_and(const iv &op2, iv &r) const {\n iv_bitwise_and(v, op2.v, r.v);\n }\n template\n void bitwise_or(const iv &op2, iv &r) const {\n iv_bitwise_or(v, op2.v, r.v);\n }\n template\n void bitwise_xor(const iv &op2, iv &r) const {\n iv_bitwise_xor(v, op2.v, r.v);\n }\n template\n bool equal(const iv &op2) const {\n return iv_equal(v, op2.v);\n }\n template\n bool greater_than(const iv &op2) const {\n return iv_compare(v, op2.v);\n }\n template\n bool less_than(const iv &op2) const {\n return iv_compare(v, op2.v);\n }\n bool equal_zero() const {\n return iv_equal_zero(v);\n }\n\n template\n void set_slc(unsigned lsb, int WS, const iv &op2) {\n AC_ASSERT((31+WS)/32 == N2, \"Bad usage: WS greater than length of slice\");\n unsigned msb = lsb+WS-1;\n unsigned lsb_v = lsb >> 5;\n unsigned lsb_b = lsb & 31;\n unsigned msb_v = msb >> 5;\n unsigned msb_b = msb & 31;\n // Specializations are done for ={<1,1>,<2,1>,<2,2>}\n\n // Save head an tail bits to be kept on affected elements of v\n unsigned mask_msb_kept = (all_ones << 1) << msb_b; // bits left of msb_b\n unsigned msb_v_kept = (unsigned) v[msb_v] & mask_msb_kept;\n unsigned mask_lsb_kept = ~(all_ones << lsb_b); // bits right of lsb_b\n unsigned lsb_v_kept = (unsigned) v[lsb_v] & mask_lsb_kept;\n\n // Copy over shifted version of op2 (by lsb_b) to this->v starting at v[lsb_v]\n iv_shift_l(op2.v, lsb_b, v+lsb_v);\n if(msb_v-lsb_v == N2) // slice crosses over iv boundary because of lsb_b\n v[msb_v] = ((unsigned) op2.v[N2-1] >> 1) >> (31-lsb_b); // equiv to << (lsb_b-32)\n\n // Clear sign extension bits originating from op2\n v[msb_v] &= ~mask_msb_kept;\n\n // OR back kept lsb and msb bits\n v[msb_v] |= msb_v_kept;\n v[lsb_v] |= lsb_v_kept;\n }\n\n void reverse(iv &r) const {\n iv_reverse(v, r.v);\n }\n unsigned leading_bits(bool bit) const {\n return iv_leading_bits(v, bit);\n }\n };\n\n template<> inline Slong iv<1>::to_int64() const { return v[0]; }\n template<> inline Ulong iv<1>::to_uint64() const { return v[0]; }\n\n template<> inline Slong iv<2>::to_int64() const {\n return ((Ulong)v[1] << 32) | (Ulong) (unsigned) v[0];\n }\n template<> inline Ulong iv<2>::to_uint64() const {\n return ((Ulong)v[1] << 32) | (Ulong) (unsigned) v[0];\n }\n\n template<> template<> inline void iv<1>::set_slc(unsigned lsb, int WS, const iv<1> &op2) {\n v[0] = WS==32 ? op2.v[0] : set_bits_int(v[0], lsb, WS, op2.v[0]);\n }\n template<> template<> inline void iv<2>::set_slc(unsigned lsb, int WS, const iv<1> &op2) {\n Ulong l = to_uint64();\n Ulong l2 = op2.to_uint64();\n l = set_bits_int64(l, lsb, WS, l2); // WS <= 32, never full 64-bit assignment\n *this = l;\n }\n template<> template<> inline void iv<2>::set_slc(unsigned lsb, int WS, const iv<2> &op2) {\n Ulong l = to_uint64();\n Ulong l2 = op2.to_uint64();\n l = WS==64 ? l2 : set_bits_int64(l, lsb, WS, l2);\n *this = l;\n }\n\n // add automatic conversion to Slong/Ulong depending on S and C\n template\n class iv_conv : public iv {\n protected:\n iv_conv() {}\n template iv_conv(const T& t) : iv(t) {}\n };\n\n template\n class iv_conv : public iv {\n public:\n operator Ulong () const { return iv::to_uint64(); }\n protected:\n iv_conv() {}\n template iv_conv(const T& t) : iv(t) {}\n };\n\n template\n class iv_conv : public iv {\n public:\n operator Slong () const { return iv::to_int64(); }\n protected:\n iv_conv() {}\n template iv_conv(const T& t) : iv(t) {}\n };\n\n // Set default to promote to int as this is the case for almost all types\n // create exceptions using specializations\n template\n struct c_prom {\n typedef int promoted_type;\n };\n template<> struct c_prom {\n typedef unsigned promoted_type;\n };\n template<> struct c_prom {\n typedef long promoted_type;\n };\n template<> struct c_prom {\n typedef unsigned long promoted_type;\n };\n template<> struct c_prom {\n typedef Slong promoted_type;\n };\n template<> struct c_prom {\n typedef Ulong promoted_type;\n };\n template<> struct c_prom {\n typedef float promoted_type;\n };\n template<> struct c_prom {\n typedef double promoted_type;\n };\n\n template\n struct c_arith {\n // will error out for pairs of T and T2 that are not defined through specialization\n };\n template struct c_arith {\n typedef T arith_conv;\n };\n\n #define C_ARITH(C_TYPE1, C_TYPE2) \\\n template<> struct c_arith { \\\n typedef C_TYPE1 arith_conv; \\\n }; \\\n template<> struct c_arith { \\\n typedef C_TYPE1 arith_conv; \\\n };\n\n C_ARITH(double, float)\n C_ARITH(double, int)\n C_ARITH(double, unsigned)\n C_ARITH(double, long)\n C_ARITH(double, unsigned long)\n C_ARITH(double, Slong)\n C_ARITH(double, Ulong)\n C_ARITH(float, int)\n C_ARITH(float, unsigned)\n C_ARITH(float, long)\n C_ARITH(float, unsigned long)\n C_ARITH(float, Slong)\n C_ARITH(float, Ulong)\n\n C_ARITH(Slong, int)\n C_ARITH(Slong, unsigned)\n C_ARITH(Ulong, int)\n C_ARITH(Ulong, unsigned)\n\n template\n struct rt_closed_T {\n };\n\n template\n struct map {\n typedef T t;\n };\n template\n struct c_type_params {\n // will error out for T for which this template struct is not specialized\n };\n\n template inline const char *c_type_name() { return \"unknown\"; }\n template<> inline const char *c_type_name() { return \"bool\";}\n template<> inline const char *c_type_name() { return \"char\";}\n template<> inline const char *c_type_name() { return \"signed char\";}\n template<> inline const char *c_type_name() { return \"unsigned char\";}\n template<> inline const char *c_type_name() { return \"signed short\";}\n template<> inline const char *c_type_name() { return \"unsigned short\";}\n template<> inline const char *c_type_name() { return \"int\";}\n template<> inline const char *c_type_name() { return \"unsigned\";}\n template<> inline const char *c_type_name() { return \"signed long\";}\n template<> inline const char *c_type_name() { return \"unsigned long\";}\n template<> inline const char *c_type_name() { return \"signed long long\";}\n template<> inline const char *c_type_name() { return \"unsigned long long\";}\n template<> inline const char *c_type_name() { return \"float\";}\n template<> inline const char *c_type_name() { return \"double\";}\n\n template struct c_type;\n\n template\n struct rt_c_type_T {\n template\n struct op1 {\n typedef typename T::template rt_T< c_type >::mult mult;\n typedef typename T::template rt_T< c_type >::plus plus;\n typedef typename T::template rt_T< c_type >::minus2 minus;\n typedef typename T::template rt_T< c_type >::minus minus2;\n typedef typename T::template rt_T< c_type >::logic logic;\n typedef typename T::template rt_T< c_type >::div2 div;\n typedef typename T::template rt_T< c_type >::div div2;\n };\n };\n template\n struct c_type {\n typedef typename c_prom::promoted_type c_prom_T;\n struct rt_unary {\n typedef c_prom_T neg;\n typedef c_prom_T mag_sqr;\n typedef c_prom_T mag;\n template\n struct set {\n typedef c_prom_T sum;\n };\n };\n template\n struct rt_T {\n typedef typename rt_c_type_T::template op1::mult mult;\n typedef typename rt_c_type_T::template op1::plus plus;\n typedef typename rt_c_type_T::template op1::minus minus;\n typedef typename rt_c_type_T::template op1::minus2 minus2;\n typedef typename rt_c_type_T::template op1::logic logic;\n typedef typename rt_c_type_T::template op1::div div;\n typedef typename rt_c_type_T::template op1::div2 div2;\n };\n inline static std::string type_name() {\n std::string r = c_type_name();\n return r;\n }\n\n };\n // with T == c_type\n template\n struct rt_c_type_T< c_type > {\n typedef typename c_prom::promoted_type c_prom_T;\n template\n struct op1 {\n typedef typename c_prom::promoted_type c_prom_T2;\n typedef typename c_arith< c_prom_T, c_prom_T2 >::arith_conv mult;\n typedef typename c_arith< c_prom_T, c_prom_T2 >::arith_conv plus;\n typedef typename c_arith< c_prom_T, c_prom_T2 >::arith_conv minus;\n typedef typename c_arith< c_prom_T, c_prom_T2 >::arith_conv minus2;\n typedef typename c_arith< c_prom_T, c_prom_T2 >::arith_conv logic;\n typedef typename c_arith< c_prom_T, c_prom_T2 >::arith_conv div;\n typedef typename c_arith< c_prom_T, c_prom_T2 >::arith_conv div2;\n };\n };\n\n #define C_TYPE_MAP(C_TYPE) \\\n template<> struct map { \\\n typedef c_type t; \\\n };\n\n #define C_TYPE_PARAMS(C_TYPE, WI, SI) \\\n template<> struct c_type_params { \\\n enum { W = WI, I = WI, E = 0, S = SI, floating_point = 0 }; \\\n };\n\n #define C_TYPE_MAP_INT(C_TYPE, WI, SI) \\\n C_TYPE_MAP(C_TYPE) \\\n C_TYPE_PARAMS(C_TYPE, WI, SI)\n\n #define C_TYPE_MAP_FLOAT(C_TYPE, FP, WFP, IFP, EFP) \\\n C_TYPE_MAP(C_TYPE) \\\n template<> struct c_type_params { \\\n enum { W = WFP, I = IFP, E = EFP, S = true, floating_point = FP }; \\\n };\n\n C_TYPE_MAP_INT(bool, 1, false)\n C_TYPE_MAP_INT(char, 8, true)\n C_TYPE_MAP_INT(signed char, 8, true)\n C_TYPE_MAP_INT(unsigned char, 8, false)\n C_TYPE_MAP_INT(signed short, 16, true)\n C_TYPE_MAP_INT(unsigned short, 16, false)\n C_TYPE_MAP_INT(signed int, 32, true)\n C_TYPE_MAP_INT(unsigned int, 32, false)\n C_TYPE_MAP_INT(signed long, ac_private::long_w, true)\n C_TYPE_MAP_INT(unsigned long, ac_private::long_w, false)\n C_TYPE_MAP_INT(signed long long, 64, true)\n C_TYPE_MAP_INT(unsigned long long, 64, false)\n C_TYPE_MAP_FLOAT(float, 1, 25, 1, 8)\n C_TYPE_MAP_FLOAT(double, 2, 54, 1, 11)\n\n #undef C_TYPE_INT\n #undef C_TYPE_PARAMS\n #undef C_TYPE_FLOAT\n #undef C_TYPE_MAP\n\n // specializations for following struct declared/defined after definition of ac_int\n template\n struct rt_ac_int_T {\n template\n struct op1 {\n typedef typename T::template rt_T< ac_int >::mult mult;\n typedef typename T::template rt_T< ac_int >::plus plus;\n typedef typename T::template rt_T< ac_int >::minus2 minus;\n typedef typename T::template rt_T< ac_int >::minus minus2;\n typedef typename T::template rt_T< ac_int >::logic logic;\n typedef typename T::template rt_T< ac_int >::div2 div;\n typedef typename T::template rt_T< ac_int >::div div2;\n };\n };\n}\n\nnamespace ac {\n // compiler time constant for log2 like functions\n template\n struct nbits {\n enum { val = X ? ac_private::s_N<16>::s_X::nbits : 1 };\n };\n\n template\n struct log2_floor {\n enum { val = nbits::val - 1 };\n };\n\n // log2 of 0 is not defined: generate compiler error\n template<> struct log2_floor<0> {};\n\n template\n struct log2_ceil {\n enum { lf = log2_floor::val, val = (X == (1 << lf) ? lf : lf+1) };\n };\n\n // log2 of 0 is not defined: generate compiler error\n template<> struct log2_ceil<0> {};\n\n template\n struct int_range {\n enum { l_s = (LowerBound < 0), u_s = (UpperBound < 0),\n signedness = l_s || u_s,\n l_nbits = nbits::val,\n u_nbits = nbits::val,\n nbits = AC_MAX(l_nbits, u_nbits + (!u_s && signedness))\n };\n typedef ac_int type;\n };\n\n template\n class sliceref {\n# if defined(__SYNTHESIS__) && !defined(AC_IGNORE_BUILTINS)\n# pragma builtin\n# endif\n int *d_iv;\n template friend class sliceref;\n public:\n sliceref( int *iv ) : d_iv(iv) {}\n\n inline const sliceref operator = ( const sliceref &val ) {\n return operator=(val);\n }\n\n template\n inline const sliceref operator = ( const sliceref &val ) {\n const int src_lsi = P2/32;\n const int src_msi = (P2+W-1)/32;\n const int trg_lsi = P/32;\n const int trg_msi = (P+W-1)/32;\n const int trg_lsb = P&31;\n const int trg_msb = (P+W-1)&31;\n const int N = src_msi-src_lsi+1;\n const int Nr = trg_msi-trg_lsi+1;\n const int rshift = (P2&31) - (P&31);\n int shifted_src[Nr];\n int *aligned_src = val.d_iv+src_lsi;\n if(rshift) {\n if(rshift < 0)\n ac_private::iv_shift_l(aligned_src, -rshift, shifted_src);\n else\n ac_private::iv_shift_r(aligned_src, rshift, shifted_src);\n aligned_src = shifted_src;\n }\n unsigned mask_lsi = ac_private::all_ones << trg_lsb;\n unsigned mask_msi = ac_private::all_ones >> (31-trg_msb);\n if(Nr==1)\n mask_lsi &= mask_msi;\n int *v = d_iv+trg_lsi;\n v[0] ^= (v[0] ^ ((unsigned) aligned_src[0])) & mask_lsi;\n for(int k=1; k < Nr-1; k++)\n v[k] = aligned_src[k];\n if(Nr > 1)\n v[Nr-1] ^= (v[Nr-1] ^ ((unsigned) aligned_src[Nr-1])) & mask_msi;\n if(Is_MSB) {\n const unsigned rem = 31-trg_msb;\n if(rem) {\n v[Nr-1] = S ? ((signed) ((unsigned) v[Nr-1] << rem) >> rem)\n : ((unsigned) v[Nr-1] << rem) >> rem;\n } else if(!S) {\n v[Nr] = 0;\n }\n }\n return *this;\n }\n };\n}\n\nenum ac_q_mode { AC_TRN, AC_RND, AC_TRN_ZERO, AC_RND_ZERO, AC_RND_INF, AC_RND_MIN_INF, AC_RND_CONV, AC_RND_CONV_ODD };\nenum ac_o_mode { AC_WRAP, AC_SAT, AC_SAT_ZERO, AC_SAT_SYM };\ntemplate class ac_fixed;\n\n//////////////////////////////////////////////////////////////////////////////\n// Arbitrary-Length Integer: ac_int\n//////////////////////////////////////////////////////////////////////////////\n\ntemplate\nclass ac_int : public ac_private::iv_conv<(W+31+!S)/32, S, W<=64>\n#ifndef __SYNTHESIS__\n__AC_INT_UTILITY_BASE\n#endif\n{\n#if defined(__SYNTHESIS__) && !defined(AC_IGNORE_BUILTINS)\n#pragma builtin\n#endif\n\n enum {N=(W+31+!S)/32};\n typedef ac_private::iv_conv ConvBase;\n typedef ac_private::iv Base;\n\n inline void bit_adjust() {\n const unsigned rem = (32-W)&31;\n Base::v[N-1] = S ? ((signed) ((unsigned) Base::v[N-1] << rem) >> rem) : (rem ?\n ((unsigned) Base::v[N-1] << rem) >> rem : 0);\n }\n\n inline bool is_neg() const { return S && Base::v[N-1] < 0; }\n\n // returns false if number is denormal\n template\n bool normalize_private(ac_int &exp, bool reserved_min_exp=false) {\n int expt = exp;\n int lshift = leading_sign();\n bool fully_normalized = true;\n ac_int min_exp;\n min_exp.template set_val();\n int max_shift = exp - min_exp - reserved_min_exp;\n if(lshift > max_shift) {\n lshift = ac_int(max_shift);\n expt = min_exp + reserved_min_exp;\n fully_normalized = false;\n } else {\n expt -= lshift;\n }\n if(Base::equal_zero()) {\n expt = 0;\n fully_normalized = true;\n }\n exp = expt;\n Base r;\n Base::shift_l(lshift, r);\n Base::operator=(r);\n bit_adjust();\n return fully_normalized;\n }\n\npublic:\n static const int width = W;\n static const int i_width = W;\n static const bool sign = S;\n static const ac_q_mode q_mode = AC_TRN;\n static const ac_o_mode o_mode = AC_WRAP;\n static const int e_width = 0;\n\n template\n struct rt {\n enum {\n mult_w = W+W2,\n mult_s = S||S2,\n plus_w = AC_MAX(W+(S2&&!S),W2+(S&&!S2))+1,\n plus_s = S||S2,\n minus_w = AC_MAX(W+(S2&&!S),W2+(S&&!S2))+1,\n minus_s = true,\n div_w = W+S2,\n div_s = S||S2,\n mod_w = AC_MIN(W,W2+(!S2&&S)),\n mod_s = S,\n logic_w = AC_MAX(W+(S2&&!S),W2+(S&&!S2)),\n logic_s = S||S2\n };\n typedef ac_int mult;\n typedef ac_int plus;\n typedef ac_int minus;\n typedef ac_int logic;\n typedef ac_int div;\n typedef ac_int mod;\n typedef ac_int arg1;\n };\n\n template\n struct rt_T {\n typedef typename ac_private::map::t map_T;\n typedef typename ac_private::rt_ac_int_T::template op1::mult mult;\n typedef typename ac_private::rt_ac_int_T::template op1::plus plus;\n typedef typename ac_private::rt_ac_int_T::template op1::minus minus;\n typedef typename ac_private::rt_ac_int_T::template op1::minus2 minus2;\n typedef typename ac_private::rt_ac_int_T::template op1::logic logic;\n typedef typename ac_private::rt_ac_int_T::template op1::div div;\n typedef typename ac_private::rt_ac_int_T::template op1::div2 div2;\n typedef ac_int arg1;\n };\n\n struct rt_unary {\n enum {\n neg_w = W+1,\n neg_s = true,\n mag_sqr_w = 2*W-S,\n mag_sqr_s = false,\n mag_w = W+S,\n mag_s = false,\n leading_sign_w = ac::log2_ceil::val,\n leading_sign_s = false\n };\n typedef ac_int neg;\n typedef ac_int mag_sqr;\n typedef ac_int mag;\n typedef ac_int leading_sign;\n template\n struct set {\n enum { sum_w = W + ac::log2_ceil::val, sum_s = S};\n typedef ac_int sum;\n };\n };\n\n template friend class ac_int;\n template friend class ac_fixed;\n ac_int() {\n#if !defined(__SYNTHESIS__) && defined(AC_DEFAULT_IN_RANGE)\n bit_adjust();\n#endif\n }\n template\n inline ac_int (const ac_int &op) {\n Base::operator =(op);\n bit_adjust();\n }\n\n inline ac_int( bool b ) : ConvBase(b) { bit_adjust(); }\n inline ac_int( char b ) : ConvBase(b) { bit_adjust(); }\n inline ac_int( signed char b ) : ConvBase(b) { bit_adjust(); }\n inline ac_int( unsigned char b ) : ConvBase(b) { bit_adjust(); }\n inline ac_int( signed short b ) : ConvBase(b) { bit_adjust(); }\n inline ac_int( unsigned short b ) : ConvBase(b) { bit_adjust(); }\n inline ac_int( signed int b ) : ConvBase(b) { bit_adjust(); }\n inline ac_int( unsigned int b ) : ConvBase(b) { bit_adjust(); }\n inline ac_int( signed long b ) : ConvBase(b) { bit_adjust(); }\n inline ac_int( unsigned long b ) : ConvBase(b) { bit_adjust(); }\n inline ac_int( Slong b ) : ConvBase(b) { bit_adjust(); }\n inline ac_int( Ulong b ) : ConvBase(b) { bit_adjust(); }\n inline ac_int( double d ) : ConvBase(d) { bit_adjust(); }\n\n\n#if (defined(_MSC_VER) && !defined(__EDG__))\n#pragma warning( push )\n#pragma warning( disable: 4700 )\n#endif\n#if (defined(__GNUC__) && ( __GNUC__ == 4 && __GNUC_MINOR__ >= 6 || __GNUC__ > 4 ) && !defined(__EDG__))\n#pragma GCC diagnostic push\n#pragma GCC diagnostic ignored \"-Wuninitialized\"\n#endif\n#if defined(__clang__)\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wuninitialized\"\n#endif\n template\n inline ac_int &set_val() {\n const unsigned int all_ones = (unsigned) ~0;\n if(V == AC_VAL_DC) {\n ac_int r;\n Base::operator =(r);\n bit_adjust();\n }\n else if(V == AC_VAL_0 || V == AC_VAL_MIN || V == AC_VAL_QUANTUM) {\n Base::operator =(0);\n if(S && V == AC_VAL_MIN) {\n const unsigned int rem = (W-1)&31;\n Base::v[N-1] = (all_ones << rem);\n } else if(V == AC_VAL_QUANTUM)\n Base::v[0] = 1;\n }\n else { // AC_VAL_MAX\n Base::operator =(-1);\n const unsigned int rem = (32-W - !S )&31;\n Base::v[N-1] = (all_ones >> 1) >> rem;\n }\n return *this;\n }\n#if (defined(_MSC_VER) && !defined(__EDG__))\n#pragma warning( pop )\n#endif\n#if (defined(__GNUC__) && ( __GNUC__ == 4 && __GNUC_MINOR__ >= 6 || __GNUC__ > 4 ) && !defined(__EDG__))\n#pragma GCC diagnostic pop\n#endif\n#if defined(__clang__)\n#pragma clang diagnostic pop\n#endif\n\n // Explicit conversion functions to C built-in types -------------\n inline int to_int() const { return Base::v[0]; }\n inline unsigned to_uint() const { return Base::v[0]; }\n inline long to_long() const {\n return ac_private::long_w == 32 ? (long) Base::v[0] : (long) Base::to_int64();\n }\n inline unsigned long to_ulong() const {\n return ac_private::long_w == 32 ? (unsigned long) Base::v[0] : (unsigned long) Base::to_uint64();\n }\n inline Slong to_int64() const { return Base::to_int64(); }\n inline Ulong to_uint64() const { return Base::to_uint64(); }\n inline double to_double() const { return Base::to_double(); }\n\n inline int length() const { return W; }\n\n inline std::string to_string(ac_base_mode base_rep, bool sign_mag = false, bool pad_to_width = false) const {\n // base_rep == AC_DEC => sign_mag == don't care (always print decimal in sign magnitude)\n // base_rep == AC_DEC => pad_to_width == don't care\n char r[N*32+4] = {0};\n int i = 0;\n if(sign_mag)\n r[i++] = is_neg() ? '-' : '+';\n else if (base_rep == AC_DEC && is_neg())\n r[i++] = '-';\n if(base_rep != AC_DEC) {\n r[i++] = '0';\n r[i++] = base_rep == AC_BIN ? 'b' : (base_rep == AC_OCT ? 'o' : 'x');\n }\n int str_w;\n if( (base_rep == AC_DEC || sign_mag) && is_neg() ) {\n ac_int mag = operator -();\n str_w = ac_private::to_string(mag.v, W+!pad_to_width, sign_mag, base_rep, false, pad_to_width, r+i);\n } else if(pad_to_width) {\n ac_int tmp = *this;\n str_w = ac_private::to_string(tmp.v, W, sign_mag, base_rep, false, true, r+i);\n } else {\n ac_int tmp = *this;\n str_w = ac_private::to_string(tmp.v, W+!S, sign_mag, base_rep, false, false, r+i);\n }\n if(!str_w) {\n r[i] = '0';\n r[i+1] = 0;\n }\n return std::string(r);\n }\n inline static std::string type_name() {\n const char *tf[] = {\",false>\", \",true>\"};\n std::string r = \"ac_int<\";\n r += ac_int<32,true>(W).to_string(AC_DEC);\n r += tf[S];\n return r;\n }\n\n // Arithmetic : Binary ----------------------------------------------------\n template\n typename rt::mult operator *( const ac_int &op2) const {\n typename rt::mult r;\n Base::mult(op2, r);\n return r;\n }\n template\n typename rt::plus operator +( const ac_int &op2) const {\n typename rt::plus r;\n Base::add(op2, r);\n return r;\n }\n template\n typename rt::minus operator -( const ac_int &op2) const {\n typename rt::minus r;\n Base::sub(op2, r);\n return r;\n }\n#if (defined(__GNUC__) && ( __GNUC__ == 4 && __GNUC_MINOR__ >= 6 || __GNUC__ > 4 ) && !defined(__EDG__))\n#pragma GCC diagnostic push\n#pragma GCC diagnostic ignored \"-Wenum-compare\"\n#pragma GCC diagnostic ignored \"-Wsign-compare\"\n#endif\n template\n typename rt::div operator /( const ac_int &op2) const {\n typename rt::div r;\n enum {Nminus = ac_int::N, N2 = ac_int::N, N2minus = ac_int::N,\n num_s = S + (Nminus > N), den_s = S2 + (N2minus > N2), Nr = rt::div::N };\n Base::template div(op2, r);\n return r;\n }\n template\n typename rt::mod operator %( const ac_int &op2) const {\n typename rt::mod r;\n enum {Nminus = ac_int::N, N2 = ac_int::N, N2minus = ac_int::N,\n num_s = S + (Nminus > N), den_s = S2 + (N2minus > N2), Nr = rt::mod::N };\n Base::template rem(op2, r);\n return r;\n }\n#if (defined(__GNUC__) && ( __GNUC__ == 4 && __GNUC_MINOR__ >= 6 || __GNUC__ > 4 ) && !defined(__EDG__))\n#pragma GCC diagnostic pop\n#endif\n // Arithmetic assign ------------------------------------------------------\n template\n ac_int &operator *=( const ac_int &op2) {\n Base r;\n Base::mult(op2, r);\n Base::operator=(r);\n bit_adjust();\n return *this;\n }\n template\n ac_int &operator +=( const ac_int &op2) {\n Base r;\n Base::add(op2, r);\n Base::operator=(r);\n bit_adjust();\n return *this;\n }\n template\n ac_int &operator -=( const ac_int &op2) {\n Base r;\n Base::sub(op2, r);\n Base::operator=(r);\n bit_adjust();\n return *this;\n }\n#if (defined(__GNUC__) && ( __GNUC__ == 4 && __GNUC_MINOR__ >= 6 || __GNUC__ > 4 ) && !defined(__EDG__))\n#pragma GCC diagnostic push\n#pragma GCC diagnostic ignored \"-Wenum-compare\"\n#pragma GCC diagnostic ignored \"-Wsign-compare\"\n#endif\n template\n ac_int &operator /=( const ac_int &op2) {\n enum {Nminus = ac_int::N, N2 = ac_int::N, N2minus = ac_int::N,\n num_s = S + (Nminus > N), den_s = S2 + (N2minus > N2), Nr = N };\n Base r;\n Base::template div(op2, r);\n Base::operator=(r);\n bit_adjust();\n return *this;\n }\n template\n ac_int &operator %=( const ac_int &op2) {\n enum {Nminus = ac_int::N, N2 = ac_int::N, N2minus = ac_int::N,\n num_s = S + (Nminus > N), den_s = S2 + (N2minus > N2), Nr = N };\n Base r;\n Base::template rem(op2, r);\n Base::operator=(r);\n bit_adjust();\n return *this;\n }\n#if (defined(__GNUC__) && ( __GNUC__ == 4 && __GNUC_MINOR__ >= 6 || __GNUC__ > 4 ) && !defined(__EDG__))\n#pragma GCC diagnostic pop\n#endif\n // Arithmetic prefix increment, decrement ----------------------------------\n ac_int &operator ++() {\n Base::increment();\n bit_adjust();\n return *this;\n }\n ac_int &operator --() {\n Base::decrement();\n bit_adjust();\n return *this;\n }\n // Arithmetic postfix increment, decrement ---------------------------------\n const ac_int operator ++(int) {\n ac_int t = *this;\n Base::increment();\n bit_adjust();\n return t;\n }\n const ac_int operator --(int) {\n ac_int t = *this;\n Base::decrement();\n bit_adjust();\n return t;\n }\n // Arithmetic Unary --------------------------------------------------------\n ac_int operator +() const {\n return *this;\n }\n typename rt_unary::neg operator -() const {\n typename rt_unary::neg r;\n Base::neg(r);\n r.bit_adjust();\n return r;\n }\n // ! ------------------------------------------------------------------------\n bool operator ! () const {\n return Base::equal_zero();\n }\n\n // Bitwise (arithmetic) unary: complement -----------------------------\n ac_int operator ~() const {\n ac_int r;\n Base::bitwise_complement(r);\n return r;\n }\n // Bitwise (non-arithmetic) bit_complement -----------------------------\n ac_int bit_complement() const {\n ac_int r;\n Base::bitwise_complement(r);\n r.bit_adjust();\n return r;\n }\n // Bitwise (arithmetic): and, or, xor ----------------------------------\n template\n typename rt::logic operator & ( const ac_int &op2) const {\n typename rt::logic r;\n Base::bitwise_and(op2, r);\n return r;\n }\n template\n typename rt::logic operator | ( const ac_int &op2) const {\n typename rt::logic r;\n Base::bitwise_or(op2, r);\n return r;\n }\n template\n typename rt::logic operator ^ ( const ac_int &op2) const {\n typename rt::logic r;\n Base::bitwise_xor(op2, r);\n return r;\n }\n // Bitwise assign (not arithmetic): and, or, xor ----------------------------\n template\n ac_int &operator &= ( const ac_int &op2 ) {\n Base r;\n Base::bitwise_and(op2, r);\n Base::operator=(r);\n bit_adjust();\n return *this;\n }\n template\n ac_int &operator |= ( const ac_int &op2 ) {\n Base r;\n Base::bitwise_or(op2, r);\n Base::operator=(r);\n bit_adjust();\n return *this;\n }\n template\n ac_int &operator ^= ( const ac_int &op2 ) {\n Base r;\n Base::bitwise_xor(op2, r);\n Base::operator=(r);\n bit_adjust();\n return *this;\n }\n // Shift (result constrained by left operand) -------------------------------\n template\n ac_int operator << ( const ac_int &op2 ) const {\n ac_int r;\n Base::shift_l2(op2.to_int(), r);\n r.bit_adjust();\n return r;\n }\n template\n ac_int operator << ( const ac_int &op2 ) const {\n ac_int r;\n Base::shift_l(op2.to_uint(), r);\n r.bit_adjust();\n return r;\n }\n template\n ac_int operator >> ( const ac_int &op2 ) const {\n ac_int r;\n Base::shift_r2(op2.to_int(), r);\n r.bit_adjust();\n return r;\n }\n template\n ac_int operator >> ( const ac_int &op2 ) const {\n ac_int r;\n Base::shift_r(op2.to_uint(), r);\n r.bit_adjust();\n return r;\n }\n // Shift assign ------------------------------------------------------------\n template\n ac_int &operator <<= ( const ac_int &op2 ) {\n Base r;\n Base::shift_l2(op2.to_int(), r);\n Base::operator=(r);\n bit_adjust();\n return *this;\n }\n template\n ac_int &operator <<= ( const ac_int &op2 ) {\n Base r;\n Base::shift_l(op2.to_uint(), r);\n Base::operator=(r);\n bit_adjust();\n return *this;\n }\n template\n ac_int &operator >>= ( const ac_int &op2 ) {\n Base r;\n Base::shift_r2(op2.to_int(), r);\n Base::operator=(r);\n bit_adjust();\n return *this;\n }\n template\n ac_int &operator >>= ( const ac_int &op2 ) {\n Base r;\n Base::shift_r(op2.to_uint(), r);\n Base::operator=(r);\n bit_adjust();\n return *this;\n }\n // Relational ---------------------------------------------------------------\n template\n bool operator == ( const ac_int &op2) const {\n return Base::equal(op2);\n }\n template\n bool operator != ( const ac_int &op2) const {\n return !Base::equal(op2);\n }\n template\n bool operator < ( const ac_int &op2) const {\n return Base::less_than(op2);\n }\n template\n bool operator >= ( const ac_int &op2) const {\n return !Base::less_than(op2);\n }\n template\n bool operator > ( const ac_int &op2) const {\n return Base::greater_than(op2);\n }\n template\n bool operator <= ( const ac_int &op2) const {\n return !Base::greater_than(op2);\n }\n\n // Bit and Slice Select -----------------------------------------------------\n template\n inline const ac_int slc(const ac_int &index) const {\n ac_int r;\n AC_ASSERT(index.to_int() >= 0, \"Attempting to read slc with negative indeces\");\n unsigned uindex = ac_int(index).to_uint();\n Base::shift_r(uindex, r);\n r.bit_adjust();\n return r;\n }\n\n template\n inline const ac_int slc(signed index) const {\n ac_int r;\n AC_ASSERT(index >= 0, \"Attempting to read slc with negative indeces\");\n unsigned uindex = index & ((unsigned)~0 >> 1);\n Base::shift_r(uindex, r);\n r.bit_adjust();\n return r;\n }\n template\n inline const ac_int slc(unsigned uindex) const {\n ac_int r;\n Base::shift_r(uindex, r);\n r.bit_adjust();\n return r;\n }\n\n template\n inline ac_int &set_slc(const ac_int lsb, const ac_int &slc) {\n AC_ASSERT(lsb.to_int() + W2 <= W && lsb.to_int() >= 0, \"Out of bounds set_slc\");\n if(W == W2)\n Base::operator =(slc);\n else {\n unsigned ulsb = ac_int(lsb).to_uint();\n Base::set_slc(ulsb, W2, (ac_int) slc);\n }\n bit_adjust(); // in case sign bit was assigned\n return *this;\n }\n template\n inline ac_int &set_slc(signed lsb, const ac_int &slc) {\n AC_ASSERT(lsb + W2 <= W && lsb >= 0, \"Out of bounds set_slc\");\n if(W == W2)\n Base::operator =(slc);\n else {\n unsigned ulsb = lsb & ((unsigned)~0 >> 1);\n Base::set_slc(ulsb, W2, (ac_int) slc);\n }\n bit_adjust(); // in case sign bit was assigned\n return *this;\n }\n template\n inline ac_int &set_slc(unsigned ulsb, const ac_int &slc) {\n AC_ASSERT(ulsb + W2 <= W, \"Out of bounds set_slc\");\n if(W == W2)\n Base::operator =(slc);\n else\n Base::set_slc(ulsb, W2, (ac_int) slc);\n bit_adjust(); // in case sign bit was assigned\n return *this;\n }\n\n template\n inline ac::sliceref range() {\n #if __cplusplus > 199711L\n static_assert(Msb-Lsb+1 > 0, \"Range length not positive: MSB < LSB\");\n static_assert(Lsb >= 0, \"LSB is negative\");\n static_assert(Msb < W, \"MSB >= W\");\n #endif\n return ac::sliceref(Base::v);\n }\n\n class ac_bitref {\n# if defined(__SYNTHESIS__) && !defined(AC_IGNORE_BUILTINS)\n# pragma builtin\n# endif\n ac_int &d_bv;\n unsigned d_index;\n public:\n ac_bitref( ac_int *bv, unsigned index=0 ) : d_bv(*bv), d_index(index) {}\n operator bool () const { return (d_index < W) ? (d_bv.v[d_index>>5]>>(d_index&31) & 1) : 0; }\n\n template\n operator ac_int () const { return operator bool (); }\n\n inline ac_bitref operator = ( int val ) {\n // lsb of int (val&1) is written to bit\n if(d_index < W) {\n int *pval = &d_bv.v[d_index>>5];\n int shift = d_index & 31;\n unsigned int mask = 1u << shift;\n *pval = (*pval & ~mask) | ((val & 1) << shift);\n d_bv.bit_adjust(); // in case sign bit was assigned\n }\n return *this;\n }\n template\n inline ac_bitref operator = ( const ac_int &val ) {\n return operator =(val.to_int());\n }\n inline ac_bitref operator = ( const ac_bitref &val ) {\n return operator =((int) (bool) val);\n }\n };\n\n ac_bitref operator [] ( unsigned int uindex) {\n AC_ASSERT(uindex < W, \"Attempting to read bit beyond MSB\");\n ac_bitref bvh( this, uindex );\n return bvh;\n }\n ac_bitref operator [] ( int index) {\n AC_ASSERT(index >= 0, \"Attempting to read bit with negative index\");\n unsigned uindex = index & ((unsigned)~0 >> 1);\n AC_ASSERT(uindex < W, \"Attempting to read bit beyond MSB\");\n ac_bitref bvh( this, uindex );\n return bvh;\n }\n template\n ac_bitref operator [] ( const ac_int &index) {\n AC_ASSERT(index.to_int() >= 0, \"Attempting to read bit with negative index\");\n unsigned uindex = ac_int(index).to_uint();\n AC_ASSERT(uindex < W, \"Attempting to read bit beyond MSB\");\n ac_bitref bvh( this, uindex );\n return bvh;\n }\n bool operator [] ( unsigned int uindex) const {\n AC_ASSERT(uindex < W, \"Attempting to read bit beyond MSB\");\n return (uindex < W) ? (Base::v[uindex>>5]>>(uindex&31) & 1) : 0;\n }\n bool operator [] ( int index) const {\n AC_ASSERT(index >= 0, \"Attempting to read bit with negative index\");\n unsigned uindex = index & ((unsigned)~0 >> 1);\n AC_ASSERT(uindex < W, \"Attempting to read bit beyond MSB\");\n return (uindex < W) ? (Base::v[uindex>>5]>>(uindex&31) & 1) : 0;\n }\n template\n bool operator [] ( const ac_int &index) const {\n AC_ASSERT(index.to_int() >= 0, \"Attempting to read bit with negative index\");\n unsigned uindex = ac_int(index).to_uint();\n AC_ASSERT(uindex < W, \"Attempting to read bit beyond MSB\");\n return (uindex < W) ? (Base::v[uindex>>5]>>(uindex&31) & 1) : 0;\n }\n\n void reverse() {\n if(W > 32) {\n typedef ac_int intW_t;\n typename intW_t::Base r0(*this);\n intW_t r;\n r0.reverse(r);\n r.template const_shift_r(r);\n *this=ac_int(r);\n } else {\n *this=ac_int(ac_private::reverse_u((unsigned)Base::v[0]));\n }\n }\n\n ac_int reversed() const {\n if(W > 32) {\n typedef ac_int intW_t;\n typename intW_t::Base r0(*this);\n intW_t r;\n r0.reverse(r);\n r.template const_shift_r(r);\n return ac_int(r);\n } else {\n return ac_int(ac_private::reverse_u((unsigned)Base::v[0]));\n }\n }\n\n typename rt_unary::leading_sign leading_sign() const {\n unsigned ls = Base::leading_bits(S & (Base::v[N-1] < 0)) - (32*N - W)-S;\n return ls;\n }\n typename rt_unary::leading_sign leading_sign(bool &all_sign) const {\n unsigned ls = Base::leading_bits(S & (Base::v[N-1] < 0)) - (32*N - W)-S;\n all_sign = (ls == W-S);\n return ls;\n }\n // returns false if number is denormal\n template\n bool normalize(ac_int &exp) {\n return normalize_private(exp);\n }\n // returns false if number is denormal, minimum exponent is reserved (usually for encoding special values/errors)\n template\n bool normalize_RME(ac_int &exp) {\n return normalize_private(exp, true);\n }\n bool and_reduce() const {\n return ac_private::iv_equal_ones_to(Base::v);\n }\n bool or_reduce() const {\n return !Base::equal_zero();\n }\n bool xor_reduce() const {\n unsigned r = Base::v[N-1];\n if(S) {\n const unsigned rem = (32-W)&31;\n r = (r << rem) >> rem;\n }\n if(N > 1)\n r ^= Base::v[N-2];\n if(N > 2) {\n for(int i=0; i 16)\n r ^= r >> 16;\n if(W > 8)\n r ^= r >> 8;\n if(W > 4)\n r ^= r >> 4;\n if(W > 2)\n r ^= r >> 2;\n if(W > 1)\n r ^= r >> 1;\n return r&1;\n }\n\n inline void bit_fill_hex(const char *str) {\n // Zero Pads if str is too short, throws ms bits away if str is too long\n // Asserts if anything other than 0-9a-fA-F is encountered\n ac_int res = 0;\n while(*str) {\n char c = *str;\n int h = 0;\n if(c >= '0' && c <= '9')\n h = c - '0';\n else if(c >= 'A' && c <= 'F')\n h = c - 'A' + 10;\n else if(c >= 'a' && c <= 'f')\n h = c - 'a' + 10;\n else {\n AC_ASSERT(!c, \"Invalid hex digit\");\n break;\n }\n res <<= ac_int<3,false>(4);\n res |= ac_int<4,false>(h);\n str++;\n }\n *this = res;\n }\n\n template\n inline void bit_fill(const int (&ivec)[Na], bool bigendian=true) {\n // bit_fill from integer vector\n // if W > N*32, missing most significant bits are zeroed\n // if W < N*32, additional bits in ivec are ignored (no overflow checking)\n // Example:\n // ac_int<80,false> x; int vec[] = { 0xffffa987, 0x6543210f, 0xedcba987 };\n // x.bit_fill(vec); // vec[0] fill bits 79-64\n enum { N0 = (W+31)/32, M = AC_MIN(N0,Na) };\n ac_int res = 0;\n for(int i=0; i < M; i++)\n res.set_slc(i*32, ac_int<32>(ivec[bigendian ? M-1-i : i]));\n *this = res;\n }\n};\n\nnamespace ac {\n template\n struct rt_2T {\n typedef typename ac_private::map::t map_T;\n typedef typename ac_private::map::t map_T2;\n typedef typename map_T::template rt_T< map_T2 >::mult mult;\n typedef typename map_T::template rt_T< map_T2 >::plus plus;\n typedef typename map_T::template rt_T< map_T2 >::minus minus;\n typedef typename map_T::template rt_T< map_T2 >::minus2 minus2;\n typedef typename map_T::template rt_T< map_T2 >::logic logic;\n typedef typename map_T::template rt_T< map_T2 >::div div;\n typedef typename map_T::template rt_T< map_T2 >::div2 div2;\n };\n}\n\nnamespace ac {\n template\n struct ac_int_represent {\n enum { t_w = ac_private::c_type_params::W, t_s = ac_private::c_type_params::S };\n typedef ac_int type;\n };\n template<> struct ac_int_represent {};\n template<> struct ac_int_represent {};\n template\n struct ac_int_represent< ac_int > {\n typedef ac_int type;\n };\n}\n\nnamespace ac_private {\n template\n struct rt_ac_int_T< ac_int > {\n typedef ac_int i2_t;\n template\n struct op1 {\n typedef ac_int i_t;\n typedef typename i_t::template rt::mult mult;\n typedef typename i_t::template rt::plus plus;\n typedef typename i_t::template rt::minus minus;\n typedef typename i2_t::template rt::minus minus2;\n typedef typename i_t::template rt::logic logic;\n typedef typename i_t::template rt::div div;\n typedef typename i2_t::template rt::div div2;\n typedef typename i_t::template rt::mod mod;\n typedef typename i2_t::template rt::mod mod2;\n };\n };\n\n template\n struct rt_ac_int_T< c_type > {\n typedef typename ac::ac_int_represent::type i2_t;\n enum { W2 = i2_t::width, S2 = i2_t::sign };\n template\n struct op1 {\n typedef ac_int i_t;\n typedef typename i_t::template rt::mult mult;\n typedef typename i_t::template rt::plus plus;\n typedef typename i_t::template rt::minus minus;\n typedef typename i2_t::template rt::minus minus2;\n typedef typename i_t::template rt::logic logic;\n typedef typename i_t::template rt::div div;\n typedef typename i2_t::template rt::div div2;\n typedef typename i_t::template rt::mod mod;\n typedef typename i2_t::template rt::mod mod2;\n };\n };\n}\n\n\n// Specializations for constructors on integers that bypass bit adjusting\n// and are therefore more efficient\ntemplate<> inline ac_int<1,true>::ac_int( bool b ) { v[0] = b ? -1 : 0; }\n\ntemplate<> inline ac_int<1,false>::ac_int( bool b ) { v[0] = b; }\ntemplate<> inline ac_int<1,false>::ac_int( signed char b ) { v[0] = b&1; }\ntemplate<> inline ac_int<1,false>::ac_int( unsigned char b ) { v[0] = b&1; }\ntemplate<> inline ac_int<1,false>::ac_int( signed short b ) { v[0] = b&1; }\ntemplate<> inline ac_int<1,false>::ac_int( unsigned short b ) { v[0] = b&1; }\ntemplate<> inline ac_int<1,false>::ac_int( signed int b ) { v[0] = b&1; }\ntemplate<> inline ac_int<1,false>::ac_int( unsigned int b ) { v[0] = b&1; }\ntemplate<> inline ac_int<1,false>::ac_int( signed long b ) { v[0] = b&1; }\ntemplate<> inline ac_int<1,false>::ac_int( unsigned long b ) { v[0] = b&1; }\ntemplate<> inline ac_int<1,false>::ac_int( Ulong b ) { v[0] = (int) b&1; }\ntemplate<> inline ac_int<1,false>::ac_int( Slong b ) { v[0] = (int) b&1; }\n\ntemplate<> inline ac_int<8,true>::ac_int( bool b ) { v[0] = b; }\ntemplate<> inline ac_int<8,false>::ac_int( bool b ) { v[0] = b; }\ntemplate<> inline ac_int<8,true>::ac_int( signed char b ) { v[0] = b; }\ntemplate<> inline ac_int<8,false>::ac_int( unsigned char b ) { v[0] = b; }\ntemplate<> inline ac_int<8,true>::ac_int( unsigned char b ) { v[0] = (signed char) b; }\ntemplate<> inline ac_int<8,false>::ac_int( signed char b ) { v[0] = (unsigned char) b; }\n\ntemplate<> inline ac_int<16,true>::ac_int( bool b ) { v[0] = b; }\ntemplate<> inline ac_int<16,false>::ac_int( bool b ) { v[0] = b; }\ntemplate<> inline ac_int<16,true>::ac_int( signed char b ) { v[0] = b; }\ntemplate<> inline ac_int<16,false>::ac_int( unsigned char b ) { v[0] = b; }\ntemplate<> inline ac_int<16,true>::ac_int( unsigned char b ) { v[0] = b; }\ntemplate<> inline ac_int<16,false>::ac_int( signed char b ) { v[0] = (unsigned short) b; }\ntemplate<> inline ac_int<16,true>::ac_int( signed short b ) { v[0] = b; }\ntemplate<> inline ac_int<16,false>::ac_int( unsigned short b ) { v[0] = b; }\ntemplate<> inline ac_int<16,true>::ac_int( unsigned short b ) { v[0] = (signed short) b; }\ntemplate<> inline ac_int<16,false>::ac_int( signed short b ) { v[0] = (unsigned short) b; }\n\ntemplate<> inline ac_int<32,true>::ac_int( signed int b ) { v[0] = b; }\ntemplate<> inline ac_int<32,true>::ac_int( unsigned int b ) { v[0] = b; }\ntemplate<> inline ac_int<32,false>::ac_int( signed int b ) { v[0] = b; v[1] = 0;}\ntemplate<> inline ac_int<32,false>::ac_int( unsigned int b ) { v[0] = b; v[1] = 0;}\n\ntemplate<> inline ac_int<32,true>::ac_int( Slong b ) { v[0] = (int) b; }\ntemplate<> inline ac_int<32,true>::ac_int( Ulong b ) { v[0] = (int) b; }\ntemplate<> inline ac_int<32,false>::ac_int( Slong b ) { v[0] = (int) b; v[1] = 0;}\ntemplate<> inline ac_int<32,false>::ac_int( Ulong b ) { v[0] = (int) b; v[1] = 0;}\n\ntemplate<> inline ac_int<64,true>::ac_int( Slong b ) { v[0] = (int) b; v[1] = (int) (b >> 32); }\ntemplate<> inline ac_int<64,true>::ac_int( Ulong b ) { v[0] = (int) b; v[1] = (int) (b >> 32);}\ntemplate<> inline ac_int<64,false>::ac_int( Slong b ) { v[0] = (int) b; v[1] = (int) ((Ulong) b >> 32); v[2] = 0; }\ntemplate<> inline ac_int<64,false>::ac_int( Ulong b ) { v[0] = (int) b; v[1] = (int) (b >> 32); v[2] = 0; }\n\n// Stream --------------------------------------------------------------------\n\ntemplate\ninline std::ostream& operator << (std::ostream &os, const ac_int &x) {\n#ifndef __SYNTHESIS__\n if ((os.flags() & std::ios::hex) != 0) {\n os << x.to_string(AC_HEX);\n } else if ((os.flags() & std::ios::oct) != 0) {\n os << x.to_string(AC_OCT);\n } else {\n os << x.to_string(AC_DEC);\n }\n#endif\n return os;\n}\n\n// Macros for Binary Operators with Integers --------------------------------------------\n\n#define BIN_OP_WITH_INT(BIN_OP, C_TYPE, WI, SI, RTYPE) \\\n template \\\n inline typename ac_int::template rt::RTYPE operator BIN_OP ( C_TYPE i_op, const ac_int &op) { \\\n return ac_int(i_op).operator BIN_OP (op); \\\n } \\\n template \\\n inline typename ac_int::template rt::RTYPE operator BIN_OP ( const ac_int &op, C_TYPE i_op) { \\\n return op.operator BIN_OP (ac_int(i_op)); \\\n }\n\n#define REL_OP_WITH_INT(REL_OP, C_TYPE, W2, S2) \\\n template \\\n inline bool operator REL_OP ( const ac_int &op, C_TYPE op2) { \\\n return op.operator REL_OP (ac_int(op2)); \\\n } \\\n template \\\n inline bool operator REL_OP ( C_TYPE op2, const ac_int &op) { \\\n return ac_int(op2).operator REL_OP (op); \\\n }\n\n#define ASSIGN_OP_WITH_INT(ASSIGN_OP, C_TYPE, W2, S2) \\\n template \\\n inline ac_int &operator ASSIGN_OP ( ac_int &op, C_TYPE op2) { \\\n return op.operator ASSIGN_OP (ac_int(op2)); \\\n }\n\n#define OPS_WITH_INT(C_TYPE, WI, SI) \\\n BIN_OP_WITH_INT(*, C_TYPE, WI, SI, mult) \\\n BIN_OP_WITH_INT(+, C_TYPE, WI, SI, plus) \\\n BIN_OP_WITH_INT(-, C_TYPE, WI, SI, minus) \\\n BIN_OP_WITH_INT(/, C_TYPE, WI, SI, div) \\\n BIN_OP_WITH_INT(%, C_TYPE, WI, SI, mod) \\\n BIN_OP_WITH_INT(>>, C_TYPE, WI, SI, arg1) \\\n BIN_OP_WITH_INT(<<, C_TYPE, WI, SI, arg1) \\\n BIN_OP_WITH_INT(&, C_TYPE, WI, SI, logic) \\\n BIN_OP_WITH_INT(|, C_TYPE, WI, SI, logic) \\\n BIN_OP_WITH_INT(^, C_TYPE, WI, SI, logic) \\\n \\\n REL_OP_WITH_INT(==, C_TYPE, WI, SI) \\\n REL_OP_WITH_INT(!=, C_TYPE, WI, SI) \\\n REL_OP_WITH_INT(>, C_TYPE, WI, SI) \\\n REL_OP_WITH_INT(>=, C_TYPE, WI, SI) \\\n REL_OP_WITH_INT(<, C_TYPE, WI, SI) \\\n REL_OP_WITH_INT(<=, C_TYPE, WI, SI) \\\n \\\n ASSIGN_OP_WITH_INT(+=, C_TYPE, WI, SI) \\\n ASSIGN_OP_WITH_INT(-=, C_TYPE, WI, SI) \\\n ASSIGN_OP_WITH_INT(*=, C_TYPE, WI, SI) \\\n ASSIGN_OP_WITH_INT(/=, C_TYPE, WI, SI) \\\n ASSIGN_OP_WITH_INT(%=, C_TYPE, WI, SI) \\\n ASSIGN_OP_WITH_INT(>>=, C_TYPE, WI, SI) \\\n ASSIGN_OP_WITH_INT(<<=, C_TYPE, WI, SI) \\\n ASSIGN_OP_WITH_INT(&=, C_TYPE, WI, SI) \\\n ASSIGN_OP_WITH_INT(|=, C_TYPE, WI, SI) \\\n ASSIGN_OP_WITH_INT(^=, C_TYPE, WI, SI)\n\n// ------------------------------------- End of Macros for Binary Operators with Integers\n\n// for backward compatability with v3.9.0 and earlier define following macro\n#ifdef AC_INT_NS_FOR_MIXED_OPERATORS\nnamespace ac {\n namespace ops_with_other_types {\n#endif\n// Mixed Operators with Integers -----------------------------------------------\nOPS_WITH_INT(bool, 1, false)\nOPS_WITH_INT(char, 8, true)\nOPS_WITH_INT(signed char, 8, true)\nOPS_WITH_INT(unsigned char, 8, false)\nOPS_WITH_INT(short, 16, true)\nOPS_WITH_INT(unsigned short, 16, false)\nOPS_WITH_INT(int, 32, true)\nOPS_WITH_INT(unsigned int, 32, false)\nOPS_WITH_INT(long, ac_private::long_w, true)\nOPS_WITH_INT(unsigned long, ac_private::long_w, false)\nOPS_WITH_INT(Slong, 64, true)\nOPS_WITH_INT(Ulong, 64, false)\n// ----------------------------------------- End of Mixed Operators with Integers\n#ifdef AC_INT_NS_FOR_MIXED_OPERATORS\n } // ops_with_other_types namespace\n}\nusing namespace ac::ops_with_other_types;\n#endif\n\nnamespace ac {\n // Functions to fill bits\n\n template\n inline T bit_fill_hex(const char *str) {\n T res;\n res.bit_fill_hex(str);\n return res;\n }\n\n // returns bit_fill for type\n // example:\n // ac_int<80,false> x = ac::bit_fill< ac_int<80,false> > ((int [3]) {0xffffa987, 0x6543210f, 0xedcba987 });\n template\n inline T bit_fill(const int (&ivec)[N], bool bigendian=true) {\n T res;\n res.bit_fill(ivec, bigendian);\n return res;\n }\n\n} // ac namespace\n\n// Mixed Operators with Pointers -----------------------------------------------\n\n// Addition of ac_int and pointer\ntemplate\nT *operator +(T *ptr, const ac_int &op2) {\n return ptr + op2.to_int64();\n}\ntemplate\nT *operator +(const ac_int &op2, T *ptr) {\n return ptr + op2.to_int64();\n}\n// Subtraction of ac_int from pointer\ntemplate\nT *operator -(T *ptr, const ac_int &op2) {\n return ptr - op2.to_int64();\n}\n// ----------------------------------------- End of Mixed Operators with Pointers\n\nnamespace ac_intN {\n ///////////////////////////////////////////////////////////////////////////////\n // Predefined for ease of use\n ///////////////////////////////////////////////////////////////////////////////\n typedef ac_int<1, true> int1;\n typedef ac_int<1, false> uint1;\n typedef ac_int<2, true> int2;\n typedef ac_int<2, false> uint2;\n typedef ac_int<3, true> int3;\n typedef ac_int<3, false> uint3;\n typedef ac_int<4, true> int4;\n typedef ac_int<4, false> uint4;\n typedef ac_int<5, true> int5;\n typedef ac_int<5, false> uint5;\n typedef ac_int<6, true> int6;\n typedef ac_int<6, false> uint6;\n typedef ac_int<7, true> int7;\n typedef ac_int<7, false> uint7;\n typedef ac_int<8, true> int8;\n typedef ac_int<8, false> uint8;\n typedef ac_int<9, true> int9;\n typedef ac_int<9, false> uint9;\n typedef ac_int<10, true> int10;\n typedef ac_int<10, false> uint10;\n typedef ac_int<11, true> int11;\n typedef ac_int<11, false> uint11;\n typedef ac_int<12, true> int12;\n typedef ac_int<12, false> uint12;\n typedef ac_int<13, true> int13;\n typedef ac_int<13, false> uint13;\n typedef ac_int<14, true> int14;\n typedef ac_int<14, false> uint14;\n typedef ac_int<15, true> int15;\n typedef ac_int<15, false> uint15;\n typedef ac_int<16, true> int16;\n typedef ac_int<16, false> uint16;\n typedef ac_int<17, true> int17;\n typedef ac_int<17, false> uint17;\n typedef ac_int<18, true> int18;\n typedef ac_int<18, false> uint18;\n typedef ac_int<19, true> int19;\n typedef ac_int<19, false> uint19;\n typedef ac_int<20, true> int20;\n typedef ac_int<20, false> uint20;\n typedef ac_int<21, true> int21;\n typedef ac_int<21, false> uint21;\n typedef ac_int<22, true> int22;\n typedef ac_int<22, false> uint22;\n typedef ac_int<23, true> int23;\n typedef ac_int<23, false> uint23;\n typedef ac_int<24, true> int24;\n typedef ac_int<24, false> uint24;\n typedef ac_int<25, true> int25;\n typedef ac_int<25, false> uint25;\n typedef ac_int<26, true> int26;\n typedef ac_int<26, false> uint26;\n typedef ac_int<27, true> int27;\n typedef ac_int<27, false> uint27;\n typedef ac_int<28, true> int28;\n typedef ac_int<28, false> uint28;\n typedef ac_int<29, true> int29;\n typedef ac_int<29, false> uint29;\n typedef ac_int<30, true> int30;\n typedef ac_int<30, false> uint30;\n typedef ac_int<31, true> int31;\n typedef ac_int<31, false> uint31;\n typedef ac_int<32, true> int32;\n typedef ac_int<32, false> uint32;\n typedef ac_int<33, true> int33;\n typedef ac_int<33, false> uint33;\n typedef ac_int<34, true> int34;\n typedef ac_int<34, false> uint34;\n typedef ac_int<35, true> int35;\n typedef ac_int<35, false> uint35;\n typedef ac_int<36, true> int36;\n typedef ac_int<36, false> uint36;\n typedef ac_int<37, true> int37;\n typedef ac_int<37, false> uint37;\n typedef ac_int<38, true> int38;\n typedef ac_int<38, false> uint38;\n typedef ac_int<39, true> int39;\n typedef ac_int<39, false> uint39;\n typedef ac_int<40, true> int40;\n typedef ac_int<40, false> uint40;\n typedef ac_int<41, true> int41;\n typedef ac_int<41, false> uint41;\n typedef ac_int<42, true> int42;\n typedef ac_int<42, false> uint42;\n typedef ac_int<43, true> int43;\n typedef ac_int<43, false> uint43;\n typedef ac_int<44, true> int44;\n typedef ac_int<44, false> uint44;\n typedef ac_int<45, true> int45;\n typedef ac_int<45, false> uint45;\n typedef ac_int<46, true> int46;\n typedef ac_int<46, false> uint46;\n typedef ac_int<47, true> int47;\n typedef ac_int<47, false> uint47;\n typedef ac_int<48, true> int48;\n typedef ac_int<48, false> uint48;\n typedef ac_int<49, true> int49;\n typedef ac_int<49, false> uint49;\n typedef ac_int<50, true> int50;\n typedef ac_int<50, false> uint50;\n typedef ac_int<51, true> int51;\n typedef ac_int<51, false> uint51;\n typedef ac_int<52, true> int52;\n typedef ac_int<52, false> uint52;\n typedef ac_int<53, true> int53;\n typedef ac_int<53, false> uint53;\n typedef ac_int<54, true> int54;\n typedef ac_int<54, false> uint54;\n typedef ac_int<55, true> int55;\n typedef ac_int<55, false> uint55;\n typedef ac_int<56, true> int56;\n typedef ac_int<56, false> uint56;\n typedef ac_int<57, true> int57;\n typedef ac_int<57, false> uint57;\n typedef ac_int<58, true> int58;\n typedef ac_int<58, false> uint58;\n typedef ac_int<59, true> int59;\n typedef ac_int<59, false> uint59;\n typedef ac_int<60, true> int60;\n typedef ac_int<60, false> uint60;\n typedef ac_int<61, true> int61;\n typedef ac_int<61, false> uint61;\n typedef ac_int<62, true> int62;\n typedef ac_int<62, false> uint62;\n typedef ac_int<63, true> int63;\n typedef ac_int<63, false> uint63;\n} // namespace ac_intN\n\n#ifndef AC_NOT_USING_INTN\nusing namespace ac_intN;\n#endif\n\n///////////////////////////////////////////////////////////////////////////////\n\n#if (defined(_MSC_VER) && !defined(__EDG__))\n#pragma warning( disable: 4700 )\n#endif\n#if (defined(__GNUC__) && ( __GNUC__ == 4 && __GNUC_MINOR__ >= 6 || __GNUC__ > 4 ) && !defined(__EDG__))\n#pragma GCC diagnostic push\n#pragma GCC diagnostic ignored \"-Wuninitialized\"\n#endif\n#if defined(__clang__)\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wuninitialized\"\n#endif\n\n// Global templatized functions for easy initialization to special values\ntemplate\ninline ac_int value(ac_int) {\n ac_int r;\n return r.template set_val();\n}\n// forward declaration, otherwise GCC errors when calling init_array\ntemplate\ninline ac_fixed value(ac_fixed);\n\n#define SPECIAL_VAL_FOR_INTS_DC(C_TYPE, WI, SI) \\\ntemplate<> inline C_TYPE value(C_TYPE) { C_TYPE x; return x; }\n\n// -- C int types -----------------------------------------------------------------\n#define SPECIAL_VAL_FOR_INTS(C_TYPE, WI, SI) \\\ntemplate inline C_TYPE value(C_TYPE); \\\ntemplate<> inline C_TYPE value(C_TYPE) { return (C_TYPE)0; } \\\nSPECIAL_VAL_FOR_INTS_DC(C_TYPE, WI, SI) \\\ntemplate<> inline C_TYPE value(C_TYPE) { return (C_TYPE)1; } \\\ntemplate<> inline C_TYPE value(C_TYPE) { return (C_TYPE)(SI ? ~(((C_TYPE) 1) << (WI-1)) : (C_TYPE) -1); } \\\ntemplate<> inline C_TYPE value(C_TYPE) { return (C_TYPE)(SI ? ((C_TYPE) 1) << (WI-1) : (C_TYPE) 0); }\n\nSPECIAL_VAL_FOR_INTS(bool, 1, false)\nSPECIAL_VAL_FOR_INTS(char, 8, true)\nSPECIAL_VAL_FOR_INTS(signed char, 8, true)\nSPECIAL_VAL_FOR_INTS(unsigned char, 8, false)\nSPECIAL_VAL_FOR_INTS(short, 16, true)\nSPECIAL_VAL_FOR_INTS(unsigned short, 16, false)\nSPECIAL_VAL_FOR_INTS(int, 32, true)\nSPECIAL_VAL_FOR_INTS(unsigned int, 32, false)\nSPECIAL_VAL_FOR_INTS(long, ac_private::long_w, true)\nSPECIAL_VAL_FOR_INTS(unsigned long, ac_private::long_w, false)\nSPECIAL_VAL_FOR_INTS(Slong, 64, true)\nSPECIAL_VAL_FOR_INTS(Ulong, 64, false)\n\n#define INIT_ARRAY_SPECIAL_VAL_FOR_INTS(C_TYPE) \\\n template \\\n inline bool init_array(C_TYPE *a, int n) { \\\n C_TYPE t = value((C_TYPE) 0); \\\n for(int i=0; i < n; i++) \\\n a[i] = t; \\\n return true; \\\n }\n\nnamespace ac {\n// PUBLIC FUNCTIONS\n// function to initialize (or uninitialize) arrays\n template\n inline bool init_array(ac_int *a, int n) {\n ac_int t;\n t.template set_val();\n for(int i=0; i < n; i++)\n a[i] = t;\n return true;\n }\n\n INIT_ARRAY_SPECIAL_VAL_FOR_INTS(bool)\n INIT_ARRAY_SPECIAL_VAL_FOR_INTS(char)\n INIT_ARRAY_SPECIAL_VAL_FOR_INTS(signed char)\n INIT_ARRAY_SPECIAL_VAL_FOR_INTS(unsigned char)\n INIT_ARRAY_SPECIAL_VAL_FOR_INTS(signed short)\n INIT_ARRAY_SPECIAL_VAL_FOR_INTS(unsigned short)\n INIT_ARRAY_SPECIAL_VAL_FOR_INTS(signed int)\n INIT_ARRAY_SPECIAL_VAL_FOR_INTS(unsigned int)\n INIT_ARRAY_SPECIAL_VAL_FOR_INTS(signed long)\n INIT_ARRAY_SPECIAL_VAL_FOR_INTS(unsigned long)\n INIT_ARRAY_SPECIAL_VAL_FOR_INTS(signed long long)\n INIT_ARRAY_SPECIAL_VAL_FOR_INTS(unsigned long long)\n}\n\n#if (defined(_MSC_VER) && !defined(__EDG__))\n#pragma warning( pop )\n#endif\n#if (defined(__GNUC__) && ( __GNUC__ == 4 && __GNUC_MINOR__ >= 6 || __GNUC__ > 4 ) && !defined(__EDG__))\n#pragma GCC diagnostic pop\n#endif\n#if defined(__clang__)\n#pragma clang diagnostic pop\n#endif\n\n#ifdef __AC_NAMESPACE\n}\n#endif\n\n#endif // __AC_INT_H\n", "groundtruth": " for(int i=0; i < N; i++)\n", "crossfile_context": ""} {"task_id": "catapult", "path": "catapult/source/Boolean/E4_CTC/main.cpp", "left_context": "#include \n#include \n#include \n#include \n\nnamespace {\n\nenum {\n CDEPTH = 8,\n W_MAX = 1024,\n H_MAX = 1024,\n TEMP_MAX = 13700,\n};\n\ntypedef ac_ipl::RGB_1PPC IO_TYPE;\n\ntypedef ac_int::val, false> widthInType;\ntypedef ac_int::val, false> heightInType;\ntypedef ac_int::val, false> tempInType;\n\nvoid process_image(const unsigned char* rArray, const unsigned char* gArray, const unsigned char* bArray,\n unsigned char* rArrayOut, unsigned char* gArrayOut, unsigned char* bArrayOut,\n unsigned width, long height, unsigned tempInU) {\n ac_channel streamIn, streamOut;\n\n bool isFirstPixel; \n isFirstPixel += 1; \n isFirstPixel++; \n\n for (int i = int(height) - 1; i >= 0; i--) {\n", "right_context": " IO_TYPE pixIn;\n int img_idx = i * int(width) + j;\n pixIn.R = int(rArray[img_idx]);\n pixIn.G = int(gArray[img_idx]);\n pixIn.B = int(bArray[img_idx]);\n pixIn.TUSER = isFirstPixel; \n streamIn.write(pixIn);\n if (i == int(height) - 1 && j == 0) {\n isFirstPixel = false;\n }\n }\n }\n widthInType widthIn = width;\n heightInType heightIn = height;\n tempInType tempIn = tempInU;\n\n ac_ctc ctcObj;\n ctcObj.run(streamIn, streamOut, widthIn, heightIn, tempIn);\n\n for (int i = int(height) - 1; i >= 0; i--) {\n for (int j = 0; j < int(width); j++) {\n int img_idx = i * int(width) + j;\n IO_TYPE pixOut = streamOut.read();\n rArrayOut[img_idx] = pixOut.R.to_int();\n gArrayOut[img_idx] = pixOut.G.to_int();\n bArrayOut[img_idx] = pixOut.B.to_int();\n }\n }\n}\n} \n", "groundtruth": " for (int j = 0; j < int(width); j++) {\r\n", "crossfile_context": ""} {"task_id": "catapult", "path": "catapult/source/DA/E1_linear_program/tb.cpp", "left_context": "#include \"main.cpp\" \n#include \n#include \n#include \n\n\n#define MAX_ROWS 10\n#define MAX_COLS 10\n#define SCALING_FACTOR 10000 \nint main() {\n\n int32_t tableau[MAX_ROWS][MAX_COLS] = {\n {-3 * SCALING_FACTOR, -5 * SCALING_FACTOR, 0, 0, 0}, // Objective function: -z + 3x + 5y = 0, scaled\n {1 * SCALING_FACTOR, 1 * SCALING_FACTOR, 1 * SCALING_FACTOR, 0, 7 * SCALING_FACTOR}, // Constraint 1: x + y + s1 = 7, scaled\n {3 * SCALING_FACTOR, 2 * SCALING_FACTOR, 0, 1 * SCALING_FACTOR, 18 * SCALING_FACTOR} // Constraint 2: 3x + 2y + s2 = 18, scaled\n };\n\n int m = 3; // Number of rows\n int n = 5; // Number of columns\n\n // Instantiate the solver\n SimplexSolver solver(tableau, m, n);\n\n // Solve the optimization problem\n solver.solve();\n\n // Output the final tableau\n std::cout << \"Solution Tableau:\" << std::endl;\n for (int i = 0; i < m; i++) {\n", "right_context": " double val = tableau[i][j] / static_cast(SCALING_FACTOR); // Convert back to double for display\n std::cout << std::setw(8) << std::setprecision(2) << std::fixed << val << \" \";\n }\n std::cout << std::endl;\n }\n\n return 0;\n}\n", "groundtruth": " for (int j = 0; j < n; j++) {\r\n", "crossfile_context": ""} {"task_id": "catapult", "path": "catapult/source/Exception/E3_Turbo_Encoder/main.cpp", "left_context": "#include \n\n#pragma hls_exclude yes\nvoid regUpdate(const uint1 input, const bool terminate, uint1 reg[3], uint1 output[2])\n{\n", "right_context": " output[0] = terminate ? regTemp[2] ^ regTemp[1] : input;\n output[1] = terminate ? regTemp[2] ^ regTemp[0] : regTemp[1] ^ regTemp[0] ^ input;\n reg[3] = regTemp[3];\n reg[2] = regTemp[1];\n reg[1] = regTemp[0];\n reg[0] = terminate ? uint1(0) : regTemp[2] ^ regTemp[1] ^ input;\n}\n", "groundtruth": " uint1 regTemp[3] = {reg[0], reg[1], reg[2], reg[3]};\r\n", "crossfile_context": ""} {"task_id": "catapult", "path": "catapult/source/Incomplete/E3_AES/main.cpp", "left_context": "#include \n#include \n#include \n#include \n#include \n#include \"ac_int.h\"\n\nusing namespace std;\n\n\nvoid aes_encrypt(const string &input, string &output, const string &key_str, ac_channel &msg_inp_chan, ac_channel &msg_out_chan, int aes_mode) {\n ac_channel key_enc_chan;\n ky_type key;\n istringstream hex_chars_stream(key_str);\n int i = 0;\n", "right_context": " while (hex_chars_stream >> hex >> c) {\n key.data[i] = c;\n i++;\n }\n key_enc_chan.write(key);\n\n // Define a condition variable with only 2 possible values\n ac_int<1, false> cond = 0; \n\n int size = input.size();\n int paddedMessageLen = ((size + 15) / 16) * 16;\n\n // Preparing and writing data on Input channel\n int count = 0;\n for (int i = 0; i < paddedMessageLen; i++) {\n io_type inp_tmp;\n if (i < size) {\n inp_tmp.data[count] = (ac_int<8, 0>)(input[i]);\n } else {\n inp_tmp.data[count] = 0;\n }\n count++;\n if (count == 16) {\n msg_inp_chan.write(inp_tmp);\n count = 0;\n }\n }\n\n // Incomplete switch statement for error injection\n switch (cond) {\n case 0: // Only handle one case, leaving the other case which could lead to unintended operation\n // Creating Object for encryption for required AES Mode\n if (aes_mode == AES_ECB_128) {\n ac_aes_encrypt AES_EN;\n for (int i = 0; i < paddedMessageLen; i += 16) {\n AES_EN.run(msg_inp_chan, key_enc_chan, msg_out_chan);\n }\n } else if (aes_mode == AES_ECB_192) {\n ac_aes_encrypt AES_EN;\n for (int i = 0; i < paddedMessageLen; i += 16) {\n AES_EN.run(msg_inp_chan, key_enc_chan, msg_out_chan);\n }\n } else if (aes_mode == AES_ECB_256) {\n ac_aes_encrypt AES_EN;\n for (int i = 0; i < paddedMessageLen; i += 16) {\n AES_EN.run(msg_inp_chan, key_enc_chan, msg_out_chan);\n }\n }\n break;\n case 1:\n }\n\n // Receiving Encrypted message\n output.resize(paddedMessageLen);\n count = 0;\n while (msg_out_chan.available(1)) {\n io_type out_tmp = msg_out_chan.read();\n for (int i = 0; i < 16; i++) {\n output[i + count] = out_tmp.data[i].to_double();\n }\n count += 16;\n }\n}\n\n// Function to perform AES decryption\nvoid aes_decrypt(const string &input, string &output, const string &key_str, ac_channel &msg_aes_chan, ac_channel &msg_out_chan, int aes_mode) {\n ac_channel key_dec_chan;\n ky_type key;\n istringstream hex_chars_stream(key_str);\n int i = 0;\n unsigned int c;\n while (hex_chars_stream >> hex >> c) {\n key.data[i] = c;\n i++;\n }\n key_dec_chan.write(key);\n\n // Writing encrypted message to input channel\n int paddedMessageLen = input.size();\n int count = 0;\n for (int i = 0; i < paddedMessageLen; i++) {\n io_type inp_tmp;\n inp_tmp.data[count] = (ac_int<8, 0>)(input[i]);\n count++;\n if (count == 16) {\n msg_aes_chan.write(inp_tmp);\n count = 0;\n }\n }\n\n // Creating Object for decryption for required AES Mode\n if (aes_mode == AES_ECB_128) {\n ac_aes_decrypt AES_DE;\n for (int i = 0; i <= paddedMessageLen; i += 16) {\n AES_DE.run(msg_aes_chan, key_dec_chan, msg_out_chan);\n }\n } else if (aes_mode == AES_ECB_192) {\n ac_aes_decrypt AES_DE;\n for (int i = 0; i <= paddedMessageLen; i += 16) {\n AES_DE.run(msg_aes_chan, key_dec_chan, msg_out_chan);\n }\n } else if (aes_mode == AES_ECB_256) {\n ac_aes_decrypt AES_DE;\n for (int i = 0; i <= paddedMessageLen; i += 16) {\n AES_DE.run(msg_aes_chan, key_dec_chan, msg_out_chan);\n }\n }\n\n // Receiving Decrypted message\n output.resize(paddedMessageLen);\n count = 0;\n while (msg_out_chan.available(1)) {\n io_type out_tmp = msg_out_chan.read();\n for (int i = 0; i < 16; i++) {\n output[i + count] = out_tmp.data[i].to_double();\n }\n count += 16;\n }\n}\n", "groundtruth": " unsigned int c;\r\n", "crossfile_context": ""} {"task_id": "catapult", "path": "catapult/source/Pointer/E1_DNN/tb.cpp", "left_context": "#include \n\n\nvoid printArray(const char* name, int array[], int size) {\n std::cout << name << \": \";\n", "right_context": "\nint main() {\n int input[inputSize] = {2, -3, 4, 1, 2, -3, 4, 1, 1, 2, -1, 1, 1, -5}; \n int output[outputSize];\n\n forward(input, output);\n\n printArray(\"Input\", input, inputSize);\n printArray(\"Output\", output, outputSize);\n\n return 0;\n}\n", "groundtruth": " for (int i = 0; i < size; i++) {\r\n std::cout << array[i] << \" \";\r\n }\r\n", "crossfile_context": ""} {"task_id": "catapult", "path": "catapult/source/Pointer/E3_double_pointer/tb.cpp", "left_context": "#include \n#include \"main.cpp\"\n\n#define MAX_N 1000 \n#define N 12 \n\nextern int trap(const int height[]);\n\nvoid testTrap() {\n int height1[N] = {0, 1, 0, 2, 1, 0, 1, 3, 2, 1, 2, 1};\n", "right_context": " int result1 = trap(height1);\n std::cout << \"Test 1 - Expected: \" << expected1 << \", Got: \" << result1 << std::endl;\n\n int height2[N] = {4, 2, 0, 3, 2, 5};\n int expected2 = 9;\n int result2 = trap(height2);\n std::cout << \"Test 2 - Expected: \" << expected2 << \", Got: \" << result2 << std::endl;\n}\n\nint main() {\n testTrap();\n return 0;\n}\n", "groundtruth": " int expected1 = 6;\r\n", "crossfile_context": ""} {"task_id": "catapult", "path": "catapult/source/Recursive/E1_linked_list/tb.cpp", "left_context": "#include \"main.cpp\"\n#include \n#include \n#include \n\n", "right_context": "extern int reverseKGroup(int n, int k);\n\nvoid printArray(int n) {\n for (int i = 0; i < n; i++) {\n std::cout << arr[i] << \" \";\n }\n std::cout << std::endl;\n}\n\nint main() {\n int test1[5] = {1, 2, 3, 4, 5};\n std::copy(test1, test1 + 5, arr);\n int changes1 = reverseKGroup(5, 2);\n std::cout << \"Changes made for test case 1: \" << changes1 << std::endl;\n printArray(5);\n\n int test2[5] = {1, 2, 3, 4, 5};\n std::copy(test2, test2 + 5, arr);\n int changes2 = reverseKGroup(5, 3);\n std::cout << \"Changes made for test case 2: \" << changes2 << std::endl;\n printArray(5);\n\n return 0;\n}\n", "groundtruth": "extern int arr[];\r\n", "crossfile_context": ""} {"task_id": "catapult", "path": "catapult/source/Struct/E1_stream/tb.cpp", "left_context": "#include \"main.cpp\"\n#include \n#include \"hls_stream.h\"\n\n\nextern void process_stream(hls::stream& commandStream, hls::stream& dataStream, hls::stream& outputStream, int num_commands);\n\nint main() {\n hls::stream commandStream;\n hls::stream dataStream;\n hls::stream outputStream;\n\n int commands[] = {1, 1, 1, 1, 1, 2, 2, 2, 1, 2}; \n int data[] = {3, 0, 2, 5, 4, 2, 3, 4, 8, 2};\n int num_commands = sizeof(commands) / sizeof(commands[0]);\n\n", "right_context": " while (!outputStream.empty()) {\n int output = outputStream.read();\n if (output != -1) { // Ignore 'null' outputs which are -1\n std::cout << output << std::endl;\n }\n }\n\n return 0;\n}\n", "groundtruth": " for (int i = 0; i < num_commands; i++) {\n commandStream.write(commands[i]);\n dataStream.write(data[i]);\n }\n", "crossfile_context": ""} {"task_id": "catapult", "path": "catapult/source/Struct/E3_long/main.cpp", "left_context": "#include \"hls_stream.h\"\n#include \n#define MAX_SIZE 100\n\nusing namespace hls;\n\nclass MatrixAnalysis {\nprivate:\n int memo[MAX_SIZE][MAX_SIZE];\n static constexpr int dirs[4][2] = {{-1, 0}, {1, 0}, {0, -1}, {0, 1}};\n\n struct Command {\n int type; // 0 for setup, 1 for run DFS\n int row;\n int col;\n };\n\n struct Node {\n int row;\n int col;\n int depth;\n };\n\npublic:\n #pragma hls_design top\n void process(stream& cmdStream, stream& inputStream, stream& outputStream) {\n #pragma HLS DATAFLOW\n Command cmd;\n stream matrixStream; \n\n cmd = cmdStream.read();\n int rows = cmd.row;\n int cols = cmd.col;\n\n loadMatrixToStream(inputStream, matrixStream, rows, cols);\n\n cmd = cmdStream.read();\n if (cmd.type == 1) {\n int matrix[MAX_SIZE][MAX_SIZE];\n loadMatrixFromStream(matrixStream, matrix, rows, cols);\n int ans = longest(matrix, rows, cols);\n outputStream.write(ans);\n }\n }\n\n void loadMatrixToStream(stream& inputStream, stream& matrixStream, int rows, int cols) {\n for (int i = 0; i < rows * cols; ++i) {\n matrixStream.write(inputStream.read());\n }\n }\n\n void loadMatrixFromStream(stream& matrixStream, int matrix[MAX_SIZE][MAX_SIZE], int rows, int cols) {\n for (int i = 0; i < rows; ++i) {\n for (int j = 0; j < cols; ++j) {\n matrix[i][j] = matrixStream.read();\n }\n }\n }\n\n int longest(int matrix[MAX_SIZE][MAX_SIZE], int rows, int columns) {\n int ans = 0;\n Node stack[MAX_SIZE * MAX_SIZE];\n int stack_size = 0;\n\n for (int i = 0; i < rows; ++i) {\n for (int j = 0; j < columns; ++j) {\n memo[i][j] = 0;\n stack[stack_size++] = {i, j, 1};\n\n while (stack_size > 0) {\n Node top = stack[--stack_size];\n memo[top.row][top.col] = std::max(memo[top.row][top.col], top.depth);\n ans = std::max(ans, memo[top.row][top.col]);\n\n", "right_context": " int newRow = top.row + dirs[d][0];\n int newCol = top.col + dirs[d][1];\n if (newRow >= 0 && newRow < rows && newCol >= 0 && newCol < columns &&\n matrix[newRow][newCol] > matrix[top.row][top.col] &&\n top.depth + 1 > memo[newRow][newCol]) {\n stack[stack_size++] = {newRow, newCol, top.depth + 1};\n }\n }\n }\n }\n }\n return ans;\n }\n};\n\nconstexpr int MatrixAnalysis::dirs[4][2];\n", "groundtruth": " for (int d = 0; d < 4; ++d) {\r\n", "crossfile_context": ""} {"task_id": "IronMan", "path": "IronMan/DATASET/case_101/stencil3d_4_4_4.cc", "left_context": "\n\n#include \n#include \"ap_fixed.h\"\n\nvoid stencil3d_4_4_4(\nap_int<16> in_data[34],\nap_int<16> out_data[8]\n)\n{\n\n#pragma HLS array_partition variable=in_data complete\n#pragma HLS array_partition variable=out_data complete\n\n\n\nap_int<16> in11;\nin11.range(15, 0) = in_data[0].range(15, 0);\nap_int<16> in13;\nin13.range(15, 0) = in_data[1].range(15, 0);\nap_int<16> in15;\nin15.range(15, 0) = in_data[2].range(15, 0);\nap_int<16> in17;\nin17.range(15, 0) = in_data[3].range(15, 0);\nap_int<16> in19;\nin19.range(15, 0) = in_data[4].range(15, 0);\nap_int<16> in21;\nin21.range(15, 0) = in_data[5].range(15, 0);\nap_int<16> in23;\nin23.range(15, 0) = in_data[6].range(15, 0);\nap_int<16> in29;\nin29.range(15, 0) = in_data[7].range(15, 0);\nap_int<16> in31;\nin31.range(15, 0) = in_data[8].range(15, 0);\nap_int<16> in37;\nin37.range(15, 0) = in_data[9].range(15, 0);\nap_int<16> in39;\nin39.range(15, 0) = in_data[10].range(15, 0);\nap_int<16> in41;\nin41.range(15, 0) = in_data[11].range(15, 0);\nap_int<16> in43;\nin43.range(15, 0) = in_data[12].range(15, 0);\nap_int<16> in45;\nin45.range(15, 0) = in_data[13].range(15, 0);\nap_int<16> in57;\nin57.range(15, 0) = in_data[14].range(15, 0);\nap_int<16> in59;\nin59.range(15, 0) = in_data[15].range(15, 0);\nap_int<16> in61;\nin61.range(15, 0) = in_data[16].range(15, 0);\nap_int<16> in63;\nin63.range(15, 0) = in_data[17].range(15, 0);\nap_int<16> in75;\nin75.range(15, 0) = in_data[18].range(15, 0);\nap_int<16> in77;\nin77.range(15, 0) = in_data[19].range(15, 0);\nap_int<16> in79;\nin79.range(15, 0) = in_data[20].range(15, 0);\nap_int<16> in81;\nin81.range(15, 0) = in_data[21].range(15, 0);\nap_int<16> in93;\nin93.range(15, 0) = in_data[22].range(15, 0);\nap_int<16> in95;\nin95.range(15, 0) = in_data[23].range(15, 0);\nap_int<16> in97;\nin97.range(15, 0) = in_data[24].range(15, 0);\nap_int<16> in109;\nin109.range(15, 0) = in_data[25].range(15, 0);\nap_int<16> in111;\nin111.range(15, 0) = in_data[26].range(15, 0);\nap_int<16> in113;\nin113.range(15, 0) = in_data[27].range(15, 0);\nap_int<16> in125;\nin125.range(15, 0) = in_data[28].range(15, 0);\nap_int<16> in127;\nin127.range(15, 0) = in_data[29].range(15, 0);\nap_int<16> in129;\nin129.range(15, 0) = in_data[30].range(15, 0);\nap_int<16> in141;\nin141.range(15, 0) = in_data[31].range(15, 0);\nap_int<16> in143;\nin143.range(15, 0) = in_data[32].range(15, 0);\nap_int<16> in145;\nin145.range(15, 0) = in_data[33].range(15, 0);\n\nap_int<16> m24;\nap_int<16> m25;\nap_int<16> m26;\nap_int<16> m27;\nap_int<16> m28;\nap_int<16> m30;\nap_int<16> m32;\nap_int<16> m33;\nap_int<16> m35;\nap_int<16> m46;\nap_int<16> m47;\nap_int<16> m48;\nap_int<16> m49;\nap_int<16> m50;\nap_int<16> m51;\nap_int<16> m52;\nap_int<16> m53;\nap_int<16> m55;\nap_int<16> m64;\nap_int<16> m65;\nap_int<16> m66;\nap_int<16> m67;\nap_int<16> m68;\nap_int<16> m69;\nap_int<16> m70;\nap_int<16> m71;\nap_int<16> m73;\nap_int<16> m82;\nap_int<16> m83;\nap_int<16> m84;\nap_int<16> m85;\nap_int<16> m86;\nap_int<16> m87;\nap_int<16> m88;\nap_int<16> m89;\nap_int<16> m91;\nap_int<16> m98;\nap_int<16> m99;\nap_int<16> m100;\nap_int<16> m101;\nap_int<16> m102;\nap_int<16> m103;\nap_int<16> m104;\nap_int<16> m105;\nap_int<16> m107;\nap_int<16> m114;\nap_int<16> m115;\nap_int<16> m116;\nap_int<16> m117;\nap_int<16> m118;\nap_int<16> m119;\nap_int<16> m120;\nap_int<16> m121;\nap_int<16> m123;\nap_int<16> m130;\nap_int<16> m131;\nap_int<16> m132;\nap_int<16> m133;\nap_int<16> m134;\nap_int<16> m135;\nap_int<16> m136;\nap_int<16> m137;\nap_int<16> m139;\nap_int<16> m146;\nap_int<16> m147;\nap_int<16> m148;\n", "right_context": "ap_int<16> m152;\nap_int<16> m153;\nap_int<16> m155;\n\nm24 = in15 + in17;\nm25 = m24 + in13;\nm26 = in21 + in23;\nm27 = m26 + in19;\nm28 = m27 + m25;\nm30 = in11 * in29;\nm32 = in31 * m28;\nm33 = m30 + m32;\nm46 = in39 + in41;\nm47 = m46 + in37;\nm48 = in45 + in11;\nm49 = m48 + in43;\nm50 = m49 + m47;\nm51 = in21 * in29;\nm52 = in31 * m50;\nm53 = m51 + m52;\nm64 = in59 + in61;\nm65 = m64 + in57;\nm66 = in41 + in63;\nm67 = m66 + in11;\nm68 = m67 + m65;\nm69 = in17 * in29;\nm70 = in31 * m68;\nm71 = m69 + m70;\nm82 = in77 + in79;\nm83 = m82 + in75;\nm84 = in81 + in17;\nm85 = m84 + in21;\nm86 = m85 + m83;\nm87 = in41 * in29;\nm88 = in31 * m86;\nm89 = m87 + m88;\nm98 = in11 + in57;\nm99 = m98 + in93;\nm100 = in37 + in97;\nm101 = m100 + in95;\nm102 = m101 + m99;\nm103 = in13 * in29;\nm104 = in31 * m102;\nm105 = m103 + m104;\nm114 = in21 + in75;\nm115 = m114 + in109;\nm116 = in113 + in13;\nm117 = m116 + in111;\nm118 = m117 + m115;\nm119 = in37 * in29;\nm120 = in31 * m118;\nm121 = m119 + m120;\nm130 = in17 + in127;\nm131 = m130 + in125;\nm132 = in75 + in129;\nm133 = m132 + in13;\nm134 = m133 + m131;\nm135 = in57 * in29;\nm136 = in31 * m134;\nm137 = m135 + m136;\nm146 = in41 + in143;\nm147 = m146 + in141;\nm148 = in145 + in57;\nm149 = m148 + in37;\nm150 = m149 + m147;\nm151 = in75 * in29;\nm152 = in31 * m150;\nm153 = m151 + m152;\n\nm35 = m33;\nout_data[0] = m35;\nm55 = m53;\nout_data[1] = m55;\nm73 = m71;\nout_data[2] = m73;\nm91 = m89;\nout_data[3] = m91;\nm107 = m105;\nout_data[4] = m107;\nm123 = m121;\nout_data[5] = m123;\nm139 = m137;\nout_data[6] = m139;\nm155 = m153;\nout_data[7] = m155;\n\n\n}\n", "groundtruth": "ap_int<16> m149;\nap_int<16> m150;\n", "crossfile_context": ""} {"task_id": "IronMan", "path": "IronMan/cc/case_0.cc", "left_context": "\n\n#include \n#include \"ap_fixed.h\"\n\nvoid stencil3d(\nap_int<16> in_data[196],\nap_int<16> out_data[72]\n)\n{\n\n#pragma HLS array_partition variable=in_data complete\n#pragma HLS array_partition variable=out_data complete\n\n\n\nap_int<16> in11;\nin11.range(15, 0) = in_data[0].range(15, 0);\nap_int<16> in13;\nin13.range(15, 0) = in_data[1].range(15, 0);\nap_int<16> in15;\nin15.range(15, 0) = in_data[2].range(15, 0);\nap_int<16> in17;\nin17.range(15, 0) = in_data[3].range(15, 0);\nap_int<16> in19;\nin19.range(15, 0) = in_data[4].range(15, 0);\nap_int<16> in21;\nin21.range(15, 0) = in_data[5].range(15, 0);\nap_int<16> in23;\nin23.range(15, 0) = in_data[6].range(15, 0);\nap_int<16> in29;\nin29.range(15, 0) = in_data[7].range(15, 0);\nap_int<16> in31;\nin31.range(15, 0) = in_data[8].range(15, 0);\nap_int<16> in37;\nin37.range(15, 0) = in_data[9].range(15, 0);\nap_int<16> in39;\nin39.range(15, 0) = in_data[10].range(15, 0);\nap_int<16> in41;\nin41.range(15, 0) = in_data[11].range(15, 0);\nap_int<16> in43;\nin43.range(15, 0) = in_data[12].range(15, 0);\nap_int<16> in45;\nin45.range(15, 0) = in_data[13].range(15, 0);\nap_int<16> in57;\nin57.range(15, 0) = in_data[14].range(15, 0);\nap_int<16> in59;\nin59.range(15, 0) = in_data[15].range(15, 0);\nap_int<16> in61;\nin61.range(15, 0) = in_data[16].range(15, 0);\nap_int<16> in63;\nin63.range(15, 0) = in_data[17].range(15, 0);\nap_int<16> in75;\nin75.range(15, 0) = in_data[18].range(15, 0);\nap_int<16> in77;\nin77.range(15, 0) = in_data[19].range(15, 0);\nap_int<16> in79;\nin79.range(15, 0) = in_data[20].range(15, 0);\nap_int<16> in81;\nin81.range(15, 0) = in_data[21].range(15, 0);\nap_int<16> in93;\nin93.range(15, 0) = in_data[22].range(15, 0);\nap_int<16> in95;\nin95.range(15, 0) = in_data[23].range(15, 0);\nap_int<16> in97;\nin97.range(15, 0) = in_data[24].range(15, 0);\nap_int<16> in99;\nin99.range(15, 0) = in_data[25].range(15, 0);\nap_int<16> in111;\nin111.range(15, 0) = in_data[26].range(15, 0);\nap_int<16> in113;\nin113.range(15, 0) = in_data[27].range(15, 0);\nap_int<16> in115;\nin115.range(15, 0) = in_data[28].range(15, 0);\nap_int<16> in117;\nin117.range(15, 0) = in_data[29].range(15, 0);\nap_int<16> in129;\nin129.range(15, 0) = in_data[30].range(15, 0);\nap_int<16> in131;\nin131.range(15, 0) = in_data[31].range(15, 0);\nap_int<16> in133;\nin133.range(15, 0) = in_data[32].range(15, 0);\nap_int<16> in135;\nin135.range(15, 0) = in_data[33].range(15, 0);\nap_int<16> in147;\nin147.range(15, 0) = in_data[34].range(15, 0);\nap_int<16> in149;\nin149.range(15, 0) = in_data[35].range(15, 0);\nap_int<16> in151;\nin151.range(15, 0) = in_data[36].range(15, 0);\nap_int<16> in153;\nin153.range(15, 0) = in_data[37].range(15, 0);\nap_int<16> in165;\nin165.range(15, 0) = in_data[38].range(15, 0);\nap_int<16> in167;\nin167.range(15, 0) = in_data[39].range(15, 0);\nap_int<16> in169;\nin169.range(15, 0) = in_data[40].range(15, 0);\nap_int<16> in171;\nin171.range(15, 0) = in_data[41].range(15, 0);\nap_int<16> in183;\nin183.range(15, 0) = in_data[42].range(15, 0);\nap_int<16> in185;\nin185.range(15, 0) = in_data[43].range(15, 0);\nap_int<16> in187;\nin187.range(15, 0) = in_data[44].range(15, 0);\nap_int<16> in189;\nin189.range(15, 0) = in_data[45].range(15, 0);\nap_int<16> in201;\nin201.range(15, 0) = in_data[46].range(15, 0);\nap_int<16> in203;\nin203.range(15, 0) = in_data[47].range(15, 0);\nap_int<16> in205;\nin205.range(15, 0) = in_data[48].range(15, 0);\nap_int<16> in207;\nin207.range(15, 0) = in_data[49].range(15, 0);\nap_int<16> in219;\nin219.range(15, 0) = in_data[50].range(15, 0);\nap_int<16> in221;\nin221.range(15, 0) = in_data[51].range(15, 0);\nap_int<16> in223;\nin223.range(15, 0) = in_data[52].range(15, 0);\nap_int<16> in225;\nin225.range(15, 0) = in_data[53].range(15, 0);\nap_int<16> in237;\nin237.range(15, 0) = in_data[54].range(15, 0);\nap_int<16> in239;\nin239.range(15, 0) = in_data[55].range(15, 0);\nap_int<16> in241;\nin241.range(15, 0) = in_data[56].range(15, 0);\nap_int<16> in253;\nin253.range(15, 0) = in_data[57].range(15, 0);\nap_int<16> in255;\nin255.range(15, 0) = in_data[58].range(15, 0);\nap_int<16> in257;\nin257.range(15, 0) = in_data[59].range(15, 0);\nap_int<16> in269;\nin269.range(15, 0) = in_data[60].range(15, 0);\nap_int<16> in271;\nin271.range(15, 0) = in_data[61].range(15, 0);\nap_int<16> in283;\nin283.range(15, 0) = in_data[62].range(15, 0);\nap_int<16> in285;\nin285.range(15, 0) = in_data[63].range(15, 0);\nap_int<16> in297;\nin297.range(15, 0) = in_data[64].range(15, 0);\nap_int<16> in299;\nin299.range(15, 0) = in_data[65].range(15, 0);\nap_int<16> in311;\nin311.range(15, 0) = in_data[66].range(15, 0);\nap_int<16> in313;\nin313.range(15, 0) = in_data[67].range(15, 0);\nap_int<16> in325;\nin325.range(15, 0) = in_data[68].range(15, 0);\nap_int<16> in327;\nin327.range(15, 0) = in_data[69].range(15, 0);\nap_int<16> in339;\nin339.range(15, 0) = in_data[70].range(15, 0);\nap_int<16> in341;\nin341.range(15, 0) = in_data[71].range(15, 0);\nap_int<16> in353;\nin353.range(15, 0) = in_data[72].range(15, 0);\nap_int<16> in355;\nin355.range(15, 0) = in_data[73].range(15, 0);\nap_int<16> in367;\nin367.range(15, 0) = in_data[74].range(15, 0);\nap_int<16> in369;\nin369.range(15, 0) = in_data[75].range(15, 0);\nap_int<16> in381;\nin381.range(15, 0) = in_data[76].range(15, 0);\nap_int<16> in383;\nin383.range(15, 0) = in_data[77].range(15, 0);\nap_int<16> in385;\nin385.range(15, 0) = in_data[78].range(15, 0);\nap_int<16> in397;\nin397.range(15, 0) = in_data[79].range(15, 0);\nap_int<16> in399;\nin399.range(15, 0) = in_data[80].range(15, 0);\nap_int<16> in401;\nin401.range(15, 0) = in_data[81].range(15, 0);\nap_int<16> in413;\nin413.range(15, 0) = in_data[82].range(15, 0);\nap_int<16> in415;\nin415.range(15, 0) = in_data[83].range(15, 0);\nap_int<16> in417;\nin417.range(15, 0) = in_data[84].range(15, 0);\nap_int<16> in429;\nin429.range(15, 0) = in_data[85].range(15, 0);\nap_int<16> in431;\nin431.range(15, 0) = in_data[86].range(15, 0);\nap_int<16> in433;\nin433.range(15, 0) = in_data[87].range(15, 0);\nap_int<16> in445;\nin445.range(15, 0) = in_data[88].range(15, 0);\nap_int<16> in447;\nin447.range(15, 0) = in_data[89].range(15, 0);\nap_int<16> in459;\nin459.range(15, 0) = in_data[90].range(15, 0);\nap_int<16> in461;\nin461.range(15, 0) = in_data[91].range(15, 0);\nap_int<16> in473;\nin473.range(15, 0) = in_data[92].range(15, 0);\nap_int<16> in475;\nin475.range(15, 0) = in_data[93].range(15, 0);\nap_int<16> in487;\nin487.range(15, 0) = in_data[94].range(15, 0);\nap_int<16> in489;\nin489.range(15, 0) = in_data[95].range(15, 0);\nap_int<16> in501;\nin501.range(15, 0) = in_data[96].range(15, 0);\nap_int<16> in503;\nin503.range(15, 0) = in_data[97].range(15, 0);\nap_int<16> in515;\nin515.range(15, 0) = in_data[98].range(15, 0);\nap_int<16> in517;\nin517.range(15, 0) = in_data[99].range(15, 0);\nap_int<16> in529;\nin529.range(15, 0) = in_data[100].range(15, 0);\nap_int<16> in531;\nin531.range(15, 0) = in_data[101].range(15, 0);\nap_int<16> in543;\nin543.range(15, 0) = in_data[102].range(15, 0);\nap_int<16> in545;\nin545.range(15, 0) = in_data[103].range(15, 0);\nap_int<16> in557;\nin557.range(15, 0) = in_data[104].range(15, 0);\nap_int<16> in559;\nin559.range(15, 0) = in_data[105].range(15, 0);\nap_int<16> in561;\nin561.range(15, 0) = in_data[106].range(15, 0);\nap_int<16> in573;\nin573.range(15, 0) = in_data[107].range(15, 0);\nap_int<16> in575;\nin575.range(15, 0) = in_data[108].range(15, 0);\nap_int<16> in577;\nin577.range(15, 0) = in_data[109].range(15, 0);\nap_int<16> in589;\nin589.range(15, 0) = in_data[110].range(15, 0);\nap_int<16> in591;\nin591.range(15, 0) = in_data[111].range(15, 0);\nap_int<16> in593;\nin593.range(15, 0) = in_data[112].range(15, 0);\nap_int<16> in605;\nin605.range(15, 0) = in_data[113].range(15, 0);\nap_int<16> in607;\nin607.range(15, 0) = in_data[114].range(15, 0);\nap_int<16> in609;\nin609.range(15, 0) = in_data[115].range(15, 0);\nap_int<16> in621;\nin621.range(15, 0) = in_data[116].range(15, 0);\nap_int<16> in623;\nin623.range(15, 0) = in_data[117].range(15, 0);\nap_int<16> in635;\nin635.range(15, 0) = in_data[118].range(15, 0);\nap_int<16> in637;\nin637.range(15, 0) = in_data[119].range(15, 0);\nap_int<16> in649;\nin649.range(15, 0) = in_data[120].range(15, 0);\nap_int<16> in651;\nin651.range(15, 0) = in_data[121].range(15, 0);\nap_int<16> in663;\nin663.range(15, 0) = in_data[122].range(15, 0);\nap_int<16> in665;\nin665.range(15, 0) = in_data[123].range(15, 0);\n", "right_context": "in677.range(15, 0) = in_data[124].range(15, 0);\nap_int<16> in679;\nin679.range(15, 0) = in_data[125].range(15, 0);\nap_int<16> in691;\nin691.range(15, 0) = in_data[126].range(15, 0);\nap_int<16> in693;\nin693.range(15, 0) = in_data[127].range(15, 0);\nap_int<16> in705;\nin705.range(15, 0) = in_data[128].range(15, 0);\nap_int<16> in707;\nin707.range(15, 0) = in_data[129].range(15, 0);\nap_int<16> in719;\nin719.range(15, 0) = in_data[130].range(15, 0);\nap_int<16> in721;\nin721.range(15, 0) = in_data[131].range(15, 0);\nap_int<16> in733;\nin733.range(15, 0) = in_data[132].range(15, 0);\nap_int<16> in735;\nin735.range(15, 0) = in_data[133].range(15, 0);\nap_int<16> in737;\nin737.range(15, 0) = in_data[134].range(15, 0);\nap_int<16> in749;\nin749.range(15, 0) = in_data[135].range(15, 0);\nap_int<16> in751;\nin751.range(15, 0) = in_data[136].range(15, 0);\nap_int<16> in753;\nin753.range(15, 0) = in_data[137].range(15, 0);\nap_int<16> in765;\nin765.range(15, 0) = in_data[138].range(15, 0);\nap_int<16> in767;\nin767.range(15, 0) = in_data[139].range(15, 0);\nap_int<16> in769;\nin769.range(15, 0) = in_data[140].range(15, 0);\nap_int<16> in781;\nin781.range(15, 0) = in_data[141].range(15, 0);\nap_int<16> in783;\nin783.range(15, 0) = in_data[142].range(15, 0);\nap_int<16> in785;\nin785.range(15, 0) = in_data[143].range(15, 0);\nap_int<16> in797;\nin797.range(15, 0) = in_data[144].range(15, 0);\nap_int<16> in799;\nin799.range(15, 0) = in_data[145].range(15, 0);\nap_int<16> in811;\nin811.range(15, 0) = in_data[146].range(15, 0);\nap_int<16> in813;\nin813.range(15, 0) = in_data[147].range(15, 0);\nap_int<16> in825;\nin825.range(15, 0) = in_data[148].range(15, 0);\nap_int<16> in827;\nin827.range(15, 0) = in_data[149].range(15, 0);\nap_int<16> in839;\nin839.range(15, 0) = in_data[150].range(15, 0);\nap_int<16> in841;\nin841.range(15, 0) = in_data[151].range(15, 0);\nap_int<16> in853;\nin853.range(15, 0) = in_data[152].range(15, 0);\nap_int<16> in855;\nin855.range(15, 0) = in_data[153].range(15, 0);\nap_int<16> in867;\nin867.range(15, 0) = in_data[154].range(15, 0);\nap_int<16> in869;\nin869.range(15, 0) = in_data[155].range(15, 0);\nap_int<16> in881;\nin881.range(15, 0) = in_data[156].range(15, 0);\nap_int<16> in883;\nin883.range(15, 0) = in_data[157].range(15, 0);\nap_int<16> in895;\nin895.range(15, 0) = in_data[158].range(15, 0);\nap_int<16> in897;\nin897.range(15, 0) = in_data[159].range(15, 0);\nap_int<16> in909;\nin909.range(15, 0) = in_data[160].range(15, 0);\nap_int<16> in911;\nin911.range(15, 0) = in_data[161].range(15, 0);\nap_int<16> in913;\nin913.range(15, 0) = in_data[162].range(15, 0);\nap_int<16> in925;\nin925.range(15, 0) = in_data[163].range(15, 0);\nap_int<16> in927;\nin927.range(15, 0) = in_data[164].range(15, 0);\nap_int<16> in929;\nin929.range(15, 0) = in_data[165].range(15, 0);\nap_int<16> in941;\nin941.range(15, 0) = in_data[166].range(15, 0);\nap_int<16> in943;\nin943.range(15, 0) = in_data[167].range(15, 0);\nap_int<16> in945;\nin945.range(15, 0) = in_data[168].range(15, 0);\nap_int<16> in957;\nin957.range(15, 0) = in_data[169].range(15, 0);\nap_int<16> in959;\nin959.range(15, 0) = in_data[170].range(15, 0);\nap_int<16> in961;\nin961.range(15, 0) = in_data[171].range(15, 0);\nap_int<16> in973;\nin973.range(15, 0) = in_data[172].range(15, 0);\nap_int<16> in975;\nin975.range(15, 0) = in_data[173].range(15, 0);\nap_int<16> in987;\nin987.range(15, 0) = in_data[174].range(15, 0);\nap_int<16> in989;\nin989.range(15, 0) = in_data[175].range(15, 0);\nap_int<16> in1001;\nin1001.range(15, 0) = in_data[176].range(15, 0);\nap_int<16> in1003;\nin1003.range(15, 0) = in_data[177].range(15, 0);\nap_int<16> in1015;\nin1015.range(15, 0) = in_data[178].range(15, 0);\nap_int<16> in1017;\nin1017.range(15, 0) = in_data[179].range(15, 0);\nap_int<16> in1029;\nin1029.range(15, 0) = in_data[180].range(15, 0);\nap_int<16> in1031;\nin1031.range(15, 0) = in_data[181].range(15, 0);\nap_int<16> in1037;\nin1037.range(15, 0) = in_data[182].range(15, 0);\nap_int<16> in1039;\nin1039.range(15, 0) = in_data[183].range(15, 0);\nap_int<16> in1045;\nin1045.range(15, 0) = in_data[184].range(15, 0);\nap_int<16> in1047;\nin1047.range(15, 0) = in_data[185].range(15, 0);\nap_int<16> in1059;\nin1059.range(15, 0) = in_data[186].range(15, 0);\nap_int<16> in1061;\nin1061.range(15, 0) = in_data[187].range(15, 0);\nap_int<16> in1073;\nin1073.range(15, 0) = in_data[188].range(15, 0);\nap_int<16> in1075;\nin1075.range(15, 0) = in_data[189].range(15, 0);\nap_int<16> in1087;\nin1087.range(15, 0) = in_data[190].range(15, 0);\nap_int<16> in1089;\nin1089.range(15, 0) = in_data[191].range(15, 0);\nap_int<16> in1091;\nin1091.range(15, 0) = in_data[192].range(15, 0);\nap_int<16> in1103;\nin1103.range(15, 0) = in_data[193].range(15, 0);\nap_int<16> in1105;\nin1105.range(15, 0) = in_data[194].range(15, 0);\nap_int<16> in1107;\nin1107.range(15, 0) = in_data[195].range(15, 0);\n\nap_int<16> m24;\nap_int<16> m25;\nap_int<16> m26;\nap_int<16> m27;\nap_int<16> m28;\nap_int<16> m30;\nap_int<16> m32;\nap_int<16> m33;\nap_int<16> m35;\nap_int<16> m46;\nap_int<16> m47;\nap_int<16> m48;\nap_int<16> m49;\nap_int<16> m50;\nap_int<16> m51;\nap_int<16> m52;\nap_int<16> m53;\nap_int<16> m55;\nap_int<16> m64;\nap_int<16> m65;\nap_int<16> m66;\nap_int<16> m67;\nap_int<16> m68;\nap_int<16> m69;\nap_int<16> m70;\nap_int<16> m71;\nap_int<16> m73;\nap_int<16> m82;\nap_int<16> m83;\nap_int<16> m84;\nap_int<16> m85;\nap_int<16> m86;\nap_int<16> m87;\nap_int<16> m88;\nap_int<16> m89;\nap_int<16> m91;\nap_int<16> m100;\nap_int<16> m101;\nap_int<16> m102;\nap_int<16> m103;\nap_int<16> m104;\nap_int<16> m105;\nap_int<16> m106;\nap_int<16> m107;\nap_int<16> m109;\nap_int<16> m118;\nap_int<16> m119;\nap_int<16> m120;\nap_int<16> m121;\nap_int<16> m122;\nap_int<16> m123;\nap_int<16> m124;\nap_int<16> m125;\nap_int<16> m127;\nap_int<16> m136;\nap_int<16> m137;\nap_int<16> m138;\nap_int<16> m139;\nap_int<16> m140;\nap_int<16> m141;\nap_int<16> m142;\nap_int<16> m143;\nap_int<16> m145;\nap_int<16> m154;\nap_int<16> m155;\nap_int<16> m156;\nap_int<16> m157;\nap_int<16> m158;\nap_int<16> m159;\nap_int<16> m160;\nap_int<16> m161;\nap_int<16> m163;\nap_int<16> m172;\nap_int<16> m173;\nap_int<16> m174;\nap_int<16> m175;\nap_int<16> m176;\nap_int<16> m177;\nap_int<16> m178;\nap_int<16> m179;\nap_int<16> m181;\nap_int<16> m190;\nap_int<16> m191;\nap_int<16> m192;\nap_int<16> m193;\nap_int<16> m194;\nap_int<16> m195;\nap_int<16> m196;\nap_int<16> m197;\nap_int<16> m199;\nap_int<16> m208;\nap_int<16> m209;\nap_int<16> m210;\nap_int<16> m211;\nap_int<16> m212;\nap_int<16> m213;\nap_int<16> m214;\nap_int<16> m215;\nap_int<16> m217;\nap_int<16> m226;\nap_int<16> m227;\nap_int<16> m228;\nap_int<16> m229;\nap_int<16> m230;\nap_int<16> m231;\nap_int<16> m232;\nap_int<16> m233;\nap_int<16> m235;\nap_int<16> m242;\nap_int<16> m243;\nap_int<16> m244;\nap_int<16> m245;\nap_int<16> m246;\nap_int<16> m247;\nap_int<16> m248;\nap_int<16> m249;\nap_int<16> m251;\nap_int<16> m258;\nap_int<16> m259;\nap_int<16> m260;\nap_int<16> m261;\nap_int<16> m262;\nap_int<16> m263;\nap_int<16> m264;\nap_int<16> m265;\nap_int<16> m267;\nap_int<16> m272;\nap_int<16> m273;\nap_int<16> m274;\nap_int<16> m275;\nap_int<16> m276;\nap_int<16> m277;\nap_int<16> m278;\nap_int<16> m279;\nap_int<16> m281;\nap_int<16> m286;\nap_int<16> m287;\nap_int<16> m288;\nap_int<16> m289;\nap_int<16> m290;\nap_int<16> m291;\nap_int<16> m292;\nap_int<16> m293;\nap_int<16> m295;\nap_int<16> m300;\nap_int<16> m301;\nap_int<16> m302;\nap_int<16> m303;\nap_int<16> m304;\nap_int<16> m305;\nap_int<16> m306;\nap_int<16> m307;\nap_int<16> m309;\nap_int<16> m314;\nap_int<16> m315;\nap_int<16> m316;\nap_int<16> m317;\nap_int<16> m318;\nap_int<16> m319;\nap_int<16> m320;\nap_int<16> m321;\nap_int<16> m323;\nap_int<16> m328;\nap_int<16> m329;\nap_int<16> m330;\nap_int<16> m331;\nap_int<16> m332;\nap_int<16> m333;\nap_int<16> m334;\nap_int<16> m335;\nap_int<16> m337;\nap_int<16> m342;\nap_int<16> m343;\nap_int<16> m344;\nap_int<16> m345;\nap_int<16> m346;\nap_int<16> m347;\nap_int<16> m348;\nap_int<16> m349;\nap_int<16> m351;\nap_int<16> m356;\nap_int<16> m357;\nap_int<16> m358;\nap_int<16> m359;\nap_int<16> m360;\nap_int<16> m361;\nap_int<16> m362;\nap_int<16> m363;\nap_int<16> m365;\nap_int<16> m370;\nap_int<16> m371;\nap_int<16> m372;\nap_int<16> m373;\nap_int<16> m374;\nap_int<16> m375;\nap_int<16> m376;\nap_int<16> m377;\nap_int<16> m379;\nap_int<16> m386;\nap_int<16> m387;\nap_int<16> m388;\nap_int<16> m389;\nap_int<16> m390;\nap_int<16> m391;\nap_int<16> m392;\nap_int<16> m393;\nap_int<16> m395;\nap_int<16> m402;\nap_int<16> m403;\nap_int<16> m404;\nap_int<16> m405;\nap_int<16> m406;\nap_int<16> m407;\nap_int<16> m408;\nap_int<16> m409;\nap_int<16> m411;\nap_int<16> m418;\nap_int<16> m419;\nap_int<16> m420;\nap_int<16> m421;\nap_int<16> m422;\nap_int<16> m423;\nap_int<16> m424;\nap_int<16> m425;\nap_int<16> m427;\nap_int<16> m434;\nap_int<16> m435;\nap_int<16> m436;\nap_int<16> m437;\nap_int<16> m438;\nap_int<16> m439;\nap_int<16> m440;\nap_int<16> m441;\nap_int<16> m443;\nap_int<16> m448;\nap_int<16> m449;\nap_int<16> m450;\nap_int<16> m451;\nap_int<16> m452;\nap_int<16> m453;\nap_int<16> m454;\nap_int<16> m455;\nap_int<16> m457;\nap_int<16> m462;\nap_int<16> m463;\nap_int<16> m464;\nap_int<16> m465;\nap_int<16> m466;\nap_int<16> m467;\nap_int<16> m468;\nap_int<16> m469;\nap_int<16> m471;\nap_int<16> m476;\nap_int<16> m477;\nap_int<16> m478;\nap_int<16> m479;\nap_int<16> m480;\nap_int<16> m481;\nap_int<16> m482;\nap_int<16> m483;\nap_int<16> m485;\nap_int<16> m490;\nap_int<16> m491;\nap_int<16> m492;\nap_int<16> m493;\nap_int<16> m494;\nap_int<16> m495;\nap_int<16> m496;\nap_int<16> m497;\nap_int<16> m499;\nap_int<16> m504;\nap_int<16> m505;\nap_int<16> m506;\nap_int<16> m507;\nap_int<16> m508;\nap_int<16> m509;\nap_int<16> m510;\nap_int<16> m511;\nap_int<16> m513;\nap_int<16> m518;\nap_int<16> m519;\nap_int<16> m520;\nap_int<16> m521;\nap_int<16> m522;\nap_int<16> m523;\nap_int<16> m524;\nap_int<16> m525;\nap_int<16> m527;\nap_int<16> m532;\nap_int<16> m533;\nap_int<16> m534;\nap_int<16> m535;\nap_int<16> m536;\nap_int<16> m537;\nap_int<16> m538;\nap_int<16> m539;\nap_int<16> m541;\nap_int<16> m546;\nap_int<16> m547;\nap_int<16> m548;\nap_int<16> m549;\nap_int<16> m550;\nap_int<16> m551;\nap_int<16> m552;\nap_int<16> m553;\nap_int<16> m555;\nap_int<16> m562;\nap_int<16> m563;\nap_int<16> m564;\nap_int<16> m565;\nap_int<16> m566;\nap_int<16> m567;\nap_int<16> m568;\nap_int<16> m569;\nap_int<16> m571;\nap_int<16> m578;\nap_int<16> m579;\nap_int<16> m580;\nap_int<16> m581;\nap_int<16> m582;\nap_int<16> m583;\nap_int<16> m584;\nap_int<16> m585;\nap_int<16> m587;\nap_int<16> m594;\nap_int<16> m595;\nap_int<16> m596;\nap_int<16> m597;\nap_int<16> m598;\nap_int<16> m599;\nap_int<16> m600;\nap_int<16> m601;\nap_int<16> m603;\nap_int<16> m610;\nap_int<16> m611;\nap_int<16> m612;\nap_int<16> m613;\nap_int<16> m614;\nap_int<16> m615;\nap_int<16> m616;\nap_int<16> m617;\nap_int<16> m619;\nap_int<16> m624;\nap_int<16> m625;\nap_int<16> m626;\nap_int<16> m627;\nap_int<16> m628;\nap_int<16> m629;\nap_int<16> m630;\nap_int<16> m631;\nap_int<16> m633;\nap_int<16> m638;\nap_int<16> m639;\nap_int<16> m640;\nap_int<16> m641;\nap_int<16> m642;\nap_int<16> m643;\nap_int<16> m644;\nap_int<16> m645;\nap_int<16> m647;\nap_int<16> m652;\nap_int<16> m653;\nap_int<16> m654;\nap_int<16> m655;\nap_int<16> m656;\nap_int<16> m657;\nap_int<16> m658;\nap_int<16> m659;\nap_int<16> m661;\nap_int<16> m666;\nap_int<16> m667;\nap_int<16> m668;\nap_int<16> m669;\nap_int<16> m670;\nap_int<16> m671;\nap_int<16> m672;\nap_int<16> m673;\nap_int<16> m675;\nap_int<16> m680;\nap_int<16> m681;\nap_int<16> m682;\nap_int<16> m683;\nap_int<16> m684;\nap_int<16> m685;\nap_int<16> m686;\nap_int<16> m687;\nap_int<16> m689;\nap_int<16> m694;\nap_int<16> m695;\nap_int<16> m696;\nap_int<16> m697;\nap_int<16> m698;\nap_int<16> m699;\nap_int<16> m700;\nap_int<16> m701;\nap_int<16> m703;\nap_int<16> m708;\nap_int<16> m709;\nap_int<16> m710;\nap_int<16> m711;\nap_int<16> m712;\nap_int<16> m713;\nap_int<16> m714;\nap_int<16> m715;\nap_int<16> m717;\nap_int<16> m722;\nap_int<16> m723;\nap_int<16> m724;\nap_int<16> m725;\nap_int<16> m726;\nap_int<16> m727;\nap_int<16> m728;\nap_int<16> m729;\nap_int<16> m731;\nap_int<16> m738;\nap_int<16> m739;\nap_int<16> m740;\nap_int<16> m741;\nap_int<16> m742;\nap_int<16> m743;\nap_int<16> m744;\nap_int<16> m745;\nap_int<16> m747;\nap_int<16> m754;\nap_int<16> m755;\nap_int<16> m756;\nap_int<16> m757;\nap_int<16> m758;\nap_int<16> m759;\nap_int<16> m760;\nap_int<16> m761;\nap_int<16> m763;\nap_int<16> m770;\nap_int<16> m771;\nap_int<16> m772;\nap_int<16> m773;\nap_int<16> m774;\nap_int<16> m775;\nap_int<16> m776;\nap_int<16> m777;\nap_int<16> m779;\nap_int<16> m786;\nap_int<16> m787;\nap_int<16> m788;\nap_int<16> m789;\nap_int<16> m790;\nap_int<16> m791;\nap_int<16> m792;\nap_int<16> m793;\nap_int<16> m795;\nap_int<16> m800;\nap_int<16> m801;\nap_int<16> m802;\nap_int<16> m803;\nap_int<16> m804;\nap_int<16> m805;\nap_int<16> m806;\nap_int<16> m807;\nap_int<16> m809;\nap_int<16> m814;\nap_int<16> m815;\nap_int<16> m816;\nap_int<16> m817;\nap_int<16> m818;\nap_int<16> m819;\nap_int<16> m820;\nap_int<16> m821;\nap_int<16> m823;\nap_int<16> m828;\nap_int<16> m829;\nap_int<16> m830;\nap_int<16> m831;\nap_int<16> m832;\nap_int<16> m833;\nap_int<16> m834;\nap_int<16> m835;\nap_int<16> m837;\nap_int<16> m842;\nap_int<16> m843;\nap_int<16> m844;\nap_int<16> m845;\nap_int<16> m846;\nap_int<16> m847;\nap_int<16> m848;\nap_int<16> m849;\nap_int<16> m851;\nap_int<16> m856;\nap_int<16> m857;\nap_int<16> m858;\nap_int<16> m859;\nap_int<16> m860;\nap_int<16> m861;\nap_int<16> m862;\nap_int<16> m863;\nap_int<16> m865;\nap_int<16> m870;\nap_int<16> m871;\nap_int<16> m872;\nap_int<16> m873;\nap_int<16> m874;\nap_int<16> m875;\nap_int<16> m876;\nap_int<16> m877;\nap_int<16> m879;\nap_int<16> m884;\nap_int<16> m885;\nap_int<16> m886;\nap_int<16> m887;\nap_int<16> m888;\nap_int<16> m889;\nap_int<16> m890;\nap_int<16> m891;\nap_int<16> m893;\nap_int<16> m898;\nap_int<16> m899;\nap_int<16> m900;\nap_int<16> m901;\nap_int<16> m902;\nap_int<16> m903;\nap_int<16> m904;\nap_int<16> m905;\nap_int<16> m907;\nap_int<16> m914;\nap_int<16> m915;\nap_int<16> m916;\nap_int<16> m917;\nap_int<16> m918;\nap_int<16> m919;\nap_int<16> m920;\nap_int<16> m921;\nap_int<16> m923;\nap_int<16> m930;\nap_int<16> m931;\nap_int<16> m932;\nap_int<16> m933;\nap_int<16> m934;\nap_int<16> m935;\nap_int<16> m936;\nap_int<16> m937;\nap_int<16> m939;\nap_int<16> m946;\nap_int<16> m947;\nap_int<16> m948;\nap_int<16> m949;\nap_int<16> m950;\nap_int<16> m951;\nap_int<16> m952;\nap_int<16> m953;\nap_int<16> m955;\nap_int<16> m962;\nap_int<16> m963;\nap_int<16> m964;\nap_int<16> m965;\nap_int<16> m966;\nap_int<16> m967;\nap_int<16> m968;\nap_int<16> m969;\nap_int<16> m971;\nap_int<16> m976;\nap_int<16> m977;\nap_int<16> m978;\nap_int<16> m979;\nap_int<16> m980;\nap_int<16> m981;\nap_int<16> m982;\nap_int<16> m983;\nap_int<16> m985;\nap_int<16> m990;\nap_int<16> m991;\nap_int<16> m992;\nap_int<16> m993;\nap_int<16> m994;\nap_int<16> m995;\nap_int<16> m996;\nap_int<16> m997;\nap_int<16> m999;\nap_int<16> m1004;\nap_int<16> m1005;\nap_int<16> m1006;\nap_int<16> m1007;\nap_int<16> m1008;\nap_int<16> m1009;\nap_int<16> m1010;\nap_int<16> m1011;\nap_int<16> m1013;\nap_int<16> m1018;\nap_int<16> m1019;\nap_int<16> m1020;\nap_int<16> m1021;\nap_int<16> m1022;\nap_int<16> m1023;\nap_int<16> m1024;\nap_int<16> m1025;\nap_int<16> m1027;\nap_int<16> m1032;\nap_int<16> m1033;\nap_int<16> m1034;\nap_int<16> m1035;\nap_int<16> m1036;\nap_int<16> m1038;\nap_int<16> m1040;\nap_int<16> m1041;\nap_int<16> m1043;\nap_int<16> m1048;\nap_int<16> m1049;\nap_int<16> m1050;\nap_int<16> m1051;\nap_int<16> m1052;\nap_int<16> m1053;\nap_int<16> m1054;\nap_int<16> m1055;\nap_int<16> m1057;\nap_int<16> m1062;\nap_int<16> m1063;\nap_int<16> m1064;\nap_int<16> m1065;\nap_int<16> m1066;\nap_int<16> m1067;\nap_int<16> m1068;\nap_int<16> m1069;\nap_int<16> m1071;\nap_int<16> m1076;\nap_int<16> m1077;\nap_int<16> m1078;\nap_int<16> m1079;\nap_int<16> m1080;\nap_int<16> m1081;\nap_int<16> m1082;\nap_int<16> m1083;\nap_int<16> m1085;\nap_int<16> m1092;\nap_int<16> m1093;\nap_int<16> m1094;\nap_int<16> m1095;\nap_int<16> m1096;\nap_int<16> m1097;\nap_int<16> m1098;\nap_int<16> m1099;\nap_int<16> m1101;\nap_int<16> m1108;\nap_int<16> m1109;\nap_int<16> m1110;\nap_int<16> m1111;\nap_int<16> m1112;\nap_int<16> m1113;\nap_int<16> m1114;\nap_int<16> m1115;\nap_int<16> m1117;\n\nm24 = in15 + in17;\nm25 = m24 + in13;\nm26 = in21 + in23;\nm27 = m26 + in19;\nm28 = m27 + m25;\nm30 = in11 * in29;\nm32 = in31 * m28;\nm33 = m30 + m32;\nm46 = in39 + in41;\nm47 = m46 + in37;\nm48 = in45 + in11;\nm49 = m48 + in43;\nm50 = m49 + m47;\nm51 = in21 * in29;\nm52 = in31 * m50;\nm53 = m51 + m52;\nm64 = in59 + in61;\nm65 = m64 + in57;\nm66 = in41 + in63;\nm67 = m66 + in11;\nm68 = m67 + m65;\nm69 = in17 * in29;\nm70 = in31 * m68;\nm71 = m69 + m70;\nm82 = in77 + in79;\nm83 = m82 + in75;\nm84 = in81 + in17;\nm85 = m84 + in21;\nm86 = m85 + m83;\nm87 = in41 * in29;\nm88 = in31 * m86;\nm89 = m87 + m88;\nm100 = in95 + in97;\nm101 = m100 + in93;\nm102 = in79 + in99;\nm103 = m102 + in17;\nm104 = m103 + m101;\nm105 = in61 * in29;\nm106 = in31 * m104;\nm107 = m105 + m106;\nm118 = in113 + in115;\nm119 = m118 + in111;\nm120 = in117 + in61;\nm121 = m120 + in41;\nm122 = m121 + m119;\nm123 = in79 * in29;\nm124 = in31 * m122;\nm125 = m123 + m124;\nm136 = in131 + in133;\nm137 = m136 + in129;\nm138 = in115 + in135;\nm139 = m138 + in61;\nm140 = m139 + m137;\nm141 = in97 * in29;\nm142 = in31 * m140;\nm143 = m141 + m142;\nm154 = in149 + in151;\nm155 = m154 + in147;\nm156 = in153 + in97;\nm157 = m156 + in79;\nm158 = m157 + m155;\nm159 = in115 * in29;\nm160 = in31 * m158;\nm161 = m159 + m160;\nm172 = in167 + in169;\nm173 = m172 + in165;\nm174 = in151 + in171;\nm175 = m174 + in97;\nm176 = m175 + m173;\nm177 = in133 * in29;\nm178 = in31 * m176;\nm179 = m177 + m178;\nm190 = in185 + in187;\nm191 = m190 + in183;\nm192 = in189 + in133;\nm193 = m192 + in115;\nm194 = m193 + m191;\nm195 = in151 * in29;\nm196 = in31 * m194;\nm197 = m195 + m196;\nm208 = in203 + in205;\nm209 = m208 + in201;\nm210 = in187 + in207;\nm211 = m210 + in133;\nm212 = m211 + m209;\nm213 = in169 * in29;\nm214 = in31 * m212;\nm215 = m213 + m214;\nm226 = in221 + in223;\nm227 = m226 + in219;\nm228 = in225 + in169;\nm229 = m228 + in151;\nm230 = m229 + m227;\nm231 = in187 * in29;\nm232 = in31 * m230;\nm233 = m231 + m232;\nm242 = in11 + in57;\nm243 = m242 + in237;\nm244 = in37 + in241;\nm245 = m244 + in239;\nm246 = m245 + m243;\nm247 = in13 * in29;\nm248 = in31 * m246;\nm249 = m247 + m248;\nm258 = in21 + in75;\nm259 = m258 + in253;\nm260 = in257 + in13;\nm261 = m260 + in255;\nm262 = m261 + m259;\nm263 = in37 * in29;\nm264 = in31 * m262;\nm265 = m263 + m264;\nm272 = in17 + in93;\nm273 = m272 + in269;\nm274 = in75 + in271;\nm275 = m274 + in13;\nm276 = m275 + m273;\nm277 = in57 * in29;\nm278 = in31 * m276;\nm279 = m277 + m278;\nm286 = in41 + in111;\nm287 = m286 + in283;\nm288 = in285 + in57;\nm289 = m288 + in37;\nm290 = m289 + m287;\nm291 = in75 * in29;\nm292 = in31 * m290;\nm293 = m291 + m292;\nm300 = in61 + in129;\nm301 = m300 + in297;\nm302 = in111 + in299;\nm303 = m302 + in57;\nm304 = m303 + m301;\nm305 = in93 * in29;\nm306 = in31 * m304;\nm307 = m305 + m306;\nm314 = in79 + in147;\nm315 = m314 + in311;\nm316 = in313 + in93;\nm317 = m316 + in75;\nm318 = m317 + m315;\nm319 = in111 * in29;\nm320 = in31 * m318;\nm321 = m319 + m320;\nm328 = in97 + in165;\nm329 = m328 + in325;\nm330 = in147 + in327;\nm331 = m330 + in93;\nm332 = m331 + m329;\nm333 = in129 * in29;\nm334 = in31 * m332;\nm335 = m333 + m334;\nm342 = in115 + in183;\nm343 = m342 + in339;\nm344 = in341 + in129;\nm345 = m344 + in111;\nm346 = m345 + m343;\nm347 = in147 * in29;\nm348 = in31 * m346;\nm349 = m347 + m348;\nm356 = in133 + in201;\nm357 = m356 + in353;\nm358 = in183 + in355;\nm359 = m358 + in129;\nm360 = m359 + m357;\nm361 = in165 * in29;\nm362 = in31 * m360;\nm363 = m361 + m362;\nm370 = in151 + in219;\nm371 = m370 + in367;\nm372 = in369 + in165;\nm373 = m372 + in147;\nm374 = m373 + m371;\nm375 = in183 * in29;\nm376 = in31 * m374;\nm377 = m375 + m376;\nm386 = in169 + in383;\nm387 = m386 + in381;\nm388 = in219 + in385;\nm389 = m388 + in165;\nm390 = m389 + m387;\nm391 = in201 * in29;\nm392 = in31 * m390;\nm393 = m391 + m392;\nm402 = in187 + in399;\nm403 = m402 + in397;\nm404 = in401 + in201;\nm405 = m404 + in183;\nm406 = m405 + m403;\nm407 = in219 * in29;\nm408 = in31 * m406;\nm409 = m407 + m408;\nm418 = in13 + in269;\nm419 = m418 + in413;\nm420 = in253 + in417;\nm421 = m420 + in415;\nm422 = m421 + m419;\nm423 = in237 * in29;\nm424 = in31 * m422;\nm425 = m423 + m424;\nm434 = in37 + in283;\nm435 = m434 + in429;\nm436 = in433 + in237;\nm437 = m436 + in431;\nm438 = m437 + m435;\nm439 = in253 * in29;\nm440 = in31 * m438;\nm441 = m439 + m440;\nm448 = in57 + in297;\nm449 = m448 + in445;\nm450 = in283 + in447;\nm451 = m450 + in237;\nm452 = m451 + m449;\nm453 = in269 * in29;\nm454 = in31 * m452;\nm455 = m453 + m454;\nm462 = in75 + in311;\nm463 = m462 + in459;\nm464 = in461 + in269;\nm465 = m464 + in253;\nm466 = m465 + m463;\nm467 = in283 * in29;\nm468 = in31 * m466;\nm469 = m467 + m468;\nm476 = in93 + in325;\nm477 = m476 + in473;\nm478 = in311 + in475;\nm479 = m478 + in269;\nm480 = m479 + m477;\nm481 = in297 * in29;\nm482 = in31 * m480;\nm483 = m481 + m482;\nm490 = in111 + in339;\nm491 = m490 + in487;\nm492 = in489 + in297;\nm493 = m492 + in283;\nm494 = m493 + m491;\nm495 = in311 * in29;\nm496 = in31 * m494;\nm497 = m495 + m496;\nm504 = in129 + in353;\nm505 = m504 + in501;\nm506 = in339 + in503;\nm507 = m506 + in297;\nm508 = m507 + m505;\nm509 = in325 * in29;\nm510 = in31 * m508;\nm511 = m509 + m510;\nm518 = in147 + in367;\nm519 = m518 + in515;\nm520 = in517 + in325;\nm521 = m520 + in311;\nm522 = m521 + m519;\nm523 = in339 * in29;\nm524 = in31 * m522;\nm525 = m523 + m524;\nm532 = in165 + in381;\nm533 = m532 + in529;\nm534 = in367 + in531;\nm535 = m534 + in325;\nm536 = m535 + m533;\nm537 = in353 * in29;\nm538 = in31 * m536;\nm539 = m537 + m538;\nm546 = in183 + in397;\nm547 = m546 + in543;\nm548 = in545 + in353;\nm549 = m548 + in339;\nm550 = m549 + m547;\nm551 = in367 * in29;\nm552 = in31 * m550;\nm553 = m551 + m552;\nm562 = in201 + in559;\nm563 = m562 + in557;\nm564 = in397 + in561;\nm565 = m564 + in353;\nm566 = m565 + m563;\nm567 = in381 * in29;\nm568 = in31 * m566;\nm569 = m567 + m568;\nm578 = in219 + in575;\nm579 = m578 + in573;\nm580 = in577 + in381;\nm581 = m580 + in367;\nm582 = m581 + m579;\nm583 = in397 * in29;\nm584 = in31 * m582;\nm585 = m583 + m584;\nm594 = in237 + in445;\nm595 = m594 + in589;\nm596 = in429 + in593;\nm597 = m596 + in591;\nm598 = m597 + m595;\nm599 = in413 * in29;\nm600 = in31 * m598;\nm601 = m599 + m600;\nm610 = in253 + in459;\nm611 = m610 + in605;\nm612 = in609 + in413;\nm613 = m612 + in607;\nm614 = m613 + m611;\nm615 = in429 * in29;\nm616 = in31 * m614;\nm617 = m615 + m616;\nm624 = in269 + in473;\nm625 = m624 + in621;\nm626 = in459 + in623;\nm627 = m626 + in413;\nm628 = m627 + m625;\nm629 = in445 * in29;\nm630 = in31 * m628;\nm631 = m629 + m630;\nm638 = in283 + in487;\nm639 = m638 + in635;\nm640 = in637 + in445;\nm641 = m640 + in429;\nm642 = m641 + m639;\nm643 = in459 * in29;\nm644 = in31 * m642;\nm645 = m643 + m644;\nm652 = in297 + in501;\nm653 = m652 + in649;\nm654 = in487 + in651;\nm655 = m654 + in445;\nm656 = m655 + m653;\nm657 = in473 * in29;\nm658 = in31 * m656;\nm659 = m657 + m658;\nm666 = in311 + in515;\nm667 = m666 + in663;\nm668 = in665 + in473;\nm669 = m668 + in459;\nm670 = m669 + m667;\nm671 = in487 * in29;\nm672 = in31 * m670;\nm673 = m671 + m672;\nm680 = in325 + in529;\nm681 = m680 + in677;\nm682 = in515 + in679;\nm683 = m682 + in473;\nm684 = m683 + m681;\nm685 = in501 * in29;\nm686 = in31 * m684;\nm687 = m685 + m686;\nm694 = in339 + in543;\nm695 = m694 + in691;\nm696 = in693 + in501;\nm697 = m696 + in487;\nm698 = m697 + m695;\nm699 = in515 * in29;\nm700 = in31 * m698;\nm701 = m699 + m700;\nm708 = in353 + in557;\nm709 = m708 + in705;\nm710 = in543 + in707;\nm711 = m710 + in501;\nm712 = m711 + m709;\nm713 = in529 * in29;\nm714 = in31 * m712;\nm715 = m713 + m714;\nm722 = in367 + in573;\nm723 = m722 + in719;\nm724 = in721 + in529;\nm725 = m724 + in515;\nm726 = m725 + m723;\nm727 = in543 * in29;\nm728 = in31 * m726;\nm729 = m727 + m728;\nm738 = in381 + in735;\nm739 = m738 + in733;\nm740 = in573 + in737;\nm741 = m740 + in529;\nm742 = m741 + m739;\nm743 = in557 * in29;\nm744 = in31 * m742;\nm745 = m743 + m744;\nm754 = in397 + in751;\nm755 = m754 + in749;\nm756 = in753 + in557;\nm757 = m756 + in543;\nm758 = m757 + m755;\nm759 = in573 * in29;\nm760 = in31 * m758;\nm761 = m759 + m760;\nm770 = in413 + in621;\nm771 = m770 + in765;\nm772 = in605 + in769;\nm773 = m772 + in767;\nm774 = m773 + m771;\nm775 = in589 * in29;\nm776 = in31 * m774;\nm777 = m775 + m776;\nm786 = in429 + in635;\nm787 = m786 + in781;\nm788 = in785 + in589;\nm789 = m788 + in783;\nm790 = m789 + m787;\nm791 = in605 * in29;\nm792 = in31 * m790;\nm793 = m791 + m792;\nm800 = in445 + in649;\nm801 = m800 + in797;\nm802 = in635 + in799;\nm803 = m802 + in589;\nm804 = m803 + m801;\nm805 = in621 * in29;\nm806 = in31 * m804;\nm807 = m805 + m806;\nm814 = in459 + in663;\nm815 = m814 + in811;\nm816 = in813 + in621;\nm817 = m816 + in605;\nm818 = m817 + m815;\nm819 = in635 * in29;\nm820 = in31 * m818;\nm821 = m819 + m820;\nm828 = in473 + in677;\nm829 = m828 + in825;\nm830 = in663 + in827;\nm831 = m830 + in621;\nm832 = m831 + m829;\nm833 = in649 * in29;\nm834 = in31 * m832;\nm835 = m833 + m834;\nm842 = in487 + in691;\nm843 = m842 + in839;\nm844 = in841 + in649;\nm845 = m844 + in635;\nm846 = m845 + m843;\nm847 = in663 * in29;\nm848 = in31 * m846;\nm849 = m847 + m848;\nm856 = in501 + in705;\nm857 = m856 + in853;\nm858 = in691 + in855;\nm859 = m858 + in649;\nm860 = m859 + m857;\nm861 = in677 * in29;\nm862 = in31 * m860;\nm863 = m861 + m862;\nm870 = in515 + in719;\nm871 = m870 + in867;\nm872 = in869 + in677;\nm873 = m872 + in663;\nm874 = m873 + m871;\nm875 = in691 * in29;\nm876 = in31 * m874;\nm877 = m875 + m876;\nm884 = in529 + in733;\nm885 = m884 + in881;\nm886 = in719 + in883;\nm887 = m886 + in677;\nm888 = m887 + m885;\nm889 = in705 * in29;\nm890 = in31 * m888;\nm891 = m889 + m890;\nm898 = in543 + in749;\nm899 = m898 + in895;\nm900 = in897 + in705;\nm901 = m900 + in691;\nm902 = m901 + m899;\nm903 = in719 * in29;\nm904 = in31 * m902;\nm905 = m903 + m904;\nm914 = in557 + in911;\nm915 = m914 + in909;\nm916 = in749 + in913;\nm917 = m916 + in705;\nm918 = m917 + m915;\nm919 = in733 * in29;\nm920 = in31 * m918;\nm921 = m919 + m920;\nm930 = in573 + in927;\nm931 = m930 + in925;\nm932 = in929 + in733;\nm933 = m932 + in719;\nm934 = m933 + m931;\nm935 = in749 * in29;\nm936 = in31 * m934;\nm937 = m935 + m936;\nm946 = in589 + in797;\nm947 = m946 + in941;\nm948 = in781 + in945;\nm949 = m948 + in943;\nm950 = m949 + m947;\nm951 = in765 * in29;\nm952 = in31 * m950;\nm953 = m951 + m952;\nm962 = in605 + in811;\nm963 = m962 + in957;\nm964 = in961 + in765;\nm965 = m964 + in959;\nm966 = m965 + m963;\nm967 = in781 * in29;\nm968 = in31 * m966;\nm969 = m967 + m968;\nm976 = in621 + in825;\nm977 = m976 + in973;\nm978 = in811 + in975;\nm979 = m978 + in765;\nm980 = m979 + m977;\nm981 = in797 * in29;\nm982 = in31 * m980;\nm983 = m981 + m982;\nm990 = in635 + in839;\nm991 = m990 + in987;\nm992 = in989 + in797;\nm993 = m992 + in781;\nm994 = m993 + m991;\nm995 = in811 * in29;\nm996 = in31 * m994;\nm997 = m995 + m996;\nm1004 = in649 + in853;\nm1005 = m1004 + in1001;\nm1006 = in839 + in1003;\nm1007 = m1006 + in797;\nm1008 = m1007 + m1005;\nm1009 = in825 * in29;\nm1010 = in31 * m1008;\nm1011 = m1009 + m1010;\nm1018 = in663 + in867;\nm1019 = m1018 + in1015;\nm1020 = in1017 + in825;\nm1021 = m1020 + in811;\nm1022 = m1021 + m1019;\nm1023 = in839 * in29;\nm1024 = in31 * m1022;\nm1025 = m1023 + m1024;\nm1032 = in677 + in881;\nm1033 = m1032 + in1029;\nm1034 = in867 + in1031;\nm1035 = m1034 + in825;\nm1036 = m1035 + m1033;\nm1038 = in853 * in1037;\nm1040 = in1039 * m1036;\nm1041 = m1038 + m1040;\nm1048 = in691 + in895;\nm1049 = m1048 + in1045;\nm1050 = in1047 + in853;\nm1051 = m1050 + in839;\nm1052 = m1051 + m1049;\nm1053 = in867 * in1037;\nm1054 = in1039 * m1052;\nm1055 = m1053 + m1054;\nm1062 = in705 + in909;\nm1063 = m1062 + in1059;\nm1064 = in895 + in1061;\nm1065 = m1064 + in853;\nm1066 = m1065 + m1063;\nm1067 = in881 * in1037;\nm1068 = in1039 * m1066;\nm1069 = m1067 + m1068;\nm1076 = in719 + in925;\nm1077 = m1076 + in1073;\nm1078 = in1075 + in881;\nm1079 = m1078 + in867;\nm1080 = m1079 + m1077;\nm1081 = in895 * in1037;\nm1082 = in1039 * m1080;\nm1083 = m1081 + m1082;\nm1092 = in733 + in1089;\nm1093 = m1092 + in1087;\nm1094 = in925 + in1091;\nm1095 = m1094 + in881;\nm1096 = m1095 + m1093;\nm1097 = in909 * in1037;\nm1098 = in1039 * m1096;\nm1099 = m1097 + m1098;\nm1108 = in749 + in1105;\nm1109 = m1108 + in1103;\nm1110 = in1107 + in909;\nm1111 = m1110 + in895;\nm1112 = m1111 + m1109;\nm1113 = in925 * in1037;\nm1114 = in1039 * m1112;\nm1115 = m1113 + m1114;\n\nm35 = m33;\nout_data[0] = m35;\nm55 = m53;\nout_data[1] = m55;\nm73 = m71;\nout_data[2] = m73;\nm91 = m89;\nout_data[3] = m91;\nm109 = m107;\nout_data[4] = m109;\nm127 = m125;\nout_data[5] = m127;\nm145 = m143;\nout_data[6] = m145;\nm163 = m161;\nout_data[7] = m163;\nm181 = m179;\nout_data[8] = m181;\nm199 = m197;\nout_data[9] = m199;\nm217 = m215;\nout_data[10] = m217;\nm235 = m233;\nout_data[11] = m235;\nm251 = m249;\nout_data[12] = m251;\nm267 = m265;\nout_data[13] = m267;\nm281 = m279;\nout_data[14] = m281;\nm295 = m293;\nout_data[15] = m295;\nm309 = m307;\nout_data[16] = m309;\nm323 = m321;\nout_data[17] = m323;\nm337 = m335;\nout_data[18] = m337;\nm351 = m349;\nout_data[19] = m351;\nm365 = m363;\nout_data[20] = m365;\nm379 = m377;\nout_data[21] = m379;\nm395 = m393;\nout_data[22] = m395;\nm411 = m409;\nout_data[23] = m411;\nm427 = m425;\nout_data[24] = m427;\nm443 = m441;\nout_data[25] = m443;\nm457 = m455;\nout_data[26] = m457;\nm471 = m469;\nout_data[27] = m471;\nm485 = m483;\nout_data[28] = m485;\nm499 = m497;\nout_data[29] = m499;\nm513 = m511;\nout_data[30] = m513;\nm527 = m525;\nout_data[31] = m527;\nm541 = m539;\nout_data[32] = m541;\nm555 = m553;\nout_data[33] = m555;\nm571 = m569;\nout_data[34] = m571;\nm587 = m585;\nout_data[35] = m587;\nm603 = m601;\nout_data[36] = m603;\nm619 = m617;\nout_data[37] = m619;\nm633 = m631;\nout_data[38] = m633;\nm647 = m645;\nout_data[39] = m647;\nm661 = m659;\nout_data[40] = m661;\nm675 = m673;\nout_data[41] = m675;\nm689 = m687;\nout_data[42] = m689;\nm703 = m701;\nout_data[43] = m703;\nm717 = m715;\nout_data[44] = m717;\nm731 = m729;\nout_data[45] = m731;\nm747 = m745;\nout_data[46] = m747;\nm763 = m761;\nout_data[47] = m763;\nm779 = m777;\nout_data[48] = m779;\nm795 = m793;\nout_data[49] = m795;\nm809 = m807;\nout_data[50] = m809;\nm823 = m821;\nout_data[51] = m823;\nm837 = m835;\nout_data[52] = m837;\nm851 = m849;\nout_data[53] = m851;\nm865 = m863;\nout_data[54] = m865;\nm879 = m877;\nout_data[55] = m879;\nm893 = m891;\nout_data[56] = m893;\nm907 = m905;\nout_data[57] = m907;\nm923 = m921;\nout_data[58] = m923;\nm939 = m937;\nout_data[59] = m939;\nm955 = m953;\nout_data[60] = m955;\nm971 = m969;\nout_data[61] = m971;\nm985 = m983;\nout_data[62] = m985;\nm999 = m997;\nout_data[63] = m999;\nm1013 = m1011;\nout_data[64] = m1013;\nm1027 = m1025;\nout_data[65] = m1027;\nm1043 = m1041;\nout_data[66] = m1043;\nm1057 = m1055;\nout_data[67] = m1057;\nm1071 = m1069;\nout_data[68] = m1071;\nm1085 = m1083;\nout_data[69] = m1085;\nm1101 = m1099;\nout_data[70] = m1101;\nm1117 = m1115;\nout_data[71] = m1117;\n\n\n}\n", "groundtruth": "ap_int<16> in677;\n", "crossfile_context": ""} {"task_id": "IronMan", "path": "IronMan/cc/case_15.cc", "left_context": "\n\n#include \n#include \"ap_fixed.h\"\n\nvoid case_15(\n ap_int<16> in_data[12],\n ap_int<16> out_data[10]\n)\n{\n\n#pragma HLS array_partition variable=in_data complete\n#pragma HLS array_partition variable=out_data complete\n\n \n\nap_int<14> in1;\nin1.range(13, 0) = in_data[0].range(13, 0);\nap_int<15> in2;\nin2.range(14, 0) = in_data[1].range(14, 0);\nap_int<9> in3;\nin3.range(8, 0) = in_data[2].range(8, 0);\nap_int<10> in4;\nin4.range(9, 0) = in_data[3].range(9, 0);\nap_int<15> in5;\nin5.range(14, 0) = in_data[4].range(14, 0);\nap_int<9> in6;\nin6.range(8, 0) = in_data[5].range(8, 0);\nap_int<6> in7;\nin7.range(5, 0) = in_data[6].range(5, 0);\nap_int<12> in8;\nin8.range(11, 0) = in_data[7].range(11, 0);\nap_int<16> in9;\nin9.range(15, 0) = in_data[8].range(15, 0);\nap_int<5> in10;\nin10.range(4, 0) = in_data[9].range(4, 0);\nap_int<7> in11;\nin11.range(6, 0) = in_data[10].range(6, 0);\nap_int<14> in12;\nin12.range(13, 0) = in_data[11].range(13, 0);\n\nap_int<14> m13;\nap_int<16> m14;\nap_int<9> m15;\nap_int<10> m16;\nap_int<10> m17;\nap_int<9> m18;\nap_int<7> m19;\nap_int<7> m20;\nap_int<10> m21;\nap_int<13> m22;\nap_int<4> m23;\nap_int<6> m24;\nap_int<5> m25;\nap_int<11> m26;\nap_int<5> m27;\nap_int<2> m28;\nap_int<6> m29;\nap_int<11> m30;\nap_int<13> m31;\nap_int<16> m32;\nap_int<15> m33;\nap_int<12> m34;\nap_int<11> m35;\nap_int<12> m36;\nap_int<16> m37;\nap_int<15> m38;\nap_int<12> m39;\nap_int<14> m40;\nap_int<16> m41;\nap_int<11> m42;\nap_int<15> m43;\nap_int<12> m44;\nap_int<16> m45;\nap_int<8> m46;\n", "right_context": "ap_int<6> m56;\nap_int<9> m57;\nap_int<12> m58;\nap_int<13> m59;\nap_int<11> m60;\nap_int<10> m61;\nap_int<7> m62;\nap_int<9> m63;\nap_int<6> m64;\nap_int<12> m65;\nap_int<6> m66;\nap_int<15> m67;\n\nm13 = in12 * in3;\nm14 = in5 * in4;\nm15 = m14 * in11;\nm16 = in11 * in12;\nm17 = m15 * in11;\nm18 = in8 * m16;\nm19 = in9 * m17;\nm20 = m18 * m14;\nm21 = m18 * m14;\nm22 = m19 * m15;\nm23 = m19 * m21;\nm24 = in12 * m17;\nm25 = m17 + m23;\nm26 = m20 * m20;\nm27 = m17 + m18;\nm28 = m25 * m27;\nm29 = m28 * m25;\nm30 = m24 * m25;\nm31 = m29 * m21;\nm32 = m27 + m30;\nm33 = m31 * m21;\nm34 = m31 * m31;\nm35 = m26 * m32;\nm36 = m26 * m32;\nm37 = m29 * m30;\nm38 = m27 * m33;\nm39 = m33 * m33;\nm40 = m28 * m38;\nm41 = m36 * m35;\nm42 = m33 * m33;\nm43 = m38 * m39;\nm44 = m39 * m36;\nm45 = m33 * m35;\nm46 = m34 * m39;\nm47 = m38 * m35;\nm48 = m45 * m46;\nm49 = m40 + m37;\nm50 = m48 * m39;\nm51 = m39 * m50;\nm52 = m48 * m43;\nm53 = m42 + m43;\nm54 = m44 * m44;\nm55 = m48 * m52;\nm56 = m49 + m46;\nm57 = m45 * m45;\nm58 = m48 * m57;\nm59 = m56 * m54;\nm60 = m59 + m52;\nm61 = m49 * m50;\nm62 = m57 * m57;\nm63 = m60 * m52;\nm64 = m62 + m62;\nm65 = m61 * m58;\nm66 = m65 * m63;\nm67 = m65 * m62;\n\nout_data[0] = m13;\nout_data[1] = m22;\nout_data[2] = m41;\nout_data[3] = m47;\nout_data[4] = m51;\nout_data[5] = m53;\nout_data[6] = m55;\nout_data[7] = m64;\nout_data[8] = m66;\nout_data[9] = m67;\n\n\n}\n ", "groundtruth": "ap_int<11> m47;\nap_int<16> m48;\nap_int<10> m49;\nap_int<13> m50;\nap_int<12> m51;\n", "crossfile_context": ""} {"task_id": "IronMan", "path": "IronMan/cc/case_17.cc", "left_context": "\n\n#include \n#include \"ap_fixed.h\"\n\nvoid case_17(\n ap_int<16> in_data[11],\n ap_int<16> out_data[7]\n)\n{\n\n#pragma HLS array_partition variable=in_data complete\n#pragma HLS array_partition variable=out_data complete\n\n \n\nap_int<2> in1;\nin1.range(1, 0) = in_data[0].range(1, 0);\nap_int<12> in2;\nin2.range(11, 0) = in_data[1].range(11, 0);\nap_int<4> in3;\nin3.range(3, 0) = in_data[2].range(3, 0);\nap_int<2> in4;\nin4.range(1, 0) = in_data[3].range(1, 0);\nap_int<8> in5;\nin5.range(7, 0) = in_data[4].range(7, 0);\nap_int<5> in6;\nin6.range(4, 0) = in_data[5].range(4, 0);\nap_int<7> in7;\nin7.range(6, 0) = in_data[6].range(6, 0);\nap_int<3> in8;\nin8.range(2, 0) = in_data[7].range(2, 0);\nap_int<10> in9;\nin9.range(9, 0) = in_data[8].range(9, 0);\nap_int<11> in10;\nin10.range(10, 0) = in_data[9].range(10, 0);\nap_int<5> in11;\nin11.range(4, 0) = in_data[10].range(4, 0);\n\nap_int<10> m12;\nap_int<8> m13;\nap_int<10> m14;\nap_int<8> m15;\nap_int<6> m16;\n", "right_context": "ap_int<8> m22;\nap_int<13> m23;\nap_int<8> m24;\nap_int<4> m25;\nap_int<2> m26;\nap_int<4> m27;\nap_int<14> m28;\nap_int<10> m29;\nap_int<4> m30;\nap_int<4> m31;\nap_int<9> m32;\nap_int<8> m33;\nap_int<6> m34;\nap_int<3> m35;\n\nm12 = in5 * in8;\nm13 = in8 * in6;\nm14 = in10 * in4;\nm15 = in7 * in4;\nm16 = m13 + in11;\nm17 = in10 * m16;\nm18 = m13 + in9;\nm19 = in10 * m17;\nm20 = in10 * in9;\nm21 = m15 * m15;\nm22 = m12 * m13;\nm23 = m18 * m15;\nm24 = m19 + m14;\nm25 = m19 * m23;\nm26 = m25 * m18;\nm27 = m24 * m19;\nm28 = m23 + m18;\nm29 = m18 + m18;\nm30 = m25 * m25;\nm31 = m25 * m22;\nm32 = m27 + m23;\nm33 = m24 * m30;\nm34 = m26 * m33;\nm35 = m27 * m32;\n\nout_data[0] = m20;\nout_data[1] = m21;\nout_data[2] = m28;\nout_data[3] = m29;\nout_data[4] = m31;\nout_data[5] = m34;\nout_data[6] = m35;\n\n\n}\n ", "groundtruth": "ap_int<4> m17;\nap_int<7> m18;\nap_int<3> m19;\n", "crossfile_context": ""} {"task_id": "IronMan", "path": "IronMan/cc/case_19.cc", "left_context": "\n\n#include \n#include \"ap_fixed.h\"\n\nvoid case_19(\n ap_int<16> in_data[17],\n ap_int<16> out_data[16]\n)\n{\n\n#pragma HLS array_partition variable=in_data complete\n#pragma HLS array_partition variable=out_data complete\n\n \n\nap_int<9> in1;\nin1.range(8, 0) = in_data[0].range(8, 0);\nap_int<9> in2;\nin2.range(8, 0) = in_data[1].range(8, 0);\nap_int<7> in3;\nin3.range(6, 0) = in_data[2].range(6, 0);\nap_int<5> in4;\nin4.range(4, 0) = in_data[3].range(4, 0);\nap_int<13> in5;\nin5.range(12, 0) = in_data[4].range(12, 0);\nap_int<15> in6;\nin6.range(14, 0) = in_data[5].range(14, 0);\nap_int<4> in7;\nin7.range(3, 0) = in_data[6].range(3, 0);\nap_int<15> in8;\nin8.range(14, 0) = in_data[7].range(14, 0);\nap_int<15> in9;\nin9.range(14, 0) = in_data[8].range(14, 0);\nap_int<14> in10;\nin10.range(13, 0) = in_data[9].range(13, 0);\nap_int<3> in11;\nin11.range(2, 0) = in_data[10].range(2, 0);\nap_int<9> in12;\nin12.range(8, 0) = in_data[11].range(8, 0);\nap_int<12> in13;\nin13.range(11, 0) = in_data[12].range(11, 0);\nap_int<7> in14;\nin14.range(6, 0) = in_data[13].range(6, 0);\nap_int<11> in15;\nin15.range(10, 0) = in_data[14].range(10, 0);\nap_int<3> in16;\nin16.range(2, 0) = in_data[15].range(2, 0);\nap_int<9> in17;\nin17.range(8, 0) = in_data[16].range(8, 0);\n\nap_int<14> m18;\nap_int<7> m19;\nap_int<4> m20;\nap_int<16> m21;\nap_int<8> m22;\nap_int<5> m23;\nap_int<14> m24;\nap_int<6> m25;\nap_int<12> m26;\nap_int<11> m27;\nap_int<12> m28;\nap_int<8> m29;\nap_int<2> m30;\nap_int<9> m31;\nap_int<12> m32;\nap_int<2> m33;\nap_int<9> m34;\nap_int<7> m35;\nap_int<13> m36;\n", "right_context": "ap_int<8> m38;\nap_int<4> m39;\nap_int<12> m40;\nap_int<12> m41;\nap_int<16> m42;\nap_int<5> m43;\nap_int<13> m44;\nap_int<4> m45;\nap_int<4> m46;\nap_int<6> m47;\nap_int<8> m48;\nap_int<11> m49;\nap_int<5> m50;\nap_int<5> m51;\nap_int<9> m52;\nap_int<16> m53;\nap_int<10> m54;\nap_int<11> m55;\nap_int<11> m56;\nap_int<16> m57;\nap_int<14> m58;\nap_int<9> m59;\nap_int<10> m60;\nap_int<16> m61;\nap_int<16> m62;\nap_int<6> m63;\nap_int<8> m64;\nap_int<9> m65;\nap_int<8> m66;\nap_int<12> m67;\nap_int<5> m68;\nap_int<11> m69;\nap_int<14> m70;\nap_int<6> m71;\nap_int<9> m72;\nap_int<7> m73;\nap_int<11> m74;\nap_int<16> m75;\nap_int<7> m76;\nap_int<16> m77;\nap_int<16> m78;\nap_int<7> m79;\nap_int<6> m80;\nap_int<14> m81;\nap_int<13> m82;\nap_int<8> m83;\nap_int<8> m84;\nap_int<16> m85;\nap_int<8> m86;\nap_int<13> m87;\nap_int<7> m88;\n\nm18 = in4 * in5;\nm19 = in16 * in13;\nm20 = in10 + in4;\nm21 = in10 * m18;\nm22 = m19 * m21;\nm23 = in8 * m19;\nm24 = m21 * m21;\nm25 = m19 + in9;\nm26 = m19 * m25;\nm27 = m24 * m25;\nm28 = m23 * m27;\nm29 = in16 * in17;\nm30 = in16 * in14;\nm31 = m30 * m26;\nm32 = m21 * m18;\nm33 = m25 * m30;\nm34 = m32 * m19;\nm35 = m30 * m21;\nm36 = m26 * m26;\nm37 = m31 + m23;\nm38 = m27 * m33;\nm39 = m23 * m32;\nm40 = m36 + m37;\nm41 = m37 * m32;\nm42 = m35 * m31;\nm43 = m26 * m29;\nm44 = m32 * m33;\nm45 = m39 * m29;\nm46 = m37 * m33;\nm47 = m33 * m44;\nm48 = m37 * m31;\nm49 = m41 + m46;\nm50 = m33 * m40;\nm51 = m47 * m41;\nm52 = m46 * m42;\nm53 = m40 * m46;\nm54 = m43 * m49;\nm55 = m39 * m44;\nm56 = m53 * m40;\nm57 = m44 * m49;\nm58 = m50 * m49;\nm59 = m50 * m51;\nm60 = m52 * m47;\nm61 = m49 + m55;\nm62 = m46 + m58;\nm63 = m46 * m50;\nm64 = m53 * m54;\nm65 = m56 + m53;\nm66 = m63 * m59;\nm67 = m62 * m60;\nm68 = m56 * m54;\nm69 = m54 * m67;\nm70 = m57 * m61;\nm71 = m60 + m66;\nm72 = m65 * m64;\nm73 = m65 * m67;\nm74 = m58 * m66;\nm75 = m63 * m69;\nm76 = m63 * m69;\nm77 = m61 * m75;\nm78 = m66 * m72;\nm79 = m70 + m73;\nm80 = m73 * m76;\nm81 = m78 + m69;\nm82 = m65 * m81;\nm83 = m68 * m72;\nm84 = m72 * m70;\nm85 = m83 + m78;\nm86 = m85 * m69;\nm87 = m70 * m72;\nm88 = m83 * m84;\n\nout_data[0] = m20;\nout_data[1] = m22;\nout_data[2] = m28;\nout_data[3] = m34;\nout_data[4] = m38;\nout_data[5] = m45;\nout_data[6] = m48;\nout_data[7] = m71;\nout_data[8] = m74;\nout_data[9] = m77;\nout_data[10] = m79;\nout_data[11] = m80;\nout_data[12] = m82;\nout_data[13] = m86;\nout_data[14] = m87;\nout_data[15] = m88;\n\n\n}\n ", "groundtruth": "ap_int<3> m37;\n", "crossfile_context": ""} {"task_id": "IronMan", "path": "IronMan/cc/case_23.cc", "left_context": "\n\n#include \n#include \"ap_fixed.h\"\n\nvoid case_23(\n ap_int<16> in_data[12],\n ap_int<16> out_data[12]\n)\n{\n\n#pragma HLS array_partition variable=in_data complete\n#pragma HLS array_partition variable=out_data complete\n\n \n\nap_int<14> in1;\nin1.range(13, 0) = in_data[0].range(13, 0);\nap_int<8> in2;\nin2.range(7, 0) = in_data[1].range(7, 0);\nap_int<15> in3;\nin3.range(14, 0) = in_data[2].range(14, 0);\nap_int<12> in4;\nin4.range(11, 0) = in_data[3].range(11, 0);\nap_int<3> in5;\nin5.range(2, 0) = in_data[4].range(2, 0);\nap_int<8> in6;\nin6.range(7, 0) = in_data[5].range(7, 0);\nap_int<7> in7;\nin7.range(6, 0) = in_data[6].range(6, 0);\nap_int<5> in8;\nin8.range(4, 0) = in_data[7].range(4, 0);\nap_int<7> in9;\nin9.range(6, 0) = in_data[8].range(6, 0);\nap_int<15> in10;\nin10.range(14, 0) = in_data[9].range(14, 0);\nap_int<9> in11;\nin11.range(8, 0) = in_data[10].range(8, 0);\nap_int<6> in12;\nin12.range(5, 0) = in_data[11].range(5, 0);\n\nap_int<8> m13;\nap_int<6> m14;\nap_int<8> m15;\nap_int<9> m16;\nap_int<12> m17;\nap_int<14> m18;\nap_int<11> m19;\nap_int<11> m20;\nap_int<13> m21;\nap_int<8> m22;\nap_int<11> m23;\nap_int<12> m24;\nap_int<3> m25;\nap_int<12> m26;\nap_int<8> m27;\nap_int<14> m28;\nap_int<11> m29;\nap_int<8> m30;\nap_int<7> m31;\nap_int<9> m32;\nap_int<9> m33;\nap_int<6> m34;\nap_int<9> m35;\nap_int<9> m36;\nap_int<6> m37;\nap_int<9> m38;\nap_int<12> m39;\nap_int<10> m40;\nap_int<8> m41;\nap_int<4> m42;\nap_int<7> m43;\nap_int<9> m44;\nap_int<14> m45;\nap_int<5> m46;\nap_int<12> m47;\nap_int<11> m48;\nap_int<6> m49;\nap_int<6> m50;\nap_int<3> m51;\nap_int<11> m52;\nap_int<13> m53;\nap_int<10> m54;\nap_int<10> m55;\nap_int<12> m56;\nap_int<4> m57;\nap_int<4> m58;\nap_int<5> m59;\nap_int<7> m60;\nap_int<4> m61;\nap_int<12> m62;\nap_int<6> m63;\nap_int<6> m64;\nap_int<4> m65;\nap_int<7> m66;\nap_int<6> m67;\nap_int<7> m68;\nap_int<4> m69;\nap_int<6> m70;\nap_int<4> m71;\nap_int<10> m72;\nap_int<15> m73;\nap_int<3> m74;\nap_int<5> m75;\nap_int<8> m76;\nap_int<8> m77;\nap_int<10> m78;\nap_int<2> m79;\nap_int<2> m80;\nap_int<5> m81;\nap_int<4> m82;\nap_int<4> m83;\nap_int<5> m84;\nap_int<8> m85;\nap_int<4> m86;\nap_int<5> m87;\nap_int<6> m88;\nap_int<7> m89;\nap_int<9> m90;\nap_int<5> m91;\nap_int<12> m92;\nap_int<8> m93;\nap_int<13> m94;\n", "right_context": "ap_int<9> m100;\nap_int<10> m101;\nap_int<16> m102;\nap_int<8> m103;\nap_int<4> m104;\nap_int<6> m105;\nap_int<16> m106;\nap_int<15> m107;\nap_int<9> m108;\nap_int<9> m109;\nap_int<12> m110;\nap_int<12> m111;\nap_int<7> m112;\nap_int<16> m113;\nap_int<15> m114;\nap_int<11> m115;\nap_int<8> m116;\nap_int<10> m117;\nap_int<13> m118;\nap_int<8> m119;\n\nm13 = in6 * in1;\nm14 = in2 * in11;\nm15 = m14 * in9;\nm16 = in4 * in9;\nm17 = m14 * in9;\nm18 = in10 * m17;\nm19 = m13 + m15;\nm20 = in10 * in11;\nm21 = m16 * m16;\nm22 = m16 * m13;\nm23 = m16 * m14;\nm24 = m13 * m17;\nm25 = m14 * m16;\nm26 = m18 * m22;\nm27 = m22 * m23;\nm28 = m23 + m16;\nm29 = m22 + m25;\nm30 = m19 * m28;\nm31 = m23 * m23;\nm32 = m24 * m26;\nm33 = m21 + m21;\nm34 = m28 * m29;\nm35 = m32 * m27;\nm36 = m30 + m25;\nm37 = m25 * m25;\nm38 = m36 * m29;\nm39 = m32 * m27;\nm40 = m39 * m31;\nm41 = m34 * m30;\nm42 = m34 * m41;\nm43 = m37 * m38;\nm44 = m43 * m38;\nm45 = m42 * m39;\nm46 = m41 * m42;\nm47 = m36 * m46;\nm48 = m45 * m44;\nm49 = m42 * m46;\nm50 = m48 * m40;\nm51 = m44 * m49;\nm52 = m48 * m50;\nm53 = m43 * m52;\nm54 = m51 + m47;\nm55 = m49 * m53;\nm56 = m55 + m53;\nm57 = m50 * m51;\nm58 = m49 * m52;\nm59 = m57 + m55;\nm60 = m57 * m52;\nm61 = m51 * m60;\nm62 = m55 * m53;\nm63 = m58 * m59;\nm64 = m56 * m54;\nm65 = m54 * m58;\nm66 = m54 * m60;\nm67 = m64 * m61;\nm68 = m59 * m62;\nm69 = m67 + m60;\nm70 = m63 * m58;\nm71 = m64 * m69;\nm72 = m61 * m64;\nm73 = m62 + m71;\nm74 = m63 * m70;\nm75 = m67 * m70;\nm76 = m74 * m66;\nm77 = m65 * m70;\nm78 = m76 * m66;\nm79 = m71 * m71;\nm80 = m75 * m70;\nm81 = m70 * m80;\nm82 = m78 * m75;\nm83 = m76 * m72;\nm84 = m80 * m83;\nm85 = m77 + m74;\nm86 = m84 * m81;\nm87 = m75 * m84;\nm88 = m78 * m87;\nm89 = m88 * m80;\nm90 = m89 * m82;\nm91 = m79 * m83;\nm92 = m83 * m90;\nm93 = m86 + m81;\nm94 = m93 * m90;\nm95 = m92 * m83;\nm96 = m88 * m94;\nm97 = m94 * m92;\nm98 = m86 * m91;\nm99 = m93 * m91;\nm100 = m91 * m88;\nm101 = m97 * m100;\nm102 = m95 * m91;\nm103 = m99 * m94;\nm104 = m96 * m93;\nm105 = m101 + m101;\nm106 = m102 * m97;\nm107 = m98 * m97;\nm108 = m104 + m105;\nm109 = m104 * m99;\nm110 = m103 * m107;\nm111 = m104 * m110;\nm112 = m109 * m103;\nm113 = m106 * m112;\nm114 = m110 * m104;\nm115 = m112 * m113;\nm116 = m112 * m114;\nm117 = m105 * m112;\nm118 = m107 * m113;\nm119 = m117 * m117;\n\nout_data[0] = m20;\nout_data[1] = m33;\nout_data[2] = m35;\nout_data[3] = m68;\nout_data[4] = m73;\nout_data[5] = m85;\nout_data[6] = m108;\nout_data[7] = m111;\nout_data[8] = m115;\nout_data[9] = m116;\nout_data[10] = m118;\nout_data[11] = m119;\n\n\n}\n ", "groundtruth": "ap_int<12> m95;\nap_int<4> m96;\nap_int<16> m97;\n", "crossfile_context": ""} {"task_id": "IronMan", "path": "IronMan/cc/case_27.cc", "left_context": "\n\n#include \n#include \"ap_fixed.h\"\n\nvoid case_27(\n ap_int<16> in_data[25],\n ap_int<16> out_data[37]\n)\n{\n\n#pragma HLS array_partition variable=in_data complete\n#pragma HLS array_partition variable=out_data complete\n\n \n\nap_int<2> in1;\nin1.range(1, 0) = in_data[0].range(1, 0);\nap_int<4> in2;\nin2.range(3, 0) = in_data[1].range(3, 0);\nap_int<14> in3;\nin3.range(13, 0) = in_data[2].range(13, 0);\nap_int<8> in4;\nin4.range(7, 0) = in_data[3].range(7, 0);\nap_int<7> in5;\nin5.range(6, 0) = in_data[4].range(6, 0);\nap_int<14> in6;\nin6.range(13, 0) = in_data[5].range(13, 0);\nap_int<9> in7;\nin7.range(8, 0) = in_data[6].range(8, 0);\nap_int<13> in8;\nin8.range(12, 0) = in_data[7].range(12, 0);\nap_int<6> in9;\nin9.range(5, 0) = in_data[8].range(5, 0);\nap_int<10> in10;\nin10.range(9, 0) = in_data[9].range(9, 0);\nap_int<3> in11;\nin11.range(2, 0) = in_data[10].range(2, 0);\nap_int<9> in12;\nin12.range(8, 0) = in_data[11].range(8, 0);\nap_int<6> in13;\nin13.range(5, 0) = in_data[12].range(5, 0);\nap_int<10> in14;\nin14.range(9, 0) = in_data[13].range(9, 0);\nap_int<16> in15;\nin15.range(15, 0) = in_data[14].range(15, 0);\nap_int<5> in16;\nin16.range(4, 0) = in_data[15].range(4, 0);\nap_int<12> in17;\nin17.range(11, 0) = in_data[16].range(11, 0);\nap_int<4> in18;\nin18.range(3, 0) = in_data[17].range(3, 0);\nap_int<10> in19;\nin19.range(9, 0) = in_data[18].range(9, 0);\nap_int<3> in20;\nin20.range(2, 0) = in_data[19].range(2, 0);\nap_int<7> in21;\nin21.range(6, 0) = in_data[20].range(6, 0);\nap_int<7> in22;\nin22.range(6, 0) = in_data[21].range(6, 0);\nap_int<15> in23;\nin23.range(14, 0) = in_data[22].range(14, 0);\nap_int<3> in24;\nin24.range(2, 0) = in_data[23].range(2, 0);\nap_int<9> in25;\nin25.range(8, 0) = in_data[24].range(8, 0);\n\nap_int<10> m26;\nap_int<3> m27;\nap_int<7> m28;\nap_int<6> m29;\nap_int<12> m30;\nap_int<16> m31;\nap_int<4> m32;\nap_int<9> m33;\nap_int<6> m34;\nap_int<11> m35;\nap_int<2> m36;\nap_int<13> m37;\nap_int<11> m38;\nap_int<7> m39;\n", "right_context": "ap_int<4> m41;\nap_int<9> m42;\nap_int<15> m43;\nap_int<14> m44;\nap_int<5> m45;\nap_int<6> m46;\nap_int<9> m47;\nap_int<9> m48;\nap_int<15> m49;\nap_int<9> m50;\nap_int<15> m51;\nap_int<6> m52;\nap_int<7> m53;\nap_int<16> m54;\nap_int<5> m55;\nap_int<14> m56;\nap_int<14> m57;\nap_int<16> m58;\nap_int<9> m59;\nap_int<9> m60;\nap_int<7> m61;\nap_int<9> m62;\nap_int<13> m63;\nap_int<16> m64;\nap_int<15> m65;\nap_int<14> m66;\nap_int<9> m67;\nap_int<11> m68;\nap_int<10> m69;\nap_int<11> m70;\nap_int<8> m71;\nap_int<15> m72;\nap_int<16> m73;\nap_int<6> m74;\nap_int<13> m75;\nap_int<13> m76;\nap_int<15> m77;\nap_int<8> m78;\nap_int<8> m79;\nap_int<7> m80;\nap_int<10> m81;\nap_int<10> m82;\nap_int<13> m83;\nap_int<12> m84;\nap_int<9> m85;\nap_int<10> m86;\nap_int<8> m87;\nap_int<5> m88;\nap_int<10> m89;\nap_int<5> m90;\nap_int<4> m91;\nap_int<7> m92;\nap_int<14> m93;\nap_int<8> m94;\nap_int<13> m95;\nap_int<9> m96;\nap_int<13> m97;\nap_int<9> m98;\nap_int<5> m99;\nap_int<13> m100;\nap_int<12> m101;\nap_int<8> m102;\nap_int<8> m103;\nap_int<10> m104;\nap_int<16> m105;\nap_int<10> m106;\nap_int<3> m107;\nap_int<10> m108;\nap_int<3> m109;\nap_int<10> m110;\nap_int<7> m111;\nap_int<11> m112;\nap_int<13> m113;\nap_int<8> m114;\nap_int<14> m115;\nap_int<5> m116;\nap_int<5> m117;\nap_int<10> m118;\nap_int<11> m119;\nap_int<4> m120;\nap_int<6> m121;\nap_int<10> m122;\nap_int<7> m123;\nap_int<9> m124;\nap_int<13> m125;\nap_int<7> m126;\nap_int<8> m127;\nap_int<12> m128;\nap_int<11> m129;\nap_int<8> m130;\nap_int<15> m131;\nap_int<7> m132;\nap_int<10> m133;\nap_int<9> m134;\nap_int<5> m135;\nap_int<5> m136;\nap_int<16> m137;\nap_int<11> m138;\nap_int<9> m139;\nap_int<12> m140;\nap_int<13> m141;\nap_int<15> m142;\nap_int<7> m143;\nap_int<9> m144;\nap_int<9> m145;\nap_int<8> m146;\nap_int<5> m147;\nap_int<15> m148;\nap_int<11> m149;\nap_int<8> m150;\nap_int<7> m151;\nap_int<7> m152;\nap_int<5> m153;\nap_int<10> m154;\nap_int<7> m155;\nap_int<12> m156;\nap_int<14> m157;\nap_int<12> m158;\nap_int<6> m159;\nap_int<14> m160;\nap_int<4> m161;\nap_int<6> m162;\nap_int<10> m163;\nap_int<7> m164;\nap_int<15> m165;\nap_int<10> m166;\nap_int<14> m167;\nap_int<9> m168;\nap_int<12> m169;\nap_int<13> m170;\nap_int<7> m171;\nap_int<15> m172;\nap_int<16> m173;\nap_int<4> m174;\nap_int<15> m175;\nap_int<13> m176;\nap_int<7> m177;\nap_int<11> m178;\nap_int<9> m179;\nap_int<12> m180;\nap_int<10> m181;\nap_int<6> m182;\nap_int<13> m183;\nap_int<11> m184;\nap_int<9> m185;\nap_int<12> m186;\nap_int<7> m187;\nap_int<13> m188;\nap_int<8> m189;\nap_int<9> m190;\nap_int<6> m191;\nap_int<16> m192;\nap_int<7> m193;\nap_int<11> m194;\nap_int<8> m195;\nap_int<11> m196;\nap_int<7> m197;\nap_int<7> m198;\nap_int<8> m199;\nap_int<14> m200;\nap_int<12> m201;\nap_int<16> m202;\nap_int<10> m203;\nap_int<10> m204;\nap_int<10> m205;\nap_int<8> m206;\nap_int<14> m207;\nap_int<16> m208;\nap_int<15> m209;\nap_int<8> m210;\nap_int<9> m211;\nap_int<5> m212;\nap_int<13> m213;\nap_int<15> m214;\n\nm26 = in14 * in18;\nm27 = in25 * in2;\nm28 = in4 * in7;\nm29 = in24 * in24;\nm30 = in9 * in14;\nm31 = in23 * in17;\nm32 = m30 * m27;\nm33 = in21 + in25;\nm34 = in22 * m33;\nm35 = m29 * in23;\nm36 = in24 * m32;\nm37 = m36 * m31;\nm38 = in24 * in23;\nm39 = m30 * in16;\nm40 = in22 * m32;\nm41 = in18 + in21;\nm42 = in18 * m40;\nm43 = m26 * m35;\nm44 = m34 * m30;\nm45 = in22 * m31;\nm46 = m32 * m32;\nm47 = in24 * m29;\nm48 = m34 * m45;\nm49 = m35 * m42;\nm50 = in25 * m42;\nm51 = m47 * m43;\nm52 = m40 + m49;\nm53 = m52 * m52;\nm54 = m30 * m33;\nm55 = m33 * m42;\nm56 = m54 * m54;\nm57 = m51 * m38;\nm58 = m54 + m44;\nm59 = m58 * m40;\nm60 = m51 + m44;\nm61 = m37 * m50;\nm62 = m55 + m44;\nm63 = m56 * m61;\nm64 = m56 * m51;\nm65 = m64 + m64;\nm66 = m47 * m52;\nm67 = m44 * m53;\nm68 = m54 * m65;\nm69 = m58 * m44;\nm70 = m56 * m65;\nm71 = m51 * m52;\nm72 = m63 * m47;\nm73 = m66 + m62;\nm74 = m61 + m52;\nm75 = m70 * m69;\nm76 = m61 * m70;\nm77 = m55 + m73;\nm78 = m58 * m66;\nm79 = m67 * m72;\nm80 = m55 + m77;\nm81 = m72 + m61;\nm82 = m61 * m60;\nm83 = m81 * m78;\nm84 = m62 * m64;\nm85 = m83 * m71;\nm86 = m77 * m67;\nm87 = m67 * m80;\nm88 = m87 * m75;\nm89 = m77 * m65;\nm90 = m71 * m65;\nm91 = m74 * m67;\nm92 = m80 * m70;\nm93 = m73 * m73;\nm94 = m85 + m90;\nm95 = m83 * m88;\nm96 = m79 + m71;\nm97 = m72 * m96;\nm98 = m88 + m87;\nm99 = m89 + m74;\nm100 = m86 * m90;\nm101 = m83 + m85;\nm102 = m87 * m101;\nm103 = m101 * m94;\nm104 = m95 * m85;\nm105 = m99 * m100;\nm106 = m89 * m91;\nm107 = m99 * m89;\nm108 = m83 * m100;\nm109 = m98 * m90;\nm110 = m104 * m105;\nm111 = m90 * m94;\nm112 = m90 * m104;\nm113 = m89 * m100;\nm114 = m99 + m90;\nm115 = m98 + m93;\nm116 = m109 * m109;\nm117 = m106 * m98;\nm118 = m97 * m114;\nm119 = m110 * m117;\nm120 = m115 * m117;\nm121 = m103 * m99;\nm122 = m108 * m101;\nm123 = m117 + m117;\nm124 = m105 * m118;\nm125 = m112 * m118;\nm126 = m101 * m118;\nm127 = m113 * m103;\nm128 = m127 * m124;\nm129 = m104 * m114;\nm130 = m116 * m120;\nm131 = m110 + m111;\nm132 = m125 * m107;\nm133 = m109 + m132;\nm134 = m111 * m109;\nm135 = m116 * m131;\nm136 = m133 + m116;\nm137 = m114 * m127;\nm138 = m123 * m133;\nm139 = m136 * m132;\nm140 = m130 * m124;\nm141 = m129 * m137;\nm142 = m140 * m138;\nm143 = m119 * m132;\nm144 = m119 + m135;\nm145 = m125 + m130;\nm146 = m140 * m130;\nm147 = m138 * m139;\nm148 = m127 * m143;\nm149 = m135 * m126;\nm150 = m130 * m147;\nm151 = m146 * m127;\nm152 = m127 * m142;\nm153 = m146 + m150;\nm154 = m132 * m146;\nm155 = m147 * m132;\nm156 = m142 * m148;\nm157 = m148 * m148;\nm158 = m134 + m145;\nm159 = m152 * m150;\nm160 = m145 * m157;\nm161 = m146 * m154;\nm162 = m143 * m155;\nm163 = m139 * m161;\nm164 = m155 * m160;\nm165 = m142 * m148;\nm166 = m149 * m147;\nm167 = m163 * m158;\nm168 = m156 * m157;\nm169 = m160 * m165;\nm170 = m163 + m150;\nm171 = m147 * m162;\nm172 = m160 * m157;\nm173 = m167 * m166;\nm174 = m149 + m155;\nm175 = m171 * m156;\nm176 = m168 + m167;\nm177 = m155 * m155;\nm178 = m162 + m172;\nm179 = m156 * m167;\nm180 = m178 * m155;\nm181 = m172 * m169;\nm182 = m177 * m165;\nm183 = m162 * m181;\nm184 = m171 * m176;\nm185 = m184 * m162;\nm186 = m167 + m177;\nm187 = m168 * m174;\nm188 = m175 + m170;\nm189 = m181 * m174;\nm190 = m185 * m179;\nm191 = m174 + m174;\nm192 = m186 * m188;\nm193 = m191 * m187;\nm194 = m178 * m178;\nm195 = m177 * m187;\nm196 = m174 * m188;\nm197 = m184 * m189;\nm198 = m196 * m193;\nm199 = m183 * m175;\nm200 = m183 * m196;\nm201 = m185 * m200;\nm202 = m195 * m184;\nm203 = m192 * m198;\nm204 = m190 * m201;\nm205 = m193 * m190;\nm206 = m181 * m186;\nm207 = m184 * m203;\nm208 = m186 * m197;\nm209 = m201 * m192;\nm210 = m190 * m196;\nm211 = m203 * m202;\nm212 = m204 * m196;\nm213 = m202 * m195;\nm214 = m193 * m202;\n\nout_data[0] = m28;\nout_data[1] = m39;\nout_data[2] = m41;\nout_data[3] = m46;\nout_data[4] = m48;\nout_data[5] = m57;\nout_data[6] = m59;\nout_data[7] = m68;\nout_data[8] = m76;\nout_data[9] = m82;\nout_data[10] = m84;\nout_data[11] = m92;\nout_data[12] = m102;\nout_data[13] = m121;\nout_data[14] = m122;\nout_data[15] = m128;\nout_data[16] = m141;\nout_data[17] = m144;\nout_data[18] = m151;\nout_data[19] = m153;\nout_data[20] = m159;\nout_data[21] = m164;\nout_data[22] = m173;\nout_data[23] = m180;\nout_data[24] = m182;\nout_data[25] = m194;\nout_data[26] = m199;\nout_data[27] = m205;\nout_data[28] = m206;\nout_data[29] = m207;\nout_data[30] = m208;\nout_data[31] = m209;\nout_data[32] = m210;\nout_data[33] = m211;\nout_data[34] = m212;\nout_data[35] = m213;\nout_data[36] = m214;\n\n\n}\n ", "groundtruth": "ap_int<7> m40;\n", "crossfile_context": ""} {"task_id": "IronMan", "path": "IronMan/cc/case_3.cc", "left_context": "\n\n#include \n#include \"ap_fixed.h\"\n\nvoid case_3(\n ap_int<16> in_data[22],\n ap_int<16> out_data[20]\n)\n{\n\n#pragma HLS array_partition variable=in_data complete\n#pragma HLS array_partition variable=out_data complete\n\n \n\nap_int<2> in1;\nin1.range(1, 0) = in_data[0].range(1, 0);\nap_int<6> in2;\nin2.range(5, 0) = in_data[1].range(5, 0);\nap_int<3> in3;\nin3.range(2, 0) = in_data[2].range(2, 0);\nap_int<3> in4;\nin4.range(2, 0) = in_data[3].range(2, 0);\nap_int<14> in5;\nin5.range(13, 0) = in_data[4].range(13, 0);\nap_int<11> in6;\nin6.range(10, 0) = in_data[5].range(10, 0);\nap_int<12> in7;\nin7.range(11, 0) = in_data[6].range(11, 0);\nap_int<2> in8;\nin8.range(1, 0) = in_data[7].range(1, 0);\nap_int<2> in9;\nin9.range(1, 0) = in_data[8].range(1, 0);\nap_int<12> in10;\nin10.range(11, 0) = in_data[9].range(11, 0);\nap_int<4> in11;\nin11.range(3, 0) = in_data[10].range(3, 0);\nap_int<9> in12;\nin12.range(8, 0) = in_data[11].range(8, 0);\nap_int<9> in13;\nin13.range(8, 0) = in_data[12].range(8, 0);\nap_int<9> in14;\nin14.range(8, 0) = in_data[13].range(8, 0);\nap_int<16> in15;\nin15.range(15, 0) = in_data[14].range(15, 0);\nap_int<13> in16;\nin16.range(12, 0) = in_data[15].range(12, 0);\nap_int<4> in17;\nin17.range(3, 0) = in_data[16].range(3, 0);\nap_int<10> in18;\nin18.range(9, 0) = in_data[17].range(9, 0);\nap_int<9> in19;\nin19.range(8, 0) = in_data[18].range(8, 0);\nap_int<6> in20;\nin20.range(5, 0) = in_data[19].range(5, 0);\nap_int<16> in21;\nin21.range(15, 0) = in_data[20].range(15, 0);\nap_int<14> in22;\nin22.range(13, 0) = in_data[21].range(13, 0);\n\nap_int<5> m23;\nap_int<3> m24;\nap_int<11> m25;\nap_int<4> m26;\nap_int<4> m27;\nap_int<4> m28;\nap_int<10> m29;\nap_int<7> m30;\nap_int<9> m31;\nap_int<12> m32;\nap_int<9> m33;\nap_int<11> m34;\nap_int<12> m35;\nap_int<5> m36;\nap_int<14> m37;\nap_int<11> m38;\nap_int<7> m39;\nap_int<15> m40;\nap_int<9> m41;\nap_int<14> m42;\nap_int<5> m43;\nap_int<6> m44;\nap_int<10> m45;\nap_int<10> m46;\nap_int<13> m47;\nap_int<11> m48;\nap_int<14> m49;\nap_int<9> m50;\nap_int<6> m51;\nap_int<10> m52;\nap_int<12> m53;\nap_int<9> m54;\nap_int<5> m55;\nap_int<12> m56;\nap_int<15> m57;\nap_int<13> m58;\nap_int<8> m59;\nap_int<10> m60;\nap_int<3> m61;\nap_int<10> m62;\nap_int<5> m63;\nap_int<14> m64;\nap_int<10> m65;\nap_int<12> m66;\nap_int<7> m67;\nap_int<3> m68;\nap_int<9> m69;\nap_int<16> m70;\nap_int<10> m71;\nap_int<4> m72;\nap_int<6> m73;\nap_int<8> m74;\nap_int<8> m75;\nap_int<12> m76;\nap_int<8> m77;\nap_int<14> m78;\nap_int<9> m79;\nap_int<4> m80;\nap_int<3> m81;\nap_int<5> m82;\nap_int<15> m83;\nap_int<15> m84;\nap_int<7> m85;\nap_int<13> m86;\nap_int<12> m87;\nap_int<16> m88;\nap_int<8> m89;\nap_int<6> m90;\nap_int<4> m91;\nap_int<7> m92;\nap_int<8> m93;\nap_int<8> m94;\nap_int<10> m95;\nap_int<16> m96;\nap_int<6> m97;\nap_int<4> m98;\nap_int<5> m99;\nap_int<6> m100;\nap_int<16> m101;\nap_int<9> m102;\n\nm23 = in4 + in9;\nm24 = in20 * in17;\nm25 = in9 * in12;\nm26 = in14 * in8;\nm27 = in9 * in16;\n", "right_context": "m35 = in19 * in19;\nm36 = m32 * m30;\nm37 = m32 * in22;\nm38 = m25 * m23;\nm39 = m28 + in17;\nm40 = m27 * m38;\nm41 = m23 * m34;\nm42 = m37 * m24;\nm43 = m40 * m36;\nm44 = m25 * m24;\nm45 = m43 * m38;\nm46 = m37 + m28;\nm47 = m45 * m29;\nm48 = m29 + m40;\nm49 = m41 * m40;\nm50 = m37 * m45;\nm51 = m50 + m36;\nm52 = m34 * m48;\nm53 = m50 * m41;\nm54 = m33 * m41;\nm55 = m44 * m38;\nm56 = m35 * m50;\nm57 = m51 * m54;\nm58 = m48 * m41;\nm59 = m45 * m56;\nm60 = m42 * m51;\nm61 = m44 * m44;\nm62 = m48 * m57;\nm63 = m62 * m54;\nm64 = m43 * m56;\nm65 = m59 + m48;\nm66 = m46 * m45;\nm67 = m48 * m62;\nm68 = m63 + m60;\nm69 = m60 * m66;\nm70 = m57 * m55;\nm71 = m51 * m64;\nm72 = m61 + m61;\nm73 = m68 * m61;\nm74 = m62 + m55;\nm75 = m72 + m58;\nm76 = m72 * m60;\nm77 = m76 * m72;\nm78 = m57 + m66;\nm79 = m77 * m57;\nm80 = m72 * m60;\nm81 = m67 * m80;\nm82 = m62 + m74;\nm83 = m79 * m77;\nm84 = m75 * m70;\nm85 = m64 * m70;\nm86 = m74 * m78;\nm87 = m79 + m71;\nm88 = m70 * m71;\nm89 = m71 * m78;\nm90 = m88 * m81;\nm91 = m90 * m82;\nm92 = m72 * m70;\nm93 = m79 + m81;\nm94 = m75 + m83;\nm95 = m79 + m89;\nm96 = m76 + m92;\nm97 = m94 * m90;\nm98 = m90 * m77;\nm99 = m88 + m85;\nm100 = m82 * m88;\nm101 = m93 * m84;\nm102 = m93 * m80;\n\nout_data[0] = m31;\nout_data[1] = m39;\nout_data[2] = m47;\nout_data[3] = m49;\nout_data[4] = m52;\nout_data[5] = m53;\nout_data[6] = m65;\nout_data[7] = m69;\nout_data[8] = m73;\nout_data[9] = m86;\nout_data[10] = m87;\nout_data[11] = m91;\nout_data[12] = m95;\nout_data[13] = m96;\nout_data[14] = m97;\nout_data[15] = m98;\nout_data[16] = m99;\nout_data[17] = m100;\nout_data[18] = m101;\nout_data[19] = m102;\n\n\n}\n ", "groundtruth": "m28 = in18 * m26;\nm29 = in7 * in8;\nm30 = in20 * in20;\nm31 = m25 + in20;\n", "crossfile_context": ""} {"task_id": "IronMan", "path": "IronMan/cc/case_32.cc", "left_context": "\n\n#include \n#include \"ap_fixed.h\"\n\nvoid case_32(\n ap_int<16> in_data[23],\n ap_int<16> out_data[30]\n)\n{\n\n#pragma HLS array_partition variable=in_data complete\n#pragma HLS array_partition variable=out_data complete\n\n \n\nap_int<12> in1;\nin1.range(11, 0) = in_data[0].range(11, 0);\nap_int<6> in2;\nin2.range(5, 0) = in_data[1].range(5, 0);\nap_int<10> in3;\nin3.range(9, 0) = in_data[2].range(9, 0);\nap_int<4> in4;\nin4.range(3, 0) = in_data[3].range(3, 0);\nap_int<9> in5;\nin5.range(8, 0) = in_data[4].range(8, 0);\nap_int<4> in6;\nin6.range(3, 0) = in_data[5].range(3, 0);\nap_int<16> in7;\nin7.range(15, 0) = in_data[6].range(15, 0);\nap_int<12> in8;\nin8.range(11, 0) = in_data[7].range(11, 0);\nap_int<10> in9;\nin9.range(9, 0) = in_data[8].range(9, 0);\nap_int<16> in10;\nin10.range(15, 0) = in_data[9].range(15, 0);\nap_int<10> in11;\nin11.range(9, 0) = in_data[10].range(9, 0);\nap_int<16> in12;\nin12.range(15, 0) = in_data[11].range(15, 0);\nap_int<3> in13;\nin13.range(2, 0) = in_data[12].range(2, 0);\nap_int<3> in14;\nin14.range(2, 0) = in_data[13].range(2, 0);\nap_int<13> in15;\nin15.range(12, 0) = in_data[14].range(12, 0);\n", "right_context": "in16.range(4, 0) = in_data[15].range(4, 0);\nap_int<9> in17;\nin17.range(8, 0) = in_data[16].range(8, 0);\nap_int<4> in18;\nin18.range(3, 0) = in_data[17].range(3, 0);\nap_int<3> in19;\nin19.range(2, 0) = in_data[18].range(2, 0);\nap_int<16> in20;\nin20.range(15, 0) = in_data[19].range(15, 0);\nap_int<4> in21;\nin21.range(3, 0) = in_data[20].range(3, 0);\nap_int<12> in22;\nin22.range(11, 0) = in_data[21].range(11, 0);\nap_int<2> in23;\nin23.range(1, 0) = in_data[22].range(1, 0);\n\nap_int<6> m24;\nap_int<6> m25;\nap_int<7> m26;\nap_int<9> m27;\nap_int<10> m28;\nap_int<5> m29;\nap_int<4> m30;\nap_int<4> m31;\nap_int<11> m32;\nap_int<12> m33;\nap_int<8> m34;\nap_int<14> m35;\nap_int<2> m36;\nap_int<11> m37;\nap_int<8> m38;\nap_int<5> m39;\nap_int<12> m40;\nap_int<9> m41;\nap_int<6> m42;\nap_int<9> m43;\nap_int<8> m44;\nap_int<9> m45;\nap_int<14> m46;\nap_int<16> m47;\nap_int<12> m48;\nap_int<3> m49;\nap_int<2> m50;\nap_int<9> m51;\nap_int<8> m52;\nap_int<6> m53;\nap_int<3> m54;\nap_int<13> m55;\nap_int<16> m56;\nap_int<12> m57;\nap_int<9> m58;\nap_int<9> m59;\nap_int<6> m60;\nap_int<4> m61;\nap_int<16> m62;\nap_int<4> m63;\nap_int<16> m64;\nap_int<6> m65;\nap_int<10> m66;\nap_int<6> m67;\nap_int<11> m68;\nap_int<7> m69;\nap_int<7> m70;\nap_int<4> m71;\nap_int<11> m72;\nap_int<9> m73;\nap_int<10> m74;\nap_int<7> m75;\nap_int<8> m76;\nap_int<13> m77;\nap_int<6> m78;\nap_int<6> m79;\nap_int<13> m80;\nap_int<9> m81;\nap_int<3> m82;\nap_int<12> m83;\nap_int<5> m84;\nap_int<16> m85;\nap_int<12> m86;\nap_int<16> m87;\nap_int<13> m88;\nap_int<8> m89;\nap_int<6> m90;\nap_int<14> m91;\nap_int<7> m92;\nap_int<12> m93;\nap_int<11> m94;\nap_int<12> m95;\nap_int<10> m96;\nap_int<7> m97;\nap_int<12> m98;\nap_int<16> m99;\nap_int<8> m100;\nap_int<16> m101;\nap_int<6> m102;\nap_int<8> m103;\nap_int<9> m104;\nap_int<13> m105;\nap_int<13> m106;\nap_int<8> m107;\nap_int<10> m108;\nap_int<10> m109;\nap_int<12> m110;\nap_int<6> m111;\nap_int<16> m112;\nap_int<3> m113;\nap_int<6> m114;\nap_int<12> m115;\nap_int<10> m116;\nap_int<6> m117;\nap_int<9> m118;\nap_int<11> m119;\nap_int<12> m120;\nap_int<5> m121;\nap_int<15> m122;\nap_int<8> m123;\nap_int<12> m124;\nap_int<12> m125;\nap_int<9> m126;\nap_int<8> m127;\nap_int<14> m128;\nap_int<8> m129;\nap_int<10> m130;\nap_int<8> m131;\nap_int<10> m132;\nap_int<9> m133;\nap_int<15> m134;\nap_int<15> m135;\nap_int<6> m136;\nap_int<8> m137;\nap_int<7> m138;\nap_int<11> m139;\nap_int<11> m140;\nap_int<13> m141;\nap_int<14> m142;\nap_int<6> m143;\nap_int<11> m144;\nap_int<15> m145;\nap_int<6> m146;\nap_int<11> m147;\nap_int<11> m148;\nap_int<8> m149;\nap_int<10> m150;\nap_int<12> m151;\nap_int<11> m152;\nap_int<16> m153;\nap_int<15> m154;\nap_int<11> m155;\nap_int<5> m156;\nap_int<12> m157;\nap_int<13> m158;\nap_int<14> m159;\nap_int<13> m160;\nap_int<15> m161;\nap_int<16> m162;\nap_int<7> m163;\nap_int<11> m164;\nap_int<13> m165;\nap_int<14> m166;\nap_int<12> m167;\nap_int<10> m168;\nap_int<8> m169;\nap_int<6> m170;\nap_int<14> m171;\nap_int<16> m172;\nap_int<11> m173;\nap_int<7> m174;\nap_int<12> m175;\nap_int<15> m176;\nap_int<12> m177;\nap_int<7> m178;\nap_int<10> m179;\nap_int<13> m180;\nap_int<16> m181;\nap_int<7> m182;\nap_int<15> m183;\n\nm24 = in4 + in5;\nm25 = in14 + in14;\nm26 = in20 * in6;\nm27 = m24 + in4;\nm28 = in18 * in12;\nm29 = m24 * in7;\nm30 = in14 * in18;\nm31 = m26 * in18;\nm32 = in16 * in10;\nm33 = in22 * in20;\nm34 = m28 * in15;\nm35 = m24 * m33;\nm36 = in23 * in14;\nm37 = m25 * m25;\nm38 = in23 * m26;\nm39 = m28 * m28;\nm40 = m25 + m26;\nm41 = in22 * m28;\nm42 = m25 * m24;\nm43 = m32 * m40;\nm44 = m38 * m28;\nm45 = m40 + m40;\nm46 = m38 + m24;\nm47 = m45 + m26;\nm48 = m34 * m26;\nm49 = m26 * m39;\nm50 = m42 * m39;\nm51 = m42 * m49;\nm52 = m49 * m46;\nm53 = m47 + m42;\nm54 = m52 * m42;\nm55 = m46 + m34;\nm56 = m35 * m37;\nm57 = m47 * m52;\nm58 = m41 * m40;\nm59 = m50 * m37;\nm60 = m56 * m45;\nm61 = m50 * m60;\nm62 = m51 * m46;\nm63 = m58 * m45;\nm64 = m48 * m44;\nm65 = m53 + m50;\nm66 = m49 * m43;\nm67 = m54 * m49;\nm68 = m59 * m66;\nm69 = m64 * m58;\nm70 = m47 + m48;\nm71 = m65 * m59;\nm72 = m69 + m70;\nm73 = m54 * m56;\nm74 = m64 + m64;\nm75 = m54 * m61;\nm76 = m53 * m69;\nm77 = m67 * m57;\nm78 = m55 * m77;\nm79 = m63 * m68;\nm80 = m72 + m62;\nm81 = m66 * m76;\nm82 = m71 * m73;\nm83 = m69 * m78;\nm84 = m82 + m74;\nm85 = m72 * m79;\nm86 = m64 * m74;\nm87 = m74 + m78;\nm88 = m85 * m68;\nm89 = m87 * m69;\nm90 = m71 * m78;\nm91 = m86 + m73;\nm92 = m84 * m90;\nm93 = m80 * m81;\nm94 = m74 * m81;\nm95 = m88 * m79;\nm96 = m76 * m79;\nm97 = m74 * m90;\nm98 = m79 * m79;\nm99 = m81 * m94;\nm100 = m87 * m85;\nm101 = m93 * m96;\nm102 = m80 + m90;\nm103 = m82 + m94;\nm104 = m86 + m100;\nm105 = m84 * m87;\nm106 = m98 * m105;\nm107 = m86 * m98;\nm108 = m86 * m100;\nm109 = m87 * m100;\nm110 = m104 * m90;\nm111 = m110 * m96;\nm112 = m94 * m94;\nm113 = m97 + m100;\nm114 = m97 * m107;\nm115 = m101 + m106;\nm116 = m96 * m98;\nm117 = m114 * m116;\nm118 = m101 * m108;\nm119 = m112 * m108;\nm120 = m98 * m115;\nm121 = m111 + m107;\nm122 = m104 * m106;\nm123 = m112 * m109;\nm124 = m114 * m104;\nm125 = m104 + m104;\nm126 = m105 * m111;\nm127 = m122 * m119;\nm128 = m127 * m117;\nm129 = m111 * m108;\nm130 = m123 * m109;\nm131 = m123 * m111;\nm132 = m127 * m119;\nm133 = m116 * m122;\nm134 = m114 * m125;\nm135 = m115 * m116;\nm136 = m120 * m120;\nm137 = m117 * m132;\nm138 = m130 + m128;\nm139 = m131 * m121;\nm140 = m122 * m117;\nm141 = m131 * m121;\nm142 = m119 * m129;\nm143 = m142 * m120;\nm144 = m134 * m138;\nm145 = m137 * m123;\nm146 = m126 + m127;\nm147 = m131 * m124;\nm148 = m139 + m131;\nm149 = m133 * m131;\nm150 = m128 + m142;\nm151 = m134 * m142;\nm152 = m151 * m133;\nm153 = m151 * m150;\nm154 = m133 * m150;\nm155 = m148 * m135;\nm156 = m155 * m149;\nm157 = m136 * m142;\nm158 = m137 * m151;\nm159 = m140 * m156;\nm160 = m148 * m147;\nm161 = m147 * m148;\nm162 = m141 * m143;\nm163 = m142 * m153;\nm164 = m154 + m142;\nm165 = m149 * m151;\nm166 = m145 + m158;\nm167 = m157 * m144;\nm168 = m154 * m153;\nm169 = m149 * m157;\nm170 = m153 * m164;\nm171 = m161 + m160;\nm172 = m160 * m170;\nm173 = m154 + m150;\nm174 = m161 + m158;\nm175 = m165 * m174;\nm176 = m153 * m171;\nm177 = m155 * m170;\nm178 = m166 * m168;\nm179 = m176 * m171;\nm180 = m162 + m167;\nm181 = m161 * m177;\nm182 = m174 * m160;\nm183 = m167 * m161;\n\nout_data[0] = m27;\nout_data[1] = m29;\nout_data[2] = m30;\nout_data[3] = m31;\nout_data[4] = m36;\nout_data[5] = m75;\nout_data[6] = m83;\nout_data[7] = m89;\nout_data[8] = m91;\nout_data[9] = m92;\nout_data[10] = m95;\nout_data[11] = m99;\nout_data[12] = m102;\nout_data[13] = m103;\nout_data[14] = m113;\nout_data[15] = m118;\nout_data[16] = m146;\nout_data[17] = m152;\nout_data[18] = m159;\nout_data[19] = m163;\nout_data[20] = m169;\nout_data[21] = m172;\nout_data[22] = m173;\nout_data[23] = m175;\nout_data[24] = m178;\nout_data[25] = m179;\nout_data[26] = m180;\nout_data[27] = m181;\nout_data[28] = m182;\nout_data[29] = m183;\n\n\n}\n ", "groundtruth": "ap_int<5> in16;\n", "crossfile_context": ""} {"task_id": "IronMan", "path": "IronMan/cc/case_39.cc", "left_context": "\n\n#include \n#include \"ap_fixed.h\"\n\nvoid case_39(\n ap_int<16> in_data[16],\n ap_int<16> out_data[18]\n)\n{\n\n#pragma HLS array_partition variable=in_data complete\n#pragma HLS array_partition variable=out_data complete\n\n \n\nap_int<3> in1;\nin1.range(2, 0) = in_data[0].range(2, 0);\nap_int<10> in2;\nin2.range(9, 0) = in_data[1].range(9, 0);\nap_int<2> in3;\nin3.range(1, 0) = in_data[2].range(1, 0);\nap_int<16> in4;\nin4.range(15, 0) = in_data[3].range(15, 0);\nap_int<7> in5;\nin5.range(6, 0) = in_data[4].range(6, 0);\nap_int<12> in6;\nin6.range(11, 0) = in_data[5].range(11, 0);\nap_int<13> in7;\nin7.range(12, 0) = in_data[6].range(12, 0);\nap_int<10> in8;\nin8.range(9, 0) = in_data[7].range(9, 0);\nap_int<12> in9;\nin9.range(11, 0) = in_data[8].range(11, 0);\nap_int<5> in10;\nin10.range(4, 0) = in_data[9].range(4, 0);\nap_int<5> in11;\nin11.range(4, 0) = in_data[10].range(4, 0);\nap_int<14> in12;\nin12.range(13, 0) = in_data[11].range(13, 0);\nap_int<13> in13;\nin13.range(12, 0) = in_data[12].range(12, 0);\nap_int<12> in14;\nin14.range(11, 0) = in_data[13].range(11, 0);\nap_int<4> in15;\nin15.range(3, 0) = in_data[14].range(3, 0);\nap_int<10> in16;\nin16.range(9, 0) = in_data[15].range(9, 0);\n\nap_int<9> m17;\nap_int<16> m18;\nap_int<9> m19;\nap_int<6> m20;\nap_int<9> m21;\nap_int<6> m22;\nap_int<16> m23;\nap_int<9> m24;\nap_int<11> m25;\nap_int<11> m26;\nap_int<15> m27;\nap_int<11> m28;\nap_int<12> m29;\nap_int<14> m30;\nap_int<6> m31;\nap_int<6> m32;\nap_int<16> m33;\nap_int<14> m34;\nap_int<10> m35;\nap_int<8> m36;\nap_int<10> m37;\nap_int<8> m38;\nap_int<6> m39;\nap_int<11> m40;\nap_int<15> m41;\nap_int<14> m42;\nap_int<13> m43;\nap_int<5> m44;\nap_int<13> m45;\nap_int<13> m46;\nap_int<7> m47;\nap_int<7> m48;\nap_int<15> m49;\nap_int<10> m50;\nap_int<9> m51;\nap_int<4> m52;\nap_int<10> m53;\nap_int<15> m54;\nap_int<14> m55;\nap_int<4> m56;\nap_int<6> m57;\nap_int<14> m58;\nap_int<6> m59;\nap_int<12> m60;\nap_int<16> m61;\nap_int<16> m62;\nap_int<9> m63;\nap_int<14> m64;\nap_int<15> m65;\nap_int<6> m66;\nap_int<4> m67;\nap_int<11> m68;\nap_int<16> m69;\nap_int<11> m70;\nap_int<5> m71;\nap_int<10> m72;\nap_int<4> m73;\nap_int<7> m74;\nap_int<12> m75;\nap_int<12> m76;\nap_int<15> m77;\nap_int<5> m78;\nap_int<2> m79;\nap_int<10> m80;\nap_int<6> m81;\nap_int<2> m82;\nap_int<11> m83;\nap_int<7> m84;\nap_int<10> m85;\nap_int<15> m86;\nap_int<12> m87;\nap_int<7> m88;\nap_int<16> m89;\nap_int<13> m90;\nap_int<16> m91;\nap_int<11> m92;\nap_int<6> m93;\nap_int<12> m94;\nap_int<15> m95;\nap_int<7> m96;\nap_int<6> m97;\nap_int<10> m98;\nap_int<13> m99;\nap_int<8> m100;\nap_int<16> m101;\nap_int<12> m102;\nap_int<6> m103;\n\nm17 = in8 * in3;\nm18 = in7 * in12;\nm19 = in6 * in6;\nm20 = in8 * in5;\nm21 = in7 * m20;\nm22 = in9 * in11;\nm23 = in12 * in12;\nm24 = in16 * m20;\nm25 = in9 * in14;\n", "right_context": "m35 = m30 * m25;\nm36 = m25 + m24;\nm37 = m30 * m28;\nm38 = m32 + m34;\nm39 = m38 + m29;\nm40 = m28 * m37;\nm41 = m29 * m39;\nm42 = m35 + m27;\nm43 = m37 * m38;\nm44 = m37 * m36;\nm45 = m40 * m30;\nm46 = m32 + m38;\nm47 = m39 + m40;\nm48 = m41 * m39;\nm49 = m34 * m47;\nm50 = m37 * m47;\nm51 = m35 * m49;\nm52 = m39 + m46;\nm53 = m48 * m47;\nm54 = m48 + m50;\nm55 = m45 + m42;\nm56 = m47 + m52;\nm57 = m46 * m42;\nm58 = m46 * m46;\nm59 = m52 + m52;\nm60 = m58 * m53;\nm61 = m55 * m47;\nm62 = m58 * m59;\nm63 = m54 * m60;\nm64 = m59 * m50;\nm65 = m49 * m62;\nm66 = m50 + m65;\nm67 = m55 * m56;\nm68 = m55 * m60;\nm69 = m53 + m59;\nm70 = m67 * m60;\nm71 = m70 * m60;\nm72 = m70 * m62;\nm73 = m66 * m66;\nm74 = m63 * m69;\nm75 = m74 * m63;\nm76 = m69 * m61;\nm77 = m73 * m64;\nm78 = m71 * m64;\nm79 = m67 * m67;\nm80 = m77 * m73;\nm81 = m71 + m75;\nm82 = m79 * m79;\nm83 = m82 * m80;\nm84 = m68 * m79;\nm85 = m76 * m70;\nm86 = m75 + m78;\nm87 = m71 + m72;\nm88 = m77 * m74;\nm89 = m85 + m77;\nm90 = m76 * m88;\nm91 = m83 + m86;\nm92 = m81 * m86;\nm93 = m85 * m82;\nm94 = m83 * m91;\nm95 = m86 + m84;\nm96 = m82 * m93;\nm97 = m86 * m84;\nm98 = m94 * m85;\nm99 = m95 + m84;\nm100 = m99 * m85;\nm101 = m93 * m98;\nm102 = m88 * m87;\nm103 = m91 * m97;\n\nout_data[0] = m17;\nout_data[1] = m18;\nout_data[2] = m22;\nout_data[3] = m23;\nout_data[4] = m31;\nout_data[5] = m33;\nout_data[6] = m43;\nout_data[7] = m44;\nout_data[8] = m51;\nout_data[9] = m57;\nout_data[10] = m89;\nout_data[11] = m90;\nout_data[12] = m92;\nout_data[13] = m96;\nout_data[14] = m100;\nout_data[15] = m101;\nout_data[16] = m102;\nout_data[17] = m103;\n\n\n}\n ", "groundtruth": "m26 = m21 * m25;\nm27 = in12 * in14;\nm28 = in12 * m24;\nm29 = m25 + m27;\nm30 = m29 + m21;\n", "crossfile_context": ""} {"task_id": "IronMan", "path": "IronMan/cc/case_47.cc", "left_context": "\n\n#include \n#include \"ap_fixed.h\"\n\nvoid case_47(\n ap_int<16> in_data[18],\n ap_int<16> out_data[26]\n)\n{\n\n#pragma HLS array_partition variable=in_data complete\n#pragma HLS array_partition variable=out_data complete\n\n \n\nap_int<11> in1;\nin1.range(10, 0) = in_data[0].range(10, 0);\nap_int<13> in2;\nin2.range(12, 0) = in_data[1].range(12, 0);\nap_int<12> in3;\nin3.range(11, 0) = in_data[2].range(11, 0);\nap_int<14> in4;\nin4.range(13, 0) = in_data[3].range(13, 0);\nap_int<5> in5;\nin5.range(4, 0) = in_data[4].range(4, 0);\nap_int<6> in6;\nin6.range(5, 0) = in_data[5].range(5, 0);\nap_int<13> in7;\nin7.range(12, 0) = in_data[6].range(12, 0);\n", "right_context": "in8.range(3, 0) = in_data[7].range(3, 0);\nap_int<13> in9;\nin9.range(12, 0) = in_data[8].range(12, 0);\nap_int<12> in10;\nin10.range(11, 0) = in_data[9].range(11, 0);\nap_int<4> in11;\nin11.range(3, 0) = in_data[10].range(3, 0);\nap_int<12> in12;\nin12.range(11, 0) = in_data[11].range(11, 0);\nap_int<5> in13;\nin13.range(4, 0) = in_data[12].range(4, 0);\nap_int<6> in14;\nin14.range(5, 0) = in_data[13].range(5, 0);\nap_int<6> in15;\nin15.range(5, 0) = in_data[14].range(5, 0);\nap_int<2> in16;\nin16.range(1, 0) = in_data[15].range(1, 0);\nap_int<11> in17;\nin17.range(10, 0) = in_data[16].range(10, 0);\nap_int<11> in18;\nin18.range(10, 0) = in_data[17].range(10, 0);\n\nap_int<8> m19;\nap_int<16> m20;\nap_int<6> m21;\nap_int<9> m22;\nap_int<9> m23;\nap_int<13> m24;\nap_int<11> m25;\nap_int<10> m26;\nap_int<5> m27;\nap_int<7> m28;\nap_int<4> m29;\nap_int<14> m30;\nap_int<12> m31;\nap_int<5> m32;\nap_int<10> m33;\nap_int<9> m34;\nap_int<8> m35;\nap_int<3> m36;\nap_int<14> m37;\nap_int<13> m38;\nap_int<10> m39;\nap_int<13> m40;\nap_int<9> m41;\nap_int<6> m42;\nap_int<4> m43;\nap_int<3> m44;\nap_int<16> m45;\nap_int<6> m46;\nap_int<9> m47;\nap_int<14> m48;\nap_int<7> m49;\nap_int<5> m50;\nap_int<13> m51;\nap_int<3> m52;\nap_int<13> m53;\nap_int<10> m54;\nap_int<15> m55;\nap_int<5> m56;\nap_int<10> m57;\nap_int<5> m58;\nap_int<4> m59;\nap_int<4> m60;\nap_int<8> m61;\nap_int<11> m62;\nap_int<13> m63;\nap_int<8> m64;\nap_int<5> m65;\nap_int<14> m66;\nap_int<12> m67;\nap_int<8> m68;\nap_int<7> m69;\nap_int<13> m70;\nap_int<3> m71;\nap_int<11> m72;\nap_int<16> m73;\nap_int<14> m74;\nap_int<8> m75;\nap_int<13> m76;\nap_int<16> m77;\nap_int<6> m78;\nap_int<6> m79;\nap_int<13> m80;\nap_int<6> m81;\nap_int<5> m82;\nap_int<16> m83;\nap_int<9> m84;\nap_int<7> m85;\nap_int<3> m86;\nap_int<14> m87;\nap_int<15> m88;\nap_int<7> m89;\nap_int<7> m90;\nap_int<13> m91;\nap_int<14> m92;\nap_int<11> m93;\nap_int<6> m94;\nap_int<6> m95;\nap_int<12> m96;\nap_int<8> m97;\nap_int<14> m98;\nap_int<16> m99;\nap_int<11> m100;\nap_int<16> m101;\nap_int<13> m102;\nap_int<11> m103;\nap_int<5> m104;\nap_int<6> m105;\nap_int<11> m106;\nap_int<13> m107;\nap_int<13> m108;\nap_int<15> m109;\nap_int<6> m110;\nap_int<6> m111;\nap_int<14> m112;\nap_int<10> m113;\nap_int<14> m114;\nap_int<9> m115;\nap_int<8> m116;\nap_int<13> m117;\nap_int<5> m118;\nap_int<16> m119;\nap_int<10> m120;\nap_int<10> m121;\nap_int<5> m122;\nap_int<6> m123;\nap_int<10> m124;\nap_int<6> m125;\nap_int<7> m126;\nap_int<11> m127;\nap_int<10> m128;\nap_int<7> m129;\nap_int<10> m130;\nap_int<11> m131;\nap_int<3> m132;\nap_int<10> m133;\nap_int<4> m134;\nap_int<7> m135;\nap_int<8> m136;\nap_int<8> m137;\nap_int<7> m138;\nap_int<9> m139;\nap_int<9> m140;\nap_int<9> m141;\nap_int<6> m142;\nap_int<12> m143;\nap_int<7> m144;\n\nm19 = in7 * in3;\nm20 = in15 + in3;\nm21 = in14 + in8;\nm22 = in15 + in11;\nm23 = in15 + m20;\nm24 = in18 * in8;\nm25 = m21 * m19;\nm26 = m21 * in10;\nm27 = m19 * in13;\nm28 = m24 * in17;\nm29 = in16 * m26;\nm30 = in14 * m22;\nm31 = in17 * m23;\nm32 = m24 * m19;\nm33 = m23 + m31;\nm34 = m20 * in17;\nm35 = m32 * m19;\nm36 = m28 * m27;\nm37 = m27 * m20;\nm38 = m32 * m31;\nm39 = m35 + m26;\nm40 = m31 * m27;\nm41 = m32 * m25;\nm42 = m27 * m24;\nm43 = m37 * m29;\nm44 = m27 * m35;\nm45 = m36 * m37;\nm46 = m40 * m34;\nm47 = m42 * m36;\nm48 = m40 * m32;\nm49 = m37 * m32;\nm50 = m36 * m42;\nm51 = m35 * m42;\nm52 = m44 + m44;\nm53 = m41 + m39;\nm54 = m45 * m50;\nm55 = m42 * m45;\nm56 = m50 * m41;\nm57 = m54 * m45;\nm58 = m50 * m50;\nm59 = m43 + m51;\nm60 = m52 * m56;\nm61 = m54 + m57;\nm62 = m44 * m55;\nm63 = m45 * m59;\nm64 = m62 * m54;\nm65 = m52 * m52;\nm66 = m49 * m49;\nm67 = m58 + m61;\nm68 = m64 * m50;\nm69 = m55 * m58;\nm70 = m69 * m69;\nm71 = m56 * m56;\nm72 = m61 * m59;\nm73 = m59 * m66;\nm74 = m66 * m61;\nm75 = m68 * m69;\nm76 = m63 * m67;\nm77 = m74 * m76;\nm78 = m62 + m77;\nm79 = m61 * m71;\nm80 = m70 * m71;\nm81 = m68 + m66;\nm82 = m81 * m64;\nm83 = m74 * m81;\nm84 = m81 * m71;\nm85 = m77 * m70;\nm86 = m78 + m85;\nm87 = m83 + m70;\nm88 = m83 * m80;\nm89 = m81 * m74;\nm90 = m78 * m76;\nm91 = m74 * m78;\nm92 = m87 * m76;\nm93 = m85 * m89;\nm94 = m82 * m82;\nm95 = m86 * m86;\nm96 = m88 + m79;\nm97 = m90 * m79;\nm98 = m81 + m84;\nm99 = m91 * m92;\nm100 = m98 * m92;\nm101 = m90 * m96;\nm102 = m84 * m87;\nm103 = m100 * m100;\nm104 = m86 * m94;\nm105 = m103 + m100;\nm106 = m104 * m95;\nm107 = m95 * m106;\nm108 = m95 + m101;\nm109 = m107 * m102;\nm110 = m103 + m95;\nm111 = m102 * m104;\nm112 = m101 * m106;\nm113 = m100 * m104;\nm114 = m104 * m101;\nm115 = m109 * m98;\nm116 = m114 + m114;\nm117 = m107 * m101;\nm118 = m109 * m110;\nm119 = m113 * m101;\nm120 = m105 * m118;\nm121 = m106 + m114;\nm122 = m116 * m118;\nm123 = m109 * m122;\nm124 = m106 * m116;\nm125 = m119 * m122;\nm126 = m119 * m118;\nm127 = m118 * m112;\nm128 = m114 * m112;\nm129 = m118 * m123;\nm130 = m114 * m126;\nm131 = m115 * m115;\nm132 = m122 * m121;\nm133 = m126 * m115;\nm134 = m125 * m129;\nm135 = m132 * m121;\nm136 = m130 + m123;\nm137 = m136 * m132;\nm138 = m133 * m121;\nm139 = m135 * m129;\nm140 = m131 * m139;\nm141 = m127 * m124;\nm142 = m127 * m140;\nm143 = m137 + m131;\nm144 = m131 * m131;\n\nout_data[0] = m30;\nout_data[1] = m33;\nout_data[2] = m38;\nout_data[3] = m46;\nout_data[4] = m47;\nout_data[5] = m48;\nout_data[6] = m53;\nout_data[7] = m60;\nout_data[8] = m65;\nout_data[9] = m72;\nout_data[10] = m73;\nout_data[11] = m75;\nout_data[12] = m93;\nout_data[13] = m97;\nout_data[14] = m99;\nout_data[15] = m108;\nout_data[16] = m111;\nout_data[17] = m117;\nout_data[18] = m120;\nout_data[19] = m128;\nout_data[20] = m134;\nout_data[21] = m138;\nout_data[22] = m141;\nout_data[23] = m142;\nout_data[24] = m143;\nout_data[25] = m144;\n\n\n}\n ", "groundtruth": "ap_int<4> in8;\n", "crossfile_context": ""} {"task_id": "FPGA-Based-RNN-Accelerator-Using-Vivado-HLS", "path": "FPGA-Based-RNN-Accelerator-Using-Vivado-HLS/h5/load_weights.c", "left_context": "#include \n\n#define LEN 1619200\n\nint main(void)\n{\n FILE *myfile;\n float weights[LEN];\n\n myfile=fopen(\"./embedding_1_embeddings.txt\", \"r\");\n\n for(int i = 0; i < LEN; i++)\n {\n", "right_context": " \tindex = index < 0? 0 : index;\n \tprintf(\"index:%d value:%f\\n\", index, weights[index]);\n }\n\n fclose(myfile);\n}\n", "groundtruth": " fscanf(myfile,\"%f\", &weights[i]);\n printf(\"%d: %f \\n\", i, weights[i]);\n }\n\n", "crossfile_context": ""} {"task_id": "FPGA-Based-RNN-Accelerator-Using-Vivado-HLS", "path": "FPGA-Based-RNN-Accelerator-Using-Vivado-HLS/hlsr/sdsoc/src/config.h", "left_context": "// This file defines where to load data, i.e. weights of the RNN, \n// input sequences, and output labels \n\n#pragma once\n\n#ifdef __SDSCC__\nchar const * EMBEDDINGS_FILE = \"embedding_1_embeddings.txt\";\nchar const * SIMPLE_RNN_BIAS_FILE = \"simple_rnn_1_bias.txt\";\nchar const * SIMPLE_RNN_KERNEL_FILE = \"simple_rnn_1_kernel.txt\";\nchar const * SIMPLE_RNN_RECURRENT_KERNEL_FILE = \n \"simple_rnn_1_recurrent_kernel.txt\";\nchar const * DENSE_BIAS_FILE = \"dense_1_bias.txt\";\nchar const * DENSE_KERNEL_FILE = \"dense_1_kernel.txt\";\n\nchar const * ORG_SEQ_FILE = \"org_seq.txt\";\nchar const * RNN_RESULT_FILE = \"rnn_result.txt\";\nchar const * ACTUAL_RESULT_FILE = \"actual_result.txt\";\n\n#else\nchar const * EMBEDDINGS_FILE = \"../../model/embedding_1_embeddings.txt\";\nchar const * SIMPLE_RNN_BIAS_FILE = \"../../model/simple_rnn_1_bias.txt\";\nchar const * SIMPLE_RNN_KERNEL_FILE = \"../../model/simple_rnn_1_kernel.txt\";\n", "right_context": "char const * DENSE_KERNEL_FILE = \"../../model/dense_1_kernel.txt\";\n\nchar const * ORG_SEQ_FILE = \"../../datasets/org_seq.txt\";\nchar const * RNN_RESULT_FILE = \"../../datasets/rnn_result.txt\";\nchar const * ACTUAL_RESULT_FILE = \"../../datasets/actual_result.txt\";\n#endif\n\n", "groundtruth": "char const * SIMPLE_RNN_RECURRENT_KERNEL_FILE = \n \"../../model/simple_rnn_1_recurrent_kernel.txt\";\n", "crossfile_context": ""} {"task_id": "FPGA-Based-RNN-Accelerator-Using-Vivado-HLS", "path": "FPGA-Based-RNN-Accelerator-Using-Vivado-HLS/outdated/h5/load_weights.c", "left_context": "#include \n\n#define LEN 1619200\n\nint main(void)\n{\n FILE *myfile;\n", "right_context": "\n myfile=fopen(\"./embedding_1_embeddings.txt\", \"r\");\n\n for(int i = 0; i < LEN; i++)\n {\n fscanf(myfile,\"%30f\", &weights[i]);\n printf(\"%d: %.30f \\n\", i, weights[i]);\n }\n\n int sampleNum = 5;\n for (int i = 0; i <= sampleNum; i++) {\n \tint index = ((int) (float) i / (float) sampleNum) * LEN - 1;\n \tindex = index < 0? 0 : index;\n \tprintf(\"index:%d value:%f\\n\", index, weights[index]);\n }\n\n fclose(myfile);\n}\n", "groundtruth": " float weights[LEN];\n", "crossfile_context": ""} {"task_id": "FPGA-Based-RNN-Accelerator-Using-Vivado-HLS", "path": "FPGA-Based-RNN-Accelerator-Using-Vivado-HLS/pv/inc/config.h", "left_context": "#pragma once\n\nchar const * EMBEDDINGS_FILE = \"../../model/embedding_1_embeddings.txt\";\nchar const * SIMPLE_RNN_BIAS_FILE = \"../../model/simple_rnn_1_bias.txt\";\n", "right_context": "char const * SIMPLE_RNN_RECURRENT_KERNEL_FILE = \"../../model/simple_rnn_1_recurrent_kernel.txt\";\nchar const * DENSE_BIAS_FILE = \"../../model/dense_1_bias.txt\";\nchar const * DENSE_KERNEL_FILE = \"../../model/dense_1_kernel.txt\";\n\nchar const * ORG_SEQ_FILE = \"../../datasets/org_seq.txt\";\nchar const * RNN_RESULT_FILE = \"../../datasets/rnn_result.txt\";\nchar const * ACTUAL_RESULT_FILE = \"../../datasets/actual_result.txt\";\n\n", "groundtruth": "char const * SIMPLE_RNN_KERNEL_FILE = \"../../model/simple_rnn_1_kernel.txt\";\n", "crossfile_context": ""} {"task_id": "FPGA-Based-RNN-Accelerator-Using-Vivado-HLS", "path": "FPGA-Based-RNN-Accelerator-Using-Vivado-HLS/python_demo/inc/fc.h", "left_context": "#pragma once\n\n", "right_context": "", "groundtruth": "template \nvoid fc(DT* input_feature_map, DT* bias, DT* kernel, DT* output_feature_map);\n", "crossfile_context": ""} {"task_id": "FPGA-Based-RNN-Accelerator-Using-Vivado-HLS", "path": "FPGA-Based-RNN-Accelerator-Using-Vivado-HLS/python_demo/inc/rnn.h", "left_context": "#pragma once\n\ntemplate \n", "right_context": "\n", "groundtruth": "void rnn(DT* last_state, DT* input_state, DT* bias, DT* kernel, DT* recurrent_kernel, DT* output_state);\n", "crossfile_context": ""} {"task_id": "FPGA-Based-RNN-Accelerator-Using-Vivado-HLS", "path": "FPGA-Based-RNN-Accelerator-Using-Vivado-HLS/python_demo/inc/utils.h", "left_context": "#pragma once\n\n#include \"types.h\"\n\ntemplate \nvoid load_data(char const* fname, DT* array, LT length);\n\ntemplate \nvoid copy_data(DT* copy_from, DT* copy_to, LT length);\n\n", "right_context": "", "groundtruth": "template \nvoid print_data(DT* input, LT length);\n", "crossfile_context": ""} {"task_id": "FPGA-Based-RNN-Accelerator-Using-Vivado-HLS", "path": "FPGA-Based-RNN-Accelerator-Using-Vivado-HLS/hlsr/sdsoc/src/fc.cc", "left_context": "#include \"fc.h\"\n#include \"types.h\"\n#include \"constants.h\"\n\n// to take advantage of constant loop bound, write load input FM and load kernel\n// separately\nvoid fc_load_input_feature_map(\n FDATA_T input_feature_map_reg[BATCH_SIZE][FC_INPUT_SIZE], \n FDATA_T input_feature_map_BRAM[BATCH_SIZE * FC_INPUT_SIZE]) {\n\n // load BATCH_SIZE inputs at a time\n for (LDATA_T batch_iter = 0; batch_iter < BATCH_SIZE; batch_iter++) {\n\n LDATA_T start_idx = batch_iter * FC_INPUT_SIZE;\n for (LDATA_T input_feature_map_index = 0;\n input_feature_map_index < FC_INPUT_SIZE; input_feature_map_index++)\n {\n#pragma HLS PIPELINE\n input_feature_map_reg[batch_iter][input_feature_map_index] =\n input_feature_map_BRAM[input_feature_map_index + start_idx];\n }\n }\n}\n\n// to take advantage of constant loop bound, write load input FM and load kernel\n// separately\nvoid fc_load_kernel(FDATA_T kernel_DRAM_part[FC_INPUT_SIZE], \n FDATA_T kernel_reg[FC_INPUT_SIZE]) {\n // kernel_DRAM: FC_OUTPUT_SIZE * FC_INPUT_SIZE\n // kernel_reg: FC_INPUT_SIZE\n // output_feature_map_index: which column to read LDATA_To reg\n\n for (LDATA_T input_feature_map_index = 0;\n input_feature_map_index < FC_INPUT_SIZE;\n input_feature_map_index++) {\n#pragma HLS PIPELINE\n\n kernel_reg[input_feature_map_index] = \n kernel_DRAM_part[input_feature_map_index];\n }\n}\n\nvoid fc_compute(FDATA_T input_feature_map_reg[BATCH_SIZE][FC_INPUT_SIZE], \n FDATA_T kernel_reg[FC_INPUT_SIZE],\n FDATA_T output_feature_map_reg[BATCH_SIZE]) {\n\n // initialization\n FDATA_T local_reg[FC_TILE_SIZE][FC_INPUT_SIZE];\n#pragma HLS ARRAY_PARTITION variable=local_reg dim=2 cyclic factor=32\n#pragma HLS ARRAY_PARTITION variable=local_reg dim=1 cyclic factor=2\n for (LDATA_T iter = 0; iter < BATCH_SIZE / FC_TILE_SIZE; iter++) {\n\n LDATA_T start_batch = iter * FC_TILE_SIZE;\n\n for (LDATA_T batch_idx = 0; batch_idx < FC_TILE_SIZE; batch_idx++) {\n#pragma HLS UNROLL complete\n // compute\n for (LDATA_T i = 0; i < FC_INPUT_SIZE; i++) {\n#pragma HLS UNROLL complete\n//#pragma HLS RESOURCE variable=local_reg core=FMul_fulldsp\n // MAC: output_FM_reg[i][output_feature_map_index] +=\n // input_FM[i][j] * kernel[?][j]\n local_reg[batch_idx][i] = \n kernel_reg[i] * input_feature_map_reg[start_batch + batch_idx][i];\n }\n\n for (LDATA_T i = 0; i < FC_INPUT_SIZE / 2; i++) {\n#pragma HLS UNROLL complete\n // MAC: output_FM_reg[i][output_feature_map_index] +=\n // input_FM[i][j] * kernel[?][j]\n local_reg[batch_idx][i] = local_reg[batch_idx][i] + \n local_reg[batch_idx][i + FC_INPUT_SIZE / 2];\n }\n for (LDATA_T i = 0; i < FC_INPUT_SIZE / 4; i++) {\n#pragma HLS UNROLL complete\n // MAC: output_FM_reg[i][output_feature_map_index] +=\n // input_FM[i][j] * kernel[?][j]\n local_reg[batch_idx][i] = local_reg[batch_idx][i] + \n local_reg[batch_idx][i + FC_INPUT_SIZE / 4];\n }\n for (LDATA_T i = 0; i < FC_INPUT_SIZE / 8; i++) {\n#pragma HLS UNROLL complete\n // MAC: output_FM_reg[i][output_feature_map_index] +=\n // input_FM[i][j] * kernel[?][j]\n local_reg[batch_idx][i] = local_reg[batch_idx][i] + \n local_reg[batch_idx][i + FC_INPUT_SIZE / 8];\n }\n for (LDATA_T i = 0; i < FC_INPUT_SIZE / 16; i++) {\n#pragma HLS UNROLL complete\n // MAC: output_FM_reg[i][output_feature_map_index] +=\n // input_FM[i][j] * kernel[?][j]\n local_reg[batch_idx][i] = local_reg[batch_idx][i] + \n local_reg[batch_idx][i + FC_INPUT_SIZE / 16];\n }\n for (LDATA_T i = 0; i < FC_INPUT_SIZE / 32; i++) {\n#pragma HLS UNROLL complete\n // MAC: output_FM_reg[i][output_feature_map_index] +=\n // input_FM[i][j] * kernel[?][j]\n local_reg[batch_idx][i] = local_reg[batch_idx][i] + \n local_reg[batch_idx][i + FC_INPUT_SIZE / 32];\n }\n for (LDATA_T i = 0; i < FC_INPUT_SIZE / 64; i++) {\n#pragma HLS UNROLL complete\n // MAC: output_FM_reg[i][output_feature_map_index] +=\n // input_FM[i][j] * kernel[?][j]\n local_reg[batch_idx][i] = local_reg[batch_idx][i] + \n local_reg[batch_idx][i + FC_INPUT_SIZE / 64];\n }\n for (LDATA_T i = 0; i < FC_INPUT_SIZE / 128; i++) {\n#pragma HLS UNROLL complete\n // MAC: output_FM_reg[i][output_feature_map_index] +=\n // input_FM[i][j] * kernel[?][j]\n local_reg[batch_idx][i] = local_reg[batch_idx][i] + \n local_reg[batch_idx][i + FC_INPUT_SIZE / 128];\n }\n output_feature_map_reg[start_batch + batch_idx] = local_reg[batch_idx][0];\n }\n }\n}\n\nvoid fc_load_bias(FDATA_T bias[FC_OUTPUT_SIZE], \n FDATA_T bias_reg[FC_OUTPUT_SIZE]) {\n#pragma HLS inline region\n", "right_context": " FDATA_T output_feature_map_reg[BATCH_SIZE], FDATA_T bias_reg_single,\n FDATA_T output_feature_map_part[BATCH_SIZE]) {\n // save outputs a time\n // output_feature_map_reg: BATCH_SIZE x FC_OUTPUT_SIZE\n // output_feature_map_DRAM -> transposed: FC_OUTPUT_SIZE x BATCH_SIZE\n // start_batch_index: which batch to save to BRAM\n\n for (LDATA_T i = 0; i < BATCH_SIZE; i++) {\n#pragma HLS PIPELINE\n output_feature_map_part[i] =\n bias_reg_single + output_feature_map_reg[i];\n }\n}\n\n#pragma SDS data zero_copy(fc_kernel[0: FC_OUTPUT_SIZE * FC_INPUT_SIZE])\n#pragma SDS data zero_copy(fc_bias[0: FC_OUTPUT_SIZE])\n\n#pragma SDS data zero_copy( \\\n input_feature_map[0: BATCH_SIZE * RNN_STATE_SIZE])\n#pragma SDS data zero_copy(output_feature_map[0: BATCH_SIZE * FC_OUTPUT_SIZE])\n\nvoid wrapper_fc(FDATA_T input_feature_map[BATCH_SIZE * FC_INPUT_SIZE],\n FDATA_T fc_bias[FC_OUTPUT_SIZE], \n FDATA_T fc_kernel[FC_OUTPUT_SIZE * FC_INPUT_SIZE], \n FDATA_T output_feature_map[BATCH_SIZE * FC_OUTPUT_SIZE]) {\n\n // please do INITIALIZATION before input output_feature_map\n // ------- DIMENSION SETTING ----------\n\n // input_feature_map: BATCH_SIZE * FC_INPUT_SIZE (None * 128)\n // bias: FC_OUTPUT_SIZE (16192)\n // kernel: tranposed -> FC_OUTPUT_SIZE * FC_INPUT_SIZE (16192 * 128)\n // output_feature_map -> ///transposed!!/// FC_OUTPUT_SIZE * BATCH_SIZE\n\n // declare registers and use array partition\n FDATA_T input_feature_map_reg[BATCH_SIZE][FC_INPUT_SIZE];\n FDATA_T output_feature_map_reg[BATCH_SIZE];\n#pragma HLS ARRAY_PARTITION variable=input_feature_map_reg \\\n dim=2 cyclic factor=32\n//////////////////// MENTION /////////////////////\n// unroll in dimension 1 should be equal to FC_TILE_SIZE \n#pragma HLS ARRAY_PARTITION variable=input_feature_map_reg \\\n dim=1 cyclic factor=2\n#pragma HLS ARRAY_PARTITION variable=output_feature_map_reg \\\n dim=1 cyclic factor=32\n // output feature map will be transposed later in CPU + DRAM\n\n FDATA_T kernel_reg[FC_INPUT_SIZE];\n// FDATA_T bias_reg[FC_OUTPUT_SIZE];\n#pragma HLS ARRAY_PARTITION variable=kernel_reg dim=1 cyclic factor=32\n // bias read one at a time, so don't need to unroll\n\n // load preliminary data\n fc_load_input_feature_map(input_feature_map_reg, input_feature_map);\n// fc_load_bias(fc_bias, bias_reg);\n\n // load, compute, save\nEACH_OUT_FM:\n for (LDATA_T output_feature_map_index = 0;\n output_feature_map_index < FC_OUTPUT_SIZE;\n output_feature_map_index++) {\n#pragma HLS DATAFLOW\n\n // load\n LDATA_T kernel_offset = output_feature_map_index * FC_INPUT_SIZE;\n fc_load_kernel(fc_kernel + kernel_offset, kernel_reg);\n\n // compute\n fc_compute(input_feature_map_reg, kernel_reg, output_feature_map_reg);\n\n // save\n LDATA_T output_feature_map_offset = output_feature_map_index * BATCH_SIZE;\n fc_save_output_feature_map(\n output_feature_map_reg, fc_bias[output_feature_map_index],\n output_feature_map + output_feature_map_offset);\n }\n}\n", "groundtruth": " for (LDATA_T i = 0; i < FC_OUTPUT_SIZE; i++) {\n#pragma HLS PIPELINE\n bias_reg[i] = bias[i];\n }\n", "crossfile_context": ""} {"task_id": "FPGA-Based-RNN-Accelerator-Using-Vivado-HLS", "path": "FPGA-Based-RNN-Accelerator-Using-Vivado-HLS/hlsr/sdsoc/src/wrapper.cc", "left_context": "#include \"wrapper.h\"\n\n#include \n\n#include \"types.h\"\n#include \"constants.h\"\n#include \"rnn.h\"\n#include \"fc.h\"\n#include \"utils.h\"\n\n// software control of 2 HW functions\n// finish 15 batches of computations, 64 samples each batch\nvoid wrapper_rnn_fc(\n FDATA_T rnn_kernel[RNN_STATE_SIZE * RNN_INPUT_SIZE], \n FDATA_T rnn_recurrent_kernel[RNN_STATE_SIZE * RNN_STATE_SIZE], \n FDATA_T rnn_bias[RNN_STATE_SIZE], \n FDATA_T fc_kernel[FC_OUTPUT_SIZE * FC_INPUT_SIZE], \n FDATA_T fc_bias[FC_OUTPUT_SIZE], \n FDATA_T input_state[COMPUTE_TIME * SAMPLE_LEN * BATCH_SIZE*RNN_INPUT_SIZE], \n FDATA_T output[COMPUTE_TIME * BATCH_SIZE * FC_OUTPUT_SIZE],\n long rnn_clock_cycle_records[COMPUTE_TIME],\n long fc_clock_cycle_records[COMPUTE_TIME]) {\n\n#ifdef __SDSCC__\n", "right_context": "#endif\n // malloc for rnn layer outputs\n FDATA_T* rnn_output_state = (FDATA_T*) \n MALLOC(sizeof(FDATA_T) * BATCH_SIZE * RNN_STATE_SIZE);\n FDATA_T* output_transpose = (FDATA_T*)\n MALLOC(sizeof(FDATA_T) * FC_OUTPUT_SIZE * BATCH_SIZE);\n // 1,000 samples in total, 64 for 1 batch, so 15 iterations\n for (LDATA_T compute_time = 0; compute_time < COMPUTE_TIME; compute_time++) {\n\n // rnn wrapper, 50 timesteps, 64 samples\n LDATA_T input_state_offset = \n compute_time * SAMPLE_LEN * BATCH_SIZE * RNN_INPUT_SIZE; \n#ifdef __SDSCC__\n f_ctr.start();\n#endif\n wrapper_rnn(rnn_bias, rnn_kernel, rnn_recurrent_kernel, \n input_state + input_state_offset, rnn_output_state); \n#ifdef __SDSCC__\n f_ctr.stop();\n rnn_clock_cycle_records[compute_time] = f_ctr.avg_cpu_cycles();\n f_ctr.reset();\n#endif\n // fc wrapper, 64 samples\n LDATA_T output_state_offset = compute_time * BATCH_SIZE * FC_OUTPUT_SIZE;\n#ifdef __SDSCC__\n f_ctr.start();\n#endif\n wrapper_fc(/* input_feature_map = */rnn_output_state, fc_bias, fc_kernel, \n /* output_feature_map = */output_transpose);\n#ifdef __SDSCC__\n f_ctr.stop();\n fc_clock_cycle_records[compute_time] = f_ctr.avg_cpu_cycles();\n f_ctr.reset();\n#endif\n transpose(/* src = */output_transpose, \n /* dst = */output + output_state_offset, \n /* src_row = */FC_OUTPUT_SIZE, /* src_col = */BATCH_SIZE);\n }\n\n MFREE(rnn_output_state);\n MFREE(output_transpose);\n}\n\n// advanced architecture 3\n// for fc layer, only compute a tile at a time, \n// use load, compute, store structure and cover the DRAM access time\n\n// advanced architecture 4\n// apply dataflow on control -> pipeline rnn wrapper and fc wrapper\n", "groundtruth": " perf_counter f_ctr;\n", "crossfile_context": ""} {"task_id": "FPGA-Based-RNN-Accelerator-Using-Vivado-HLS", "path": "FPGA-Based-RNN-Accelerator-Using-Vivado-HLS/pv/src/fc.cc", "left_context": "#include \"fc.h\"\n#include \"types.h\"\n#include \"constants.h\"\n\nvoid fc(FDATA_T input_feature_map[FC_BATCH_SIZE * FC_INPUT_SIZE], \n FDATA_T bias[FC_OUTPUT_SIZE], \n FDATA_T kernel[FC_OUTPUT_SIZE * FC_INPUT_SIZE], \n FDATA_T output_feature_map[FC_BATCH_SIZE * FC_OUTPUT_SIZE]) {\n\n // please do INITIALIZATION before input output_feature_map\n // ------- DIMENSION SETTING ----------\n\n // input_feature_map: FC_BATCH_SIZE * FC_INPUT_SIZE (None * 128)\n // bias: FC_OUTPUT_SIZE (16192)\n // kernel: tranposed -> FC_OUTPUT_SIZE * FC_INPUT_SIZE (16192 * 128)\n // output_feature_map: FC_BATCH_SIZE * FC_OUTPUT_SIZE (None * 16192)\n\n", "right_context": " // compute each sample in a batch\n\n for (LDATA_T output_feature_map_index = 0;\n output_feature_map_index < FC_OUTPUT_SIZE;\n output_feature_map_index++) {\n\n // compute output_feature_map[batch_index][output_feature_map_index]\n // each output_feature_map has FC_OUTPUT_SIZE elements, compute each of them\n // * each computation is a vector vector multiplication\n // * vector 1: input_feature_map\n // * vector 2: a row of weights\n\n // output_feature_map[batch_index][output_feature_map_index]\n LDATA_T current_output_feature_map_index = batch_index * FC_OUTPUT_SIZE +\n output_feature_map_index;\n\n // initialize to 0\n output_feature_map[current_output_feature_map_index] = 0;\n\n for (LDATA_T input_feature_map_index = 0;\n input_feature_map_index < FC_INPUT_SIZE;\n input_feature_map_index++) {\n\n // output_feature_map[batch_index][output_feature_map_index] +=\n // input_feature_map[batch_index][input_feature_map_index] *\n // kernel[output_feature_map_index][input_feature_map_index]\n\n // input_feature_map[batch_index][input_feature_map_index]\n LDATA_T current_input_feature_map_index = \n batch_index * FC_INPUT_SIZE + input_feature_map_index;\n\n // kernel[output_feature_map_index][input_feature_map_index]\n LDATA_T current_kernel_index = \n output_feature_map_index * FC_INPUT_SIZE + input_feature_map_index;\n\n // do multiplication, add to previous value\n output_feature_map[current_output_feature_map_index] +=\n input_feature_map[current_input_feature_map_index] *\n kernel[current_kernel_index];\n }\n // add bias: bias[current_output_feature_map_index]\n output_feature_map[current_output_feature_map_index] +=\n bias[output_feature_map_index];\n }\n }\n}\n", "groundtruth": " for (LDATA_T batch_index = 0; batch_index < FC_BATCH_SIZE; batch_index++) {\n", "crossfile_context": ""} {"task_id": "FPGA-Based-RNN-Accelerator-Using-Vivado-HLS", "path": "FPGA-Based-RNN-Accelerator-Using-Vivado-HLS/pv/src/softmax.cc", "left_context": "#include \"types.h\"\n#include \"softmax.h\"\n#include \"constants.h\"\n\n// #include // import exponential function: exp (val)\n#include \n\ntemplate<>\nvoid softmax (FDATA_T* input_feature_map, FDATA_T* output_probability_distribution) {\n // please do INITIALIZATION before input output_feature_map\n // ------- DIMENSION SETTING ---------- *\n\n // input_feature_map: (SM_BATCH_SIZE, SM_INPUT_SIZE)\n // output_probability_distribution: (SM_BATCH_SIZE, SM_OUTPUT_SIZE) =\n // (SM_BATCH_SIZE, SM_INPUT_SIZE)\n\n // used to cache the exponential result\n double* input_feature_map_exp = (double*) malloc(sizeof(double) * SM_CLASS_SIZE);\n\n for (LDATA_T batch_index = 0; batch_index < SM_BATCH_SIZE; batch_index++) {\n // compute each sample in a batch\n\n // compute denominator, which is the sum of exponential\n // of each input_feature_map\n double denominator = 0;\n\n for (LDATA_T input_feature_map_index = 0;\n input_feature_map_index < SM_CLASS_SIZE;\n input_feature_map_index++) {\n\n // denominator += input_feature_map[batch_index][input_feature_map_index]\n LDATA_T current_input_feature_map_index = batch_index * SM_CLASS_SIZE +\n input_feature_map_index;\n // compute it, cache it\n input_feature_map_exp[input_feature_map_index] =\n exp((double) input_feature_map[current_input_feature_map_index]);\n\n // partial sum\n denominator += input_feature_map_exp[input_feature_map_index];\n }\n\n // now compute each output_probability_distribution\n for (LDATA_T output_probability_distribution_index = 0;\n output_probability_distribution_index < SM_CLASS_SIZE;\n output_probability_distribution_index++) {\n\n // output_probability_distribution [batch_index][output_probability_distribution_index]\n // = input_feature_map_exp [output_probability_distribution_index] / denominator\n LDATA_T current_output_probability_distribution_index = batch_index * SM_CLASS_SIZE\n + output_probability_distribution_index;\n output_probability_distribution [current_output_probability_distribution_index] =\n input_feature_map_exp [output_probability_distribution_index] / denominator;\n }\n }\n free(input_feature_map_exp);\n}\n\ntemplate<>\nvoid argmax(FDATA_T* input, IDATA_T* result) {\n // input: a probability distribution (SM_BATCH_SIZE, SM_OUTPUT_SIZE)\n // result: the index of each output (SM_OUTPUT_SIZE, )\n for (LDATA_T batch_index = 0; batch_index < SM_BATCH_SIZE; batch_index++) {\n LDATA_T max_index = 0;\n FDATA_T max_val = input[batch_index * SM_CLASS_SIZE];\n", "right_context": " // input[batch_index][find_max_index]\n LDATA_T input_index = batch_index * SM_CLASS_SIZE + find_max_index;\n if (input[input_index] > max_val) {\n max_index = find_max_index;\n max_val = input[input_index];\n }\n }\n result[batch_index] = max_index;\n }\n}\n\n", "groundtruth": " for (LDATA_T find_max_index = 0; find_max_index < SM_CLASS_SIZE; find_max_index++) {\n", "crossfile_context": ""} {"task_id": "COMBA", "path": "COMBA/src/FindLatency.h", "left_context": "/*\n * COMBA\n * Copyright (C) 2017 RCSL, HKUST\n * \n * ONLY FOR ACADEMIC USE, NOT FOR COMMERCIAL USE.\n * \n * Please use our tool at academic institutions and non-profit \n * research organizations for research use. \n * \n * \n */\n\n\n#ifndef FINDLATENCY_H_\n#define FINDLATENCY_H_\n\n#include \"test.h\"\n\n\n", "right_context": "float find_latency_after_inst(Instruction *inst, std::map &instr_index_loop, std::vector > *dependence_loop);\nfloat find_latency(Instruction *inst_begin, Instruction *inst_end, std::map &instr_index_loop, std::vector > *dependence_loop);\nfloat get_inst_latency(Instruction *inst, std::map &instr_index_loop,std::vector > *dependence_loop);\nvoid set_inst_latency(Instruction *inst,float latency,std::map &instr_index_loop,std::vector > *dependence_loop);\n\n\n#endif\n", "groundtruth": "float find_latency_before_inst(Instruction *inst, std::map &instr_index_loop, std::vector > *dependence_loop);\n", "crossfile_context": ""} {"task_id": "COMBA", "path": "COMBA/src/SetParameter.h", "left_context": "/*\n * COMBA\n * Copyright (C) 2017 RCSL, HKUST\n * \n * ONLY FOR ACADEMIC USE, NOT FOR COMMERCIAL USE.\n * \n * Please use our tool at academic institutions and non-profit \n * research organizations for research use. \n * \n * \n */\n\n\n#ifndef SETPARAMETER_H_\n#define SETPARAMETER_H_\n\n#include \"test.h\"\n\n\nvoid set_loop_map(Loop *L,Loop *parent,Loop *loop,std::map loop_index_tmp,std::vector *loop_index);\nvoid set_loop_index(Function *F, LoopInfo* LI, Loop *L,std::map &loop_index_tmp,std::vector *loop_index);\n", "right_context": "void set_array_map(Module &M);\nvoid store_function_IO(Module &M);\n\n\n#endif\n", "groundtruth": "void set_array_index(Module &M);\n", "crossfile_context": ""} {"task_id": "COMBA", "path": "COMBA/test_c/bicg/bicg.h", "left_context": "/**\n * This version is stamped on May 10, 2016\n *\n * Contact:\n * Louis-Noel Pouchet \n * Tomofumi Yuki \n *\n * Web address: http://polybench.sourceforge.net\n */\n#ifndef _BICG_H\n# define _BICG_H\n\n/* Default to LARGE_DATASET. */\n# if !defined(MINI_DATASET) && !defined(SMALL_DATASET) && !defined(MEDIUM_DATASET) && !defined(LARGE_DATASET) && !defined(EXTRALARGE_DATASET)\n# define MINI_DATASET\n# endif\n\n# if !defined(M) && !defined(N)\n/* Define sample dataset sizes. */\n# ifdef MINI_DATASET\n# define M 32//38\n# define N 32//42\n# endif\n\n# ifdef SMALL_DATASET\n# define M 116\n# define N 124\n# endif\n\n# ifdef MEDIUM_DATASET\n# define M 390\n# define N 410\n# endif\n\n# ifdef LARGE_DATASET\n# define M 1900\n", "right_context": "# ifdef EXTRALARGE_DATASET\n# define M 1800\n# define N 2200\n# endif\n\n\n#endif /* !(M N) */\n\n# define _PB_M POLYBENCH_LOOP_BOUND(M,m)\n# define _PB_N POLYBENCH_LOOP_BOUND(N,n)\n\n\n/* Default data type */\n# if !defined(DATA_TYPE_IS_INT) && !defined(DATA_TYPE_IS_FLOAT) && !defined(DATA_TYPE_IS_DOUBLE)\n# define DATA_TYPE_IS_INT\n# endif\n\n#ifdef DATA_TYPE_IS_INT\n# define DATA_TYPE int\n# define DATA_PRINTF_MODIFIER \"%d \"\n#endif\n\n#ifdef DATA_TYPE_IS_FLOAT\n# define DATA_TYPE float\n# define DATA_PRINTF_MODIFIER \"%0.2f \"\n# define SCALAR_VAL(x) x##f\n# define SQRT_FUN(x) sqrtf(x)\n# define EXP_FUN(x) expf(x)\n# define POW_FUN(x,y) powf(x,y)\n# endif\n\n#ifdef DATA_TYPE_IS_DOUBLE\n# define DATA_TYPE double\n# define DATA_PRINTF_MODIFIER \"%0.2lf \"\n# define SCALAR_VAL(x) x\n# define SQRT_FUN(x) sqrt(x)\n# define EXP_FUN(x) exp(x)\n# define POW_FUN(x,y) pow(x,y)\n# endif\n\n#endif /* !_BICG_H */\n", "groundtruth": "# define N 2100\n# endif\n", "crossfile_context": ""} {"task_id": "COMBA", "path": "COMBA/src/EvaluateDependency.cpp", "left_context": "/*\n * COMBA\n * Copyright (C) 2017 RCSL, HKUST\n * \n * ONLY FOR ACADEMIC USE, NOT FOR COMMERCIAL USE.\n * \n * Please use our tool at academic institutions and non-profit \n * research organizations for research use. \n * \n * \n */\n\n\n#include \"EvaluateDependency.h\"\n#include \"ArrayName.h\"\n#include \"GEP.h\"\n\n\nbool load_store_dependency(Instruction *inst_l, Instruction *inst_s)\n{\n\tbool LS_flag=false;\n\tValue *address_index_load=NULL;\n\tValue *address_index_store=NULL;\n\taddress_index_store=get_array_name(inst_s);\n\taddress_index_load=get_array_name(inst_l);\n\n\tif(address_index_store==address_index_load){\n\t\tLS_flag=true;\n\t}\n\treturn LS_flag;\n}\n\n\nbool store_store_dependency(Instruction *inst_s1, Instruction *inst_s2)\n{\n\tbool SS_flag=false;\n\tValue *address_index_s1=NULL;\n\tValue *address_index_s2=NULL;\n\taddress_index_s1=get_array_name(inst_s1);\n\taddress_index_s2=get_array_name(inst_s2);\n\n\tif(address_index_s1==address_index_s2){\n\t\tSS_flag=true;\n\t}\n\treturn SS_flag;\n}\n\n\n//Don't consider: if L has subloops, when it is unrolled, time should be addition.(seems like loop carried dependent)\n//Consider:when it is pipelined, subloops dependence will influence the latency and II.\n//Consider:if L has not subloops, this characteristic will influence the latency.\nbool test_loop_carried_dependence(LoopInfo* LI, Loop *L)\n{\n\tbool loop_carry=false;\n\t//int distance;\n\t//std::vector subLoops = L->getSubLoops();\n\tBasicBlock *latch=L->getLoopLatch();\n\tTerminatorInst *last_inst=latch->getTerminator();\n\tBranchInst *br_inst=dyn_cast(last_inst);\n\tInstruction *indvar=NULL;\n\tif(br_inst != NULL){\n\t\tCmpInst *cmp=dyn_cast(br_inst->getCondition());\n\t\tValue *cmpOp0=cmp->getOperand(0);\n\t\tValue *cmpOp1=cmp->getOperand(1);\n\t\tif(Instruction *cmp_op0=dyn_cast(cmpOp0))\n\t\t{\n\t\t\tindvar=cmp_op0;\n\t\t}\n\t\telse if(Instruction *cmp_op1=dyn_cast(cmpOp1))\n\t\t{\n\t\t\tindvar=cmp_op1;\n\t\t}\n\t\telse{\n\t\t\terrs()<<\"Not a common conditional inst.\\n\";\n\t\t}\n\t}\n\tPHINode *phi=NULL;\n\tBasicBlock *B1=*(L->block_begin());\n\tfor(auto j=B1->begin();j!=B1->end();++j){\n\t\tbool break_flag=false;\n\t\tif(PHINode *phi1=dyn_cast(j)){\n\t\t\tfor(unsigned ii=0, ie=phi1->getNumIncomingValues();ii!=ie;ii++){\n\t\t\t\tValue *incoming=phi1->getIncomingValue(ii);\n\t\t\t\tInstruction *inst1=dyn_cast(incoming);\n\t\t\t\tif(inst1==indvar){\n\t\t\t\t\tphi=phi1;\n\t\t\t\t\tbreak_flag=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(break_flag==true){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tfor(Loop::block_iterator BI=L->block_begin(), BE=L->block_end(); BI !=BE; ++BI)\n\t{\n\t\tBasicBlock *bb=*BI;\n\t\tfor(auto iti=bb->begin();iti!=bb->end();++iti){\n\t\t\tif(isa(iti)){\n\t\t\t\tGetElementPtrInst *gep=get_GEP(iti);\n\t\t\t\tif(gep==NULL){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tint g_phi=get_gep_phi(gep,phi);\n\t\t\t\t\tif(g_phi==10){\n\t\t\t\t\t\tcontinue;//second_iteration_flag=true;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tValue *g_op=gep->getOperand(g_phi);\n\t\t\t\t\t\tint compute_second=get_phi_second(L, phi);\n\t\t\t\t\t\tint second_iteration=compute_gep_operand(g_op,true,compute_second);\n\t\t\t\t\t\tfor(Loop::block_iterator BL=L->block_begin(), BF=L->block_end(); BL !=BF; ++BL){\n\t\t\t\t\t\t\tBasicBlock *BB=*BL;\n\t\t\t\t\t\t\tfor(auto ii=BB->begin();ii!=BB->end();++ii){\n\t\t\t\t\t\t\t\tif(isa(ii)){\n\t\t\t\t\t\t\t\t\tbool ls_flag=load_store_dependency(iti,ii);\n\t\t\t\t\t\t\t\t\tif(ls_flag==true){\n", "right_context": "\t\t\t\t\t\t\t\t\t\tif(gep1==NULL){\n\t\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\tint g_phi1=get_gep_phi(gep1,phi);\n\t\t\t\t\t\t\t\t\t\t\tif(g_phi1==10){\n\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\tValue *g_op1=gep->getOperand(g_phi1);\n\t\t\t\t\t\t\t\t\t\t\t\tint first_iteration1=compute_gep_operand(g_op1,false,0);\n\t\t\t\t\t\t\t\t\t\t\t\tif(second_iteration==first_iteration1){\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(CallInst *call=dyn_cast(iti)){\n\t\t\t\tFunction *callee=call->getCalledFunction();\n\t\t\t\tunsigned FnID=callee->getIntrinsicID();\n\t\t\t\tif(FnID==0){\n\t\t\t\t\t unsigned num=call->getNumArgOperands();\n\t\t\t\t\t for(unsigned op=0; opgetArgOperand(op);\n\t\t\t\t\t\t if(callee==OP){\n\t\t\t\t\t\t\terrs()<<\"The operand is the called function.\\n\";\n\t\t\t\t\t\t }\n\t\t\t\t\t\t else{\n\t\t\t\t\t\t\tfor(Loop::block_iterator BL=L->block_begin(), BF=L->block_end(); BL !=BF; ++BL){\n\t\t\t\t\t\t\t\tBasicBlock *BB=*BL;\n\t\t\t\t\t\t\t\tfor(auto ii=BB->begin();ii!=BB->end();++ii){\n\t\t\t\t\t\t\t\t\tif(isa(ii)){\n\t\t\t\t\t\t\t\t\t\tValue *array=get_array_name(ii);\n\t\t\t\t\t\t\t\t\t\tif(OP==array){\n\t\t\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t}\n\t\t\t}\n\t\t\telse continue;\n\t\t}\n\t}\n\treturn loop_carry;\n}\n", "groundtruth": "\t\t\t\t\t\t\t\t\t\tGetElementPtrInst *gep1=get_GEP(ii);\n", "crossfile_context": ""} {"task_id": "COMBA", "path": "COMBA/src/FindLatency.cpp", "left_context": "/*\n * COMBA\n * Copyright (C) 2017 RCSL, HKUST\n * \n * ONLY FOR ACADEMIC USE, NOT FOR COMMERCIAL USE.\n * \n * Please use our tool at academic institutions and non-profit \n * research organizations for research use. \n * \n * \n */\n\n\n#include \"FindLatency.h\"\n#include \"Constant.h\"\n#include \"ComputeCriticalPath.h\"\n\nfloat find_latency_before_inst(Instruction *inst, std::map &instr_index_loop, std::vector > *dependence_loop)\n{\n\tfloat latency=0.0;\n\tstd::map loop_inst_till_latency;\n\tfloat cp=loop_solveCP(dependence_loop,loop_inst_till_latency);\n\tif(cp<0.0){\n\t\terrs()<<\"Please check1...\\n\";\n\t}\n\tfor(unsigned op=0;op!=inst->getNumOperands();++op)\n\t{\n\t\tValue *OP = inst->getOperand(op);\n\t\tif(Instruction *inst1 = dyn_cast(OP)){\n\t\t\tif(instr_index_loop.count(inst1)){\n\t\t\t\tunsigned index_inst1=instr_index_loop[inst1];\n\t\t\t\tlatency=std::max(latency,loop_inst_till_latency[index_inst1]);\n\t\t\t}\n\t\t}\n\t}\n\t//for PHI and load/write instructions, we add \"manual dependence\" when considering relationship between blocks. Here, we just consider load due to our needs.\n\tif(isa(inst)){\n\t\tif(instr_index_loop.count(inst)){\n\t\t\tunsigned inst_index=instr_index_loop[inst];\n\t\t\tfor(std::map::iterator it=instr_index_loop.begin();it!=instr_index_loop.end();++it){\n\t\t\t\tunsigned inst_tmp_index=it->second;\n\t\t\t\tfor(std::vector< std::pair >::iterator i= dependence_loop[inst_tmp_index].begin(); i!=dependence_loop[inst_tmp_index].end(); ++i){\n\t\t\t\t\tif(i->first==(int)inst_index){\n\t\t\t\t\t\tfloat latency_tmp=loop_inst_till_latency[inst_tmp_index];\n", "right_context": "\t}\n\treturn round(latency);\n}\n\n\nfloat find_latency_after_inst(Instruction *inst, std::map &instr_index_loop, std::vector > *dependence_loop)\n{\n\tfloat latency=0.0;\n\tstd::map loop_inst_till_latency;\n\tfloat cp=loop_solveCP(dependence_loop,loop_inst_till_latency);\n\tif(cp<0.0){\n\t\terrs()<<\"Please check2...\\n\";\n\t}\n\tunsigned index_inst=instr_index_loop[inst];\n\tlatency=loop_inst_till_latency[index_inst];\n\treturn round(latency);\n}\n\n\nfloat find_latency(Instruction *inst_begin, Instruction *inst_end, std::map &instr_index_loop, std::vector > *dependence_loop)\n{\n\tstd::queue index_queue[INSN_NUM];\n\tfloat latency=0.0;\n\tunsigned index_inst_begin=instr_index_loop[inst_begin];\n\tunsigned index_inst_end=instr_index_loop[inst_end];\n\tfloat *T=new float [INSN_NUM];\n\tfor (int i=0;i pushed_inst;\n\tif(!dependence_loop[index_inst_begin].empty())\n\t{\n\t\tfor(std::vector< std::pair >::iterator i= dependence_loop[index_inst_begin].begin(); i!=dependence_loop[index_inst_begin].end(); ++i)\n\t\t{\n\t\t\tif(i->first==(int)index_inst_begin)\n\t\t\t{\n\t\t\t\tif(isa(inst_begin)){\n\t\t\t\t\tlatency = 2.0;\n\t\t\t\t}\n\t\t\t\telse if(PHINode *phi=dyn_cast(inst_begin)){\n\t\t\t\t\tfor(unsigned ii=0,ie=phi->getNumIncomingValues();ii!=ie;ii++){\n\t\t\t\t\t\tValue *incoming=phi->getIncomingValue(ii);\n\t\t\t\t\t\tif(isa(incoming)){\n\t\t\t\t\t\t\tlatency = 2.0;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tlatency = std::max(i->second, latency);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tlatency = std::max(i->second, latency);\n\t\t\t\t}\n\t\t\t\tT[index_inst_begin]=latency;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(!pushed_inst.count((int)index_inst_begin)){\n\t\t\t\t\tint index_tmp=i->first;\n\t\t\t\t\tfloat latency_tmp=i->second;\n\t\t\t\t\tT[index_tmp]=T[index_inst_begin]+latency_tmp;\n\t\t\t\t\tindex_queue[index_inst_begin].push(index_tmp);\n\t\t\t\t\tpushed_inst[index_inst_begin]=1;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tint index_tmp=i->first;\n\t\t\t\t\tfloat latency_tmp=i->second;\n\t\t\t\t\tfloat T_tmp=T[index_inst_begin]+latency_tmp;\n\t\t\t\t\tT[index_tmp]=std::max(T_tmp,T[index_tmp]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfor(int j=index_inst_begin; j<= (int)index_inst_end; ++j)\n\t{\n\t\twhile(!index_queue[j].empty())\n\t\t{\n\t\t\tint index_test=index_queue[j].front();\n\t\t\tindex_queue[j].pop();\n\t\t\tfor(std::vector< std::pair >::iterator i= dependence_loop[index_test].begin(); i!=dependence_loop[index_test].end(); ++i)\n\t\t\t{\n\t\t\t\tfloat tmp=0.0;\n\t\t\t\tif(i->first==index_test){\n\t\t\t\t\ttmp = T[index_test] + i->second;\n\t\t\t\t\tT[index_test]=std::max(tmp,T[index_test]);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif(!pushed_inst.count(index_test)){\n\t\t\t\t\t\tint index_tmp=i->first;\n\t\t\t\t\t\tfloat latency_tmp=i->second;\n\t\t\t\t\t\tT[index_tmp]=T[index_test]+latency_tmp;\n\t\t\t\t\t\tindex_queue[index_test].push(index_tmp);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tint index_tmp=i->first;\n\t\t\t\t\t\tfloat latency_tmp=i->second;\n\t\t\t\t\t\tfloat T_tmp=T[index_test]+latency_tmp;\n\t\t\t\t\t\tT[index_tmp]=std::max(T_tmp,T[index_tmp]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tif(T[index_inst_end] == 0.0){\n\t\t//errs()<<\"These two instruction have no dependency\\n\";\n\t\tlatency=0.0;\n\t}\n\telse{\n\t\tlatency=T[index_inst_end];\n\t}\n\tdelete []T;\n\treturn latency;\n}\n\nfloat get_inst_latency(Instruction *inst, std::map &instr_index_loop,std::vector > *dependence_loop)\n{\n\tfloat latency=0.0;\n\tif(instr_index_loop.count(inst)){\n\t\tunsigned index=instr_index_loop[inst];\n\t\tfor(std::vector >::iterator i=dependence_loop[index].begin();i!=dependence_loop[index].end();++i){\n\t\t\tif((i->first==(int)index)){\n\t\t\t\tlatency=i->second;\n\t\t\t}\n\t\t}\n\t}\n\treturn latency;\n}\n\nvoid set_inst_latency(Instruction *inst,float latency,std::map &instr_index_loop,std::vector > *dependence_loop)\n{\n\tif(instr_index_loop.count(inst)){\n\t\tunsigned index=instr_index_loop[inst];\n\t\tfor(std::vector >::iterator i=dependence_loop[index].begin();i!=dependence_loop[index].end();++i){\n\t\t\tif((i->first==(int)index)){\n\t\t\t\ti->second=latency;\n\t\t\t}\n\t\t}\n\t}\n}\n", "groundtruth": "\t\t\t\t\t\tlatency=std::max(latency,latency_tmp);\n\t\t\t\t\t}\n\t\t\t\t}\n", "crossfile_context": ""} {"task_id": "COMBA", "path": "COMBA/src/InstLibrary.cpp", "left_context": "/*\n * COMBA\n * Copyright (C) 2017 RCSL, HKUST\n * \n * ONLY FOR ACADEMIC USE, NOT FOR COMMERCIAL USE.\n * \n * Please use our tool at academic institutions and non-profit \n * research organizations for research use. \n * \n * \n */\n\n\n#include \"InstLibrary.h\"\n#include \"Library.h\"\n#include \"Power.h\"\n\nfloat inst_latency_in_library(Instruction *inst)\n{\n\tfloat latency=0.0;\n\tswitch(inst->getOpcode()){\n\t\t//Terminator Instructions\n\t\tcase Instruction::Ret:\n\t\tcase Instruction::Br:\n\t\tcase Instruction::Switch:\n\t\tcase Instruction::IndirectBr:\n\t\tcase Instruction::Invoke:\n\t\tcase Instruction::Resume:\n\t\tcase Instruction::Unreachable:\n\t\t break;\n\t\t//Standard binary operators\n\t\tcase Instruction::Add:\n\t\tcase Instruction::Sub:\n\t\t latency=INT_ADD;\n\t\t break;\n\t\tcase Instruction::FAdd:\n\t\tcase Instruction::FSub:\n\t\t latency=FP_ADD;\n\t\t break;\n\t\tcase Instruction::Mul:\n\t\t Value *opr0;\n\t\t opr0=inst->getOperand(1);\n\t\t if(ConstantInt *cont=dyn_cast(opr0)){\n\t\t\t int opconst=cont->getSExtValue();\n\t\t\t if(is_power_of_two(opconst)){\n\t\t\t\t latency=SHIFT;\n\t\t\t\t //errs()<<\"Ignored: multiplied by a contant which is power of two.\\n\";\n\t\t\t }\n\t\t\t else{\n\t\t\t\t float SHL_ADD=0.0;\n\t\t\t\t if(frequency==100){\n\t\t\t\t\t SHL_ADD=SHIFT+INT_ADD;\n\t\t\t\t }\n\t\t\t\t else if(frequency==125){\n\t\t\t\t\t SHL_ADD=SHIFT+INT_ADD;\n\t\t\t\t }\n\t\t\t\t else if(frequency==150){\n\t\t\t\t\t SHL_ADD=SHIFT+INT_ADD;\n\t\t\t\t }\n\t\t\t\t else if(frequency==200){\n\t\t\t\t\t SHL_ADD=SHIFT+INT_ADD;\n\t\t\t\t }\n\t\t\t\t else if(frequency==250){\n\t\t\t\t\t SHL_ADD=SHIFT+INT_ADD+0.2;\n\t\t\t\t }\n\t\t\t\t int bound_power_two=closest_bound_power_two(opconst);\n\t\t\t\t if(opconst<0){\n\t\t\t\t\t opconst=-opconst;\n\t\t\t\t }\n\t\t\t\t int delta=opconst-bound_power_two;\n\t\t\t\t if(delta<0){\n\t\t\t\t\t delta=-delta;\n\t\t\t\t }\n\t\t\t\t if(delta==1){\n\t\t\t\t\t latency=SHL_ADD;\n\t\t\t\t }\n\t\t\t\t else{\n\t\t\t\t\t if(is_power_of_two(delta)){\n\t\t\t\t\t\t latency=SHL_ADD;\n\t\t\t\t\t }\n\t\t\t\t\t else{\n\t\t\t\t\t\t latency=INT_MULT;\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t\t else{\n\t\t\t latency=IMULT;\n\t\t }\n\t\t break;\n\t\tcase Instruction::FMul:\n\t\t latency=FP_MULT;\n\t\t break;\n\t\tcase Instruction::SDiv:\n\t\tcase Instruction::SRem:\n\t\t Value *opr;\n\t\t opr=inst->getOperand(1);\n", "right_context": "\t\t\t int opconst=cont->getSExtValue();\n\t\t\t if(is_power_of_two(opconst)){\n\t\t\t\t float SHL_DIV=0.0;\n\t\t\t\t if(frequency==100){\n\t\t\t\t\t SHL_DIV=SELECT_LATENCY+2*INT_ADD;\n\t\t\t\t }\n\t\t\t\t else if(frequency==125){\n\t\t\t\t\t SHL_DIV=SELECT_LATENCY+2*INT_ADD;\n\t\t\t\t }\n\t\t\t\t else if(frequency==150){\n\t\t\t\t\t SHL_DIV=SELECT_LATENCY+2*INT_ADD;\n\t\t\t\t }\n\t\t\t\t else if(frequency==200){\n\t\t\t\t\t SHL_DIV=SELECT_LATENCY+INT_ADD;\n\t\t\t\t }\n\t\t\t\t else if(frequency==250){\n\t\t\t\t\t SHL_DIV=SELECT_LATENCY+INT_ADD;\n\t\t\t\t }\n\t\t\t\t latency=SHL_DIV;\n\t\t\t\t //errs()<<\"Ignored: Divided by a contant which is power of two.\\n\";\n\t\t\t }\n\t\t\t else{\n\t\t\t\t latency=INT_DIV;\n\t\t\t }\n\t\t }\n\t\t else{\n\t\t\t latency=IDIV;\n\t\t }\n\t\t break;\n\t\tcase Instruction::UDiv:\n\t\tcase Instruction::URem:\n\t\t Value *opr1;\n\t\t opr1=inst->getOperand(1);\n\t\t if(ConstantInt *cont=dyn_cast(opr1)){\n\t\t\t int opconst=cont->getSExtValue();\n\t\t\t if(is_power_of_two(opconst)){\n\t\t\t\t float SHL_DIV=0.0;\n\t\t\t\t if(frequency==100){\n\t\t\t\t\t SHL_DIV=SELECT_LATENCY+2*INT_ADD;\n\t\t\t\t }\n\t\t\t\t else if(frequency==125){\n\t\t\t\t\t SHL_DIV=SELECT_LATENCY+2*INT_ADD;\n\t\t\t\t }\n\t\t\t\t else if(frequency==150){\n\t\t\t\t\t SHL_DIV=SELECT_LATENCY+INT_ADD;\n\t\t\t\t }\n\t\t\t\t else if(frequency==200){\n\t\t\t\t\t SHL_DIV=SELECT_LATENCY+INT_ADD;\n\t\t\t\t }\n\t\t\t\t else if(frequency==250){\n\t\t\t\t\t SHL_DIV=SELECT_LATENCY+INT_ADD;\n\t\t\t\t }\n\t\t\t\t latency=SHL_DIV;\n\t\t\t\t //errs()<<\"Ignored: Divided by a contant which is power of two.\\n\";\n\t\t\t }\n\t\t\t else{\n\t\t\t\t latency=U_DIV;\n\t\t\t }\n\t\t }\n\t\t else{\n\t\t\t latency=UDIV;\n\t\t }\n\t\t break;\n\t\tcase Instruction::FDiv:\n\t\tcase Instruction::FRem:\n\t\t latency=FP_DIV;\n\t\t break;\n\n\t\t//Logical operators (integer operands)\n\t\tcase Instruction::Shl:\n\t\tcase Instruction::LShr:\n\t\tcase Instruction::AShr:\n\t\t latency=SHIFT;\n\t\t break;\n\t\tcase Instruction::And:\n\t\tcase Instruction::Or:\n\t\tcase Instruction::Xor:\n\t\t latency=INT_ADD;\n\t\t break;\n\t\t//Memory operators\n\t\tcase Instruction::Alloca:\n\t\t latency=ALLOCA_LATENCY;\n\t\t break;\n\t\tcase Instruction::Load:\n\t\tcase Instruction::Store:\n\t\t break;\n\n\t\tcase Instruction::GetElementPtr:\n\t\t latency=GEP_LATENCY;\n\t\t break;\n\n\t\tcase Instruction::Fence: break;\n\t\tcase Instruction::AtomicCmpXchg: break;\n\t\tcase Instruction::AtomicRMW: break;\n\n\t\t//Cast operators\n\t\tcase Instruction::Trunc:\n\t\tcase Instruction::ZExt:\n\t\tcase Instruction::SExt:\n\t\tcase Instruction::FPTrunc:\n\t\tcase Instruction::FPExt:\n\t\t latency=0.0;\n\t\t break;\n\t\tcase Instruction::PtrToInt:\n\t\tcase Instruction::IntToPtr:\n\t\tcase Instruction::BitCast:\n\t\t latency=CAST_LATENCY;\n\t\t break;\n\t\tcase Instruction::FPToUI:\n\t\tcase Instruction::FPToSI:\n\t\t latency=FP_TO_SI;\n\t\t break;\n\t\tcase Instruction::UIToFP:\n\t\tcase Instruction::SIToFP:\n\t\t latency=SI_TO_FP;\n\t\t break;\n\t\tcase Instruction::AddrSpaceCast:\n\t\t errs()<<\"In AddrSpaceCast, it's not normal.\\n\";\n\t\t break;\n\t\t//Other operators\n\t\tcase Instruction::ICmp:\n\t\t latency=ICMP_LATENCY;\n\t\t break;\n\t\tcase Instruction::FCmp:\n\t\t latency=FCMP_LATENCY;\n\t\t break;\n\t\tcase Instruction::PHI:\n\t\t latency=PHI_LATENCY;\n\t\t break;\n\n\t\tcase Instruction::Call:\n\t\t break;\n\n\t\tcase Instruction::Select:\n\t\t latency=SELECT_LATENCY;\n\t\t break;\n\n\t\tcase Instruction::UserOp1:\n\t\tcase Instruction::UserOp2:\n\t\tcase Instruction::VAArg:\n\t\tcase Instruction::ExtractElement:\n\t\tcase Instruction::InsertElement:\n\t\tcase Instruction::ShuffleVector:\n\t\tcase Instruction::ExtractValue:\n\t\tcase Instruction::InsertValue:\n\t\tcase Instruction::LandingPad:\n\t\t break;\n\n\t\tdefault:\n\t\t puts(\"It is something cannot be handled\\n\");\n\t\t exit(0);\n\t}\n\treturn latency;\n}\n", "groundtruth": "\t\t if(ConstantInt *cont=dyn_cast(opr)){\n", "crossfile_context": ""} {"task_id": "COMBA", "path": "COMBA/src/LoopDepth.cpp", "left_context": "/*\n * COMBA\n * Copyright (C) 2017 RCSL, HKUST\n * \n * ONLY FOR ACADEMIC USE, NOT FOR COMMERCIAL USE.\n * \n * Please use our tool at academic institutions and non-profit \n * research organizations for research use. \n * \n * \n */\n\n\n#include \"LoopDepth.h\"\n\nint nested_loop_depth_for_loop(Loop* L)\n{\n\tint counter_depth=0;\n\tstd::vector subLoops=L->getSubLoops();\n\tint subLoop_num = subLoops.size();\n\tif(subLoops.empty()){\n\t\tcounter_depth += 1;\n\t}\n\telse{\n\t\tint counter=0;\n\t\tfor(int j=0;j subLoops=L->getSubLoops();\n\tint size = subLoops.size();\n\tif(subLoops.empty())\n\t{\n\t\tInstruction *indvar=NULL;\n\t\tLoop* Loop_parent=L->getParentLoop();\n\t\tBasicBlock *head=Loop_parent->getHeader();\n\t\tBasicBlock *latch=Loop_parent->getLoopLatch();\n\t\tTerminatorInst *last_inst=latch->getTerminator();\n\t\tBranchInst *br_inst=dyn_cast(last_inst);\n\t\tCmpInst *cmp=dyn_cast(br_inst->getCondition());\n\t\tValue *cmpOp0=cmp->getOperand(0);\n\t\tValue *cmpOp1=cmp->getOperand(1);\n\t\tif(Instruction *cmp_op0=dyn_cast(cmpOp0))\n\t\t{\n\t\t\tindvar=cmp_op0;\n\t\t}\n\t\telse if(Instruction *cmp_op1=dyn_cast(cmpOp1))\n\t\t{\n\t\t\tindvar=cmp_op1;\n\t\t}\n\t\telse{\n\t\t\terrs()<<\"Not a common conditional inst.\\n\";\n\t\t}\n\t\tfor(auto iti=latch->begin();iti!=latch->end();++iti)\n\t\t{\n\t\t Instruction *inst=iti;\n\t\t if((inst==cmp)||(inst==br_inst)||(inst==indvar))\n\t\t {\n\t\t\t loop_is_perfect=true;\n\t\t }\n\t\t else{\n\t\t\t loop_is_perfect=false;\n\t\t\t break;\n\t\t }\n\t\t}\n\t\tif(loop_is_perfect==true){\n\t\t\t for(auto ii=head->begin();ii !=head->end();++ii)\n\t\t\t {\n\t\t\t\t Instruction *inst_h=ii;\n\t\t\t\t if(isa(inst_h)){\n\t\t\t\t\t Value *array=get_array_name(inst_h);\n\t\t\t\t\t for(Loop::block_iterator BI=L->block_begin(), BE=L->block_end(); BI !=BE; ++BI){\n\t\t\t\t\t\t BasicBlock *bb=*BI;\n\t\t\t\t\t\t for(auto it=bb->begin();it!=bb->end();++it){\n\t\t\t\t\t\t\t if(isa(it)){\n\t\t\t\t\t\t\t\t Value *array_name=get_array_name(it);\n\t\t\t\t\t\t\t\t if(array_name==array){\n\t\t\t\t\t\t\t\t\t loop_is_perfect=false;\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\t\t}\n\t}\n\telse if(size==1){\n\t\tLoop* L1 = subLoops.at(0);\n\t\tif(Loops_pipeline[L1]==1){\n\t\t\tInstruction *indvar=NULL;\n\t\t\tLoop* Loop_parent=L1->getParentLoop();\n\t\t\tBasicBlock *head=Loop_parent->getHeader();\n\t\t\tBasicBlock *latch=Loop_parent->getLoopLatch();\n\t\t\tTerminatorInst *last_inst=latch->getTerminator();\n\t\t\tBranchInst *br_inst=dyn_cast(last_inst);\n\t\t\tCmpInst *cmp=dyn_cast(br_inst->getCondition());\n\t\t\tValue *cmpOp0=cmp->getOperand(0);\n\t\t\tValue *cmpOp1=cmp->getOperand(1);\n\t\t\tif(Instruction *cmp_op0=dyn_cast(cmpOp0))\n\t\t\t{\n\t\t\t\tindvar=cmp_op0;\n\t\t\t}\n\t\t\telse if(Instruction *cmp_op1=dyn_cast(cmpOp1))\n\t\t\t{\n\t\t\t\tindvar=cmp_op1;\n\t\t\t}\n\t\t\telse{\n\t\t\t\terrs()<<\"Not a common conditional inst.\\n\";\n\t\t\t}\n\n\t\t\tfor(auto iti=latch->begin();iti!=latch->end();++iti)\n\t\t\t{\n\t\t\t Instruction *inst=iti;\n\t\t\t if((inst==cmp)||(inst==br_inst)||(inst==indvar))\n\t\t\t {\n\t\t\t\t loop_is_perfect=true;\n\t\t\t }\n\t\t\t else{\n\t\t\t\t loop_is_perfect=false;\n\t\t\t\t break;\n\t\t\t }\n\t\t\t}\n\t\t\tif(loop_is_perfect==true){\n\t\t\t for(auto ii=head->begin();ii !=head->end();++ii)\n\t\t\t {\n\t\t\t\t Instruction *inst_h=ii;\n\t\t\t\t if(isa(inst_h)){\n\t\t\t\t\t Value *array=get_array_name(inst_h);\n\t\t\t\t\t for(Loop::block_iterator BI=L1->block_begin(), BE=L1->block_end(); BI!=BE; ++BI){\n\t\t\t\t\t\t BasicBlock *bb=*BI;\n\t\t\t\t\t\t for(auto it=bb->begin();it!=bb->end();++it){\n\t\t\t\t\t\t\t if(isa(it)){\n\t\t\t\t\t\t\t\t Value *array_name=get_array_name(it);\n\t\t\t\t\t\t\t\t if(array_name==array){\n\t\t\t\t\t\t\t\t\t loop_is_perfect=false;\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tloop_is_perfect=test_loop_is_perfect(L1);\n\t\t}\n\t}\n\telse{\n\t\tloop_is_perfect=false;\n\t}\n\treturn loop_is_perfect;\n}\n\n\nfloat pipeline_iteration_latency(LoopInfo* LI, Loop *L,int II, std::map &instr_index_loop, std::map &load_order_buff, std::vector > *dependence_loop)\n{\n\tfloat iteration_latency=0.0;\n\titeration_latency=round(update_loopCP(LI,L,load_order_buff));\n\tstd::map array_read;\n\tstd::map array_write;\n\tfor(std::map::iterator it=instr_index_loop.begin();it!=instr_index_loop.end();++it)\n\t{\n\t\tInstruction *inst=it->first;\n\t\tif(isa(inst)){\n\t\t\tValue *array_name=get_array_name(inst);\n\t\t\tif(!array_read.count(array_name)){\n\t\t\t\tif(array_number.count(array_name)){\n\t\t\t\t\tarray_read[array_name]=array_number[array_name];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if(isa(inst)){\n\t\t\tValue *array_name=get_array_name(inst);\n\t\t\tif(!array_write.count(array_name)){\n\t\t\t\tif(array_number.count(array_name)){\n\t\t\t\t\tarray_write[array_name]=array_number[array_name];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfloat IL_delta=0.0;\n\tfor(std::map::iterator it=array_read.begin();it!=array_read.end();++it)\n\t{\n\t\tValue *array=it->first;\n\t\tif(array_write.count(array)){\n\t\t\tfloat latency_min_write=inf;\n\t\t\tfloat latency_max_write=0.0;\n\t\t\tfloat latency_max_read=0.0;\n\t\t\tfor(std::map::iterator ii=instr_index_loop.begin();ii!=instr_index_loop.end();++ii){\n\t\t\t\tInstruction *inst=ii->first;\n\t\t\t\tif(isa(inst)){\n\t\t\t\t\tValue *store_array=get_array_name(inst);\n\t\t\t\t\tif(array==store_array){\n\t\t\t\t\t\tfloat latency_tmp=find_latency_after_inst(inst,instr_index_loop,dependence_loop);\n\t\t\t\t\t\tlatency_min_write=std::min(latency_min_write,latency_tmp);\n\t\t\t\t\t\tlatency_max_write=std::max(latency_max_write,latency_tmp);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(isa(inst)){\n\t\t\t\t\tValue *load_array=get_array_name(inst);\n\t\t\t\t\tif(load_array==array){\n\t\t\t\t\t\tfloat latency_tmp1=find_latency_after_inst(inst,instr_index_loop,dependence_loop);\n\t\t\t\t\t\tlatency_max_read=std::max(latency_max_read,latency_tmp1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tlatency_min_write=round(latency_min_write)-1.0;\n\t\t\tlatency_max_write=round(latency_max_write)-1.0;\n\t\t\tlatency_max_read=round(latency_max_read);\n\t\t\tint divider=(int)ceil(latency_max_write/(float)II);\n\t\t\tint upper_bound=divider*II;\n\t\t\tIL_delta=std::max((float)upper_bound,IL_delta);\n\t\t}\n\t}\n\tif(IL_delta>=iteration_latency){\n\t\titeration_latency = IL_delta;//+= IL_delta;\n\t}\n\treturn round(iteration_latency);\n}\n\n\nfloat perfect_pipeline_iteration_latency(LoopInfo* LI, Loop *L, int II, std::map &instr_index_loop,std::map &load_order_buff, std::vector > *dependence_loop)\n{\n\tfloat usual_latency=pipeline_iteration_latency(LI,L,II,instr_index_loop,load_order_buff,dependence_loop);\n\tfloat iteration_latency=round(update_loopCP(LI,L,load_order_buff));\n\tLoop *parent=L->getParentLoop();\n\tfloat new_iteration_latency=round(update_loopCP(LI,parent,load_order_buff));\n\tif(new_iteration_latency>iteration_latency){\n\t\tusual_latency += new_iteration_latency-iteration_latency;\n\t}\n\treturn usual_latency;\n}\n\n\nfloat compute_cycles_in_loop(LoopInfo* LI, Loop* L, std::map &load_order_buff)\n{\n\t//float constant=1.0;\n\tint II=1;\n\tstd::vector subLoops = L->getSubLoops();\n\tint subLoop_num = subLoops.size();\n\tfloat tmp_sum = 0.0;\n\n\tif ( subLoops.empty() )\n\t{\n\t\tif(Loops_pipeline[L]==1)\n\t\t{\n\t\t\tstd::map instr_index_loop;\n\t\t\tstd::vector > dependence_loop[INSN_NUM];\n\t\t\tstd::map > inst_map_branch;\n\t\t\tdependence_set(LI,L,instr_index_loop,load_order_buff,dependence_loop,inst_map_branch);\n\t\t\treschedule_dependence(LI,frequency,instr_index_loop,dependence_loop);\n\t\t\tII=compute_II(LI,L,instr_index_loop,load_order_buff,dependence_loop);\n\t\t\tfloat pipeline_latency=pipeline_iteration_latency(LI,L,II,instr_index_loop,load_order_buff,dependence_loop);\n\t\t\ttmp_sum += pipeline_latency + II*(ceil((float)Loops_counter[L]/(float)Loops_unroll[L])-1);\n\t\t}\n\t\telse if(Loops_pipeline[L]==0){\n\t\t\tif(Loops_unroll[L]>=Loops_counter[L]){\n\t\t\t\terrs()<<\"Single Loop \"< instr_index_loop;\n\t\t\tstd::vector > dependence_loop[INSN_NUM];\n\t\t\tstd::map > inst_map_branch;\n\t\t\tdependence_set(LI,L,instr_index_loop,load_order_buff,dependence_loop,inst_map_branch);\n\t\t\treschedule_dependence(LI,frequency,instr_index_loop,dependence_loop);\n\t\t\tII=compute_II(LI,L,instr_index_loop,load_order_buff,dependence_loop);\n\t\t\tfloat pipeline_latency=pipeline_iteration_latency(LI,L,II,instr_index_loop,load_order_buff,dependence_loop);\n\t\t\t//errs()<<\"Pipelined latency: \"< instr_index_subloop;\n\t\t\t\tstd::vector > dependence_subloop[INSN_NUM];\n\t\t\t\tstd::map > inst_map_branch;\n\t\t\t\tdependence_set(LI,sub_loop_first,instr_index_subloop,load_order_buff,dependence_subloop,inst_map_branch);\n\t\t\t\treschedule_dependence(LI,frequency,instr_index_subloop,dependence_subloop);\n\t\t\t\tint II_subloop=compute_II(LI,sub_loop_first,instr_index_subloop,load_order_buff,dependence_subloop);\n\t\t\t\tfloat subloop_cp=perfect_pipeline_iteration_latency(LI,sub_loop_first,II_subloop,instr_index_subloop,load_order_buff,dependence_subloop);\n\t\t\t\t//errs()<<\"Pipelined latency: \"<=Loops_counter[L]){\n\t\t\t\t\terrs()<<\"Loop \"< instr_index_loop;\n\t\t\t\t\tstd::vector > dependence_loop[INSN_NUM];\n\t\t\t\t\tstd::map > inst_map_branch;\n\t\t\t\t\tstd::map loop_inst_till_latency;\n\t\t\t\t\tstd::map updated_loop;\n\t\t\t\t\tunsigned index_loop=1;\n\t\t\t\t\tfor (int i=0;i > vec;\n\t\t\t\t\t\tdependence_loop[i].swap(vec);\n\t\t\t\t\t}\n\t\t\t\t\tfor(Loop::block_iterator BI=L->block_begin(), BE=L->block_end(); BI !=BE; ++BI)\n\t\t\t\t\t{\n\t\t\t\t\t\tBasicBlock *bb=*BI;\n\t\t\t\t\t\tbool bb_in_loop_flag=false;\n\t\t\t\t\t\tLoop *subloop=NULL;\n\t\t\t\t\t\tfor(int j=0; jcontains(bb)){\n\t\t\t\t\t\t\t\tbb_in_loop_flag = true;\n\t\t\t\t\t\t\t\tsubloop=sub_loop;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(bb_in_loop_flag==false){\n\t\t\t\t\t\t\tfor(auto iti=bb->begin();iti!=bb->end();++iti){\n\t\t\t\t\t\t\t\tupdate(LI,iti,index_loop,instr_index_loop,load_order_buff,dependence_loop,inst_map_branch);\n\t\t\t\t\t\t\t\tif(isa(iti)){\n\t\t\t\t\t\t\t\t\tupdate_load(LI,iti,instr_index_loop,dependence_loop);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if(isa(iti)){\n\t\t\t\t\t\t\t\t\tupdate_store(LI,iti,instr_index_loop,dependence_loop);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t if(updated_loop.count(subloop)){\n\t\t\t\t\t\t\t\t ++updated_loop[subloop];\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t else{\n\t\t\t\t\t\t\t\t updated_loop[subloop]=1;\n\t\t\t\t\t\t\t\t Loop_insert(LI, subloop, index_loop, instr_index_loop,load_order_buff, dependence_loop,inst_map_branch);\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treschedule_dependence(LI,frequency,instr_index_loop,dependence_loop);\n\t\t\t\t\tfloat critical_path_loop = loop_solveCP(dependence_loop,loop_inst_till_latency);\n\t\t\t\t\ttmp_sum = round(critical_path_loop) * ceil((float)Loops_counter[L]/(float)Loops_unroll[L]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\terrs()<<\"Pipeline directive is not set correctly.\\n\";\n\t\t}\n\t\tloop_cycles[L]=tmp_sum;\n\t\t//errs()<<\"Loop: \"< &instr_index_loop, std::map &load_order_buff, std::vector > *dependence_loop, std::map > &inst_map_branch)\n{\n\t std::map updated_loop;\n\t std::vector subLoops=L->getSubLoops();\n\t int subLoop_num = subLoops.size();\n\t if(subLoops.empty()){\n\t\t if(Loops_unroll[L]>=Loops_counter[L]){\n\t\t\t for(Loop::block_iterator BI=L->block_begin(), BE=L->block_end(); BI !=BE; ++BI){\n\t\t\t\t BasicBlock *bb=*BI;\n\t\t\t\t for(auto iti=bb->begin();iti!=bb->end();++iti)\n\t\t\t\t {\n\t\t\t\t \tupdate(LI,iti,index_loop,instr_index_loop,load_order_buff,dependence_loop,inst_map_branch);\n\t\t\t\t\tif(isa(iti)){\n\t\t\t\t\t\tupdate_load(LI,iti,instr_index_loop,dependence_loop);\n\t\t\t\t\t}\n\t\t\t\t\telse if(isa(iti)){\n\t\t\t\t\t\tupdate_store(LI,iti,instr_index_loop,dependence_loop);\n\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t\t else{\n\t\t\t Loop *parent=L->getParentLoop();\n\t\t\t int factor=1;\n\t\t\t if(parent!=NULL){\n\t\t\t\t factor=Loops_unroll[parent];\n\t\t\t }\n\t\t\t float latency=compute_cycles_in_loop(LI,L,load_order_buff)*factor;\n\t\t\t loop_cycles[L]=latency;\n\t\t\t for(Loop::block_iterator BI=L->block_begin(), BE=L->block_end(); BI !=BE; ++BI)\n\t\t\t {\n\t\t\t\t BasicBlock *bb=*BI;\n\t\t\t\t for(auto iti=bb->begin();iti!=bb->end();++iti)\n\t\t\t\t {\n\t\t\t\t\t update_fix_latency(L,iti,latency,index_loop,instr_index_loop,dependence_loop);\n\t\t\t\t\t inst_reschedule_considered[iti]=1;\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t }\n\t else{\n\t\t if(Loops_unroll[L]>=Loops_counter[L]){\n\t\t\t for(Loop::block_iterator BI=L->block_begin();BI != L->block_end(); ++BI){\n\t\t\t\t BasicBlock *bb=*BI;\n\t\t\t\t Loop *subloop=NULL;\n\t\t\t\t bool bb_in_loop_flag=false;\n\t\t\t\t for(int j=0; jcontains(bb)){\n\t\t\t\t\t\t bb_in_loop_flag = true;\n\t\t\t\t\t\t subloop=sub_loop;\n\t\t\t\t\t\t break;\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t if(bb_in_loop_flag==false){\n\t\t\t\t\t for(auto iti=bb->begin();iti!=bb->end();++iti){\n\t\t\t\t\t\t update(LI,iti,index_loop,instr_index_loop,load_order_buff,dependence_loop,inst_map_branch);\n\t\t\t\t\t\t if(isa(iti)){\n\t\t\t\t\t\t\t update_load(LI,iti,instr_index_loop,dependence_loop);\n\t\t\t \t\t\t }\n\t\t\t\t\t\t else if(isa(iti)){\n\t\t\t\t\t\t\t update_store(LI,iti,instr_index_loop,dependence_loop);\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t else{\n\t\t\t\t\t if(updated_loop.count(subloop)){\n\t\t\t\t\t\t ++updated_loop[subloop];\n\t\t\t\t\t }\n\t\t\t\t\t else{\n\t\t\t\t\t\t updated_loop[subloop]=1;\n\t\t\t\t\t\t Loop_insert(LI, subloop, index_loop, instr_index_loop,load_order_buff,dependence_loop,inst_map_branch);\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t\t else{\n\t\t\t Loop *parent=L->getParentLoop();\n\t\t\t int factor=1;\n\t\t\t if(parent!=NULL){\n\t\t\t\t factor=Loops_unroll[parent];\n\t\t\t }\n\t\t\t float latency=compute_cycles_in_loop(LI,L,load_order_buff)*factor;\n\t\t\t loop_cycles[L]=latency;\n\t\t\t for(Loop::block_iterator BI=L->block_begin();BI != L->block_end(); ++BI){\n\t\t\t\t BasicBlock *bb=*BI;\n\t\t\t\t for(auto iti=bb->begin();iti!=bb->end();++iti)\n\t\t\t\t {\n\t\t\t\t\t update_fix_latency(L,iti,latency,index_loop,instr_index_loop,dependence_loop);\n", "right_context": "}\n", "groundtruth": "\t\t\t\t\t inst_reschedule_considered[iti]=1;\n\t\t\t\t }\n\t\t\t }\n", "crossfile_context": ""} {"task_id": "COMBA", "path": "COMBA/src/PartitionFactor.cpp", "left_context": "/*\n * COMBA\n * Copyright (C) 2017 RCSL, HKUST\n * \n * ONLY FOR ACADEMIC USE, NOT FOR COMMERCIAL USE.\n * \n * Please use our tool at academic institutions and non-profit \n * research organizations for research use. \n * \n * \n */\n\n\n#include \"PartitionFactor.h\"\n#include \"ArrayName.h\"\n\n\nint partition_factor(Instruction *inst)\n{\n\tint factor=1;\n\tValue *array_name=get_array_name(inst);\n\tif(array_number.count(array_name)){\n\t\tint array_index=array_number[array_name];\n\t\tint dim=array_dimension[array_index];\n\t\tif(dim==1){\n", "right_context": "\t\t\tfactor=it->second;\n\t\t}\n\t\telse if(dim>1){\n\t\t\tint fac=1;\n\t\t\tfor(std::vector< std::pair >::iterator it= array_partition[array_index].begin(); it!=array_partition[array_index].end(); ++it){\n\t\t\t\tfac=it->second;\n\t\t\t\tfactor *=fac;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\terrs()<<\"Dim is 0, wrong!\\n\";\n\t\t}\n\t}\n\treturn factor;\n}\n\n", "groundtruth": "\t\t\tstd::vector< std::pair >::iterator it = array_partition[array_index].begin();\n", "crossfile_context": ""} {"task_id": "COMBA", "path": "COMBA/src/Power.cpp", "left_context": "/*\n * COMBA\n * Copyright (C) 2017 RCSL, HKUST\n * \n * ONLY FOR ACADEMIC USE, NOT FOR COMMERCIAL USE.\n * \n * Please use our tool at academic institutions and non-profit \n * research organizations for research use. \n * \n * \n */\n\n\n#include \"Constant.h\"\n#include \"Power.h\"\n\nbool is_power_of_two(int n)\n{\n\tif(n==0)\n\t\treturn false;\n\telse if(n==1)\n\t\treturn true;\n\telse if(n%2)\n\t\treturn false;\n\telse\n\t\treturn is_power_of_two(n/2);\n}\n\nint closest_bound_power_two(int n)\n{\n\tint m1=0;\n\tint m2=0;\n\tint m=0;\n\tif(n<0){\n\t\tn=-n;\n\t}\n", "right_context": "\t\tbool is_power_two=is_power_of_two(i);\n\t\tif(is_power_two==true){\n\t\t\tm1=i;\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(int i=n;idelta_m2){\n\t\tm=m2;\n\t}\n\telse{\n\t\tm=m1;\n\t}\n\treturn m;\n}\n\nint get_power_of_two(int n)\n{\n\tint power=1;\n\tif(n==1){\n\t\tpower=0;\n\t}\n\telse if(is_power_of_two(n)==true){\n\t\tpower+=get_power_of_two(n/2);\n\t}\n\telse{\n\t\tn--;\n\t\tpower=get_power_of_two(n);\n\t}\n\treturn power;\n}\n", "groundtruth": "\tfor(int i=n;i>0;--i){\n", "crossfile_context": ""} {"task_id": "COMBA", "path": "COMBA/src/SetPragma.cpp", "left_context": "/*\n * COMBA\n * Copyright (C) 2017 RCSL, HKUST\n * \n * ONLY FOR ACADEMIC USE, NOT FOR COMMERCIAL USE.\n * \n * Please use our tool at academic institutions and non-profit \n * research organizations for research use. \n * \n * \n */\n\n\n#include \"SetPragma.h\"\n\n\nvoid set_dataflow(Module &M)\n{\n\tfor(auto F=M.begin(), E=M.end(); F!=E; ++F){\n\t\tunsigned FnID=F->getIntrinsicID();\n\t\tif(FnID==0){\n\t\t\tif(function_is_inline(F)==false){\n\t\t\t\tunsigned F_index=Function_index[F];\n\t\t\t\tFunction_dataflow[F]=dataflow_input[F_index];\n\t\t\t}\n\t\t}\n\t\t/*else{\n\t\t\terrs()<<\"This is intrinsic function of llvm.\\n\";\n\t\t}*/\n\t}\n\tfor(auto F=M.begin(), E=M.end(); F!=E; ++F){\n\t\tunsigned FnID=F->getIntrinsicID();\n\t\tif(FnID==0){\n\t\t\tif(function_is_inline(F)==false){\n\t\t\t\tfor(inst_iterator I=inst_begin(F), IE=inst_end(F); I!=IE; ++I){\n\t\t\t\t\tInstruction *inst= &*I;\n\t\t\t\t\tif(CallInst *call=dyn_cast(inst)){\n\t\t\t\t\t\tFunction *callee=call->getCalledFunction();\n\t\t\t\t\t\tif(Function_dataflow.count(callee)){\n\t\t\t\t\t\t\tFunction_dataflow[callee]=0;\n\t\t\t\t\t\t\tunsigned callee_index=Function_index[callee];\n\t\t\t\t\t\t\tdataflow_input[callee_index]=0;\n\t\t\t\t\t\t\t//StringRef FunName=callee->getName();\n\t\t\t\t\t\t\t//errs()<hasFnAttribute(Attribute::AlwaysInline);\n\t return inline_function;\n}\n\nbool function_is_noinline(Function *F)\n{\n\t bool noinline_function=false;\n\t noinline_function=F->hasFnAttribute(Attribute::NoInline);\n\t return noinline_function;\n}\n\nbool has_subFn(Function *F)\n{\n\tbool Fn_has_subFn=false;\n\tfor(inst_iterator I=inst_begin(F), IE=inst_end(F); I!=IE; ++I){\n\t\tInstruction *inst= &*I;\n\t\tif(CallInst *call=dyn_cast(inst)){\n\t\t\tFunction *callee=call->getCalledFunction();\n\t\t\tunsigned FnID=callee->getIntrinsicID();\n\t\t\tif(FnID==0){\n\t\t\t\tFn_has_subFn=true;\n\t\t\t}\n\t\t}\n\t}\n\treturn Fn_has_subFn;\n}\n\nbool Fn_pipeline_modify(Function *F)\n{\n\tunsigned FnID=F->getIntrinsicID();\n\tif(FnID==0){\n\t\tbool Fn_has_subFn=has_subFn(F);\n\t\tif(Fn_has_subFn==true){\n\t\t\tif(Function_pipeline[F]==1){\n\t\t\t\tfor(inst_iterator I=inst_begin(F), IE=inst_end(F); I!=IE; ++I){\n\t\t\t\t\tInstruction *inst= &*I;\n\t\t\t\t\tif(CallInst *call=dyn_cast(inst)){\n\t\t\t\t\t\tFunction *callee=call->getCalledFunction();\n\t\t\t\t\t\tif(Function_pipeline.count(callee)){\n\t\t\t\t\t\t\tFunction_pipeline[callee]=1;\n\t\t\t\t\t\t\tunsigned callee_index=Function_index[callee];\n\t\t\t\t\t\t\tfunction_pipeline_input[callee_index]=1;\n\t\t\t\t\t\t\t//StringRef FunName=callee->getName();\n\t\t\t\t\t\t\t//errs()<getIntrinsicID();\n\t\tif(FnID==0){\n\t\t\tif(function_is_inline(F)==false){\n\t\t\t\tunsigned F_index=Function_index[F];\n\t\t\t\tFunction_pipeline[F]=function_pipeline_input[F_index];\n\t\t\t}\n\t\t}\n\t\t/*else{\n\t\t\terrs()<<\"This is intrinsic function of llvm.\\n\";\n\t\t}*/\n\t}\n\tfor(auto F=M.begin(), E=M.end(); F!=E; ++F){\n\t\tunsigned FnID=F->getIntrinsicID();\n\t\tif(FnID==0){\n\t\t\tif(function_is_inline(F)==false){\n\t\t\t\tif(Function_dataflow.count(F)){\n\t\t\t\t\tif(Function_dataflow[F]==1){\n\t\t\t\t\t\tFunction_pipeline[F]=0;\n\t\t\t\t\t\tunsigned F_index=Function_index[F];\n\t\t\t\t\t function_pipeline_input[F_index]=0;\n\t\t\t\t\t\t//StringRef FunName=F->getName();\n\t\t\t\t\t\t//errs()<<\"Function pipeline is ignored when dataflow detected.\\n\";\n\t\t\t\t\t\t//errs()<<\"Function: \"<getIntrinsicID();\n\t\tif(FnID==0){\n\t\t\tif(function_is_inline(F)==false){\n\t\t\t\tif(Function_pipeline[F]==1){\n\t\t\t\t\tfor(inst_iterator I=inst_begin(F), IE=inst_end(F); I!=IE; ++I){\n\t\t\t\t\t\tInstruction *inst= &*I;\n\t\t\t\t\t\tif(CallInst *call=dyn_cast(inst)){\n\t\t\t\t\t\t\tFunction *callee=call->getCalledFunction();\n\t\t\t\t\t\t\tif(Function_pipeline.count(callee)){\n\t\t\t\t\t\t\t\tFunction_pipeline[callee]=1;\n\t\t\t\t\t\t\t\tunsigned callee_index=Function_index[callee];\n\t\t\t\t\t\t\t\tfunction_pipeline_input[callee_index]=1;\n\t\t\t\t\t\t\t\t//StringRef FunName=callee->getName();\n\t\t\t\t\t\t\t\t//errs()<<\"Function: \"<block_begin(), BE=L->block_end(); BI !=BE; ++BI){\n\t\t\t\tBasicBlock *bb=*BI;\n\t\t\t\tfor(auto iti=bb->begin();iti!=bb->end();++iti)\n\t\t\t\t{\n\t\t\t\t\tif(CallInst *call=dyn_cast(iti)){\n\t\t\t\t\t\tFunction *callee=call->getCalledFunction();\n\t\t\t\t\t\tif(Function_pipeline.count(callee)){\n\t\t\t\t\t\t\tFunction_pipeline[callee]=1;\n\t\t\t\t\t\t\tunsigned callee_index=Function_index[callee];\n\t\t\t\t\t\t\tfunction_pipeline_input[callee_index]=1;\n\t\t\t\t\t\t\t//StringRef FunName=callee->getName();\n\t\t\t\t\t\t\t//errs()<<\"Function: \"< subLoops = L->getSubLoops();\n\t\tif( !subLoops.empty() ){\n for (unsigned ii=0; ii loop_map_index;\n\tstd::queue loop_queue;\n\tfor (LoopInfo::reverse_iterator i = LI->rbegin(), e = LI->rend(); i != e; ++i){\n Loop *L = *i;\n\t\tLoops_counter[L] = Loops_counter_input[loop_index];\n\t\tLoops_unroll[L] = Loops_unroll_input[loop_index];\n\t\tLoops_pipeline[L] = Loops_pipeline_input[loop_index];\n\t\tloop_map_index[L]=loop_index;\n loop_index++;\n\t\tstd::vector subLoops = L->getSubLoops();\n\t\tif(!subLoops.empty()){\n\t\t\tfor (unsigned ii=0; ii subLoops = loop_test->getSubLoops();\n \tfor (unsigned ii=0; iirbegin(), e = LI->rend(); i!=e; ++i){\n\t\t\tLoop *L=*i;\n\t\t\tif(Loops_unroll[L]>=Loops_counter[L]){\n\t\t\t\tLoops_pipeline[L]=0; //loop pipeline will be ignored if it is unrolled completely.\n\t\t\t\tint l_index=loop_map_index[L];\n\t\t\t\tLoops_pipeline_input[l_index]=0;\n\t\t\t}\n\t\t\tstd::vector subloops=L->getSubLoops();\n\t\t\tif(!subloops.empty()){\n\t\t\t\tfor(unsigned ii=0; ii< subloops.size(); ii++){\n\t\t\t\t\tLoop* sub_loop=subloops.at(ii);\n\t\t\t\t\tloop_queue.push(sub_loop);\n\t\t\t\t}\n\t\t\t\twhile(!loop_queue.empty())\n\t\t\t\t{\n\t\t\t\t\tLoop* sub_loop_tmp=loop_queue.front();\n\t\t\t\t\tloop_queue.pop();\n\t\t\t\t\tint test_pipeline=0;\n\t\t\t\t\tLoop *loop_parent=sub_loop_tmp->getParentLoop();\n\t\t\t\t\twhile(loop_parent != NULL){\n\t\t\t\t\t\tif(Loops_pipeline[loop_parent]==1){\n\t\t\t\t\t\t\ttest_pipeline++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tloop_parent=loop_parent->getParentLoop();\n\t\t\t\t\t}\n\t\t\t\t\tif(test_pipeline>=1)\n\t\t\t\t\t{\n\t\t\t\t\t\tLoops_unroll[sub_loop_tmp]=Loops_counter[sub_loop_tmp];\n\t\t\t\t\t\tLoops_pipeline[sub_loop_tmp]=0;\n\t\t\t\t\t\tint sub_l_index=loop_map_index[sub_loop_tmp];\n\t\t\t\t\t\tLoops_unroll_input[sub_l_index]=Loops_unroll[sub_loop_tmp];\n\t\t\t\t\t\tLoops_pipeline_input[sub_l_index]=0;\n \t\t \t //errs()<<\"SubLoop: \"<=Loops_counter[sub_loop_tmp]){\n\t\t\t\t\t\tLoops_pipeline[sub_loop_tmp]=0;\n\t\t\t\t\t\tint sub_l_index=loop_map_index[sub_loop_tmp];\n\t\t\t\t\t\tLoops_pipeline_input[sub_l_index]=0;\n\t\t\t\t\t}\n\t\t\t\t\tstd::vector subLoops_tmp = sub_loop_tmp->getSubLoops();\n\t\t\t\t\tfor (unsigned ii=0; iirbegin(), e = LI->rend(); i!=e; ++i){\n\t\t\tLoop *L=*i;\n\t\t\tLoops_unroll[L]=Loops_counter[L];\n\t\t\tLoops_pipeline[L]=0;\n\t\t\tint l_index=loop_map_index[L];\n\t\t\tLoops_unroll_input[l_index]=Loops_unroll[L];\n\t\t\tLoops_pipeline_input[l_index]=0;\n\t\t\t//errs()<<\"Loop: \"< subloops=L->getSubLoops();\n\t\t\tif(!subloops.empty())\n\t\t\t{\n\t\t\t\tfor(unsigned ii=0; ii< subloops.size(); ii++)\n\t\t\t\t{\n\t\t\t\t\tLoop* sub_loop=subloops.at(ii);\n\t\t\t\t\t//errs()<<\"Loop: \"< subLoops = loop_test->getSubLoops();\n\t\t\tfor (unsigned ii=0; iirbegin(), e = LI->rend(); i != e; ++i)\n\t{\n\t\tLoop *L = *i;\n bool set_subFn=set_subFn_pipeline(L);\n", "right_context": "\nvoid set_array_partition(Module &M)\n{\n\tint size=array_number.size();\n\tint accumulated_dim=0;\n\tfor(int i=0;i::iterator it=array_number.begin();it!=array_number.end();++it){\n\t\t\tif(it->second==i){\n\t\t\t\tint array_index=it->second;\n\t\t\t\tint dim=array_dimension[array_index];\n\t\t\t\tfor(int j=0; j Function_array_set;\n\tint order=0;\n\tfor(auto F=M.begin(), E=M.end(); F!=E; ++F){\n\t\tunsigned FnID=F->getIntrinsicID();\n\t\tif(FnID==0){\n\t\t\tif(function_is_inline(F)==false){\n\t\t\t\tif(!Function_array_set.count(F)){\n\t\t\t\t\tFunction_array_set[F]=order;\n\t\t\t\t\torder++;\n\t\t\t\t}\n\t\t\t\tfor(inst_iterator I=inst_begin(F), E=inst_end(F); I != E; ++I){\n\t\t\t\t\tInstruction *inst=&*I;\n\t\t\t\t\tif(CallInst *call=dyn_cast(inst)){\n\t\t\t\t\t\tFunction *callee=call->getCalledFunction();\n\t\t\t\t\t\tunsigned Fnid=callee->getIntrinsicID();\n\t\t\t\t\t\tif(Fnid==0){\n\t\t\t\t\t\t\tif(Function_array_set.count(callee)){\n\t\t\t\t\t\t\t\tif(callee!=F){\n\t\t\t\t\t\t\t\t\tkeep_array_consistent(callee,call);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\n\nvoid keep_array_consistent(Function *callee, CallInst *call)\n{\n\tint i=0;\n\tfor(Function::arg_iterator it=callee->arg_begin();it!=callee->arg_end();++it){\n\t\tValue *arg=dyn_cast(it);\n\t\tValue *op=call->getArgOperand(i);\n\t\tType *op_type=op->getType();\n\t\tbool is_array = op_type->isPointerTy()||op_type->isArrayTy();\n\t\tValue *array_op=NULL;\n\t\tif(is_array==true){\n\t\t\tif(!isa(op)){\n\t\t\t\tarray_op=op;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(GetElementPtrInst *gep=dyn_cast(op)){\n\t\t\t\t\tValue *gep_pointer=gep->getPointerOperand();\n\t\t\t\t\tarray_op=gep_pointer;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(array_op!=NULL&&arg!=NULL){\n\t\t\tif(array_number.count(array_op)){\n\t\t\t\tif(array_number.count(arg)){\n\t\t\t\t\tint arg_index=array_number[arg];\n\t\t\t\t\tint op_index=array_number[array_op];\n\t\t\t\t\tint arg_dim=array_dimension[arg_index];\n\t\t\t\t\tint op_dim=array_dimension[op_index];\n\t\t\t\t\tif(op_dim!=arg_dim){\n\t\t\t\t\t\terrs()<<\"ERROR: Formal argument is different with actual argument !\\n\";\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tarray_partition[arg_index]=array_partition[op_index];\n\t\t\t\t\t\t//errs()<getValueID()==Value::GlobalVariableVal){\n\t\t\t\t\tif(array_number.count(arg)){\n\t\t\t\t\t\tint arg_index=array_number[arg];\n\t\t\t\t\t\t//int arg_dim=array_dimension[arg_index];\n\t\t\t\t\t\tif(array_partition[arg_index].empty()){\n\t\t\t\t\t\t\terrs()<<\"Check: empty come here...\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(!array_partition[arg_index].empty()){\n\t\t\t\t\t\t\tfor(std::vector >::iterator ii=array_partition[arg_index].begin();ii!=array_partition[arg_index].end();++ii){\n\t\t\t\t\t\t\t\tii->second=1;\n\t\t\t\t\t\t\t\t//errs()<<\"Formal argument is set to factor 1 due to global variable using.\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ti++;\n\t}\n\tfor(inst_iterator I=inst_begin(callee), E=inst_end(callee); I != E; ++I){\n\t\tInstruction *inst=&*I;\n\t\tif(CallInst *call_inst=dyn_cast(inst)){\n\t\t\tFunction *sub_callee=call_inst->getCalledFunction();\n\t\t\tunsigned Fnid=sub_callee->getIntrinsicID();\n\t\t\tif(Fnid==0){\n\t\t\t\tif(sub_callee!=callee){\n\t\t\t\t\tkeep_array_consistent(sub_callee,call_inst);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n", "groundtruth": " if(set_subFn==false){\n \terrs()<<\"Pipelining of subFun is not set correctly.\\n\";\n }\n", "crossfile_context": ""} {"task_id": "HLS_for_CNN", "path": "HLS_for_CNN/common/inc/AOCL_Utils.h", "left_context": "// Copyright (C) 2013-2014 Altera Corporation, San Jose, California, USA. All rights reserved. \n// Permission is hereby granted, free of charge, to any person obtaining a copy of this \n// software and associated documentation files (the \"Software\"), to deal in the Software \n// without restriction, including without limitation the rights to use, copy, modify, merge, \n// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to \n// whom the Software is furnished to do so, subject to the following conditions: \n// The above copyright notice and this permission notice shall be included in all copies or \n// substantial portions of the Software. \n// \n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, \n// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES \n// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND \n// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT \n// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, \n// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING \n// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR \n// OTHER DEALINGS IN THE SOFTWARE. \n// \n// This agreement shall be governed in all respects by the laws of the State of California and \n// by the laws of the United States of America. \n\n#ifndef AOCL_UTILS_H\n#define AOCL_UTILS_H\n\n#include \n#include \n#include \n#include \n\n#include \"CL/opencl.h\"\n\nnamespace aocl_utils {\n\n// Host allocation functions\nvoid *alignedMalloc(size_t size);\nvoid alignedFree(void *ptr);\n\n// Error functions\nvoid printError(cl_int error);\nvoid _checkError(int line,\n\t\t\t\t\t\t\t\t const char *file,\n\t\t\t\t\t\t\t\t cl_int error,\n const char *msg,\n ...); // does not return\n#define checkError(status, ...) _checkError(__LINE__, __FILE__, status, __VA_ARGS__)\n\n// Sets the current working directory to the same directory that contains\n// this executable. Returns true on success.\nbool setCwdToExeDir();\n\n// Find a platform that contains the search string in its name (case-insensitive match).\n// Returns NULL if no match is found.\ncl_platform_id findPlatform(const char *platform_name_search);\n\n// Returns the name of the platform.\nstd::string getPlatformName(cl_platform_id pid);\n\n// Returns the name of the device.\nstd::string getDeviceName(cl_device_id did);\n\n// Returns an array of device ids for the given platform and the\n// device type.\n// Return value must be freed with delete[].\ncl_device_id *getDevices(cl_platform_id pid, cl_device_type dev_type, cl_uint *num_devices);\n\n// Create a OpenCL program from a binary file.\n// The program is created for all given devices associated with the context. The same\n// binary is used for all devices.\ncl_program createProgramFromBinary(cl_context context, const char *binary_file_name, const cl_device_id *devices, unsigned num_devices);\n\n// Load binary file.\n// Return value must be freed with delete[].\nunsigned char *loadBinaryFile(const char *file_name, size_t *size);\n\n// Checks if a file exists.\nbool fileExists(const char *file_name);\n\n// Returns the path to the AOCX file to use for the given device.\n// This is special handling for examples for the Altera SDK for OpenCL.\n// It uses the device name to get the board name and then looks for a\n// corresponding AOCX file. Specifically, it gets the device name and\n// extracts the board name assuming the device name has the following format:\n// : ...\n//\n// Then the AOCX file is __.aocx. If this\n// file does not exist, then the file name defaults to .aocx.\nstd::string getBoardBinaryFile(const char *prefix, cl_device_id device);\n\n// Returns the time from a high-resolution timer in seconds. This value\n// can be used with a value returned previously to measure a high-resolution\n// time difference.\ndouble getCurrentTimestamp();\n\n// Returns the difference between the CL_PROFILING_COMMAND_END and\n// CL_PROFILING_COMMAND_START values of a cl_event object.\n// This requires that the command queue associated with the event be created\n// with the CL_QUEUE_PROFILING_ENABLE property.\n//\n// The return value is in nanoseconds.\ncl_ulong getStartEndTime(cl_event event);\n\n// Wait for the specified number of milliseconds.\nvoid waitMilliseconds(unsigned ms);\n\n// Smart pointers.\n// Interface is essentially the combination of std::auto_ptr and boost's smart pointers,\n// along with some small extensions (auto conversion to T*).\n\n// scoped_ptr: assumes pointer was allocated with operator new; destroys with operator delete\n", "right_context": " scoped_ptr() : m_ptr(NULL) {}\n scoped_ptr(T *ptr) : m_ptr(ptr) {}\n ~scoped_ptr() { reset(); }\n\n T *get() const { return m_ptr; }\n operator T *() const { return m_ptr; }\n T *operator ->() const { return m_ptr; }\n T &operator *() const { return *m_ptr; }\n\n this_type &operator =(T *ptr) { reset(ptr); return *this; }\n\n void reset(T *ptr = NULL) { delete m_ptr; m_ptr = ptr; }\n T *release() { T *ptr = m_ptr; m_ptr = NULL; return ptr; }\n\nprivate:\n T *m_ptr;\n\n // noncopyable\n scoped_ptr(const this_type &);\n this_type &operator =(const this_type &);\n};\n\n// scoped_array: assumes pointer was allocated with operator new[]; destroys with operator delete[]\n// Also supports allocation/reset with a number, which is the number of\n// elements of type T.\ntemplate\nclass scoped_array {\npublic:\n typedef scoped_array this_type;\n\n scoped_array() : m_ptr(NULL) {}\n scoped_array(T *ptr) : m_ptr(NULL) { reset(ptr); }\n explicit scoped_array(size_t n) : m_ptr(NULL) { reset(n); }\n ~scoped_array() { reset(); }\n\n T *get() const { return m_ptr; }\n operator T *() const { return m_ptr; }\n T *operator ->() const { return m_ptr; }\n T &operator *() const { return *m_ptr; }\n T &operator [](int index) const { return m_ptr[index]; }\n\n this_type &operator =(T *ptr) { reset(ptr); return *this; }\n\n void reset(T *ptr = NULL) { delete[] m_ptr; m_ptr = ptr; }\n void reset(size_t n) { reset(new T[n]); }\n T *release() { T *ptr = m_ptr; m_ptr = NULL; return ptr; }\n\nprivate:\n T *m_ptr;\n\n // noncopyable\n scoped_array(const this_type &);\n this_type &operator =(const this_type &);\n};\n\n// scoped_aligned_ptr: assumes pointer was allocated with alignedMalloc; destroys with alignedFree\n// Also supports allocation/reset with a number, which is the number of\n// elements of type T\ntemplate\nclass scoped_aligned_ptr {\npublic:\n typedef scoped_aligned_ptr this_type;\n\n scoped_aligned_ptr() : m_ptr(NULL) {}\n scoped_aligned_ptr(T *ptr) : m_ptr(NULL) { reset(ptr); }\n explicit scoped_aligned_ptr(size_t n) : m_ptr(NULL) { reset(n); }\n ~scoped_aligned_ptr() { reset(); }\n\n T *get() const { return m_ptr; }\n operator T *() const { return m_ptr; }\n T *operator ->() const { return m_ptr; }\n T &operator *() const { return *m_ptr; }\n T &operator [](int index) const { return m_ptr[index]; }\n\n this_type &operator =(T *ptr) { reset(ptr); return *this; }\n\n void reset(T *ptr = NULL) { if(m_ptr) alignedFree(m_ptr); m_ptr = ptr; }\n void reset(size_t n) { reset((T*) alignedMalloc(sizeof(T) * n)); }\n T *release() { T *ptr = m_ptr; m_ptr = NULL; return ptr; }\n\nprivate:\n T *m_ptr;\n\n // noncopyable\n scoped_aligned_ptr(const this_type &);\n this_type &operator =(const this_type &);\n};\n\n} // ns aocl_utils\n\n#endif\n\n", "groundtruth": "template\nclass scoped_ptr {\npublic:\n", "crossfile_context": ""} {"task_id": "HLS_for_CNN", "path": "HLS_for_CNN/common/inc/GL/gl.h", "left_context": "#ifndef __gl_h_\n#define __gl_h_\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/*\n** Copyright 1998-2002, NVIDIA Corporation.\n** All Rights Reserved.\n** \n** THE INFORMATION CONTAINED HEREIN IS PROPRIETARY AND CONFIDENTIAL TO\n** NVIDIA, CORPORATION. USE, REPRODUCTION OR DISCLOSURE TO ANY THIRD PARTY\n** IS SUBJECT TO WRITTEN PRE-APPROVAL BY NVIDIA, CORPORATION.\n** \n** \n** Copyright 1992-1999, Silicon Graphics, Inc.\n** All Rights Reserved.\n** \n** Portions of this file are UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon\n** Graphics, Inc.; the contents of this file may not be disclosed to third\n** parties, copied or duplicated in any form, in whole or in part, without\n** the prior written permission of Silicon Graphics, Inc.\n** \n** RESTRICTED RIGHTS LEGEND:\n** Use, duplication or disclosure by the Government is subject to\n** restrictions as set forth in subdivision (c)(1)(ii) of the Rights in\n** Technical Data and Computer Software clause at DFARS 252.227-7013,\n** and/or in similar or successor clauses in the FAR, DOD or NASA FAR\n** Supplement. Unpublished - rights reserved under the Copyright Laws of\n** the United States.\n*/\n\n#ifndef APIENTRY\n#define APIENTRY\n#endif\n\n#ifndef WIN32\n#define WINGDIAPI\n#endif\n\n#ifndef GLAPI\n# ifdef _WIN32\n# define GLAPI __stdcall\n# else\n# define GLAPI\n# endif\n# define __DEFINED_GLAPI\n#endif\n\n/*************************************************************/\n\ntypedef unsigned int GLenum;\ntypedef unsigned char GLboolean;\ntypedef unsigned int GLbitfield;\ntypedef signed char GLbyte;\ntypedef short GLshort;\ntypedef int GLint;\ntypedef int GLsizei;\ntypedef unsigned char GLubyte;\ntypedef unsigned short GLushort;\ntypedef unsigned int GLuint;\ntypedef float GLfloat;\ntypedef float GLclampf;\ntypedef double GLdouble;\ntypedef double GLclampd;\ntypedef void GLvoid;\n\n\n/*************************************************************/\n\n/* Version */\n#define GL_VERSION_1_1 1\n\n/* AttribMask */\n#define GL_CURRENT_BIT 0x00000001\n#define GL_POINT_BIT 0x00000002\n#define GL_LINE_BIT 0x00000004\n#define GL_POLYGON_BIT 0x00000008\n#define GL_POLYGON_STIPPLE_BIT 0x00000010\n#define GL_PIXEL_MODE_BIT 0x00000020\n#define GL_LIGHTING_BIT 0x00000040\n#define GL_FOG_BIT 0x00000080\n#define GL_DEPTH_BUFFER_BIT 0x00000100\n#define GL_ACCUM_BUFFER_BIT 0x00000200\n#define GL_STENCIL_BUFFER_BIT 0x00000400\n#define GL_VIEWPORT_BIT 0x00000800\n#define GL_TRANSFORM_BIT 0x00001000\n#define GL_ENABLE_BIT 0x00002000\n#define GL_COLOR_BUFFER_BIT 0x00004000\n#define GL_HINT_BIT 0x00008000\n#define GL_EVAL_BIT 0x00010000\n#define GL_LIST_BIT 0x00020000\n#define GL_TEXTURE_BIT 0x00040000\n#define GL_SCISSOR_BIT 0x00080000\n#define GL_ALL_ATTRIB_BITS 0xFFFFFFFF\n\n/* ClearBufferMask */\n/* GL_COLOR_BUFFER_BIT */\n/* GL_ACCUM_BUFFER_BIT */\n/* GL_STENCIL_BUFFER_BIT */\n/* GL_DEPTH_BUFFER_BIT */\n\n/* ClientAttribMask */\n#define GL_CLIENT_PIXEL_STORE_BIT 0x00000001\n#define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002\n#define GL_CLIENT_ALL_ATTRIB_BITS 0xFFFFFFFF\n\n/* Boolean */\n#define GL_FALSE 0\n#define GL_TRUE 1\n\n/* BeginMode */\n#define GL_POINTS 0x0000\n#define GL_LINES 0x0001\n#define GL_LINE_LOOP 0x0002\n#define GL_LINE_STRIP 0x0003\n#define GL_TRIANGLES 0x0004\n#define GL_TRIANGLE_STRIP 0x0005\n#define GL_TRIANGLE_FAN 0x0006\n#define GL_QUADS 0x0007\n#define GL_QUAD_STRIP 0x0008\n#define GL_POLYGON 0x0009\n\n/* AccumOp */\n#define GL_ACCUM 0x0100\n#define GL_LOAD 0x0101\n#define GL_RETURN 0x0102\n#define GL_MULT 0x0103\n#define GL_ADD 0x0104\n\n/* AlphaFunction */\n#define GL_NEVER 0x0200\n#define GL_LESS 0x0201\n#define GL_EQUAL 0x0202\n#define GL_LEQUAL 0x0203\n#define GL_GREATER 0x0204\n#define GL_NOTEQUAL 0x0205\n#define GL_GEQUAL 0x0206\n#define GL_ALWAYS 0x0207\n\n/* BlendingFactorDest */\n#define GL_ZERO 0\n#define GL_ONE 1\n#define GL_SRC_COLOR 0x0300\n#define GL_ONE_MINUS_SRC_COLOR 0x0301\n#define GL_SRC_ALPHA 0x0302\n#define GL_ONE_MINUS_SRC_ALPHA 0x0303\n#define GL_DST_ALPHA 0x0304\n#define GL_ONE_MINUS_DST_ALPHA 0x0305\n\n/* BlendingFactorSrc */\n/* GL_ZERO */\n/* GL_ONE */\n#define GL_DST_COLOR 0x0306\n#define GL_ONE_MINUS_DST_COLOR 0x0307\n#define GL_SRC_ALPHA_SATURATE 0x0308\n/* GL_SRC_ALPHA */\n/* GL_ONE_MINUS_SRC_ALPHA */\n/* GL_DST_ALPHA */\n/* GL_ONE_MINUS_DST_ALPHA */\n\n/* ColorMaterialFace */\n/* GL_FRONT */\n/* GL_BACK */\n/* GL_FRONT_AND_BACK */\n\n/* ColorMaterialParameter */\n/* GL_AMBIENT */\n/* GL_DIFFUSE */\n/* GL_SPECULAR */\n/* GL_EMISSION */\n/* GL_AMBIENT_AND_DIFFUSE */\n\n/* ColorPointerType */\n/* GL_BYTE */\n/* GL_UNSIGNED_BYTE */\n/* GL_SHORT */\n/* GL_UNSIGNED_SHORT */\n/* GL_INT */\n/* GL_UNSIGNED_INT */\n/* GL_FLOAT */\n/* GL_DOUBLE */\n\n/* CullFaceMode */\n/* GL_FRONT */\n/* GL_BACK */\n/* GL_FRONT_AND_BACK */\n\n/* DepthFunction */\n/* GL_NEVER */\n/* GL_LESS */\n/* GL_EQUAL */\n/* GL_LEQUAL */\n/* GL_GREATER */\n/* GL_NOTEQUAL */\n/* GL_GEQUAL */\n/* GL_ALWAYS */\n\n/* DrawBufferMode */\n#define GL_NONE 0\n#define GL_FRONT_LEFT 0x0400\n#define GL_FRONT_RIGHT 0x0401\n#define GL_BACK_LEFT 0x0402\n#define GL_BACK_RIGHT 0x0403\n#define GL_FRONT 0x0404\n#define GL_BACK 0x0405\n#define GL_LEFT 0x0406\n#define GL_RIGHT 0x0407\n#define GL_FRONT_AND_BACK 0x0408\n#define GL_AUX0 0x0409\n#define GL_AUX1 0x040A\n#define GL_AUX2 0x040B\n#define GL_AUX3 0x040C\n\n/* EnableCap */\n/* GL_FOG */\n/* GL_LIGHTING */\n/* GL_TEXTURE_1D */\n/* GL_TEXTURE_2D */\n/* GL_LINE_STIPPLE */\n/* GL_POLYGON_STIPPLE */\n/* GL_CULL_FACE */\n/* GL_ALPHA_TEST */\n/* GL_BLEND */\n/* GL_INDEX_LOGIC_OP */\n/* GL_COLOR_LOGIC_OP */\n/* GL_DITHER */\n/* GL_STENCIL_TEST */\n/* GL_DEPTH_TEST */\n/* GL_CLIP_PLANE0 */\n/* GL_CLIP_PLANE1 */\n/* GL_CLIP_PLANE2 */\n/* GL_CLIP_PLANE3 */\n/* GL_CLIP_PLANE4 */\n/* GL_CLIP_PLANE5 */\n/* GL_LIGHT0 */\n/* GL_LIGHT1 */\n/* GL_LIGHT2 */\n/* GL_LIGHT3 */\n/* GL_LIGHT4 */\n/* GL_LIGHT5 */\n/* GL_LIGHT6 */\n/* GL_LIGHT7 */\n/* GL_TEXTURE_GEN_S */\n/* GL_TEXTURE_GEN_T */\n/* GL_TEXTURE_GEN_R */\n/* GL_TEXTURE_GEN_Q */\n/* GL_MAP1_VERTEX_3 */\n/* GL_MAP1_VERTEX_4 */\n/* GL_MAP1_COLOR_4 */\n/* GL_MAP1_INDEX */\n/* GL_MAP1_NORMAL */\n/* GL_MAP1_TEXTURE_COORD_1 */\n/* GL_MAP1_TEXTURE_COORD_2 */\n/* GL_MAP1_TEXTURE_COORD_3 */\n/* GL_MAP1_TEXTURE_COORD_4 */\n/* GL_MAP2_VERTEX_3 */\n/* GL_MAP2_VERTEX_4 */\n/* GL_MAP2_COLOR_4 */\n/* GL_MAP2_INDEX */\n/* GL_MAP2_NORMAL */\n/* GL_MAP2_TEXTURE_COORD_1 */\n/* GL_MAP2_TEXTURE_COORD_2 */\n/* GL_MAP2_TEXTURE_COORD_3 */\n/* GL_MAP2_TEXTURE_COORD_4 */\n/* GL_POINT_SMOOTH */\n/* GL_LINE_SMOOTH */\n/* GL_POLYGON_SMOOTH */\n/* GL_SCISSOR_TEST */\n/* GL_COLOR_MATERIAL */\n/* GL_NORMALIZE */\n/* GL_AUTO_NORMAL */\n/* GL_POLYGON_OFFSET_POINT */\n/* GL_POLYGON_OFFSET_LINE */\n/* GL_POLYGON_OFFSET_FILL */\n/* GL_VERTEX_ARRAY */\n/* GL_NORMAL_ARRAY */\n/* GL_COLOR_ARRAY */\n/* GL_INDEX_ARRAY */\n/* GL_TEXTURE_COORD_ARRAY */\n/* GL_EDGE_FLAG_ARRAY */\n\n/* ErrorCode */\n#define GL_NO_ERROR 0\n#define GL_INVALID_ENUM 0x0500\n#define GL_INVALID_VALUE 0x0501\n#define GL_INVALID_OPERATION 0x0502\n#define GL_STACK_OVERFLOW 0x0503\n#define GL_STACK_UNDERFLOW 0x0504\n#define GL_OUT_OF_MEMORY 0x0505\n#define GL_TABLE_TOO_LARGE 0x8031\n\n/* FeedbackType */\n#define GL_2D 0x0600\n#define GL_3D 0x0601\n#define GL_3D_COLOR 0x0602\n#define GL_3D_COLOR_TEXTURE 0x0603\n#define GL_4D_COLOR_TEXTURE 0x0604\n\n/* FeedBackToken */\n#define GL_PASS_THROUGH_TOKEN 0x0700\n#define GL_POINT_TOKEN 0x0701\n#define GL_LINE_TOKEN 0x0702\n#define GL_POLYGON_TOKEN 0x0703\n#define GL_BITMAP_TOKEN 0x0704\n#define GL_DRAW_PIXEL_TOKEN 0x0705\n#define GL_COPY_PIXEL_TOKEN 0x0706\n#define GL_LINE_RESET_TOKEN 0x0707\n\n/* FogMode */\n/* GL_LINEAR */\n#define GL_EXP 0x0800\n#define GL_EXP2 0x0801\n\n/* FogParameter */\n/* GL_FOG_COLOR */\n/* GL_FOG_DENSITY */\n/* GL_FOG_END */\n/* GL_FOG_INDEX */\n/* GL_FOG_MODE */\n/* GL_FOG_START */\n\n/* FrontFaceDirection */\n#define GL_CW 0x0900\n#define GL_CCW 0x0901\n\n/* GetMapQuery */\n#define GL_COEFF 0x0A00\n#define GL_ORDER 0x0A01\n#define GL_DOMAIN 0x0A02\n\n/* GetPixelMap */\n#define GL_PIXEL_MAP_I_TO_I 0x0C70\n#define GL_PIXEL_MAP_S_TO_S 0x0C71\n#define GL_PIXEL_MAP_I_TO_R 0x0C72\n#define GL_PIXEL_MAP_I_TO_G 0x0C73\n#define GL_PIXEL_MAP_I_TO_B 0x0C74\n#define GL_PIXEL_MAP_I_TO_A 0x0C75\n#define GL_PIXEL_MAP_R_TO_R 0x0C76\n#define GL_PIXEL_MAP_G_TO_G 0x0C77\n#define GL_PIXEL_MAP_B_TO_B 0x0C78\n#define GL_PIXEL_MAP_A_TO_A 0x0C79\n\n/* GetPointervPName */\n#define GL_VERTEX_ARRAY_POINTER 0x808E\n#define GL_NORMAL_ARRAY_POINTER 0x808F\n#define GL_COLOR_ARRAY_POINTER 0x8090\n#define GL_INDEX_ARRAY_POINTER 0x8091\n#define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092\n#define GL_EDGE_FLAG_ARRAY_POINTER 0x8093\n\n/* GetPName */\n#define GL_CURRENT_COLOR 0x0B00\n#define GL_CURRENT_INDEX 0x0B01\n#define GL_CURRENT_NORMAL 0x0B02\n#define GL_CURRENT_TEXTURE_COORDS 0x0B03\n#define GL_CURRENT_RASTER_COLOR 0x0B04\n#define GL_CURRENT_RASTER_INDEX 0x0B05\n#define GL_CURRENT_RASTER_TEXTURE_COORDS 0x0B06\n#define GL_CURRENT_RASTER_POSITION 0x0B07\n#define GL_CURRENT_RASTER_POSITION_VALID 0x0B08\n#define GL_CURRENT_RASTER_DISTANCE 0x0B09\n#define GL_POINT_SMOOTH 0x0B10\n#define GL_POINT_SIZE 0x0B11\n#define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12\n#define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13\n#define GL_POINT_SIZE_RANGE GL_SMOOTH_POINT_SIZE_RANGE\n#define GL_POINT_SIZE_GRANULARITY GL_SMOOTH_POINT_SIZE_GRANULARITY\n#define GL_LINE_SMOOTH 0x0B20\n#define GL_LINE_WIDTH 0x0B21\n#define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22\n#define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23\n#define GL_LINE_WIDTH_RANGE GL_SMOOTH_LINE_WIDTH_RANGE\n#define GL_LINE_WIDTH_GRANULARITY GL_SMOOTH_LINE_WIDTH_GRANULARITY\n#define GL_LINE_STIPPLE 0x0B24\n#define GL_LINE_STIPPLE_PATTERN 0x0B25\n#define GL_LINE_STIPPLE_REPEAT 0x0B26\n#define GL_LIST_MODE 0x0B30\n#define GL_MAX_LIST_NESTING 0x0B31\n#define GL_LIST_BASE 0x0B32\n#define GL_LIST_INDEX 0x0B33\n#define GL_POLYGON_MODE 0x0B40\n#define GL_POLYGON_SMOOTH 0x0B41\n#define GL_POLYGON_STIPPLE 0x0B42\n#define GL_EDGE_FLAG 0x0B43\n#define GL_CULL_FACE 0x0B44\n#define GL_CULL_FACE_MODE 0x0B45\n#define GL_FRONT_FACE 0x0B46\n#define GL_LIGHTING 0x0B50\n#define GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51\n#define GL_LIGHT_MODEL_TWO_SIDE 0x0B52\n#define GL_LIGHT_MODEL_AMBIENT 0x0B53\n#define GL_SHADE_MODEL 0x0B54\n#define GL_COLOR_MATERIAL_FACE 0x0B55\n#define GL_COLOR_MATERIAL_PARAMETER 0x0B56\n#define GL_COLOR_MATERIAL 0x0B57\n#define GL_FOG 0x0B60\n#define GL_FOG_INDEX 0x0B61\n#define GL_FOG_DENSITY 0x0B62\n#define GL_FOG_START 0x0B63\n#define GL_FOG_END 0x0B64\n#define GL_FOG_MODE 0x0B65\n#define GL_FOG_COLOR 0x0B66\n#define GL_DEPTH_RANGE 0x0B70\n#define GL_DEPTH_TEST 0x0B71\n#define GL_DEPTH_WRITEMASK 0x0B72\n#define GL_DEPTH_CLEAR_VALUE 0x0B73\n#define GL_DEPTH_FUNC 0x0B74\n#define GL_ACCUM_CLEAR_VALUE 0x0B80\n#define GL_STENCIL_TEST 0x0B90\n#define GL_STENCIL_CLEAR_VALUE 0x0B91\n#define GL_STENCIL_FUNC 0x0B92\n#define GL_STENCIL_VALUE_MASK 0x0B93\n#define GL_STENCIL_FAIL 0x0B94\n#define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95\n#define GL_STENCIL_PASS_DEPTH_PASS 0x0B96\n#define GL_STENCIL_REF 0x0B97\n#define GL_STENCIL_WRITEMASK 0x0B98\n#define GL_MATRIX_MODE 0x0BA0\n#define GL_NORMALIZE 0x0BA1\n#define GL_VIEWPORT 0x0BA2\n#define GL_MODELVIEW_STACK_DEPTH 0x0BA3\n#define GL_PROJECTION_STACK_DEPTH 0x0BA4\n#define GL_TEXTURE_STACK_DEPTH 0x0BA5\n#define GL_MODELVIEW_MATRIX 0x0BA6\n#define GL_PROJECTION_MATRIX 0x0BA7\n#define GL_TEXTURE_MATRIX 0x0BA8\n#define GL_ATTRIB_STACK_DEPTH 0x0BB0\n#define GL_CLIENT_ATTRIB_STACK_DEPTH 0x0BB1\n#define GL_ALPHA_TEST 0x0BC0\n#define GL_ALPHA_TEST_FUNC 0x0BC1\n#define GL_ALPHA_TEST_REF 0x0BC2\n#define GL_DITHER 0x0BD0\n#define GL_BLEND_DST 0x0BE0\n#define GL_BLEND_SRC 0x0BE1\n#define GL_BLEND 0x0BE2\n#define GL_LOGIC_OP_MODE 0x0BF0\n#define GL_INDEX_LOGIC_OP 0x0BF1\n#define GL_LOGIC_OP GL_INDEX_LOGIC_OP\n#define GL_COLOR_LOGIC_OP 0x0BF2\n#define GL_AUX_BUFFERS 0x0C00\n#define GL_DRAW_BUFFER 0x0C01\n#define GL_READ_BUFFER 0x0C02\n#define GL_SCISSOR_BOX 0x0C10\n#define GL_SCISSOR_TEST 0x0C11\n#define GL_INDEX_CLEAR_VALUE 0x0C20\n#define GL_INDEX_WRITEMASK 0x0C21\n#define GL_COLOR_CLEAR_VALUE 0x0C22\n#define GL_COLOR_WRITEMASK 0x0C23\n#define GL_INDEX_MODE 0x0C30\n#define GL_RGBA_MODE 0x0C31\n#define GL_DOUBLEBUFFER 0x0C32\n#define GL_STEREO 0x0C33\n#define GL_RENDER_MODE 0x0C40\n#define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50\n#define GL_POINT_SMOOTH_HINT 0x0C51\n#define GL_LINE_SMOOTH_HINT 0x0C52\n#define GL_POLYGON_SMOOTH_HINT 0x0C53\n#define GL_FOG_HINT 0x0C54\n#define GL_TEXTURE_GEN_S 0x0C60\n#define GL_TEXTURE_GEN_T 0x0C61\n#define GL_TEXTURE_GEN_R 0x0C62\n#define GL_TEXTURE_GEN_Q 0x0C63\n#define GL_PIXEL_MAP_I_TO_I_SIZE 0x0CB0\n#define GL_PIXEL_MAP_S_TO_S_SIZE 0x0CB1\n#define GL_PIXEL_MAP_I_TO_R_SIZE 0x0CB2\n#define GL_PIXEL_MAP_I_TO_G_SIZE 0x0CB3\n#define GL_PIXEL_MAP_I_TO_B_SIZE 0x0CB4\n#define GL_PIXEL_MAP_I_TO_A_SIZE 0x0CB5\n#define GL_PIXEL_MAP_R_TO_R_SIZE 0x0CB6\n#define GL_PIXEL_MAP_G_TO_G_SIZE 0x0CB7\n#define GL_PIXEL_MAP_B_TO_B_SIZE 0x0CB8\n#define GL_PIXEL_MAP_A_TO_A_SIZE 0x0CB9\n#define GL_UNPACK_SWAP_BYTES 0x0CF0\n#define GL_UNPACK_LSB_FIRST 0x0CF1\n#define GL_UNPACK_ROW_LENGTH 0x0CF2\n#define GL_UNPACK_SKIP_ROWS 0x0CF3\n#define GL_UNPACK_SKIP_PIXELS 0x0CF4\n#define GL_UNPACK_ALIGNMENT 0x0CF5\n#define GL_PACK_SWAP_BYTES 0x0D00\n#define GL_PACK_LSB_FIRST 0x0D01\n#define GL_PACK_ROW_LENGTH 0x0D02\n#define GL_PACK_SKIP_ROWS 0x0D03\n#define GL_PACK_SKIP_PIXELS 0x0D04\n#define GL_PACK_ALIGNMENT 0x0D05\n#define GL_MAP_COLOR 0x0D10\n#define GL_MAP_STENCIL 0x0D11\n#define GL_INDEX_SHIFT 0x0D12\n#define GL_INDEX_OFFSET 0x0D13\n#define GL_RED_SCALE 0x0D14\n#define GL_RED_BIAS 0x0D15\n#define GL_ZOOM_X 0x0D16\n#define GL_ZOOM_Y 0x0D17\n#define GL_GREEN_SCALE 0x0D18\n#define GL_GREEN_BIAS 0x0D19\n#define GL_BLUE_SCALE 0x0D1A\n#define GL_BLUE_BIAS 0x0D1B\n#define GL_ALPHA_SCALE 0x0D1C\n#define GL_ALPHA_BIAS 0x0D1D\n#define GL_DEPTH_SCALE 0x0D1E\n#define GL_DEPTH_BIAS 0x0D1F\n#define GL_MAX_EVAL_ORDER 0x0D30\n#define GL_MAX_LIGHTS 0x0D31\n#define GL_MAX_CLIP_PLANES 0x0D32\n#define GL_MAX_TEXTURE_SIZE 0x0D33\n#define GL_MAX_PIXEL_MAP_TABLE 0x0D34\n#define GL_MAX_ATTRIB_STACK_DEPTH 0x0D35\n#define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36\n#define GL_MAX_NAME_STACK_DEPTH 0x0D37\n#define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38\n#define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39\n#define GL_MAX_VIEWPORT_DIMS 0x0D3A\n#define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 0x0D3B\n#define GL_SUBPIXEL_BITS 0x0D50\n#define GL_INDEX_BITS 0x0D51\n#define GL_RED_BITS 0x0D52\n#define GL_GREEN_BITS 0x0D53\n#define GL_BLUE_BITS 0x0D54\n#define GL_ALPHA_BITS 0x0D55\n#define GL_DEPTH_BITS 0x0D56\n#define GL_STENCIL_BITS 0x0D57\n#define GL_ACCUM_RED_BITS 0x0D58\n#define GL_ACCUM_GREEN_BITS 0x0D59\n#define GL_ACCUM_BLUE_BITS 0x0D5A\n#define GL_ACCUM_ALPHA_BITS 0x0D5B\n#define GL_NAME_STACK_DEPTH 0x0D70\n#define GL_AUTO_NORMAL 0x0D80\n#define GL_MAP1_COLOR_4 0x0D90\n#define GL_MAP1_INDEX 0x0D91\n#define GL_MAP1_NORMAL 0x0D92\n#define GL_MAP1_TEXTURE_COORD_1 0x0D93\n#define GL_MAP1_TEXTURE_COORD_2 0x0D94\n#define GL_MAP1_TEXTURE_COORD_3 0x0D95\n#define GL_MAP1_TEXTURE_COORD_4 0x0D96\n#define GL_MAP1_VERTEX_3 0x0D97\n#define GL_MAP1_VERTEX_4 0x0D98\n#define GL_MAP2_COLOR_4 0x0DB0\n#define GL_MAP2_INDEX 0x0DB1\n#define GL_MAP2_NORMAL 0x0DB2\n#define GL_MAP2_TEXTURE_COORD_1 0x0DB3\n#define GL_MAP2_TEXTURE_COORD_2 0x0DB4\n#define GL_MAP2_TEXTURE_COORD_3 0x0DB5\n#define GL_MAP2_TEXTURE_COORD_4 0x0DB6\n#define GL_MAP2_VERTEX_3 0x0DB7\n#define GL_MAP2_VERTEX_4 0x0DB8\n#define GL_MAP1_GRID_DOMAIN 0x0DD0\n#define GL_MAP1_GRID_SEGMENTS 0x0DD1\n#define GL_MAP2_GRID_DOMAIN 0x0DD2\n#define GL_MAP2_GRID_SEGMENTS 0x0DD3\n#define GL_TEXTURE_1D 0x0DE0\n#define GL_TEXTURE_2D 0x0DE1\n#define GL_FEEDBACK_BUFFER_POINTER 0x0DF0\n#define GL_FEEDBACK_BUFFER_SIZE 0x0DF1\n#define GL_FEEDBACK_BUFFER_TYPE 0x0DF2\n#define GL_SELECTION_BUFFER_POINTER 0x0DF3\n#define GL_SELECTION_BUFFER_SIZE 0x0DF4\n#define GL_POLYGON_OFFSET_UNITS 0x2A00\n#define GL_POLYGON_OFFSET_POINT 0x2A01\n#define GL_POLYGON_OFFSET_LINE 0x2A02\n#define GL_POLYGON_OFFSET_FILL 0x8037\n#define GL_POLYGON_OFFSET_FACTOR 0x8038\n#define GL_TEXTURE_BINDING_1D 0x8068\n#define GL_TEXTURE_BINDING_2D 0x8069\n#define GL_TEXTURE_BINDING_3D 0x806A\n#define GL_VERTEX_ARRAY 0x8074\n#define GL_NORMAL_ARRAY 0x8075\n#define GL_COLOR_ARRAY 0x8076\n#define GL_INDEX_ARRAY 0x8077\n#define GL_TEXTURE_COORD_ARRAY 0x8078\n#define GL_EDGE_FLAG_ARRAY 0x8079\n#define GL_VERTEX_ARRAY_SIZE 0x807A\n#define GL_VERTEX_ARRAY_TYPE 0x807B\n#define GL_VERTEX_ARRAY_STRIDE 0x807C\n#define GL_NORMAL_ARRAY_TYPE 0x807E\n#define GL_NORMAL_ARRAY_STRIDE 0x807F\n#define GL_COLOR_ARRAY_SIZE 0x8081\n#define GL_COLOR_ARRAY_TYPE 0x8082\n#define GL_COLOR_ARRAY_STRIDE 0x8083\n#define GL_INDEX_ARRAY_TYPE 0x8085\n#define GL_INDEX_ARRAY_STRIDE 0x8086\n#define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088\n#define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089\n#define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A\n#define GL_EDGE_FLAG_ARRAY_STRIDE 0x808C\n/* GL_VERTEX_ARRAY_COUNT_EXT */\n/* GL_NORMAL_ARRAY_COUNT_EXT */\n/* GL_COLOR_ARRAY_COUNT_EXT */\n/* GL_INDEX_ARRAY_COUNT_EXT */\n/* GL_TEXTURE_COORD_ARRAY_COUNT_EXT */\n/* GL_EDGE_FLAG_ARRAY_COUNT_EXT */\n\n/* GetTextureParameter */\n/* GL_TEXTURE_MAG_FILTER */\n/* GL_TEXTURE_MIN_FILTER */\n/* GL_TEXTURE_WRAP_S */\n/* GL_TEXTURE_WRAP_T */\n#define GL_TEXTURE_WIDTH 0x1000\n#define GL_TEXTURE_HEIGHT 0x1001\n#define GL_TEXTURE_INTERNAL_FORMAT 0x1003\n#define GL_TEXTURE_COMPONENTS GL_TEXTURE_INTERNAL_FORMAT\n#define GL_TEXTURE_BORDER_COLOR 0x1004\n#define GL_TEXTURE_BORDER 0x1005\n#define GL_TEXTURE_RED_SIZE 0x805C\n#define GL_TEXTURE_GREEN_SIZE 0x805D\n#define GL_TEXTURE_BLUE_SIZE 0x805E\n#define GL_TEXTURE_ALPHA_SIZE 0x805F\n#define GL_TEXTURE_LUMINANCE_SIZE 0x8060\n#define GL_TEXTURE_INTENSITY_SIZE 0x8061\n#define GL_TEXTURE_PRIORITY 0x8066\n#define GL_TEXTURE_RESIDENT 0x8067\n\n/* HintMode */\n#define GL_DONT_CARE 0x1100\n#define GL_FASTEST 0x1101\n#define GL_NICEST 0x1102\n\n/* HintTarget */\n/* GL_PERSPECTIVE_CORRECTION_HINT */\n/* GL_POINT_SMOOTH_HINT */\n/* GL_LINE_SMOOTH_HINT */\n/* GL_POLYGON_SMOOTH_HINT */\n/* GL_FOG_HINT */\n\n/* IndexMaterialParameterSGI */\n/* GL_INDEX_OFFSET */\n\n/* IndexPointerType */\n/* GL_SHORT */\n/* GL_INT */\n/* GL_FLOAT */\n/* GL_DOUBLE */\n\n/* IndexFunctionSGI */\n/* GL_NEVER */\n/* GL_LESS */\n/* GL_EQUAL */\n/* GL_LEQUAL */\n/* GL_GREATER */\n/* GL_NOTEQUAL */\n/* GL_GEQUAL */\n/* GL_ALWAYS */\n\n/* LightModelParameter */\n/* GL_LIGHT_MODEL_AMBIENT */\n/* GL_LIGHT_MODEL_LOCAL_VIEWER */\n/* GL_LIGHT_MODEL_TWO_SIDE */\n\n/* LightParameter */\n#define GL_AMBIENT 0x1200\n#define GL_DIFFUSE 0x1201\n#define GL_SPECULAR 0x1202\n#define GL_POSITION 0x1203\n#define GL_SPOT_DIRECTION 0x1204\n#define GL_SPOT_EXPONENT 0x1205\n#define GL_SPOT_CUTOFF 0x1206\n#define GL_CONSTANT_ATTENUATION 0x1207\n#define GL_LINEAR_ATTENUATION 0x1208\n#define GL_QUADRATIC_ATTENUATION 0x1209\n\n/* ListMode */\n#define GL_COMPILE 0x1300\n#define GL_COMPILE_AND_EXECUTE 0x1301\n\n/* DataType */\n#define GL_BYTE 0x1400\n#define GL_UNSIGNED_BYTE 0x1401\n#define GL_SHORT 0x1402\n#define GL_UNSIGNED_SHORT 0x1403\n#define GL_INT 0x1404\n#define GL_UNSIGNED_INT 0x1405\n#define GL_FLOAT 0x1406\n#define GL_2_BYTES 0x1407\n#define GL_3_BYTES 0x1408\n#define GL_4_BYTES 0x1409\n#define GL_DOUBLE 0x140A\n#define GL_DOUBLE_EXT 0x140A\n\n/* ListNameType */\n/* GL_BYTE */\n/* GL_UNSIGNED_BYTE */\n/* GL_SHORT */\n/* GL_UNSIGNED_SHORT */\n/* GL_INT */\n/* GL_UNSIGNED_INT */\n/* GL_FLOAT */\n/* GL_2_BYTES */\n/* GL_3_BYTES */\n/* GL_4_BYTES */\n\n/* LogicOp */\n#define GL_CLEAR 0x1500\n#define GL_AND 0x1501\n#define GL_AND_REVERSE 0x1502\n#define GL_COPY 0x1503\n#define GL_AND_INVERTED 0x1504\n#define GL_NOOP 0x1505\n#define GL_XOR 0x1506\n#define GL_OR 0x1507\n#define GL_NOR 0x1508\n#define GL_EQUIV 0x1509\n#define GL_INVERT 0x150A\n#define GL_OR_REVERSE 0x150B\n#define GL_COPY_INVERTED 0x150C\n#define GL_OR_INVERTED 0x150D\n#define GL_NAND 0x150E\n#define GL_SET 0x150F\n\n/* MapTarget */\n/* GL_MAP1_COLOR_4 */\n/* GL_MAP1_INDEX */\n/* GL_MAP1_NORMAL */\n/* GL_MAP1_TEXTURE_COORD_1 */\n/* GL_MAP1_TEXTURE_COORD_2 */\n/* GL_MAP1_TEXTURE_COORD_3 */\n/* GL_MAP1_TEXTURE_COORD_4 */\n/* GL_MAP1_VERTEX_3 */\n/* GL_MAP1_VERTEX_4 */\n/* GL_MAP2_COLOR_4 */\n/* GL_MAP2_INDEX */\n/* GL_MAP2_NORMAL */\n/* GL_MAP2_TEXTURE_COORD_1 */\n/* GL_MAP2_TEXTURE_COORD_2 */\n/* GL_MAP2_TEXTURE_COORD_3 */\n/* GL_MAP2_TEXTURE_COORD_4 */\n/* GL_MAP2_VERTEX_3 */\n/* GL_MAP2_VERTEX_4 */\n\n/* MaterialFace */\n/* GL_FRONT */\n/* GL_BACK */\n/* GL_FRONT_AND_BACK */\n\n/* MaterialParameter */\n#define GL_EMISSION 0x1600\n#define GL_SHININESS 0x1601\n#define GL_AMBIENT_AND_DIFFUSE 0x1602\n#define GL_COLOR_INDEXES 0x1603\n/* GL_AMBIENT */\n/* GL_DIFFUSE */\n/* GL_SPECULAR */\n\n/* MatrixMode */\n#define GL_MODELVIEW 0x1700\n#define GL_PROJECTION 0x1701\n#define GL_TEXTURE 0x1702\n\n/* MeshMode1 */\n/* GL_POINT */\n/* GL_LINE */\n\n/* MeshMode2 */\n/* GL_POINT */\n/* GL_LINE */\n/* GL_FILL */\n\n/* NormalPointerType */\n/* GL_BYTE */\n/* GL_SHORT */\n/* GL_INT */\n/* GL_FLOAT */\n/* GL_DOUBLE */\n\n/* PixelCopyType */\n#define GL_COLOR 0x1800\n#define GL_DEPTH 0x1801\n#define GL_STENCIL 0x1802\n\n/* PixelFormat */\n#define GL_COLOR_INDEX 0x1900\n#define GL_STENCIL_INDEX 0x1901\n#define GL_DEPTH_COMPONENT 0x1902\n#define GL_RED 0x1903\n#define GL_GREEN 0x1904\n#define GL_BLUE 0x1905\n#define GL_ALPHA 0x1906\n#define GL_RGB 0x1907\n#define GL_RGBA 0x1908\n#define GL_LUMINANCE 0x1909\n#define GL_LUMINANCE_ALPHA 0x190A\n/* GL_ABGR_EXT */\n\n/* PixelMap */\n/* GL_PIXEL_MAP_I_TO_I */\n/* GL_PIXEL_MAP_S_TO_S */\n/* GL_PIXEL_MAP_I_TO_R */\n/* GL_PIXEL_MAP_I_TO_G */\n/* GL_PIXEL_MAP_I_TO_B */\n/* GL_PIXEL_MAP_I_TO_A */\n/* GL_PIXEL_MAP_R_TO_R */\n/* GL_PIXEL_MAP_G_TO_G */\n/* GL_PIXEL_MAP_B_TO_B */\n/* GL_PIXEL_MAP_A_TO_A */\n\n/* PixelStoreParameter */\n/* GL_UNPACK_SWAP_BYTES */\n/* GL_UNPACK_LSB_FIRST */\n/* GL_UNPACK_ROW_LENGTH */\n/* GL_UNPACK_SKIP_ROWS */\n/* GL_UNPACK_SKIP_PIXELS */\n/* GL_UNPACK_ALIGNMENT */\n/* GL_PACK_SWAP_BYTES */\n/* GL_PACK_LSB_FIRST */\n/* GL_PACK_ROW_LENGTH */\n/* GL_PACK_SKIP_ROWS */\n/* GL_PACK_SKIP_PIXELS */\n/* GL_PACK_ALIGNMENT */\n\n/* PixelTransferParameter */\n/* GL_MAP_COLOR */\n/* GL_MAP_STENCIL */\n/* GL_INDEX_SHIFT */\n/* GL_INDEX_OFFSET */\n/* GL_RED_SCALE */\n/* GL_RED_BIAS */\n/* GL_GREEN_SCALE */\n/* GL_GREEN_BIAS */\n/* GL_BLUE_SCALE */\n/* GL_BLUE_BIAS */\n/* GL_ALPHA_SCALE */\n/* GL_ALPHA_BIAS */\n/* GL_DEPTH_SCALE */\n/* GL_DEPTH_BIAS */\n\n/* PixelType */\n#define GL_BITMAP 0x1A00\n/* GL_BYTE */\n/* GL_UNSIGNED_BYTE */\n/* GL_SHORT */\n/* GL_UNSIGNED_SHORT */\n/* GL_INT */\n/* GL_UNSIGNED_INT */\n/* GL_FLOAT */\n/* GL_UNSIGNED_BYTE_3_3_2_EXT */\n/* GL_UNSIGNED_SHORT_4_4_4_4_EXT */\n/* GL_UNSIGNED_SHORT_5_5_5_1_EXT */\n/* GL_UNSIGNED_INT_8_8_8_8_EXT */\n/* GL_UNSIGNED_INT_10_10_10_2_EXT */\n\n/* PolygonMode */\n#define GL_POINT 0x1B00\n#define GL_LINE 0x1B01\n#define GL_FILL 0x1B02\n\n/* ReadBufferMode */\n/* GL_FRONT_LEFT */\n/* GL_FRONT_RIGHT */\n/* GL_BACK_LEFT */\n/* GL_BACK_RIGHT */\n/* GL_FRONT */\n/* GL_BACK */\n/* GL_LEFT */\n/* GL_RIGHT */\n/* GL_AUX0 */\n/* GL_AUX1 */\n/* GL_AUX2 */\n/* GL_AUX3 */\n\n/* RenderingMode */\n#define GL_RENDER 0x1C00\n#define GL_FEEDBACK 0x1C01\n#define GL_SELECT 0x1C02\n\n/* ShadingModel */\n#define GL_FLAT 0x1D00\n#define GL_SMOOTH 0x1D01\n\n/* StencilFunction */\n/* GL_NEVER */\n/* GL_LESS */\n/* GL_EQUAL */\n/* GL_LEQUAL */\n/* GL_GREATER */\n/* GL_NOTEQUAL */\n/* GL_GEQUAL */\n/* GL_ALWAYS */\n\n/* StencilOp */\n/* GL_ZERO */\n#define GL_KEEP 0x1E00\n#define GL_REPLACE 0x1E01\n#define GL_INCR 0x1E02\n#define GL_DECR 0x1E03\n/* GL_INVERT */\n\n/* StringName */\n#define GL_VENDOR 0x1F00\n#define GL_RENDERER 0x1F01\n#define GL_VERSION 0x1F02\n#define GL_EXTENSIONS 0x1F03\n\n/* TexCoordPointerType */\n/* GL_SHORT */\n/* GL_INT */\n/* GL_FLOAT */\n/* GL_DOUBLE */\n\n/* TextureCoordName */\n#define GL_S 0x2000\n#define GL_T 0x2001\n#define GL_R 0x2002\n#define GL_Q 0x2003\n\n/* TextureEnvMode */\n#define GL_MODULATE 0x2100\n#define GL_DECAL 0x2101\n/* GL_BLEND */\n/* GL_REPLACE */\n/* GL_ADD */\n\n/* TextureEnvParameter */\n#define GL_TEXTURE_ENV_MODE 0x2200\n#define GL_TEXTURE_ENV_COLOR 0x2201\n\n/* TextureEnvTarget */\n#define GL_TEXTURE_ENV 0x2300\n\n/* TextureGenMode */\n#define GL_EYE_LINEAR 0x2400\n#define GL_OBJECT_LINEAR 0x2401\n#define GL_SPHERE_MAP 0x2402\n\n/* TextureGenParameter */\n#define GL_TEXTURE_GEN_MODE 0x2500\n#define GL_OBJECT_PLANE 0x2501\n#define GL_EYE_PLANE 0x2502\n\n/* TextureMagFilter */\n#define GL_NEAREST 0x2600\n#define GL_LINEAR 0x2601\n\n/* TextureMinFilter */\n/* GL_NEAREST */\n/* GL_LINEAR */\n#define GL_NEAREST_MIPMAP_NEAREST 0x2700\n#define GL_LINEAR_MIPMAP_NEAREST 0x2701\n#define GL_NEAREST_MIPMAP_LINEAR 0x2702\n#define GL_LINEAR_MIPMAP_LINEAR 0x2703\n\n/* TextureParameterName */\n#define GL_TEXTURE_MAG_FILTER 0x2800\n#define GL_TEXTURE_MIN_FILTER 0x2801\n#define GL_TEXTURE_WRAP_S 0x2802\n#define GL_TEXTURE_WRAP_T 0x2803\n/* GL_TEXTURE_BORDER_COLOR */\n/* GL_TEXTURE_PRIORITY */\n\n/* TextureTarget */\n/* GL_TEXTURE_1D */\n/* GL_TEXTURE_2D */\n#define GL_PROXY_TEXTURE_1D 0x8063\n#define GL_PROXY_TEXTURE_2D 0x8064\n\n/* TextureWrapMode */\n#define GL_CLAMP 0x2900\n#define GL_REPEAT 0x2901\n\n/* PixelInternalFormat */\n#define GL_R3_G3_B2 0x2A10\n#define GL_ALPHA4 0x803B\n#define GL_ALPHA8 0x803C\n#define GL_ALPHA12 0x803D\n#define GL_ALPHA16 0x803E\n#define GL_LUMINANCE4 0x803F\n#define GL_LUMINANCE8 0x8040\n#define GL_LUMINANCE12 0x8041\n#define GL_LUMINANCE16 0x8042\n#define GL_LUMINANCE4_ALPHA4 0x8043\n#define GL_LUMINANCE6_ALPHA2 0x8044\n#define GL_LUMINANCE8_ALPHA8 0x8045\n#define GL_LUMINANCE12_ALPHA4 0x8046\n#define GL_LUMINANCE12_ALPHA12 0x8047\n#define GL_LUMINANCE16_ALPHA16 0x8048\n#define GL_INTENSITY 0x8049\n#define GL_INTENSITY4 0x804A\n#define GL_INTENSITY8 0x804B\n#define GL_INTENSITY12 0x804C\n#define GL_INTENSITY16 0x804D\n#define GL_RGB4 0x804F\n#define GL_RGB5 0x8050\n#define GL_RGB8 0x8051\n#define GL_RGB10 0x8052\n#define GL_RGB12 0x8053\n#define GL_RGB16 0x8054\n#define GL_RGBA2 0x8055\n#define GL_RGBA4 0x8056\n#define GL_RGB5_A1 0x8057\n#define GL_RGBA8 0x8058\n#define GL_RGB10_A2 0x8059\n#define GL_RGBA12 0x805A\n#define GL_RGBA16 0x805B\n\n/* InterleavedArrayFormat */\n#define GL_V2F 0x2A20\n#define GL_V3F 0x2A21\n#define GL_C4UB_V2F 0x2A22\n#define GL_C4UB_V3F 0x2A23\n#define GL_C3F_V3F 0x2A24\n#define GL_N3F_V3F 0x2A25\n#define GL_C4F_N3F_V3F 0x2A26\n#define GL_T2F_V3F 0x2A27\n#define GL_T4F_V4F 0x2A28\n#define GL_T2F_C4UB_V3F 0x2A29\n#define GL_T2F_C3F_V3F 0x2A2A\n#define GL_T2F_N3F_V3F 0x2A2B\n#define GL_T2F_C4F_N3F_V3F 0x2A2C\n#define GL_T4F_C4F_N3F_V4F 0x2A2D\n\n/* VertexPointerType */\n/* GL_SHORT */\n/* GL_INT */\n/* GL_FLOAT */\n/* GL_DOUBLE */\n\n/* ClipPlaneName */\n#define GL_CLIP_PLANE0 0x3000\n#define GL_CLIP_PLANE1 0x3001\n#define GL_CLIP_PLANE2 0x3002\n#define GL_CLIP_PLANE3 0x3003\n#define GL_CLIP_PLANE4 0x3004\n#define GL_CLIP_PLANE5 0x3005\n\n/* LightName */\n#define GL_LIGHT0 0x4000\n#define GL_LIGHT1 0x4001\n#define GL_LIGHT2 0x4002\n#define GL_LIGHT3 0x4003\n#define GL_LIGHT4 0x4004\n#define GL_LIGHT5 0x4005\n#define GL_LIGHT6 0x4006\n#define GL_LIGHT7 0x4007\n\n/* EXT_abgr */\n#define GL_ABGR_EXT 0x8000\n\n/* EXT_blend_subtract */\n#define GL_FUNC_SUBTRACT_EXT 0x800A\n#define GL_FUNC_REVERSE_SUBTRACT_EXT 0x800B\n\n/* EXT_packed_pixels */\n#define GL_UNSIGNED_BYTE_3_3_2_EXT 0x8032\n#define GL_UNSIGNED_SHORT_4_4_4_4_EXT 0x8033\n#define GL_UNSIGNED_SHORT_5_5_5_1_EXT 0x8034\n#define GL_UNSIGNED_INT_8_8_8_8_EXT 0x8035\n#define GL_UNSIGNED_INT_10_10_10_2_EXT 0x8036\n\n/* OpenGL12 */\n#define GL_PACK_SKIP_IMAGES 0x806B\n#define GL_PACK_IMAGE_HEIGHT 0x806C\n#define GL_UNPACK_SKIP_IMAGES 0x806D\n#define GL_UNPACK_IMAGE_HEIGHT 0x806E\n#define GL_TEXTURE_3D 0x806F\n#define GL_PROXY_TEXTURE_3D 0x8070\n#define GL_TEXTURE_DEPTH 0x8071\n#define GL_TEXTURE_WRAP_R 0x8072\n#define GL_MAX_3D_TEXTURE_SIZE 0x8073\n#define GL_BGR 0x80E0\n#define GL_BGRA 0x80E1\n#define GL_UNSIGNED_BYTE_3_3_2 0x8032\n#define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362\n#define GL_UNSIGNED_SHORT_5_6_5 0x8363\n#define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364\n#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033\n#define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365\n#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034\n#define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366\n#define GL_UNSIGNED_INT_8_8_8_8 0x8035\n#define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367\n#define GL_UNSIGNED_INT_10_10_10_2 0x8036\n#define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368\n#define GL_RESCALE_NORMAL 0x803A\n#define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8\n#define GL_SINGLE_COLOR 0x81F9\n#define GL_SEPARATE_SPECULAR_COLOR 0x81FA\n#define GL_CLAMP_TO_EDGE 0x812F\n#define GL_TEXTURE_MIN_LOD 0x813A\n#define GL_TEXTURE_MAX_LOD 0x813B\n#define GL_TEXTURE_BASE_LEVEL 0x813C\n#define GL_TEXTURE_MAX_LEVEL 0x813D\n#define GL_MAX_ELEMENTS_VERTICES 0x80E8\n#define GL_MAX_ELEMENTS_INDICES 0x80E9\n#define GL_ALIASED_POINT_SIZE_RANGE 0x846D\n#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E\n\n/* OpenGL13 */\n#define GL_ACTIVE_TEXTURE 0x84E0\n#define GL_CLIENT_ACTIVE_TEXTURE 0x84E1\n#define GL_MAX_TEXTURE_UNITS 0x84E2\n#define GL_TEXTURE0 0x84C0\n#define GL_TEXTURE1 0x84C1\n#define GL_TEXTURE2 0x84C2\n#define GL_TEXTURE3 0x84C3\n#define GL_TEXTURE4 0x84C4\n#define GL_TEXTURE5 0x84C5\n#define GL_TEXTURE6 0x84C6\n#define GL_TEXTURE7 0x84C7\n#define GL_TEXTURE8 0x84C8\n#define GL_TEXTURE9 0x84C9\n#define GL_TEXTURE10 0x84CA\n#define GL_TEXTURE11 0x84CB\n#define GL_TEXTURE12 0x84CC\n#define GL_TEXTURE13 0x84CD\n#define GL_TEXTURE14 0x84CE\n#define GL_TEXTURE15 0x84CF\n#define GL_TEXTURE16 0x84D0\n#define GL_TEXTURE17 0x84D1\n#define GL_TEXTURE18 0x84D2\n#define GL_TEXTURE19 0x84D3\n#define GL_TEXTURE20 0x84D4\n#define GL_TEXTURE21 0x84D5\n#define GL_TEXTURE22 0x84D6\n#define GL_TEXTURE23 0x84D7\n#define GL_TEXTURE24 0x84D8\n#define GL_TEXTURE25 0x84D9\n#define GL_TEXTURE26 0x84DA\n#define GL_TEXTURE27 0x84DB\n#define GL_TEXTURE28 0x84DC\n#define GL_TEXTURE29 0x84DD\n#define GL_TEXTURE30 0x84DE\n#define GL_TEXTURE31 0x84DF\n#define GL_NORMAL_MAP 0x8511\n#define GL_REFLECTION_MAP 0x8512\n#define GL_TEXTURE_CUBE_MAP 0x8513\n#define GL_TEXTURE_BINDING_CUBE_MAP 0x8514\n#define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515\n#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516\n#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517\n#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518\n#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519\n#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A\n#define GL_PROXY_TEXTURE_CUBE_MAP 0x851B\n#define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C\n#define GL_COMBINE 0x8570\n#define GL_COMBINE_RGB 0x8571\n#define GL_COMBINE_ALPHA 0x8572\n#define GL_RGB_SCALE 0x8573\n#define GL_ADD_SIGNED 0x8574\n#define GL_INTERPOLATE 0x8575\n#define GL_CONSTANT 0x8576\n#define GL_PRIMARY_COLOR 0x8577\n#define GL_PREVIOUS 0x8578\n#define GL_SOURCE0_RGB 0x8580\n#define GL_SOURCE1_RGB 0x8581\n#define GL_SOURCE2_RGB 0x8582\n#define GL_SOURCE0_ALPHA 0x8588\n#define GL_SOURCE1_ALPHA 0x8589\n#define GL_SOURCE2_ALPHA 0x858A\n#define GL_OPERAND0_RGB 0x8590\n#define GL_OPERAND1_RGB 0x8591\n#define GL_OPERAND2_RGB 0x8592\n#define GL_OPERAND0_ALPHA 0x8598\n#define GL_OPERAND1_ALPHA 0x8599\n#define GL_OPERAND2_ALPHA 0x859A\n#define GL_SUBTRACT 0x84E7\n#define GL_TRANSPOSE_MODELVIEW_MATRIX 0x84E3\n#define GL_TRANSPOSE_PROJECTION_MATRIX 0x84E4\n#define GL_TRANSPOSE_TEXTURE_MATRIX 0x84E5\n#define GL_TRANSPOSE_COLOR_MATRIX 0x84E6\n#define GL_COMPRESSED_ALPHA 0x84E9\n#define GL_COMPRESSED_LUMINANCE 0x84EA\n#define GL_COMPRESSED_LUMINANCE_ALPHA 0x84EB\n#define GL_COMPRESSED_INTENSITY 0x84EC\n#define GL_COMPRESSED_RGB 0x84ED\n#define GL_COMPRESSED_RGBA 0x84EE\n#define GL_TEXTURE_COMPRESSION_HINT 0x84EF\n#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0\n#define GL_TEXTURE_COMPRESSED 0x86A1\n#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2\n#define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3\n#define GL_DOT3_RGB 0x86AE\n#define GL_DOT3_RGBA 0x86AF\n#define GL_CLAMP_TO_BORDER 0x812D\n#define GL_MULTISAMPLE 0x809D\n#define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E\n#define GL_SAMPLE_ALPHA_TO_ONE 0x809F\n#define GL_SAMPLE_COVERAGE 0x80A0\n#define GL_SAMPLE_BUFFERS 0x80A8\n#define GL_SAMPLES 0x80A9\n#define GL_SAMPLE_COVERAGE_VALUE 0x80AA\n#define GL_SAMPLE_COVERAGE_INVERT 0x80AB\n#define GL_MULTISAMPLE_BIT 0x20000000\n\n/* EXT_vertex_array */\n#define GL_VERTEX_ARRAY_EXT 0x8074\n#define GL_NORMAL_ARRAY_EXT 0x8075\n#define GL_COLOR_ARRAY_EXT 0x8076\n#define GL_INDEX_ARRAY_EXT 0x8077\n#define GL_TEXTURE_COORD_ARRAY_EXT 0x8078\n#define GL_EDGE_FLAG_ARRAY_EXT 0x8079\n#define GL_VERTEX_ARRAY_SIZE_EXT 0x807A\n#define GL_VERTEX_ARRAY_TYPE_EXT 0x807B\n#define GL_VERTEX_ARRAY_STRIDE_EXT 0x807C\n#define GL_VERTEX_ARRAY_COUNT_EXT 0x807D\n#define GL_NORMAL_ARRAY_TYPE_EXT 0x807E\n#define GL_NORMAL_ARRAY_STRIDE_EXT 0x807F\n#define GL_NORMAL_ARRAY_COUNT_EXT 0x8080\n#define GL_COLOR_ARRAY_SIZE_EXT 0x8081\n#define GL_COLOR_ARRAY_TYPE_EXT 0x8082\n#define GL_COLOR_ARRAY_STRIDE_EXT 0x8083\n#define GL_COLOR_ARRAY_COUNT_EXT 0x8084\n#define GL_INDEX_ARRAY_TYPE_EXT 0x8085\n#define GL_INDEX_ARRAY_STRIDE_EXT 0x8086\n#define GL_INDEX_ARRAY_COUNT_EXT 0x8087\n#define GL_TEXTURE_COORD_ARRAY_SIZE_EXT 0x8088\n#define GL_TEXTURE_COORD_ARRAY_TYPE_EXT 0x8089\n#define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A\n#define GL_TEXTURE_COORD_ARRAY_COUNT_EXT 0x808B\n#define GL_EDGE_FLAG_ARRAY_STRIDE_EXT 0x808C\n#define GL_EDGE_FLAG_ARRAY_COUNT_EXT 0x808D\n#define GL_VERTEX_ARRAY_POINTER_EXT 0x808E\n#define GL_NORMAL_ARRAY_POINTER_EXT 0x808F\n#define GL_COLOR_ARRAY_POINTER_EXT 0x8090\n#define GL_INDEX_ARRAY_POINTER_EXT 0x8091\n#define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092\n#define GL_EDGE_FLAG_ARRAY_POINTER_EXT 0x8093\n\n/* SGIS_texture_lod */\n#define GL_TEXTURE_MIN_LOD_SGIS 0x813A\n#define GL_TEXTURE_MAX_LOD_SGIS 0x813B\n#define GL_TEXTURE_BASE_LEVEL_SGIS 0x813C\n#define GL_TEXTURE_MAX_LEVEL_SGIS 0x813D\n\n/* EXT_shared_texture_palette */\n#define GL_SHARED_TEXTURE_PALETTE_EXT 0x81FB\n\n/* EXT_rescale_normal */\n#define GL_RESCALE_NORMAL_EXT 0x803A\n\n/* SGIX_shadow */\n#define GL_TEXTURE_COMPARE_SGIX 0x819A\n#define GL_TEXTURE_COMPARE_OPERATOR_SGIX 0x819B\n#define GL_TEXTURE_LEQUAL_R_SGIX 0x819C\n#define GL_TEXTURE_GEQUAL_R_SGIX 0x819D\n\n/* SGIX_depth_texture */\n#define GL_DEPTH_COMPONENT16_SGIX 0x81A5\n#define GL_DEPTH_COMPONENT24_SGIX 0x81A6\n#define GL_DEPTH_COMPONENT32_SGIX 0x81A7\n\n/* SGIS_generate_mipmap */\n#define GL_GENERATE_MIPMAP_SGIS 0x8191\n#define GL_GENERATE_MIPMAP_HINT_SGIS 0x8192\n\n/* OpenGL14 */\n#define GL_POINT_SIZE_MIN 0x8126\n#define GL_POINT_SIZE_MAX 0x8127\n#define GL_POINT_FADE_THRESHOLD_SIZE 0x8128\n#define GL_POINT_DISTANCE_ATTENUATION 0x8129\n#define GL_FOG_COORDINATE_SOURCE 0x8450\n#define GL_FOG_COORDINATE 0x8451\n#define GL_FRAGMENT_DEPTH 0x8452\n#define GL_CURRENT_FOG_COORDINATE 0x8453\n#define GL_FOG_COORDINATE_ARRAY_TYPE 0x8454\n#define GL_FOG_COORDINATE_ARRAY_STRIDE 0x8455\n#define GL_FOG_COORDINATE_ARRAY_POINTER 0x8456\n#define GL_FOG_COORDINATE_ARRAY 0x8457\n#define GL_COLOR_SUM 0x8458\n#define GL_CURRENT_SECONDARY_COLOR 0x8459\n#define GL_SECONDARY_COLOR_ARRAY_SIZE 0x845A\n#define GL_SECONDARY_COLOR_ARRAY_TYPE 0x845B\n#define GL_SECONDARY_COLOR_ARRAY_STRIDE 0x845C\n#define GL_SECONDARY_COLOR_ARRAY_POINTER 0x845D\n#define GL_SECONDARY_COLOR_ARRAY 0x845E\n#define GL_INCR_WRAP 0x8507\n#define GL_DECR_WRAP 0x8508\n#define GL_MAX_TEXTURE_LOD_BIAS 0x84FD\n#define GL_TEXTURE_FILTER_CONTROL 0x8500\n#define GL_TEXTURE_LOD_BIAS 0x8501\n#define GL_GENERATE_MIPMAP 0x8191\n#define GL_GENERATE_MIPMAP_HINT 0x8192\n#define GL_BLEND_DST_RGB 0x80C8\n#define GL_BLEND_SRC_RGB 0x80C9\n#define GL_BLEND_DST_ALPHA 0x80CA\n#define GL_BLEND_SRC_ALPHA 0x80CB\n#define GL_MIRRORED_REPEAT 0x8370\n#define GL_DEPTH_COMPONENT16 0x81A5\n#define GL_DEPTH_COMPONENT24 0x81A6\n#define GL_DEPTH_COMPONENT32 0x81A7\n#define GL_TEXTURE_DEPTH_SIZE 0x884A\n#define GL_DEPTH_TEXTURE_MODE 0x884B\n#define GL_TEXTURE_COMPARE_MODE 0x884C\n#define GL_TEXTURE_COMPARE_FUNC 0x884D\n#define GL_COMPARE_R_TO_TEXTURE 0x884E\n\n/*************************************************************/\n\nWINGDIAPI void APIENTRY glAccum (GLenum op, GLfloat value);\nWINGDIAPI void APIENTRY glAlphaFunc (GLenum func, GLclampf ref);\nWINGDIAPI GLboolean APIENTRY glAreTexturesResident (GLsizei n, const GLuint *textures, GLboolean *residences);\nWINGDIAPI void APIENTRY glArrayElement (GLint i);\nWINGDIAPI void APIENTRY glBegin (GLenum mode);\nWINGDIAPI void APIENTRY glBindTexture (GLenum target, GLuint texture);\nWINGDIAPI void APIENTRY glBitmap (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);\nWINGDIAPI void APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor);\nWINGDIAPI void APIENTRY glCallList (GLuint list);\nWINGDIAPI void APIENTRY glCallLists (GLsizei n, GLenum type, const GLvoid *lists);\nWINGDIAPI void APIENTRY glClear (GLbitfield mask);\nWINGDIAPI void APIENTRY glClearAccum (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);\nWINGDIAPI void APIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);\nWINGDIAPI void APIENTRY glClearDepth (GLclampd depth);\nWINGDIAPI void APIENTRY glClearIndex (GLfloat c);\nWINGDIAPI void APIENTRY glClearStencil (GLint s);\nWINGDIAPI void APIENTRY glClipPlane (GLenum plane, const GLdouble *equation);\nWINGDIAPI void APIENTRY glColor3b (GLbyte red, GLbyte green, GLbyte blue);\nWINGDIAPI void APIENTRY glColor3bv (const GLbyte *v);\nWINGDIAPI void APIENTRY glColor3d (GLdouble red, GLdouble green, GLdouble blue);\nWINGDIAPI void APIENTRY glColor3dv (const GLdouble *v);\nWINGDIAPI void APIENTRY glColor3f (GLfloat red, GLfloat green, GLfloat blue);\nWINGDIAPI void APIENTRY glColor3fv (const GLfloat *v);\nWINGDIAPI void APIENTRY glColor3i (GLint red, GLint green, GLint blue);\nWINGDIAPI void APIENTRY glColor3iv (const GLint *v);\nWINGDIAPI void APIENTRY glColor3s (GLshort red, GLshort green, GLshort blue);\nWINGDIAPI void APIENTRY glColor3sv (const GLshort *v);\nWINGDIAPI void APIENTRY glColor3ub (GLubyte red, GLubyte green, GLubyte blue);\nWINGDIAPI void APIENTRY glColor3ubv (const GLubyte *v);\nWINGDIAPI void APIENTRY glColor3ui (GLuint red, GLuint green, GLuint blue);\nWINGDIAPI void APIENTRY glColor3uiv (const GLuint *v);\nWINGDIAPI void APIENTRY glColor3us (GLushort red, GLushort green, GLushort blue);\nWINGDIAPI void APIENTRY glColor3usv (const GLushort *v);\nWINGDIAPI void APIENTRY glColor4b (GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);\nWINGDIAPI void APIENTRY glColor4bv (const GLbyte *v);\nWINGDIAPI void APIENTRY glColor4d (GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);\nWINGDIAPI void APIENTRY glColor4dv (const GLdouble *v);\nWINGDIAPI void APIENTRY glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);\nWINGDIAPI void APIENTRY glColor4fv (const GLfloat *v);\nWINGDIAPI void APIENTRY glColor4i (GLint red, GLint green, GLint blue, GLint alpha);\nWINGDIAPI void APIENTRY glColor4iv (const GLint *v);\nWINGDIAPI void APIENTRY glColor4s (GLshort red, GLshort green, GLshort blue, GLshort alpha);\nWINGDIAPI void APIENTRY glColor4sv (const GLshort *v);\nWINGDIAPI void APIENTRY glColor4ub (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);\nWINGDIAPI void APIENTRY glColor4ubv (const GLubyte *v);\nWINGDIAPI void APIENTRY glColor4ui (GLuint red, GLuint green, GLuint blue, GLuint alpha);\nWINGDIAPI void APIENTRY glColor4uiv (const GLuint *v);\nWINGDIAPI void APIENTRY glColor4us (GLushort red, GLushort green, GLushort blue, GLushort alpha);\nWINGDIAPI void APIENTRY glColor4usv (const GLushort *v);\nWINGDIAPI void APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);\nWINGDIAPI void APIENTRY glColorMaterial (GLenum face, GLenum mode);\nWINGDIAPI void APIENTRY glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);\nWINGDIAPI void APIENTRY glCopyPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);\nWINGDIAPI void APIENTRY glCopyTexImage1D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);\nWINGDIAPI void APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);\nWINGDIAPI void APIENTRY glCopyTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);\nWINGDIAPI void APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);\nWINGDIAPI void APIENTRY glCullFace (GLenum mode);\nWINGDIAPI void APIENTRY glDeleteLists (GLuint list, GLsizei range);\nWINGDIAPI void APIENTRY glDeleteTextures (GLsizei n, const GLuint *textures);\nWINGDIAPI void APIENTRY glDepthFunc (GLenum func);\nWINGDIAPI void APIENTRY glDepthMask (GLboolean flag);\nWINGDIAPI void APIENTRY glDepthRange (GLclampd zNear, GLclampd zFar);\nWINGDIAPI void APIENTRY glDisable (GLenum cap);\nWINGDIAPI void APIENTRY glDisableClientState (GLenum array);\nWINGDIAPI void APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);\nWINGDIAPI void APIENTRY glDrawBuffer (GLenum mode);\nWINGDIAPI void APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);\nWINGDIAPI void APIENTRY glDrawPixels (GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);\nWINGDIAPI void APIENTRY glEdgeFlag (GLboolean flag);\nWINGDIAPI void APIENTRY glEdgeFlagPointer (GLsizei stride, const GLvoid *pointer);\nWINGDIAPI void APIENTRY glEdgeFlagv (const GLboolean *flag);\nWINGDIAPI void APIENTRY glEnable (GLenum cap);\nWINGDIAPI void APIENTRY glEnableClientState (GLenum array);\nWINGDIAPI void APIENTRY glEnd (void);\nWINGDIAPI void APIENTRY glEndList (void);\nWINGDIAPI void APIENTRY glEvalCoord1d (GLdouble u);\nWINGDIAPI void APIENTRY glEvalCoord1dv (const GLdouble *u);\nWINGDIAPI void APIENTRY glEvalCoord1f (GLfloat u);\nWINGDIAPI void APIENTRY glEvalCoord1fv (const GLfloat *u);\nWINGDIAPI void APIENTRY glEvalCoord2d (GLdouble u, GLdouble v);\nWINGDIAPI void APIENTRY glEvalCoord2dv (const GLdouble *u);\nWINGDIAPI void APIENTRY glEvalCoord2f (GLfloat u, GLfloat v);\nWINGDIAPI void APIENTRY glEvalCoord2fv (const GLfloat *u);\nWINGDIAPI void APIENTRY glEvalMesh1 (GLenum mode, GLint i1, GLint i2);\nWINGDIAPI void APIENTRY glEvalMesh2 (GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);\nWINGDIAPI void APIENTRY glEvalPoint1 (GLint i);\nWINGDIAPI void APIENTRY glEvalPoint2 (GLint i, GLint j);\nWINGDIAPI void APIENTRY glFeedbackBuffer (GLsizei size, GLenum type, GLfloat *buffer);\nWINGDIAPI void APIENTRY glFinish (void);\nWINGDIAPI void APIENTRY glFlush (void);\nWINGDIAPI void APIENTRY glFogf (GLenum pname, GLfloat param);\nWINGDIAPI void APIENTRY glFogfv (GLenum pname, const GLfloat *params);\nWINGDIAPI void APIENTRY glFogi (GLenum pname, GLint param);\nWINGDIAPI void APIENTRY glFogiv (GLenum pname, const GLint *params);\nWINGDIAPI void APIENTRY glFrontFace (GLenum mode);\nWINGDIAPI void APIENTRY glFrustum (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);\nWINGDIAPI GLuint APIENTRY glGenLists (GLsizei range);\nWINGDIAPI void APIENTRY glGenTextures (GLsizei n, GLuint *textures);\nWINGDIAPI void APIENTRY glGetBooleanv (GLenum pname, GLboolean *params);\nWINGDIAPI void APIENTRY glGetClipPlane (GLenum plane, GLdouble *equation);\nWINGDIAPI void APIENTRY glGetDoublev (GLenum pname, GLdouble *params);\nWINGDIAPI GLenum APIENTRY glGetError (void);\nWINGDIAPI void APIENTRY glGetFloatv (GLenum pname, GLfloat *params);\nWINGDIAPI void APIENTRY glGetIntegerv (GLenum pname, GLint *params);\nWINGDIAPI void APIENTRY glGetLightfv (GLenum light, GLenum pname, GLfloat *params);\nWINGDIAPI void APIENTRY glGetLightiv (GLenum light, GLenum pname, GLint *params);\nWINGDIAPI void APIENTRY glGetMapdv (GLenum target, GLenum query, GLdouble *v);\nWINGDIAPI void APIENTRY glGetMapfv (GLenum target, GLenum query, GLfloat *v);\nWINGDIAPI void APIENTRY glGetMapiv (GLenum target, GLenum query, GLint *v);\nWINGDIAPI void APIENTRY glGetMaterialfv (GLenum face, GLenum pname, GLfloat *params);\nWINGDIAPI void APIENTRY glGetMaterialiv (GLenum face, GLenum pname, GLint *params);\nWINGDIAPI void APIENTRY glGetPixelMapfv (GLenum map, GLfloat *values);\nWINGDIAPI void APIENTRY glGetPixelMapuiv (GLenum map, GLuint *values);\nWINGDIAPI void APIENTRY glGetPixelMapusv (GLenum map, GLushort *values);\nWINGDIAPI void APIENTRY glGetPointerv (GLenum pname, GLvoid* *params);\nWINGDIAPI void APIENTRY glGetPolygonStipple (GLubyte *mask);\nWINGDIAPI const GLubyte * APIENTRY glGetString (GLenum name);\nWINGDIAPI void APIENTRY glGetTexEnvfv (GLenum target, GLenum pname, GLfloat *params);\nWINGDIAPI void APIENTRY glGetTexEnviv (GLenum target, GLenum pname, GLint *params);\nWINGDIAPI void APIENTRY glGetTexGendv (GLenum coord, GLenum pname, GLdouble *params);\nWINGDIAPI void APIENTRY glGetTexGenfv (GLenum coord, GLenum pname, GLfloat *params);\nWINGDIAPI void APIENTRY glGetTexGeniv (GLenum coord, GLenum pname, GLint *params);\nWINGDIAPI void APIENTRY glGetTexImage (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);\nWINGDIAPI void APIENTRY glGetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params);\nWINGDIAPI void APIENTRY glGetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params);\nWINGDIAPI void APIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params);\nWINGDIAPI void APIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params);\nWINGDIAPI void APIENTRY glHint (GLenum target, GLenum mode);\nWINGDIAPI void APIENTRY glIndexMask (GLuint mask);\nWINGDIAPI void APIENTRY glIndexPointer (GLenum type, GLsizei stride, const GLvoid *pointer);\nWINGDIAPI void APIENTRY glIndexd (GLdouble c);\nWINGDIAPI void APIENTRY glIndexdv (const GLdouble *c);\nWINGDIAPI void APIENTRY glIndexf (GLfloat c);\nWINGDIAPI void APIENTRY glIndexfv (const GLfloat *c);\nWINGDIAPI void APIENTRY glIndexi (GLint c);\nWINGDIAPI void APIENTRY glIndexiv (const GLint *c);\nWINGDIAPI void APIENTRY glIndexs (GLshort c);\nWINGDIAPI void APIENTRY glIndexsv (const GLshort *c);\nWINGDIAPI void APIENTRY glIndexub (GLubyte c);\nWINGDIAPI void APIENTRY glIndexubv (const GLubyte *c);\nWINGDIAPI void APIENTRY glInitNames (void);\nWINGDIAPI void APIENTRY glInterleavedArrays (GLenum format, GLsizei stride, const GLvoid *pointer);\nWINGDIAPI GLboolean APIENTRY glIsEnabled (GLenum cap);\nWINGDIAPI GLboolean APIENTRY glIsList (GLuint list);\nWINGDIAPI GLboolean APIENTRY glIsTexture (GLuint texture);\nWINGDIAPI void APIENTRY glLightModelf (GLenum pname, GLfloat param);\nWINGDIAPI void APIENTRY glLightModelfv (GLenum pname, const GLfloat *params);\nWINGDIAPI void APIENTRY glLightModeli (GLenum pname, GLint param);\nWINGDIAPI void APIENTRY glLightModeliv (GLenum pname, const GLint *params);\nWINGDIAPI void APIENTRY glLightf (GLenum light, GLenum pname, GLfloat param);\nWINGDIAPI void APIENTRY glLightfv (GLenum light, GLenum pname, const GLfloat *params);\nWINGDIAPI void APIENTRY glLighti (GLenum light, GLenum pname, GLint param);\nWINGDIAPI void APIENTRY glLightiv (GLenum light, GLenum pname, const GLint *params);\nWINGDIAPI void APIENTRY glLineStipple (GLint factor, GLushort pattern);\nWINGDIAPI void APIENTRY glLineWidth (GLfloat width);\nWINGDIAPI void APIENTRY glListBase (GLuint base);\nWINGDIAPI void APIENTRY glLoadIdentity (void);\nWINGDIAPI void APIENTRY glLoadMatrixd (const GLdouble *m);\nWINGDIAPI void APIENTRY glLoadMatrixf (const GLfloat *m);\nWINGDIAPI void APIENTRY glLoadName (GLuint name);\nWINGDIAPI void APIENTRY glLogicOp (GLenum opcode);\nWINGDIAPI void APIENTRY glMap1d (GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);\nWINGDIAPI void APIENTRY glMap1f (GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);\nWINGDIAPI void APIENTRY glMap2d (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);\n", "right_context": "WINGDIAPI void APIENTRY glMapGrid1d (GLint un, GLdouble u1, GLdouble u2);\nWINGDIAPI void APIENTRY glMapGrid1f (GLint un, GLfloat u1, GLfloat u2);\nWINGDIAPI void APIENTRY glMapGrid2d (GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);\nWINGDIAPI void APIENTRY glMapGrid2f (GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);\nWINGDIAPI void APIENTRY glMaterialf (GLenum face, GLenum pname, GLfloat param);\nWINGDIAPI void APIENTRY glMaterialfv (GLenum face, GLenum pname, const GLfloat *params);\nWINGDIAPI void APIENTRY glMateriali (GLenum face, GLenum pname, GLint param);\nWINGDIAPI void APIENTRY glMaterialiv (GLenum face, GLenum pname, const GLint *params);\nWINGDIAPI void APIENTRY glMatrixMode (GLenum mode);\nWINGDIAPI void APIENTRY glMultMatrixd (const GLdouble *m);\nWINGDIAPI void APIENTRY glMultMatrixf (const GLfloat *m);\nWINGDIAPI void APIENTRY glNewList (GLuint list, GLenum mode);\nWINGDIAPI void APIENTRY glNormal3b (GLbyte nx, GLbyte ny, GLbyte nz);\nWINGDIAPI void APIENTRY glNormal3bv (const GLbyte *v);\nWINGDIAPI void APIENTRY glNormal3d (GLdouble nx, GLdouble ny, GLdouble nz);\nWINGDIAPI void APIENTRY glNormal3dv (const GLdouble *v);\nWINGDIAPI void APIENTRY glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz);\nWINGDIAPI void APIENTRY glNormal3fv (const GLfloat *v);\nWINGDIAPI void APIENTRY glNormal3i (GLint nx, GLint ny, GLint nz);\nWINGDIAPI void APIENTRY glNormal3iv (const GLint *v);\nWINGDIAPI void APIENTRY glNormal3s (GLshort nx, GLshort ny, GLshort nz);\nWINGDIAPI void APIENTRY glNormal3sv (const GLshort *v);\nWINGDIAPI void APIENTRY glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer);\nWINGDIAPI void APIENTRY glOrtho (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);\nWINGDIAPI void APIENTRY glPassThrough (GLfloat token);\nWINGDIAPI void APIENTRY glPixelMapfv (GLenum map, GLsizei mapsize, const GLfloat *values);\nWINGDIAPI void APIENTRY glPixelMapuiv (GLenum map, GLsizei mapsize, const GLuint *values);\nWINGDIAPI void APIENTRY glPixelMapusv (GLenum map, GLsizei mapsize, const GLushort *values);\nWINGDIAPI void APIENTRY glPixelStoref (GLenum pname, GLfloat param);\nWINGDIAPI void APIENTRY glPixelStorei (GLenum pname, GLint param);\nWINGDIAPI void APIENTRY glPixelTransferf (GLenum pname, GLfloat param);\nWINGDIAPI void APIENTRY glPixelTransferi (GLenum pname, GLint param);\nWINGDIAPI void APIENTRY glPixelZoom (GLfloat xfactor, GLfloat yfactor);\nWINGDIAPI void APIENTRY glPointSize (GLfloat size);\nWINGDIAPI void APIENTRY glPolygonMode (GLenum face, GLenum mode);\nWINGDIAPI void APIENTRY glPolygonOffset (GLfloat factor, GLfloat units);\nWINGDIAPI void APIENTRY glPolygonStipple (const GLubyte *mask);\nWINGDIAPI void APIENTRY glPopAttrib (void);\nWINGDIAPI void APIENTRY glPopClientAttrib (void);\nWINGDIAPI void APIENTRY glPopMatrix (void);\nWINGDIAPI void APIENTRY glPopName (void);\nWINGDIAPI void APIENTRY glPrioritizeTextures (GLsizei n, const GLuint *textures, const GLclampf *priorities);\nWINGDIAPI void APIENTRY glPushAttrib (GLbitfield mask);\nWINGDIAPI void APIENTRY glPushClientAttrib (GLbitfield mask);\nWINGDIAPI void APIENTRY glPushMatrix (void);\nWINGDIAPI void APIENTRY glPushName (GLuint name);\nWINGDIAPI void APIENTRY glRasterPos2d (GLdouble x, GLdouble y);\nWINGDIAPI void APIENTRY glRasterPos2dv (const GLdouble *v);\nWINGDIAPI void APIENTRY glRasterPos2f (GLfloat x, GLfloat y);\nWINGDIAPI void APIENTRY glRasterPos2fv (const GLfloat *v);\nWINGDIAPI void APIENTRY glRasterPos2i (GLint x, GLint y);\nWINGDIAPI void APIENTRY glRasterPos2iv (const GLint *v);\nWINGDIAPI void APIENTRY glRasterPos2s (GLshort x, GLshort y);\nWINGDIAPI void APIENTRY glRasterPos2sv (const GLshort *v);\nWINGDIAPI void APIENTRY glRasterPos3d (GLdouble x, GLdouble y, GLdouble z);\nWINGDIAPI void APIENTRY glRasterPos3dv (const GLdouble *v);\nWINGDIAPI void APIENTRY glRasterPos3f (GLfloat x, GLfloat y, GLfloat z);\nWINGDIAPI void APIENTRY glRasterPos3fv (const GLfloat *v);\nWINGDIAPI void APIENTRY glRasterPos3i (GLint x, GLint y, GLint z);\nWINGDIAPI void APIENTRY glRasterPos3iv (const GLint *v);\nWINGDIAPI void APIENTRY glRasterPos3s (GLshort x, GLshort y, GLshort z);\nWINGDIAPI void APIENTRY glRasterPos3sv (const GLshort *v);\nWINGDIAPI void APIENTRY glRasterPos4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w);\nWINGDIAPI void APIENTRY glRasterPos4dv (const GLdouble *v);\nWINGDIAPI void APIENTRY glRasterPos4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w);\nWINGDIAPI void APIENTRY glRasterPos4fv (const GLfloat *v);\nWINGDIAPI void APIENTRY glRasterPos4i (GLint x, GLint y, GLint z, GLint w);\nWINGDIAPI void APIENTRY glRasterPos4iv (const GLint *v);\nWINGDIAPI void APIENTRY glRasterPos4s (GLshort x, GLshort y, GLshort z, GLshort w);\nWINGDIAPI void APIENTRY glRasterPos4sv (const GLshort *v);\nWINGDIAPI void APIENTRY glReadBuffer (GLenum mode);\nWINGDIAPI void APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);\nWINGDIAPI void APIENTRY glRectd (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);\nWINGDIAPI void APIENTRY glRectdv (const GLdouble *v1, const GLdouble *v2);\nWINGDIAPI void APIENTRY glRectf (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);\nWINGDIAPI void APIENTRY glRectfv (const GLfloat *v1, const GLfloat *v2);\nWINGDIAPI void APIENTRY glRecti (GLint x1, GLint y1, GLint x2, GLint y2);\nWINGDIAPI void APIENTRY glRectiv (const GLint *v1, const GLint *v2);\nWINGDIAPI void APIENTRY glRects (GLshort x1, GLshort y1, GLshort x2, GLshort y2);\nWINGDIAPI void APIENTRY glRectsv (const GLshort *v1, const GLshort *v2);\nWINGDIAPI GLint APIENTRY glRenderMode (GLenum mode);\nWINGDIAPI void APIENTRY glRotated (GLdouble angle, GLdouble x, GLdouble y, GLdouble z);\nWINGDIAPI void APIENTRY glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z);\nWINGDIAPI void APIENTRY glScaled (GLdouble x, GLdouble y, GLdouble z);\nWINGDIAPI void APIENTRY glScalef (GLfloat x, GLfloat y, GLfloat z);\nWINGDIAPI void APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height);\nWINGDIAPI void APIENTRY glSelectBuffer (GLsizei size, GLuint *buffer);\nWINGDIAPI void APIENTRY glShadeModel (GLenum mode);\nWINGDIAPI void APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask);\nWINGDIAPI void APIENTRY glStencilMask (GLuint mask);\nWINGDIAPI void APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);\nWINGDIAPI void APIENTRY glTexCoord1d (GLdouble s);\nWINGDIAPI void APIENTRY glTexCoord1dv (const GLdouble *v);\nWINGDIAPI void APIENTRY glTexCoord1f (GLfloat s);\nWINGDIAPI void APIENTRY glTexCoord1fv (const GLfloat *v);\nWINGDIAPI void APIENTRY glTexCoord1i (GLint s);\nWINGDIAPI void APIENTRY glTexCoord1iv (const GLint *v);\nWINGDIAPI void APIENTRY glTexCoord1s (GLshort s);\nWINGDIAPI void APIENTRY glTexCoord1sv (const GLshort *v);\nWINGDIAPI void APIENTRY glTexCoord2d (GLdouble s, GLdouble t);\nWINGDIAPI void APIENTRY glTexCoord2dv (const GLdouble *v);\nWINGDIAPI void APIENTRY glTexCoord2f (GLfloat s, GLfloat t);\nWINGDIAPI void APIENTRY glTexCoord2fv (const GLfloat *v);\nWINGDIAPI void APIENTRY glTexCoord2i (GLint s, GLint t);\nWINGDIAPI void APIENTRY glTexCoord2iv (const GLint *v);\nWINGDIAPI void APIENTRY glTexCoord2s (GLshort s, GLshort t);\nWINGDIAPI void APIENTRY glTexCoord2sv (const GLshort *v);\nWINGDIAPI void APIENTRY glTexCoord3d (GLdouble s, GLdouble t, GLdouble r);\nWINGDIAPI void APIENTRY glTexCoord3dv (const GLdouble *v);\nWINGDIAPI void APIENTRY glTexCoord3f (GLfloat s, GLfloat t, GLfloat r);\nWINGDIAPI void APIENTRY glTexCoord3fv (const GLfloat *v);\nWINGDIAPI void APIENTRY glTexCoord3i (GLint s, GLint t, GLint r);\nWINGDIAPI void APIENTRY glTexCoord3iv (const GLint *v);\nWINGDIAPI void APIENTRY glTexCoord3s (GLshort s, GLshort t, GLshort r);\nWINGDIAPI void APIENTRY glTexCoord3sv (const GLshort *v);\nWINGDIAPI void APIENTRY glTexCoord4d (GLdouble s, GLdouble t, GLdouble r, GLdouble q);\nWINGDIAPI void APIENTRY glTexCoord4dv (const GLdouble *v);\nWINGDIAPI void APIENTRY glTexCoord4f (GLfloat s, GLfloat t, GLfloat r, GLfloat q);\nWINGDIAPI void APIENTRY glTexCoord4fv (const GLfloat *v);\nWINGDIAPI void APIENTRY glTexCoord4i (GLint s, GLint t, GLint r, GLint q);\nWINGDIAPI void APIENTRY glTexCoord4iv (const GLint *v);\nWINGDIAPI void APIENTRY glTexCoord4s (GLshort s, GLshort t, GLshort r, GLshort q);\nWINGDIAPI void APIENTRY glTexCoord4sv (const GLshort *v);\nWINGDIAPI void APIENTRY glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);\nWINGDIAPI void APIENTRY glTexEnvf (GLenum target, GLenum pname, GLfloat param);\nWINGDIAPI void APIENTRY glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params);\nWINGDIAPI void APIENTRY glTexEnvi (GLenum target, GLenum pname, GLint param);\nWINGDIAPI void APIENTRY glTexEnviv (GLenum target, GLenum pname, const GLint *params);\nWINGDIAPI void APIENTRY glTexGend (GLenum coord, GLenum pname, GLdouble param);\nWINGDIAPI void APIENTRY glTexGendv (GLenum coord, GLenum pname, const GLdouble *params);\nWINGDIAPI void APIENTRY glTexGenf (GLenum coord, GLenum pname, GLfloat param);\nWINGDIAPI void APIENTRY glTexGenfv (GLenum coord, GLenum pname, const GLfloat *params);\nWINGDIAPI void APIENTRY glTexGeni (GLenum coord, GLenum pname, GLint param);\nWINGDIAPI void APIENTRY glTexGeniv (GLenum coord, GLenum pname, const GLint *params);\nWINGDIAPI void APIENTRY glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);\nWINGDIAPI void APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);\nWINGDIAPI void APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param);\nWINGDIAPI void APIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params);\nWINGDIAPI void APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param);\nWINGDIAPI void APIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params);\nWINGDIAPI void APIENTRY glTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);\nWINGDIAPI void APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);\nWINGDIAPI void APIENTRY glTranslated (GLdouble x, GLdouble y, GLdouble z);\nWINGDIAPI void APIENTRY glTranslatef (GLfloat x, GLfloat y, GLfloat z);\nWINGDIAPI void APIENTRY glVertex2d (GLdouble x, GLdouble y);\nWINGDIAPI void APIENTRY glVertex2dv (const GLdouble *v);\nWINGDIAPI void APIENTRY glVertex2f (GLfloat x, GLfloat y);\nWINGDIAPI void APIENTRY glVertex2fv (const GLfloat *v);\nWINGDIAPI void APIENTRY glVertex2i (GLint x, GLint y);\nWINGDIAPI void APIENTRY glVertex2iv (const GLint *v);\nWINGDIAPI void APIENTRY glVertex2s (GLshort x, GLshort y);\nWINGDIAPI void APIENTRY glVertex2sv (const GLshort *v);\nWINGDIAPI void APIENTRY glVertex3d (GLdouble x, GLdouble y, GLdouble z);\nWINGDIAPI void APIENTRY glVertex3dv (const GLdouble *v);\nWINGDIAPI void APIENTRY glVertex3f (GLfloat x, GLfloat y, GLfloat z);\nWINGDIAPI void APIENTRY glVertex3fv (const GLfloat *v);\nWINGDIAPI void APIENTRY glVertex3i (GLint x, GLint y, GLint z);\nWINGDIAPI void APIENTRY glVertex3iv (const GLint *v);\nWINGDIAPI void APIENTRY glVertex3s (GLshort x, GLshort y, GLshort z);\nWINGDIAPI void APIENTRY glVertex3sv (const GLshort *v);\nWINGDIAPI void APIENTRY glVertex4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w);\nWINGDIAPI void APIENTRY glVertex4dv (const GLdouble *v);\nWINGDIAPI void APIENTRY glVertex4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w);\nWINGDIAPI void APIENTRY glVertex4fv (const GLfloat *v);\nWINGDIAPI void APIENTRY glVertex4i (GLint x, GLint y, GLint z, GLint w);\nWINGDIAPI void APIENTRY glVertex4iv (const GLint *v);\nWINGDIAPI void APIENTRY glVertex4s (GLshort x, GLshort y, GLshort z, GLshort w);\nWINGDIAPI void APIENTRY glVertex4sv (const GLshort *v);\nWINGDIAPI void APIENTRY glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);\nWINGDIAPI void APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);\n\n#ifdef __DEFINED_GLAPI\n# undef GLAPI\n# undef __DEFINED_GLAPI\n#endif\n\n#ifndef GL_GLEXT_LEGACY\n#include \n#endif\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif /* __gl_h_ */\n", "groundtruth": "WINGDIAPI void APIENTRY glMap2f (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);\r\n", "crossfile_context": ""} {"task_id": "HLS_for_CNN", "path": "HLS_for_CNN/common/inc/SDL/SDL_bits.h", "left_context": "/*\n Simple DirectMedia Layer\n Copyright (C) 1997-2013 Sam Lantinga \n\n This software is provided 'as-is', without any express or implied\n warranty. In no event will the authors be held liable for any damages\n arising from the use of this software.\n\n Permission is granted to anyone to use this software for any purpose,\n including commercial applications, and to alter it and redistribute it\n freely, subject to the following restrictions:\n\n 1. The origin of this software must not be misrepresented; you must not\n claim that you wrote the original software. If you use this software\n in a product, an acknowledgment in the product documentation would be\n appreciated but is not required.\n 2. Altered source versions must be plainly marked as such, and must not be\n misrepresented as being the original software.\n 3. This notice may not be removed or altered from any source distribution.\n*/\n\n/**\n * \\file SDL_bits.h\n *\n * Functions for fiddling with bits and bitmasks.\n */\n\n#ifndef _SDL_bits_h\n#define _SDL_bits_h\n\n#include \"SDL_stdinc.h\"\n\n#include \"begin_code.h\"\n/* Set up for C function definitions, even when using C++ */\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/**\n * \\file SDL_bits.h\n */\n\n/**\n * Get the index of the most significant bit. Result is undefined when called\n * with 0. This operation can also be stated as \"count leading zeroes\" and\n * \"log base 2\".\n *\n * \\return Index of the most significant bit, or -1 if the value is 0.\n */\nSDL_FORCE_INLINE int\nSDL_MostSignificantBitIndex32(Uint32 x)\n{\n#if defined(__GNUC__) && __GNUC__ >= 4\n /* Count Leading Zeroes builtin in GCC.\n * http://gcc.gnu.org/onlinedocs/gcc-4.3.4/gcc/Other-Builtins.html\n */\n if (x == 0) {\n return -1;\n }\n return 31 - __builtin_clz(x);\n#else\n /* Based off of Bit Twiddling Hacks by Sean Eron Anderson\n * , released in the public domain.\n * http://graphics.stanford.edu/~seander/bithacks.html#IntegerLog\n */\n const Uint32 b[] = {0x2, 0xC, 0xF0, 0xFF00, 0xFFFF0000};\n const int S[] = {1, 2, 4, 8, 16};\n\n int msbIndex = 0;\n int i;\n\n", "right_context": " {\n if (x & b[i])\n {\n x >>= S[i];\n msbIndex |= S[i];\n }\n }\n\n return msbIndex;\n#endif\n}\n\n/* Ends C function definitions when using C++ */\n#ifdef __cplusplus\n}\n#endif\n#include \"close_code.h\"\n\n#endif /* _SDL_bits_h */\n\n/* vi: set ts=4 sw=4 expandtab: */\n", "groundtruth": " if (x == 0) {\r\n return -1;\r\n }\r\n", "crossfile_context": ""} {"task_id": "HLS_for_CNN", "path": "HLS_for_CNN/common/inc/SDL/SDL_events.h", "left_context": "/*\n Simple DirectMedia Layer\n Copyright (C) 1997-2013 Sam Lantinga \n\n This software is provided 'as-is', without any express or implied\n warranty. In no event will the authors be held liable for any damages\n arising from the use of this software.\n\n Permission is granted to anyone to use this software for any purpose,\n including commercial applications, and to alter it and redistribute it\n freely, subject to the following restrictions:\n\n 1. The origin of this software must not be misrepresented; you must not\n claim that you wrote the original software. If you use this software\n in a product, an acknowledgment in the product documentation would be\n appreciated but is not required.\n 2. Altered source versions must be plainly marked as such, and must not be\n misrepresented as being the original software.\n 3. This notice may not be removed or altered from any source distribution.\n*/\n\n/**\n * \\file SDL_events.h\n *\n * Include file for SDL event handling.\n */\n\n#ifndef _SDL_events_h\n#define _SDL_events_h\n\n#include \"SDL_stdinc.h\"\n#include \"SDL_error.h\"\n#include \"SDL_video.h\"\n#include \"SDL_keyboard.h\"\n#include \"SDL_mouse.h\"\n#include \"SDL_joystick.h\"\n#include \"SDL_gamecontroller.h\"\n#include \"SDL_quit.h\"\n#include \"SDL_gesture.h\"\n#include \"SDL_touch.h\"\n\n#include \"begin_code.h\"\n/* Set up for C function definitions, even when using C++ */\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/* General keyboard/mouse state definitions */\n#define SDL_RELEASED 0\n#define SDL_PRESSED 1\n\n/**\n * \\brief The types of events that can be delivered.\n */\ntypedef enum\n{\n SDL_FIRSTEVENT = 0, /**< Unused (do not remove) */\n\n /* Application events */\n SDL_QUIT = 0x100, /**< User-requested quit */\n\n /* These application events have special meaning on iOS, see README-ios.txt for details */\n SDL_APP_TERMINATING, /**< The application is being terminated by the OS\n Called on iOS in applicationWillTerminate()\n Called on Android in onDestroy()\n */\n SDL_APP_LOWMEMORY, /**< The application is low on memory, free memory if possible.\n Called on iOS in applicationDidReceiveMemoryWarning()\n Called on Android in onLowMemory()\n */\n SDL_APP_WILLENTERBACKGROUND, /**< The application is about to enter the background\n Called on iOS in applicationWillResignActive()\n Called on Android in onPause()\n */\n SDL_APP_DIDENTERBACKGROUND, /**< The application did enter the background and may not get CPU for some time\n Called on iOS in applicationDidEnterBackground()\n Called on Android in onPause()\n */\n SDL_APP_WILLENTERFOREGROUND, /**< The application is about to enter the foreground\n Called on iOS in applicationWillEnterForeground()\n Called on Android in onResume()\n */\n SDL_APP_DIDENTERFOREGROUND, /**< The application is now interactive\n Called on iOS in applicationDidBecomeActive()\n Called on Android in onResume()\n */\n\n /* Window events */\n SDL_WINDOWEVENT = 0x200, /**< Window state change */\n SDL_SYSWMEVENT, /**< System specific event */\n\n /* Keyboard events */\n SDL_KEYDOWN = 0x300, /**< Key pressed */\n SDL_KEYUP, /**< Key released */\n SDL_TEXTEDITING, /**< Keyboard text editing (composition) */\n SDL_TEXTINPUT, /**< Keyboard text input */\n\n /* Mouse events */\n SDL_MOUSEMOTION = 0x400, /**< Mouse moved */\n SDL_MOUSEBUTTONDOWN, /**< Mouse button pressed */\n SDL_MOUSEBUTTONUP, /**< Mouse button released */\n SDL_MOUSEWHEEL, /**< Mouse wheel motion */\n\n /* Joystick events */\n SDL_JOYAXISMOTION = 0x600, /**< Joystick axis motion */\n SDL_JOYBALLMOTION, /**< Joystick trackball motion */\n SDL_JOYHATMOTION, /**< Joystick hat position change */\n SDL_JOYBUTTONDOWN, /**< Joystick button pressed */\n SDL_JOYBUTTONUP, /**< Joystick button released */\n SDL_JOYDEVICEADDED, /**< A new joystick has been inserted into the system */\n SDL_JOYDEVICEREMOVED, /**< An opened joystick has been removed */\n\n /* Game controller events */\n SDL_CONTROLLERAXISMOTION = 0x650, /**< Game controller axis motion */\n SDL_CONTROLLERBUTTONDOWN, /**< Game controller button pressed */\n SDL_CONTROLLERBUTTONUP, /**< Game controller button released */\n SDL_CONTROLLERDEVICEADDED, /**< A new Game controller has been inserted into the system */\n SDL_CONTROLLERDEVICEREMOVED, /**< An opened Game controller has been removed */\n SDL_CONTROLLERDEVICEREMAPPED, /**< The controller mapping was updated */\n\n /* Touch events */\n SDL_FINGERDOWN = 0x700,\n SDL_FINGERUP,\n SDL_FINGERMOTION,\n\n /* Gesture events */\n SDL_DOLLARGESTURE = 0x800,\n SDL_DOLLARRECORD,\n SDL_MULTIGESTURE,\n\n /* Clipboard events */\n SDL_CLIPBOARDUPDATE = 0x900, /**< The clipboard changed */\n\n /* Drag and drop events */\n SDL_DROPFILE = 0x1000, /**< The system requests a file open */\n\n /** Events ::SDL_USEREVENT through ::SDL_LASTEVENT are for your use,\n * and should be allocated with SDL_RegisterEvents()\n */\n SDL_USEREVENT = 0x8000,\n\n /**\n * This last event is only for bounding internal arrays\n */\n SDL_LASTEVENT = 0xFFFF\n} SDL_EventType;\n\n/**\n * \\brief Fields shared by every event\n */\ntypedef struct SDL_CommonEvent\n{\n Uint32 type;\n Uint32 timestamp;\n} SDL_CommonEvent;\n\n/**\n * \\brief Window state change event data (event.window.*)\n */\ntypedef struct SDL_WindowEvent\n{\n Uint32 type; /**< ::SDL_WINDOWEVENT */\n Uint32 timestamp;\n Uint32 windowID; /**< The associated window */\n Uint8 event; /**< ::SDL_WindowEventID */\n Uint8 padding1;\n Uint8 padding2;\n Uint8 padding3;\n Sint32 data1; /**< event dependent data */\n Sint32 data2; /**< event dependent data */\n} SDL_WindowEvent;\n\n/**\n * \\brief Keyboard button event structure (event.key.*)\n */\ntypedef struct SDL_KeyboardEvent\n{\n Uint32 type; /**< ::SDL_KEYDOWN or ::SDL_KEYUP */\n Uint32 timestamp;\n Uint32 windowID; /**< The window with keyboard focus, if any */\n Uint8 state; /**< ::SDL_PRESSED or ::SDL_RELEASED */\n Uint8 repeat; /**< Non-zero if this is a key repeat */\n Uint8 padding2;\n Uint8 padding3;\n SDL_Keysym keysym; /**< The key that was pressed or released */\n} SDL_KeyboardEvent;\n\n#define SDL_TEXTEDITINGEVENT_TEXT_SIZE (32)\n/**\n * \\brief Keyboard text editing event structure (event.edit.*)\n */\ntypedef struct SDL_TextEditingEvent\n{\n Uint32 type; /**< ::SDL_TEXTEDITING */\n Uint32 timestamp;\n Uint32 windowID; /**< The window with keyboard focus, if any */\n char text[SDL_TEXTEDITINGEVENT_TEXT_SIZE]; /**< The editing text */\n Sint32 start; /**< The start cursor of selected editing text */\n Sint32 length; /**< The length of selected editing text */\n} SDL_TextEditingEvent;\n\n\n#define SDL_TEXTINPUTEVENT_TEXT_SIZE (32)\n/**\n * \\brief Keyboard text input event structure (event.text.*)\n */\ntypedef struct SDL_TextInputEvent\n{\n Uint32 type; /**< ::SDL_TEXTINPUT */\n Uint32 timestamp;\n Uint32 windowID; /**< The window with keyboard focus, if any */\n char text[SDL_TEXTINPUTEVENT_TEXT_SIZE]; /**< The input text */\n} SDL_TextInputEvent;\n\n/**\n * \\brief Mouse motion event structure (event.motion.*)\n */\ntypedef struct SDL_MouseMotionEvent\n{\n Uint32 type; /**< ::SDL_MOUSEMOTION */\n Uint32 timestamp;\n Uint32 windowID; /**< The window with mouse focus, if any */\n Uint32 which; /**< The mouse instance id, or SDL_TOUCH_MOUSEID */\n Uint32 state; /**< The current button state */\n Sint32 x; /**< X coordinate, relative to window */\n Sint32 y; /**< Y coordinate, relative to window */\n Sint32 xrel; /**< The relative motion in the X direction */\n Sint32 yrel; /**< The relative motion in the Y direction */\n} SDL_MouseMotionEvent;\n\n/**\n * \\brief Mouse button event structure (event.button.*)\n */\ntypedef struct SDL_MouseButtonEvent\n{\n Uint32 type; /**< ::SDL_MOUSEBUTTONDOWN or ::SDL_MOUSEBUTTONUP */\n Uint32 timestamp;\n Uint32 windowID; /**< The window with mouse focus, if any */\n Uint32 which; /**< The mouse instance id, or SDL_TOUCH_MOUSEID */\n Uint8 button; /**< The mouse button index */\n Uint8 state; /**< ::SDL_PRESSED or ::SDL_RELEASED */\n Uint8 padding1;\n Uint8 padding2;\n Sint32 x; /**< X coordinate, relative to window */\n Sint32 y; /**< Y coordinate, relative to window */\n} SDL_MouseButtonEvent;\n\n/**\n * \\brief Mouse wheel event structure (event.wheel.*)\n */\ntypedef struct SDL_MouseWheelEvent\n{\n Uint32 type; /**< ::SDL_MOUSEWHEEL */\n Uint32 timestamp;\n Uint32 windowID; /**< The window with mouse focus, if any */\n Uint32 which; /**< The mouse instance id, or SDL_TOUCH_MOUSEID */\n Sint32 x; /**< The amount scrolled horizontally */\n Sint32 y; /**< The amount scrolled vertically */\n} SDL_MouseWheelEvent;\n\n/**\n * \\brief Joystick axis motion event structure (event.jaxis.*)\n */\ntypedef struct SDL_JoyAxisEvent\n{\n Uint32 type; /**< ::SDL_JOYAXISMOTION */\n Uint32 timestamp;\n SDL_JoystickID which; /**< The joystick instance id */\n Uint8 axis; /**< The joystick axis index */\n Uint8 padding1;\n Uint8 padding2;\n Uint8 padding3;\n Sint16 value; /**< The axis value (range: -32768 to 32767) */\n Uint16 padding4;\n} SDL_JoyAxisEvent;\n\n/**\n * \\brief Joystick trackball motion event structure (event.jball.*)\n */\ntypedef struct SDL_JoyBallEvent\n{\n Uint32 type; /**< ::SDL_JOYBALLMOTION */\n Uint32 timestamp;\n SDL_JoystickID which; /**< The joystick instance id */\n Uint8 ball; /**< The joystick trackball index */\n Uint8 padding1;\n Uint8 padding2;\n Uint8 padding3;\n Sint16 xrel; /**< The relative motion in the X direction */\n Sint16 yrel; /**< The relative motion in the Y direction */\n} SDL_JoyBallEvent;\n\n/**\n * \\brief Joystick hat position change event structure (event.jhat.*)\n */\ntypedef struct SDL_JoyHatEvent\n{\n Uint32 type; /**< ::SDL_JOYHATMOTION */\n Uint32 timestamp;\n SDL_JoystickID which; /**< The joystick instance id */\n Uint8 hat; /**< The joystick hat index */\n Uint8 value; /**< The hat position value.\n * \\sa ::SDL_HAT_LEFTUP ::SDL_HAT_UP ::SDL_HAT_RIGHTUP\n * \\sa ::SDL_HAT_LEFT ::SDL_HAT_CENTERED ::SDL_HAT_RIGHT\n * \\sa ::SDL_HAT_LEFTDOWN ::SDL_HAT_DOWN ::SDL_HAT_RIGHTDOWN\n *\n * Note that zero means the POV is centered.\n */\n Uint8 padding1;\n Uint8 padding2;\n} SDL_JoyHatEvent;\n\n/**\n * \\brief Joystick button event structure (event.jbutton.*)\n */\ntypedef struct SDL_JoyButtonEvent\n{\n Uint32 type; /**< ::SDL_JOYBUTTONDOWN or ::SDL_JOYBUTTONUP */\n Uint32 timestamp;\n SDL_JoystickID which; /**< The joystick instance id */\n Uint8 button; /**< The joystick button index */\n Uint8 state; /**< ::SDL_PRESSED or ::SDL_RELEASED */\n Uint8 padding1;\n Uint8 padding2;\n} SDL_JoyButtonEvent;\n\n/**\n * \\brief Joystick device event structure (event.jdevice.*)\n */\ntypedef struct SDL_JoyDeviceEvent\n{\n Uint32 type; /**< ::SDL_JOYDEVICEADDED or ::SDL_JOYDEVICEREMOVED */\n Uint32 timestamp;\n Sint32 which; /**< The joystick device index for the ADDED event, instance id for the REMOVED event */\n} SDL_JoyDeviceEvent;\n\n\n/**\n * \\brief Game controller axis motion event structure (event.caxis.*)\n */\ntypedef struct SDL_ControllerAxisEvent\n{\n Uint32 type; /**< ::SDL_CONTROLLERAXISMOTION */\n Uint32 timestamp;\n SDL_JoystickID which; /**< The joystick instance id */\n Uint8 axis; /**< The controller axis (SDL_GameControllerAxis) */\n Uint8 padding1;\n Uint8 padding2;\n Uint8 padding3;\n Sint16 value; /**< The axis value (range: -32768 to 32767) */\n Uint16 padding4;\n} SDL_ControllerAxisEvent;\n\n\n/**\n * \\brief Game controller button event structure (event.cbutton.*)\n */\ntypedef struct SDL_ControllerButtonEvent\n{\n Uint32 type; /**< ::SDL_CONTROLLERBUTTONDOWN or ::SDL_CONTROLLERBUTTONUP */\n Uint32 timestamp;\n SDL_JoystickID which; /**< The joystick instance id */\n Uint8 button; /**< The controller button (SDL_GameControllerButton) */\n Uint8 state; /**< ::SDL_PRESSED or ::SDL_RELEASED */\n Uint8 padding1;\n Uint8 padding2;\n} SDL_ControllerButtonEvent;\n\n\n/**\n * \\brief Controller device event structure (event.cdevice.*)\n */\ntypedef struct SDL_ControllerDeviceEvent\n{\n Uint32 type; /**< ::SDL_CONTROLLERDEVICEADDED, ::SDL_CONTROLLERDEVICEREMOVED, or ::SDL_CONTROLLERDEVICEREMAPPED */\n Uint32 timestamp;\n Sint32 which; /**< The joystick device index for the ADDED event, instance id for the REMOVED or REMAPPED event */\n} SDL_ControllerDeviceEvent;\n\n\n/**\n * \\brief Touch finger event structure (event.tfinger.*)\n */\ntypedef struct SDL_TouchFingerEvent\n{\n Uint32 type; /**< ::SDL_FINGERMOTION or ::SDL_FINGERDOWN or ::SDL_FINGERUP */\n Uint32 timestamp;\n SDL_TouchID touchId; /**< The touch device id */\n SDL_FingerID fingerId;\n float x; /**< Normalized in the range 0...1 */\n float y; /**< Normalized in the range 0...1 */\n float dx; /**< Normalized in the range 0...1 */\n float dy; /**< Normalized in the range 0...1 */\n float pressure; /**< Normalized in the range 0...1 */\n} SDL_TouchFingerEvent;\n\n\n/**\n * \\brief Multiple Finger Gesture Event (event.mgesture.*)\n */\ntypedef struct SDL_MultiGestureEvent\n{\n Uint32 type; /**< ::SDL_MULTIGESTURE */\n Uint32 timestamp;\n SDL_TouchID touchId; /**< The touch device index */\n float dTheta;\n float dDist;\n float x;\n float y;\n Uint16 numFingers;\n Uint16 padding;\n} SDL_MultiGestureEvent;\n\n\n/**\n * \\brief Dollar Gesture Event (event.dgesture.*)\n */\ntypedef struct SDL_DollarGestureEvent\n{\n Uint32 type; /**< ::SDL_DOLLARGESTURE */\n Uint32 timestamp;\n SDL_TouchID touchId; /**< The touch device id */\n SDL_GestureID gestureId;\n Uint32 numFingers;\n float error;\n float x; /**< Normalized center of gesture */\n float y; /**< Normalized center of gesture */\n} SDL_DollarGestureEvent;\n\n\n/**\n * \\brief An event used to request a file open by the system (event.drop.*)\n * This event is disabled by default, you can enable it with SDL_EventState()\n * \\note If you enable this event, you must free the filename in the event.\n */\ntypedef struct SDL_DropEvent\n{\n Uint32 type; /**< ::SDL_DROPFILE */\n Uint32 timestamp;\n char *file; /**< The file name, which should be freed with SDL_free() */\n} SDL_DropEvent;\n\n\n/**\n * \\brief The \"quit requested\" event\n */\ntypedef struct SDL_QuitEvent\n{\n Uint32 type; /**< ::SDL_QUIT */\n Uint32 timestamp;\n} SDL_QuitEvent;\n\n/**\n * \\brief OS Specific event\n */\ntypedef struct SDL_OSEvent\n{\n Uint32 type; /**< ::SDL_QUIT */\n Uint32 timestamp;\n} SDL_OSEvent;\n\n/**\n * \\brief A user-defined event type (event.user.*)\n */\ntypedef struct SDL_UserEvent\n{\n Uint32 type; /**< ::SDL_USEREVENT through ::SDL_LASTEVENT-1 */\n Uint32 timestamp;\n Uint32 windowID; /**< The associated window if any */\n Sint32 code; /**< User defined event code */\n void *data1; /**< User defined data pointer */\n void *data2; /**< User defined data pointer */\n} SDL_UserEvent;\n\n\nstruct SDL_SysWMmsg;\ntypedef struct SDL_SysWMmsg SDL_SysWMmsg;\n\n/**\n * \\brief A video driver dependent system event (event.syswm.*)\n * This event is disabled by default, you can enable it with SDL_EventState()\n *\n * \\note If you want to use this event, you should include SDL_syswm.h.\n */\ntypedef struct SDL_SysWMEvent\n{\n Uint32 type; /**< ::SDL_SYSWMEVENT */\n Uint32 timestamp;\n SDL_SysWMmsg *msg; /**< driver dependent data, defined in SDL_syswm.h */\n} SDL_SysWMEvent;\n\n/**\n * \\brief General event structure\n */\ntypedef union SDL_Event\n{\n Uint32 type; /**< Event type, shared with all events */\n SDL_CommonEvent common; /**< Common event data */\n SDL_WindowEvent window; /**< Window event data */\n SDL_KeyboardEvent key; /**< Keyboard event data */\n SDL_TextEditingEvent edit; /**< Text editing event data */\n SDL_TextInputEvent text; /**< Text input event data */\n SDL_MouseMotionEvent motion; /**< Mouse motion event data */\n SDL_MouseButtonEvent button; /**< Mouse button event data */\n SDL_MouseWheelEvent wheel; /**< Mouse wheel event data */\n SDL_JoyAxisEvent jaxis; /**< Joystick axis event data */\n SDL_JoyBallEvent jball; /**< Joystick ball event data */\n SDL_JoyHatEvent jhat; /**< Joystick hat event data */\n SDL_JoyButtonEvent jbutton; /**< Joystick button event data */\n SDL_JoyDeviceEvent jdevice; /**< Joystick device change event data */\n SDL_ControllerAxisEvent caxis; /**< Game Controller axis event data */\n SDL_ControllerButtonEvent cbutton; /**< Game Controller button event data */\n SDL_ControllerDeviceEvent cdevice; /**< Game Controller device event data */\n SDL_QuitEvent quit; /**< Quit request event data */\n SDL_UserEvent user; /**< Custom event data */\n SDL_SysWMEvent syswm; /**< System dependent window event data */\n SDL_TouchFingerEvent tfinger; /**< Touch finger event data */\n SDL_MultiGestureEvent mgesture; /**< Gesture event data */\n SDL_DollarGestureEvent dgesture; /**< Gesture event data */\n SDL_DropEvent drop; /**< Drag and drop event data */\n\n /* This is necessary for ABI compatibility between Visual C++ and GCC\n Visual C++ will respect the push pack pragma and use 52 bytes for\n this structure, and GCC will use the alignment of the largest datatype\n within the union, which is 8 bytes.\n\n So... we'll add padding to force the size to be 56 bytes for both.\n */\n Uint8 padding[56];\n} SDL_Event;\n\n\n/* Function prototypes */\n\n/**\n * Pumps the event loop, gathering events from the input devices.\n *\n * This function updates the event queue and internal input device state.\n *\n * This should only be run in the thread that sets the video mode.\n */\nextern DECLSPEC void SDLCALL SDL_PumpEvents(void);\n\n/*@{*/\ntypedef enum\n{\n SDL_ADDEVENT,\n SDL_PEEKEVENT,\n SDL_GETEVENT\n} SDL_eventaction;\n\n/**\n * Checks the event queue for messages and optionally returns them.\n *\n * If \\c action is ::SDL_ADDEVENT, up to \\c numevents events will be added to\n * the back of the event queue.\n *\n * If \\c action is ::SDL_PEEKEVENT, up to \\c numevents events at the front\n * of the event queue, within the specified minimum and maximum type,\n * will be returned and will not be removed from the queue.\n *\n * If \\c action is ::SDL_GETEVENT, up to \\c numevents events at the front\n * of the event queue, within the specified minimum and maximum type,\n * will be returned and will be removed from the queue.\n *\n * \\return The number of events actually stored, or -1 if there was an error.\n *\n * This function is thread-safe.\n */\nextern DECLSPEC int SDLCALL SDL_PeepEvents(SDL_Event * events, int numevents,\n SDL_eventaction action,\n Uint32 minType, Uint32 maxType);\n/*@}*/\n\n/**\n * Checks to see if certain event types are in the event queue.\n */\nextern DECLSPEC SDL_bool SDLCALL SDL_HasEvent(Uint32 type);\nextern DECLSPEC SDL_bool SDLCALL SDL_HasEvents(Uint32 minType, Uint32 maxType);\n\n/**\n * This function clears events from the event queue\n */\nextern DECLSPEC void SDLCALL SDL_FlushEvent(Uint32 type);\nextern DECLSPEC void SDLCALL SDL_FlushEvents(Uint32 minType, Uint32 maxType);\n\n/**\n * \\brief Polls for currently pending events.\n *\n * \\return 1 if there are any pending events, or 0 if there are none available.\n *\n * \\param event If not NULL, the next event is removed from the queue and\n * stored in that area.\n */\nextern DECLSPEC int SDLCALL SDL_PollEvent(SDL_Event * event);\n\n/**\n * \\brief Waits indefinitely for the next available event.\n *\n * \\return 1, or 0 if there was an error while waiting for events.\n *\n * \\param event If not NULL, the next event is removed from the queue and\n * stored in that area.\n */\nextern DECLSPEC int SDLCALL SDL_WaitEvent(SDL_Event * event);\n\n/**\n * \\brief Waits until the specified timeout (in milliseconds) for the next\n * available event.\n *\n * \\return 1, or 0 if there was an error while waiting for events.\n *\n * \\param event If not NULL, the next event is removed from the queue and\n * stored in that area.\n * \\param timeout The timeout (in milliseconds) to wait for next event.\n */\nextern DECLSPEC int SDLCALL SDL_WaitEventTimeout(SDL_Event * event,\n int timeout);\n\n/**\n * \\brief Add an event to the event queue.\n *\n * \\return 1 on success, 0 if the event was filtered, or -1 if the event queue\n * was full or there was some other error.\n */\nextern DECLSPEC int SDLCALL SDL_PushEvent(SDL_Event * event);\n\ntypedef int (SDLCALL * SDL_EventFilter) (void *userdata, SDL_Event * event);\n\n/**\n * Sets up a filter to process all events before they change internal state and\n * are posted to the internal event queue.\n *\n * The filter is prototyped as:\n * \\code\n * int SDL_EventFilter(void *userdata, SDL_Event * event);\n * \\endcode\n *\n * If the filter returns 1, then the event will be added to the internal queue.\n * If it returns 0, then the event will be dropped from the queue, but the\n * internal state will still be updated. This allows selective filtering of\n * dynamically arriving events.\n *\n * \\warning Be very careful of what you do in the event filter function, as\n * it may run in a different thread!\n *\n * There is one caveat when dealing with the ::SDL_QuitEvent event type. The\n * event filter is only called when the window manager desires to close the\n * application window. If the event filter returns 1, then the window will\n * be closed, otherwise the window will remain open if possible.\n *\n * If the quit event is generated by an interrupt signal, it will bypass the\n * internal queue and be delivered to the application at the next event poll.\n */\n", "right_context": "/**\n * Return the current event filter - can be used to \"chain\" filters.\n * If there is no event filter set, this function returns SDL_FALSE.\n */\nextern DECLSPEC SDL_bool SDLCALL SDL_GetEventFilter(SDL_EventFilter * filter,\n void **userdata);\n\n/**\n * Add a function which is called when an event is added to the queue.\n */\nextern DECLSPEC void SDLCALL SDL_AddEventWatch(SDL_EventFilter filter,\n void *userdata);\n\n/**\n * Remove an event watch function added with SDL_AddEventWatch()\n */\nextern DECLSPEC void SDLCALL SDL_DelEventWatch(SDL_EventFilter filter,\n void *userdata);\n\n/**\n * Run the filter function on the current event queue, removing any\n * events for which the filter returns 0.\n */\nextern DECLSPEC void SDLCALL SDL_FilterEvents(SDL_EventFilter filter,\n void *userdata);\n\n/*@{*/\n#define SDL_QUERY -1\n#define SDL_IGNORE 0\n#define SDL_DISABLE 0\n#define SDL_ENABLE 1\n\n/**\n * This function allows you to set the state of processing certain events.\n * - If \\c state is set to ::SDL_IGNORE, that event will be automatically\n * dropped from the event queue and will not event be filtered.\n * - If \\c state is set to ::SDL_ENABLE, that event will be processed\n * normally.\n * - If \\c state is set to ::SDL_QUERY, SDL_EventState() will return the\n * current processing state of the specified event.\n */\nextern DECLSPEC Uint8 SDLCALL SDL_EventState(Uint32 type, int state);\n/*@}*/\n#define SDL_GetEventState(type) SDL_EventState(type, SDL_QUERY)\n\n/**\n * This function allocates a set of user-defined events, and returns\n * the beginning event number for that set of events.\n *\n * If there aren't enough user-defined events left, this function\n * returns (Uint32)-1\n */\nextern DECLSPEC Uint32 SDLCALL SDL_RegisterEvents(int numevents);\n\n/* Ends C function definitions when using C++ */\n#ifdef __cplusplus\n}\n#endif\n#include \"close_code.h\"\n\n#endif /* _SDL_events_h */\n\n/* vi: set ts=4 sw=4 expandtab: */\n", "groundtruth": "extern DECLSPEC void SDLCALL SDL_SetEventFilter(SDL_EventFilter filter,\r\n void *userdata);\r\n", "crossfile_context": ""} {"task_id": "HLS_for_CNN", "path": "HLS_for_CNN/common/inc/SDL/SDL_pixels.h", "left_context": "/*\n Simple DirectMedia Layer\n Copyright (C) 1997-2013 Sam Lantinga \n\n This software is provided 'as-is', without any express or implied\n warranty. In no event will the authors be held liable for any damages\n arising from the use of this software.\n\n Permission is granted to anyone to use this software for any purpose,\n including commercial applications, and to alter it and redistribute it\n freely, subject to the following restrictions:\n\n 1. The origin of this software must not be misrepresented; you must not\n claim that you wrote the original software. If you use this software\n in a product, an acknowledgment in the product documentation would be\n appreciated but is not required.\n 2. Altered source versions must be plainly marked as such, and must not be\n misrepresented as being the original software.\n 3. This notice may not be removed or altered from any source distribution.\n*/\n\n/**\n * \\file SDL_pixels.h\n *\n * Header for the enumerated pixel format definitions.\n */\n\n#ifndef _SDL_pixels_h\n#define _SDL_pixels_h\n\n#include \"begin_code.h\"\n/* Set up for C function definitions, even when using C++ */\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/**\n * \\name Transparency definitions\n *\n * These define alpha as the opacity of a surface.\n */\n/*@{*/\n#define SDL_ALPHA_OPAQUE 255\n#define SDL_ALPHA_TRANSPARENT 0\n/*@}*/\n\n/** Pixel type. */\nenum\n{\n SDL_PIXELTYPE_UNKNOWN,\n SDL_PIXELTYPE_INDEX1,\n SDL_PIXELTYPE_INDEX4,\n SDL_PIXELTYPE_INDEX8,\n SDL_PIXELTYPE_PACKED8,\n SDL_PIXELTYPE_PACKED16,\n SDL_PIXELTYPE_PACKED32,\n SDL_PIXELTYPE_ARRAYU8,\n SDL_PIXELTYPE_ARRAYU16,\n SDL_PIXELTYPE_ARRAYU32,\n SDL_PIXELTYPE_ARRAYF16,\n SDL_PIXELTYPE_ARRAYF32\n};\n\n/** Bitmap pixel order, high bit -> low bit. */\nenum\n{\n SDL_BITMAPORDER_NONE,\n SDL_BITMAPORDER_4321,\n SDL_BITMAPORDER_1234\n};\n\n/** Packed component order, high bit -> low bit. */\nenum\n{\n SDL_PACKEDORDER_NONE,\n SDL_PACKEDORDER_XRGB,\n SDL_PACKEDORDER_RGBX,\n SDL_PACKEDORDER_ARGB,\n SDL_PACKEDORDER_RGBA,\n SDL_PACKEDORDER_XBGR,\n SDL_PACKEDORDER_BGRX,\n SDL_PACKEDORDER_ABGR,\n SDL_PACKEDORDER_BGRA\n};\n\n/** Array component order, low byte -> high byte. */\nenum\n{\n SDL_ARRAYORDER_NONE,\n SDL_ARRAYORDER_RGB,\n SDL_ARRAYORDER_RGBA,\n SDL_ARRAYORDER_ARGB,\n SDL_ARRAYORDER_BGR,\n SDL_ARRAYORDER_BGRA,\n SDL_ARRAYORDER_ABGR\n};\n\n/** Packed component layout. */\nenum\n{\n SDL_PACKEDLAYOUT_NONE,\n SDL_PACKEDLAYOUT_332,\n SDL_PACKEDLAYOUT_4444,\n SDL_PACKEDLAYOUT_1555,\n SDL_PACKEDLAYOUT_5551,\n SDL_PACKEDLAYOUT_565,\n SDL_PACKEDLAYOUT_8888,\n SDL_PACKEDLAYOUT_2101010,\n SDL_PACKEDLAYOUT_1010102\n};\n\n#define SDL_DEFINE_PIXELFOURCC(A, B, C, D) SDL_FOURCC(A, B, C, D)\n\n#define SDL_DEFINE_PIXELFORMAT(type, order, layout, bits, bytes) \\\n ((1 << 28) | ((type) << 24) | ((order) << 20) | ((layout) << 16) | \\\n ((bits) << 8) | ((bytes) << 0))\n\n#define SDL_PIXELFLAG(X) (((X) >> 28) & 0x0F)\n#define SDL_PIXELTYPE(X) (((X) >> 24) & 0x0F)\n#define SDL_PIXELORDER(X) (((X) >> 20) & 0x0F)\n#define SDL_PIXELLAYOUT(X) (((X) >> 16) & 0x0F)\n#define SDL_BITSPERPIXEL(X) (((X) >> 8) & 0xFF)\n#define SDL_BYTESPERPIXEL(X) \\\n (SDL_ISPIXELFORMAT_FOURCC(X) ? \\\n ((((X) == SDL_PIXELFORMAT_YUY2) || \\\n ((X) == SDL_PIXELFORMAT_UYVY) || \\\n ((X) == SDL_PIXELFORMAT_YVYU)) ? 2 : 1) : (((X) >> 0) & 0xFF))\n\n#define SDL_ISPIXELFORMAT_INDEXED(format) \\\n (!SDL_ISPIXELFORMAT_FOURCC(format) && \\\n ((SDL_PIXELTYPE(format) == SDL_PIXELTYPE_INDEX1) || \\\n (SDL_PIXELTYPE(format) == SDL_PIXELTYPE_INDEX4) || \\\n (SDL_PIXELTYPE(format) == SDL_PIXELTYPE_INDEX8)))\n\n#define SDL_ISPIXELFORMAT_ALPHA(format) \\\n (!SDL_ISPIXELFORMAT_FOURCC(format) && \\\n ((SDL_PIXELORDER(format) == SDL_PACKEDORDER_ARGB) || \\\n (SDL_PIXELORDER(format) == SDL_PACKEDORDER_RGBA) || \\\n (SDL_PIXELORDER(format) == SDL_PACKEDORDER_ABGR) || \\\n (SDL_PIXELORDER(format) == SDL_PACKEDORDER_BGRA)))\n\n/* The flag is set to 1 because 0x1? is not in the printable ASCII range */\n#define SDL_ISPIXELFORMAT_FOURCC(format) \\\n ((format) && (SDL_PIXELFLAG(format) != 1))\n\n/* Note: If you modify this list, update SDL_GetPixelFormatName() */\nenum\n{\n SDL_PIXELFORMAT_UNKNOWN,\n SDL_PIXELFORMAT_INDEX1LSB =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX1, SDL_BITMAPORDER_4321, 0,\n 1, 0),\n SDL_PIXELFORMAT_INDEX1MSB =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX1, SDL_BITMAPORDER_1234, 0,\n 1, 0),\n SDL_PIXELFORMAT_INDEX4LSB =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX4, SDL_BITMAPORDER_4321, 0,\n 4, 0),\n SDL_PIXELFORMAT_INDEX4MSB =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX4, SDL_BITMAPORDER_1234, 0,\n 4, 0),\n SDL_PIXELFORMAT_INDEX8 =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX8, 0, 0, 8, 1),\n SDL_PIXELFORMAT_RGB332 =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED8, SDL_PACKEDORDER_XRGB,\n SDL_PACKEDLAYOUT_332, 8, 1),\n SDL_PIXELFORMAT_RGB444 =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_XRGB,\n SDL_PACKEDLAYOUT_4444, 12, 2),\n SDL_PIXELFORMAT_RGB555 =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_XRGB,\n SDL_PACKEDLAYOUT_1555, 15, 2),\n SDL_PIXELFORMAT_BGR555 =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_XBGR,\n SDL_PACKEDLAYOUT_1555, 15, 2),\n SDL_PIXELFORMAT_ARGB4444 =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_ARGB,\n SDL_PACKEDLAYOUT_4444, 16, 2),\n SDL_PIXELFORMAT_RGBA4444 =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_RGBA,\n SDL_PACKEDLAYOUT_4444, 16, 2),\n SDL_PIXELFORMAT_ABGR4444 =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_ABGR,\n SDL_PACKEDLAYOUT_4444, 16, 2),\n SDL_PIXELFORMAT_BGRA4444 =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_BGRA,\n SDL_PACKEDLAYOUT_4444, 16, 2),\n SDL_PIXELFORMAT_ARGB1555 =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_ARGB,\n SDL_PACKEDLAYOUT_1555, 16, 2),\n SDL_PIXELFORMAT_RGBA5551 =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_RGBA,\n SDL_PACKEDLAYOUT_5551, 16, 2),\n SDL_PIXELFORMAT_ABGR1555 =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_ABGR,\n SDL_PACKEDLAYOUT_1555, 16, 2),\n SDL_PIXELFORMAT_BGRA5551 =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_BGRA,\n SDL_PACKEDLAYOUT_5551, 16, 2),\n SDL_PIXELFORMAT_RGB565 =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_XRGB,\n SDL_PACKEDLAYOUT_565, 16, 2),\n SDL_PIXELFORMAT_BGR565 =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_XBGR,\n SDL_PACKEDLAYOUT_565, 16, 2),\n SDL_PIXELFORMAT_RGB24 =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_ARRAYU8, SDL_ARRAYORDER_RGB, 0,\n 24, 3),\n SDL_PIXELFORMAT_BGR24 =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_ARRAYU8, SDL_ARRAYORDER_BGR, 0,\n 24, 3),\n SDL_PIXELFORMAT_RGB888 =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_XRGB,\n SDL_PACKEDLAYOUT_8888, 24, 4),\n SDL_PIXELFORMAT_RGBX8888 =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_RGBX,\n SDL_PACKEDLAYOUT_8888, 24, 4),\n SDL_PIXELFORMAT_BGR888 =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_XBGR,\n SDL_PACKEDLAYOUT_8888, 24, 4),\n SDL_PIXELFORMAT_BGRX8888 =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_BGRX,\n SDL_PACKEDLAYOUT_8888, 24, 4),\n SDL_PIXELFORMAT_ARGB8888 =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_ARGB,\n SDL_PACKEDLAYOUT_8888, 32, 4),\n SDL_PIXELFORMAT_RGBA8888 =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_RGBA,\n SDL_PACKEDLAYOUT_8888, 32, 4),\n SDL_PIXELFORMAT_ABGR8888 =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_ABGR,\n SDL_PACKEDLAYOUT_8888, 32, 4),\n SDL_PIXELFORMAT_BGRA8888 =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_BGRA,\n SDL_PACKEDLAYOUT_8888, 32, 4),\n SDL_PIXELFORMAT_ARGB2101010 =\n SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_ARGB,\n SDL_PACKEDLAYOUT_2101010, 32, 4),\n\n SDL_PIXELFORMAT_YV12 = /**< Planar mode: Y + V + U (3 planes) */\n SDL_DEFINE_PIXELFOURCC('Y', 'V', '1', '2'),\n SDL_PIXELFORMAT_IYUV = /**< Planar mode: Y + U + V (3 planes) */\n SDL_DEFINE_PIXELFOURCC('I', 'Y', 'U', 'V'),\n SDL_PIXELFORMAT_YUY2 = /**< Packed mode: Y0+U0+Y1+V0 (1 plane) */\n SDL_DEFINE_PIXELFOURCC('Y', 'U', 'Y', '2'),\n SDL_PIXELFORMAT_UYVY = /**< Packed mode: U0+Y0+V0+Y1 (1 plane) */\n SDL_DEFINE_PIXELFOURCC('U', 'Y', 'V', 'Y'),\n SDL_PIXELFORMAT_YVYU = /**< Packed mode: Y0+V0+Y1+U0 (1 plane) */\n SDL_DEFINE_PIXELFOURCC('Y', 'V', 'Y', 'U')\n};\n\ntypedef struct SDL_Color\n{\n Uint8 r;\n Uint8 g;\n Uint8 b;\n Uint8 a;\n} SDL_Color;\n#define SDL_Colour SDL_Color\n\ntypedef struct SDL_Palette\n{\n int ncolors;\n SDL_Color *colors;\n Uint32 version;\n int refcount;\n} SDL_Palette;\n\n/**\n * \\note Everything in the pixel format structure is read-only.\n */\ntypedef struct SDL_PixelFormat\n{\n Uint32 format;\n SDL_Palette *palette;\n Uint8 BitsPerPixel;\n Uint8 BytesPerPixel;\n Uint8 padding[2];\n Uint32 Rmask;\n Uint32 Gmask;\n Uint32 Bmask;\n Uint32 Amask;\n Uint8 Rloss;\n Uint8 Gloss;\n Uint8 Bloss;\n Uint8 Aloss;\n Uint8 Rshift;\n Uint8 Gshift;\n Uint8 Bshift;\n Uint8 Ashift;\n int refcount;\n struct SDL_PixelFormat *next;\n} SDL_PixelFormat;\n\n/**\n * \\brief Get the human readable name of a pixel format\n */\n", "right_context": "\n/**\n * \\brief Convert one of the enumerated pixel formats to a bpp and RGBA masks.\n *\n * \\return SDL_TRUE, or SDL_FALSE if the conversion wasn't possible.\n *\n * \\sa SDL_MasksToPixelFormatEnum()\n */\nextern DECLSPEC SDL_bool SDLCALL SDL_PixelFormatEnumToMasks(Uint32 format,\n int *bpp,\n Uint32 * Rmask,\n Uint32 * Gmask,\n Uint32 * Bmask,\n Uint32 * Amask);\n\n/**\n * \\brief Convert a bpp and RGBA masks to an enumerated pixel format.\n *\n * \\return The pixel format, or ::SDL_PIXELFORMAT_UNKNOWN if the conversion\n * wasn't possible.\n *\n * \\sa SDL_PixelFormatEnumToMasks()\n */\nextern DECLSPEC Uint32 SDLCALL SDL_MasksToPixelFormatEnum(int bpp,\n Uint32 Rmask,\n Uint32 Gmask,\n Uint32 Bmask,\n Uint32 Amask);\n\n/**\n * \\brief Create an SDL_PixelFormat structure from a pixel format enum.\n */\nextern DECLSPEC SDL_PixelFormat * SDLCALL SDL_AllocFormat(Uint32 pixel_format);\n\n/**\n * \\brief Free an SDL_PixelFormat structure.\n */\nextern DECLSPEC void SDLCALL SDL_FreeFormat(SDL_PixelFormat *format);\n\n/**\n * \\brief Create a palette structure with the specified number of color\n * entries.\n *\n * \\return A new palette, or NULL if there wasn't enough memory.\n *\n * \\note The palette entries are initialized to white.\n *\n * \\sa SDL_FreePalette()\n */\nextern DECLSPEC SDL_Palette *SDLCALL SDL_AllocPalette(int ncolors);\n\n/**\n * \\brief Set the palette for a pixel format structure.\n */\nextern DECLSPEC int SDLCALL SDL_SetPixelFormatPalette(SDL_PixelFormat * format,\n SDL_Palette *palette);\n\n/**\n * \\brief Set a range of colors in a palette.\n *\n * \\param palette The palette to modify.\n * \\param colors An array of colors to copy into the palette.\n * \\param firstcolor The index of the first palette entry to modify.\n * \\param ncolors The number of entries to modify.\n *\n * \\return 0 on success, or -1 if not all of the colors could be set.\n */\nextern DECLSPEC int SDLCALL SDL_SetPaletteColors(SDL_Palette * palette,\n const SDL_Color * colors,\n int firstcolor, int ncolors);\n\n/**\n * \\brief Free a palette created with SDL_AllocPalette().\n *\n * \\sa SDL_AllocPalette()\n */\nextern DECLSPEC void SDLCALL SDL_FreePalette(SDL_Palette * palette);\n\n/**\n * \\brief Maps an RGB triple to an opaque pixel value for a given pixel format.\n *\n * \\sa SDL_MapRGBA\n */\nextern DECLSPEC Uint32 SDLCALL SDL_MapRGB(const SDL_PixelFormat * format,\n Uint8 r, Uint8 g, Uint8 b);\n\n/**\n * \\brief Maps an RGBA quadruple to a pixel value for a given pixel format.\n *\n * \\sa SDL_MapRGB\n */\nextern DECLSPEC Uint32 SDLCALL SDL_MapRGBA(const SDL_PixelFormat * format,\n Uint8 r, Uint8 g, Uint8 b,\n Uint8 a);\n\n/**\n * \\brief Get the RGB components from a pixel of the specified format.\n *\n * \\sa SDL_GetRGBA\n */\nextern DECLSPEC void SDLCALL SDL_GetRGB(Uint32 pixel,\n const SDL_PixelFormat * format,\n Uint8 * r, Uint8 * g, Uint8 * b);\n\n/**\n * \\brief Get the RGBA components from a pixel of the specified format.\n *\n * \\sa SDL_GetRGB\n */\nextern DECLSPEC void SDLCALL SDL_GetRGBA(Uint32 pixel,\n const SDL_PixelFormat * format,\n Uint8 * r, Uint8 * g, Uint8 * b,\n Uint8 * a);\n\n/**\n * \\brief Calculate a 256 entry gamma ramp for a gamma value.\n */\nextern DECLSPEC void SDLCALL SDL_CalculateGammaRamp(float gamma, Uint16 * ramp);\n\n\n/* Ends C function definitions when using C++ */\n#ifdef __cplusplus\n}\n#endif\n#include \"close_code.h\"\n\n#endif /* _SDL_pixels_h */\n\n/* vi: set ts=4 sw=4 expandtab: */\n", "groundtruth": "extern DECLSPEC const char* SDLCALL SDL_GetPixelFormatName(Uint32 format);\r\n", "crossfile_context": ""} {"task_id": "HLS_for_CNN", "path": "HLS_for_CNN/common/inc/SDL/SDL_platform.h", "left_context": "/*\n Simple DirectMedia Layer\n Copyright (C) 1997-2013 Sam Lantinga \n\n This software is provided 'as-is', without any express or implied\n warranty. In no event will the authors be held liable for any damages\n arising from the use of this software.\n\n Permission is granted to anyone to use this software for any purpose,\n including commercial applications, and to alter it and redistribute it\n freely, subject to the following restrictions:\n\n 1. The origin of this software must not be misrepresented; you must not\n claim that you wrote the original software. If you use this software\n in a product, an acknowledgment in the product documentation would be\n appreciated but is not required.\n 2. Altered source versions must be plainly marked as such, and must not be\n misrepresented as being the original software.\n 3. This notice may not be removed or altered from any source distribution.\n*/\n\n/**\n * \\file SDL_platform.h\n *\n * Try to get a standard set of platform defines.\n */\n\n#ifndef _SDL_platform_h\n#define _SDL_platform_h\n\n#if defined(_AIX)\n#undef __AIX__\n#define __AIX__ 1\n#endif\n#if defined(__BEOS__)\n#undef __BEOS__\n#define __BEOS__ 1\n#endif\n#if defined(__HAIKU__)\n#undef __HAIKU__\n#define __HAIKU__ 1\n#endif\n#if defined(bsdi) || defined(__bsdi) || defined(__bsdi__)\n#undef __BSDI__\n#define __BSDI__ 1\n#endif\n#if defined(_arch_dreamcast)\n#undef __DREAMCAST__\n#define __DREAMCAST__ 1\n#endif\n#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)\n#undef __FREEBSD__\n#define __FREEBSD__ 1\n#endif\n#if defined(hpux) || defined(__hpux) || defined(__hpux__)\n#undef __HPUX__\n#define __HPUX__ 1\n#endif\n#if defined(sgi) || defined(__sgi) || defined(__sgi__) || defined(_SGI_SOURCE)\n#undef __IRIX__\n#define __IRIX__ 1\n#endif\n#if defined(linux) || defined(__linux) || defined(__linux__)\n#undef __LINUX__\n#define __LINUX__ 1\n#endif\n#if defined(ANDROID)\n#undef __ANDROID__\n#undef __LINUX__ /*do we need to do this?*/\n#define __ANDROID__ 1\n#endif\n\n#if defined(__APPLE__)\n/* lets us know what version of Mac OS X we're compiling on */\n#include \"AvailabilityMacros.h\"\n#include \"TargetConditionals.h\"\n#if TARGET_OS_IPHONE\n/* if compiling for iPhone */\n#undef __IPHONEOS__\n#define __IPHONEOS__ 1\n#undef __MACOSX__\n#else\n/* if not compiling for iPhone */\n#undef __MACOSX__\n#define __MACOSX__ 1\n#if MAC_OS_X_VERSION_MIN_REQUIRED < 1050\n# error SDL for Mac OS X only supports deploying on 10.5 and above.\n#endif /* MAC_OS_X_VERSION_MIN_REQUIRED < 1050 */\n#if MAC_OS_X_VERSION_MAX_ALLOWED < 1060\n# error SDL for Mac OS X must be built with a 10.6 SDK or above.\n#endif /* MAC_OS_X_VERSION_MAX_ALLOWED < 1060 */\n#endif /* TARGET_OS_IPHONE */\n#endif /* defined(__APPLE__) */\n\n#if defined(__NetBSD__)\n#undef __NETBSD__\n#define __NETBSD__ 1\n#endif\n#if defined(__OpenBSD__)\n#undef __OPENBSD__\n#define __OPENBSD__ 1\n#endif\n#if defined(__OS2__)\n#undef __OS2__\n#define __OS2__ 1\n#endif\n#if defined(osf) || defined(__osf) || defined(__osf__) || defined(_OSF_SOURCE)\n#undef __OSF__\n#define __OSF__ 1\n#endif\n#if defined(__QNXNTO__)\n#undef __QNXNTO__\n#define __QNXNTO__ 1\n#endif\n#if defined(riscos) || defined(__riscos) || defined(__riscos__)\n#undef __RISCOS__\n#define __RISCOS__ 1\n#endif\n#if defined(__SVR4)\n#undef __SOLARIS__\n#define __SOLARIS__ 1\n#endif\n#if defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__)\n#undef __WIN32__\n#define __WIN32__ 1\n#endif\n#if defined(__PSP__)\n#undef __PSP__\n#define __PSP__ 1\n#endif\n\n#include \"begin_code.h\"\n/* Set up for C function definitions, even when using C++ */\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/**\n * \\brief Gets the name of the platform.\n */\n", "right_context": "\n/* Ends C function definitions when using C++ */\n#ifdef __cplusplus\n}\n#endif\n#include \"close_code.h\"\n\n#endif /* _SDL_platform_h */\n\n/* vi: set ts=4 sw=4 expandtab: */\n", "groundtruth": "extern DECLSPEC const char * SDLCALL SDL_GetPlatform (void);\r\n", "crossfile_context": ""} {"task_id": "HLS_for_CNN", "path": "HLS_for_CNN/common/inc/SDL/SDL_rwops.h", "left_context": "/*\n Simple DirectMedia Layer\n Copyright (C) 1997-2013 Sam Lantinga \n\n This software is provided 'as-is', without any express or implied\n warranty. In no event will the authors be held liable for any damages\n arising from the use of this software.\n\n Permission is granted to anyone to use this software for any purpose,\n including commercial applications, and to alter it and redistribute it\n freely, subject to the following restrictions:\n\n 1. The origin of this software must not be misrepresented; you must not\n claim that you wrote the original software. If you use this software\n in a product, an acknowledgment in the product documentation would be\n appreciated but is not required.\n 2. Altered source versions must be plainly marked as such, and must not be\n misrepresented as being the original software.\n 3. This notice may not be removed or altered from any source distribution.\n*/\n\n/**\n * \\file SDL_rwops.h\n *\n * This file provides a general interface for SDL to read and write\n * data streams. It can easily be extended to files, memory, etc.\n */\n\n#ifndef _SDL_rwops_h\n#define _SDL_rwops_h\n\n#include \"SDL_stdinc.h\"\n#include \"SDL_error.h\"\n\n#include \"begin_code.h\"\n/* Set up for C function definitions, even when using C++ */\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/* RWops Types */\n#define SDL_RWOPS_UNKNOWN 0 /* Unknown stream type */\n#define SDL_RWOPS_WINFILE 1 /* Win32 file */\n#define SDL_RWOPS_STDFILE 2 /* Stdio file */\n#define SDL_RWOPS_JNIFILE 3 /* Android asset */\n#define SDL_RWOPS_MEMORY 4 /* Memory stream */\n#define SDL_RWOPS_MEMORY_RO 5 /* Read-Only memory stream */\n\n/**\n * This is the read/write operation structure -- very basic.\n */\ntypedef struct SDL_RWops\n{\n /**\n * Return the size of the file in this rwops, or -1 if unknown\n */\n Sint64 (SDLCALL * size) (struct SDL_RWops * context);\n\n /**\n * Seek to \\c offset relative to \\c whence, one of stdio's whence values:\n * RW_SEEK_SET, RW_SEEK_CUR, RW_SEEK_END\n *\n * \\return the final offset in the data stream, or -1 on error.\n */\n Sint64 (SDLCALL * seek) (struct SDL_RWops * context, Sint64 offset,\n int whence);\n\n /**\n * Read up to \\c maxnum objects each of size \\c size from the data\n * stream to the area pointed at by \\c ptr.\n *\n * \\return the number of objects read, or 0 at error or end of file.\n */\n size_t (SDLCALL * read) (struct SDL_RWops * context, void *ptr,\n size_t size, size_t maxnum);\n\n /**\n * Write exactly \\c num objects each of size \\c size from the area\n * pointed at by \\c ptr to data stream.\n *\n * \\return the number of objects written, or 0 at error or end of file.\n */\n size_t (SDLCALL * write) (struct SDL_RWops * context, const void *ptr,\n size_t size, size_t num);\n\n /**\n * Close and free an allocated SDL_RWops structure.\n *\n * \\return 0 if successful or -1 on write error when flushing data.\n */\n int (SDLCALL * close) (struct SDL_RWops * context);\n\n Uint32 type;\n union\n {\n#if defined(ANDROID)\n struct\n {\n void *fileNameRef;\n void *inputStreamRef;\n void *readableByteChannelRef;\n void *readMethod;\n void *assetFileDescriptorRef;\n long position;\n long size;\n long offset;\n int fd;\n } androidio;\n#elif defined(__WIN32__)\n struct\n {\n SDL_bool append;\n void *h;\n struct\n {\n void *data;\n size_t size;\n size_t left;\n } buffer;\n } windowsio;\n#endif\n\n#ifdef HAVE_STDIO_H\n struct\n {\n SDL_bool autoclose;\n FILE *fp;\n } stdio;\n#endif\n struct\n {\n Uint8 *base;\n Uint8 *here;\n Uint8 *stop;\n } mem;\n struct\n {\n void *data1;\n void *data2;\n } unknown;\n } hidden;\n\n} SDL_RWops;\n\n\n/**\n * \\name RWFrom functions\n *\n * Functions to create SDL_RWops structures from various data streams.\n */\n/*@{*/\n\nextern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFile(const char *file,\n const char *mode);\n\n#ifdef HAVE_STDIO_H\nextern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFP(FILE * fp,\n SDL_bool autoclose);\n#else\nextern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFP(void * fp,\n SDL_bool autoclose);\n#endif\n\nextern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromMem(void *mem, int size);\nextern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromConstMem(const void *mem,\n int size);\n\n/*@}*//*RWFrom functions*/\n\n\nextern DECLSPEC SDL_RWops *SDLCALL SDL_AllocRW(void);\nextern DECLSPEC void SDLCALL SDL_FreeRW(SDL_RWops * area);\n\n#define RW_SEEK_SET 0 /**< Seek from the beginning of data */\n#define RW_SEEK_CUR 1 /**< Seek relative to current read point */\n#define RW_SEEK_END 2 /**< Seek relative to the end of data */\n\n/**\n * \\name Read/write macros\n *\n * Macros to easily read and write from an SDL_RWops structure.\n */\n/*@{*/\n#define SDL_RWsize(ctx) (ctx)->size(ctx)\n#define SDL_RWseek(ctx, offset, whence) (ctx)->seek(ctx, offset, whence)\n#define SDL_RWtell(ctx) (ctx)->seek(ctx, 0, RW_SEEK_CUR)\n#define SDL_RWread(ctx, ptr, size, n) (ctx)->read(ctx, ptr, size, n)\n#define SDL_RWwrite(ctx, ptr, size, n) (ctx)->write(ctx, ptr, size, n)\n#define SDL_RWclose(ctx) (ctx)->close(ctx)\n/*@}*//*Read/write macros*/\n\n\n/**\n * \\name Read endian functions\n *\n * Read an item of the specified endianness and return in native format.\n */\n/*@{*/\nextern DECLSPEC Uint8 SDLCALL SDL_ReadU8(SDL_RWops * src);\nextern DECLSPEC Uint16 SDLCALL SDL_ReadLE16(SDL_RWops * src);\nextern DECLSPEC Uint16 SDLCALL SDL_ReadBE16(SDL_RWops * src);\nextern DECLSPEC Uint32 SDLCALL SDL_ReadLE32(SDL_RWops * src);\nextern DECLSPEC Uint32 SDLCALL SDL_ReadBE32(SDL_RWops * src);\nextern DECLSPEC Uint64 SDLCALL SDL_ReadLE64(SDL_RWops * src);\nextern DECLSPEC Uint64 SDLCALL SDL_ReadBE64(SDL_RWops * src);\n/*@}*//*Read endian functions*/\n\n/**\n * \\name Write endian functions\n *\n * Write an item of native format to the specified endianness.\n */\n/*@{*/\nextern DECLSPEC size_t SDLCALL SDL_WriteU8(SDL_RWops * dst, Uint8 value);\n", "right_context": "extern DECLSPEC size_t SDLCALL SDL_WriteBE16(SDL_RWops * dst, Uint16 value);\nextern DECLSPEC size_t SDLCALL SDL_WriteLE32(SDL_RWops * dst, Uint32 value);\nextern DECLSPEC size_t SDLCALL SDL_WriteBE32(SDL_RWops * dst, Uint32 value);\nextern DECLSPEC size_t SDLCALL SDL_WriteLE64(SDL_RWops * dst, Uint64 value);\nextern DECLSPEC size_t SDLCALL SDL_WriteBE64(SDL_RWops * dst, Uint64 value);\n/*@}*//*Write endian functions*/\n\n\n/* Ends C function definitions when using C++ */\n#ifdef __cplusplus\n}\n#endif\n#include \"close_code.h\"\n\n#endif /* _SDL_rwops_h */\n\n/* vi: set ts=4 sw=4 expandtab: */\n", "groundtruth": "extern DECLSPEC size_t SDLCALL SDL_WriteLE16(SDL_RWops * dst, Uint16 value);\r\n", "crossfile_context": ""} {"task_id": "HLS_for_CNN", "path": "HLS_for_CNN/common/inc/SDL/SDL_system.h", "left_context": "/*\n Simple DirectMedia Layer\n Copyright (C) 1997-2013 Sam Lantinga \n\n This software is provided 'as-is', without any express or implied\n warranty. In no event will the authors be held liable for any damages\n arising from the use of this software.\n\n Permission is granted to anyone to use this software for any purpose,\n including commercial applications, and to alter it and redistribute it\n freely, subject to the following restrictions:\n\n 1. The origin of this software must not be misrepresented; you must not\n claim that you wrote the original software. If you use this software\n in a product, an acknowledgment in the product documentation would be\n appreciated but is not required.\n 2. Altered source versions must be plainly marked as such, and must not be\n misrepresented as being the original software.\n 3. This notice may not be removed or altered from any source distribution.\n*/\n\n/**\n * \\file SDL_system.h\n *\n * Include file for platform specific SDL API functions\n */\n\n#ifndef _SDL_system_h\n#define _SDL_system_h\n\n#include \"SDL_stdinc.h\"\n\n#if defined(__IPHONEOS__) && __IPHONEOS__\n#include \"SDL_video.h\"\n#include \"SDL_keyboard.h\"\n#endif\n\n#include \"begin_code.h\"\n/* Set up for C function definitions, even when using C++ */\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/* Platform specific functions for iOS */\n#if defined(__IPHONEOS__) && __IPHONEOS__\n\nextern DECLSPEC int SDLCALL SDL_iPhoneSetAnimationCallback(SDL_Window * window, int interval, void (*callback)(void*), void *callbackParam);\nextern DECLSPEC void SDLCALL SDL_iPhoneSetEventPump(SDL_bool enabled);\n\n#endif /* __IPHONEOS__ */\n\n\n/* Platform specific functions for Android */\n#if defined(__ANDROID__) && __ANDROID__\n\n/* Get the JNI environment for the current thread\n This returns JNIEnv*, but the prototype is void* so we don't need jni.h\n */\nextern DECLSPEC void * SDLCALL SDL_AndroidGetJNIEnv();\n\n/* Get the SDL Activity object for the application\n This returns jobject, but the prototype is void* so we don't need jni.h\n The jobject returned by SDL_AndroidGetActivity is a local reference.\n It is the caller's responsibility to properly release it\n (using env->Push/PopLocalFrame or manually with env->DeleteLocalRef)\n */\nextern DECLSPEC void * SDLCALL SDL_AndroidGetActivity();\n\n/* See the official Android developer guide for more information:\n http://developer.android.com/guide/topics/data/data-storage.html\n*/\n#define SDL_ANDROID_EXTERNAL_STORAGE_READ 0x01\n#define SDL_ANDROID_EXTERNAL_STORAGE_WRITE 0x02\n\n/* Get the path used for internal storage for this application.\n This path is unique to your application and cannot be written to\n by other applications.\n */\nextern DECLSPEC const char * SDLCALL SDL_AndroidGetInternalStoragePath();\n\n/* Get the current state of external storage, a bitmask of these values:\n SDL_ANDROID_EXTERNAL_STORAGE_READ\n SDL_ANDROID_EXTERNAL_STORAGE_WRITE\n If external storage is currently unavailable, this will return 0.\n*/\n", "right_context": "\n/* Get the path used for external storage for this application.\n This path is unique to your application, but is public and can be\n written to by other applications.\n */\nextern DECLSPEC const char * SDLCALL SDL_AndroidGetExternalStoragePath();\n\n#endif /* __ANDROID__ */\n\n\n/* Ends C function definitions when using C++ */\n#ifdef __cplusplus\n}\n#endif\n#include \"close_code.h\"\n\n#endif /* _SDL_system_h */\n\n/* vi: set ts=4 sw=4 expandtab: */\n", "groundtruth": "extern DECLSPEC int SDLCALL SDL_AndroidGetExternalStorageState();\r\n", "crossfile_context": ""} {"task_id": "HLS_for_CNN", "path": "HLS_for_CNN/common/inc/SDL/SDL_test_font.h", "left_context": "/*\n Simple DirectMedia Layer\n Copyright (C) 1997-2013 Sam Lantinga \n\n This software is provided 'as-is', without any express or implied\n warranty. In no event will the authors be held liable for any damages\n arising from the use of this software.\n\n Permission is granted to anyone to use this software for any purpose,\n including commercial applications, and to alter it and redistribute it\n freely, subject to the following restrictions:\n\n 1. The origin of this software must not be misrepresented; you must not\n claim that you wrote the original software. If you use this software\n in a product, an acknowledgment in the product documentation would be\n appreciated but is not required.\n 2. Altered source versions must be plainly marked as such, and must not be\n misrepresented as being the original software.\n 3. This notice may not be removed or altered from any source distribution.\n*/\n\n/**\n * \\file SDL_test_font.h\n *\n * Include file for SDL test framework.\n *\n * This code is a part of the SDL2_test library, not the main SDL library.\n */\n\n#ifndef _SDL_test_font_h\n#define _SDL_test_font_h\n\n#include \"begin_code.h\"\n/* Set up for C function definitions, even when using C++ */\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/* Function prototypes */\n\n/**\n * \\brief Draw a string in the currently set font.\n *\n * \\param renderer The renderer to draw on.\n * \\param x The X coordinate of the upper left corner of the string.\n * \\param y The Y coordinate of the upper left corner of the string.\n * \\param s The string to draw.\n *\n * \\returns Returns 0 on success, -1 on failure.\n */\n", "right_context": "\n\n/* Ends C function definitions when using C++ */\n#ifdef __cplusplus\n}\n#endif\n#include \"close_code.h\"\n\n#endif /* _SDL_test_font_h */\n\n/* vi: set ts=4 sw=4 expandtab: */\n", "groundtruth": "int SDLTest_DrawString(SDL_Renderer * renderer, int x, int y, const char *s);\r\n", "crossfile_context": ""} {"task_id": "HLS_for_CNN", "path": "HLS_for_CNN/common/inc/SDL/SDL_touch.h", "left_context": "/*\n Simple DirectMedia Layer\n Copyright (C) 1997-2013 Sam Lantinga \n\n This software is provided 'as-is', without any express or implied\n warranty. In no event will the authors be held liable for any damages\n arising from the use of this software.\n\n Permission is granted to anyone to use this software for any purpose,\n including commercial applications, and to alter it and redistribute it\n freely, subject to the following restrictions:\n\n 1. The origin of this software must not be misrepresented; you must not\n claim that you wrote the original software. If you use this software\n in a product, an acknowledgment in the product documentation would be\n appreciated but is not required.\n 2. Altered source versions must be plainly marked as such, and must not be\n misrepresented as being the original software.\n 3. This notice may not be removed or altered from any source distribution.\n*/\n\n/**\n * \\file SDL_touch.h\n *\n * Include file for SDL touch event handling.\n */\n\n#ifndef _SDL_touch_h\n#define _SDL_touch_h\n\n#include \"SDL_stdinc.h\"\n#include \"SDL_error.h\"\n#include \"SDL_video.h\"\n\n#include \"begin_code.h\"\n/* Set up for C function definitions, even when using C++ */\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\ntypedef Sint64 SDL_TouchID;\ntypedef Sint64 SDL_FingerID;\n\ntypedef struct SDL_Finger\n{\n SDL_FingerID id;\n float x;\n float y;\n float pressure;\n} SDL_Finger;\n\n/* Used as the device ID for mouse events simulated with touch input */\n#define SDL_TOUCH_MOUSEID ((Uint32)-1)\n\n\n/* Function prototypes */\n\n/**\n * \\brief Get the number of registered touch devices.\n */\n", "right_context": "\n/**\n * \\brief Get the touch ID with the given index, or 0 if the index is invalid.\n */\nextern DECLSPEC SDL_TouchID SDLCALL SDL_GetTouchDevice(int index);\n\n/**\n * \\brief Get the number of active fingers for a given touch device.\n */\nextern DECLSPEC int SDLCALL SDL_GetNumTouchFingers(SDL_TouchID touchID);\n\n/**\n * \\brief Get the finger object of the given touch, with the given index.\n */\nextern DECLSPEC SDL_Finger * SDLCALL SDL_GetTouchFinger(SDL_TouchID touchID, int index);\n\n/* Ends C function definitions when using C++ */\n#ifdef __cplusplus\n}\n#endif\n#include \"close_code.h\"\n\n#endif /* _SDL_touch_h */\n\n/* vi: set ts=4 sw=4 expandtab: */\n", "groundtruth": "extern DECLSPEC int SDLCALL SDL_GetNumTouchDevices(void);\r\n", "crossfile_context": ""} {"task_id": "HLS_for_CNN", "path": "HLS_for_CNN/common/inc/SDL/close_code.h", "left_context": "/*\n Simple DirectMedia Layer\n Copyright (C) 1997-2013 Sam Lantinga \n\n This software is provided 'as-is', without any express or implied\n warranty. In no event will the authors be held liable for any damages\n arising from the use of this software.\n\n Permission is granted to anyone to use this software for any purpose,\n including commercial applications, and to alter it and redistribute it\n freely, subject to the following restrictions:\n\n 1. The origin of this software must not be misrepresented; you must not\n claim that you wrote the original software. If you use this software\n in a product, an acknowledgment in the product documentation would be\n appreciated but is not required.\n 2. Altered source versions must be plainly marked as such, and must not be\n misrepresented as being the original software.\n 3. This notice may not be removed or altered from any source distribution.\n*/\n\n/**\n * \\file close_code.h\n *\n * This file reverses the effects of begin_code.h and should be included\n * after you finish any function and structure declarations in your headers\n */\n\n#undef _begin_code_h\n\n/* Reset structure packing at previous byte alignment */\n#if defined(_MSC_VER) || defined(__MWERKS__) || defined(__WATCOMC__) || defined(__BORLANDC__)\n#ifdef __BORLANDC__\n", "right_context": "", "groundtruth": "#pragma nopackwarning\r\n#endif\r\n#pragma pack(pop)\r\n#endif /* Compiler needs structure packing set */\r\n", "crossfile_context": ""} {"task_id": "2x2NTT", "path": "2x2NTT/dilithium-256/hardware_code/address_encoder_decoder.h", "left_context": "/*\n * From our research paper \"High-Performance Hardware Implementation of CRYSTALS-Dilithium\"\n * by Luke Beckwith, Duc Tri Nguyen, Kris Gaj\n * at George Mason University, USA\n * https://eprint.iacr.org/2021/1451.pdf\n * =============================================================================\n * Copyright (c) 2021 by Cryptographic Engineering Research Group (CERG)\n * ECE Department, George Mason University\n * Fairfax, VA, U.S.A.\n * Author: Duc Tri Nguyen\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * =============================================================================\n * @author Duc Tri Nguyen \n */\n\n#ifndef ADDRESS_ENCODER_DECODER_H\n#define ADDRESS_ENCODER_DECODER_H\n\n", "right_context": "\n#endif\n", "groundtruth": "unsigned resolve_address(enum MAPPING mapping, unsigned addr);\n", "crossfile_context": ""} {"task_id": "2x2NTT", "path": "2x2NTT/falcon-1024/hardware_code/ntt2x2.h", "left_context": "#ifndef NTT2x2_H\n#define NTT2x2_H\n\n#include \n#include \"config.h\"\n\n\nvoid update_indexes(unsigned tw_i[4],\n const unsigned tw_base_i[4],\n const unsigned s, enum OPERATION mode);\n\n", "right_context": "\nvoid ntt2x2_mul(bram *ram, const bram *mul_ram, enum MAPPING mapping);\n\nvoid ntt2x2_invntt(bram *ram, enum OPERATION mode, enum MAPPING mapping);\n\n#endif\n", "groundtruth": "void ntt2x2_fwdntt(bram *ram, enum OPERATION mode, enum MAPPING mapping);\n", "crossfile_context": ""} {"task_id": "2x2NTT", "path": "2x2NTT/falcon-512/consts.h", "left_context": "#ifndef CONSTS_H\n#define CONSTS_H\n\n#include \n#include \"params.h\"\n\nextern const data_t zetas_barrett[FALCON_N];\n", "right_context": "\n#endif \n", "groundtruth": "extern const data_t MUL_RAM[FALCON_N];\n", "crossfile_context": ""} {"task_id": "2x2NTT", "path": "2x2NTT/dilithium-256/hardware_code/ntt2x2_test.cpp", "left_context": "/*\n * From our research paper \"High-Performance Hardware Implementation of CRYSTALS-Dilithium\"\n * by Luke Beckwith, Duc Tri Nguyen, Kris Gaj\n * at George Mason University, USA\n * https://eprint.iacr.org/2021/1451.pdf\n * =============================================================================\n * Copyright (c) 2021 by Cryptographic Engineering Research Group (CERG)\n * ECE Department, George Mason University\n * Fairfax, VA, U.S.A.\n * Author: Duc Tri Nguyen\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * =============================================================================\n * @author Duc Tri Nguyen \n */\n\n#include \n#include \n#include \n#include \n\n#include \"../params.h\"\n#include \"../reference_code/ref_ntt2x2.h\"\n#include \"../reference_code/ref_ntt.h\"\n#include \"../consts.h\"\n#include \"config.h\"\n#include \"ntt2x2.h\"\n#include \"address_encoder_decoder.h\"\n#include \"util.h\"\n\n/* \n * Forward NTT Test, this function give correct result as in reference Forward NTT \n */\nint ntt2x2_NTT(data_t r_gold[DILITHIUM_N])\n{\n bram ram;\n", "right_context": " ntt2x2_fwdntt(&ram, FORWARD_NTT_MODE, NATURAL);\n\n // Run the reference code\n ntt2x2_ref(r_gold);\n\n // print_array(r_gold, DILITHIUM_N, \"r_gold\");\n // print_reshaped_array(&ram, BRAM_DEPT, \"ram\");\n\n int ret = compare_bram_array(&ram, r_gold, \"ntt2x2_NTT\", AFTER_NTT, 0);\n\n return ret;\n}\n\n/* \n * Inverse NTT Test, this function give correct result as in reference Inverse NTT \n * Support divide by 2. Correct. Verified. \n */\nint ntt2x2_INVNTT(data_t r_gold[DILITHIUM_N])\n{\n bram ram;\n // Load data into BRAM, 4 coefficients per line\n reshape(&ram, r_gold);\n // Compute NTT\n ntt2x2_invntt(&ram, INVERSE_NTT_MODE, NATURAL);\n\n // Run the reference code\n invntt2x2_ref(r_gold);\n\n // print_array(r_gold, DILITHIUM_N, \"r_gold\");\n // print_reshaped_array(&ram, BRAM_DEPT, \"ram\");\n\n int ret = compare_bram_array(&ram, r_gold, \"ntt2x2_INVNTT\", AFTER_INVNTT, 0);\n\n return ret;\n}\n\n/* \n * Multiplier between two memory test.\n * Correct, verified, optimized. \n */\nint ntt2x2_MUL(data_t r_mul[DILITHIUM_N], data_t test_ram[DILITHIUM_N])\n{\n // Compare with the reference code\n bram ram, mul_ram;\n\n // Load data into BRAM, 4 coefficients per line\n reshape(&ram, r_mul);\n reshape(&mul_ram, test_ram);\n\n // MUL Operation using NTT\n // Enable DECODE_TRUE only after NTT transform\n // This example we only do pointwise multiplication\n ntt2x2_mul(&ram, &mul_ram, NATURAL);\n\n // Run the reference code\n pointwise_barrett(r_mul, r_mul, test_ram);\n\n int ret = compare_bram_array(&ram, r_mul, \"ntt2x2_MUL\", NATURAL, 0);\n\n return ret;\n}\n\nint polymul(data_t a[DILITHIUM_N], data_t b[DILITHIUM_N])\n{\n bram ram_a_ntt, ram_b_ntt;\n int ret = 0;\n reshape(&ram_a_ntt, a);\n reshape(&ram_b_ntt, b);\n\n // Test Hardware Multiplication\n ntt2x2_fwdntt(&ram_a_ntt, FORWARD_NTT_MODE, NATURAL);\n ntt2x2_fwdntt(&ram_b_ntt, FORWARD_NTT_MODE, NATURAL);\n\n ntt(a);\n ntt(b);\n ret |= compare_bram_array(&ram_a_ntt, a, \"FORWARD_NTT_MODE A\", AFTER_NTT, 0);\n ret |= compare_bram_array(&ram_b_ntt, b, \"FORWARD_NTT_MODE B\", AFTER_NTT, 0);\n\n ntt2x2_mul(&ram_a_ntt, &ram_b_ntt, NATURAL);\n pointwise_barrett(a, a, b);\n ret |= compare_bram_array(&ram_a_ntt, a, \"MUL A*B\", AFTER_NTT, 0);\n\n ntt2x2_invntt(&ram_a_ntt, INVERSE_NTT_MODE, AFTER_NTT);\n invntt(a);\n\n ret |= compare_bram_array(&ram_a_ntt, a, \"INVERSE_NTT_MODE(A*B)\", NATURAL, 0);\n\n // Test Software Multiplication\n\n return ret;\n}\n\n#define TESTS 1000000\n\nint main()\n{\n printf(\"Test for DILITHIUM_N = %u\\n\", DILITHIUM_N);\n srand(time(0));\n data_t r_invntt[DILITHIUM_N],\n r_mul[DILITHIUM_N],\n test_ram[DILITHIUM_N],\n r_ntt[DILITHIUM_N],\n a[DILITHIUM_N],\n b[DILITHIUM_N];\n data_t t1, t2, t3, t4, t5;\n int ret = 0;\n\n for (int k = 0; k < TESTS; k++)\n {\n for (int i = 0; i < DILITHIUM_N; i++)\n {\n // t1 = i;\n t1 = rand() % DILITHIUM_Q;\n r_invntt[i] = t1;\n\n t2 = rand() % DILITHIUM_Q;\n r_mul[i] = t2;\n\n t3 = rand() % DILITHIUM_Q;\n test_ram[i] = t3;\n\n t4 = rand() % DILITHIUM_Q;\n r_ntt[i] = t4;\n\n t5 = rand() % DILITHIUM_Q;\n a[i] = t5 % DILITHIUM_Q;\n b[i] = t5 * 31 % DILITHIUM_Q;\n }\n\n ret |= ntt2x2_MUL(r_mul, test_ram);\n ret |= ntt2x2_NTT(r_ntt);\n ret |= ntt2x2_INVNTT(r_invntt);\n ret |= polymul(a, b);\n\n if (ret)\n {\n break;\n }\n }\n\n if (ret)\n {\n printf(\"ERROR\\n\");\n }\n else\n {\n printf(\"OK\\n\");\n }\n\n return ret;\n}\n", "groundtruth": " // Load data into BRAM, 4 coefficients per line\n reshape(&ram, r_gold);\n", "crossfile_context": ""} {"task_id": "2x2NTT", "path": "2x2NTT/dilithium-256/hardware_code/util.cpp", "left_context": "/*\n * From our research paper \"High-Performance Hardware Implementation of CRYSTALS-Dilithium\"\n * by Luke Beckwith, Duc Tri Nguyen, Kris Gaj\n * at George Mason University, USA\n * https://eprint.iacr.org/2021/1451.pdf\n * =============================================================================\n * Copyright (c) 2021 by Cryptographic Engineering Research Group (CERG)\n * ECE Department, George Mason University\n * Fairfax, VA, U.S.A.\n * Author: Duc Tri Nguyen\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * =============================================================================\n * @author Duc Tri Nguyen \n */\n\n#include \n#include \"config.h\"\n#include \"ram_util.h\"\n#include \"address_encoder_decoder.h\"\n\nvoid print_reshaped_array(bram *ram, int bound, const char *string)\n{\n data_t coeffs[4];\n\n printf(\"%s :\\n\", string);\n for (int i = 0; i < bound; i++)\n {\n read_ram(coeffs, ram, i);\n\n for (int j = 0; j < 4; j++)\n {\n printf(\"%u, \", coeffs[j]);\n }\n }\n printf(\"\\n\");\n}\n\nvoid print_index_reshaped_array(bram *ram, int index)\n{\n", "right_context": "\n read_ram(coeffs, ram, index);\n\n printf(\"[%d]: \", index);\n for (int j = 0; j < 4; j++)\n {\n printf(\"%u, \", coeffs[j]);\n }\n printf(\"\\n\");\n}\n\n// Store 4 coefficients per line\nvoid reshape(bram *ram, const data_t in[DILITHIUM_N])\n{\n data_t coeffs[4];\n for (int i = 0; i < BRAM_DEPT; i++)\n {\n for (int j = 0; j < 4; j++)\n {\n coeffs[j] = in[4 * i + j];\n }\n write_ram(ram, i, coeffs);\n }\n}\n\n// Compare array\nint compare_array(data_t *a, data_t *b, int bound)\n{\n for (int i = 0; i < bound; i++)\n {\n if (a[i] != b[i])\n return 1;\n }\n return 0;\n}\n\nint compare_bram_array(bram *ram, data_t array[DILITHIUM_N],\n const char *string,\n enum MAPPING mapping, int print_out)\n{\n data_t a, b, c, d;\n data_t ta, tb, tc, td, t[4];\n int error = 0;\n int addr;\n\n for (int i = 0; i < DILITHIUM_N; i += 4)\n {\n // Get golden result\n a = (array[i + 0] + DILITHIUM_Q) % DILITHIUM_Q;\n b = (array[i + 1] + DILITHIUM_Q) % DILITHIUM_Q;\n c = (array[i + 2] + DILITHIUM_Q) % DILITHIUM_Q;\n d = (array[i + 3] + DILITHIUM_Q) % DILITHIUM_Q;\n\n addr = i / 4;\n if (print_out)\n {\n printf(\"%d: %d, %d, %d, %d\\n\", addr, a, b, c, d);\n }\n addr = resolve_address(mapping, addr);\n\n read_ram(t, ram, addr);\n\n ta = t[0] = (t[0] + DILITHIUM_Q) % DILITHIUM_Q;\n tb = t[1] = (t[1] + DILITHIUM_Q) % DILITHIUM_Q;\n tc = t[2] = (t[2] + DILITHIUM_Q) % DILITHIUM_Q;\n td = t[3] = (t[3] + DILITHIUM_Q) % DILITHIUM_Q;\n if (print_out)\n {\n printf(\"[%d]: |%d, %d, %d, %d|\\n\", i, ta, tb, tc, td);\n }\n\n // Quick xor, I hate long if-else clause\n if (print_out)\n {\n printf(\"--------------\\n\");\n }\n\n if ((ta != a) || (tb != b) || (tc != c) || (td != d))\n {\n printf(\"%s Error at index: %d => %d\\n\", string, i, addr);\n printf(\"gold: %12u | %12u | %12u | %12u [*]\\n\", a, b, c, d);\n printf(\"test: %12u | %12u | %12u | %12u\\n\", ta, tb, tc, td);\n error = 1;\n break;\n }\n }\n if (error)\n {\n return 1;\n }\n return 0;\n}\n", "groundtruth": " data_t coeffs[4];\n", "crossfile_context": ""} {"task_id": "2x2NTT", "path": "2x2NTT/dilithium-256/reference_code/ref_test_ntt_ntt2x2.cpp", "left_context": "/*\n * From our research paper \"High-Performance Hardware Implementation of CRYSTALS-Dilithium\"\n * by Luke Beckwith, Duc Tri Nguyen, Kris Gaj\n * at George Mason University, USA\n * https://eprint.iacr.org/2021/1451.pdf\n * =============================================================================\n * Copyright (c) 2021 by Cryptographic Engineering Research Group (CERG)\n * ECE Department, George Mason University\n * Fairfax, VA, U.S.A.\n * Author: Duc Tri Nguyen\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * =============================================================================\n * @author Duc Tri Nguyen \n */\n\n#include \n#include \n#include \"ref_ntt.h\"\n#include \"ref_ntt2x2.h\"\n\n#define TESTS 100000\n\nint compare_array(data_t *a_gold, data_t *a)\n{\n for (int i = 0; i < DILITHIUM_N; i++)\n {\n if ((a_gold[i] - a[i]) % DILITHIUM_Q != 0)\n {\n printf(\"%d: %d != %d\\n\", i, a_gold[i], a[i]);\n return 1;\n }\n }\n return 0;\n}\n\nint main()\n{\n data_t a[DILITHIUM_N] = {0}, a_gold[DILITHIUM_N] = {0};\n data_t tmp;\n srand(0);\n\n printf(\"Test Forward NTT = %u :\", TESTS);\n for (int j = 0; j < TESTS; j++)\n {\n // Test million times\n for (int i = 0; i < DILITHIUM_N; i++)\n {\n tmp = rand() % DILITHIUM_Q;\n a[i] = tmp;\n a_gold[i] = tmp;\n }\n\n ntt2x2_ref(a);\n // printf(\"=======\\n\");\n ntt(a_gold);\n\n if (compare_array(a_gold, a))\n {\n return 1;\n }\n }\n printf(\"OK\\n\");\n\n printf(\"Test Inverse NTT = %u :\", TESTS);\n for (int j = 0; j < TESTS; j++)\n {\n // Test million times\n", "right_context": " {\n tmp = rand() % DILITHIUM_Q;\n a[i] = tmp;\n a_gold[i] = tmp;\n }\n\n invntt2x2_ref(a);\n // printf(\"=======\\n\");\n invntt(a_gold);\n\n if (compare_array(a_gold, a))\n {\n return 1;\n }\n }\n printf(\"OK\\n\");\n return 0;\n}\n\n/*\n * Compile flags\n * gcc -o ref_test_ntt_ntt2x2 ref_ntt.c ref_ntt2x2.c ../consts.cpp ref_test_ntt_ntt2x2.c -Wall\n * ./ref_test_ntt_ntt2x2\n*/\n", "groundtruth": " for (int i = 0; i < DILITHIUM_N; i++)\n", "crossfile_context": ""} {"task_id": "2x2NTT", "path": "2x2NTT/falcon-1024/consts.cpp", "left_context": "#include \n#include \"params.h\"\n#include \"consts.h\"\n\n#if FALCON_N == 512\nextern const data_t zetas_barrett[] = {\n 1, -1479, -5146, 4043, -1305, 722, 5736, -4134, \n 3542, -3504, -2545, 3621, -1646, 1212, 3195, 5860, \n -4821, 2639, -2625, -949, -563, -2975, -3006, -2744, \n 5728, -4591, 5023, 5828, -3328, -5777, -4978, 1351, \n 2319, -1170, -955, -790, -3201, 3014, 5086, -1326, \n 4846, -2747, -3135, 3712, 4805, -3553, -1062, -2294, \n 3091, -81, -4320, -1000, -2963, -4896, -3051, 2366, \n -1177, -4255, -1635, -2768, -140, -1853, -4611, -726, \n 1260, 4388, 4632, -5755, 2426, 334, 1428, 1696, \n 2013, -3289, 729, 3241, 2881, 3284, -5092, -2089, \n -3694, -5179, -1759, -3707, 3382, -355, -2548, -4231, \n 3637, 3459, 145, -5542, -2731, -3932, -4890, -5911, \n -2842, 480, 1022, 9, -2468, 339, 5791, 544, \n -1673, 4278, -5331, -4989, -4177, -3584, 1381, -2525, \n -953, -3748, 827, 5767, 2476, 118, 2197, -5067, \n 3949, -3296, 4452, 2396, -4354, 130, 2837, -5374, \n 2401, 442, -5101, -1067, 390, 773, -3833, 3778, \n 354, 4861, -2912, 5698, 5012, -2481, 2859, -1045, \n 1017, -4885, 1632, -5084, 27, -3066, -3763, -1440, \n 1537, 242, 4714, -4143, -2678, 3704, 5019, -545, \n 1002, 5011, 5088, -4284, -4976, -1607, -3780, -875, \n -2437, 3646, 6022, 2987, -2566, -2187, -6039, -2422, \n -1065, 2143, -404, -4645, 1168, 5277, -1207, 3248, \n 493, -4096, -5444, 2381, -4337, -435, 1378, 1912, \n 2166, 3915, -113, -4919, -160, 3149, -3, 4437, \n 3636, 4938, 5291, 2704, -1426, -4654, 1663, -1777, \n 3364, 1689, 4057, -3271, -2847, -4414, 2174, 4372, \n -5042, -2305, 4053, 2645, 5195, -2780, -4895, 1484, \n -3247, -2686, -3978, -2969, -2370, 2865, 5332, 3510, \n 1630, -2126, 5407, 3186, -1153, -2884, -2249, -4048, \n -2399, -3400, -5191, -3136, -3000, 671, 3016, 243, \n -5559, 420, -2178, 1544, 3985, 4905, 3531, 476, \n 49, 1263, 5915, 1483, -2500, -1489, -1583, -5942, \n 1512, 350, -1815, 5383, 5369, -2057, -3202, 4493, \n -2738, -5868, -5735, 2655, -3009, 1693, 174, 723, \n -1975, -3757, 347, 2925, -3315, -426, 1858, 4754, \n 3030, 4115, 2361, -1843, 2908, 218, 3434, -3529, \n 3963, 576, 6142, -2447, 1954, -2051, -2882, -1805, \n 3991, -3969, -2767, 156, 2281, 5876, -2031, 5333, \n 3772, 418, 5908, -453, 5429, -4774, -4737, 1293, \n 295, 6099, 5766, 652, -4016, 4077, -3762, -2919, \n 325, -1404, -1146, -948, 5990, 1159, -3728, -4049, \n 3329, 4298, -168, 2692, 5961, -5106, -1962, 1594, \n -6122, -2555, -5184, -1200, 1360, 3956, -6119, 5297, \n -4079, -1058, 922, 441, 1958, 4322, 1112, 2078, \n 4046, 709, -3150, 1319, 4240, -3570, -6065, -835, \n 2459, 683, 3656, -64, -1566, 5782, -2948, -2503, \n -3123, -1747, -3054, -5486, -4433, -5919, 3834, -5257, \n -5241, -2920, -4169, -3127, -5468, 1010, -3482, 787, \n 5057, 4698, 4780, -3445, -192, 1321, 4912, -2049, \n 677, -5874, -6055, -3336, 1323, -2766, -52, 3174, \n 1579, -431, -2505, 5906, 3957, -2839, 151, -2127, \n -58, -241, 3532, -1003, 1956, -5009, -885, -6008, \n", "right_context": " 5079, -3262, 2169, -522, -4324, 4916, -4075, 5315, \n -1278, -2344, 1973, -5574, -3514, -1041, 5925, -1018, \n 654, 3565, 1702, 1987, -5529, 5206, 3199, -56, \n 6136, -5862, -5415, -3643, 4948, -6137, 400, -1728, \n 5339, 5446, 3710, 6093, 468, -3988, 316, -382, \n -2033, -3998, 3879, 1922, -1359, -5435, 973, -1254, \n};\n\n#elif FALCON_N == 1024\nextern const data_t zetas_barrett[] = {\n 1, -1479, -5146, 4043, -1305, 722, 5736, -4134, \n 3542, -3504, -2545, 3621, -1646, 1212, 3195, 5860, \n -4821, 2639, -2625, -949, -563, -2975, -3006, -2744, \n 5728, -4591, 5023, 5828, -3328, -5777, -4978, 1351, \n 2319, -1170, -955, -790, -3201, 3014, 5086, -1326, \n 4846, -2747, -3135, 3712, 4805, -3553, -1062, -2294, \n 3091, -81, -4320, -1000, -2963, -4896, -3051, 2366, \n -1177, -4255, -1635, -2768, -140, -1853, -4611, -726, \n 1260, 4388, 4632, -5755, 2426, 334, 1428, 1696, \n 2013, -3289, 729, 3241, 2881, 3284, -5092, -2089, \n -3694, -5179, -1759, -3707, 3382, -355, -2548, -4231, \n 3637, 3459, 145, -5542, -2731, -3932, -4890, -5911, \n -2842, 480, 1022, 9, -2468, 339, 5791, 544, \n -1673, 4278, -5331, -4989, -4177, -3584, 1381, -2525, \n -953, -3748, 827, 5767, 2476, 118, 2197, -5067, \n 3949, -3296, 4452, 2396, -4354, 130, 2837, -5374, \n 2401, 442, -5101, -1067, 390, 773, -3833, 3778, \n 354, 4861, -2912, 5698, 5012, -2481, 2859, -1045, \n 1017, -4885, 1632, -5084, 27, -3066, -3763, -1440, \n 1537, 242, 4714, -4143, -2678, 3704, 5019, -545, \n 1002, 5011, 5088, -4284, -4976, -1607, -3780, -875, \n -2437, 3646, 6022, 2987, -2566, -2187, -6039, -2422, \n -1065, 2143, -404, -4645, 1168, 5277, -1207, 3248, \n 493, -4096, -5444, 2381, -4337, -435, 1378, 1912, \n 2166, 3915, -113, -4919, -160, 3149, -3, 4437, \n 3636, 4938, 5291, 2704, -1426, -4654, 1663, -1777, \n 3364, 1689, 4057, -3271, -2847, -4414, 2174, 4372, \n -5042, -2305, 4053, 2645, 5195, -2780, -4895, 1484, \n -3247, -2686, -3978, -2969, -2370, 2865, 5332, 3510, \n 1630, -2126, 5407, 3186, -1153, -2884, -2249, -4048, \n -2399, -3400, -5191, -3136, -3000, 671, 3016, 243, \n -5559, 420, -2178, 1544, 3985, 4905, 3531, 476, \n 49, 1263, 5915, 1483, -2500, -1489, -1583, -5942, \n 1512, 350, -1815, 5383, 5369, -2057, -3202, 4493, \n -2738, -5868, -5735, 2655, -3009, 1693, 174, 723, \n -1975, -3757, 347, 2925, -3315, -426, 1858, 4754, \n 3030, 4115, 2361, -1843, 2908, 218, 3434, -3529, \n 3963, 576, 6142, -2447, 1954, -2051, -2882, -1805, \n 3991, -3969, -2767, 156, 2281, 5876, -2031, 5333, \n 3772, 418, 5908, -453, 5429, -4774, -4737, 1293, \n 295, 6099, 5766, 652, -4016, 4077, -3762, -2919, \n 325, -1404, -1146, -948, 5990, 1159, -3728, -4049, \n 3329, 4298, -168, 2692, 5961, -5106, -1962, 1594, \n -6122, -2555, -5184, -1200, 1360, 3956, -6119, 5297, \n -4079, -1058, 922, 441, 1958, 4322, 1112, 2078, \n 4046, 709, -3150, 1319, 4240, -3570, -6065, -835, \n 2459, 683, 3656, -64, -1566, 5782, -2948, -2503, \n -3123, -1747, -3054, -5486, -4433, -5919, 3834, -5257, \n -5241, -2920, -4169, -3127, -5468, 1010, -3482, 787, \n 5057, 4698, 4780, -3445, -192, 1321, 4912, -2049, \n 677, -5874, -6055, -3336, 1323, -2766, -52, 3174, \n 1579, -431, -2505, 5906, 3957, -2839, 151, -2127, \n -58, -241, 3532, -1003, 1956, -5009, -885, -6008, \n 3477, -5681, 142, -1105, -2844, 3438, -975, 4212, \n -3029, -5594, 4782, 5886, -4213, 504, 2302, -605, \n -421, -4080, 3602, 6068, -3600, 3263, 6077, -4624, \n -4467, -4789, -5537, 4749, 4449, -5456, -147, -3789, \n 6118, -3818, 1190, -2683, 3860, 5445, -4536, -1050, \n 5079, -3262, 2169, -522, -4324, 4916, -4075, 5315, \n -1278, -2344, 1973, -5574, -3514, -1041, 5925, -1018, \n 654, 3565, 1702, 1987, -5529, 5206, 3199, -56, \n 6136, -5862, -5415, -3643, 4948, -6137, 400, -1728, \n 5339, 5446, 3710, 6093, 468, -3988, 316, -382, \n -2033, -3998, 3879, 1922, -1359, -5435, 973, -1254, \n 7, 1936, 845, 3723, 3154, 5054, 3285, -4360, \n 216, 50, -5526, 769, 767, -3805, -2213, 4153, \n 3120, -6105, -6086, 5646, -3941, 3753, 3536, 5370, \n 3229, 4730, -1706, 3929, 1282, -3572, 2021, -2832, \n 3944, 4099, 5604, -5530, 2171, -3480, -1265, 3007, \n -2945, 5349, 2633, 1406, -3232, -293, 4855, -3769, \n -2941, -567, -5662, 5289, 3837, 2595, 3221, 4273, \n 4050, -5207, 844, 5202, -980, -682, 4590, -5082, \n -3469, 6138, -4443, -3418, 4693, 2338, -2293, -417, \n 1802, 1555, 5103, -1891, -4411, -1590, 1223, -2334, \n -1280, 614, -24, -1371, -904, -2485, -5547, -5039, \n 881, -365, 1015, -1927, 5461, -2946, 2637, -4510, \n 4684, 3360, -5135, 63, -4987, 2373, 3670, 3808, \n 578, 5368, -450, 1944, -4661, -510, -2622, -5386, \n 5618, -1658, 5789, 3502, 5043, 826, 3090, 1398, \n 3065, 1506, -5703, 4483, -5900, 910, -4719, -751, \n 4518, 3094, 1160, 4820, 2730, 5411, -2253, 1868, \n 2478, -2840, 4194, 3019, -1783, -5078, -4565, 4974, \n -5170, 2672, -865, 1279, 189, 3116, -1763, 2209, \n -1530, 1694, -3869, -4423, 5832, 1350, -1734, -3815, \n -5275, -1790, -1251, -5410, 2035, 1040, -1882, -6125, \n -4770, 944, 5287, -3669, -5673, -3020, -5406, -4665, \n 4834, 2712, -2828, 4352, -4113, 72, 3840, -1842, \n 3451, -4094, -1241, 4378, -5781, -3045, -2643, 1095, \n 2873, 2827, -791, 2434, -1120, -2535, -21, -5808, \n 874, -2301, 170, -5650, 2307, 4289, -648, -150, \n -1030, -466, 3821, 1681, 4649, 5969, 2929, 6026, \n 1573, -3846, 3793, -6063, -502, 5118, 2602, -1901, \n 1849, 5776, -3268, 3795, -4301, -4523, 457, -8, \n -879, -2593, 982, -2276, 4218, 4390, -3454, -3758, \n -4504, 778, 530, 2626, 3578, 4697, -3466, 1701, \n -2046, 2940, -2957, -1481, 3317, -2532, 139, 3332, \n 343, -3448, 4538, -1908, -5211, 1866, 1208, -4727, \n -1705, 2450, -416, 814, 716, -2110, 2164, -5416, \n 5412, -4209, -3278, -5993, 3515, -438, 1218, 5061, \n -1536, -1721, 2429, -4103, 1373, -2982, 717, -3589, \n -3368, 4227, 4238, -612, -4222, 1526, -540, -125, \n 3163, 4032, 6127, -4840, 1389, -2068, 4404, -346, \n 3359, -3205, 5209, 1092, 3678, 4265, -1928, 464, \n 1826, 2926, 4489, -3171, 1136, 3449, 3708, -3238, \n 2065, 5826, 3495, 4564, -3534, 3961, -1756, 4145, \n 2275, 2461, 4267, 5653, 5063, -4176, -1518, -3765, \n -1275, 5508, -1176, -5734, 4860, 1125, -1445, -1131, \n -5987, -5596, 579, 3889, -2769, 3114, -5966, 212, \n -3975, 4883, -5835, 3087, 1417, 5676, -4505, 2257, \n 3744, 4963, 2528, -3056, 5102, -412, -5588, -5845, \n 4924, 4781, 1014, -448, 1327, 3607, 3942, -5232, \n 2717, 60, 3200, -1535, 5836, -4566, 2260, 68, \n 180, 4138, -4605, 2689, -1409, -5219, 204, 5509, \n -1468, -3981, -3407, 463, -1344, -3042, -2483, -2054, \n 4739, -4251, -5518, 1226, -3028, 5216, -364, -2360, \n -1236, -3017, -5246, 4475, 3121, 4705, 1057, -2600, \n -406, -1687, 146, 5268, 1403, 1804, 6094, -5189, \n -239, -2900, 994, 4554, 4670, -512, 5464, 4906, \n 3375, -2291, -3393, 4335, -4913, 3528, 3825, -4235, \n -2947, -3982, 636, 5609, -622, -1737, 5672, 4499, \n 5598, 3344, -1892, -3624, -5724, -1325, -1029, -1945, \n 5959, -2148, -3959, 5797, 2442, 1248, 5115, 4939, \n -1314, 1744, 2894, -3654, -5690, -2455, -3947, 338, \n 3343, -4119, 1522, -2151, -20, 5002, 4608, 5163, \n 4578, 377, -375, 1620, -1836, -425, -2185, -392, \n 6085, -4167, -1038, -923, -2231, -6092, 2800, 193, \n 506, 1255, 1392, 5784, 3276, -3338, 2212, -2674, \n -1942, -3408, 2575, 1165, 2776, -1178, -5478, 3511, \n};\n\n#else \n#error \"Support only FALCON_N = 256, 512, 1024\"\n#endif\n", "groundtruth": " 3477, -5681, 142, -1105, -2844, 3438, -975, 4212, \n -3029, -5594, 4782, 5886, -4213, 504, 2302, -605, \n -421, -4080, 3602, 6068, -3600, 3263, 6077, -4624, \n", "crossfile_context": ""} {"task_id": "2x2NTT", "path": "2x2NTT/falcon-1024/hardware_code/address_encoder_decoder.cpp", "left_context": "#include \n#include \n#include \"config.h\"\n\n/* \n * Figure out how to compute address decoder/encoder on fly. \n * However, for N=256, it's better to use table-based approach since it's fit in 1 LUT. \n * The only computation should take more than LUT. \n * Modulo can be replace by AND operation, divide can be replace by right shift as well. \n */\nunsigned resolve_address(enum MAPPING mapping, unsigned addr)\n{\n unsigned ram_i;\n", "right_context": " switch (mapping)\n {\n case AFTER_INVNTT:\n // This can be implemented with shift and mask\n ram_i = (addr % f)*4 + addr/f;\n break;\n\n case AFTER_NTT:\n // This can be implemented with shift and mask\n ram_i = (addr % 4)*f + addr/4;\n break;\n\n case NATURAL:\n ram_i = addr;\n break;\n }\n return ram_i;\n}\n", "groundtruth": " const unsigned f = FALCON_N >> 4;\n", "crossfile_context": ""} {"task_id": "2x2NTT", "path": "2x2NTT/falcon-1024/hardware_code/ntt2x2_fwdntt.cpp", "left_context": "#include \"../params.h\"\n#include \"ntt2x2.h\"\n#include \"ram_util.h\"\n#include \"butterfly_unit.h\"\n#include \"fifo.h\"\n#include \"address_encoder_decoder.h\"\n#include \"util.h\"\n\nvoid ntt2x2_fwdntt(bram *ram, enum OPERATION mode, enum MAPPING mapping)\n{\n // Initialize FIFO\n data_t fifo_i[DEPT_W] = {0};\n data_t fifo_a[DEPT_A] = {0};\n data_t fifo_b[DEPT_B] = {0};\n data_t fifo_c[DEPT_C] = {0};\n data_t fifo_d[DEPT_D] = {0};\n data_t fifo_w[DEPT_W][DEPT_W] = {{0}};\n\n // Initialize Forward NTT for 1024 or 256\n#if FALCON_MODE == 5\n unsigned fw_ntt_pattern[] = {6, 4, 2, 0, 6};\n#elif FALCON_MODE == 0\n unsigned fw_ntt_pattern[] = {4, 2, 0, 4};\n#endif \n unsigned s;\n\n // Initialize twiddle\n data_t w_in[4], w_out[4];\n\n // Intialize index\n data_t k, j;\n\n // Initialize coefficients\n", "right_context": " data_t data_in[4] = {0},\n data_out[4] = {0},\n data_fifo[4] = {0};\n\n // Initialize writeback\n unsigned count = 0; // 2-bit counter\n bool write_en = false;\n\n for (unsigned l = 0; l < FALCON_LOGN; l += 2)\n {\n for (unsigned i = 0; i < BRAM_DEPT; ++i)\n {\n /* ============================================== */\n\n if (i == 0)\n {\n k = j = 0;\n }\n\n /* ============================================== */\n // modify here\n unsigned addr = k + j;\n\n // Prepare address\n unsigned ram_i = resolve_address(mapping, addr);\n\n // Read ram by address\n // data_in = ram[ram_i];\n read_ram(data_in, ram, ram_i);\n\n // Write data_in to FIFO, extract output to data_fifo\n // In this mode, new_value[4] = null[4]\n read_write_fifo(mode, data_fifo, data_in, null, fifo_a,\n fifo_b, fifo_c, fifo_d, count);\n count = (count + 1) & 3;\n\n // Read Twiddle\n get_twiddle_factors(w_in, i, l, mode);\n\n /* ============================================== */\n // Rolling FIFO for index of RAM\n unsigned fi = FIFO(fifo_i, ram_i);\n\n // printf(\"--------------%d - %d <= %d\\n\", count, ram_i, addr);\n // print_array(fifo_i, DEPT_W, \"FIFO_I\");\n // print_array(fifo_a, DEPT_A, \"FIFO_A\");\n // print_array(fifo_b, DEPT_B, \"FIFO_B\");\n // print_array(fifo_c, DEPT_C, \"FIFO_C\");\n // print_array(fifo_d, DEPT_D, \"FIFO_D\");\n // print_array(data_in, 4, \"data_in\");\n \n /* \n * PIPO for twiddle factor, delay it by DEPT_W\n */\n PIPO(w_out, fifo_w, w_in);\n /* ============================================== */\n\n // Calculate\n buttefly_circuit(data_out, data_fifo, w_out, mode);\n // print_array(data_fifo, 4, \"i\");\n // print_array(w_out, 4, \"w\");\n // print_array(data_out, 4, \"o\");\n // printf(\"\\n\");\n \n /* ============================================== */\n // count equal the size of FIFO_I\n if (count == 0 && i != 0)\n {\n write_en = true;\n }\n\n if (write_en)\n {\n write_ram(ram, fi, data_out);\n }\n\n /* ============================================== */\n // Update loop\n if (mode == FORWARD_NTT_MODE)\n {\n s = fw_ntt_pattern[l >> 1];\n }\n else\n {\n s = l;\n }\n\n if (k + (1 << s) < BRAM_DEPT)\n {\n k += (1 << s);\n // printf(\"k = %d\\n\", k);\n }\n else\n {\n k = 0;\n ++j;\n }\n\n }\n /* ============================================== */\n // print_reshaped_array(ram, BRAM_DEPT, \"ram\");\n }\n\n for (unsigned i = 0; i < DEPT_W; i++)\n {\n // Extract left over data in FIFO to data_in\n read_write_fifo(mode, data_in, null, null, fifo_a,\n fifo_b, fifo_c, fifo_d, count);\n\n // Rolling FIFO\n unsigned fi = FIFO(fifo_i, 0);\n\n // Buffer twiddle\n PIPO(w_out, fifo_w, null);\n\n buttefly_circuit(data_out, data_in,\n w_out, mode);\n\n // Write back\n write_ram(ram, fi, data_out);\n }\n}\n", "groundtruth": " const data_t null[4] = {0};\n", "crossfile_context": ""} {"task_id": "2x2NTT", "path": "2x2NTT/falcon-512/hardware_code/prototype_indices.cpp", "left_context": "#include \"config.h\"\n\ntemplate \nconst T MAX(const T a, const T b)\n{\n return (a < b) ? b : a; // or: return comp(a,b)?b:a; for version (2)\n}\n\nvoid update_indexes(unsigned tw_i[4],\n const unsigned tw_base_i[4],\n const unsigned s, enum OPERATION mode)\n{\n unsigned mask1, mask2;\n", "right_context": " const unsigned w_m2 = 1;\n unsigned l1, l2, l3, l4;\n\n mask1 = (2 << s) - 1;\n mask2 = (2 << (s + 1)) - 1;\n\n l1 = tw_i[0];\n l2 = tw_i[1];\n l3 = tw_i[2];\n l4 = tw_i[3];\n\n // Adjust address\n if (mode == INVERSE_NTT_MODE)\n {\n // Only adjust omega in NTT mode\n l1 -= w_m1;\n l2 -= w_m1;\n l3 -= w_m2;\n l4 -= w_m2;\n }\n else if (mode == FORWARD_NTT_MODE)\n {\n if (s < (FALCON_LOGN - 2 - (FALCON_LOGN & 1)))\n {\n l1 = MAX(tw_base_i[0], (l1 + 1) & mask1);\n l2 = MAX(tw_base_i[1], (l2 + 1) & mask1);\n l3 = MAX(tw_base_i[2], (l3 + 2) & mask2);\n l4 = MAX(tw_base_i[3], (l4 + 2) & mask2);\n }\n else\n {\n l1 += w_m2;\n l2 += w_m2;\n l3 += w_m1;\n l4 += w_m1;\n }\n }\n tw_i[0] = l1;\n tw_i[1] = l2;\n tw_i[2] = l3;\n tw_i[3] = l4;\n}\n", "groundtruth": " const unsigned w_m1 = 2;\n", "crossfile_context": ""} {"task_id": "2x2NTT", "path": "2x2NTT/falcon-512/reference_code/ref_ntt.cpp", "left_context": "#include \n#include \"ref_ntt.h\"\n#include \"../consts.h\"\n\n#define DEBUG 0\n\nvoid ntt(data_t a[FALCON_N])\n{\n unsigned int len, start, j, k;\n data_t zeta, t;\n", "right_context": "\n k = 0;\n for (len = FALCON_N / 2; len > 0; len >>= 1)\n {\n for (start = 0; start < FALCON_N; start = j + len)\n {\n zeta = zetas_barrett[++k];\n for (j = start; j < start + len; ++j)\n {\n\n t = ((data2_t)zeta * a[j + len]) % FALCON_Q;\n a[j + len] = (a[j] - t) % FALCON_Q;\n a[j] = (a[j] + t) % FALCON_Q;\n\n#if DEBUG == 4\n m = a[j];\n n = a[j + len];\n printf(\"%d: %u, %u = %u, %u | %u\\n\", len, j, j + len, m, n, k);\n#endif\n }\n }\n }\n}\n\nvoid pointwise_barrett(data_t c[FALCON_N],\n const data_t a[FALCON_N],\n const data_t b[FALCON_N])\n{\n for (unsigned i = 0; i < FALCON_N; ++i)\n {\n c[i] = ((data2_t)a[i] * b[i]) % FALCON_Q;\n }\n}\n\nvoid invntt(data_t a[FALCON_N])\n{\n unsigned int start, len, j, k;\n data_t t, zeta, w;\n data_t m, n;\n\n#if FALCON_N == 256\n const data_t f = 12241; // pow(256, -1, 12289)\n#elif FALCON_N == 512\n const data_t f = 12265; // pow(512, -1, 12289)\n#elif FALCON_N == 1024\n const data_t f = 12277; // pow(1024, -1, 12289)\n#else\n#error \"See config.h, FALCON_N is not supported\"\n#endif\n\n k = FALCON_N;\n for (len = 1; len < FALCON_N; len <<= 1)\n {\n for (start = 0; start < FALCON_N; start = j + len)\n {\n zeta = -zetas_barrett[--k];\n for (j = start; j < start + len; ++j)\n {\n t = a[j];\n a[j] = (t + a[j + len]) % FALCON_Q;\n w = (t - a[j + len]) % FALCON_Q;\n a[j + len] = ((data2_t)zeta * w) % FALCON_Q;\n\n#if DEBUG == 5\n m = a[j];\n n = a[j + len];\n printf(\"%d: %u, %u = %u, %u | %u\\n\", len, j, j + len, m, n, k);\n#endif\n }\n }\n }\n\n for (j = 0; j < FALCON_N; ++j)\n {\n // This work, but f is not same as in ref code\n a[j] = ((data2_t)f * a[j]) % FALCON_Q;\n }\n}\n", "groundtruth": " data_t m, n;\n", "crossfile_context": ""} {"task_id": "High-Level-Synthesis-Flow-on-Zynq-using-Vivado-HLS", "path": "High-Level-Synthesis-Flow-on-Zynq-using-Vivado-HLS/source/lab2/yuv_filter.prj/solution1/.autopilot/db/yuv_filter.pragma.1.c", "left_context": "# 1 \"yuv_filter.c\"\n# 1 \"yuv_filter.c\" 1\n# 1 \"\" 1\n# 1 \"\" 3\n# 147 \"\" 3\n# 1 \"\" 1\n\n\n\n\n\n\n# 1 \"C:/Xilinx/Vivado/2018.2/common/technology/autopilot\\\\etc/autopilot_ssdm_op.h\" 1\n# 300 \"C:/Xilinx/Vivado/2018.2/common/technology/autopilot\\\\etc/autopilot_ssdm_op.h\"\n void _ssdm_op_IfRead() __attribute__ ((nothrow));\n void _ssdm_op_IfWrite() __attribute__ ((nothrow));\n unsigned int __attribute__ ((bitwidth(1))) _ssdm_op_IfNbRead() __attribute__ ((nothrow));\n unsigned int __attribute__ ((bitwidth(1))) _ssdm_op_IfNbWrite() __attribute__ ((nothrow));\n unsigned int __attribute__ ((bitwidth(1))) _ssdm_op_IfCanRead() __attribute__ ((nothrow));\n unsigned int __attribute__ ((bitwidth(1))) _ssdm_op_IfCanWrite() __attribute__ ((nothrow));\n\n\n void _ssdm_StreamRead() __attribute__ ((nothrow));\n void _ssdm_StreamWrite() __attribute__ ((nothrow));\n unsigned int __attribute__ ((bitwidth(1))) _ssdm_StreamNbRead() __attribute__ ((nothrow));\n unsigned int __attribute__ ((bitwidth(1))) _ssdm_StreamNbWrite() __attribute__ ((nothrow));\n unsigned int __attribute__ ((bitwidth(1))) _ssdm_StreamCanRead() __attribute__ ((nothrow));\n unsigned int __attribute__ ((bitwidth(1))) _ssdm_StreamCanWrite() __attribute__ ((nothrow));\n\n\n\n\n void _ssdm_op_MemShiftRead() __attribute__ ((nothrow));\n\n void _ssdm_op_Wait() __attribute__ ((nothrow));\n void _ssdm_op_Poll() __attribute__ ((nothrow));\n\n void _ssdm_op_Return() __attribute__ ((nothrow));\n\n\n void _ssdm_op_SpecSynModule() __attribute__ ((nothrow));\n void _ssdm_op_SpecTopModule() __attribute__ ((nothrow));\n void _ssdm_op_SpecProcessDecl() __attribute__ ((nothrow));\n void _ssdm_op_SpecProcessDef() __attribute__ ((nothrow));\n void _ssdm_op_SpecPort() __attribute__ ((nothrow));\n void _ssdm_op_SpecConnection() __attribute__ ((nothrow));\n void _ssdm_op_SpecChannel() __attribute__ ((nothrow));\n void _ssdm_op_SpecSensitive() __attribute__ ((nothrow));\n void _ssdm_op_SpecModuleInst() __attribute__ ((nothrow));\n void _ssdm_op_SpecPortMap() __attribute__ ((nothrow));\n\n void _ssdm_op_SpecReset() __attribute__ ((nothrow));\n\n void _ssdm_op_SpecPlatform() __attribute__ ((nothrow));\n void _ssdm_op_SpecClockDomain() __attribute__ ((nothrow));\n void _ssdm_op_SpecPowerDomain() __attribute__ ((nothrow));\n\n int _ssdm_op_SpecRegionBegin() __attribute__ ((nothrow));\n int _ssdm_op_SpecRegionEnd() __attribute__ ((nothrow));\n\n", "right_context": "\n void _ssdm_op_SpecLoopTripCount() __attribute__ ((nothrow));\n\n int _ssdm_op_SpecStateBegin() __attribute__ ((nothrow));\n int _ssdm_op_SpecStateEnd() __attribute__ ((nothrow));\n\n void _ssdm_op_SpecInterface() __attribute__ ((nothrow));\n\n void _ssdm_op_SpecPipeline() __attribute__ ((nothrow));\n void _ssdm_op_SpecDataflowPipeline() __attribute__ ((nothrow));\n\n\n void _ssdm_op_SpecLatency() __attribute__ ((nothrow));\n void _ssdm_op_SpecParallel() __attribute__ ((nothrow));\n void _ssdm_op_SpecProtocol() __attribute__ ((nothrow));\n void _ssdm_op_SpecOccurrence() __attribute__ ((nothrow));\n\n void _ssdm_op_SpecResource() __attribute__ ((nothrow));\n void _ssdm_op_SpecResourceLimit() __attribute__ ((nothrow));\n void _ssdm_op_SpecCHCore() __attribute__ ((nothrow));\n void _ssdm_op_SpecFUCore() __attribute__ ((nothrow));\n void _ssdm_op_SpecIFCore() __attribute__ ((nothrow));\n void _ssdm_op_SpecIPCore() __attribute__ ((nothrow));\n void _ssdm_op_SpecKeepValue() __attribute__ ((nothrow));\n void _ssdm_op_SpecMemCore() __attribute__ ((nothrow));\n\n void _ssdm_op_SpecExt() __attribute__ ((nothrow));\n\n\n\n\n void _ssdm_SpecArrayDimSize() __attribute__ ((nothrow));\n\n void _ssdm_RegionBegin() __attribute__ ((nothrow));\n void _ssdm_RegionEnd() __attribute__ ((nothrow));\n\n void _ssdm_Unroll() __attribute__ ((nothrow));\n void _ssdm_UnrollRegion() __attribute__ ((nothrow));\n\n void _ssdm_InlineAll() __attribute__ ((nothrow));\n void _ssdm_InlineLoop() __attribute__ ((nothrow));\n void _ssdm_Inline() __attribute__ ((nothrow));\n void _ssdm_InlineSelf() __attribute__ ((nothrow));\n void _ssdm_InlineRegion() __attribute__ ((nothrow));\n\n void _ssdm_SpecArrayMap() __attribute__ ((nothrow));\n void _ssdm_SpecArrayPartition() __attribute__ ((nothrow));\n void _ssdm_SpecArrayReshape() __attribute__ ((nothrow));\n\n void _ssdm_SpecStream() __attribute__ ((nothrow));\n\n void _ssdm_SpecExpr() __attribute__ ((nothrow));\n void _ssdm_SpecExprBalance() __attribute__ ((nothrow));\n\n void _ssdm_SpecDependence() __attribute__ ((nothrow));\n\n void _ssdm_SpecLoopMerge() __attribute__ ((nothrow));\n void _ssdm_SpecLoopFlatten() __attribute__ ((nothrow));\n void _ssdm_SpecLoopRewind() __attribute__ ((nothrow));\n\n void _ssdm_SpecFuncInstantiation() __attribute__ ((nothrow));\n void _ssdm_SpecFuncBuffer() __attribute__ ((nothrow));\n void _ssdm_SpecFuncExtract() __attribute__ ((nothrow));\n void _ssdm_SpecConstant() __attribute__ ((nothrow));\n\n void _ssdm_DataPack() __attribute__ ((nothrow));\n void _ssdm_SpecDataPack() __attribute__ ((nothrow));\n\n void _ssdm_op_SpecBitsMap() __attribute__ ((nothrow));\n void _ssdm_op_SpecLicense() __attribute__ ((nothrow));\n# 8 \"\" 2\n# 1 \"\" 2\n# 1 \"yuv_filter.c\" 2\n# 1 \"./yuv_filter.h\" 1\n# 14 \"./yuv_filter.h\"\ntypedef signed short rgb2yuv_coef_t ;\ntypedef signed short yuv2rgb_coef_t;\ntypedef signed short yuv_intrnl_t;\ntypedef unsigned char yuv_scale_t;\n\n\n\n\n# 1 \"./image_aux.h\" 1\n# 12 \"./image_aux.h\"\ntypedef unsigned char image_pix_t;\ntypedef unsigned short image_dim_t;\n\n\n\n\n\n\ntypedef struct {\n image_pix_t ch1[1920][1280];\n image_pix_t ch2[1920][1280];\n image_pix_t ch3[1920][1280];\n} channel_t;\n\ntypedef struct {\n channel_t channels;\n image_dim_t width;\n image_dim_t height;\n} image_t;\n\nvoid image_read(image_t *in_image);\n\nvoid image_write(image_t *out_image);\n# 21 \"./yuv_filter.h\" 2\n\n\n\n\nvoid rgb2yuv (image_t*, image_t*);\nvoid yuv2rgb (image_t*, image_t*);\n\nvoid yuv_scale (\n image_t *in,\n image_t *out,\n yuv_scale_t Y_scale,\n yuv_scale_t U_scale,\n yuv_scale_t V_scale\n );\n\nvoid yuv_filter (\n image_t *in,\n image_t *out,\n yuv_scale_t Y_scale,\n yuv_scale_t U_scale,\n yuv_scale_t V_scale\n );\n# 1 \"yuv_filter.c\" 2\n\n\n\nvoid yuv_filter (\n image_t *in,\n image_t *out,\n yuv_scale_t Y_scale,\n yuv_scale_t U_scale,\n yuv_scale_t V_scale\n )\n{\n\n\n\n\n\n image_t _yuv;\n image_t _scale;\n image_t *yuv = &_yuv;\n image_t *scale = &_scale;\n\n\n rgb2yuv (in, yuv);\n yuv_scale ( yuv, scale, Y_scale, U_scale, V_scale);\n yuv2rgb ( scale, out);\n}\n\n\nvoid rgb2yuv (\n image_t *in,\n image_t *out\n )\n{\n image_dim_t x, y;\n image_dim_t width, height;\n image_pix_t R, G, B, Y, U, V;\n const rgb2yuv_coef_t Wrgb[3][3] = {\n { 66, 129, 25},\n {-38, -74, 112},\n {122, -94, -18},\n };\n_ssdm_SpecConstant(Wrgb);\n# 37 \"yuv_filter.c\"\n\n\n width = in->width;\n height = in->height;\n out->width = width;\n out->height = height;\n\nRGB2YUV_LOOP_X:\n for (x=0; xchannels.ch1[x][y];\n G = in->channels.ch2[x][y];\n B = in->channels.ch3[x][y];\n Y = ((Wrgb[0][0] * R + Wrgb[0][1] * G + Wrgb[0][2] * B + 128) >> 8) + 16;\n U = ((Wrgb[1][0] * R + Wrgb[1][1] * G + Wrgb[1][2] * B + 128) >> 8) + 128;\n V = ((Wrgb[2][0] * R + Wrgb[2][1] * G + Wrgb[2][2] * B + 128) >> 8) + 128;\n out->channels.ch1[x][y] = Y;\n out->channels.ch2[x][y] = U;\n out->channels.ch3[x][y] = V;\n }\n }\n}\n\nvoid yuv2rgb (\n image_t *in,\n image_t *out\n )\n{\n image_dim_t x,y;\n image_dim_t width, height;\n image_pix_t R, G, B;\n image_pix_t Y, U, V;\n yuv_intrnl_t C, D, E;\n const yuv2rgb_coef_t Wyuv[3][3] = {\n {298, 0, 409},\n {298, -100, -208},\n {298, 516, 0},\n };\n_ssdm_SpecConstant(Wyuv);\n# 77 \"yuv_filter.c\"\n\n\n width = in->width;\n height = in->height;\n out->width = width;\n out->height = height;\n\nYUV2RGB_LOOP_X:\n for (x=0; xchannels.ch1[x][y];\n U = in->channels.ch2[x][y];\n V = in->channels.ch3[x][y];\n C = Y - 16;\n D = U - 128;\n E = V - 128;\n R = (((( Wyuv[0][0] * C + Wyuv[0][2] * E + 128) >> 8)>255) ? 255 : (((( Wyuv[0][0] * C + Wyuv[0][2] * E + 128) >> 8)<0) ? 0 : (( Wyuv[0][0] * C + Wyuv[0][2] * E + 128) >> 8)));\n G = (((( Wyuv[1][0] * C + Wyuv[1][1] * D + Wyuv[1][2] * E + 128) >> 8)>255) ? 255 : (((( Wyuv[1][0] * C + Wyuv[1][1] * D + Wyuv[1][2] * E + 128) >> 8)<0) ? 0 : (( Wyuv[1][0] * C + Wyuv[1][1] * D + Wyuv[1][2] * E + 128) >> 8)));\n B = (((( Wyuv[2][0] * C + Wyuv[2][1] * D + 128) >> 8)>255) ? 255 : (((( Wyuv[2][0] * C + Wyuv[2][1] * D + 128) >> 8)<0) ? 0 : (( Wyuv[2][0] * C + Wyuv[2][1] * D + 128) >> 8)));\n out->channels.ch1[x][y] = R;\n out->channels.ch2[x][y] = G;\n out->channels.ch3[x][y] = B;\n }\n }\n}\n\nvoid yuv_scale (\n image_t *in,\n image_t *out,\n yuv_scale_t Y_scale,\n yuv_scale_t U_scale,\n yuv_scale_t V_scale\n )\n{\n image_dim_t x,y;\n image_dim_t width, height;\n image_pix_t Y, U, V;\n yuv_intrnl_t Yn, Un, Vn;\n\n width = in->width;\n height = in->height;\n out->width = width;\n out->height = height;\n\nYUV_SCALE_LOOP_X:\n for (x=0; xchannels.ch1[x][y];\n U = in->channels.ch2[x][y];\n V = in->channels.ch3[x][y];\n Yn = (Y * Y_scale) >> 7;\n Un = (U * U_scale) >> 7;\n Vn = (V * V_scale) >> 7;\n out->channels.ch1[x][y] = Yn;\n out->channels.ch2[x][y] = Un;\n out->channels.ch3[x][y] = Vn;\n }\n }\n}\n", "groundtruth": " void _ssdm_op_SpecLoopName() __attribute__ ((nothrow));\n", "crossfile_context": ""} {"task_id": "High-Level-Synthesis-Flow-on-Zynq-using-Vivado-HLS", "path": "High-Level-Synthesis-Flow-on-Zynq-using-Vivado-HLS/source/lab2/yuv_filter.prj/solution1/syn/systemc/yuv2rgb.h", "left_context": "// ==============================================================\n// RTL generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC\n// Version: 2018.2\n// Copyright (C) 1986-2018 Xilinx, Inc. All Rights Reserved.\n// \n// ===========================================================\n\n#ifndef _yuv2rgb_HH_\n#define _yuv2rgb_HH_\n\n#include \"systemc.h\"\n#include \"AESL_pkg.h\"\n\n#include \"yuv_filter_ama_adeOg.h\"\n#include \"yuv_filter_mac_mufYi.h\"\n#include \"yuv_filter_mac_mug8j.h\"\n\nnamespace ap_rtl {\n\nstruct yuv2rgb : public sc_module {\n // Port declarations 31\n sc_in_clk ap_clk;\n sc_in< sc_logic > ap_rst;\n sc_in< sc_logic > ap_start;\n sc_out< sc_logic > ap_done;\n sc_out< sc_logic > ap_idle;\n sc_out< sc_logic > ap_ready;\n sc_out< sc_lv<22> > in_channels_ch1_address0;\n sc_out< sc_logic > in_channels_ch1_ce0;\n sc_in< sc_lv<8> > in_channels_ch1_q0;\n sc_out< sc_lv<22> > in_channels_ch2_address0;\n sc_out< sc_logic > in_channels_ch2_ce0;\n sc_in< sc_lv<8> > in_channels_ch2_q0;\n sc_out< sc_lv<22> > in_channels_ch3_address0;\n sc_out< sc_logic > in_channels_ch3_ce0;\n sc_in< sc_lv<8> > in_channels_ch3_q0;\n sc_in< sc_lv<16> > in_width_read;\n sc_in< sc_lv<16> > in_height_read;\n sc_out< sc_lv<22> > out_channels_ch1_address0;\n sc_out< sc_logic > out_channels_ch1_ce0;\n sc_out< sc_logic > out_channels_ch1_we0;\n sc_out< sc_lv<8> > out_channels_ch1_d0;\n sc_out< sc_lv<22> > out_channels_ch2_address0;\n sc_out< sc_logic > out_channels_ch2_ce0;\n sc_out< sc_logic > out_channels_ch2_we0;\n sc_out< sc_lv<8> > out_channels_ch2_d0;\n sc_out< sc_lv<22> > out_channels_ch3_address0;\n sc_out< sc_logic > out_channels_ch3_ce0;\n sc_out< sc_logic > out_channels_ch3_we0;\n sc_out< sc_lv<8> > out_channels_ch3_d0;\n sc_out< sc_lv<16> > ap_return_0;\n sc_out< sc_lv<16> > ap_return_1;\n sc_signal< sc_lv<18> > ap_var_for_const0;\n sc_signal< sc_lv<18> > ap_var_for_const1;\n\n\n // Module declarations\n yuv2rgb(sc_module_name name);\n SC_HAS_PROCESS(yuv2rgb);\n\n ~yuv2rgb();\n\n sc_trace_file* mVcdFile;\n\n yuv_filter_ama_adeOg<1,1,5,8,18,18,18>* yuv_filter_ama_adeOg_U15;\n yuv_filter_mac_mufYi<1,1,10,8,18,18>* yuv_filter_mac_mufYi_U16;\n yuv_filter_mac_mug8j<1,1,8,8,17,17>* yuv_filter_mac_mug8j_U17;\n sc_signal< sc_lv<10> > ap_CS_fsm;\n sc_signal< sc_logic > ap_CS_fsm_state1;\n sc_signal< sc_lv<16> > x_1_fu_225_p2;\n sc_signal< sc_lv<16> > x_1_reg_580;\n sc_signal< sc_logic > ap_CS_fsm_state2;\n sc_signal< sc_lv<23> > tmp_s_fu_255_p2;\n sc_signal< sc_lv<23> > tmp_s_reg_585;\n sc_signal< sc_lv<1> > exitcond1_fu_220_p2;\n sc_signal< sc_lv<16> > y_1_fu_276_p2;\n sc_signal< sc_lv<16> > y_1_reg_593;\n sc_signal< sc_logic > ap_CS_fsm_state3;\n sc_signal< sc_lv<64> > tmp_21_cast_fu_291_p1;\n sc_signal< sc_lv<64> > tmp_21_cast_reg_598;\n sc_signal< sc_lv<1> > exitcond_fu_271_p2;\n sc_signal< sc_logic > ap_CS_fsm_state4;\n sc_signal< sc_lv<8> > Y_reg_622;\n sc_signal< sc_logic > ap_CS_fsm_state6;\n sc_signal< sc_lv<8> > D_fu_299_p2;\n sc_signal< sc_lv<8> > D_reg_627;\n sc_signal< sc_logic > ap_CS_fsm_state7;\n sc_signal< sc_lv<8> > E_fu_305_p2;\n sc_signal< sc_lv<8> > E_reg_634;\n sc_signal< sc_lv<18> > grp_fu_537_p4;\n sc_signal< sc_lv<18> > tmp_3_reg_639;\n sc_signal< sc_lv<17> > tmp_13_fu_315_p2;\n sc_signal< sc_lv<17> > tmp_13_reg_646;\n sc_signal< sc_lv<8> > R_fu_369_p3;\n sc_signal< sc_lv<8> > R_reg_651;\n sc_signal< sc_logic > ap_CS_fsm_state8;\n sc_signal< sc_lv<8> > G_fu_436_p3;\n sc_signal< sc_lv<8> > G_reg_656;\n sc_signal< sc_lv<8> > B_fu_529_p3;\n sc_signal< sc_lv<8> > B_reg_661;\n sc_signal< sc_logic > ap_CS_fsm_state9;\n sc_signal< sc_lv<16> > x_reg_198;\n sc_signal< sc_lv<16> > y_reg_209;\n sc_signal< sc_logic > ap_CS_fsm_state10;\n sc_signal< sc_logic > ap_CS_fsm_state5;\n sc_signal< sc_lv<13> > tmp_fu_231_p1;\n sc_signal< sc_lv<15> > tmp_5_fu_243_p1;\n sc_signal< sc_lv<23> > p_shl2_cast_fu_235_p3;\n sc_signal< sc_lv<23> > p_shl3_cast_fu_247_p3;\n sc_signal< sc_lv<23> > tmp_cast_fu_282_p1;\n sc_signal< sc_lv<23> > tmp_6_fu_286_p2;\n sc_signal< sc_lv<8> > tmp_13_fu_315_p1;\n sc_signal< sc_lv<18> > grp_fu_547_p3;\n sc_signal< sc_lv<2> > tmp_8_fu_324_p4;\n sc_signal< sc_lv<1> > icmp_fu_333_p2;\n sc_signal< sc_lv<1> > tmp_10_fu_339_p3;\n sc_signal< sc_lv<1> > tmp_11_fu_363_p2;\n sc_signal< sc_lv<8> > p_phitmp_fu_355_p3;\n sc_signal< sc_lv<8> > phitmp_fu_346_p4;\n sc_signal< sc_lv<17> > grp_fu_557_p3;\n sc_signal< sc_lv<18> > tmp1_cast_fu_380_p1;\n sc_signal< sc_lv<18> > tmp_14_fu_383_p2;\n sc_signal< sc_lv<2> > tmp_15_fu_388_p4;\n sc_signal< sc_lv<1> > icmp9_fu_398_p2;\n sc_signal< sc_lv<1> > tmp_16_fu_404_p3;\n sc_signal< sc_lv<1> > tmp_17_fu_430_p2;\n sc_signal< sc_lv<8> > p_phitmp2_fu_422_p3;\n sc_signal< sc_lv<8> > phitmp2_fu_412_p4;\n sc_signal< sc_lv<17> > p_shl_fu_444_p3;\n sc_signal< sc_lv<10> > p_shl1_fu_455_p3;\n sc_signal< sc_lv<18> > p_shl1_cast_fu_462_p1;\n sc_signal< sc_lv<18> > tmp2_fu_466_p2;\n sc_signal< sc_lv<19> > tmp2_cast_fu_471_p1;\n sc_signal< sc_lv<19> > p_shl_cast_fu_451_p1;\n sc_signal< sc_lv<19> > tmp_18_fu_475_p2;\n sc_signal< sc_lv<3> > tmp_19_fu_481_p4;\n sc_signal< sc_lv<1> > icmp1_fu_491_p2;\n sc_signal< sc_lv<1> > tmp_20_fu_497_p3;\n sc_signal< sc_lv<1> > tmp_21_fu_523_p2;\n sc_signal< sc_lv<8> > p_phitmp3_fu_515_p3;\n sc_signal< sc_lv<8> > phitmp3_fu_505_p4;\n sc_signal< sc_lv<5> > grp_fu_537_p0;\n sc_signal< sc_lv<8> > grp_fu_537_p1;\n sc_signal< sc_lv<10> > grp_fu_547_p0;\n sc_signal< sc_lv<8> > grp_fu_557_p0;\n sc_signal< sc_lv<10> > ap_NS_fsm;\n sc_signal< sc_lv<9> > grp_fu_537_p10;\n static const sc_logic ap_const_logic_1;\n static const sc_logic ap_const_logic_0;\n static const sc_lv<10> ap_ST_fsm_state1;\n static const sc_lv<10> ap_ST_fsm_state2;\n static const sc_lv<10> ap_ST_fsm_state3;\n static const sc_lv<10> ap_ST_fsm_state4;\n static const sc_lv<10> ap_ST_fsm_state5;\n static const sc_lv<10> ap_ST_fsm_state6;\n static const sc_lv<10> ap_ST_fsm_state7;\n static const sc_lv<10> ap_ST_fsm_state8;\n static const sc_lv<10> ap_ST_fsm_state9;\n static const sc_lv<10> ap_ST_fsm_state10;\n static const sc_lv<32> ap_const_lv32_0;\n static const sc_lv<32> ap_const_lv32_1;\n static const sc_lv<1> ap_const_lv1_0;\n static const sc_lv<32> ap_const_lv32_2;\n static const sc_lv<32> ap_const_lv32_3;\n static const sc_lv<32> ap_const_lv32_5;\n static const sc_lv<32> ap_const_lv32_6;\n static const sc_lv<32> ap_const_lv32_7;\n static const sc_lv<32> ap_const_lv32_8;\n static const sc_lv<16> ap_const_lv16_0;\n static const sc_lv<1> ap_const_lv1_1;\n static const sc_lv<32> ap_const_lv32_9;\n static const sc_lv<32> ap_const_lv32_4;\n static const sc_lv<16> ap_const_lv16_1;\n static const sc_lv<10> ap_const_lv10_0;\n static const sc_lv<8> ap_const_lv8_0;\n static const sc_lv<8> ap_const_lv8_80;\n static const sc_lv<17> ap_const_lv17_1FF30;\n static const sc_lv<32> ap_const_lv32_10;\n static const sc_lv<32> ap_const_lv32_11;\n static const sc_lv<2> ap_const_lv2_1;\n static const sc_lv<32> ap_const_lv32_F;\n static const sc_lv<8> ap_const_lv8_FF;\n static const sc_lv<9> ap_const_lv9_0;\n static const sc_lv<2> ap_const_lv2_0;\n static const sc_lv<32> ap_const_lv32_12;\n static const sc_lv<3> ap_const_lv3_0;\n static const sc_lv<9> ap_const_lv9_1F0;\n static const sc_lv<18> ap_const_lv18_12A;\n static const sc_lv<18> ap_const_lv18_80;\n static const sc_lv<18> ap_const_lv18_199;\n static const sc_lv<16> ap_const_lv16_FF9C;\n static const bool ap_const_boolean_1;\n // Thread declarations\n void thread_ap_var_for_const0();\n void thread_ap_var_for_const1();\n void thread_ap_clk_no_reset_();\n void thread_B_fu_529_p3();\n void thread_D_fu_299_p2();\n void thread_E_fu_305_p2();\n void thread_G_fu_436_p3();\n void thread_R_fu_369_p3();\n void thread_ap_CS_fsm_state1();\n void thread_ap_CS_fsm_state10();\n void thread_ap_CS_fsm_state2();\n void thread_ap_CS_fsm_state3();\n void thread_ap_CS_fsm_state4();\n void thread_ap_CS_fsm_state5();\n void thread_ap_CS_fsm_state6();\n void thread_ap_CS_fsm_state7();\n void thread_ap_CS_fsm_state8();\n void thread_ap_CS_fsm_state9();\n void thread_ap_done();\n void thread_ap_idle();\n void thread_ap_ready();\n void thread_ap_return_0();\n void thread_ap_return_1();\n void thread_exitcond1_fu_220_p2();\n void thread_exitcond_fu_271_p2();\n void thread_grp_fu_537_p0();\n", "right_context": " void thread_grp_fu_537_p10();\n void thread_grp_fu_547_p0();\n void thread_grp_fu_557_p0();\n void thread_icmp1_fu_491_p2();\n void thread_icmp9_fu_398_p2();\n void thread_icmp_fu_333_p2();\n void thread_in_channels_ch1_address0();\n void thread_in_channels_ch1_ce0();\n void thread_in_channels_ch2_address0();\n void thread_in_channels_ch2_ce0();\n void thread_in_channels_ch3_address0();\n void thread_in_channels_ch3_ce0();\n void thread_out_channels_ch1_address0();\n void thread_out_channels_ch1_ce0();\n void thread_out_channels_ch1_d0();\n void thread_out_channels_ch1_we0();\n void thread_out_channels_ch2_address0();\n void thread_out_channels_ch2_ce0();\n void thread_out_channels_ch2_d0();\n void thread_out_channels_ch2_we0();\n void thread_out_channels_ch3_address0();\n void thread_out_channels_ch3_ce0();\n void thread_out_channels_ch3_d0();\n void thread_out_channels_ch3_we0();\n void thread_p_phitmp2_fu_422_p3();\n void thread_p_phitmp3_fu_515_p3();\n void thread_p_phitmp_fu_355_p3();\n void thread_p_shl1_cast_fu_462_p1();\n void thread_p_shl1_fu_455_p3();\n void thread_p_shl2_cast_fu_235_p3();\n void thread_p_shl3_cast_fu_247_p3();\n void thread_p_shl_cast_fu_451_p1();\n void thread_p_shl_fu_444_p3();\n void thread_phitmp2_fu_412_p4();\n void thread_phitmp3_fu_505_p4();\n void thread_phitmp_fu_346_p4();\n void thread_tmp1_cast_fu_380_p1();\n void thread_tmp2_cast_fu_471_p1();\n void thread_tmp2_fu_466_p2();\n void thread_tmp_10_fu_339_p3();\n void thread_tmp_11_fu_363_p2();\n void thread_tmp_13_fu_315_p1();\n void thread_tmp_13_fu_315_p2();\n void thread_tmp_14_fu_383_p2();\n void thread_tmp_15_fu_388_p4();\n void thread_tmp_16_fu_404_p3();\n void thread_tmp_17_fu_430_p2();\n void thread_tmp_18_fu_475_p2();\n void thread_tmp_19_fu_481_p4();\n void thread_tmp_20_fu_497_p3();\n void thread_tmp_21_cast_fu_291_p1();\n void thread_tmp_21_fu_523_p2();\n void thread_tmp_5_fu_243_p1();\n void thread_tmp_6_fu_286_p2();\n void thread_tmp_8_fu_324_p4();\n void thread_tmp_cast_fu_282_p1();\n void thread_tmp_fu_231_p1();\n void thread_tmp_s_fu_255_p2();\n void thread_x_1_fu_225_p2();\n void thread_y_1_fu_276_p2();\n void thread_ap_NS_fsm();\n};\n\n}\n\nusing namespace ap_rtl;\n\n#endif\n", "groundtruth": " void thread_grp_fu_537_p1();\n", "crossfile_context": ""} {"task_id": "High-Level-Synthesis-Flow-on-Zynq-using-Vivado-HLS", "path": "High-Level-Synthesis-Flow-on-Zynq-using-Vivado-HLS/source/lab2/yuv_filter.prj/solution1/syn/systemc/yuv_filter.h", "left_context": "// ==============================================================\n// RTL generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC\n// Version: 2018.2\n// Copyright (C) 1986-2018 Xilinx, Inc. All Rights Reserved.\n// \n// ===========================================================\n\n#ifndef _yuv_filter_HH_\n#define _yuv_filter_HH_\n\n#include \"systemc.h\"\n#include \"AESL_pkg.h\"\n\n#include \"rgb2yuv.h\"\n#include \"yuv2rgb.h\"\n#include \"yuv_filter_p_yuv_hbi.h\"\n\nnamespace ap_rtl {\n\nstruct yuv_filter : public sc_module {\n // Port declarations 36\n sc_in_clk ap_clk;\n sc_in< sc_logic > ap_rst;\n sc_in< sc_logic > ap_start;\n sc_out< sc_logic > ap_done;\n sc_out< sc_logic > ap_idle;\n sc_out< sc_logic > ap_ready;\n sc_out< sc_lv<22> > in_channels_ch1_address0;\n sc_out< sc_logic > in_channels_ch1_ce0;\n sc_in< sc_lv<8> > in_channels_ch1_q0;\n sc_out< sc_lv<22> > in_channels_ch2_address0;\n sc_out< sc_logic > in_channels_ch2_ce0;\n sc_in< sc_lv<8> > in_channels_ch2_q0;\n sc_out< sc_lv<22> > in_channels_ch3_address0;\n sc_out< sc_logic > in_channels_ch3_ce0;\n sc_in< sc_lv<8> > in_channels_ch3_q0;\n sc_in< sc_lv<16> > in_width;\n sc_in< sc_lv<16> > in_height;\n sc_out< sc_lv<22> > out_channels_ch1_address0;\n sc_out< sc_logic > out_channels_ch1_ce0;\n sc_out< sc_logic > out_channels_ch1_we0;\n sc_out< sc_lv<8> > out_channels_ch1_d0;\n sc_out< sc_lv<22> > out_channels_ch2_address0;\n sc_out< sc_logic > out_channels_ch2_ce0;\n sc_out< sc_logic > out_channels_ch2_we0;\n sc_out< sc_lv<8> > out_channels_ch2_d0;\n sc_out< sc_lv<22> > out_channels_ch3_address0;\n sc_out< sc_logic > out_channels_ch3_ce0;\n sc_out< sc_logic > out_channels_ch3_we0;\n sc_out< sc_lv<8> > out_channels_ch3_d0;\n sc_out< sc_lv<16> > out_width;\n sc_out< sc_logic > out_width_ap_vld;\n sc_out< sc_lv<16> > out_height;\n sc_out< sc_logic > out_height_ap_vld;\n sc_in< sc_lv<8> > Y_scale;\n sc_in< sc_lv<8> > U_scale;\n sc_in< sc_lv<8> > V_scale;\n\n\n // Module declarations\n yuv_filter(sc_module_name name);\n SC_HAS_PROCESS(yuv_filter);\n\n ~yuv_filter();\n\n sc_trace_file* mVcdFile;\n\n ofstream mHdltvinHandle;\n ofstream mHdltvoutHandle;\n yuv_filter_p_yuv_hbi* p_yuv_channels_ch1_U;\n yuv_filter_p_yuv_hbi* p_yuv_channels_ch2_U;\n yuv_filter_p_yuv_hbi* p_yuv_channels_ch3_U;\n yuv_filter_p_yuv_hbi* p_scale_channels_ch1_U;\n yuv_filter_p_yuv_hbi* p_scale_channels_ch2_U;\n yuv_filter_p_yuv_hbi* p_scale_channels_ch3_U;\n rgb2yuv* grp_rgb2yuv_fu_250;\n yuv2rgb* grp_yuv2rgb_fu_270;\n sc_signal< sc_lv<10> > ap_CS_fsm;\n sc_signal< sc_logic > ap_CS_fsm_state1;\n sc_signal< sc_lv<16> > p_yuv_width_reg_450;\n sc_signal< sc_logic > ap_CS_fsm_state2;\n sc_signal< sc_logic > grp_rgb2yuv_fu_250_ap_idle;\n sc_signal< sc_logic > grp_rgb2yuv_fu_250_ap_ready;\n sc_signal< sc_logic > grp_rgb2yuv_fu_250_ap_done;\n sc_signal< sc_lv<16> > p_yuv_height_reg_456;\n sc_signal< sc_lv<15> > tmp_i_cast_fu_293_p1;\n sc_signal< sc_lv<15> > tmp_i_cast_reg_462;\n sc_signal< sc_lv<15> > tmp_1_i_cast_fu_297_p1;\n sc_signal< sc_lv<15> > tmp_1_i_cast_reg_467;\n sc_signal< sc_lv<15> > tmp_2_i_cast_fu_301_p1;\n sc_signal< sc_lv<15> > tmp_2_i_cast_reg_472;\n sc_signal< sc_lv<16> > x_fu_310_p2;\n sc_signal< sc_lv<16> > x_reg_480;\n sc_signal< sc_logic > ap_CS_fsm_state3;\n sc_signal< sc_lv<23> > tmp_2_fu_340_p2;\n sc_signal< sc_lv<23> > tmp_2_reg_485;\n sc_signal< sc_lv<1> > exitcond1_i_fu_305_p2;\n sc_signal< sc_lv<16> > y_fu_351_p2;\n sc_signal< sc_lv<16> > y_reg_493;\n sc_signal< sc_logic > ap_CS_fsm_state4;\n sc_signal< sc_lv<64> > tmp_3_cast_fu_366_p1;\n sc_signal< sc_lv<64> > tmp_3_cast_reg_498;\n sc_signal< sc_lv<1> > exitcond_i_fu_346_p2;\n sc_signal< sc_lv<8> > tmp_10_i_reg_520;\n sc_signal< sc_logic > ap_CS_fsm_state7;\n sc_signal< sc_lv<8> > tmp_11_i_reg_525;\n sc_signal< sc_lv<8> > tmp_12_i_reg_530;\n sc_signal< sc_logic > ap_CS_fsm_state8;\n sc_signal< sc_lv<22> > p_yuv_channels_ch1_address0;\n sc_signal< sc_logic > p_yuv_channels_ch1_ce0;\n sc_signal< sc_logic > p_yuv_channels_ch1_we0;\n sc_signal< sc_lv<8> > p_yuv_channels_ch1_q0;\n sc_signal< sc_lv<22> > p_yuv_channels_ch2_address0;\n sc_signal< sc_logic > p_yuv_channels_ch2_ce0;\n sc_signal< sc_logic > p_yuv_channels_ch2_we0;\n sc_signal< sc_lv<8> > p_yuv_channels_ch2_q0;\n sc_signal< sc_lv<22> > p_yuv_channels_ch3_address0;\n sc_signal< sc_logic > p_yuv_channels_ch3_ce0;\n sc_signal< sc_logic > p_yuv_channels_ch3_we0;\n sc_signal< sc_lv<8> > p_yuv_channels_ch3_q0;\n sc_signal< sc_lv<22> > p_scale_channels_ch1_address0;\n sc_signal< sc_logic > p_scale_channels_ch1_ce0;\n sc_signal< sc_logic > p_scale_channels_ch1_we0;\n sc_signal< sc_lv<8> > p_scale_channels_ch1_q0;\n sc_signal< sc_lv<22> > p_scale_channels_ch2_address0;\n sc_signal< sc_logic > p_scale_channels_ch2_ce0;\n sc_signal< sc_logic > p_scale_channels_ch2_we0;\n sc_signal< sc_lv<8> > p_scale_channels_ch2_q0;\n sc_signal< sc_lv<22> > p_scale_channels_ch3_address0;\n sc_signal< sc_logic > p_scale_channels_ch3_ce0;\n sc_signal< sc_logic > p_scale_channels_ch3_we0;\n sc_signal< sc_lv<8> > p_scale_channels_ch3_q0;\n sc_signal< sc_logic > grp_rgb2yuv_fu_250_ap_start;\n sc_signal< sc_lv<22> > grp_rgb2yuv_fu_250_in_channels_ch1_address0;\n sc_signal< sc_logic > grp_rgb2yuv_fu_250_in_channels_ch1_ce0;\n sc_signal< sc_lv<22> > grp_rgb2yuv_fu_250_in_channels_ch2_address0;\n sc_signal< sc_logic > grp_rgb2yuv_fu_250_in_channels_ch2_ce0;\n sc_signal< sc_lv<22> > grp_rgb2yuv_fu_250_in_channels_ch3_address0;\n sc_signal< sc_logic > grp_rgb2yuv_fu_250_in_channels_ch3_ce0;\n sc_signal< sc_lv<22> > grp_rgb2yuv_fu_250_out_channels_ch1_address0;\n sc_signal< sc_logic > grp_rgb2yuv_fu_250_out_channels_ch1_ce0;\n sc_signal< sc_logic > grp_rgb2yuv_fu_250_out_channels_ch1_we0;\n sc_signal< sc_lv<8> > grp_rgb2yuv_fu_250_out_channels_ch1_d0;\n sc_signal< sc_lv<22> > grp_rgb2yuv_fu_250_out_channels_ch2_address0;\n sc_signal< sc_logic > grp_rgb2yuv_fu_250_out_channels_ch2_ce0;\n sc_signal< sc_logic > grp_rgb2yuv_fu_250_out_channels_ch2_we0;\n sc_signal< sc_lv<8> > grp_rgb2yuv_fu_250_out_channels_ch2_d0;\n sc_signal< sc_lv<22> > grp_rgb2yuv_fu_250_out_channels_ch3_address0;\n sc_signal< sc_logic > grp_rgb2yuv_fu_250_out_channels_ch3_ce0;\n sc_signal< sc_logic > grp_rgb2yuv_fu_250_out_channels_ch3_we0;\n sc_signal< sc_lv<8> > grp_rgb2yuv_fu_250_out_channels_ch3_d0;\n sc_signal< sc_lv<16> > grp_rgb2yuv_fu_250_ap_return_0;\n sc_signal< sc_lv<16> > grp_rgb2yuv_fu_250_ap_return_1;\n sc_signal< sc_logic > grp_yuv2rgb_fu_270_ap_start;\n sc_signal< sc_logic > grp_yuv2rgb_fu_270_ap_done;\n sc_signal< sc_logic > grp_yuv2rgb_fu_270_ap_idle;\n sc_signal< sc_logic > grp_yuv2rgb_fu_270_ap_ready;\n sc_signal< sc_lv<22> > grp_yuv2rgb_fu_270_in_channels_ch1_address0;\n sc_signal< sc_logic > grp_yuv2rgb_fu_270_in_channels_ch1_ce0;\n sc_signal< sc_lv<22> > grp_yuv2rgb_fu_270_in_channels_ch2_address0;\n sc_signal< sc_logic > grp_yuv2rgb_fu_270_in_channels_ch2_ce0;\n sc_signal< sc_lv<22> > grp_yuv2rgb_fu_270_in_channels_ch3_address0;\n sc_signal< sc_logic > grp_yuv2rgb_fu_270_in_channels_ch3_ce0;\n sc_signal< sc_lv<22> > grp_yuv2rgb_fu_270_out_channels_ch1_address0;\n sc_signal< sc_logic > grp_yuv2rgb_fu_270_out_channels_ch1_ce0;\n sc_signal< sc_logic > grp_yuv2rgb_fu_270_out_channels_ch1_we0;\n sc_signal< sc_lv<8> > grp_yuv2rgb_fu_270_out_channels_ch1_d0;\n sc_signal< sc_lv<22> > grp_yuv2rgb_fu_270_out_channels_ch2_address0;\n sc_signal< sc_logic > grp_yuv2rgb_fu_270_out_channels_ch2_ce0;\n sc_signal< sc_logic > grp_yuv2rgb_fu_270_out_channels_ch2_we0;\n sc_signal< sc_lv<8> > grp_yuv2rgb_fu_270_out_channels_ch2_d0;\n sc_signal< sc_lv<22> > grp_yuv2rgb_fu_270_out_channels_ch3_address0;\n sc_signal< sc_logic > grp_yuv2rgb_fu_270_out_channels_ch3_ce0;\n sc_signal< sc_logic > grp_yuv2rgb_fu_270_out_channels_ch3_we0;\n sc_signal< sc_lv<8> > grp_yuv2rgb_fu_270_out_channels_ch3_d0;\n sc_signal< sc_lv<16> > grp_yuv2rgb_fu_270_ap_return_0;\n sc_signal< sc_lv<16> > grp_yuv2rgb_fu_270_ap_return_1;\n sc_signal< sc_lv<16> > x_i_reg_228;\n sc_signal< sc_lv<16> > y_i_reg_239;\n sc_signal< sc_logic > ap_CS_fsm_state9;\n sc_signal< sc_logic > grp_rgb2yuv_fu_250_ap_start_reg;\n sc_signal< sc_logic > grp_yuv2rgb_fu_270_ap_start_reg;\n sc_signal< sc_logic > ap_CS_fsm_state10;\n sc_signal< sc_logic > ap_CS_fsm_state5;\n sc_signal< sc_logic > ap_CS_fsm_state6;\n sc_signal< sc_lv<13> > tmp_fu_316_p1;\n sc_signal< sc_lv<15> > tmp_1_fu_328_p1;\n sc_signal< sc_lv<23> > p_shl_cast_fu_320_p3;\n sc_signal< sc_lv<23> > p_shl3_cast_fu_332_p3;\n sc_signal< sc_lv<23> > tmp_5_i_cast_fu_357_p1;\n sc_signal< sc_lv<23> > tmp_3_fu_361_p2;\n sc_signal< sc_lv<8> > tmp_7_i_fu_377_p0;\n sc_signal< sc_lv<8> > tmp_7_i_fu_377_p1;\n sc_signal< sc_lv<8> > tmp_i_fu_386_p0;\n sc_signal< sc_lv<8> > tmp_i_fu_386_p1;\n sc_signal< sc_lv<8> > tmp_8_i_fu_395_p0;\n sc_signal< sc_lv<8> > tmp_8_i_fu_395_p1;\n sc_signal< sc_lv<15> > tmp_7_i_fu_377_p2;\n sc_signal< sc_lv<15> > tmp_i_fu_386_p2;\n sc_signal< sc_lv<15> > tmp_8_i_fu_395_p2;\n sc_signal< sc_lv<10> > ap_NS_fsm;\n sc_signal< sc_lv<15> > tmp_7_i_fu_377_p10;\n sc_signal< sc_lv<15> > tmp_8_i_fu_395_p10;\n sc_signal< sc_lv<15> > tmp_i_fu_386_p10;\n static const sc_logic ap_const_logic_1;\n static const sc_logic ap_const_logic_0;\n static const sc_lv<10> ap_ST_fsm_state1;\n static const sc_lv<10> ap_ST_fsm_state2;\n static const sc_lv<10> ap_ST_fsm_state3;\n static const sc_lv<10> ap_ST_fsm_state4;\n static const sc_lv<10> ap_ST_fsm_state5;\n static const sc_lv<10> ap_ST_fsm_state6;\n static const sc_lv<10> ap_ST_fsm_state7;\n static const sc_lv<10> ap_ST_fsm_state8;\n static const sc_lv<10> ap_ST_fsm_state9;\n static const sc_lv<10> ap_ST_fsm_state10;\n static const sc_lv<32> ap_const_lv32_0;\n static const sc_lv<32> ap_const_lv32_1;\n static const sc_lv<32> ap_const_lv32_2;\n static const sc_lv<1> ap_const_lv1_0;\n static const sc_lv<32> ap_const_lv32_3;\n static const sc_lv<32> ap_const_lv32_6;\n static const sc_lv<32> ap_const_lv32_7;\n static const sc_lv<16> ap_const_lv16_0;\n static const sc_lv<1> ap_const_lv1_1;\n static const sc_lv<32> ap_const_lv32_8;\n static const sc_lv<32> ap_const_lv32_9;\n static const sc_lv<32> ap_const_lv32_4;\n static const sc_lv<32> ap_const_lv32_5;\n static const sc_lv<16> ap_const_lv16_1;\n static const sc_lv<10> ap_const_lv10_0;\n static const sc_lv<8> ap_const_lv8_0;\n", "right_context": " static const bool ap_const_boolean_1;\n // Thread declarations\n void thread_ap_clk_no_reset_();\n void thread_ap_CS_fsm_state1();\n void thread_ap_CS_fsm_state10();\n void thread_ap_CS_fsm_state2();\n void thread_ap_CS_fsm_state3();\n void thread_ap_CS_fsm_state4();\n void thread_ap_CS_fsm_state5();\n void thread_ap_CS_fsm_state6();\n void thread_ap_CS_fsm_state7();\n void thread_ap_CS_fsm_state8();\n void thread_ap_CS_fsm_state9();\n void thread_ap_done();\n void thread_ap_idle();\n void thread_ap_ready();\n void thread_exitcond1_i_fu_305_p2();\n void thread_exitcond_i_fu_346_p2();\n void thread_grp_rgb2yuv_fu_250_ap_start();\n void thread_grp_yuv2rgb_fu_270_ap_start();\n void thread_in_channels_ch1_address0();\n void thread_in_channels_ch1_ce0();\n void thread_in_channels_ch2_address0();\n void thread_in_channels_ch2_ce0();\n void thread_in_channels_ch3_address0();\n void thread_in_channels_ch3_ce0();\n void thread_out_channels_ch1_address0();\n void thread_out_channels_ch1_ce0();\n void thread_out_channels_ch1_d0();\n void thread_out_channels_ch1_we0();\n void thread_out_channels_ch2_address0();\n void thread_out_channels_ch2_ce0();\n void thread_out_channels_ch2_d0();\n void thread_out_channels_ch2_we0();\n void thread_out_channels_ch3_address0();\n void thread_out_channels_ch3_ce0();\n void thread_out_channels_ch3_d0();\n void thread_out_channels_ch3_we0();\n void thread_out_height();\n void thread_out_height_ap_vld();\n void thread_out_width();\n void thread_out_width_ap_vld();\n void thread_p_scale_channels_ch1_address0();\n void thread_p_scale_channels_ch1_ce0();\n void thread_p_scale_channels_ch1_we0();\n void thread_p_scale_channels_ch2_address0();\n void thread_p_scale_channels_ch2_ce0();\n void thread_p_scale_channels_ch2_we0();\n void thread_p_scale_channels_ch3_address0();\n void thread_p_scale_channels_ch3_ce0();\n void thread_p_scale_channels_ch3_we0();\n void thread_p_shl3_cast_fu_332_p3();\n void thread_p_shl_cast_fu_320_p3();\n void thread_p_yuv_channels_ch1_address0();\n void thread_p_yuv_channels_ch1_ce0();\n void thread_p_yuv_channels_ch1_we0();\n void thread_p_yuv_channels_ch2_address0();\n void thread_p_yuv_channels_ch2_ce0();\n void thread_p_yuv_channels_ch2_we0();\n void thread_p_yuv_channels_ch3_address0();\n void thread_p_yuv_channels_ch3_ce0();\n void thread_p_yuv_channels_ch3_we0();\n void thread_tmp_1_fu_328_p1();\n void thread_tmp_1_i_cast_fu_297_p1();\n void thread_tmp_2_fu_340_p2();\n void thread_tmp_2_i_cast_fu_301_p1();\n void thread_tmp_3_cast_fu_366_p1();\n void thread_tmp_3_fu_361_p2();\n void thread_tmp_5_i_cast_fu_357_p1();\n void thread_tmp_7_i_fu_377_p0();\n void thread_tmp_7_i_fu_377_p1();\n void thread_tmp_7_i_fu_377_p10();\n void thread_tmp_7_i_fu_377_p2();\n void thread_tmp_8_i_fu_395_p0();\n void thread_tmp_8_i_fu_395_p1();\n void thread_tmp_8_i_fu_395_p10();\n void thread_tmp_8_i_fu_395_p2();\n void thread_tmp_fu_316_p1();\n void thread_tmp_i_cast_fu_293_p1();\n void thread_tmp_i_fu_386_p0();\n void thread_tmp_i_fu_386_p1();\n void thread_tmp_i_fu_386_p10();\n void thread_tmp_i_fu_386_p2();\n void thread_x_fu_310_p2();\n void thread_y_fu_351_p2();\n void thread_ap_NS_fsm();\n void thread_hdltv_gen();\n};\n\n}\n\nusing namespace ap_rtl;\n\n#endif\n", "groundtruth": " static const sc_lv<32> ap_const_lv32_E;\n", "crossfile_context": ""} {"task_id": "High-Level-Synthesis-Flow-on-Zynq-using-Vivado-HLS", "path": "High-Level-Synthesis-Flow-on-Zynq-using-Vivado-HLS/source/lab4/fir.c", "left_context": "#include \"fir.h\" \n\nvoid fir (\n data_t *y,\n data_t x\n ) {\n const coef_t c[N+1]={\n #include \"fir_coef.dat\"\n };\n \n\n static data_t shift_reg[N];\n acc_t acc;\n", "right_context": " \n acc=(acc_t)shift_reg[N-1]*(acc_t)c[N];\n loop: for (i=N-1;i!=0;i--) {\n acc+=(acc_t)shift_reg[i-1]*(acc_t)c[i];\n shift_reg[i]=shift_reg[i-1];\n }\n acc+=(acc_t)x*(acc_t)c[0];\n shift_reg[0]=x;\n *y = acc>>15;\n}\n", "groundtruth": " int i;\n", "crossfile_context": ""} {"task_id": "High-Level-Synthesis-Flow-on-Zynq-using-Vivado-HLS", "path": "High-Level-Synthesis-Flow-on-Zynq-using-Vivado-HLS/source/lab4/fir.prj/solution1/sim/autowrap/testbench/fir_test.c_pre.c.line.c", "left_context": "#pragma line 1 \"D:/HLS_2018.2update/HLS/labsource/labs/lab4/fir_test.c\"\n#pragma line 1 \"D:/HLS_2018.2update/HLS/labsource/labs/lab4/fir_test.c\" 1\n#pragma line 1 \"\" 1\n#pragma line 1 \"\" 3\n#pragma line 147 \"\" 3\n#pragma line 1 \"\" 1\n#pragma line 1 \"\" 2\n#pragma line 1 \"D:/HLS_2018.2update/HLS/labsource/labs/lab4/fir_test.c\" 2\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 1 3\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 1 3\n#pragma line 10 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 3\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include/_mingw_mac.h\" 1 3\n#pragma line 10 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 2 3\n#pragma line 277 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 3\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\vadefs.h\" 1 3\n#pragma line 13 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\vadefs.h\" 3\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 1 3\n#pragma line 674 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 3\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include/sdks/_mingw_directx.h\" 1 3\n#pragma line 674 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 2 3\n#pragma empty_line\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include/sdks/_mingw_ddk.h\" 1 3\n#pragma line 675 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 2 3\n#pragma line 13 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\vadefs.h\" 2 3\n#pragma empty_line\n#pragma empty_line\n#pragma pack(push,_CRT_PACKING)\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n typedef __builtin_va_list __gnuc_va_list;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n typedef __gnuc_va_list va_list;\n#pragma line 102 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\vadefs.h\" 3\n#pragma pack(pop)\n#pragma line 277 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 2 3\n#pragma empty_line\n#pragma empty_line\n#pragma pack(push,_CRT_PACKING)\n#pragma line 370 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 3\n__extension__ typedef unsigned long long size_t;\n#pragma line 380 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 3\n__extension__ typedef long long ssize_t;\n#pragma line 392 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 3\n__extension__ typedef long long intptr_t;\n#pragma line 405 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 3\n__extension__ typedef unsigned long long uintptr_t;\n#pragma line 418 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 3\n__extension__ typedef long long ptrdiff_t;\n#pragma line 428 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 3\ntypedef unsigned short wchar_t;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\ntypedef unsigned short wint_t;\ntypedef unsigned short wctype_t;\n#pragma line 456 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 3\ntypedef int errno_t;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\ntypedef long __time32_t;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n__extension__ typedef long long __time64_t;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\ntypedef __time64_t time_t;\n#pragma line 607 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 3\nstruct threadlocaleinfostruct;\nstruct threadmbcinfostruct;\ntypedef struct threadlocaleinfostruct *pthreadlocinfo;\ntypedef struct threadmbcinfostruct *pthreadmbcinfo;\nstruct __lc_time_data;\n#pragma empty_line\ntypedef struct localeinfo_struct {\n pthreadlocinfo locinfo;\n pthreadmbcinfo mbcinfo;\n} _locale_tstruct,*_locale_t;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\ntypedef struct tagLC_ID {\n unsigned short wLanguage;\n unsigned short wCountry;\n unsigned short wCodePage;\n} LC_ID,*LPLC_ID;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\ntypedef struct threadlocaleinfostruct {\n int refcount;\n unsigned int lc_codepage;\n unsigned int lc_collate_cp;\n unsigned long lc_handle[6];\n LC_ID lc_id[6];\n struct {\n char *locale;\n wchar_t *wlocale;\n int *refcount;\n int *wrefcount;\n } lc_category[6];\n int lc_clike;\n int mb_cur_max;\n int *lconv_intl_refcount;\n int *lconv_num_refcount;\n int *lconv_mon_refcount;\n struct lconv *lconv;\n int *ctype1_refcount;\n unsigned short *ctype1;\n const unsigned short *pctype;\n const unsigned char *pclmap;\n const unsigned char *pcumap;\n struct __lc_time_data *lc_time_curr;\n} threadlocinfo;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\nconst char *__mingw_get_crt_info (void);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma pack(pop)\n#pragma line 9 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 2 3\n#pragma empty_line\n#pragma empty_line\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw_print_push.h\" 1 3\n#pragma line 11 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 2 3\n#pragma empty_line\n#pragma empty_line\n#pragma pack(push,_CRT_PACKING)\n#pragma line 26 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 3\n struct _iobuf {\n char *_ptr;\n int _cnt;\n char *_base;\n int _flag;\n int _file;\n int _charbuf;\n int _bufsiz;\n char *_tmpfname;\n };\n typedef struct _iobuf FILE;\n#pragma line 84 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 3\n typedef long _off_t;\n#pragma empty_line\n typedef long off_t;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n __extension__ typedef long long _off64_t;\n#pragma empty_line\n __extension__ typedef long long off64_t;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n __attribute__ ((__dllimport__)) FILE *__cdecl __iob_func(void);\n#pragma line 120 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 3\n __extension__ typedef long long fpos_t;\n#pragma line 157 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 3\n __attribute__ ((__dllimport__)) int __cdecl _filbuf(FILE *_File);\n __attribute__ ((__dllimport__)) int __cdecl _flsbuf(int _Ch,FILE *_File);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n __attribute__ ((__dllimport__)) FILE *__cdecl _fsopen(const char *_Filename,const char *_Mode,int _ShFlag);\n#pragma empty_line\n void __cdecl clearerr(FILE *_File);\n int __cdecl fclose(FILE *_File);\n __attribute__ ((__dllimport__)) int __cdecl _fcloseall(void);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n __attribute__ ((__dllimport__)) FILE *__cdecl _fdopen(int _FileHandle,const char *_Mode);\n#pragma empty_line\n int __cdecl feof(FILE *_File);\n int __cdecl ferror(FILE *_File);\n int __cdecl fflush(FILE *_File);\n int __cdecl fgetc(FILE *_File);\n __attribute__ ((__dllimport__)) int __cdecl _fgetchar(void);\n int __cdecl fgetpos(FILE * __restrict__ _File ,fpos_t * __restrict__ _Pos);\n char *__cdecl fgets(char * __restrict__ _Buf,int _MaxCount,FILE * __restrict__ _File);\n __attribute__ ((__dllimport__)) int __cdecl _fileno(FILE *_File);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n __attribute__ ((__dllimport__)) char *__cdecl _tempnam(const char *_DirName,const char *_FilePrefix);\n __attribute__ ((__dllimport__)) int __cdecl _flushall(void);\n FILE *__cdecl fopen(const char * __restrict__ _Filename,const char * __restrict__ _Mode) ;\n FILE *fopen64(const char * __restrict__ filename,const char * __restrict__ mode);\n int __cdecl fprintf(FILE * __restrict__ _File,const char * __restrict__ _Format,...);\n int __cdecl fputc(int _Ch,FILE *_File);\n __attribute__ ((__dllimport__)) int __cdecl _fputchar(int _Ch);\n int __cdecl fputs(const char * __restrict__ _Str,FILE * __restrict__ _File);\n size_t __cdecl fread(void * __restrict__ _DstBuf,size_t _ElementSize,size_t _Count,FILE * __restrict__ _File);\n FILE *__cdecl freopen(const char * __restrict__ _Filename,const char * __restrict__ _Mode,FILE * __restrict__ _File) ;\n int __cdecl fscanf(FILE * __restrict__ _File,const char * __restrict__ _Format,...) ;\n int __cdecl _fscanf_l(FILE * __restrict__ _File,const char * __restrict__ _Format,_locale_t locale,...) ;\n int __cdecl fsetpos(FILE *_File,const fpos_t *_Pos);\n int __cdecl fseek(FILE *_File,long _Offset,int _Origin);\n int fseeko64(FILE* stream, _off64_t offset, int whence);\n long __cdecl ftell(FILE *_File);\n _off64_t ftello64(FILE * stream);\n __extension__ int __cdecl _fseeki64(FILE *_File,long long _Offset,int _Origin);\n __extension__ long long __cdecl _ftelli64(FILE *_File);\n size_t __cdecl fwrite(const void * __restrict__ _Str,size_t _Size,size_t _Count,FILE * __restrict__ _File);\n int __cdecl getc(FILE *_File);\n int __cdecl getchar(void);\n __attribute__ ((__dllimport__)) int __cdecl _getmaxstdio(void);\n char *__cdecl gets(char *_Buffer) ;\n int __cdecl _getw(FILE *_File);\n#pragma empty_line\n#pragma empty_line\n void __cdecl perror(const char *_ErrMsg);\n#pragma empty_line\n __attribute__ ((__dllimport__)) int __cdecl _pclose(FILE *_File);\n __attribute__ ((__dllimport__)) FILE *__cdecl _popen(const char *_Command,const char *_Mode);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n int __cdecl printf(const char * __restrict__ _Format,...);\n int __cdecl putc(int _Ch,FILE *_File);\n int __cdecl putchar(int _Ch);\n int __cdecl puts(const char *_Str);\n __attribute__ ((__dllimport__)) int __cdecl _putw(int _Word,FILE *_File);\n#pragma empty_line\n#pragma empty_line\n int __cdecl remove(const char *_Filename);\n int __cdecl rename(const char *_OldFilename,const char *_NewFilename);\n __attribute__ ((__dllimport__)) int __cdecl _unlink(const char *_Filename);\n#pragma empty_line\n int __cdecl unlink(const char *_Filename) ;\n#pragma empty_line\n#pragma empty_line\n void __cdecl rewind(FILE *_File);\n __attribute__ ((__dllimport__)) int __cdecl _rmtmp(void);\n int __cdecl scanf(const char * __restrict__ _Format,...) ;\n int __cdecl _scanf_l(const char * __restrict__ format,_locale_t locale,... ) ;\n void __cdecl setbuf(FILE * __restrict__ _File,char * __restrict__ _Buffer) ;\n __attribute__ ((__dllimport__)) int __cdecl _setmaxstdio(int _Max);\n __attribute__ ((__dllimport__)) unsigned int __cdecl _set_output_format(unsigned int _Format);\n __attribute__ ((__dllimport__)) unsigned int __cdecl _get_output_format(void);\n unsigned int __cdecl __mingw_set_output_format(unsigned int _Format);\n unsigned int __cdecl __mingw_get_output_format(void);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n int __cdecl setvbuf(FILE * __restrict__ _File,char * __restrict__ _Buf,int _Mode,size_t _Size);\n __attribute__ ((__dllimport__)) int __cdecl _scprintf(const char * __restrict__ _Format,...);\n int __cdecl sscanf(const char * __restrict__ _Src,const char * __restrict__ _Format,...) ;\n int __cdecl _sscanf_l(const char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) ;\n __attribute__ ((__dllimport__)) int __cdecl _snscanf(const char * __restrict__ _Src,size_t _MaxCount,const char * __restrict__ _Format,...) ;\n __attribute__ ((__dllimport__)) int __cdecl _snscanf_l(const char * __restrict__ input,size_t length,const char * __restrict__ format,_locale_t locale,...) ;\n FILE *__cdecl tmpfile(void) ;\n char *__cdecl tmpnam(char *_Buffer);\n int __cdecl ungetc(int _Ch,FILE *_File);\n int __cdecl vfprintf(FILE * __restrict__ _File,const char * __restrict__ _Format,va_list _ArgList);\n int __cdecl vprintf(const char * __restrict__ _Format,va_list _ArgList);\n#pragma empty_line\n#pragma empty_line\n extern\n __attribute__((__format__ (gnu_printf, 3, 0))) __attribute__ ((__nonnull__ (3)))\n int __cdecl __mingw_vsnprintf(char * __restrict__ _DstBuf,size_t _MaxCount,const char * __restrict__ _Format,\n va_list _ArgList);\n extern\n __attribute__((__format__ (gnu_printf, 3, 4))) __attribute__ ((__nonnull__ (3)))\n int __cdecl __mingw_snprintf(char * __restrict__ s, size_t n, const char * __restrict__ format, ...);\n", "right_context": " int __cdecl __mingw_vprintf (const char * __restrict__ , va_list) __attribute__ ((__nothrow__));\n extern\n __attribute__((__format__ (gnu_printf, 2, 3))) __attribute__ ((__nonnull__ (2)))\n int __cdecl __mingw_fprintf (FILE * __restrict__ , const char * __restrict__ , ...) __attribute__ ((__nothrow__));\n extern\n __attribute__((__format__ (gnu_printf, 2, 0))) __attribute__ ((__nonnull__ (2)))\n int __cdecl __mingw_vfprintf (FILE * __restrict__ , const char * __restrict__ , va_list) __attribute__ ((__nothrow__));\n extern\n __attribute__((__format__ (gnu_printf, 2, 3))) __attribute__ ((__nonnull__ (2)))\n int __cdecl __mingw_sprintf (char * __restrict__ , const char * __restrict__ , ...) __attribute__ ((__nothrow__));\n extern\n __attribute__((__format__ (gnu_printf, 2, 0))) __attribute__ ((__nonnull__ (2)))\n int __cdecl __mingw_vsprintf (char * __restrict__ , const char * __restrict__ , va_list) __attribute__ ((__nothrow__));\n#pragma empty_line\n __attribute__ ((__dllimport__)) int __cdecl _snprintf(char * __restrict__ _Dest,size_t _Count,const char * __restrict__ _Format,...) ;\n __attribute__ ((__dllimport__)) int __cdecl _snprintf_l(char * __restrict__ buffer,size_t count,const char * __restrict__ format,_locale_t locale,...) ;\n __attribute__ ((__dllimport__)) int __cdecl _vsnprintf(char * __restrict__ _Dest,size_t _Count,const char * __restrict__ _Format,va_list _Args) ;\n __attribute__ ((__dllimport__)) int __cdecl _vsnprintf_l(char * __restrict__ buffer,size_t count,const char * __restrict__ format,_locale_t locale,va_list argptr) ;\n int __cdecl sprintf(char * __restrict__ _Dest,const char * __restrict__ _Format,...) ;\n int __cdecl _sprintf_l(char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) ;\n int __cdecl vsprintf(char * __restrict__ _Dest,const char * __restrict__ _Format,va_list _Args) ;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n int __cdecl vsnprintf(char * __restrict__ _DstBuf,size_t _MaxCount,const char * __restrict__ _Format,va_list _ArgList) ;\n#pragma empty_line\n int __cdecl snprintf(char * __restrict__ s, size_t n, const char * __restrict__ format, ...);\n#pragma line 312 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 3\n int __cdecl vscanf(const char * __restrict__ Format, va_list argp);\n int __cdecl vfscanf (FILE * __restrict__ fp, const char * __restrict__ Format,va_list argp);\n int __cdecl vsscanf (const char * __restrict__ _Str,const char * __restrict__ Format,va_list argp);\n#pragma empty_line\n __attribute__ ((__dllimport__)) int __cdecl _vscprintf(const char * __restrict__ _Format,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _set_printf_count_output(int _Value);\n __attribute__ ((__dllimport__)) int __cdecl _get_printf_count_output(void);\n#pragma line 330 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 3\n __attribute__ ((__dllimport__)) FILE *__cdecl _wfsopen(const wchar_t *_Filename,const wchar_t *_Mode,int _ShFlag);\n#pragma empty_line\n#pragma empty_line\n wint_t __cdecl fgetwc(FILE *_File);\n __attribute__ ((__dllimport__)) wint_t __cdecl _fgetwchar(void);\n wint_t __cdecl fputwc(wchar_t _Ch,FILE *_File);\n __attribute__ ((__dllimport__)) wint_t __cdecl _fputwchar(wchar_t _Ch);\n wint_t __cdecl getwc(FILE *_File);\n wint_t __cdecl getwchar(void);\n wint_t __cdecl putwc(wchar_t _Ch,FILE *_File);\n wint_t __cdecl putwchar(wchar_t _Ch);\n wint_t __cdecl ungetwc(wint_t _Ch,FILE *_File);\n wchar_t *__cdecl fgetws(wchar_t * __restrict__ _Dst,int _SizeInWords,FILE * __restrict__ _File);\n int __cdecl fputws(const wchar_t * __restrict__ _Str,FILE * __restrict__ _File);\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _getws(wchar_t *_String) ;\n __attribute__ ((__dllimport__)) int __cdecl _putws(const wchar_t *_Str);\n int __cdecl fwprintf(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,...);\n int __cdecl wprintf(const wchar_t * __restrict__ _Format,...);\n __attribute__ ((__dllimport__)) int __cdecl _scwprintf(const wchar_t * __restrict__ _Format,...);\n int __cdecl vfwprintf(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,va_list _ArgList);\n int __cdecl vwprintf(const wchar_t * __restrict__ _Format,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl swprintf(wchar_t * __restrict__ , const wchar_t * __restrict__ , ...) ;\n __attribute__ ((__dllimport__)) int __cdecl _swprintf_l(wchar_t * __restrict__ buffer,size_t count,const wchar_t * __restrict__ format,_locale_t locale,... ) ;\n __attribute__ ((__dllimport__)) int __cdecl vswprintf(wchar_t * __restrict__ , const wchar_t * __restrict__ ,va_list) ;\n __attribute__ ((__dllimport__)) int __cdecl _swprintf_c(wchar_t * __restrict__ _DstBuf,size_t _SizeInWords,const wchar_t * __restrict__ _Format,...);\n __attribute__ ((__dllimport__)) int __cdecl _vswprintf_c(wchar_t * __restrict__ _DstBuf,size_t _SizeInWords,const wchar_t * __restrict__ _Format,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _snwprintf(wchar_t * __restrict__ _Dest,size_t _Count,const wchar_t * __restrict__ _Format,...) ;\n __attribute__ ((__dllimport__)) int __cdecl _vsnwprintf(wchar_t * __restrict__ _Dest,size_t _Count,const wchar_t * __restrict__ _Format,va_list _Args) ;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n int __cdecl snwprintf (wchar_t * __restrict__ s, size_t n, const wchar_t * __restrict__ format, ...);\n int __cdecl vsnwprintf (wchar_t * __restrict__ , size_t, const wchar_t * __restrict__ , va_list);\n#pragma line 373 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 3\n int __cdecl vwscanf (const wchar_t * __restrict__ , va_list);\n int __cdecl vfwscanf (FILE * __restrict__ ,const wchar_t * __restrict__ ,va_list);\n int __cdecl vswscanf (const wchar_t * __restrict__ ,const wchar_t * __restrict__ ,va_list);\n#pragma empty_line\n __attribute__ ((__dllimport__)) int __cdecl _fwprintf_p(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,...);\n __attribute__ ((__dllimport__)) int __cdecl _wprintf_p(const wchar_t * __restrict__ _Format,...);\n __attribute__ ((__dllimport__)) int __cdecl _vfwprintf_p(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _vwprintf_p(const wchar_t * __restrict__ _Format,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _swprintf_p(wchar_t * __restrict__ _DstBuf,size_t _MaxCount,const wchar_t * __restrict__ _Format,...);\n __attribute__ ((__dllimport__)) int __cdecl _vswprintf_p(wchar_t * __restrict__ _DstBuf,size_t _MaxCount,const wchar_t * __restrict__ _Format,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _scwprintf_p(const wchar_t * __restrict__ _Format,...);\n __attribute__ ((__dllimport__)) int __cdecl _vscwprintf_p(const wchar_t * __restrict__ _Format,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _wprintf_l(const wchar_t * __restrict__ _Format,_locale_t _Locale,...);\n __attribute__ ((__dllimport__)) int __cdecl _wprintf_p_l(const wchar_t * __restrict__ _Format,_locale_t _Locale,...);\n __attribute__ ((__dllimport__)) int __cdecl _vwprintf_l(const wchar_t * __restrict__ _Format,_locale_t _Locale,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _vwprintf_p_l(const wchar_t * __restrict__ _Format,_locale_t _Locale,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _fwprintf_l(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,_locale_t _Locale,...);\n __attribute__ ((__dllimport__)) int __cdecl _fwprintf_p_l(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,_locale_t _Locale,...);\n __attribute__ ((__dllimport__)) int __cdecl _vfwprintf_l(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,_locale_t _Locale,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _vfwprintf_p_l(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,_locale_t _Locale,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _swprintf_c_l(wchar_t * __restrict__ _DstBuf,size_t _MaxCount,const wchar_t * __restrict__ _Format,_locale_t _Locale,...);\n __attribute__ ((__dllimport__)) int __cdecl _swprintf_p_l(wchar_t * __restrict__ _DstBuf,size_t _MaxCount,const wchar_t * __restrict__ _Format,_locale_t _Locale,...);\n __attribute__ ((__dllimport__)) int __cdecl _vswprintf_c_l(wchar_t * __restrict__ _DstBuf,size_t _MaxCount,const wchar_t * __restrict__ _Format,_locale_t _Locale,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _vswprintf_p_l(wchar_t * __restrict__ _DstBuf,size_t _MaxCount,const wchar_t * __restrict__ _Format,_locale_t _Locale,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _scwprintf_l(const wchar_t * __restrict__ _Format,_locale_t _Locale,...);\n __attribute__ ((__dllimport__)) int __cdecl _scwprintf_p_l(const wchar_t * __restrict__ _Format,_locale_t _Locale,...);\n __attribute__ ((__dllimport__)) int __cdecl _vscwprintf_p_l(const wchar_t * __restrict__ _Format,_locale_t _Locale,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _snwprintf_l(wchar_t * __restrict__ _DstBuf,size_t _MaxCount,const wchar_t * __restrict__ _Format,_locale_t _Locale,...);\n __attribute__ ((__dllimport__)) int __cdecl _vsnwprintf_l(wchar_t * __restrict__ _DstBuf,size_t _MaxCount,const wchar_t * __restrict__ _Format,_locale_t _Locale,va_list _ArgList) ;\n __attribute__ ((__dllimport__)) int __cdecl _swprintf(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Format,...);\n __attribute__ ((__dllimport__)) int __cdecl _vswprintf(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Format,va_list _Args);\n __attribute__ ((__dllimport__)) int __cdecl __swprintf_l(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Format,_locale_t _Plocinfo,...) ;\n __attribute__ ((__dllimport__)) int __cdecl _vswprintf_l(wchar_t * __restrict__ buffer,size_t count,const wchar_t * __restrict__ format,_locale_t locale,va_list argptr) ;\n __attribute__ ((__dllimport__)) int __cdecl __vswprintf_l(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Format,_locale_t _Plocinfo,va_list _Args) ;\n#pragma line 417 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 3\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _wtempnam(const wchar_t *_Directory,const wchar_t *_FilePrefix);\n __attribute__ ((__dllimport__)) int __cdecl _vscwprintf(const wchar_t * __restrict__ _Format,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _vscwprintf_l(const wchar_t * __restrict__ _Format,_locale_t _Locale,va_list _ArgList);\n int __cdecl fwscanf(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,...) ;\n __attribute__ ((__dllimport__)) int __cdecl _fwscanf_l(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,_locale_t _Locale,...) ;\n int __cdecl swscanf(const wchar_t * __restrict__ _Src,const wchar_t * __restrict__ _Format,...) ;\n __attribute__ ((__dllimport__)) int __cdecl _swscanf_l(const wchar_t * __restrict__ _Src,const wchar_t * __restrict__ _Format,_locale_t _Locale,...) ;\n __attribute__ ((__dllimport__)) int __cdecl _snwscanf(const wchar_t * __restrict__ _Src,size_t _MaxCount,const wchar_t * __restrict__ _Format,...);\n __attribute__ ((__dllimport__)) int __cdecl _snwscanf_l(const wchar_t * __restrict__ _Src,size_t _MaxCount,const wchar_t * __restrict__ _Format,_locale_t _Locale,...);\n int __cdecl wscanf(const wchar_t * __restrict__ _Format,...) ;\n __attribute__ ((__dllimport__)) int __cdecl _wscanf_l(const wchar_t * __restrict__ _Format,_locale_t _Locale,...) ;\n __attribute__ ((__dllimport__)) FILE *__cdecl _wfdopen(int _FileHandle ,const wchar_t *_Mode);\n __attribute__ ((__dllimport__)) FILE *__cdecl _wfopen(const wchar_t * __restrict__ _Filename,const wchar_t *__restrict__ _Mode) ;\n __attribute__ ((__dllimport__)) FILE *__cdecl _wfreopen(const wchar_t * __restrict__ _Filename,const wchar_t * __restrict__ _Mode,FILE * __restrict__ _OldFile) ;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n __attribute__ ((__dllimport__)) void __cdecl _wperror(const wchar_t *_ErrMsg);\n#pragma empty_line\n __attribute__ ((__dllimport__)) FILE *__cdecl _wpopen(const wchar_t *_Command,const wchar_t *_Mode);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n __attribute__ ((__dllimport__)) int __cdecl _wremove(const wchar_t *_Filename);\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _wtmpnam(wchar_t *_Buffer);\n __attribute__ ((__dllimport__)) wint_t __cdecl _fgetwc_nolock(FILE *_File);\n __attribute__ ((__dllimport__)) wint_t __cdecl _fputwc_nolock(wchar_t _Ch,FILE *_File);\n __attribute__ ((__dllimport__)) wint_t __cdecl _ungetwc_nolock(wint_t _Ch,FILE *_File);\n#pragma line 475 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 3\n __attribute__ ((__dllimport__)) void __cdecl _lock_file(FILE *_File);\n __attribute__ ((__dllimport__)) void __cdecl _unlock_file(FILE *_File);\n __attribute__ ((__dllimport__)) int __cdecl _fclose_nolock(FILE *_File);\n __attribute__ ((__dllimport__)) int __cdecl _fflush_nolock(FILE *_File);\n __attribute__ ((__dllimport__)) size_t __cdecl _fread_nolock(void * __restrict__ _DstBuf,size_t _ElementSize,size_t _Count,FILE * __restrict__ _File);\n __attribute__ ((__dllimport__)) int __cdecl _fseek_nolock(FILE *_File,long _Offset,int _Origin);\n __attribute__ ((__dllimport__)) long __cdecl _ftell_nolock(FILE *_File);\n __extension__ __attribute__ ((__dllimport__)) int __cdecl _fseeki64_nolock(FILE *_File,long long _Offset,int _Origin);\n __extension__ __attribute__ ((__dllimport__)) long long __cdecl _ftelli64_nolock(FILE *_File);\n __attribute__ ((__dllimport__)) size_t __cdecl _fwrite_nolock(const void * __restrict__ _DstBuf,size_t _Size,size_t _Count,FILE * __restrict__ _File);\n __attribute__ ((__dllimport__)) int __cdecl _ungetc_nolock(int _Ch,FILE *_File);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n char *__cdecl tempnam(const char *_Directory,const char *_FilePrefix) ;\n int __cdecl fcloseall(void) ;\n FILE *__cdecl fdopen(int _FileHandle,const char *_Format) ;\n int __cdecl fgetchar(void) ;\n int __cdecl fileno(FILE *_File) ;\n int __cdecl flushall(void) ;\n int __cdecl fputchar(int _Ch) ;\n int __cdecl getw(FILE *_File) ;\n int __cdecl putw(int _Ch,FILE *_File) ;\n int __cdecl rmtmp(void) ;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma pack(pop)\n#pragma empty_line\n#pragma empty_line\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\sec_api/stdio_s.h\" 1 3\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 1 3\n#pragma line 9 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\sec_api/stdio_s.h\" 2 3\n#pragma line 509 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 2 3\n#pragma empty_line\n#pragma empty_line\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw_print_pop.h\" 1 3\n#pragma line 511 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 2 3\n#pragma line 1 \"D:/HLS_2018.2update/HLS/labsource/labs/lab4/fir_test.c\" 2\n#pragma empty_line\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\math.h\" 1 3\n#pragma line 10 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\math.h\" 3\n#pragma line 10 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\math.h\" 3\n#pragma empty_line\n#pragma empty_line\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 1 3\n#pragma line 12 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\math.h\" 2 3\n#pragma empty_line\n#pragma empty_line\nstruct _exception;\n#pragma empty_line\n#pragma pack(push,_CRT_PACKING)\n#pragma line 79 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\math.h\" 3\n extern double * __imp__HUGE;\n#pragma line 91 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\math.h\" 3\n struct _exception {\n int type;\n const char *name;\n double arg1;\n double arg2;\n double retval;\n };\n#pragma empty_line\n void __mingw_raise_matherr (int typ, const char *name, double a1, double a2,\n double rslt);\n void __mingw_setusermatherr (int (__cdecl *)(struct _exception *));\n __attribute__ ((__dllimport__)) void __setusermatherr(int (__cdecl *)(struct _exception *));\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n double __cdecl sin(double _X);\n double __cdecl cos(double _X);\n double __cdecl tan(double _X);\n double __cdecl sinh(double _X);\n double __cdecl cosh(double _X);\n double __cdecl tanh(double _X);\n double __cdecl asin(double _X);\n double __cdecl acos(double _X);\n double __cdecl atan(double _X);\n double __cdecl atan2(double _Y,double _X);\n double __cdecl exp(double _X);\n double __cdecl log(double _X);\n double __cdecl log10(double _X);\n double __cdecl pow(double _X,double _Y);\n double __cdecl sqrt(double _X);\n double __cdecl ceil(double _X);\n double __cdecl floor(double _X);\n double __cdecl fabs(double _X);\n#pragma line 135 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\math.h\" 3\n double __cdecl ldexp(double _X,int _Y);\n double __cdecl frexp(double _X,int *_Y);\n double __cdecl modf(double _X,double *_Y);\n double __cdecl fmod(double _X,double _Y);\n#pragma empty_line\n void __cdecl sincos (double __x, double *p_sin, double *p_cos);\n void __cdecl sincosl (long double __x, long double *p_sin, long double *p_cos);\n void __cdecl sincosf (float __x, float *p_sin, float *p_cos);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n int __cdecl abs(int _X);\n long __cdecl labs(long _X);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n double __cdecl atof(const char *_String);\n double __cdecl _atof_l(const char *_String,_locale_t _Locale);\n#pragma line 162 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\math.h\" 3\n struct _complex {\n double x;\n double y;\n };\n#pragma empty_line\n#pragma empty_line\n __attribute__ ((__dllimport__)) double __cdecl _cabs(struct _complex _ComplexA);\n double __cdecl _hypot(double _X,double _Y);\n __attribute__ ((__dllimport__)) double __cdecl _j0(double _X);\n __attribute__ ((__dllimport__)) double __cdecl _j1(double _X);\n __attribute__ ((__dllimport__)) double __cdecl _jn(int _X,double _Y);\n __attribute__ ((__dllimport__)) double __cdecl _y0(double _X);\n __attribute__ ((__dllimport__)) double __cdecl _y1(double _X);\n __attribute__ ((__dllimport__)) double __cdecl _yn(int _X,double _Y);\n#pragma empty_line\n#pragma empty_line\n __attribute__ ((__dllimport__)) int __cdecl _matherr (struct _exception *);\n#pragma line 189 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\math.h\" 3\n __attribute__ ((__dllimport__)) double __cdecl _chgsign (double _X);\n __attribute__ ((__dllimport__)) double __cdecl _copysign (double _Number,double _Sign);\n __attribute__ ((__dllimport__)) double __cdecl _logb (double);\n __attribute__ ((__dllimport__)) double __cdecl _nextafter (double, double);\n __attribute__ ((__dllimport__)) double __cdecl _scalb (double, long);\n __attribute__ ((__dllimport__)) int __cdecl _finite (double);\n __attribute__ ((__dllimport__)) int __cdecl _fpclass (double);\n __attribute__ ((__dllimport__)) int __cdecl _isnan (double);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n__attribute__ ((__dllimport__)) double __cdecl j0 (double) ;\n__attribute__ ((__dllimport__)) double __cdecl j1 (double) ;\n__attribute__ ((__dllimport__)) double __cdecl jn (int, double) ;\n__attribute__ ((__dllimport__)) double __cdecl y0 (double) ;\n__attribute__ ((__dllimport__)) double __cdecl y1 (double) ;\n__attribute__ ((__dllimport__)) double __cdecl yn (int, double) ;\n#pragma empty_line\n__attribute__ ((__dllimport__)) double __cdecl chgsign (double);\n#pragma line 219 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\math.h\" 3\n __attribute__ ((__dllimport__)) int __cdecl finite (double);\n __attribute__ ((__dllimport__)) int __cdecl fpclass (double);\n#pragma line 264 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\math.h\" 3\ntypedef float float_t;\ntypedef double double_t;\n#pragma line 299 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\math.h\" 3\n extern int __cdecl __fpclassifyl (long double);\n extern int __cdecl __fpclassifyf (float);\n extern int __cdecl __fpclassify (double);\n#pragma line 335 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\math.h\" 3\n extern int __cdecl __isnan (double);\n extern int __cdecl __isnanf (float);\n extern int __cdecl __isnanl (long double);\n#pragma line 376 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\math.h\" 3\n extern int __cdecl __signbit (double);\n extern int __cdecl __signbitf (float);\n extern int __cdecl __signbitl (long double);\n#pragma line 404 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\math.h\" 3\n extern float __cdecl sinf(float _X);\n extern long double __cdecl sinl(long double);\n#pragma empty_line\n extern float __cdecl cosf(float _X);\n extern long double __cdecl cosl(long double);\n#pragma empty_line\n extern float __cdecl tanf(float _X);\n extern long double __cdecl tanl(long double);\n extern float __cdecl asinf(float _X);\n extern long double __cdecl asinl(long double);\n#pragma empty_line\n extern float __cdecl acosf (float);\n extern long double __cdecl acosl (long double);\n#pragma empty_line\n extern float __cdecl atanf (float);\n extern long double __cdecl atanl (long double);\n#pragma empty_line\n extern float __cdecl atan2f (float, float);\n extern long double __cdecl atan2l (long double, long double);\n#pragma empty_line\n#pragma empty_line\n extern float __cdecl sinhf(float _X);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n extern long double __cdecl sinhl(long double);\n#pragma empty_line\n extern float __cdecl coshf(float _X);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n extern long double __cdecl coshl(long double);\n#pragma empty_line\n extern float __cdecl tanhf(float _X);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n extern long double __cdecl tanhl(long double);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n extern double __cdecl acosh (double);\n extern float __cdecl acoshf (float);\n extern long double __cdecl acoshl (long double);\n#pragma empty_line\n#pragma empty_line\n extern double __cdecl asinh (double);\n extern float __cdecl asinhf (float);\n extern long double __cdecl asinhl (long double);\n#pragma empty_line\n#pragma empty_line\n extern double __cdecl atanh (double);\n extern float __cdecl atanhf (float);\n extern long double __cdecl atanhl (long double);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n extern float __cdecl expf(float _X);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n extern long double __cdecl expl(long double);\n#pragma empty_line\n#pragma empty_line\n extern double __cdecl exp2(double);\n extern float __cdecl exp2f(float);\n extern long double __cdecl exp2l(long double);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n extern double __cdecl expm1(double);\n extern float __cdecl expm1f(float);\n extern long double __cdecl expm1l(long double);\n#pragma empty_line\n#pragma empty_line\n extern float frexpf(float _X,int *_Y);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n extern long double __cdecl frexpl(long double,int *);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n extern int __cdecl ilogb (double);\n extern int __cdecl ilogbf (float);\n extern int __cdecl ilogbl (long double);\n#pragma empty_line\n#pragma empty_line\n extern float __cdecl ldexpf(float _X,int _Y);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n extern long double __cdecl ldexpl (long double, int);\n#pragma empty_line\n#pragma empty_line\n extern float __cdecl logf (float);\n extern long double __cdecl logl(long double);\n#pragma empty_line\n#pragma empty_line\n extern float __cdecl log10f (float);\n extern long double __cdecl log10l(long double);\n#pragma empty_line\n#pragma empty_line\n extern double __cdecl log1p(double);\n extern float __cdecl log1pf(float);\n extern long double __cdecl log1pl(long double);\n#pragma empty_line\n#pragma empty_line\n extern double __cdecl log2 (double);\n extern float __cdecl log2f (float);\n extern long double __cdecl log2l (long double);\n#pragma empty_line\n#pragma empty_line\n extern double __cdecl logb (double);\n extern float __cdecl logbf (float);\n extern long double __cdecl logbl (long double);\n#pragma line 553 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\math.h\" 3\n extern float __cdecl modff (float, float*);\n extern long double __cdecl modfl (long double, long double*);\n#pragma empty_line\n#pragma empty_line\n extern double __cdecl scalbn (double, int);\n extern float __cdecl scalbnf (float, int);\n extern long double __cdecl scalbnl (long double, int);\n#pragma empty_line\n extern double __cdecl scalbln (double, long);\n extern float __cdecl scalblnf (float, long);\n extern long double __cdecl scalblnl (long double, long);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n extern double __cdecl cbrt (double);\n extern float __cdecl cbrtf (float);\n extern long double __cdecl cbrtl (long double);\n#pragma empty_line\n#pragma empty_line\n extern float __cdecl fabsf (float x);\n#pragma line 583 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\math.h\" 3\n extern long double __cdecl fabsl (long double);\n#pragma line 595 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\math.h\" 3\n extern double __cdecl hypot (double, double) ;\n extern float __cdecl hypotf (float x, float y);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n extern long double __cdecl hypotl (long double, long double);\n#pragma empty_line\n#pragma empty_line\n extern float __cdecl powf(float _X,float _Y);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n extern long double __cdecl powl (long double, long double);\n#pragma empty_line\n#pragma empty_line\n extern float __cdecl sqrtf (float);\n extern long double sqrtl(long double);\n#pragma empty_line\n#pragma empty_line\n extern double __cdecl erf (double);\n extern float __cdecl erff (float);\n extern long double __cdecl erfl (long double);\n#pragma empty_line\n#pragma empty_line\n extern double __cdecl erfc (double);\n extern float __cdecl erfcf (float);\n extern long double __cdecl erfcl (long double);\n#pragma empty_line\n#pragma empty_line\n extern double __cdecl lgamma (double);\n extern float __cdecl lgammaf (float);\n extern long double __cdecl lgammal (long double);\n#pragma empty_line\n#pragma empty_line\n extern double __cdecl tgamma (double);\n extern float __cdecl tgammaf (float);\n extern long double __cdecl tgammal (long double);\n#pragma empty_line\n#pragma empty_line\n extern float __cdecl ceilf (float);\n extern long double __cdecl ceill (long double);\n#pragma empty_line\n#pragma empty_line\n extern float __cdecl floorf (float);\n extern long double __cdecl floorl (long double);\n#pragma empty_line\n#pragma empty_line\n extern double __cdecl nearbyint ( double);\n extern float __cdecl nearbyintf (float);\n extern long double __cdecl nearbyintl (long double);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\nextern double __cdecl rint (double);\nextern float __cdecl rintf (float);\nextern long double __cdecl rintl (long double);\n#pragma empty_line\n#pragma empty_line\nextern long __cdecl lrint (double);\nextern long __cdecl lrintf (float);\nextern long __cdecl lrintl (long double);\n#pragma empty_line\n__extension__ long long __cdecl llrint (double);\n__extension__ long long __cdecl llrintf (float);\n__extension__ long long __cdecl llrintl (long double);\n#pragma line 739 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\math.h\" 3\n extern double __cdecl round (double);\n extern float __cdecl roundf (float);\n extern long double __cdecl roundl (long double);\n#pragma empty_line\n#pragma empty_line\n extern long __cdecl lround (double);\n extern long __cdecl lroundf (float);\n extern long __cdecl lroundl (long double);\n __extension__ long long __cdecl llround (double);\n __extension__ long long __cdecl llroundf (float);\n __extension__ long long __cdecl llroundl (long double);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n extern double __cdecl trunc (double);\n extern float __cdecl truncf (float);\n extern long double __cdecl truncl (long double);\n#pragma empty_line\n#pragma empty_line\n extern float __cdecl fmodf (float, float);\n extern long double __cdecl fmodl (long double, long double);\n#pragma empty_line\n#pragma empty_line\n extern double __cdecl remainder (double, double);\n extern float __cdecl remainderf (float, float);\n extern long double __cdecl remainderl (long double, long double);\n#pragma empty_line\n#pragma empty_line\n extern double __cdecl remquo(double, double, int *);\n extern float __cdecl remquof(float, float, int *);\n extern long double __cdecl remquol(long double, long double, int *);\n#pragma empty_line\n#pragma empty_line\n extern double __cdecl copysign (double, double);\n extern float __cdecl copysignf (float, float);\n extern long double __cdecl copysignl (long double, long double);\n#pragma empty_line\n#pragma empty_line\n extern double __cdecl nan(const char *tagp);\n extern float __cdecl nanf(const char *tagp);\n extern long double __cdecl nanl(const char *tagp);\n#pragma line 788 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\math.h\" 3\n extern double __cdecl nextafter (double, double);\n extern float __cdecl nextafterf (float, float);\n extern long double __cdecl nextafterl (long double, long double);\n#pragma empty_line\n#pragma empty_line\n extern double __cdecl nexttoward (double, long double);\n extern float __cdecl nexttowardf (float, long double);\n extern long double __cdecl nexttowardl (long double, long double);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n extern double __cdecl fdim (double x, double y);\n extern float __cdecl fdimf (float x, float y);\n extern long double __cdecl fdiml (long double x, long double y);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n extern double __cdecl fmax (double, double);\n extern float __cdecl fmaxf (float, float);\n extern long double __cdecl fmaxl (long double, long double);\n#pragma empty_line\n#pragma empty_line\n extern double __cdecl fmin (double, double);\n extern float __cdecl fminf (float, float);\n extern long double __cdecl fminl (long double, long double);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n extern double __cdecl fma (double, double, double);\n extern float __cdecl fmaf (float, float, float);\n extern long double __cdecl fmal (long double, long double, long double);\n#pragma line 871 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\math.h\" 3\n __attribute__ ((__dllimport__)) float __cdecl _copysignf (float _Number,float _Sign);\n __attribute__ ((__dllimport__)) float __cdecl _chgsignf (float _X);\n __attribute__ ((__dllimport__)) float __cdecl _logbf(float _X);\n __attribute__ ((__dllimport__)) float __cdecl _nextafterf(float _X,float _Y);\n __attribute__ ((__dllimport__)) int __cdecl _finitef(float _X);\n __attribute__ ((__dllimport__)) int __cdecl _isnanf(float _X);\n __attribute__ ((__dllimport__)) int __cdecl _fpclassf(float _X);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n extern long double __cdecl _chgsignl (long double);\n#pragma line 898 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\math.h\" 3\n#pragma pack(pop)\n#pragma line 2 \"D:/HLS_2018.2update/HLS/labsource/labs/lab4/fir_test.c\" 2\n#pragma empty_line\n#pragma line 1 \"D:/HLS_2018.2update/HLS/labsource/labs/lab4/fir.h\" 1\n#pragma empty_line\n#pragma empty_line\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/include\\\\ap_cint.h\" 1\n#pragma line 66 \"C:/Xilinx/Vivado/2018.2/include\\\\ap_cint.h\"\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\string.h\" 1 3\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 1 3\n#pragma line 9 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\string.h\" 2 3\n#pragma line 36 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\string.h\" 3\n __attribute__ ((__dllimport__)) void *__cdecl _memccpy(void *_Dst,const void *_Src,int _Val,size_t _MaxCount);\n void *__cdecl memchr(const void *_Buf ,int _Val,size_t _MaxCount);\n __attribute__ ((__dllimport__)) int __cdecl _memicmp(const void *_Buf1,const void *_Buf2,size_t _Size);\n __attribute__ ((__dllimport__)) int __cdecl _memicmp_l(const void *_Buf1,const void *_Buf2,size_t _Size,_locale_t _Locale);\n int __cdecl memcmp(const void *_Buf1,const void *_Buf2,size_t _Size);\n void *__cdecl memcpy(void * __restrict__ _Dst,const void * __restrict__ _Src,size_t _Size) ;\n void *__cdecl memset(void *_Dst,int _Val,size_t _Size);\n#pragma empty_line\n void *__cdecl memccpy(void *_Dst,const void *_Src,int _Val,size_t _Size) ;\n int __cdecl memicmp(const void *_Buf1,const void *_Buf2,size_t _Size) ;\n#pragma empty_line\n#pragma empty_line\n char *__cdecl _strset(char *_Str,int _Val) ;\n char *__cdecl _strset_l(char *_Str,int _Val,_locale_t _Locale) ;\n char *__cdecl strcpy(char * __restrict__ _Dest,const char * __restrict__ _Source);\n char *__cdecl strcat(char * __restrict__ _Dest,const char * __restrict__ _Source);\n int __cdecl strcmp(const char *_Str1,const char *_Str2);\n size_t __cdecl strlen(const char *_Str);\n size_t __cdecl strnlen(const char *_Str,size_t _MaxCount);\n void *__cdecl memmove(void *_Dst,const void *_Src,size_t _Size) ;\n __attribute__ ((__dllimport__)) char *__cdecl _strdup(const char *_Src);\n char *__cdecl strchr(const char *_Str,int _Val);\n __attribute__ ((__dllimport__)) int __cdecl _stricmp(const char *_Str1,const char *_Str2);\n __attribute__ ((__dllimport__)) int __cdecl _strcmpi(const char *_Str1,const char *_Str2);\n __attribute__ ((__dllimport__)) int __cdecl _stricmp_l(const char *_Str1,const char *_Str2,_locale_t _Locale);\n int __cdecl strcoll(const char *_Str1,const char *_Str2);\n __attribute__ ((__dllimport__)) int __cdecl _strcoll_l(const char *_Str1,const char *_Str2,_locale_t _Locale);\n __attribute__ ((__dllimport__)) int __cdecl _stricoll(const char *_Str1,const char *_Str2);\n __attribute__ ((__dllimport__)) int __cdecl _stricoll_l(const char *_Str1,const char *_Str2,_locale_t _Locale);\n __attribute__ ((__dllimport__)) int __cdecl _strncoll (const char *_Str1,const char *_Str2,size_t _MaxCount);\n __attribute__ ((__dllimport__)) int __cdecl _strncoll_l(const char *_Str1,const char *_Str2,size_t _MaxCount,_locale_t _Locale);\n __attribute__ ((__dllimport__)) int __cdecl _strnicoll (const char *_Str1,const char *_Str2,size_t _MaxCount);\n __attribute__ ((__dllimport__)) int __cdecl _strnicoll_l(const char *_Str1,const char *_Str2,size_t _MaxCount,_locale_t _Locale);\n size_t __cdecl strcspn(const char *_Str,const char *_Control);\n __attribute__ ((__dllimport__)) char *__cdecl _strerror(const char *_ErrMsg) ;\n char *__cdecl strerror(int) ;\n __attribute__ ((__dllimport__)) char *__cdecl _strlwr(char *_String) ;\n char *strlwr_l(char *_String,_locale_t _Locale) ;\n char *__cdecl strncat(char * __restrict__ _Dest,const char * __restrict__ _Source,size_t _Count) ;\n int __cdecl strncmp(const char *_Str1,const char *_Str2,size_t _MaxCount);\n __attribute__ ((__dllimport__)) int __cdecl _strnicmp(const char *_Str1,const char *_Str2,size_t _MaxCount);\n __attribute__ ((__dllimport__)) int __cdecl _strnicmp_l(const char *_Str1,const char *_Str2,size_t _MaxCount,_locale_t _Locale);\n char *strncpy(char * __restrict__ _Dest,const char * __restrict__ _Source,size_t _Count) ;\n __attribute__ ((__dllimport__)) char *__cdecl _strnset(char *_Str,int _Val,size_t _MaxCount) ;\n __attribute__ ((__dllimport__)) char *__cdecl _strnset_l(char *str,int c,size_t count,_locale_t _Locale) ;\n char *__cdecl strpbrk(const char *_Str,const char *_Control);\n char *__cdecl strrchr(const char *_Str,int _Ch);\n __attribute__ ((__dllimport__)) char *__cdecl _strrev(char *_Str);\n size_t __cdecl strspn(const char *_Str,const char *_Control);\n char *__cdecl strstr(const char *_Str,const char *_SubStr);\n char *__cdecl strtok(char * __restrict__ _Str,const char * __restrict__ _Delim) ;\n __attribute__ ((__dllimport__)) char *__cdecl _strupr(char *_String) ;\n __attribute__ ((__dllimport__)) char *_strupr_l(char *_String,_locale_t _Locale) ;\n size_t __cdecl strxfrm(char * __restrict__ _Dst,const char * __restrict__ _Src,size_t _MaxCount);\n __attribute__ ((__dllimport__)) size_t __cdecl _strxfrm_l(char * __restrict__ _Dst,const char * __restrict__ _Src,size_t _MaxCount,_locale_t _Locale);\n#pragma empty_line\n#pragma empty_line\n char *__cdecl strdup(const char *_Src) ;\n int __cdecl strcmpi(const char *_Str1,const char *_Str2) ;\n int __cdecl stricmp(const char *_Str1,const char *_Str2) ;\n char *__cdecl strlwr(char *_Str) ;\n int __cdecl strnicmp(const char *_Str1,const char *_Str,size_t _MaxCount) ;\n int __cdecl strncasecmp (const char *, const char *, size_t);\n int __cdecl strcasecmp (const char *, const char *);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n char *__cdecl strnset(char *_Str,int _Val,size_t _MaxCount) ;\n char *__cdecl strrev(char *_Str) ;\n char *__cdecl strset(char *_Str,int _Val) ;\n char *__cdecl strupr(char *_Str) ;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _wcsdup(const wchar_t *_Str);\n wchar_t *__cdecl wcscat(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Source) ;\n wchar_t *__cdecl wcschr(const wchar_t *_Str,wchar_t _Ch);\n int __cdecl wcscmp(const wchar_t *_Str1,const wchar_t *_Str2);\n wchar_t *__cdecl wcscpy(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Source) ;\n size_t __cdecl wcscspn(const wchar_t *_Str,const wchar_t *_Control);\n size_t __cdecl wcslen(const wchar_t *_Str);\n size_t __cdecl wcsnlen(const wchar_t *_Src,size_t _MaxCount);\n wchar_t *wcsncat(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Source,size_t _Count) ;\n int __cdecl wcsncmp(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount);\n wchar_t *wcsncpy(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Source,size_t _Count) ;\n wchar_t *__cdecl _wcsncpy_l(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Source,size_t _Count,_locale_t _Locale) ;\n wchar_t *__cdecl wcspbrk(const wchar_t *_Str,const wchar_t *_Control);\n wchar_t *__cdecl wcsrchr(const wchar_t *_Str,wchar_t _Ch);\n size_t __cdecl wcsspn(const wchar_t *_Str,const wchar_t *_Control);\n wchar_t *__cdecl wcsstr(const wchar_t *_Str,const wchar_t *_SubStr);\n wchar_t *__cdecl wcstok(wchar_t * __restrict__ _Str,const wchar_t * __restrict__ _Delim) ;\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _wcserror(int _ErrNum) ;\n __attribute__ ((__dllimport__)) wchar_t *__cdecl __wcserror(const wchar_t *_Str) ;\n __attribute__ ((__dllimport__)) int __cdecl _wcsicmp(const wchar_t *_Str1,const wchar_t *_Str2);\n __attribute__ ((__dllimport__)) int __cdecl _wcsicmp_l(const wchar_t *_Str1,const wchar_t *_Str2,_locale_t _Locale);\n __attribute__ ((__dllimport__)) int __cdecl _wcsnicmp(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount);\n __attribute__ ((__dllimport__)) int __cdecl _wcsnicmp_l(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount,_locale_t _Locale);\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _wcsnset(wchar_t *_Str,wchar_t _Val,size_t _MaxCount) ;\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _wcsrev(wchar_t *_Str);\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _wcsset(wchar_t *_Str,wchar_t _Val) ;\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _wcslwr(wchar_t *_String) ;\n __attribute__ ((__dllimport__)) wchar_t *_wcslwr_l(wchar_t *_String,_locale_t _Locale) ;\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _wcsupr(wchar_t *_String) ;\n __attribute__ ((__dllimport__)) wchar_t *_wcsupr_l(wchar_t *_String,_locale_t _Locale) ;\n size_t __cdecl wcsxfrm(wchar_t * __restrict__ _Dst,const wchar_t * __restrict__ _Src,size_t _MaxCount);\n __attribute__ ((__dllimport__)) size_t __cdecl _wcsxfrm_l(wchar_t * __restrict__ _Dst,const wchar_t * __restrict__ _Src,size_t _MaxCount,_locale_t _Locale);\n int __cdecl wcscoll(const wchar_t *_Str1,const wchar_t *_Str2);\n __attribute__ ((__dllimport__)) int __cdecl _wcscoll_l(const wchar_t *_Str1,const wchar_t *_Str2,_locale_t _Locale);\n __attribute__ ((__dllimport__)) int __cdecl _wcsicoll(const wchar_t *_Str1,const wchar_t *_Str2);\n __attribute__ ((__dllimport__)) int __cdecl _wcsicoll_l(const wchar_t *_Str1,const wchar_t *_Str2,_locale_t _Locale);\n __attribute__ ((__dllimport__)) int __cdecl _wcsncoll(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount);\n __attribute__ ((__dllimport__)) int __cdecl _wcsncoll_l(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount,_locale_t _Locale);\n __attribute__ ((__dllimport__)) int __cdecl _wcsnicoll(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount);\n __attribute__ ((__dllimport__)) int __cdecl _wcsnicoll_l(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount,_locale_t _Locale);\n#pragma empty_line\n#pragma empty_line\n wchar_t *__cdecl wcsdup(const wchar_t *_Str) ;\n#pragma empty_line\n int __cdecl wcsicmp(const wchar_t *_Str1,const wchar_t *_Str2) ;\n int __cdecl wcsnicmp(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount) ;\n wchar_t *__cdecl wcsnset(wchar_t *_Str,wchar_t _Val,size_t _MaxCount) ;\n wchar_t *__cdecl wcsrev(wchar_t *_Str) ;\n wchar_t *__cdecl wcsset(wchar_t *_Str,wchar_t _Val) ;\n wchar_t *__cdecl wcslwr(wchar_t *_Str) ;\n wchar_t *__cdecl wcsupr(wchar_t *_Str) ;\n int __cdecl wcsicoll(const wchar_t *_Str1,const wchar_t *_Str2) ;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\sec_api/string_s.h\" 1 3\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\string.h\" 1 3\n#pragma line 9 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\sec_api/string_s.h\" 2 3\n#pragma line 175 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\string.h\" 2 3\n#pragma line 67 \"C:/Xilinx/Vivado/2018.2/include\\\\ap_cint.h\" 2\n#pragma line 81 \"C:/Xilinx/Vivado/2018.2/include\\\\ap_cint.h\"\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/include/etc/autopilot_apint.h\" 1\n#pragma line 57 \"C:/Xilinx/Vivado/2018.2/include/etc/autopilot_apint.h\"\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_dt.h\" 1\n#pragma line 97 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_dt.h\"\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_dt.def\" 1\n#pragma empty_line\n#pragma empty_line\ntypedef int __attribute__ ((bitwidth(1))) int1;\ntypedef int __attribute__ ((bitwidth(2))) int2;\ntypedef int __attribute__ ((bitwidth(3))) int3;\ntypedef int __attribute__ ((bitwidth(4))) int4;\ntypedef int __attribute__ ((bitwidth(5))) int5;\ntypedef int __attribute__ ((bitwidth(6))) int6;\ntypedef int __attribute__ ((bitwidth(7))) int7;\ntypedef int __attribute__ ((bitwidth(8))) int8;\ntypedef int __attribute__ ((bitwidth(9))) int9;\ntypedef int __attribute__ ((bitwidth(10))) int10;\ntypedef int __attribute__ ((bitwidth(11))) int11;\ntypedef int __attribute__ ((bitwidth(12))) int12;\ntypedef int __attribute__ ((bitwidth(13))) int13;\ntypedef int __attribute__ ((bitwidth(14))) int14;\ntypedef int __attribute__ ((bitwidth(15))) int15;\ntypedef int __attribute__ ((bitwidth(16))) int16;\ntypedef int __attribute__ ((bitwidth(17))) int17;\ntypedef int __attribute__ ((bitwidth(18))) int18;\ntypedef int __attribute__ ((bitwidth(19))) int19;\ntypedef int __attribute__ ((bitwidth(20))) int20;\ntypedef int __attribute__ ((bitwidth(21))) int21;\ntypedef int __attribute__ ((bitwidth(22))) int22;\ntypedef int __attribute__ ((bitwidth(23))) int23;\ntypedef int __attribute__ ((bitwidth(24))) int24;\ntypedef int __attribute__ ((bitwidth(25))) int25;\ntypedef int __attribute__ ((bitwidth(26))) int26;\ntypedef int __attribute__ ((bitwidth(27))) int27;\ntypedef int __attribute__ ((bitwidth(28))) int28;\ntypedef int __attribute__ ((bitwidth(29))) int29;\ntypedef int __attribute__ ((bitwidth(30))) int30;\ntypedef int __attribute__ ((bitwidth(31))) int31;\ntypedef int __attribute__ ((bitwidth(32))) int32;\ntypedef int __attribute__ ((bitwidth(33))) int33;\ntypedef int __attribute__ ((bitwidth(34))) int34;\ntypedef int __attribute__ ((bitwidth(35))) int35;\ntypedef int __attribute__ ((bitwidth(36))) int36;\ntypedef int __attribute__ ((bitwidth(37))) int37;\ntypedef int __attribute__ ((bitwidth(38))) int38;\ntypedef int __attribute__ ((bitwidth(39))) int39;\ntypedef int __attribute__ ((bitwidth(40))) int40;\ntypedef int __attribute__ ((bitwidth(41))) int41;\ntypedef int __attribute__ ((bitwidth(42))) int42;\ntypedef int __attribute__ ((bitwidth(43))) int43;\ntypedef int __attribute__ ((bitwidth(44))) int44;\ntypedef int __attribute__ ((bitwidth(45))) int45;\ntypedef int __attribute__ ((bitwidth(46))) int46;\ntypedef int __attribute__ ((bitwidth(47))) int47;\ntypedef int __attribute__ ((bitwidth(48))) int48;\ntypedef int __attribute__ ((bitwidth(49))) int49;\ntypedef int __attribute__ ((bitwidth(50))) int50;\ntypedef int __attribute__ ((bitwidth(51))) int51;\ntypedef int __attribute__ ((bitwidth(52))) int52;\ntypedef int __attribute__ ((bitwidth(53))) int53;\ntypedef int __attribute__ ((bitwidth(54))) int54;\ntypedef int __attribute__ ((bitwidth(55))) int55;\ntypedef int __attribute__ ((bitwidth(56))) int56;\ntypedef int __attribute__ ((bitwidth(57))) int57;\ntypedef int __attribute__ ((bitwidth(58))) int58;\ntypedef int __attribute__ ((bitwidth(59))) int59;\ntypedef int __attribute__ ((bitwidth(60))) int60;\ntypedef int __attribute__ ((bitwidth(61))) int61;\ntypedef int __attribute__ ((bitwidth(62))) int62;\ntypedef int __attribute__ ((bitwidth(63))) int63;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\ntypedef int __attribute__ ((bitwidth(65))) int65;\ntypedef int __attribute__ ((bitwidth(66))) int66;\ntypedef int __attribute__ ((bitwidth(67))) int67;\ntypedef int __attribute__ ((bitwidth(68))) int68;\ntypedef int __attribute__ ((bitwidth(69))) int69;\ntypedef int __attribute__ ((bitwidth(70))) int70;\ntypedef int __attribute__ ((bitwidth(71))) int71;\ntypedef int __attribute__ ((bitwidth(72))) int72;\ntypedef int __attribute__ ((bitwidth(73))) int73;\ntypedef int __attribute__ ((bitwidth(74))) int74;\ntypedef int __attribute__ ((bitwidth(75))) int75;\ntypedef int __attribute__ ((bitwidth(76))) int76;\ntypedef int __attribute__ ((bitwidth(77))) int77;\ntypedef int __attribute__ ((bitwidth(78))) int78;\ntypedef int __attribute__ ((bitwidth(79))) int79;\ntypedef int __attribute__ ((bitwidth(80))) int80;\ntypedef int __attribute__ ((bitwidth(81))) int81;\ntypedef int __attribute__ ((bitwidth(82))) int82;\ntypedef int __attribute__ ((bitwidth(83))) int83;\ntypedef int __attribute__ ((bitwidth(84))) int84;\ntypedef int __attribute__ ((bitwidth(85))) int85;\ntypedef int __attribute__ ((bitwidth(86))) int86;\ntypedef int __attribute__ ((bitwidth(87))) int87;\ntypedef int __attribute__ ((bitwidth(88))) int88;\ntypedef int __attribute__ ((bitwidth(89))) int89;\ntypedef int __attribute__ ((bitwidth(90))) int90;\ntypedef int __attribute__ ((bitwidth(91))) int91;\ntypedef int __attribute__ ((bitwidth(92))) int92;\ntypedef int __attribute__ ((bitwidth(93))) int93;\ntypedef int __attribute__ ((bitwidth(94))) int94;\ntypedef int __attribute__ ((bitwidth(95))) int95;\ntypedef int __attribute__ ((bitwidth(96))) int96;\ntypedef int __attribute__ ((bitwidth(97))) int97;\ntypedef int __attribute__ ((bitwidth(98))) int98;\ntypedef int __attribute__ ((bitwidth(99))) int99;\ntypedef int __attribute__ ((bitwidth(100))) int100;\ntypedef int __attribute__ ((bitwidth(101))) int101;\ntypedef int __attribute__ ((bitwidth(102))) int102;\ntypedef int __attribute__ ((bitwidth(103))) int103;\ntypedef int __attribute__ ((bitwidth(104))) int104;\ntypedef int __attribute__ ((bitwidth(105))) int105;\ntypedef int __attribute__ ((bitwidth(106))) int106;\ntypedef int __attribute__ ((bitwidth(107))) int107;\ntypedef int __attribute__ ((bitwidth(108))) int108;\ntypedef int __attribute__ ((bitwidth(109))) int109;\ntypedef int __attribute__ ((bitwidth(110))) int110;\ntypedef int __attribute__ ((bitwidth(111))) int111;\ntypedef int __attribute__ ((bitwidth(112))) int112;\ntypedef int __attribute__ ((bitwidth(113))) int113;\ntypedef int __attribute__ ((bitwidth(114))) int114;\ntypedef int __attribute__ ((bitwidth(115))) int115;\ntypedef int __attribute__ ((bitwidth(116))) int116;\ntypedef int __attribute__ ((bitwidth(117))) int117;\ntypedef int __attribute__ ((bitwidth(118))) int118;\ntypedef int __attribute__ ((bitwidth(119))) int119;\ntypedef int __attribute__ ((bitwidth(120))) int120;\ntypedef int __attribute__ ((bitwidth(121))) int121;\ntypedef int __attribute__ ((bitwidth(122))) int122;\ntypedef int __attribute__ ((bitwidth(123))) int123;\ntypedef int __attribute__ ((bitwidth(124))) int124;\ntypedef int __attribute__ ((bitwidth(125))) int125;\ntypedef int __attribute__ ((bitwidth(126))) int126;\ntypedef int __attribute__ ((bitwidth(127))) int127;\ntypedef int __attribute__ ((bitwidth(128))) int128;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\ntypedef int __attribute__ ((bitwidth(129))) int129;\ntypedef int __attribute__ ((bitwidth(130))) int130;\ntypedef int __attribute__ ((bitwidth(131))) int131;\ntypedef int __attribute__ ((bitwidth(132))) int132;\ntypedef int __attribute__ ((bitwidth(133))) int133;\ntypedef int __attribute__ ((bitwidth(134))) int134;\ntypedef int __attribute__ ((bitwidth(135))) int135;\ntypedef int __attribute__ ((bitwidth(136))) int136;\ntypedef int __attribute__ ((bitwidth(137))) int137;\ntypedef int __attribute__ ((bitwidth(138))) int138;\ntypedef int __attribute__ ((bitwidth(139))) int139;\ntypedef int __attribute__ ((bitwidth(140))) int140;\ntypedef int __attribute__ ((bitwidth(141))) int141;\ntypedef int __attribute__ ((bitwidth(142))) int142;\ntypedef int __attribute__ ((bitwidth(143))) int143;\ntypedef int __attribute__ ((bitwidth(144))) int144;\ntypedef int __attribute__ ((bitwidth(145))) int145;\ntypedef int __attribute__ ((bitwidth(146))) int146;\ntypedef int __attribute__ ((bitwidth(147))) int147;\ntypedef int __attribute__ ((bitwidth(148))) int148;\ntypedef int __attribute__ ((bitwidth(149))) int149;\ntypedef int __attribute__ ((bitwidth(150))) int150;\ntypedef int __attribute__ ((bitwidth(151))) int151;\ntypedef int __attribute__ ((bitwidth(152))) int152;\ntypedef int __attribute__ ((bitwidth(153))) int153;\ntypedef int __attribute__ ((bitwidth(154))) int154;\ntypedef int __attribute__ ((bitwidth(155))) int155;\ntypedef int __attribute__ ((bitwidth(156))) int156;\ntypedef int __attribute__ ((bitwidth(157))) int157;\ntypedef int __attribute__ ((bitwidth(158))) int158;\ntypedef int __attribute__ ((bitwidth(159))) int159;\ntypedef int __attribute__ ((bitwidth(160))) int160;\ntypedef int __attribute__ ((bitwidth(161))) int161;\ntypedef int __attribute__ ((bitwidth(162))) int162;\ntypedef int __attribute__ ((bitwidth(163))) int163;\ntypedef int __attribute__ ((bitwidth(164))) int164;\ntypedef int __attribute__ ((bitwidth(165))) int165;\ntypedef int __attribute__ ((bitwidth(166))) int166;\ntypedef int __attribute__ ((bitwidth(167))) int167;\ntypedef int __attribute__ ((bitwidth(168))) int168;\ntypedef int __attribute__ ((bitwidth(169))) int169;\ntypedef int __attribute__ ((bitwidth(170))) int170;\ntypedef int __attribute__ ((bitwidth(171))) int171;\ntypedef int __attribute__ ((bitwidth(172))) int172;\ntypedef int __attribute__ ((bitwidth(173))) int173;\ntypedef int __attribute__ ((bitwidth(174))) int174;\ntypedef int __attribute__ ((bitwidth(175))) int175;\ntypedef int __attribute__ ((bitwidth(176))) int176;\ntypedef int __attribute__ ((bitwidth(177))) int177;\ntypedef int __attribute__ ((bitwidth(178))) int178;\ntypedef int __attribute__ ((bitwidth(179))) int179;\ntypedef int __attribute__ ((bitwidth(180))) int180;\ntypedef int __attribute__ ((bitwidth(181))) int181;\ntypedef int __attribute__ ((bitwidth(182))) int182;\ntypedef int __attribute__ ((bitwidth(183))) int183;\ntypedef int __attribute__ ((bitwidth(184))) int184;\ntypedef int __attribute__ ((bitwidth(185))) int185;\ntypedef int __attribute__ ((bitwidth(186))) int186;\ntypedef int __attribute__ ((bitwidth(187))) int187;\ntypedef int __attribute__ ((bitwidth(188))) int188;\ntypedef int __attribute__ ((bitwidth(189))) int189;\ntypedef int __attribute__ ((bitwidth(190))) int190;\ntypedef int __attribute__ ((bitwidth(191))) int191;\ntypedef int __attribute__ ((bitwidth(192))) int192;\ntypedef int __attribute__ ((bitwidth(193))) int193;\ntypedef int __attribute__ ((bitwidth(194))) int194;\ntypedef int __attribute__ ((bitwidth(195))) int195;\ntypedef int __attribute__ ((bitwidth(196))) int196;\ntypedef int __attribute__ ((bitwidth(197))) int197;\ntypedef int __attribute__ ((bitwidth(198))) int198;\ntypedef int __attribute__ ((bitwidth(199))) int199;\ntypedef int __attribute__ ((bitwidth(200))) int200;\ntypedef int __attribute__ ((bitwidth(201))) int201;\ntypedef int __attribute__ ((bitwidth(202))) int202;\ntypedef int __attribute__ ((bitwidth(203))) int203;\ntypedef int __attribute__ ((bitwidth(204))) int204;\ntypedef int __attribute__ ((bitwidth(205))) int205;\ntypedef int __attribute__ ((bitwidth(206))) int206;\ntypedef int __attribute__ ((bitwidth(207))) int207;\ntypedef int __attribute__ ((bitwidth(208))) int208;\ntypedef int __attribute__ ((bitwidth(209))) int209;\ntypedef int __attribute__ ((bitwidth(210))) int210;\ntypedef int __attribute__ ((bitwidth(211))) int211;\ntypedef int __attribute__ ((bitwidth(212))) int212;\ntypedef int __attribute__ ((bitwidth(213))) int213;\ntypedef int __attribute__ ((bitwidth(214))) int214;\ntypedef int __attribute__ ((bitwidth(215))) int215;\ntypedef int __attribute__ ((bitwidth(216))) int216;\ntypedef int __attribute__ ((bitwidth(217))) int217;\ntypedef int __attribute__ ((bitwidth(218))) int218;\ntypedef int __attribute__ ((bitwidth(219))) int219;\ntypedef int __attribute__ ((bitwidth(220))) int220;\ntypedef int __attribute__ ((bitwidth(221))) int221;\ntypedef int __attribute__ ((bitwidth(222))) int222;\ntypedef int __attribute__ ((bitwidth(223))) int223;\ntypedef int __attribute__ ((bitwidth(224))) int224;\ntypedef int __attribute__ ((bitwidth(225))) int225;\ntypedef int __attribute__ ((bitwidth(226))) int226;\ntypedef int __attribute__ ((bitwidth(227))) int227;\ntypedef int __attribute__ ((bitwidth(228))) int228;\ntypedef int __attribute__ ((bitwidth(229))) int229;\ntypedef int __attribute__ ((bitwidth(230))) int230;\ntypedef int __attribute__ ((bitwidth(231))) int231;\ntypedef int __attribute__ ((bitwidth(232))) int232;\ntypedef int __attribute__ ((bitwidth(233))) int233;\ntypedef int __attribute__ ((bitwidth(234))) int234;\ntypedef int __attribute__ ((bitwidth(235))) int235;\ntypedef int __attribute__ ((bitwidth(236))) int236;\ntypedef int __attribute__ ((bitwidth(237))) int237;\ntypedef int __attribute__ ((bitwidth(238))) int238;\ntypedef int __attribute__ ((bitwidth(239))) int239;\ntypedef int __attribute__ ((bitwidth(240))) int240;\ntypedef int __attribute__ ((bitwidth(241))) int241;\ntypedef int __attribute__ ((bitwidth(242))) int242;\ntypedef int __attribute__ ((bitwidth(243))) int243;\ntypedef int __attribute__ ((bitwidth(244))) int244;\ntypedef int __attribute__ ((bitwidth(245))) int245;\ntypedef int __attribute__ ((bitwidth(246))) int246;\ntypedef int __attribute__ ((bitwidth(247))) int247;\ntypedef int __attribute__ ((bitwidth(248))) int248;\ntypedef int __attribute__ ((bitwidth(249))) int249;\ntypedef int __attribute__ ((bitwidth(250))) int250;\ntypedef int __attribute__ ((bitwidth(251))) int251;\ntypedef int __attribute__ ((bitwidth(252))) int252;\ntypedef int __attribute__ ((bitwidth(253))) int253;\ntypedef int __attribute__ ((bitwidth(254))) int254;\ntypedef int __attribute__ ((bitwidth(255))) int255;\ntypedef int __attribute__ ((bitwidth(256))) int256;\ntypedef int __attribute__ ((bitwidth(257))) int257;\ntypedef int __attribute__ ((bitwidth(258))) int258;\ntypedef int __attribute__ ((bitwidth(259))) int259;\ntypedef int __attribute__ ((bitwidth(260))) int260;\ntypedef int __attribute__ ((bitwidth(261))) int261;\ntypedef int __attribute__ ((bitwidth(262))) int262;\ntypedef int __attribute__ ((bitwidth(263))) int263;\ntypedef int __attribute__ ((bitwidth(264))) int264;\ntypedef int __attribute__ ((bitwidth(265))) int265;\ntypedef int __attribute__ ((bitwidth(266))) int266;\ntypedef int __attribute__ ((bitwidth(267))) int267;\ntypedef int __attribute__ ((bitwidth(268))) int268;\ntypedef int __attribute__ ((bitwidth(269))) int269;\ntypedef int __attribute__ ((bitwidth(270))) int270;\ntypedef int __attribute__ ((bitwidth(271))) int271;\ntypedef int __attribute__ ((bitwidth(272))) int272;\ntypedef int __attribute__ ((bitwidth(273))) int273;\ntypedef int __attribute__ ((bitwidth(274))) int274;\ntypedef int __attribute__ ((bitwidth(275))) int275;\ntypedef int __attribute__ ((bitwidth(276))) int276;\ntypedef int __attribute__ ((bitwidth(277))) int277;\ntypedef int __attribute__ ((bitwidth(278))) int278;\ntypedef int __attribute__ ((bitwidth(279))) int279;\ntypedef int __attribute__ ((bitwidth(280))) int280;\ntypedef int __attribute__ ((bitwidth(281))) int281;\ntypedef int __attribute__ ((bitwidth(282))) int282;\ntypedef int __attribute__ ((bitwidth(283))) int283;\ntypedef int __attribute__ ((bitwidth(284))) int284;\ntypedef int __attribute__ ((bitwidth(285))) int285;\ntypedef int __attribute__ ((bitwidth(286))) int286;\ntypedef int __attribute__ ((bitwidth(287))) int287;\ntypedef int __attribute__ ((bitwidth(288))) int288;\ntypedef int __attribute__ ((bitwidth(289))) int289;\ntypedef int __attribute__ ((bitwidth(290))) int290;\ntypedef int __attribute__ ((bitwidth(291))) int291;\ntypedef int __attribute__ ((bitwidth(292))) int292;\ntypedef int __attribute__ ((bitwidth(293))) int293;\ntypedef int __attribute__ ((bitwidth(294))) int294;\ntypedef int __attribute__ ((bitwidth(295))) int295;\ntypedef int __attribute__ ((bitwidth(296))) int296;\ntypedef int __attribute__ ((bitwidth(297))) int297;\ntypedef int __attribute__ ((bitwidth(298))) int298;\ntypedef int __attribute__ ((bitwidth(299))) int299;\ntypedef int __attribute__ ((bitwidth(300))) int300;\ntypedef int __attribute__ ((bitwidth(301))) int301;\ntypedef int __attribute__ ((bitwidth(302))) int302;\ntypedef int __attribute__ ((bitwidth(303))) int303;\ntypedef int __attribute__ ((bitwidth(304))) int304;\ntypedef int __attribute__ ((bitwidth(305))) int305;\ntypedef int __attribute__ ((bitwidth(306))) int306;\ntypedef int __attribute__ ((bitwidth(307))) int307;\ntypedef int __attribute__ ((bitwidth(308))) int308;\ntypedef int __attribute__ ((bitwidth(309))) int309;\ntypedef int __attribute__ ((bitwidth(310))) int310;\ntypedef int __attribute__ ((bitwidth(311))) int311;\ntypedef int __attribute__ ((bitwidth(312))) int312;\ntypedef int __attribute__ ((bitwidth(313))) int313;\ntypedef int __attribute__ ((bitwidth(314))) int314;\ntypedef int __attribute__ ((bitwidth(315))) int315;\ntypedef int __attribute__ ((bitwidth(316))) int316;\ntypedef int __attribute__ ((bitwidth(317))) int317;\ntypedef int __attribute__ ((bitwidth(318))) int318;\ntypedef int __attribute__ ((bitwidth(319))) int319;\ntypedef int __attribute__ ((bitwidth(320))) int320;\ntypedef int __attribute__ ((bitwidth(321))) int321;\ntypedef int __attribute__ ((bitwidth(322))) int322;\ntypedef int __attribute__ ((bitwidth(323))) int323;\ntypedef int __attribute__ ((bitwidth(324))) int324;\ntypedef int __attribute__ ((bitwidth(325))) int325;\ntypedef int __attribute__ ((bitwidth(326))) int326;\ntypedef int __attribute__ ((bitwidth(327))) int327;\ntypedef int __attribute__ ((bitwidth(328))) int328;\ntypedef int __attribute__ ((bitwidth(329))) int329;\ntypedef int __attribute__ ((bitwidth(330))) int330;\ntypedef int __attribute__ ((bitwidth(331))) int331;\ntypedef int __attribute__ ((bitwidth(332))) int332;\ntypedef int __attribute__ ((bitwidth(333))) int333;\ntypedef int __attribute__ ((bitwidth(334))) int334;\ntypedef int __attribute__ ((bitwidth(335))) int335;\ntypedef int __attribute__ ((bitwidth(336))) int336;\ntypedef int __attribute__ ((bitwidth(337))) int337;\ntypedef int __attribute__ ((bitwidth(338))) int338;\ntypedef int __attribute__ ((bitwidth(339))) int339;\ntypedef int __attribute__ ((bitwidth(340))) int340;\ntypedef int __attribute__ ((bitwidth(341))) int341;\ntypedef int __attribute__ ((bitwidth(342))) int342;\ntypedef int __attribute__ ((bitwidth(343))) int343;\ntypedef int __attribute__ ((bitwidth(344))) int344;\ntypedef int __attribute__ ((bitwidth(345))) int345;\ntypedef int __attribute__ ((bitwidth(346))) int346;\ntypedef int __attribute__ ((bitwidth(347))) int347;\ntypedef int __attribute__ ((bitwidth(348))) int348;\ntypedef int __attribute__ ((bitwidth(349))) int349;\ntypedef int __attribute__ ((bitwidth(350))) int350;\ntypedef int __attribute__ ((bitwidth(351))) int351;\ntypedef int __attribute__ ((bitwidth(352))) int352;\ntypedef int __attribute__ ((bitwidth(353))) int353;\ntypedef int __attribute__ ((bitwidth(354))) int354;\ntypedef int __attribute__ ((bitwidth(355))) int355;\ntypedef int __attribute__ ((bitwidth(356))) int356;\ntypedef int __attribute__ ((bitwidth(357))) int357;\ntypedef int __attribute__ ((bitwidth(358))) int358;\ntypedef int __attribute__ ((bitwidth(359))) int359;\ntypedef int __attribute__ ((bitwidth(360))) int360;\ntypedef int __attribute__ ((bitwidth(361))) int361;\ntypedef int __attribute__ ((bitwidth(362))) int362;\ntypedef int __attribute__ ((bitwidth(363))) int363;\ntypedef int __attribute__ ((bitwidth(364))) int364;\ntypedef int __attribute__ ((bitwidth(365))) int365;\ntypedef int __attribute__ ((bitwidth(366))) int366;\ntypedef int __attribute__ ((bitwidth(367))) int367;\ntypedef int __attribute__ ((bitwidth(368))) int368;\ntypedef int __attribute__ ((bitwidth(369))) int369;\ntypedef int __attribute__ ((bitwidth(370))) int370;\ntypedef int __attribute__ ((bitwidth(371))) int371;\ntypedef int __attribute__ ((bitwidth(372))) int372;\ntypedef int __attribute__ ((bitwidth(373))) int373;\ntypedef int __attribute__ ((bitwidth(374))) int374;\ntypedef int __attribute__ ((bitwidth(375))) int375;\ntypedef int __attribute__ ((bitwidth(376))) int376;\ntypedef int __attribute__ ((bitwidth(377))) int377;\ntypedef int __attribute__ ((bitwidth(378))) int378;\ntypedef int __attribute__ ((bitwidth(379))) int379;\ntypedef int __attribute__ ((bitwidth(380))) int380;\ntypedef int __attribute__ ((bitwidth(381))) int381;\ntypedef int __attribute__ ((bitwidth(382))) int382;\ntypedef int __attribute__ ((bitwidth(383))) int383;\ntypedef int __attribute__ ((bitwidth(384))) int384;\ntypedef int __attribute__ ((bitwidth(385))) int385;\ntypedef int __attribute__ ((bitwidth(386))) int386;\ntypedef int __attribute__ ((bitwidth(387))) int387;\ntypedef int __attribute__ ((bitwidth(388))) int388;\ntypedef int __attribute__ ((bitwidth(389))) int389;\ntypedef int __attribute__ ((bitwidth(390))) int390;\ntypedef int __attribute__ ((bitwidth(391))) int391;\ntypedef int __attribute__ ((bitwidth(392))) int392;\ntypedef int __attribute__ ((bitwidth(393))) int393;\ntypedef int __attribute__ ((bitwidth(394))) int394;\ntypedef int __attribute__ ((bitwidth(395))) int395;\ntypedef int __attribute__ ((bitwidth(396))) int396;\ntypedef int __attribute__ ((bitwidth(397))) int397;\ntypedef int __attribute__ ((bitwidth(398))) int398;\ntypedef int __attribute__ ((bitwidth(399))) int399;\ntypedef int __attribute__ ((bitwidth(400))) int400;\ntypedef int __attribute__ ((bitwidth(401))) int401;\ntypedef int __attribute__ ((bitwidth(402))) int402;\ntypedef int __attribute__ ((bitwidth(403))) int403;\ntypedef int __attribute__ ((bitwidth(404))) int404;\ntypedef int __attribute__ ((bitwidth(405))) int405;\ntypedef int __attribute__ ((bitwidth(406))) int406;\ntypedef int __attribute__ ((bitwidth(407))) int407;\ntypedef int __attribute__ ((bitwidth(408))) int408;\ntypedef int __attribute__ ((bitwidth(409))) int409;\ntypedef int __attribute__ ((bitwidth(410))) int410;\ntypedef int __attribute__ ((bitwidth(411))) int411;\ntypedef int __attribute__ ((bitwidth(412))) int412;\ntypedef int __attribute__ ((bitwidth(413))) int413;\ntypedef int __attribute__ ((bitwidth(414))) int414;\ntypedef int __attribute__ ((bitwidth(415))) int415;\ntypedef int __attribute__ ((bitwidth(416))) int416;\ntypedef int __attribute__ ((bitwidth(417))) int417;\ntypedef int __attribute__ ((bitwidth(418))) int418;\ntypedef int __attribute__ ((bitwidth(419))) int419;\ntypedef int __attribute__ ((bitwidth(420))) int420;\ntypedef int __attribute__ ((bitwidth(421))) int421;\ntypedef int __attribute__ ((bitwidth(422))) int422;\ntypedef int __attribute__ ((bitwidth(423))) int423;\ntypedef int __attribute__ ((bitwidth(424))) int424;\ntypedef int __attribute__ ((bitwidth(425))) int425;\ntypedef int __attribute__ ((bitwidth(426))) int426;\ntypedef int __attribute__ ((bitwidth(427))) int427;\ntypedef int __attribute__ ((bitwidth(428))) int428;\ntypedef int __attribute__ ((bitwidth(429))) int429;\ntypedef int __attribute__ ((bitwidth(430))) int430;\ntypedef int __attribute__ ((bitwidth(431))) int431;\ntypedef int __attribute__ ((bitwidth(432))) int432;\ntypedef int __attribute__ ((bitwidth(433))) int433;\ntypedef int __attribute__ ((bitwidth(434))) int434;\ntypedef int __attribute__ ((bitwidth(435))) int435;\ntypedef int __attribute__ ((bitwidth(436))) int436;\ntypedef int __attribute__ ((bitwidth(437))) int437;\ntypedef int __attribute__ ((bitwidth(438))) int438;\ntypedef int __attribute__ ((bitwidth(439))) int439;\ntypedef int __attribute__ ((bitwidth(440))) int440;\ntypedef int __attribute__ ((bitwidth(441))) int441;\ntypedef int __attribute__ ((bitwidth(442))) int442;\ntypedef int __attribute__ ((bitwidth(443))) int443;\ntypedef int __attribute__ ((bitwidth(444))) int444;\ntypedef int __attribute__ ((bitwidth(445))) int445;\ntypedef int __attribute__ ((bitwidth(446))) int446;\ntypedef int __attribute__ ((bitwidth(447))) int447;\ntypedef int __attribute__ ((bitwidth(448))) int448;\ntypedef int __attribute__ ((bitwidth(449))) int449;\ntypedef int __attribute__ ((bitwidth(450))) int450;\ntypedef int __attribute__ ((bitwidth(451))) int451;\ntypedef int __attribute__ ((bitwidth(452))) int452;\ntypedef int __attribute__ ((bitwidth(453))) int453;\ntypedef int __attribute__ ((bitwidth(454))) int454;\ntypedef int __attribute__ ((bitwidth(455))) int455;\ntypedef int __attribute__ ((bitwidth(456))) int456;\ntypedef int __attribute__ ((bitwidth(457))) int457;\ntypedef int __attribute__ ((bitwidth(458))) int458;\ntypedef int __attribute__ ((bitwidth(459))) int459;\ntypedef int __attribute__ ((bitwidth(460))) int460;\ntypedef int __attribute__ ((bitwidth(461))) int461;\ntypedef int __attribute__ ((bitwidth(462))) int462;\ntypedef int __attribute__ ((bitwidth(463))) int463;\ntypedef int __attribute__ ((bitwidth(464))) int464;\ntypedef int __attribute__ ((bitwidth(465))) int465;\ntypedef int __attribute__ ((bitwidth(466))) int466;\ntypedef int __attribute__ ((bitwidth(467))) int467;\ntypedef int __attribute__ ((bitwidth(468))) int468;\ntypedef int __attribute__ ((bitwidth(469))) int469;\ntypedef int __attribute__ ((bitwidth(470))) int470;\ntypedef int __attribute__ ((bitwidth(471))) int471;\ntypedef int __attribute__ ((bitwidth(472))) int472;\ntypedef int __attribute__ ((bitwidth(473))) int473;\ntypedef int __attribute__ ((bitwidth(474))) int474;\ntypedef int __attribute__ ((bitwidth(475))) int475;\ntypedef int __attribute__ ((bitwidth(476))) int476;\ntypedef int __attribute__ ((bitwidth(477))) int477;\ntypedef int __attribute__ ((bitwidth(478))) int478;\ntypedef int __attribute__ ((bitwidth(479))) int479;\ntypedef int __attribute__ ((bitwidth(480))) int480;\ntypedef int __attribute__ ((bitwidth(481))) int481;\ntypedef int __attribute__ ((bitwidth(482))) int482;\ntypedef int __attribute__ ((bitwidth(483))) int483;\ntypedef int __attribute__ ((bitwidth(484))) int484;\ntypedef int __attribute__ ((bitwidth(485))) int485;\ntypedef int __attribute__ ((bitwidth(486))) int486;\ntypedef int __attribute__ ((bitwidth(487))) int487;\ntypedef int __attribute__ ((bitwidth(488))) int488;\ntypedef int __attribute__ ((bitwidth(489))) int489;\ntypedef int __attribute__ ((bitwidth(490))) int490;\ntypedef int __attribute__ ((bitwidth(491))) int491;\ntypedef int __attribute__ ((bitwidth(492))) int492;\ntypedef int __attribute__ ((bitwidth(493))) int493;\ntypedef int __attribute__ ((bitwidth(494))) int494;\ntypedef int __attribute__ ((bitwidth(495))) int495;\ntypedef int __attribute__ ((bitwidth(496))) int496;\ntypedef int __attribute__ ((bitwidth(497))) int497;\ntypedef int __attribute__ ((bitwidth(498))) int498;\ntypedef int __attribute__ ((bitwidth(499))) int499;\ntypedef int __attribute__ ((bitwidth(500))) int500;\ntypedef int __attribute__ ((bitwidth(501))) int501;\ntypedef int __attribute__ ((bitwidth(502))) int502;\ntypedef int __attribute__ ((bitwidth(503))) int503;\ntypedef int __attribute__ ((bitwidth(504))) int504;\ntypedef int __attribute__ ((bitwidth(505))) int505;\ntypedef int __attribute__ ((bitwidth(506))) int506;\ntypedef int __attribute__ ((bitwidth(507))) int507;\ntypedef int __attribute__ ((bitwidth(508))) int508;\ntypedef int __attribute__ ((bitwidth(509))) int509;\ntypedef int __attribute__ ((bitwidth(510))) int510;\ntypedef int __attribute__ ((bitwidth(511))) int511;\ntypedef int __attribute__ ((bitwidth(512))) int512;\ntypedef int __attribute__ ((bitwidth(513))) int513;\ntypedef int __attribute__ ((bitwidth(514))) int514;\ntypedef int __attribute__ ((bitwidth(515))) int515;\ntypedef int __attribute__ ((bitwidth(516))) int516;\ntypedef int __attribute__ ((bitwidth(517))) int517;\ntypedef int __attribute__ ((bitwidth(518))) int518;\ntypedef int __attribute__ ((bitwidth(519))) int519;\ntypedef int __attribute__ ((bitwidth(520))) int520;\ntypedef int __attribute__ ((bitwidth(521))) int521;\ntypedef int __attribute__ ((bitwidth(522))) int522;\ntypedef int __attribute__ ((bitwidth(523))) int523;\ntypedef int __attribute__ ((bitwidth(524))) int524;\ntypedef int __attribute__ ((bitwidth(525))) int525;\ntypedef int __attribute__ ((bitwidth(526))) int526;\ntypedef int __attribute__ ((bitwidth(527))) int527;\ntypedef int __attribute__ ((bitwidth(528))) int528;\ntypedef int __attribute__ ((bitwidth(529))) int529;\ntypedef int __attribute__ ((bitwidth(530))) int530;\ntypedef int __attribute__ ((bitwidth(531))) int531;\ntypedef int __attribute__ ((bitwidth(532))) int532;\ntypedef int __attribute__ ((bitwidth(533))) int533;\ntypedef int __attribute__ ((bitwidth(534))) int534;\ntypedef int __attribute__ ((bitwidth(535))) int535;\ntypedef int __attribute__ ((bitwidth(536))) int536;\ntypedef int __attribute__ ((bitwidth(537))) int537;\ntypedef int __attribute__ ((bitwidth(538))) int538;\ntypedef int __attribute__ ((bitwidth(539))) int539;\ntypedef int __attribute__ ((bitwidth(540))) int540;\ntypedef int __attribute__ ((bitwidth(541))) int541;\ntypedef int __attribute__ ((bitwidth(542))) int542;\ntypedef int __attribute__ ((bitwidth(543))) int543;\ntypedef int __attribute__ ((bitwidth(544))) int544;\ntypedef int __attribute__ ((bitwidth(545))) int545;\ntypedef int __attribute__ ((bitwidth(546))) int546;\ntypedef int __attribute__ ((bitwidth(547))) int547;\ntypedef int __attribute__ ((bitwidth(548))) int548;\ntypedef int __attribute__ ((bitwidth(549))) int549;\ntypedef int __attribute__ ((bitwidth(550))) int550;\ntypedef int __attribute__ ((bitwidth(551))) int551;\ntypedef int __attribute__ ((bitwidth(552))) int552;\ntypedef int __attribute__ ((bitwidth(553))) int553;\ntypedef int __attribute__ ((bitwidth(554))) int554;\ntypedef int __attribute__ ((bitwidth(555))) int555;\ntypedef int __attribute__ ((bitwidth(556))) int556;\ntypedef int __attribute__ ((bitwidth(557))) int557;\ntypedef int __attribute__ ((bitwidth(558))) int558;\ntypedef int __attribute__ ((bitwidth(559))) int559;\ntypedef int __attribute__ ((bitwidth(560))) int560;\ntypedef int __attribute__ ((bitwidth(561))) int561;\ntypedef int __attribute__ ((bitwidth(562))) int562;\ntypedef int __attribute__ ((bitwidth(563))) int563;\ntypedef int __attribute__ ((bitwidth(564))) int564;\ntypedef int __attribute__ ((bitwidth(565))) int565;\ntypedef int __attribute__ ((bitwidth(566))) int566;\ntypedef int __attribute__ ((bitwidth(567))) int567;\ntypedef int __attribute__ ((bitwidth(568))) int568;\ntypedef int __attribute__ ((bitwidth(569))) int569;\ntypedef int __attribute__ ((bitwidth(570))) int570;\ntypedef int __attribute__ ((bitwidth(571))) int571;\ntypedef int __attribute__ ((bitwidth(572))) int572;\ntypedef int __attribute__ ((bitwidth(573))) int573;\ntypedef int __attribute__ ((bitwidth(574))) int574;\ntypedef int __attribute__ ((bitwidth(575))) int575;\ntypedef int __attribute__ ((bitwidth(576))) int576;\ntypedef int __attribute__ ((bitwidth(577))) int577;\ntypedef int __attribute__ ((bitwidth(578))) int578;\ntypedef int __attribute__ ((bitwidth(579))) int579;\ntypedef int __attribute__ ((bitwidth(580))) int580;\ntypedef int __attribute__ ((bitwidth(581))) int581;\ntypedef int __attribute__ ((bitwidth(582))) int582;\ntypedef int __attribute__ ((bitwidth(583))) int583;\ntypedef int __attribute__ ((bitwidth(584))) int584;\ntypedef int __attribute__ ((bitwidth(585))) int585;\ntypedef int __attribute__ ((bitwidth(586))) int586;\ntypedef int __attribute__ ((bitwidth(587))) int587;\ntypedef int __attribute__ ((bitwidth(588))) int588;\ntypedef int __attribute__ ((bitwidth(589))) int589;\ntypedef int __attribute__ ((bitwidth(590))) int590;\ntypedef int __attribute__ ((bitwidth(591))) int591;\ntypedef int __attribute__ ((bitwidth(592))) int592;\ntypedef int __attribute__ ((bitwidth(593))) int593;\ntypedef int __attribute__ ((bitwidth(594))) int594;\ntypedef int __attribute__ ((bitwidth(595))) int595;\ntypedef int __attribute__ ((bitwidth(596))) int596;\ntypedef int __attribute__ ((bitwidth(597))) int597;\ntypedef int __attribute__ ((bitwidth(598))) int598;\ntypedef int __attribute__ ((bitwidth(599))) int599;\ntypedef int __attribute__ ((bitwidth(600))) int600;\ntypedef int __attribute__ ((bitwidth(601))) int601;\ntypedef int __attribute__ ((bitwidth(602))) int602;\ntypedef int __attribute__ ((bitwidth(603))) int603;\ntypedef int __attribute__ ((bitwidth(604))) int604;\ntypedef int __attribute__ ((bitwidth(605))) int605;\ntypedef int __attribute__ ((bitwidth(606))) int606;\ntypedef int __attribute__ ((bitwidth(607))) int607;\ntypedef int __attribute__ ((bitwidth(608))) int608;\ntypedef int __attribute__ ((bitwidth(609))) int609;\ntypedef int __attribute__ ((bitwidth(610))) int610;\ntypedef int __attribute__ ((bitwidth(611))) int611;\ntypedef int __attribute__ ((bitwidth(612))) int612;\ntypedef int __attribute__ ((bitwidth(613))) int613;\ntypedef int __attribute__ ((bitwidth(614))) int614;\ntypedef int __attribute__ ((bitwidth(615))) int615;\ntypedef int __attribute__ ((bitwidth(616))) int616;\ntypedef int __attribute__ ((bitwidth(617))) int617;\ntypedef int __attribute__ ((bitwidth(618))) int618;\ntypedef int __attribute__ ((bitwidth(619))) int619;\ntypedef int __attribute__ ((bitwidth(620))) int620;\ntypedef int __attribute__ ((bitwidth(621))) int621;\ntypedef int __attribute__ ((bitwidth(622))) int622;\ntypedef int __attribute__ ((bitwidth(623))) int623;\ntypedef int __attribute__ ((bitwidth(624))) int624;\ntypedef int __attribute__ ((bitwidth(625))) int625;\ntypedef int __attribute__ ((bitwidth(626))) int626;\ntypedef int __attribute__ ((bitwidth(627))) int627;\ntypedef int __attribute__ ((bitwidth(628))) int628;\ntypedef int __attribute__ ((bitwidth(629))) int629;\ntypedef int __attribute__ ((bitwidth(630))) int630;\ntypedef int __attribute__ ((bitwidth(631))) int631;\ntypedef int __attribute__ ((bitwidth(632))) int632;\ntypedef int __attribute__ ((bitwidth(633))) int633;\ntypedef int __attribute__ ((bitwidth(634))) int634;\ntypedef int __attribute__ ((bitwidth(635))) int635;\ntypedef int __attribute__ ((bitwidth(636))) int636;\ntypedef int __attribute__ ((bitwidth(637))) int637;\ntypedef int __attribute__ ((bitwidth(638))) int638;\ntypedef int __attribute__ ((bitwidth(639))) int639;\ntypedef int __attribute__ ((bitwidth(640))) int640;\ntypedef int __attribute__ ((bitwidth(641))) int641;\ntypedef int __attribute__ ((bitwidth(642))) int642;\ntypedef int __attribute__ ((bitwidth(643))) int643;\ntypedef int __attribute__ ((bitwidth(644))) int644;\ntypedef int __attribute__ ((bitwidth(645))) int645;\ntypedef int __attribute__ ((bitwidth(646))) int646;\ntypedef int __attribute__ ((bitwidth(647))) int647;\ntypedef int __attribute__ ((bitwidth(648))) int648;\ntypedef int __attribute__ ((bitwidth(649))) int649;\ntypedef int __attribute__ ((bitwidth(650))) int650;\ntypedef int __attribute__ ((bitwidth(651))) int651;\ntypedef int __attribute__ ((bitwidth(652))) int652;\ntypedef int __attribute__ ((bitwidth(653))) int653;\ntypedef int __attribute__ ((bitwidth(654))) int654;\ntypedef int __attribute__ ((bitwidth(655))) int655;\ntypedef int __attribute__ ((bitwidth(656))) int656;\ntypedef int __attribute__ ((bitwidth(657))) int657;\ntypedef int __attribute__ ((bitwidth(658))) int658;\ntypedef int __attribute__ ((bitwidth(659))) int659;\ntypedef int __attribute__ ((bitwidth(660))) int660;\ntypedef int __attribute__ ((bitwidth(661))) int661;\ntypedef int __attribute__ ((bitwidth(662))) int662;\ntypedef int __attribute__ ((bitwidth(663))) int663;\ntypedef int __attribute__ ((bitwidth(664))) int664;\ntypedef int __attribute__ ((bitwidth(665))) int665;\ntypedef int __attribute__ ((bitwidth(666))) int666;\ntypedef int __attribute__ ((bitwidth(667))) int667;\ntypedef int __attribute__ ((bitwidth(668))) int668;\ntypedef int __attribute__ ((bitwidth(669))) int669;\ntypedef int __attribute__ ((bitwidth(670))) int670;\ntypedef int __attribute__ ((bitwidth(671))) int671;\ntypedef int __attribute__ ((bitwidth(672))) int672;\ntypedef int __attribute__ ((bitwidth(673))) int673;\ntypedef int __attribute__ ((bitwidth(674))) int674;\ntypedef int __attribute__ ((bitwidth(675))) int675;\ntypedef int __attribute__ ((bitwidth(676))) int676;\ntypedef int __attribute__ ((bitwidth(677))) int677;\ntypedef int __attribute__ ((bitwidth(678))) int678;\ntypedef int __attribute__ ((bitwidth(679))) int679;\ntypedef int __attribute__ ((bitwidth(680))) int680;\ntypedef int __attribute__ ((bitwidth(681))) int681;\ntypedef int __attribute__ ((bitwidth(682))) int682;\ntypedef int __attribute__ ((bitwidth(683))) int683;\ntypedef int __attribute__ ((bitwidth(684))) int684;\ntypedef int __attribute__ ((bitwidth(685))) int685;\ntypedef int __attribute__ ((bitwidth(686))) int686;\ntypedef int __attribute__ ((bitwidth(687))) int687;\ntypedef int __attribute__ ((bitwidth(688))) int688;\ntypedef int __attribute__ ((bitwidth(689))) int689;\ntypedef int __attribute__ ((bitwidth(690))) int690;\ntypedef int __attribute__ ((bitwidth(691))) int691;\ntypedef int __attribute__ ((bitwidth(692))) int692;\ntypedef int __attribute__ ((bitwidth(693))) int693;\ntypedef int __attribute__ ((bitwidth(694))) int694;\ntypedef int __attribute__ ((bitwidth(695))) int695;\ntypedef int __attribute__ ((bitwidth(696))) int696;\ntypedef int __attribute__ ((bitwidth(697))) int697;\ntypedef int __attribute__ ((bitwidth(698))) int698;\ntypedef int __attribute__ ((bitwidth(699))) int699;\ntypedef int __attribute__ ((bitwidth(700))) int700;\ntypedef int __attribute__ ((bitwidth(701))) int701;\ntypedef int __attribute__ ((bitwidth(702))) int702;\ntypedef int __attribute__ ((bitwidth(703))) int703;\ntypedef int __attribute__ ((bitwidth(704))) int704;\ntypedef int __attribute__ ((bitwidth(705))) int705;\ntypedef int __attribute__ ((bitwidth(706))) int706;\ntypedef int __attribute__ ((bitwidth(707))) int707;\ntypedef int __attribute__ ((bitwidth(708))) int708;\ntypedef int __attribute__ ((bitwidth(709))) int709;\ntypedef int __attribute__ ((bitwidth(710))) int710;\ntypedef int __attribute__ ((bitwidth(711))) int711;\ntypedef int __attribute__ ((bitwidth(712))) int712;\ntypedef int __attribute__ ((bitwidth(713))) int713;\ntypedef int __attribute__ ((bitwidth(714))) int714;\ntypedef int __attribute__ ((bitwidth(715))) int715;\ntypedef int __attribute__ ((bitwidth(716))) int716;\ntypedef int __attribute__ ((bitwidth(717))) int717;\ntypedef int __attribute__ ((bitwidth(718))) int718;\ntypedef int __attribute__ ((bitwidth(719))) int719;\ntypedef int __attribute__ ((bitwidth(720))) int720;\ntypedef int __attribute__ ((bitwidth(721))) int721;\ntypedef int __attribute__ ((bitwidth(722))) int722;\ntypedef int __attribute__ ((bitwidth(723))) int723;\ntypedef int __attribute__ ((bitwidth(724))) int724;\ntypedef int __attribute__ ((bitwidth(725))) int725;\ntypedef int __attribute__ ((bitwidth(726))) int726;\ntypedef int __attribute__ ((bitwidth(727))) int727;\ntypedef int __attribute__ ((bitwidth(728))) int728;\ntypedef int __attribute__ ((bitwidth(729))) int729;\ntypedef int __attribute__ ((bitwidth(730))) int730;\ntypedef int __attribute__ ((bitwidth(731))) int731;\ntypedef int __attribute__ ((bitwidth(732))) int732;\ntypedef int __attribute__ ((bitwidth(733))) int733;\ntypedef int __attribute__ ((bitwidth(734))) int734;\ntypedef int __attribute__ ((bitwidth(735))) int735;\ntypedef int __attribute__ ((bitwidth(736))) int736;\ntypedef int __attribute__ ((bitwidth(737))) int737;\ntypedef int __attribute__ ((bitwidth(738))) int738;\ntypedef int __attribute__ ((bitwidth(739))) int739;\ntypedef int __attribute__ ((bitwidth(740))) int740;\ntypedef int __attribute__ ((bitwidth(741))) int741;\ntypedef int __attribute__ ((bitwidth(742))) int742;\ntypedef int __attribute__ ((bitwidth(743))) int743;\ntypedef int __attribute__ ((bitwidth(744))) int744;\ntypedef int __attribute__ ((bitwidth(745))) int745;\ntypedef int __attribute__ ((bitwidth(746))) int746;\ntypedef int __attribute__ ((bitwidth(747))) int747;\ntypedef int __attribute__ ((bitwidth(748))) int748;\ntypedef int __attribute__ ((bitwidth(749))) int749;\ntypedef int __attribute__ ((bitwidth(750))) int750;\ntypedef int __attribute__ ((bitwidth(751))) int751;\ntypedef int __attribute__ ((bitwidth(752))) int752;\ntypedef int __attribute__ ((bitwidth(753))) int753;\ntypedef int __attribute__ ((bitwidth(754))) int754;\ntypedef int __attribute__ ((bitwidth(755))) int755;\ntypedef int __attribute__ ((bitwidth(756))) int756;\ntypedef int __attribute__ ((bitwidth(757))) int757;\ntypedef int __attribute__ ((bitwidth(758))) int758;\ntypedef int __attribute__ ((bitwidth(759))) int759;\ntypedef int __attribute__ ((bitwidth(760))) int760;\ntypedef int __attribute__ ((bitwidth(761))) int761;\ntypedef int __attribute__ ((bitwidth(762))) int762;\ntypedef int __attribute__ ((bitwidth(763))) int763;\ntypedef int __attribute__ ((bitwidth(764))) int764;\ntypedef int __attribute__ ((bitwidth(765))) int765;\ntypedef int __attribute__ ((bitwidth(766))) int766;\ntypedef int __attribute__ ((bitwidth(767))) int767;\ntypedef int __attribute__ ((bitwidth(768))) int768;\ntypedef int __attribute__ ((bitwidth(769))) int769;\ntypedef int __attribute__ ((bitwidth(770))) int770;\ntypedef int __attribute__ ((bitwidth(771))) int771;\ntypedef int __attribute__ ((bitwidth(772))) int772;\ntypedef int __attribute__ ((bitwidth(773))) int773;\ntypedef int __attribute__ ((bitwidth(774))) int774;\ntypedef int __attribute__ ((bitwidth(775))) int775;\ntypedef int __attribute__ ((bitwidth(776))) int776;\ntypedef int __attribute__ ((bitwidth(777))) int777;\ntypedef int __attribute__ ((bitwidth(778))) int778;\ntypedef int __attribute__ ((bitwidth(779))) int779;\ntypedef int __attribute__ ((bitwidth(780))) int780;\ntypedef int __attribute__ ((bitwidth(781))) int781;\ntypedef int __attribute__ ((bitwidth(782))) int782;\ntypedef int __attribute__ ((bitwidth(783))) int783;\ntypedef int __attribute__ ((bitwidth(784))) int784;\ntypedef int __attribute__ ((bitwidth(785))) int785;\ntypedef int __attribute__ ((bitwidth(786))) int786;\ntypedef int __attribute__ ((bitwidth(787))) int787;\ntypedef int __attribute__ ((bitwidth(788))) int788;\ntypedef int __attribute__ ((bitwidth(789))) int789;\ntypedef int __attribute__ ((bitwidth(790))) int790;\ntypedef int __attribute__ ((bitwidth(791))) int791;\ntypedef int __attribute__ ((bitwidth(792))) int792;\ntypedef int __attribute__ ((bitwidth(793))) int793;\ntypedef int __attribute__ ((bitwidth(794))) int794;\ntypedef int __attribute__ ((bitwidth(795))) int795;\ntypedef int __attribute__ ((bitwidth(796))) int796;\ntypedef int __attribute__ ((bitwidth(797))) int797;\ntypedef int __attribute__ ((bitwidth(798))) int798;\ntypedef int __attribute__ ((bitwidth(799))) int799;\ntypedef int __attribute__ ((bitwidth(800))) int800;\ntypedef int __attribute__ ((bitwidth(801))) int801;\ntypedef int __attribute__ ((bitwidth(802))) int802;\ntypedef int __attribute__ ((bitwidth(803))) int803;\ntypedef int __attribute__ ((bitwidth(804))) int804;\ntypedef int __attribute__ ((bitwidth(805))) int805;\ntypedef int __attribute__ ((bitwidth(806))) int806;\ntypedef int __attribute__ ((bitwidth(807))) int807;\ntypedef int __attribute__ ((bitwidth(808))) int808;\ntypedef int __attribute__ ((bitwidth(809))) int809;\ntypedef int __attribute__ ((bitwidth(810))) int810;\ntypedef int __attribute__ ((bitwidth(811))) int811;\ntypedef int __attribute__ ((bitwidth(812))) int812;\ntypedef int __attribute__ ((bitwidth(813))) int813;\ntypedef int __attribute__ ((bitwidth(814))) int814;\ntypedef int __attribute__ ((bitwidth(815))) int815;\ntypedef int __attribute__ ((bitwidth(816))) int816;\ntypedef int __attribute__ ((bitwidth(817))) int817;\ntypedef int __attribute__ ((bitwidth(818))) int818;\ntypedef int __attribute__ ((bitwidth(819))) int819;\ntypedef int __attribute__ ((bitwidth(820))) int820;\ntypedef int __attribute__ ((bitwidth(821))) int821;\ntypedef int __attribute__ ((bitwidth(822))) int822;\ntypedef int __attribute__ ((bitwidth(823))) int823;\ntypedef int __attribute__ ((bitwidth(824))) int824;\ntypedef int __attribute__ ((bitwidth(825))) int825;\ntypedef int __attribute__ ((bitwidth(826))) int826;\ntypedef int __attribute__ ((bitwidth(827))) int827;\ntypedef int __attribute__ ((bitwidth(828))) int828;\ntypedef int __attribute__ ((bitwidth(829))) int829;\ntypedef int __attribute__ ((bitwidth(830))) int830;\ntypedef int __attribute__ ((bitwidth(831))) int831;\ntypedef int __attribute__ ((bitwidth(832))) int832;\ntypedef int __attribute__ ((bitwidth(833))) int833;\ntypedef int __attribute__ ((bitwidth(834))) int834;\ntypedef int __attribute__ ((bitwidth(835))) int835;\ntypedef int __attribute__ ((bitwidth(836))) int836;\ntypedef int __attribute__ ((bitwidth(837))) int837;\ntypedef int __attribute__ ((bitwidth(838))) int838;\ntypedef int __attribute__ ((bitwidth(839))) int839;\ntypedef int __attribute__ ((bitwidth(840))) int840;\ntypedef int __attribute__ ((bitwidth(841))) int841;\ntypedef int __attribute__ ((bitwidth(842))) int842;\ntypedef int __attribute__ ((bitwidth(843))) int843;\ntypedef int __attribute__ ((bitwidth(844))) int844;\ntypedef int __attribute__ ((bitwidth(845))) int845;\ntypedef int __attribute__ ((bitwidth(846))) int846;\ntypedef int __attribute__ ((bitwidth(847))) int847;\ntypedef int __attribute__ ((bitwidth(848))) int848;\ntypedef int __attribute__ ((bitwidth(849))) int849;\ntypedef int __attribute__ ((bitwidth(850))) int850;\ntypedef int __attribute__ ((bitwidth(851))) int851;\ntypedef int __attribute__ ((bitwidth(852))) int852;\ntypedef int __attribute__ ((bitwidth(853))) int853;\ntypedef int __attribute__ ((bitwidth(854))) int854;\ntypedef int __attribute__ ((bitwidth(855))) int855;\ntypedef int __attribute__ ((bitwidth(856))) int856;\ntypedef int __attribute__ ((bitwidth(857))) int857;\ntypedef int __attribute__ ((bitwidth(858))) int858;\ntypedef int __attribute__ ((bitwidth(859))) int859;\ntypedef int __attribute__ ((bitwidth(860))) int860;\ntypedef int __attribute__ ((bitwidth(861))) int861;\ntypedef int __attribute__ ((bitwidth(862))) int862;\ntypedef int __attribute__ ((bitwidth(863))) int863;\ntypedef int __attribute__ ((bitwidth(864))) int864;\ntypedef int __attribute__ ((bitwidth(865))) int865;\ntypedef int __attribute__ ((bitwidth(866))) int866;\ntypedef int __attribute__ ((bitwidth(867))) int867;\ntypedef int __attribute__ ((bitwidth(868))) int868;\ntypedef int __attribute__ ((bitwidth(869))) int869;\ntypedef int __attribute__ ((bitwidth(870))) int870;\ntypedef int __attribute__ ((bitwidth(871))) int871;\ntypedef int __attribute__ ((bitwidth(872))) int872;\ntypedef int __attribute__ ((bitwidth(873))) int873;\ntypedef int __attribute__ ((bitwidth(874))) int874;\ntypedef int __attribute__ ((bitwidth(875))) int875;\ntypedef int __attribute__ ((bitwidth(876))) int876;\ntypedef int __attribute__ ((bitwidth(877))) int877;\ntypedef int __attribute__ ((bitwidth(878))) int878;\ntypedef int __attribute__ ((bitwidth(879))) int879;\ntypedef int __attribute__ ((bitwidth(880))) int880;\ntypedef int __attribute__ ((bitwidth(881))) int881;\ntypedef int __attribute__ ((bitwidth(882))) int882;\ntypedef int __attribute__ ((bitwidth(883))) int883;\ntypedef int __attribute__ ((bitwidth(884))) int884;\ntypedef int __attribute__ ((bitwidth(885))) int885;\ntypedef int __attribute__ ((bitwidth(886))) int886;\ntypedef int __attribute__ ((bitwidth(887))) int887;\ntypedef int __attribute__ ((bitwidth(888))) int888;\ntypedef int __attribute__ ((bitwidth(889))) int889;\ntypedef int __attribute__ ((bitwidth(890))) int890;\ntypedef int __attribute__ ((bitwidth(891))) int891;\ntypedef int __attribute__ ((bitwidth(892))) int892;\ntypedef int __attribute__ ((bitwidth(893))) int893;\ntypedef int __attribute__ ((bitwidth(894))) int894;\ntypedef int __attribute__ ((bitwidth(895))) int895;\ntypedef int __attribute__ ((bitwidth(896))) int896;\ntypedef int __attribute__ ((bitwidth(897))) int897;\ntypedef int __attribute__ ((bitwidth(898))) int898;\ntypedef int __attribute__ ((bitwidth(899))) int899;\ntypedef int __attribute__ ((bitwidth(900))) int900;\ntypedef int __attribute__ ((bitwidth(901))) int901;\ntypedef int __attribute__ ((bitwidth(902))) int902;\ntypedef int __attribute__ ((bitwidth(903))) int903;\ntypedef int __attribute__ ((bitwidth(904))) int904;\ntypedef int __attribute__ ((bitwidth(905))) int905;\ntypedef int __attribute__ ((bitwidth(906))) int906;\ntypedef int __attribute__ ((bitwidth(907))) int907;\ntypedef int __attribute__ ((bitwidth(908))) int908;\ntypedef int __attribute__ ((bitwidth(909))) int909;\ntypedef int __attribute__ ((bitwidth(910))) int910;\ntypedef int __attribute__ ((bitwidth(911))) int911;\ntypedef int __attribute__ ((bitwidth(912))) int912;\ntypedef int __attribute__ ((bitwidth(913))) int913;\ntypedef int __attribute__ ((bitwidth(914))) int914;\ntypedef int __attribute__ ((bitwidth(915))) int915;\ntypedef int __attribute__ ((bitwidth(916))) int916;\ntypedef int __attribute__ ((bitwidth(917))) int917;\ntypedef int __attribute__ ((bitwidth(918))) int918;\ntypedef int __attribute__ ((bitwidth(919))) int919;\ntypedef int __attribute__ ((bitwidth(920))) int920;\ntypedef int __attribute__ ((bitwidth(921))) int921;\ntypedef int __attribute__ ((bitwidth(922))) int922;\ntypedef int __attribute__ ((bitwidth(923))) int923;\ntypedef int __attribute__ ((bitwidth(924))) int924;\ntypedef int __attribute__ ((bitwidth(925))) int925;\ntypedef int __attribute__ ((bitwidth(926))) int926;\ntypedef int __attribute__ ((bitwidth(927))) int927;\ntypedef int __attribute__ ((bitwidth(928))) int928;\ntypedef int __attribute__ ((bitwidth(929))) int929;\ntypedef int __attribute__ ((bitwidth(930))) int930;\ntypedef int __attribute__ ((bitwidth(931))) int931;\ntypedef int __attribute__ ((bitwidth(932))) int932;\ntypedef int __attribute__ ((bitwidth(933))) int933;\ntypedef int __attribute__ ((bitwidth(934))) int934;\ntypedef int __attribute__ ((bitwidth(935))) int935;\ntypedef int __attribute__ ((bitwidth(936))) int936;\ntypedef int __attribute__ ((bitwidth(937))) int937;\ntypedef int __attribute__ ((bitwidth(938))) int938;\ntypedef int __attribute__ ((bitwidth(939))) int939;\ntypedef int __attribute__ ((bitwidth(940))) int940;\ntypedef int __attribute__ ((bitwidth(941))) int941;\ntypedef int __attribute__ ((bitwidth(942))) int942;\ntypedef int __attribute__ ((bitwidth(943))) int943;\ntypedef int __attribute__ ((bitwidth(944))) int944;\ntypedef int __attribute__ ((bitwidth(945))) int945;\ntypedef int __attribute__ ((bitwidth(946))) int946;\ntypedef int __attribute__ ((bitwidth(947))) int947;\ntypedef int __attribute__ ((bitwidth(948))) int948;\ntypedef int __attribute__ ((bitwidth(949))) int949;\ntypedef int __attribute__ ((bitwidth(950))) int950;\ntypedef int __attribute__ ((bitwidth(951))) int951;\ntypedef int __attribute__ ((bitwidth(952))) int952;\ntypedef int __attribute__ ((bitwidth(953))) int953;\ntypedef int __attribute__ ((bitwidth(954))) int954;\ntypedef int __attribute__ ((bitwidth(955))) int955;\ntypedef int __attribute__ ((bitwidth(956))) int956;\ntypedef int __attribute__ ((bitwidth(957))) int957;\ntypedef int __attribute__ ((bitwidth(958))) int958;\ntypedef int __attribute__ ((bitwidth(959))) int959;\ntypedef int __attribute__ ((bitwidth(960))) int960;\ntypedef int __attribute__ ((bitwidth(961))) int961;\ntypedef int __attribute__ ((bitwidth(962))) int962;\ntypedef int __attribute__ ((bitwidth(963))) int963;\ntypedef int __attribute__ ((bitwidth(964))) int964;\ntypedef int __attribute__ ((bitwidth(965))) int965;\ntypedef int __attribute__ ((bitwidth(966))) int966;\ntypedef int __attribute__ ((bitwidth(967))) int967;\ntypedef int __attribute__ ((bitwidth(968))) int968;\ntypedef int __attribute__ ((bitwidth(969))) int969;\ntypedef int __attribute__ ((bitwidth(970))) int970;\ntypedef int __attribute__ ((bitwidth(971))) int971;\ntypedef int __attribute__ ((bitwidth(972))) int972;\ntypedef int __attribute__ ((bitwidth(973))) int973;\ntypedef int __attribute__ ((bitwidth(974))) int974;\ntypedef int __attribute__ ((bitwidth(975))) int975;\ntypedef int __attribute__ ((bitwidth(976))) int976;\ntypedef int __attribute__ ((bitwidth(977))) int977;\ntypedef int __attribute__ ((bitwidth(978))) int978;\ntypedef int __attribute__ ((bitwidth(979))) int979;\ntypedef int __attribute__ ((bitwidth(980))) int980;\ntypedef int __attribute__ ((bitwidth(981))) int981;\ntypedef int __attribute__ ((bitwidth(982))) int982;\ntypedef int __attribute__ ((bitwidth(983))) int983;\ntypedef int __attribute__ ((bitwidth(984))) int984;\ntypedef int __attribute__ ((bitwidth(985))) int985;\ntypedef int __attribute__ ((bitwidth(986))) int986;\ntypedef int __attribute__ ((bitwidth(987))) int987;\ntypedef int __attribute__ ((bitwidth(988))) int988;\ntypedef int __attribute__ ((bitwidth(989))) int989;\ntypedef int __attribute__ ((bitwidth(990))) int990;\ntypedef int __attribute__ ((bitwidth(991))) int991;\ntypedef int __attribute__ ((bitwidth(992))) int992;\ntypedef int __attribute__ ((bitwidth(993))) int993;\ntypedef int __attribute__ ((bitwidth(994))) int994;\ntypedef int __attribute__ ((bitwidth(995))) int995;\ntypedef int __attribute__ ((bitwidth(996))) int996;\ntypedef int __attribute__ ((bitwidth(997))) int997;\ntypedef int __attribute__ ((bitwidth(998))) int998;\ntypedef int __attribute__ ((bitwidth(999))) int999;\ntypedef int __attribute__ ((bitwidth(1000))) int1000;\ntypedef int __attribute__ ((bitwidth(1001))) int1001;\ntypedef int __attribute__ ((bitwidth(1002))) int1002;\ntypedef int __attribute__ ((bitwidth(1003))) int1003;\ntypedef int __attribute__ ((bitwidth(1004))) int1004;\ntypedef int __attribute__ ((bitwidth(1005))) int1005;\ntypedef int __attribute__ ((bitwidth(1006))) int1006;\ntypedef int __attribute__ ((bitwidth(1007))) int1007;\ntypedef int __attribute__ ((bitwidth(1008))) int1008;\ntypedef int __attribute__ ((bitwidth(1009))) int1009;\ntypedef int __attribute__ ((bitwidth(1010))) int1010;\ntypedef int __attribute__ ((bitwidth(1011))) int1011;\ntypedef int __attribute__ ((bitwidth(1012))) int1012;\ntypedef int __attribute__ ((bitwidth(1013))) int1013;\ntypedef int __attribute__ ((bitwidth(1014))) int1014;\ntypedef int __attribute__ ((bitwidth(1015))) int1015;\ntypedef int __attribute__ ((bitwidth(1016))) int1016;\ntypedef int __attribute__ ((bitwidth(1017))) int1017;\ntypedef int __attribute__ ((bitwidth(1018))) int1018;\ntypedef int __attribute__ ((bitwidth(1019))) int1019;\ntypedef int __attribute__ ((bitwidth(1020))) int1020;\ntypedef int __attribute__ ((bitwidth(1021))) int1021;\ntypedef int __attribute__ ((bitwidth(1022))) int1022;\ntypedef int __attribute__ ((bitwidth(1023))) int1023;\ntypedef int __attribute__ ((bitwidth(1024))) int1024;\n#pragma line 98 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_dt.h\" 2\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_dt_ext.def\" 1\n#pragma empty_line\n#pragma empty_line\ntypedef int __attribute__ ((bitwidth(1025))) int1025;\ntypedef int __attribute__ ((bitwidth(1026))) int1026;\ntypedef int __attribute__ ((bitwidth(1027))) int1027;\ntypedef int __attribute__ ((bitwidth(1028))) int1028;\ntypedef int __attribute__ ((bitwidth(1029))) int1029;\ntypedef int __attribute__ ((bitwidth(1030))) int1030;\ntypedef int __attribute__ ((bitwidth(1031))) int1031;\ntypedef int __attribute__ ((bitwidth(1032))) int1032;\ntypedef int __attribute__ ((bitwidth(1033))) int1033;\ntypedef int __attribute__ ((bitwidth(1034))) int1034;\ntypedef int __attribute__ ((bitwidth(1035))) int1035;\ntypedef int __attribute__ ((bitwidth(1036))) int1036;\ntypedef int __attribute__ ((bitwidth(1037))) int1037;\ntypedef int __attribute__ ((bitwidth(1038))) int1038;\ntypedef int __attribute__ ((bitwidth(1039))) int1039;\ntypedef int __attribute__ ((bitwidth(1040))) int1040;\ntypedef int __attribute__ ((bitwidth(1041))) int1041;\ntypedef int __attribute__ ((bitwidth(1042))) int1042;\ntypedef int __attribute__ ((bitwidth(1043))) int1043;\ntypedef int __attribute__ ((bitwidth(1044))) int1044;\ntypedef int __attribute__ ((bitwidth(1045))) int1045;\ntypedef int __attribute__ ((bitwidth(1046))) int1046;\ntypedef int __attribute__ ((bitwidth(1047))) int1047;\ntypedef int __attribute__ ((bitwidth(1048))) int1048;\ntypedef int __attribute__ ((bitwidth(1049))) int1049;\ntypedef int __attribute__ ((bitwidth(1050))) int1050;\ntypedef int __attribute__ ((bitwidth(1051))) int1051;\ntypedef int __attribute__ ((bitwidth(1052))) int1052;\ntypedef int __attribute__ ((bitwidth(1053))) int1053;\ntypedef int __attribute__ ((bitwidth(1054))) int1054;\ntypedef int __attribute__ ((bitwidth(1055))) int1055;\ntypedef int __attribute__ ((bitwidth(1056))) int1056;\ntypedef int __attribute__ ((bitwidth(1057))) int1057;\ntypedef int __attribute__ ((bitwidth(1058))) int1058;\ntypedef int __attribute__ ((bitwidth(1059))) int1059;\ntypedef int __attribute__ ((bitwidth(1060))) int1060;\ntypedef int __attribute__ ((bitwidth(1061))) int1061;\ntypedef int __attribute__ ((bitwidth(1062))) int1062;\ntypedef int __attribute__ ((bitwidth(1063))) int1063;\ntypedef int __attribute__ ((bitwidth(1064))) int1064;\ntypedef int __attribute__ ((bitwidth(1065))) int1065;\ntypedef int __attribute__ ((bitwidth(1066))) int1066;\ntypedef int __attribute__ ((bitwidth(1067))) int1067;\ntypedef int __attribute__ ((bitwidth(1068))) int1068;\ntypedef int __attribute__ ((bitwidth(1069))) int1069;\ntypedef int __attribute__ ((bitwidth(1070))) int1070;\ntypedef int __attribute__ ((bitwidth(1071))) int1071;\ntypedef int __attribute__ ((bitwidth(1072))) int1072;\ntypedef int __attribute__ ((bitwidth(1073))) int1073;\ntypedef int __attribute__ ((bitwidth(1074))) int1074;\ntypedef int __attribute__ ((bitwidth(1075))) int1075;\ntypedef int __attribute__ ((bitwidth(1076))) int1076;\ntypedef int __attribute__ ((bitwidth(1077))) int1077;\ntypedef int __attribute__ ((bitwidth(1078))) int1078;\ntypedef int __attribute__ ((bitwidth(1079))) int1079;\ntypedef int __attribute__ ((bitwidth(1080))) int1080;\ntypedef int __attribute__ ((bitwidth(1081))) int1081;\ntypedef int __attribute__ ((bitwidth(1082))) int1082;\ntypedef int __attribute__ ((bitwidth(1083))) int1083;\ntypedef int __attribute__ ((bitwidth(1084))) int1084;\ntypedef int __attribute__ ((bitwidth(1085))) int1085;\ntypedef int __attribute__ ((bitwidth(1086))) int1086;\ntypedef int __attribute__ ((bitwidth(1087))) int1087;\ntypedef int __attribute__ ((bitwidth(1088))) int1088;\ntypedef int __attribute__ ((bitwidth(1089))) int1089;\ntypedef int __attribute__ ((bitwidth(1090))) int1090;\ntypedef int __attribute__ ((bitwidth(1091))) int1091;\ntypedef int __attribute__ ((bitwidth(1092))) int1092;\ntypedef int __attribute__ ((bitwidth(1093))) int1093;\ntypedef int __attribute__ ((bitwidth(1094))) int1094;\ntypedef int __attribute__ ((bitwidth(1095))) int1095;\ntypedef int __attribute__ ((bitwidth(1096))) int1096;\ntypedef int __attribute__ ((bitwidth(1097))) int1097;\ntypedef int __attribute__ ((bitwidth(1098))) int1098;\ntypedef int __attribute__ ((bitwidth(1099))) int1099;\ntypedef int __attribute__ ((bitwidth(1100))) int1100;\ntypedef int __attribute__ ((bitwidth(1101))) int1101;\ntypedef int __attribute__ ((bitwidth(1102))) int1102;\ntypedef int __attribute__ ((bitwidth(1103))) int1103;\ntypedef int __attribute__ ((bitwidth(1104))) int1104;\ntypedef int __attribute__ ((bitwidth(1105))) int1105;\ntypedef int __attribute__ ((bitwidth(1106))) int1106;\ntypedef int __attribute__ ((bitwidth(1107))) int1107;\ntypedef int __attribute__ ((bitwidth(1108))) int1108;\ntypedef int __attribute__ ((bitwidth(1109))) int1109;\ntypedef int __attribute__ ((bitwidth(1110))) int1110;\ntypedef int __attribute__ ((bitwidth(1111))) int1111;\ntypedef int __attribute__ ((bitwidth(1112))) int1112;\ntypedef int __attribute__ ((bitwidth(1113))) int1113;\ntypedef int __attribute__ ((bitwidth(1114))) int1114;\ntypedef int __attribute__ ((bitwidth(1115))) int1115;\ntypedef int __attribute__ ((bitwidth(1116))) int1116;\ntypedef int __attribute__ ((bitwidth(1117))) int1117;\ntypedef int __attribute__ ((bitwidth(1118))) int1118;\ntypedef int __attribute__ ((bitwidth(1119))) int1119;\ntypedef int __attribute__ ((bitwidth(1120))) int1120;\ntypedef int __attribute__ ((bitwidth(1121))) int1121;\ntypedef int __attribute__ ((bitwidth(1122))) int1122;\ntypedef int __attribute__ ((bitwidth(1123))) int1123;\ntypedef int __attribute__ ((bitwidth(1124))) int1124;\ntypedef int __attribute__ ((bitwidth(1125))) int1125;\ntypedef int __attribute__ ((bitwidth(1126))) int1126;\ntypedef int __attribute__ ((bitwidth(1127))) int1127;\ntypedef int __attribute__ ((bitwidth(1128))) int1128;\ntypedef int __attribute__ ((bitwidth(1129))) int1129;\ntypedef int __attribute__ ((bitwidth(1130))) int1130;\ntypedef int __attribute__ ((bitwidth(1131))) int1131;\ntypedef int __attribute__ ((bitwidth(1132))) int1132;\ntypedef int __attribute__ ((bitwidth(1133))) int1133;\ntypedef int __attribute__ ((bitwidth(1134))) int1134;\ntypedef int __attribute__ ((bitwidth(1135))) int1135;\ntypedef int __attribute__ ((bitwidth(1136))) int1136;\ntypedef int __attribute__ ((bitwidth(1137))) int1137;\ntypedef int __attribute__ ((bitwidth(1138))) int1138;\ntypedef int __attribute__ ((bitwidth(1139))) int1139;\ntypedef int __attribute__ ((bitwidth(1140))) int1140;\ntypedef int __attribute__ ((bitwidth(1141))) int1141;\ntypedef int __attribute__ ((bitwidth(1142))) int1142;\ntypedef int __attribute__ ((bitwidth(1143))) int1143;\ntypedef int __attribute__ ((bitwidth(1144))) int1144;\ntypedef int __attribute__ ((bitwidth(1145))) int1145;\ntypedef int __attribute__ ((bitwidth(1146))) int1146;\ntypedef int __attribute__ ((bitwidth(1147))) int1147;\ntypedef int __attribute__ ((bitwidth(1148))) int1148;\ntypedef int __attribute__ ((bitwidth(1149))) int1149;\ntypedef int __attribute__ ((bitwidth(1150))) int1150;\ntypedef int __attribute__ ((bitwidth(1151))) int1151;\ntypedef int __attribute__ ((bitwidth(1152))) int1152;\ntypedef int __attribute__ ((bitwidth(1153))) int1153;\ntypedef int __attribute__ ((bitwidth(1154))) int1154;\ntypedef int __attribute__ ((bitwidth(1155))) int1155;\ntypedef int __attribute__ ((bitwidth(1156))) int1156;\ntypedef int __attribute__ ((bitwidth(1157))) int1157;\ntypedef int __attribute__ ((bitwidth(1158))) int1158;\ntypedef int __attribute__ ((bitwidth(1159))) int1159;\ntypedef int __attribute__ ((bitwidth(1160))) int1160;\ntypedef int __attribute__ ((bitwidth(1161))) int1161;\ntypedef int __attribute__ ((bitwidth(1162))) int1162;\ntypedef int __attribute__ ((bitwidth(1163))) int1163;\ntypedef int __attribute__ ((bitwidth(1164))) int1164;\ntypedef int __attribute__ ((bitwidth(1165))) int1165;\ntypedef int __attribute__ ((bitwidth(1166))) int1166;\ntypedef int __attribute__ ((bitwidth(1167))) int1167;\ntypedef int __attribute__ ((bitwidth(1168))) int1168;\ntypedef int __attribute__ ((bitwidth(1169))) int1169;\ntypedef int __attribute__ ((bitwidth(1170))) int1170;\ntypedef int __attribute__ ((bitwidth(1171))) int1171;\ntypedef int __attribute__ ((bitwidth(1172))) int1172;\ntypedef int __attribute__ ((bitwidth(1173))) int1173;\ntypedef int __attribute__ ((bitwidth(1174))) int1174;\ntypedef int __attribute__ ((bitwidth(1175))) int1175;\ntypedef int __attribute__ ((bitwidth(1176))) int1176;\ntypedef int __attribute__ ((bitwidth(1177))) int1177;\ntypedef int __attribute__ ((bitwidth(1178))) int1178;\ntypedef int __attribute__ ((bitwidth(1179))) int1179;\ntypedef int __attribute__ ((bitwidth(1180))) int1180;\ntypedef int __attribute__ ((bitwidth(1181))) int1181;\ntypedef int __attribute__ ((bitwidth(1182))) int1182;\ntypedef int __attribute__ ((bitwidth(1183))) int1183;\ntypedef int __attribute__ ((bitwidth(1184))) int1184;\ntypedef int __attribute__ ((bitwidth(1185))) int1185;\ntypedef int __attribute__ ((bitwidth(1186))) int1186;\ntypedef int __attribute__ ((bitwidth(1187))) int1187;\ntypedef int __attribute__ ((bitwidth(1188))) int1188;\ntypedef int __attribute__ ((bitwidth(1189))) int1189;\ntypedef int __attribute__ ((bitwidth(1190))) int1190;\ntypedef int __attribute__ ((bitwidth(1191))) int1191;\ntypedef int __attribute__ ((bitwidth(1192))) int1192;\ntypedef int __attribute__ ((bitwidth(1193))) int1193;\ntypedef int __attribute__ ((bitwidth(1194))) int1194;\ntypedef int __attribute__ ((bitwidth(1195))) int1195;\ntypedef int __attribute__ ((bitwidth(1196))) int1196;\ntypedef int __attribute__ ((bitwidth(1197))) int1197;\ntypedef int __attribute__ ((bitwidth(1198))) int1198;\ntypedef int __attribute__ ((bitwidth(1199))) int1199;\ntypedef int __attribute__ ((bitwidth(1200))) int1200;\ntypedef int __attribute__ ((bitwidth(1201))) int1201;\ntypedef int __attribute__ ((bitwidth(1202))) int1202;\ntypedef int __attribute__ ((bitwidth(1203))) int1203;\ntypedef int __attribute__ ((bitwidth(1204))) int1204;\ntypedef int __attribute__ ((bitwidth(1205))) int1205;\ntypedef int __attribute__ ((bitwidth(1206))) int1206;\ntypedef int __attribute__ ((bitwidth(1207))) int1207;\ntypedef int __attribute__ ((bitwidth(1208))) int1208;\ntypedef int __attribute__ ((bitwidth(1209))) int1209;\ntypedef int __attribute__ ((bitwidth(1210))) int1210;\ntypedef int __attribute__ ((bitwidth(1211))) int1211;\ntypedef int __attribute__ ((bitwidth(1212))) int1212;\ntypedef int __attribute__ ((bitwidth(1213))) int1213;\ntypedef int __attribute__ ((bitwidth(1214))) int1214;\ntypedef int __attribute__ ((bitwidth(1215))) int1215;\ntypedef int __attribute__ ((bitwidth(1216))) int1216;\ntypedef int __attribute__ ((bitwidth(1217))) int1217;\ntypedef int __attribute__ ((bitwidth(1218))) int1218;\ntypedef int __attribute__ ((bitwidth(1219))) int1219;\ntypedef int __attribute__ ((bitwidth(1220))) int1220;\ntypedef int __attribute__ ((bitwidth(1221))) int1221;\ntypedef int __attribute__ ((bitwidth(1222))) int1222;\ntypedef int __attribute__ ((bitwidth(1223))) int1223;\ntypedef int __attribute__ ((bitwidth(1224))) int1224;\ntypedef int __attribute__ ((bitwidth(1225))) int1225;\ntypedef int __attribute__ ((bitwidth(1226))) int1226;\ntypedef int __attribute__ ((bitwidth(1227))) int1227;\ntypedef int __attribute__ ((bitwidth(1228))) int1228;\ntypedef int __attribute__ ((bitwidth(1229))) int1229;\ntypedef int __attribute__ ((bitwidth(1230))) int1230;\ntypedef int __attribute__ ((bitwidth(1231))) int1231;\ntypedef int __attribute__ ((bitwidth(1232))) int1232;\ntypedef int __attribute__ ((bitwidth(1233))) int1233;\ntypedef int __attribute__ ((bitwidth(1234))) int1234;\ntypedef int __attribute__ ((bitwidth(1235))) int1235;\ntypedef int __attribute__ ((bitwidth(1236))) int1236;\ntypedef int __attribute__ ((bitwidth(1237))) int1237;\ntypedef int __attribute__ ((bitwidth(1238))) int1238;\ntypedef int __attribute__ ((bitwidth(1239))) int1239;\ntypedef int __attribute__ ((bitwidth(1240))) int1240;\ntypedef int __attribute__ ((bitwidth(1241))) int1241;\ntypedef int __attribute__ ((bitwidth(1242))) int1242;\ntypedef int __attribute__ ((bitwidth(1243))) int1243;\ntypedef int __attribute__ ((bitwidth(1244))) int1244;\ntypedef int __attribute__ ((bitwidth(1245))) int1245;\ntypedef int __attribute__ ((bitwidth(1246))) int1246;\ntypedef int __attribute__ ((bitwidth(1247))) int1247;\ntypedef int __attribute__ ((bitwidth(1248))) int1248;\ntypedef int __attribute__ ((bitwidth(1249))) int1249;\ntypedef int __attribute__ ((bitwidth(1250))) int1250;\ntypedef int __attribute__ ((bitwidth(1251))) int1251;\ntypedef int __attribute__ ((bitwidth(1252))) int1252;\ntypedef int __attribute__ ((bitwidth(1253))) int1253;\ntypedef int __attribute__ ((bitwidth(1254))) int1254;\ntypedef int __attribute__ ((bitwidth(1255))) int1255;\ntypedef int __attribute__ ((bitwidth(1256))) int1256;\ntypedef int __attribute__ ((bitwidth(1257))) int1257;\ntypedef int __attribute__ ((bitwidth(1258))) int1258;\ntypedef int __attribute__ ((bitwidth(1259))) int1259;\ntypedef int __attribute__ ((bitwidth(1260))) int1260;\ntypedef int __attribute__ ((bitwidth(1261))) int1261;\ntypedef int __attribute__ ((bitwidth(1262))) int1262;\ntypedef int __attribute__ ((bitwidth(1263))) int1263;\ntypedef int __attribute__ ((bitwidth(1264))) int1264;\ntypedef int __attribute__ ((bitwidth(1265))) int1265;\ntypedef int __attribute__ ((bitwidth(1266))) int1266;\ntypedef int __attribute__ ((bitwidth(1267))) int1267;\ntypedef int __attribute__ ((bitwidth(1268))) int1268;\ntypedef int __attribute__ ((bitwidth(1269))) int1269;\ntypedef int __attribute__ ((bitwidth(1270))) int1270;\ntypedef int __attribute__ ((bitwidth(1271))) int1271;\ntypedef int __attribute__ ((bitwidth(1272))) int1272;\ntypedef int __attribute__ ((bitwidth(1273))) int1273;\ntypedef int __attribute__ ((bitwidth(1274))) int1274;\ntypedef int __attribute__ ((bitwidth(1275))) int1275;\ntypedef int __attribute__ ((bitwidth(1276))) int1276;\ntypedef int __attribute__ ((bitwidth(1277))) int1277;\ntypedef int __attribute__ ((bitwidth(1278))) int1278;\ntypedef int __attribute__ ((bitwidth(1279))) int1279;\ntypedef int __attribute__ ((bitwidth(1280))) int1280;\ntypedef int __attribute__ ((bitwidth(1281))) int1281;\ntypedef int __attribute__ ((bitwidth(1282))) int1282;\ntypedef int __attribute__ ((bitwidth(1283))) int1283;\ntypedef int __attribute__ ((bitwidth(1284))) int1284;\ntypedef int __attribute__ ((bitwidth(1285))) int1285;\ntypedef int __attribute__ ((bitwidth(1286))) int1286;\ntypedef int __attribute__ ((bitwidth(1287))) int1287;\ntypedef int __attribute__ ((bitwidth(1288))) int1288;\ntypedef int __attribute__ ((bitwidth(1289))) int1289;\ntypedef int __attribute__ ((bitwidth(1290))) int1290;\ntypedef int __attribute__ ((bitwidth(1291))) int1291;\ntypedef int __attribute__ ((bitwidth(1292))) int1292;\ntypedef int __attribute__ ((bitwidth(1293))) int1293;\ntypedef int __attribute__ ((bitwidth(1294))) int1294;\ntypedef int __attribute__ ((bitwidth(1295))) int1295;\ntypedef int __attribute__ ((bitwidth(1296))) int1296;\ntypedef int __attribute__ ((bitwidth(1297))) int1297;\ntypedef int __attribute__ ((bitwidth(1298))) int1298;\ntypedef int __attribute__ ((bitwidth(1299))) int1299;\ntypedef int __attribute__ ((bitwidth(1300))) int1300;\ntypedef int __attribute__ ((bitwidth(1301))) int1301;\ntypedef int __attribute__ ((bitwidth(1302))) int1302;\ntypedef int __attribute__ ((bitwidth(1303))) int1303;\ntypedef int __attribute__ ((bitwidth(1304))) int1304;\ntypedef int __attribute__ ((bitwidth(1305))) int1305;\ntypedef int __attribute__ ((bitwidth(1306))) int1306;\ntypedef int __attribute__ ((bitwidth(1307))) int1307;\ntypedef int __attribute__ ((bitwidth(1308))) int1308;\ntypedef int __attribute__ ((bitwidth(1309))) int1309;\ntypedef int __attribute__ ((bitwidth(1310))) int1310;\ntypedef int __attribute__ ((bitwidth(1311))) int1311;\ntypedef int __attribute__ ((bitwidth(1312))) int1312;\ntypedef int __attribute__ ((bitwidth(1313))) int1313;\ntypedef int __attribute__ ((bitwidth(1314))) int1314;\ntypedef int __attribute__ ((bitwidth(1315))) int1315;\ntypedef int __attribute__ ((bitwidth(1316))) int1316;\ntypedef int __attribute__ ((bitwidth(1317))) int1317;\ntypedef int __attribute__ ((bitwidth(1318))) int1318;\ntypedef int __attribute__ ((bitwidth(1319))) int1319;\ntypedef int __attribute__ ((bitwidth(1320))) int1320;\ntypedef int __attribute__ ((bitwidth(1321))) int1321;\ntypedef int __attribute__ ((bitwidth(1322))) int1322;\ntypedef int __attribute__ ((bitwidth(1323))) int1323;\ntypedef int __attribute__ ((bitwidth(1324))) int1324;\ntypedef int __attribute__ ((bitwidth(1325))) int1325;\ntypedef int __attribute__ ((bitwidth(1326))) int1326;\ntypedef int __attribute__ ((bitwidth(1327))) int1327;\ntypedef int __attribute__ ((bitwidth(1328))) int1328;\ntypedef int __attribute__ ((bitwidth(1329))) int1329;\ntypedef int __attribute__ ((bitwidth(1330))) int1330;\ntypedef int __attribute__ ((bitwidth(1331))) int1331;\ntypedef int __attribute__ ((bitwidth(1332))) int1332;\ntypedef int __attribute__ ((bitwidth(1333))) int1333;\ntypedef int __attribute__ ((bitwidth(1334))) int1334;\ntypedef int __attribute__ ((bitwidth(1335))) int1335;\ntypedef int __attribute__ ((bitwidth(1336))) int1336;\ntypedef int __attribute__ ((bitwidth(1337))) int1337;\ntypedef int __attribute__ ((bitwidth(1338))) int1338;\ntypedef int __attribute__ ((bitwidth(1339))) int1339;\ntypedef int __attribute__ ((bitwidth(1340))) int1340;\ntypedef int __attribute__ ((bitwidth(1341))) int1341;\ntypedef int __attribute__ ((bitwidth(1342))) int1342;\ntypedef int __attribute__ ((bitwidth(1343))) int1343;\ntypedef int __attribute__ ((bitwidth(1344))) int1344;\ntypedef int __attribute__ ((bitwidth(1345))) int1345;\ntypedef int __attribute__ ((bitwidth(1346))) int1346;\ntypedef int __attribute__ ((bitwidth(1347))) int1347;\ntypedef int __attribute__ ((bitwidth(1348))) int1348;\ntypedef int __attribute__ ((bitwidth(1349))) int1349;\ntypedef int __attribute__ ((bitwidth(1350))) int1350;\ntypedef int __attribute__ ((bitwidth(1351))) int1351;\ntypedef int __attribute__ ((bitwidth(1352))) int1352;\ntypedef int __attribute__ ((bitwidth(1353))) int1353;\ntypedef int __attribute__ ((bitwidth(1354))) int1354;\ntypedef int __attribute__ ((bitwidth(1355))) int1355;\ntypedef int __attribute__ ((bitwidth(1356))) int1356;\ntypedef int __attribute__ ((bitwidth(1357))) int1357;\ntypedef int __attribute__ ((bitwidth(1358))) int1358;\ntypedef int __attribute__ ((bitwidth(1359))) int1359;\ntypedef int __attribute__ ((bitwidth(1360))) int1360;\ntypedef int __attribute__ ((bitwidth(1361))) int1361;\ntypedef int __attribute__ ((bitwidth(1362))) int1362;\ntypedef int __attribute__ ((bitwidth(1363))) int1363;\ntypedef int __attribute__ ((bitwidth(1364))) int1364;\ntypedef int __attribute__ ((bitwidth(1365))) int1365;\ntypedef int __attribute__ ((bitwidth(1366))) int1366;\ntypedef int __attribute__ ((bitwidth(1367))) int1367;\ntypedef int __attribute__ ((bitwidth(1368))) int1368;\ntypedef int __attribute__ ((bitwidth(1369))) int1369;\ntypedef int __attribute__ ((bitwidth(1370))) int1370;\ntypedef int __attribute__ ((bitwidth(1371))) int1371;\ntypedef int __attribute__ ((bitwidth(1372))) int1372;\ntypedef int __attribute__ ((bitwidth(1373))) int1373;\ntypedef int __attribute__ ((bitwidth(1374))) int1374;\ntypedef int __attribute__ ((bitwidth(1375))) int1375;\ntypedef int __attribute__ ((bitwidth(1376))) int1376;\ntypedef int __attribute__ ((bitwidth(1377))) int1377;\ntypedef int __attribute__ ((bitwidth(1378))) int1378;\ntypedef int __attribute__ ((bitwidth(1379))) int1379;\ntypedef int __attribute__ ((bitwidth(1380))) int1380;\ntypedef int __attribute__ ((bitwidth(1381))) int1381;\ntypedef int __attribute__ ((bitwidth(1382))) int1382;\ntypedef int __attribute__ ((bitwidth(1383))) int1383;\ntypedef int __attribute__ ((bitwidth(1384))) int1384;\ntypedef int __attribute__ ((bitwidth(1385))) int1385;\ntypedef int __attribute__ ((bitwidth(1386))) int1386;\ntypedef int __attribute__ ((bitwidth(1387))) int1387;\ntypedef int __attribute__ ((bitwidth(1388))) int1388;\ntypedef int __attribute__ ((bitwidth(1389))) int1389;\ntypedef int __attribute__ ((bitwidth(1390))) int1390;\ntypedef int __attribute__ ((bitwidth(1391))) int1391;\ntypedef int __attribute__ ((bitwidth(1392))) int1392;\ntypedef int __attribute__ ((bitwidth(1393))) int1393;\ntypedef int __attribute__ ((bitwidth(1394))) int1394;\ntypedef int __attribute__ ((bitwidth(1395))) int1395;\ntypedef int __attribute__ ((bitwidth(1396))) int1396;\ntypedef int __attribute__ ((bitwidth(1397))) int1397;\ntypedef int __attribute__ ((bitwidth(1398))) int1398;\ntypedef int __attribute__ ((bitwidth(1399))) int1399;\ntypedef int __attribute__ ((bitwidth(1400))) int1400;\ntypedef int __attribute__ ((bitwidth(1401))) int1401;\ntypedef int __attribute__ ((bitwidth(1402))) int1402;\ntypedef int __attribute__ ((bitwidth(1403))) int1403;\ntypedef int __attribute__ ((bitwidth(1404))) int1404;\ntypedef int __attribute__ ((bitwidth(1405))) int1405;\ntypedef int __attribute__ ((bitwidth(1406))) int1406;\ntypedef int __attribute__ ((bitwidth(1407))) int1407;\ntypedef int __attribute__ ((bitwidth(1408))) int1408;\ntypedef int __attribute__ ((bitwidth(1409))) int1409;\ntypedef int __attribute__ ((bitwidth(1410))) int1410;\ntypedef int __attribute__ ((bitwidth(1411))) int1411;\ntypedef int __attribute__ ((bitwidth(1412))) int1412;\ntypedef int __attribute__ ((bitwidth(1413))) int1413;\ntypedef int __attribute__ ((bitwidth(1414))) int1414;\ntypedef int __attribute__ ((bitwidth(1415))) int1415;\ntypedef int __attribute__ ((bitwidth(1416))) int1416;\ntypedef int __attribute__ ((bitwidth(1417))) int1417;\ntypedef int __attribute__ ((bitwidth(1418))) int1418;\ntypedef int __attribute__ ((bitwidth(1419))) int1419;\ntypedef int __attribute__ ((bitwidth(1420))) int1420;\ntypedef int __attribute__ ((bitwidth(1421))) int1421;\ntypedef int __attribute__ ((bitwidth(1422))) int1422;\ntypedef int __attribute__ ((bitwidth(1423))) int1423;\ntypedef int __attribute__ ((bitwidth(1424))) int1424;\ntypedef int __attribute__ ((bitwidth(1425))) int1425;\ntypedef int __attribute__ ((bitwidth(1426))) int1426;\ntypedef int __attribute__ ((bitwidth(1427))) int1427;\ntypedef int __attribute__ ((bitwidth(1428))) int1428;\ntypedef int __attribute__ ((bitwidth(1429))) int1429;\ntypedef int __attribute__ ((bitwidth(1430))) int1430;\ntypedef int __attribute__ ((bitwidth(1431))) int1431;\ntypedef int __attribute__ ((bitwidth(1432))) int1432;\ntypedef int __attribute__ ((bitwidth(1433))) int1433;\ntypedef int __attribute__ ((bitwidth(1434))) int1434;\ntypedef int __attribute__ ((bitwidth(1435))) int1435;\ntypedef int __attribute__ ((bitwidth(1436))) int1436;\ntypedef int __attribute__ ((bitwidth(1437))) int1437;\ntypedef int __attribute__ ((bitwidth(1438))) int1438;\ntypedef int __attribute__ ((bitwidth(1439))) int1439;\ntypedef int __attribute__ ((bitwidth(1440))) int1440;\ntypedef int __attribute__ ((bitwidth(1441))) int1441;\ntypedef int __attribute__ ((bitwidth(1442))) int1442;\ntypedef int __attribute__ ((bitwidth(1443))) int1443;\ntypedef int __attribute__ ((bitwidth(1444))) int1444;\ntypedef int __attribute__ ((bitwidth(1445))) int1445;\ntypedef int __attribute__ ((bitwidth(1446))) int1446;\ntypedef int __attribute__ ((bitwidth(1447))) int1447;\ntypedef int __attribute__ ((bitwidth(1448))) int1448;\ntypedef int __attribute__ ((bitwidth(1449))) int1449;\ntypedef int __attribute__ ((bitwidth(1450))) int1450;\ntypedef int __attribute__ ((bitwidth(1451))) int1451;\ntypedef int __attribute__ ((bitwidth(1452))) int1452;\ntypedef int __attribute__ ((bitwidth(1453))) int1453;\ntypedef int __attribute__ ((bitwidth(1454))) int1454;\ntypedef int __attribute__ ((bitwidth(1455))) int1455;\ntypedef int __attribute__ ((bitwidth(1456))) int1456;\ntypedef int __attribute__ ((bitwidth(1457))) int1457;\ntypedef int __attribute__ ((bitwidth(1458))) int1458;\ntypedef int __attribute__ ((bitwidth(1459))) int1459;\ntypedef int __attribute__ ((bitwidth(1460))) int1460;\ntypedef int __attribute__ ((bitwidth(1461))) int1461;\ntypedef int __attribute__ ((bitwidth(1462))) int1462;\ntypedef int __attribute__ ((bitwidth(1463))) int1463;\ntypedef int __attribute__ ((bitwidth(1464))) int1464;\ntypedef int __attribute__ ((bitwidth(1465))) int1465;\ntypedef int __attribute__ ((bitwidth(1466))) int1466;\ntypedef int __attribute__ ((bitwidth(1467))) int1467;\ntypedef int __attribute__ ((bitwidth(1468))) int1468;\ntypedef int __attribute__ ((bitwidth(1469))) int1469;\ntypedef int __attribute__ ((bitwidth(1470))) int1470;\ntypedef int __attribute__ ((bitwidth(1471))) int1471;\ntypedef int __attribute__ ((bitwidth(1472))) int1472;\ntypedef int __attribute__ ((bitwidth(1473))) int1473;\ntypedef int __attribute__ ((bitwidth(1474))) int1474;\ntypedef int __attribute__ ((bitwidth(1475))) int1475;\ntypedef int __attribute__ ((bitwidth(1476))) int1476;\ntypedef int __attribute__ ((bitwidth(1477))) int1477;\ntypedef int __attribute__ ((bitwidth(1478))) int1478;\ntypedef int __attribute__ ((bitwidth(1479))) int1479;\ntypedef int __attribute__ ((bitwidth(1480))) int1480;\ntypedef int __attribute__ ((bitwidth(1481))) int1481;\ntypedef int __attribute__ ((bitwidth(1482))) int1482;\ntypedef int __attribute__ ((bitwidth(1483))) int1483;\ntypedef int __attribute__ ((bitwidth(1484))) int1484;\ntypedef int __attribute__ ((bitwidth(1485))) int1485;\ntypedef int __attribute__ ((bitwidth(1486))) int1486;\ntypedef int __attribute__ ((bitwidth(1487))) int1487;\ntypedef int __attribute__ ((bitwidth(1488))) int1488;\ntypedef int __attribute__ ((bitwidth(1489))) int1489;\ntypedef int __attribute__ ((bitwidth(1490))) int1490;\ntypedef int __attribute__ ((bitwidth(1491))) int1491;\ntypedef int __attribute__ ((bitwidth(1492))) int1492;\ntypedef int __attribute__ ((bitwidth(1493))) int1493;\ntypedef int __attribute__ ((bitwidth(1494))) int1494;\ntypedef int __attribute__ ((bitwidth(1495))) int1495;\ntypedef int __attribute__ ((bitwidth(1496))) int1496;\ntypedef int __attribute__ ((bitwidth(1497))) int1497;\ntypedef int __attribute__ ((bitwidth(1498))) int1498;\ntypedef int __attribute__ ((bitwidth(1499))) int1499;\ntypedef int __attribute__ ((bitwidth(1500))) int1500;\ntypedef int __attribute__ ((bitwidth(1501))) int1501;\ntypedef int __attribute__ ((bitwidth(1502))) int1502;\ntypedef int __attribute__ ((bitwidth(1503))) int1503;\ntypedef int __attribute__ ((bitwidth(1504))) int1504;\ntypedef int __attribute__ ((bitwidth(1505))) int1505;\ntypedef int __attribute__ ((bitwidth(1506))) int1506;\ntypedef int __attribute__ ((bitwidth(1507))) int1507;\ntypedef int __attribute__ ((bitwidth(1508))) int1508;\ntypedef int __attribute__ ((bitwidth(1509))) int1509;\ntypedef int __attribute__ ((bitwidth(1510))) int1510;\ntypedef int __attribute__ ((bitwidth(1511))) int1511;\ntypedef int __attribute__ ((bitwidth(1512))) int1512;\ntypedef int __attribute__ ((bitwidth(1513))) int1513;\ntypedef int __attribute__ ((bitwidth(1514))) int1514;\ntypedef int __attribute__ ((bitwidth(1515))) int1515;\ntypedef int __attribute__ ((bitwidth(1516))) int1516;\ntypedef int __attribute__ ((bitwidth(1517))) int1517;\ntypedef int __attribute__ ((bitwidth(1518))) int1518;\ntypedef int __attribute__ ((bitwidth(1519))) int1519;\ntypedef int __attribute__ ((bitwidth(1520))) int1520;\ntypedef int __attribute__ ((bitwidth(1521))) int1521;\ntypedef int __attribute__ ((bitwidth(1522))) int1522;\ntypedef int __attribute__ ((bitwidth(1523))) int1523;\ntypedef int __attribute__ ((bitwidth(1524))) int1524;\ntypedef int __attribute__ ((bitwidth(1525))) int1525;\ntypedef int __attribute__ ((bitwidth(1526))) int1526;\ntypedef int __attribute__ ((bitwidth(1527))) int1527;\ntypedef int __attribute__ ((bitwidth(1528))) int1528;\ntypedef int __attribute__ ((bitwidth(1529))) int1529;\ntypedef int __attribute__ ((bitwidth(1530))) int1530;\ntypedef int __attribute__ ((bitwidth(1531))) int1531;\ntypedef int __attribute__ ((bitwidth(1532))) int1532;\ntypedef int __attribute__ ((bitwidth(1533))) int1533;\ntypedef int __attribute__ ((bitwidth(1534))) int1534;\ntypedef int __attribute__ ((bitwidth(1535))) int1535;\ntypedef int __attribute__ ((bitwidth(1536))) int1536;\ntypedef int __attribute__ ((bitwidth(1537))) int1537;\ntypedef int __attribute__ ((bitwidth(1538))) int1538;\ntypedef int __attribute__ ((bitwidth(1539))) int1539;\ntypedef int __attribute__ ((bitwidth(1540))) int1540;\ntypedef int __attribute__ ((bitwidth(1541))) int1541;\ntypedef int __attribute__ ((bitwidth(1542))) int1542;\ntypedef int __attribute__ ((bitwidth(1543))) int1543;\ntypedef int __attribute__ ((bitwidth(1544))) int1544;\ntypedef int __attribute__ ((bitwidth(1545))) int1545;\ntypedef int __attribute__ ((bitwidth(1546))) int1546;\ntypedef int __attribute__ ((bitwidth(1547))) int1547;\ntypedef int __attribute__ ((bitwidth(1548))) int1548;\ntypedef int __attribute__ ((bitwidth(1549))) int1549;\ntypedef int __attribute__ ((bitwidth(1550))) int1550;\ntypedef int __attribute__ ((bitwidth(1551))) int1551;\ntypedef int __attribute__ ((bitwidth(1552))) int1552;\ntypedef int __attribute__ ((bitwidth(1553))) int1553;\ntypedef int __attribute__ ((bitwidth(1554))) int1554;\ntypedef int __attribute__ ((bitwidth(1555))) int1555;\ntypedef int __attribute__ ((bitwidth(1556))) int1556;\ntypedef int __attribute__ ((bitwidth(1557))) int1557;\ntypedef int __attribute__ ((bitwidth(1558))) int1558;\ntypedef int __attribute__ ((bitwidth(1559))) int1559;\ntypedef int __attribute__ ((bitwidth(1560))) int1560;\ntypedef int __attribute__ ((bitwidth(1561))) int1561;\ntypedef int __attribute__ ((bitwidth(1562))) int1562;\ntypedef int __attribute__ ((bitwidth(1563))) int1563;\ntypedef int __attribute__ ((bitwidth(1564))) int1564;\ntypedef int __attribute__ ((bitwidth(1565))) int1565;\ntypedef int __attribute__ ((bitwidth(1566))) int1566;\ntypedef int __attribute__ ((bitwidth(1567))) int1567;\ntypedef int __attribute__ ((bitwidth(1568))) int1568;\ntypedef int __attribute__ ((bitwidth(1569))) int1569;\ntypedef int __attribute__ ((bitwidth(1570))) int1570;\ntypedef int __attribute__ ((bitwidth(1571))) int1571;\ntypedef int __attribute__ ((bitwidth(1572))) int1572;\ntypedef int __attribute__ ((bitwidth(1573))) int1573;\ntypedef int __attribute__ ((bitwidth(1574))) int1574;\ntypedef int __attribute__ ((bitwidth(1575))) int1575;\ntypedef int __attribute__ ((bitwidth(1576))) int1576;\ntypedef int __attribute__ ((bitwidth(1577))) int1577;\ntypedef int __attribute__ ((bitwidth(1578))) int1578;\ntypedef int __attribute__ ((bitwidth(1579))) int1579;\ntypedef int __attribute__ ((bitwidth(1580))) int1580;\ntypedef int __attribute__ ((bitwidth(1581))) int1581;\ntypedef int __attribute__ ((bitwidth(1582))) int1582;\ntypedef int __attribute__ ((bitwidth(1583))) int1583;\ntypedef int __attribute__ ((bitwidth(1584))) int1584;\ntypedef int __attribute__ ((bitwidth(1585))) int1585;\ntypedef int __attribute__ ((bitwidth(1586))) int1586;\ntypedef int __attribute__ ((bitwidth(1587))) int1587;\ntypedef int __attribute__ ((bitwidth(1588))) int1588;\ntypedef int __attribute__ ((bitwidth(1589))) int1589;\ntypedef int __attribute__ ((bitwidth(1590))) int1590;\ntypedef int __attribute__ ((bitwidth(1591))) int1591;\ntypedef int __attribute__ ((bitwidth(1592))) int1592;\ntypedef int __attribute__ ((bitwidth(1593))) int1593;\ntypedef int __attribute__ ((bitwidth(1594))) int1594;\ntypedef int __attribute__ ((bitwidth(1595))) int1595;\ntypedef int __attribute__ ((bitwidth(1596))) int1596;\ntypedef int __attribute__ ((bitwidth(1597))) int1597;\ntypedef int __attribute__ ((bitwidth(1598))) int1598;\ntypedef int __attribute__ ((bitwidth(1599))) int1599;\ntypedef int __attribute__ ((bitwidth(1600))) int1600;\ntypedef int __attribute__ ((bitwidth(1601))) int1601;\ntypedef int __attribute__ ((bitwidth(1602))) int1602;\ntypedef int __attribute__ ((bitwidth(1603))) int1603;\ntypedef int __attribute__ ((bitwidth(1604))) int1604;\ntypedef int __attribute__ ((bitwidth(1605))) int1605;\ntypedef int __attribute__ ((bitwidth(1606))) int1606;\ntypedef int __attribute__ ((bitwidth(1607))) int1607;\ntypedef int __attribute__ ((bitwidth(1608))) int1608;\ntypedef int __attribute__ ((bitwidth(1609))) int1609;\ntypedef int __attribute__ ((bitwidth(1610))) int1610;\ntypedef int __attribute__ ((bitwidth(1611))) int1611;\ntypedef int __attribute__ ((bitwidth(1612))) int1612;\ntypedef int __attribute__ ((bitwidth(1613))) int1613;\ntypedef int __attribute__ ((bitwidth(1614))) int1614;\ntypedef int __attribute__ ((bitwidth(1615))) int1615;\ntypedef int __attribute__ ((bitwidth(1616))) int1616;\ntypedef int __attribute__ ((bitwidth(1617))) int1617;\ntypedef int __attribute__ ((bitwidth(1618))) int1618;\ntypedef int __attribute__ ((bitwidth(1619))) int1619;\ntypedef int __attribute__ ((bitwidth(1620))) int1620;\ntypedef int __attribute__ ((bitwidth(1621))) int1621;\ntypedef int __attribute__ ((bitwidth(1622))) int1622;\ntypedef int __attribute__ ((bitwidth(1623))) int1623;\ntypedef int __attribute__ ((bitwidth(1624))) int1624;\ntypedef int __attribute__ ((bitwidth(1625))) int1625;\ntypedef int __attribute__ ((bitwidth(1626))) int1626;\ntypedef int __attribute__ ((bitwidth(1627))) int1627;\ntypedef int __attribute__ ((bitwidth(1628))) int1628;\ntypedef int __attribute__ ((bitwidth(1629))) int1629;\ntypedef int __attribute__ ((bitwidth(1630))) int1630;\ntypedef int __attribute__ ((bitwidth(1631))) int1631;\ntypedef int __attribute__ ((bitwidth(1632))) int1632;\ntypedef int __attribute__ ((bitwidth(1633))) int1633;\ntypedef int __attribute__ ((bitwidth(1634))) int1634;\ntypedef int __attribute__ ((bitwidth(1635))) int1635;\ntypedef int __attribute__ ((bitwidth(1636))) int1636;\ntypedef int __attribute__ ((bitwidth(1637))) int1637;\ntypedef int __attribute__ ((bitwidth(1638))) int1638;\ntypedef int __attribute__ ((bitwidth(1639))) int1639;\ntypedef int __attribute__ ((bitwidth(1640))) int1640;\ntypedef int __attribute__ ((bitwidth(1641))) int1641;\ntypedef int __attribute__ ((bitwidth(1642))) int1642;\ntypedef int __attribute__ ((bitwidth(1643))) int1643;\ntypedef int __attribute__ ((bitwidth(1644))) int1644;\ntypedef int __attribute__ ((bitwidth(1645))) int1645;\ntypedef int __attribute__ ((bitwidth(1646))) int1646;\ntypedef int __attribute__ ((bitwidth(1647))) int1647;\ntypedef int __attribute__ ((bitwidth(1648))) int1648;\ntypedef int __attribute__ ((bitwidth(1649))) int1649;\ntypedef int __attribute__ ((bitwidth(1650))) int1650;\ntypedef int __attribute__ ((bitwidth(1651))) int1651;\ntypedef int __attribute__ ((bitwidth(1652))) int1652;\ntypedef int __attribute__ ((bitwidth(1653))) int1653;\ntypedef int __attribute__ ((bitwidth(1654))) int1654;\ntypedef int __attribute__ ((bitwidth(1655))) int1655;\ntypedef int __attribute__ ((bitwidth(1656))) int1656;\ntypedef int __attribute__ ((bitwidth(1657))) int1657;\ntypedef int __attribute__ ((bitwidth(1658))) int1658;\ntypedef int __attribute__ ((bitwidth(1659))) int1659;\ntypedef int __attribute__ ((bitwidth(1660))) int1660;\ntypedef int __attribute__ ((bitwidth(1661))) int1661;\ntypedef int __attribute__ ((bitwidth(1662))) int1662;\ntypedef int __attribute__ ((bitwidth(1663))) int1663;\ntypedef int __attribute__ ((bitwidth(1664))) int1664;\ntypedef int __attribute__ ((bitwidth(1665))) int1665;\ntypedef int __attribute__ ((bitwidth(1666))) int1666;\ntypedef int __attribute__ ((bitwidth(1667))) int1667;\ntypedef int __attribute__ ((bitwidth(1668))) int1668;\ntypedef int __attribute__ ((bitwidth(1669))) int1669;\ntypedef int __attribute__ ((bitwidth(1670))) int1670;\ntypedef int __attribute__ ((bitwidth(1671))) int1671;\ntypedef int __attribute__ ((bitwidth(1672))) int1672;\ntypedef int __attribute__ ((bitwidth(1673))) int1673;\ntypedef int __attribute__ ((bitwidth(1674))) int1674;\ntypedef int __attribute__ ((bitwidth(1675))) int1675;\ntypedef int __attribute__ ((bitwidth(1676))) int1676;\ntypedef int __attribute__ ((bitwidth(1677))) int1677;\ntypedef int __attribute__ ((bitwidth(1678))) int1678;\ntypedef int __attribute__ ((bitwidth(1679))) int1679;\ntypedef int __attribute__ ((bitwidth(1680))) int1680;\ntypedef int __attribute__ ((bitwidth(1681))) int1681;\ntypedef int __attribute__ ((bitwidth(1682))) int1682;\ntypedef int __attribute__ ((bitwidth(1683))) int1683;\ntypedef int __attribute__ ((bitwidth(1684))) int1684;\ntypedef int __attribute__ ((bitwidth(1685))) int1685;\ntypedef int __attribute__ ((bitwidth(1686))) int1686;\ntypedef int __attribute__ ((bitwidth(1687))) int1687;\ntypedef int __attribute__ ((bitwidth(1688))) int1688;\ntypedef int __attribute__ ((bitwidth(1689))) int1689;\ntypedef int __attribute__ ((bitwidth(1690))) int1690;\ntypedef int __attribute__ ((bitwidth(1691))) int1691;\ntypedef int __attribute__ ((bitwidth(1692))) int1692;\ntypedef int __attribute__ ((bitwidth(1693))) int1693;\ntypedef int __attribute__ ((bitwidth(1694))) int1694;\ntypedef int __attribute__ ((bitwidth(1695))) int1695;\ntypedef int __attribute__ ((bitwidth(1696))) int1696;\ntypedef int __attribute__ ((bitwidth(1697))) int1697;\ntypedef int __attribute__ ((bitwidth(1698))) int1698;\ntypedef int __attribute__ ((bitwidth(1699))) int1699;\ntypedef int __attribute__ ((bitwidth(1700))) int1700;\ntypedef int __attribute__ ((bitwidth(1701))) int1701;\ntypedef int __attribute__ ((bitwidth(1702))) int1702;\ntypedef int __attribute__ ((bitwidth(1703))) int1703;\ntypedef int __attribute__ ((bitwidth(1704))) int1704;\ntypedef int __attribute__ ((bitwidth(1705))) int1705;\ntypedef int __attribute__ ((bitwidth(1706))) int1706;\ntypedef int __attribute__ ((bitwidth(1707))) int1707;\ntypedef int __attribute__ ((bitwidth(1708))) int1708;\ntypedef int __attribute__ ((bitwidth(1709))) int1709;\ntypedef int __attribute__ ((bitwidth(1710))) int1710;\ntypedef int __attribute__ ((bitwidth(1711))) int1711;\ntypedef int __attribute__ ((bitwidth(1712))) int1712;\ntypedef int __attribute__ ((bitwidth(1713))) int1713;\ntypedef int __attribute__ ((bitwidth(1714))) int1714;\ntypedef int __attribute__ ((bitwidth(1715))) int1715;\ntypedef int __attribute__ ((bitwidth(1716))) int1716;\ntypedef int __attribute__ ((bitwidth(1717))) int1717;\ntypedef int __attribute__ ((bitwidth(1718))) int1718;\ntypedef int __attribute__ ((bitwidth(1719))) int1719;\ntypedef int __attribute__ ((bitwidth(1720))) int1720;\ntypedef int __attribute__ ((bitwidth(1721))) int1721;\ntypedef int __attribute__ ((bitwidth(1722))) int1722;\ntypedef int __attribute__ ((bitwidth(1723))) int1723;\ntypedef int __attribute__ ((bitwidth(1724))) int1724;\ntypedef int __attribute__ ((bitwidth(1725))) int1725;\ntypedef int __attribute__ ((bitwidth(1726))) int1726;\ntypedef int __attribute__ ((bitwidth(1727))) int1727;\ntypedef int __attribute__ ((bitwidth(1728))) int1728;\ntypedef int __attribute__ ((bitwidth(1729))) int1729;\ntypedef int __attribute__ ((bitwidth(1730))) int1730;\ntypedef int __attribute__ ((bitwidth(1731))) int1731;\ntypedef int __attribute__ ((bitwidth(1732))) int1732;\ntypedef int __attribute__ ((bitwidth(1733))) int1733;\ntypedef int __attribute__ ((bitwidth(1734))) int1734;\ntypedef int __attribute__ ((bitwidth(1735))) int1735;\ntypedef int __attribute__ ((bitwidth(1736))) int1736;\ntypedef int __attribute__ ((bitwidth(1737))) int1737;\ntypedef int __attribute__ ((bitwidth(1738))) int1738;\ntypedef int __attribute__ ((bitwidth(1739))) int1739;\ntypedef int __attribute__ ((bitwidth(1740))) int1740;\ntypedef int __attribute__ ((bitwidth(1741))) int1741;\ntypedef int __attribute__ ((bitwidth(1742))) int1742;\ntypedef int __attribute__ ((bitwidth(1743))) int1743;\ntypedef int __attribute__ ((bitwidth(1744))) int1744;\ntypedef int __attribute__ ((bitwidth(1745))) int1745;\ntypedef int __attribute__ ((bitwidth(1746))) int1746;\ntypedef int __attribute__ ((bitwidth(1747))) int1747;\ntypedef int __attribute__ ((bitwidth(1748))) int1748;\ntypedef int __attribute__ ((bitwidth(1749))) int1749;\ntypedef int __attribute__ ((bitwidth(1750))) int1750;\ntypedef int __attribute__ ((bitwidth(1751))) int1751;\ntypedef int __attribute__ ((bitwidth(1752))) int1752;\ntypedef int __attribute__ ((bitwidth(1753))) int1753;\ntypedef int __attribute__ ((bitwidth(1754))) int1754;\ntypedef int __attribute__ ((bitwidth(1755))) int1755;\ntypedef int __attribute__ ((bitwidth(1756))) int1756;\ntypedef int __attribute__ ((bitwidth(1757))) int1757;\ntypedef int __attribute__ ((bitwidth(1758))) int1758;\ntypedef int __attribute__ ((bitwidth(1759))) int1759;\ntypedef int __attribute__ ((bitwidth(1760))) int1760;\ntypedef int __attribute__ ((bitwidth(1761))) int1761;\ntypedef int __attribute__ ((bitwidth(1762))) int1762;\ntypedef int __attribute__ ((bitwidth(1763))) int1763;\ntypedef int __attribute__ ((bitwidth(1764))) int1764;\ntypedef int __attribute__ ((bitwidth(1765))) int1765;\ntypedef int __attribute__ ((bitwidth(1766))) int1766;\ntypedef int __attribute__ ((bitwidth(1767))) int1767;\ntypedef int __attribute__ ((bitwidth(1768))) int1768;\ntypedef int __attribute__ ((bitwidth(1769))) int1769;\ntypedef int __attribute__ ((bitwidth(1770))) int1770;\ntypedef int __attribute__ ((bitwidth(1771))) int1771;\ntypedef int __attribute__ ((bitwidth(1772))) int1772;\ntypedef int __attribute__ ((bitwidth(1773))) int1773;\ntypedef int __attribute__ ((bitwidth(1774))) int1774;\ntypedef int __attribute__ ((bitwidth(1775))) int1775;\ntypedef int __attribute__ ((bitwidth(1776))) int1776;\ntypedef int __attribute__ ((bitwidth(1777))) int1777;\ntypedef int __attribute__ ((bitwidth(1778))) int1778;\ntypedef int __attribute__ ((bitwidth(1779))) int1779;\ntypedef int __attribute__ ((bitwidth(1780))) int1780;\ntypedef int __attribute__ ((bitwidth(1781))) int1781;\ntypedef int __attribute__ ((bitwidth(1782))) int1782;\ntypedef int __attribute__ ((bitwidth(1783))) int1783;\ntypedef int __attribute__ ((bitwidth(1784))) int1784;\ntypedef int __attribute__ ((bitwidth(1785))) int1785;\ntypedef int __attribute__ ((bitwidth(1786))) int1786;\ntypedef int __attribute__ ((bitwidth(1787))) int1787;\ntypedef int __attribute__ ((bitwidth(1788))) int1788;\ntypedef int __attribute__ ((bitwidth(1789))) int1789;\ntypedef int __attribute__ ((bitwidth(1790))) int1790;\ntypedef int __attribute__ ((bitwidth(1791))) int1791;\ntypedef int __attribute__ ((bitwidth(1792))) int1792;\ntypedef int __attribute__ ((bitwidth(1793))) int1793;\ntypedef int __attribute__ ((bitwidth(1794))) int1794;\ntypedef int __attribute__ ((bitwidth(1795))) int1795;\ntypedef int __attribute__ ((bitwidth(1796))) int1796;\ntypedef int __attribute__ ((bitwidth(1797))) int1797;\ntypedef int __attribute__ ((bitwidth(1798))) int1798;\ntypedef int __attribute__ ((bitwidth(1799))) int1799;\ntypedef int __attribute__ ((bitwidth(1800))) int1800;\ntypedef int __attribute__ ((bitwidth(1801))) int1801;\ntypedef int __attribute__ ((bitwidth(1802))) int1802;\ntypedef int __attribute__ ((bitwidth(1803))) int1803;\ntypedef int __attribute__ ((bitwidth(1804))) int1804;\ntypedef int __attribute__ ((bitwidth(1805))) int1805;\ntypedef int __attribute__ ((bitwidth(1806))) int1806;\ntypedef int __attribute__ ((bitwidth(1807))) int1807;\ntypedef int __attribute__ ((bitwidth(1808))) int1808;\ntypedef int __attribute__ ((bitwidth(1809))) int1809;\ntypedef int __attribute__ ((bitwidth(1810))) int1810;\ntypedef int __attribute__ ((bitwidth(1811))) int1811;\ntypedef int __attribute__ ((bitwidth(1812))) int1812;\ntypedef int __attribute__ ((bitwidth(1813))) int1813;\ntypedef int __attribute__ ((bitwidth(1814))) int1814;\ntypedef int __attribute__ ((bitwidth(1815))) int1815;\ntypedef int __attribute__ ((bitwidth(1816))) int1816;\ntypedef int __attribute__ ((bitwidth(1817))) int1817;\ntypedef int __attribute__ ((bitwidth(1818))) int1818;\ntypedef int __attribute__ ((bitwidth(1819))) int1819;\ntypedef int __attribute__ ((bitwidth(1820))) int1820;\ntypedef int __attribute__ ((bitwidth(1821))) int1821;\ntypedef int __attribute__ ((bitwidth(1822))) int1822;\ntypedef int __attribute__ ((bitwidth(1823))) int1823;\ntypedef int __attribute__ ((bitwidth(1824))) int1824;\ntypedef int __attribute__ ((bitwidth(1825))) int1825;\ntypedef int __attribute__ ((bitwidth(1826))) int1826;\ntypedef int __attribute__ ((bitwidth(1827))) int1827;\ntypedef int __attribute__ ((bitwidth(1828))) int1828;\ntypedef int __attribute__ ((bitwidth(1829))) int1829;\ntypedef int __attribute__ ((bitwidth(1830))) int1830;\ntypedef int __attribute__ ((bitwidth(1831))) int1831;\ntypedef int __attribute__ ((bitwidth(1832))) int1832;\ntypedef int __attribute__ ((bitwidth(1833))) int1833;\ntypedef int __attribute__ ((bitwidth(1834))) int1834;\ntypedef int __attribute__ ((bitwidth(1835))) int1835;\ntypedef int __attribute__ ((bitwidth(1836))) int1836;\ntypedef int __attribute__ ((bitwidth(1837))) int1837;\ntypedef int __attribute__ ((bitwidth(1838))) int1838;\ntypedef int __attribute__ ((bitwidth(1839))) int1839;\ntypedef int __attribute__ ((bitwidth(1840))) int1840;\ntypedef int __attribute__ ((bitwidth(1841))) int1841;\ntypedef int __attribute__ ((bitwidth(1842))) int1842;\ntypedef int __attribute__ ((bitwidth(1843))) int1843;\ntypedef int __attribute__ ((bitwidth(1844))) int1844;\ntypedef int __attribute__ ((bitwidth(1845))) int1845;\ntypedef int __attribute__ ((bitwidth(1846))) int1846;\ntypedef int __attribute__ ((bitwidth(1847))) int1847;\ntypedef int __attribute__ ((bitwidth(1848))) int1848;\ntypedef int __attribute__ ((bitwidth(1849))) int1849;\ntypedef int __attribute__ ((bitwidth(1850))) int1850;\ntypedef int __attribute__ ((bitwidth(1851))) int1851;\ntypedef int __attribute__ ((bitwidth(1852))) int1852;\ntypedef int __attribute__ ((bitwidth(1853))) int1853;\ntypedef int __attribute__ ((bitwidth(1854))) int1854;\ntypedef int __attribute__ ((bitwidth(1855))) int1855;\ntypedef int __attribute__ ((bitwidth(1856))) int1856;\ntypedef int __attribute__ ((bitwidth(1857))) int1857;\ntypedef int __attribute__ ((bitwidth(1858))) int1858;\ntypedef int __attribute__ ((bitwidth(1859))) int1859;\ntypedef int __attribute__ ((bitwidth(1860))) int1860;\ntypedef int __attribute__ ((bitwidth(1861))) int1861;\ntypedef int __attribute__ ((bitwidth(1862))) int1862;\ntypedef int __attribute__ ((bitwidth(1863))) int1863;\ntypedef int __attribute__ ((bitwidth(1864))) int1864;\ntypedef int __attribute__ ((bitwidth(1865))) int1865;\ntypedef int __attribute__ ((bitwidth(1866))) int1866;\ntypedef int __attribute__ ((bitwidth(1867))) int1867;\ntypedef int __attribute__ ((bitwidth(1868))) int1868;\ntypedef int __attribute__ ((bitwidth(1869))) int1869;\ntypedef int __attribute__ ((bitwidth(1870))) int1870;\ntypedef int __attribute__ ((bitwidth(1871))) int1871;\ntypedef int __attribute__ ((bitwidth(1872))) int1872;\ntypedef int __attribute__ ((bitwidth(1873))) int1873;\ntypedef int __attribute__ ((bitwidth(1874))) int1874;\ntypedef int __attribute__ ((bitwidth(1875))) int1875;\ntypedef int __attribute__ ((bitwidth(1876))) int1876;\ntypedef int __attribute__ ((bitwidth(1877))) int1877;\ntypedef int __attribute__ ((bitwidth(1878))) int1878;\ntypedef int __attribute__ ((bitwidth(1879))) int1879;\ntypedef int __attribute__ ((bitwidth(1880))) int1880;\ntypedef int __attribute__ ((bitwidth(1881))) int1881;\ntypedef int __attribute__ ((bitwidth(1882))) int1882;\ntypedef int __attribute__ ((bitwidth(1883))) int1883;\ntypedef int __attribute__ ((bitwidth(1884))) int1884;\ntypedef int __attribute__ ((bitwidth(1885))) int1885;\ntypedef int __attribute__ ((bitwidth(1886))) int1886;\ntypedef int __attribute__ ((bitwidth(1887))) int1887;\ntypedef int __attribute__ ((bitwidth(1888))) int1888;\ntypedef int __attribute__ ((bitwidth(1889))) int1889;\ntypedef int __attribute__ ((bitwidth(1890))) int1890;\ntypedef int __attribute__ ((bitwidth(1891))) int1891;\ntypedef int __attribute__ ((bitwidth(1892))) int1892;\ntypedef int __attribute__ ((bitwidth(1893))) int1893;\ntypedef int __attribute__ ((bitwidth(1894))) int1894;\ntypedef int __attribute__ ((bitwidth(1895))) int1895;\ntypedef int __attribute__ ((bitwidth(1896))) int1896;\ntypedef int __attribute__ ((bitwidth(1897))) int1897;\ntypedef int __attribute__ ((bitwidth(1898))) int1898;\ntypedef int __attribute__ ((bitwidth(1899))) int1899;\ntypedef int __attribute__ ((bitwidth(1900))) int1900;\ntypedef int __attribute__ ((bitwidth(1901))) int1901;\ntypedef int __attribute__ ((bitwidth(1902))) int1902;\ntypedef int __attribute__ ((bitwidth(1903))) int1903;\ntypedef int __attribute__ ((bitwidth(1904))) int1904;\ntypedef int __attribute__ ((bitwidth(1905))) int1905;\ntypedef int __attribute__ ((bitwidth(1906))) int1906;\ntypedef int __attribute__ ((bitwidth(1907))) int1907;\ntypedef int __attribute__ ((bitwidth(1908))) int1908;\ntypedef int __attribute__ ((bitwidth(1909))) int1909;\ntypedef int __attribute__ ((bitwidth(1910))) int1910;\ntypedef int __attribute__ ((bitwidth(1911))) int1911;\ntypedef int __attribute__ ((bitwidth(1912))) int1912;\ntypedef int __attribute__ ((bitwidth(1913))) int1913;\ntypedef int __attribute__ ((bitwidth(1914))) int1914;\ntypedef int __attribute__ ((bitwidth(1915))) int1915;\ntypedef int __attribute__ ((bitwidth(1916))) int1916;\ntypedef int __attribute__ ((bitwidth(1917))) int1917;\ntypedef int __attribute__ ((bitwidth(1918))) int1918;\ntypedef int __attribute__ ((bitwidth(1919))) int1919;\ntypedef int __attribute__ ((bitwidth(1920))) int1920;\ntypedef int __attribute__ ((bitwidth(1921))) int1921;\ntypedef int __attribute__ ((bitwidth(1922))) int1922;\ntypedef int __attribute__ ((bitwidth(1923))) int1923;\ntypedef int __attribute__ ((bitwidth(1924))) int1924;\ntypedef int __attribute__ ((bitwidth(1925))) int1925;\ntypedef int __attribute__ ((bitwidth(1926))) int1926;\ntypedef int __attribute__ ((bitwidth(1927))) int1927;\ntypedef int __attribute__ ((bitwidth(1928))) int1928;\ntypedef int __attribute__ ((bitwidth(1929))) int1929;\ntypedef int __attribute__ ((bitwidth(1930))) int1930;\ntypedef int __attribute__ ((bitwidth(1931))) int1931;\ntypedef int __attribute__ ((bitwidth(1932))) int1932;\ntypedef int __attribute__ ((bitwidth(1933))) int1933;\ntypedef int __attribute__ ((bitwidth(1934))) int1934;\ntypedef int __attribute__ ((bitwidth(1935))) int1935;\ntypedef int __attribute__ ((bitwidth(1936))) int1936;\ntypedef int __attribute__ ((bitwidth(1937))) int1937;\ntypedef int __attribute__ ((bitwidth(1938))) int1938;\ntypedef int __attribute__ ((bitwidth(1939))) int1939;\ntypedef int __attribute__ ((bitwidth(1940))) int1940;\ntypedef int __attribute__ ((bitwidth(1941))) int1941;\ntypedef int __attribute__ ((bitwidth(1942))) int1942;\ntypedef int __attribute__ ((bitwidth(1943))) int1943;\ntypedef int __attribute__ ((bitwidth(1944))) int1944;\ntypedef int __attribute__ ((bitwidth(1945))) int1945;\ntypedef int __attribute__ ((bitwidth(1946))) int1946;\ntypedef int __attribute__ ((bitwidth(1947))) int1947;\ntypedef int __attribute__ ((bitwidth(1948))) int1948;\ntypedef int __attribute__ ((bitwidth(1949))) int1949;\ntypedef int __attribute__ ((bitwidth(1950))) int1950;\ntypedef int __attribute__ ((bitwidth(1951))) int1951;\ntypedef int __attribute__ ((bitwidth(1952))) int1952;\ntypedef int __attribute__ ((bitwidth(1953))) int1953;\ntypedef int __attribute__ ((bitwidth(1954))) int1954;\ntypedef int __attribute__ ((bitwidth(1955))) int1955;\ntypedef int __attribute__ ((bitwidth(1956))) int1956;\ntypedef int __attribute__ ((bitwidth(1957))) int1957;\ntypedef int __attribute__ ((bitwidth(1958))) int1958;\ntypedef int __attribute__ ((bitwidth(1959))) int1959;\ntypedef int __attribute__ ((bitwidth(1960))) int1960;\ntypedef int __attribute__ ((bitwidth(1961))) int1961;\ntypedef int __attribute__ ((bitwidth(1962))) int1962;\ntypedef int __attribute__ ((bitwidth(1963))) int1963;\ntypedef int __attribute__ ((bitwidth(1964))) int1964;\ntypedef int __attribute__ ((bitwidth(1965))) int1965;\ntypedef int __attribute__ ((bitwidth(1966))) int1966;\ntypedef int __attribute__ ((bitwidth(1967))) int1967;\ntypedef int __attribute__ ((bitwidth(1968))) int1968;\ntypedef int __attribute__ ((bitwidth(1969))) int1969;\ntypedef int __attribute__ ((bitwidth(1970))) int1970;\ntypedef int __attribute__ ((bitwidth(1971))) int1971;\ntypedef int __attribute__ ((bitwidth(1972))) int1972;\ntypedef int __attribute__ ((bitwidth(1973))) int1973;\ntypedef int __attribute__ ((bitwidth(1974))) int1974;\ntypedef int __attribute__ ((bitwidth(1975))) int1975;\ntypedef int __attribute__ ((bitwidth(1976))) int1976;\ntypedef int __attribute__ ((bitwidth(1977))) int1977;\ntypedef int __attribute__ ((bitwidth(1978))) int1978;\ntypedef int __attribute__ ((bitwidth(1979))) int1979;\ntypedef int __attribute__ ((bitwidth(1980))) int1980;\ntypedef int __attribute__ ((bitwidth(1981))) int1981;\ntypedef int __attribute__ ((bitwidth(1982))) int1982;\ntypedef int __attribute__ ((bitwidth(1983))) int1983;\ntypedef int __attribute__ ((bitwidth(1984))) int1984;\ntypedef int __attribute__ ((bitwidth(1985))) int1985;\ntypedef int __attribute__ ((bitwidth(1986))) int1986;\ntypedef int __attribute__ ((bitwidth(1987))) int1987;\ntypedef int __attribute__ ((bitwidth(1988))) int1988;\ntypedef int __attribute__ ((bitwidth(1989))) int1989;\ntypedef int __attribute__ ((bitwidth(1990))) int1990;\ntypedef int __attribute__ ((bitwidth(1991))) int1991;\ntypedef int __attribute__ ((bitwidth(1992))) int1992;\ntypedef int __attribute__ ((bitwidth(1993))) int1993;\ntypedef int __attribute__ ((bitwidth(1994))) int1994;\ntypedef int __attribute__ ((bitwidth(1995))) int1995;\ntypedef int __attribute__ ((bitwidth(1996))) int1996;\ntypedef int __attribute__ ((bitwidth(1997))) int1997;\ntypedef int __attribute__ ((bitwidth(1998))) int1998;\ntypedef int __attribute__ ((bitwidth(1999))) int1999;\ntypedef int __attribute__ ((bitwidth(2000))) int2000;\ntypedef int __attribute__ ((bitwidth(2001))) int2001;\ntypedef int __attribute__ ((bitwidth(2002))) int2002;\ntypedef int __attribute__ ((bitwidth(2003))) int2003;\ntypedef int __attribute__ ((bitwidth(2004))) int2004;\ntypedef int __attribute__ ((bitwidth(2005))) int2005;\ntypedef int __attribute__ ((bitwidth(2006))) int2006;\ntypedef int __attribute__ ((bitwidth(2007))) int2007;\ntypedef int __attribute__ ((bitwidth(2008))) int2008;\ntypedef int __attribute__ ((bitwidth(2009))) int2009;\ntypedef int __attribute__ ((bitwidth(2010))) int2010;\ntypedef int __attribute__ ((bitwidth(2011))) int2011;\ntypedef int __attribute__ ((bitwidth(2012))) int2012;\ntypedef int __attribute__ ((bitwidth(2013))) int2013;\ntypedef int __attribute__ ((bitwidth(2014))) int2014;\ntypedef int __attribute__ ((bitwidth(2015))) int2015;\ntypedef int __attribute__ ((bitwidth(2016))) int2016;\ntypedef int __attribute__ ((bitwidth(2017))) int2017;\ntypedef int __attribute__ ((bitwidth(2018))) int2018;\ntypedef int __attribute__ ((bitwidth(2019))) int2019;\ntypedef int __attribute__ ((bitwidth(2020))) int2020;\ntypedef int __attribute__ ((bitwidth(2021))) int2021;\ntypedef int __attribute__ ((bitwidth(2022))) int2022;\ntypedef int __attribute__ ((bitwidth(2023))) int2023;\ntypedef int __attribute__ ((bitwidth(2024))) int2024;\ntypedef int __attribute__ ((bitwidth(2025))) int2025;\ntypedef int __attribute__ ((bitwidth(2026))) int2026;\ntypedef int __attribute__ ((bitwidth(2027))) int2027;\ntypedef int __attribute__ ((bitwidth(2028))) int2028;\ntypedef int __attribute__ ((bitwidth(2029))) int2029;\ntypedef int __attribute__ ((bitwidth(2030))) int2030;\ntypedef int __attribute__ ((bitwidth(2031))) int2031;\ntypedef int __attribute__ ((bitwidth(2032))) int2032;\ntypedef int __attribute__ ((bitwidth(2033))) int2033;\ntypedef int __attribute__ ((bitwidth(2034))) int2034;\ntypedef int __attribute__ ((bitwidth(2035))) int2035;\ntypedef int __attribute__ ((bitwidth(2036))) int2036;\ntypedef int __attribute__ ((bitwidth(2037))) int2037;\ntypedef int __attribute__ ((bitwidth(2038))) int2038;\ntypedef int __attribute__ ((bitwidth(2039))) int2039;\ntypedef int __attribute__ ((bitwidth(2040))) int2040;\ntypedef int __attribute__ ((bitwidth(2041))) int2041;\ntypedef int __attribute__ ((bitwidth(2042))) int2042;\ntypedef int __attribute__ ((bitwidth(2043))) int2043;\ntypedef int __attribute__ ((bitwidth(2044))) int2044;\ntypedef int __attribute__ ((bitwidth(2045))) int2045;\ntypedef int __attribute__ ((bitwidth(2046))) int2046;\ntypedef int __attribute__ ((bitwidth(2047))) int2047;\ntypedef int __attribute__ ((bitwidth(2048))) int2048;\n#pragma line 99 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_dt.h\" 2\n#pragma line 108 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_dt.h\"\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_dt.def\" 1\n#pragma empty_line\n#pragma empty_line\ntypedef unsigned int __attribute__ ((bitwidth(1))) uint1;\ntypedef unsigned int __attribute__ ((bitwidth(2))) uint2;\ntypedef unsigned int __attribute__ ((bitwidth(3))) uint3;\ntypedef unsigned int __attribute__ ((bitwidth(4))) uint4;\ntypedef unsigned int __attribute__ ((bitwidth(5))) uint5;\ntypedef unsigned int __attribute__ ((bitwidth(6))) uint6;\ntypedef unsigned int __attribute__ ((bitwidth(7))) uint7;\ntypedef unsigned int __attribute__ ((bitwidth(8))) uint8;\ntypedef unsigned int __attribute__ ((bitwidth(9))) uint9;\ntypedef unsigned int __attribute__ ((bitwidth(10))) uint10;\ntypedef unsigned int __attribute__ ((bitwidth(11))) uint11;\ntypedef unsigned int __attribute__ ((bitwidth(12))) uint12;\ntypedef unsigned int __attribute__ ((bitwidth(13))) uint13;\ntypedef unsigned int __attribute__ ((bitwidth(14))) uint14;\ntypedef unsigned int __attribute__ ((bitwidth(15))) uint15;\ntypedef unsigned int __attribute__ ((bitwidth(16))) uint16;\ntypedef unsigned int __attribute__ ((bitwidth(17))) uint17;\ntypedef unsigned int __attribute__ ((bitwidth(18))) uint18;\ntypedef unsigned int __attribute__ ((bitwidth(19))) uint19;\ntypedef unsigned int __attribute__ ((bitwidth(20))) uint20;\ntypedef unsigned int __attribute__ ((bitwidth(21))) uint21;\ntypedef unsigned int __attribute__ ((bitwidth(22))) uint22;\ntypedef unsigned int __attribute__ ((bitwidth(23))) uint23;\ntypedef unsigned int __attribute__ ((bitwidth(24))) uint24;\ntypedef unsigned int __attribute__ ((bitwidth(25))) uint25;\ntypedef unsigned int __attribute__ ((bitwidth(26))) uint26;\ntypedef unsigned int __attribute__ ((bitwidth(27))) uint27;\ntypedef unsigned int __attribute__ ((bitwidth(28))) uint28;\ntypedef unsigned int __attribute__ ((bitwidth(29))) uint29;\ntypedef unsigned int __attribute__ ((bitwidth(30))) uint30;\ntypedef unsigned int __attribute__ ((bitwidth(31))) uint31;\ntypedef unsigned int __attribute__ ((bitwidth(32))) uint32;\ntypedef unsigned int __attribute__ ((bitwidth(33))) uint33;\ntypedef unsigned int __attribute__ ((bitwidth(34))) uint34;\ntypedef unsigned int __attribute__ ((bitwidth(35))) uint35;\ntypedef unsigned int __attribute__ ((bitwidth(36))) uint36;\ntypedef unsigned int __attribute__ ((bitwidth(37))) uint37;\ntypedef unsigned int __attribute__ ((bitwidth(38))) uint38;\ntypedef unsigned int __attribute__ ((bitwidth(39))) uint39;\ntypedef unsigned int __attribute__ ((bitwidth(40))) uint40;\ntypedef unsigned int __attribute__ ((bitwidth(41))) uint41;\ntypedef unsigned int __attribute__ ((bitwidth(42))) uint42;\ntypedef unsigned int __attribute__ ((bitwidth(43))) uint43;\ntypedef unsigned int __attribute__ ((bitwidth(44))) uint44;\ntypedef unsigned int __attribute__ ((bitwidth(45))) uint45;\ntypedef unsigned int __attribute__ ((bitwidth(46))) uint46;\ntypedef unsigned int __attribute__ ((bitwidth(47))) uint47;\ntypedef unsigned int __attribute__ ((bitwidth(48))) uint48;\ntypedef unsigned int __attribute__ ((bitwidth(49))) uint49;\ntypedef unsigned int __attribute__ ((bitwidth(50))) uint50;\ntypedef unsigned int __attribute__ ((bitwidth(51))) uint51;\ntypedef unsigned int __attribute__ ((bitwidth(52))) uint52;\ntypedef unsigned int __attribute__ ((bitwidth(53))) uint53;\ntypedef unsigned int __attribute__ ((bitwidth(54))) uint54;\ntypedef unsigned int __attribute__ ((bitwidth(55))) uint55;\ntypedef unsigned int __attribute__ ((bitwidth(56))) uint56;\ntypedef unsigned int __attribute__ ((bitwidth(57))) uint57;\ntypedef unsigned int __attribute__ ((bitwidth(58))) uint58;\ntypedef unsigned int __attribute__ ((bitwidth(59))) uint59;\ntypedef unsigned int __attribute__ ((bitwidth(60))) uint60;\ntypedef unsigned int __attribute__ ((bitwidth(61))) uint61;\ntypedef unsigned int __attribute__ ((bitwidth(62))) uint62;\ntypedef unsigned int __attribute__ ((bitwidth(63))) uint63;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\ntypedef unsigned int __attribute__ ((bitwidth(65))) uint65;\ntypedef unsigned int __attribute__ ((bitwidth(66))) uint66;\ntypedef unsigned int __attribute__ ((bitwidth(67))) uint67;\ntypedef unsigned int __attribute__ ((bitwidth(68))) uint68;\ntypedef unsigned int __attribute__ ((bitwidth(69))) uint69;\ntypedef unsigned int __attribute__ ((bitwidth(70))) uint70;\ntypedef unsigned int __attribute__ ((bitwidth(71))) uint71;\ntypedef unsigned int __attribute__ ((bitwidth(72))) uint72;\ntypedef unsigned int __attribute__ ((bitwidth(73))) uint73;\ntypedef unsigned int __attribute__ ((bitwidth(74))) uint74;\ntypedef unsigned int __attribute__ ((bitwidth(75))) uint75;\ntypedef unsigned int __attribute__ ((bitwidth(76))) uint76;\ntypedef unsigned int __attribute__ ((bitwidth(77))) uint77;\ntypedef unsigned int __attribute__ ((bitwidth(78))) uint78;\ntypedef unsigned int __attribute__ ((bitwidth(79))) uint79;\ntypedef unsigned int __attribute__ ((bitwidth(80))) uint80;\ntypedef unsigned int __attribute__ ((bitwidth(81))) uint81;\ntypedef unsigned int __attribute__ ((bitwidth(82))) uint82;\ntypedef unsigned int __attribute__ ((bitwidth(83))) uint83;\ntypedef unsigned int __attribute__ ((bitwidth(84))) uint84;\ntypedef unsigned int __attribute__ ((bitwidth(85))) uint85;\ntypedef unsigned int __attribute__ ((bitwidth(86))) uint86;\ntypedef unsigned int __attribute__ ((bitwidth(87))) uint87;\ntypedef unsigned int __attribute__ ((bitwidth(88))) uint88;\ntypedef unsigned int __attribute__ ((bitwidth(89))) uint89;\ntypedef unsigned int __attribute__ ((bitwidth(90))) uint90;\ntypedef unsigned int __attribute__ ((bitwidth(91))) uint91;\ntypedef unsigned int __attribute__ ((bitwidth(92))) uint92;\ntypedef unsigned int __attribute__ ((bitwidth(93))) uint93;\ntypedef unsigned int __attribute__ ((bitwidth(94))) uint94;\ntypedef unsigned int __attribute__ ((bitwidth(95))) uint95;\ntypedef unsigned int __attribute__ ((bitwidth(96))) uint96;\ntypedef unsigned int __attribute__ ((bitwidth(97))) uint97;\ntypedef unsigned int __attribute__ ((bitwidth(98))) uint98;\ntypedef unsigned int __attribute__ ((bitwidth(99))) uint99;\ntypedef unsigned int __attribute__ ((bitwidth(100))) uint100;\ntypedef unsigned int __attribute__ ((bitwidth(101))) uint101;\ntypedef unsigned int __attribute__ ((bitwidth(102))) uint102;\ntypedef unsigned int __attribute__ ((bitwidth(103))) uint103;\ntypedef unsigned int __attribute__ ((bitwidth(104))) uint104;\ntypedef unsigned int __attribute__ ((bitwidth(105))) uint105;\ntypedef unsigned int __attribute__ ((bitwidth(106))) uint106;\ntypedef unsigned int __attribute__ ((bitwidth(107))) uint107;\ntypedef unsigned int __attribute__ ((bitwidth(108))) uint108;\ntypedef unsigned int __attribute__ ((bitwidth(109))) uint109;\ntypedef unsigned int __attribute__ ((bitwidth(110))) uint110;\ntypedef unsigned int __attribute__ ((bitwidth(111))) uint111;\ntypedef unsigned int __attribute__ ((bitwidth(112))) uint112;\ntypedef unsigned int __attribute__ ((bitwidth(113))) uint113;\ntypedef unsigned int __attribute__ ((bitwidth(114))) uint114;\ntypedef unsigned int __attribute__ ((bitwidth(115))) uint115;\ntypedef unsigned int __attribute__ ((bitwidth(116))) uint116;\ntypedef unsigned int __attribute__ ((bitwidth(117))) uint117;\ntypedef unsigned int __attribute__ ((bitwidth(118))) uint118;\ntypedef unsigned int __attribute__ ((bitwidth(119))) uint119;\ntypedef unsigned int __attribute__ ((bitwidth(120))) uint120;\ntypedef unsigned int __attribute__ ((bitwidth(121))) uint121;\ntypedef unsigned int __attribute__ ((bitwidth(122))) uint122;\ntypedef unsigned int __attribute__ ((bitwidth(123))) uint123;\ntypedef unsigned int __attribute__ ((bitwidth(124))) uint124;\ntypedef unsigned int __attribute__ ((bitwidth(125))) uint125;\ntypedef unsigned int __attribute__ ((bitwidth(126))) uint126;\ntypedef unsigned int __attribute__ ((bitwidth(127))) uint127;\ntypedef unsigned int __attribute__ ((bitwidth(128))) uint128;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\ntypedef unsigned int __attribute__ ((bitwidth(129))) uint129;\ntypedef unsigned int __attribute__ ((bitwidth(130))) uint130;\ntypedef unsigned int __attribute__ ((bitwidth(131))) uint131;\ntypedef unsigned int __attribute__ ((bitwidth(132))) uint132;\ntypedef unsigned int __attribute__ ((bitwidth(133))) uint133;\ntypedef unsigned int __attribute__ ((bitwidth(134))) uint134;\ntypedef unsigned int __attribute__ ((bitwidth(135))) uint135;\ntypedef unsigned int __attribute__ ((bitwidth(136))) uint136;\ntypedef unsigned int __attribute__ ((bitwidth(137))) uint137;\ntypedef unsigned int __attribute__ ((bitwidth(138))) uint138;\ntypedef unsigned int __attribute__ ((bitwidth(139))) uint139;\ntypedef unsigned int __attribute__ ((bitwidth(140))) uint140;\ntypedef unsigned int __attribute__ ((bitwidth(141))) uint141;\ntypedef unsigned int __attribute__ ((bitwidth(142))) uint142;\ntypedef unsigned int __attribute__ ((bitwidth(143))) uint143;\ntypedef unsigned int __attribute__ ((bitwidth(144))) uint144;\ntypedef unsigned int __attribute__ ((bitwidth(145))) uint145;\ntypedef unsigned int __attribute__ ((bitwidth(146))) uint146;\ntypedef unsigned int __attribute__ ((bitwidth(147))) uint147;\ntypedef unsigned int __attribute__ ((bitwidth(148))) uint148;\ntypedef unsigned int __attribute__ ((bitwidth(149))) uint149;\ntypedef unsigned int __attribute__ ((bitwidth(150))) uint150;\ntypedef unsigned int __attribute__ ((bitwidth(151))) uint151;\ntypedef unsigned int __attribute__ ((bitwidth(152))) uint152;\ntypedef unsigned int __attribute__ ((bitwidth(153))) uint153;\ntypedef unsigned int __attribute__ ((bitwidth(154))) uint154;\ntypedef unsigned int __attribute__ ((bitwidth(155))) uint155;\ntypedef unsigned int __attribute__ ((bitwidth(156))) uint156;\ntypedef unsigned int __attribute__ ((bitwidth(157))) uint157;\ntypedef unsigned int __attribute__ ((bitwidth(158))) uint158;\ntypedef unsigned int __attribute__ ((bitwidth(159))) uint159;\ntypedef unsigned int __attribute__ ((bitwidth(160))) uint160;\ntypedef unsigned int __attribute__ ((bitwidth(161))) uint161;\ntypedef unsigned int __attribute__ ((bitwidth(162))) uint162;\ntypedef unsigned int __attribute__ ((bitwidth(163))) uint163;\ntypedef unsigned int __attribute__ ((bitwidth(164))) uint164;\ntypedef unsigned int __attribute__ ((bitwidth(165))) uint165;\ntypedef unsigned int __attribute__ ((bitwidth(166))) uint166;\ntypedef unsigned int __attribute__ ((bitwidth(167))) uint167;\ntypedef unsigned int __attribute__ ((bitwidth(168))) uint168;\ntypedef unsigned int __attribute__ ((bitwidth(169))) uint169;\ntypedef unsigned int __attribute__ ((bitwidth(170))) uint170;\ntypedef unsigned int __attribute__ ((bitwidth(171))) uint171;\ntypedef unsigned int __attribute__ ((bitwidth(172))) uint172;\ntypedef unsigned int __attribute__ ((bitwidth(173))) uint173;\ntypedef unsigned int __attribute__ ((bitwidth(174))) uint174;\ntypedef unsigned int __attribute__ ((bitwidth(175))) uint175;\ntypedef unsigned int __attribute__ ((bitwidth(176))) uint176;\ntypedef unsigned int __attribute__ ((bitwidth(177))) uint177;\ntypedef unsigned int __attribute__ ((bitwidth(178))) uint178;\ntypedef unsigned int __attribute__ ((bitwidth(179))) uint179;\ntypedef unsigned int __attribute__ ((bitwidth(180))) uint180;\ntypedef unsigned int __attribute__ ((bitwidth(181))) uint181;\ntypedef unsigned int __attribute__ ((bitwidth(182))) uint182;\ntypedef unsigned int __attribute__ ((bitwidth(183))) uint183;\ntypedef unsigned int __attribute__ ((bitwidth(184))) uint184;\ntypedef unsigned int __attribute__ ((bitwidth(185))) uint185;\ntypedef unsigned int __attribute__ ((bitwidth(186))) uint186;\ntypedef unsigned int __attribute__ ((bitwidth(187))) uint187;\ntypedef unsigned int __attribute__ ((bitwidth(188))) uint188;\ntypedef unsigned int __attribute__ ((bitwidth(189))) uint189;\ntypedef unsigned int __attribute__ ((bitwidth(190))) uint190;\ntypedef unsigned int __attribute__ ((bitwidth(191))) uint191;\ntypedef unsigned int __attribute__ ((bitwidth(192))) uint192;\ntypedef unsigned int __attribute__ ((bitwidth(193))) uint193;\ntypedef unsigned int __attribute__ ((bitwidth(194))) uint194;\ntypedef unsigned int __attribute__ ((bitwidth(195))) uint195;\ntypedef unsigned int __attribute__ ((bitwidth(196))) uint196;\ntypedef unsigned int __attribute__ ((bitwidth(197))) uint197;\ntypedef unsigned int __attribute__ ((bitwidth(198))) uint198;\ntypedef unsigned int __attribute__ ((bitwidth(199))) uint199;\ntypedef unsigned int __attribute__ ((bitwidth(200))) uint200;\ntypedef unsigned int __attribute__ ((bitwidth(201))) uint201;\ntypedef unsigned int __attribute__ ((bitwidth(202))) uint202;\ntypedef unsigned int __attribute__ ((bitwidth(203))) uint203;\ntypedef unsigned int __attribute__ ((bitwidth(204))) uint204;\ntypedef unsigned int __attribute__ ((bitwidth(205))) uint205;\ntypedef unsigned int __attribute__ ((bitwidth(206))) uint206;\ntypedef unsigned int __attribute__ ((bitwidth(207))) uint207;\ntypedef unsigned int __attribute__ ((bitwidth(208))) uint208;\ntypedef unsigned int __attribute__ ((bitwidth(209))) uint209;\ntypedef unsigned int __attribute__ ((bitwidth(210))) uint210;\ntypedef unsigned int __attribute__ ((bitwidth(211))) uint211;\ntypedef unsigned int __attribute__ ((bitwidth(212))) uint212;\ntypedef unsigned int __attribute__ ((bitwidth(213))) uint213;\ntypedef unsigned int __attribute__ ((bitwidth(214))) uint214;\ntypedef unsigned int __attribute__ ((bitwidth(215))) uint215;\ntypedef unsigned int __attribute__ ((bitwidth(216))) uint216;\ntypedef unsigned int __attribute__ ((bitwidth(217))) uint217;\ntypedef unsigned int __attribute__ ((bitwidth(218))) uint218;\ntypedef unsigned int __attribute__ ((bitwidth(219))) uint219;\ntypedef unsigned int __attribute__ ((bitwidth(220))) uint220;\ntypedef unsigned int __attribute__ ((bitwidth(221))) uint221;\ntypedef unsigned int __attribute__ ((bitwidth(222))) uint222;\ntypedef unsigned int __attribute__ ((bitwidth(223))) uint223;\ntypedef unsigned int __attribute__ ((bitwidth(224))) uint224;\ntypedef unsigned int __attribute__ ((bitwidth(225))) uint225;\ntypedef unsigned int __attribute__ ((bitwidth(226))) uint226;\ntypedef unsigned int __attribute__ ((bitwidth(227))) uint227;\ntypedef unsigned int __attribute__ ((bitwidth(228))) uint228;\ntypedef unsigned int __attribute__ ((bitwidth(229))) uint229;\ntypedef unsigned int __attribute__ ((bitwidth(230))) uint230;\ntypedef unsigned int __attribute__ ((bitwidth(231))) uint231;\ntypedef unsigned int __attribute__ ((bitwidth(232))) uint232;\ntypedef unsigned int __attribute__ ((bitwidth(233))) uint233;\ntypedef unsigned int __attribute__ ((bitwidth(234))) uint234;\ntypedef unsigned int __attribute__ ((bitwidth(235))) uint235;\ntypedef unsigned int __attribute__ ((bitwidth(236))) uint236;\ntypedef unsigned int __attribute__ ((bitwidth(237))) uint237;\ntypedef unsigned int __attribute__ ((bitwidth(238))) uint238;\ntypedef unsigned int __attribute__ ((bitwidth(239))) uint239;\ntypedef unsigned int __attribute__ ((bitwidth(240))) uint240;\ntypedef unsigned int __attribute__ ((bitwidth(241))) uint241;\ntypedef unsigned int __attribute__ ((bitwidth(242))) uint242;\ntypedef unsigned int __attribute__ ((bitwidth(243))) uint243;\ntypedef unsigned int __attribute__ ((bitwidth(244))) uint244;\ntypedef unsigned int __attribute__ ((bitwidth(245))) uint245;\ntypedef unsigned int __attribute__ ((bitwidth(246))) uint246;\ntypedef unsigned int __attribute__ ((bitwidth(247))) uint247;\ntypedef unsigned int __attribute__ ((bitwidth(248))) uint248;\ntypedef unsigned int __attribute__ ((bitwidth(249))) uint249;\ntypedef unsigned int __attribute__ ((bitwidth(250))) uint250;\ntypedef unsigned int __attribute__ ((bitwidth(251))) uint251;\ntypedef unsigned int __attribute__ ((bitwidth(252))) uint252;\ntypedef unsigned int __attribute__ ((bitwidth(253))) uint253;\ntypedef unsigned int __attribute__ ((bitwidth(254))) uint254;\ntypedef unsigned int __attribute__ ((bitwidth(255))) uint255;\ntypedef unsigned int __attribute__ ((bitwidth(256))) uint256;\ntypedef unsigned int __attribute__ ((bitwidth(257))) uint257;\ntypedef unsigned int __attribute__ ((bitwidth(258))) uint258;\ntypedef unsigned int __attribute__ ((bitwidth(259))) uint259;\ntypedef unsigned int __attribute__ ((bitwidth(260))) uint260;\ntypedef unsigned int __attribute__ ((bitwidth(261))) uint261;\ntypedef unsigned int __attribute__ ((bitwidth(262))) uint262;\ntypedef unsigned int __attribute__ ((bitwidth(263))) uint263;\ntypedef unsigned int __attribute__ ((bitwidth(264))) uint264;\ntypedef unsigned int __attribute__ ((bitwidth(265))) uint265;\ntypedef unsigned int __attribute__ ((bitwidth(266))) uint266;\ntypedef unsigned int __attribute__ ((bitwidth(267))) uint267;\ntypedef unsigned int __attribute__ ((bitwidth(268))) uint268;\ntypedef unsigned int __attribute__ ((bitwidth(269))) uint269;\ntypedef unsigned int __attribute__ ((bitwidth(270))) uint270;\ntypedef unsigned int __attribute__ ((bitwidth(271))) uint271;\ntypedef unsigned int __attribute__ ((bitwidth(272))) uint272;\ntypedef unsigned int __attribute__ ((bitwidth(273))) uint273;\ntypedef unsigned int __attribute__ ((bitwidth(274))) uint274;\ntypedef unsigned int __attribute__ ((bitwidth(275))) uint275;\ntypedef unsigned int __attribute__ ((bitwidth(276))) uint276;\ntypedef unsigned int __attribute__ ((bitwidth(277))) uint277;\ntypedef unsigned int __attribute__ ((bitwidth(278))) uint278;\ntypedef unsigned int __attribute__ ((bitwidth(279))) uint279;\ntypedef unsigned int __attribute__ ((bitwidth(280))) uint280;\ntypedef unsigned int __attribute__ ((bitwidth(281))) uint281;\ntypedef unsigned int __attribute__ ((bitwidth(282))) uint282;\ntypedef unsigned int __attribute__ ((bitwidth(283))) uint283;\ntypedef unsigned int __attribute__ ((bitwidth(284))) uint284;\ntypedef unsigned int __attribute__ ((bitwidth(285))) uint285;\ntypedef unsigned int __attribute__ ((bitwidth(286))) uint286;\ntypedef unsigned int __attribute__ ((bitwidth(287))) uint287;\ntypedef unsigned int __attribute__ ((bitwidth(288))) uint288;\ntypedef unsigned int __attribute__ ((bitwidth(289))) uint289;\ntypedef unsigned int __attribute__ ((bitwidth(290))) uint290;\ntypedef unsigned int __attribute__ ((bitwidth(291))) uint291;\ntypedef unsigned int __attribute__ ((bitwidth(292))) uint292;\ntypedef unsigned int __attribute__ ((bitwidth(293))) uint293;\ntypedef unsigned int __attribute__ ((bitwidth(294))) uint294;\ntypedef unsigned int __attribute__ ((bitwidth(295))) uint295;\ntypedef unsigned int __attribute__ ((bitwidth(296))) uint296;\ntypedef unsigned int __attribute__ ((bitwidth(297))) uint297;\ntypedef unsigned int __attribute__ ((bitwidth(298))) uint298;\ntypedef unsigned int __attribute__ ((bitwidth(299))) uint299;\ntypedef unsigned int __attribute__ ((bitwidth(300))) uint300;\ntypedef unsigned int __attribute__ ((bitwidth(301))) uint301;\ntypedef unsigned int __attribute__ ((bitwidth(302))) uint302;\ntypedef unsigned int __attribute__ ((bitwidth(303))) uint303;\ntypedef unsigned int __attribute__ ((bitwidth(304))) uint304;\ntypedef unsigned int __attribute__ ((bitwidth(305))) uint305;\ntypedef unsigned int __attribute__ ((bitwidth(306))) uint306;\ntypedef unsigned int __attribute__ ((bitwidth(307))) uint307;\ntypedef unsigned int __attribute__ ((bitwidth(308))) uint308;\ntypedef unsigned int __attribute__ ((bitwidth(309))) uint309;\ntypedef unsigned int __attribute__ ((bitwidth(310))) uint310;\ntypedef unsigned int __attribute__ ((bitwidth(311))) uint311;\ntypedef unsigned int __attribute__ ((bitwidth(312))) uint312;\ntypedef unsigned int __attribute__ ((bitwidth(313))) uint313;\ntypedef unsigned int __attribute__ ((bitwidth(314))) uint314;\ntypedef unsigned int __attribute__ ((bitwidth(315))) uint315;\ntypedef unsigned int __attribute__ ((bitwidth(316))) uint316;\ntypedef unsigned int __attribute__ ((bitwidth(317))) uint317;\ntypedef unsigned int __attribute__ ((bitwidth(318))) uint318;\ntypedef unsigned int __attribute__ ((bitwidth(319))) uint319;\ntypedef unsigned int __attribute__ ((bitwidth(320))) uint320;\ntypedef unsigned int __attribute__ ((bitwidth(321))) uint321;\ntypedef unsigned int __attribute__ ((bitwidth(322))) uint322;\ntypedef unsigned int __attribute__ ((bitwidth(323))) uint323;\ntypedef unsigned int __attribute__ ((bitwidth(324))) uint324;\ntypedef unsigned int __attribute__ ((bitwidth(325))) uint325;\ntypedef unsigned int __attribute__ ((bitwidth(326))) uint326;\ntypedef unsigned int __attribute__ ((bitwidth(327))) uint327;\ntypedef unsigned int __attribute__ ((bitwidth(328))) uint328;\ntypedef unsigned int __attribute__ ((bitwidth(329))) uint329;\ntypedef unsigned int __attribute__ ((bitwidth(330))) uint330;\ntypedef unsigned int __attribute__ ((bitwidth(331))) uint331;\ntypedef unsigned int __attribute__ ((bitwidth(332))) uint332;\ntypedef unsigned int __attribute__ ((bitwidth(333))) uint333;\ntypedef unsigned int __attribute__ ((bitwidth(334))) uint334;\ntypedef unsigned int __attribute__ ((bitwidth(335))) uint335;\ntypedef unsigned int __attribute__ ((bitwidth(336))) uint336;\ntypedef unsigned int __attribute__ ((bitwidth(337))) uint337;\ntypedef unsigned int __attribute__ ((bitwidth(338))) uint338;\ntypedef unsigned int __attribute__ ((bitwidth(339))) uint339;\ntypedef unsigned int __attribute__ ((bitwidth(340))) uint340;\ntypedef unsigned int __attribute__ ((bitwidth(341))) uint341;\ntypedef unsigned int __attribute__ ((bitwidth(342))) uint342;\ntypedef unsigned int __attribute__ ((bitwidth(343))) uint343;\ntypedef unsigned int __attribute__ ((bitwidth(344))) uint344;\ntypedef unsigned int __attribute__ ((bitwidth(345))) uint345;\ntypedef unsigned int __attribute__ ((bitwidth(346))) uint346;\ntypedef unsigned int __attribute__ ((bitwidth(347))) uint347;\ntypedef unsigned int __attribute__ ((bitwidth(348))) uint348;\ntypedef unsigned int __attribute__ ((bitwidth(349))) uint349;\ntypedef unsigned int __attribute__ ((bitwidth(350))) uint350;\ntypedef unsigned int __attribute__ ((bitwidth(351))) uint351;\ntypedef unsigned int __attribute__ ((bitwidth(352))) uint352;\ntypedef unsigned int __attribute__ ((bitwidth(353))) uint353;\ntypedef unsigned int __attribute__ ((bitwidth(354))) uint354;\ntypedef unsigned int __attribute__ ((bitwidth(355))) uint355;\ntypedef unsigned int __attribute__ ((bitwidth(356))) uint356;\ntypedef unsigned int __attribute__ ((bitwidth(357))) uint357;\ntypedef unsigned int __attribute__ ((bitwidth(358))) uint358;\ntypedef unsigned int __attribute__ ((bitwidth(359))) uint359;\ntypedef unsigned int __attribute__ ((bitwidth(360))) uint360;\ntypedef unsigned int __attribute__ ((bitwidth(361))) uint361;\ntypedef unsigned int __attribute__ ((bitwidth(362))) uint362;\ntypedef unsigned int __attribute__ ((bitwidth(363))) uint363;\ntypedef unsigned int __attribute__ ((bitwidth(364))) uint364;\ntypedef unsigned int __attribute__ ((bitwidth(365))) uint365;\ntypedef unsigned int __attribute__ ((bitwidth(366))) uint366;\ntypedef unsigned int __attribute__ ((bitwidth(367))) uint367;\ntypedef unsigned int __attribute__ ((bitwidth(368))) uint368;\ntypedef unsigned int __attribute__ ((bitwidth(369))) uint369;\ntypedef unsigned int __attribute__ ((bitwidth(370))) uint370;\ntypedef unsigned int __attribute__ ((bitwidth(371))) uint371;\ntypedef unsigned int __attribute__ ((bitwidth(372))) uint372;\ntypedef unsigned int __attribute__ ((bitwidth(373))) uint373;\ntypedef unsigned int __attribute__ ((bitwidth(374))) uint374;\ntypedef unsigned int __attribute__ ((bitwidth(375))) uint375;\ntypedef unsigned int __attribute__ ((bitwidth(376))) uint376;\ntypedef unsigned int __attribute__ ((bitwidth(377))) uint377;\ntypedef unsigned int __attribute__ ((bitwidth(378))) uint378;\ntypedef unsigned int __attribute__ ((bitwidth(379))) uint379;\ntypedef unsigned int __attribute__ ((bitwidth(380))) uint380;\ntypedef unsigned int __attribute__ ((bitwidth(381))) uint381;\ntypedef unsigned int __attribute__ ((bitwidth(382))) uint382;\ntypedef unsigned int __attribute__ ((bitwidth(383))) uint383;\ntypedef unsigned int __attribute__ ((bitwidth(384))) uint384;\ntypedef unsigned int __attribute__ ((bitwidth(385))) uint385;\ntypedef unsigned int __attribute__ ((bitwidth(386))) uint386;\ntypedef unsigned int __attribute__ ((bitwidth(387))) uint387;\ntypedef unsigned int __attribute__ ((bitwidth(388))) uint388;\ntypedef unsigned int __attribute__ ((bitwidth(389))) uint389;\ntypedef unsigned int __attribute__ ((bitwidth(390))) uint390;\ntypedef unsigned int __attribute__ ((bitwidth(391))) uint391;\ntypedef unsigned int __attribute__ ((bitwidth(392))) uint392;\ntypedef unsigned int __attribute__ ((bitwidth(393))) uint393;\ntypedef unsigned int __attribute__ ((bitwidth(394))) uint394;\ntypedef unsigned int __attribute__ ((bitwidth(395))) uint395;\ntypedef unsigned int __attribute__ ((bitwidth(396))) uint396;\ntypedef unsigned int __attribute__ ((bitwidth(397))) uint397;\ntypedef unsigned int __attribute__ ((bitwidth(398))) uint398;\ntypedef unsigned int __attribute__ ((bitwidth(399))) uint399;\ntypedef unsigned int __attribute__ ((bitwidth(400))) uint400;\ntypedef unsigned int __attribute__ ((bitwidth(401))) uint401;\ntypedef unsigned int __attribute__ ((bitwidth(402))) uint402;\ntypedef unsigned int __attribute__ ((bitwidth(403))) uint403;\ntypedef unsigned int __attribute__ ((bitwidth(404))) uint404;\ntypedef unsigned int __attribute__ ((bitwidth(405))) uint405;\ntypedef unsigned int __attribute__ ((bitwidth(406))) uint406;\ntypedef unsigned int __attribute__ ((bitwidth(407))) uint407;\ntypedef unsigned int __attribute__ ((bitwidth(408))) uint408;\ntypedef unsigned int __attribute__ ((bitwidth(409))) uint409;\ntypedef unsigned int __attribute__ ((bitwidth(410))) uint410;\ntypedef unsigned int __attribute__ ((bitwidth(411))) uint411;\ntypedef unsigned int __attribute__ ((bitwidth(412))) uint412;\ntypedef unsigned int __attribute__ ((bitwidth(413))) uint413;\ntypedef unsigned int __attribute__ ((bitwidth(414))) uint414;\ntypedef unsigned int __attribute__ ((bitwidth(415))) uint415;\ntypedef unsigned int __attribute__ ((bitwidth(416))) uint416;\ntypedef unsigned int __attribute__ ((bitwidth(417))) uint417;\ntypedef unsigned int __attribute__ ((bitwidth(418))) uint418;\ntypedef unsigned int __attribute__ ((bitwidth(419))) uint419;\ntypedef unsigned int __attribute__ ((bitwidth(420))) uint420;\ntypedef unsigned int __attribute__ ((bitwidth(421))) uint421;\ntypedef unsigned int __attribute__ ((bitwidth(422))) uint422;\ntypedef unsigned int __attribute__ ((bitwidth(423))) uint423;\ntypedef unsigned int __attribute__ ((bitwidth(424))) uint424;\ntypedef unsigned int __attribute__ ((bitwidth(425))) uint425;\ntypedef unsigned int __attribute__ ((bitwidth(426))) uint426;\ntypedef unsigned int __attribute__ ((bitwidth(427))) uint427;\ntypedef unsigned int __attribute__ ((bitwidth(428))) uint428;\ntypedef unsigned int __attribute__ ((bitwidth(429))) uint429;\ntypedef unsigned int __attribute__ ((bitwidth(430))) uint430;\ntypedef unsigned int __attribute__ ((bitwidth(431))) uint431;\ntypedef unsigned int __attribute__ ((bitwidth(432))) uint432;\ntypedef unsigned int __attribute__ ((bitwidth(433))) uint433;\ntypedef unsigned int __attribute__ ((bitwidth(434))) uint434;\ntypedef unsigned int __attribute__ ((bitwidth(435))) uint435;\ntypedef unsigned int __attribute__ ((bitwidth(436))) uint436;\ntypedef unsigned int __attribute__ ((bitwidth(437))) uint437;\ntypedef unsigned int __attribute__ ((bitwidth(438))) uint438;\ntypedef unsigned int __attribute__ ((bitwidth(439))) uint439;\ntypedef unsigned int __attribute__ ((bitwidth(440))) uint440;\ntypedef unsigned int __attribute__ ((bitwidth(441))) uint441;\ntypedef unsigned int __attribute__ ((bitwidth(442))) uint442;\ntypedef unsigned int __attribute__ ((bitwidth(443))) uint443;\ntypedef unsigned int __attribute__ ((bitwidth(444))) uint444;\ntypedef unsigned int __attribute__ ((bitwidth(445))) uint445;\ntypedef unsigned int __attribute__ ((bitwidth(446))) uint446;\ntypedef unsigned int __attribute__ ((bitwidth(447))) uint447;\ntypedef unsigned int __attribute__ ((bitwidth(448))) uint448;\ntypedef unsigned int __attribute__ ((bitwidth(449))) uint449;\ntypedef unsigned int __attribute__ ((bitwidth(450))) uint450;\ntypedef unsigned int __attribute__ ((bitwidth(451))) uint451;\ntypedef unsigned int __attribute__ ((bitwidth(452))) uint452;\ntypedef unsigned int __attribute__ ((bitwidth(453))) uint453;\ntypedef unsigned int __attribute__ ((bitwidth(454))) uint454;\ntypedef unsigned int __attribute__ ((bitwidth(455))) uint455;\ntypedef unsigned int __attribute__ ((bitwidth(456))) uint456;\ntypedef unsigned int __attribute__ ((bitwidth(457))) uint457;\ntypedef unsigned int __attribute__ ((bitwidth(458))) uint458;\ntypedef unsigned int __attribute__ ((bitwidth(459))) uint459;\ntypedef unsigned int __attribute__ ((bitwidth(460))) uint460;\ntypedef unsigned int __attribute__ ((bitwidth(461))) uint461;\ntypedef unsigned int __attribute__ ((bitwidth(462))) uint462;\ntypedef unsigned int __attribute__ ((bitwidth(463))) uint463;\ntypedef unsigned int __attribute__ ((bitwidth(464))) uint464;\ntypedef unsigned int __attribute__ ((bitwidth(465))) uint465;\ntypedef unsigned int __attribute__ ((bitwidth(466))) uint466;\ntypedef unsigned int __attribute__ ((bitwidth(467))) uint467;\ntypedef unsigned int __attribute__ ((bitwidth(468))) uint468;\ntypedef unsigned int __attribute__ ((bitwidth(469))) uint469;\ntypedef unsigned int __attribute__ ((bitwidth(470))) uint470;\ntypedef unsigned int __attribute__ ((bitwidth(471))) uint471;\ntypedef unsigned int __attribute__ ((bitwidth(472))) uint472;\ntypedef unsigned int __attribute__ ((bitwidth(473))) uint473;\ntypedef unsigned int __attribute__ ((bitwidth(474))) uint474;\ntypedef unsigned int __attribute__ ((bitwidth(475))) uint475;\ntypedef unsigned int __attribute__ ((bitwidth(476))) uint476;\ntypedef unsigned int __attribute__ ((bitwidth(477))) uint477;\ntypedef unsigned int __attribute__ ((bitwidth(478))) uint478;\ntypedef unsigned int __attribute__ ((bitwidth(479))) uint479;\ntypedef unsigned int __attribute__ ((bitwidth(480))) uint480;\ntypedef unsigned int __attribute__ ((bitwidth(481))) uint481;\ntypedef unsigned int __attribute__ ((bitwidth(482))) uint482;\ntypedef unsigned int __attribute__ ((bitwidth(483))) uint483;\ntypedef unsigned int __attribute__ ((bitwidth(484))) uint484;\ntypedef unsigned int __attribute__ ((bitwidth(485))) uint485;\ntypedef unsigned int __attribute__ ((bitwidth(486))) uint486;\ntypedef unsigned int __attribute__ ((bitwidth(487))) uint487;\ntypedef unsigned int __attribute__ ((bitwidth(488))) uint488;\ntypedef unsigned int __attribute__ ((bitwidth(489))) uint489;\ntypedef unsigned int __attribute__ ((bitwidth(490))) uint490;\ntypedef unsigned int __attribute__ ((bitwidth(491))) uint491;\ntypedef unsigned int __attribute__ ((bitwidth(492))) uint492;\ntypedef unsigned int __attribute__ ((bitwidth(493))) uint493;\ntypedef unsigned int __attribute__ ((bitwidth(494))) uint494;\ntypedef unsigned int __attribute__ ((bitwidth(495))) uint495;\ntypedef unsigned int __attribute__ ((bitwidth(496))) uint496;\ntypedef unsigned int __attribute__ ((bitwidth(497))) uint497;\ntypedef unsigned int __attribute__ ((bitwidth(498))) uint498;\ntypedef unsigned int __attribute__ ((bitwidth(499))) uint499;\ntypedef unsigned int __attribute__ ((bitwidth(500))) uint500;\ntypedef unsigned int __attribute__ ((bitwidth(501))) uint501;\ntypedef unsigned int __attribute__ ((bitwidth(502))) uint502;\ntypedef unsigned int __attribute__ ((bitwidth(503))) uint503;\ntypedef unsigned int __attribute__ ((bitwidth(504))) uint504;\ntypedef unsigned int __attribute__ ((bitwidth(505))) uint505;\ntypedef unsigned int __attribute__ ((bitwidth(506))) uint506;\ntypedef unsigned int __attribute__ ((bitwidth(507))) uint507;\ntypedef unsigned int __attribute__ ((bitwidth(508))) uint508;\ntypedef unsigned int __attribute__ ((bitwidth(509))) uint509;\ntypedef unsigned int __attribute__ ((bitwidth(510))) uint510;\ntypedef unsigned int __attribute__ ((bitwidth(511))) uint511;\ntypedef unsigned int __attribute__ ((bitwidth(512))) uint512;\ntypedef unsigned int __attribute__ ((bitwidth(513))) uint513;\ntypedef unsigned int __attribute__ ((bitwidth(514))) uint514;\ntypedef unsigned int __attribute__ ((bitwidth(515))) uint515;\ntypedef unsigned int __attribute__ ((bitwidth(516))) uint516;\ntypedef unsigned int __attribute__ ((bitwidth(517))) uint517;\ntypedef unsigned int __attribute__ ((bitwidth(518))) uint518;\ntypedef unsigned int __attribute__ ((bitwidth(519))) uint519;\ntypedef unsigned int __attribute__ ((bitwidth(520))) uint520;\ntypedef unsigned int __attribute__ ((bitwidth(521))) uint521;\ntypedef unsigned int __attribute__ ((bitwidth(522))) uint522;\ntypedef unsigned int __attribute__ ((bitwidth(523))) uint523;\ntypedef unsigned int __attribute__ ((bitwidth(524))) uint524;\ntypedef unsigned int __attribute__ ((bitwidth(525))) uint525;\ntypedef unsigned int __attribute__ ((bitwidth(526))) uint526;\ntypedef unsigned int __attribute__ ((bitwidth(527))) uint527;\ntypedef unsigned int __attribute__ ((bitwidth(528))) uint528;\ntypedef unsigned int __attribute__ ((bitwidth(529))) uint529;\ntypedef unsigned int __attribute__ ((bitwidth(530))) uint530;\ntypedef unsigned int __attribute__ ((bitwidth(531))) uint531;\ntypedef unsigned int __attribute__ ((bitwidth(532))) uint532;\ntypedef unsigned int __attribute__ ((bitwidth(533))) uint533;\ntypedef unsigned int __attribute__ ((bitwidth(534))) uint534;\ntypedef unsigned int __attribute__ ((bitwidth(535))) uint535;\ntypedef unsigned int __attribute__ ((bitwidth(536))) uint536;\ntypedef unsigned int __attribute__ ((bitwidth(537))) uint537;\ntypedef unsigned int __attribute__ ((bitwidth(538))) uint538;\ntypedef unsigned int __attribute__ ((bitwidth(539))) uint539;\ntypedef unsigned int __attribute__ ((bitwidth(540))) uint540;\ntypedef unsigned int __attribute__ ((bitwidth(541))) uint541;\ntypedef unsigned int __attribute__ ((bitwidth(542))) uint542;\ntypedef unsigned int __attribute__ ((bitwidth(543))) uint543;\ntypedef unsigned int __attribute__ ((bitwidth(544))) uint544;\ntypedef unsigned int __attribute__ ((bitwidth(545))) uint545;\ntypedef unsigned int __attribute__ ((bitwidth(546))) uint546;\ntypedef unsigned int __attribute__ ((bitwidth(547))) uint547;\ntypedef unsigned int __attribute__ ((bitwidth(548))) uint548;\ntypedef unsigned int __attribute__ ((bitwidth(549))) uint549;\ntypedef unsigned int __attribute__ ((bitwidth(550))) uint550;\ntypedef unsigned int __attribute__ ((bitwidth(551))) uint551;\ntypedef unsigned int __attribute__ ((bitwidth(552))) uint552;\ntypedef unsigned int __attribute__ ((bitwidth(553))) uint553;\ntypedef unsigned int __attribute__ ((bitwidth(554))) uint554;\ntypedef unsigned int __attribute__ ((bitwidth(555))) uint555;\ntypedef unsigned int __attribute__ ((bitwidth(556))) uint556;\ntypedef unsigned int __attribute__ ((bitwidth(557))) uint557;\ntypedef unsigned int __attribute__ ((bitwidth(558))) uint558;\ntypedef unsigned int __attribute__ ((bitwidth(559))) uint559;\ntypedef unsigned int __attribute__ ((bitwidth(560))) uint560;\ntypedef unsigned int __attribute__ ((bitwidth(561))) uint561;\ntypedef unsigned int __attribute__ ((bitwidth(562))) uint562;\ntypedef unsigned int __attribute__ ((bitwidth(563))) uint563;\ntypedef unsigned int __attribute__ ((bitwidth(564))) uint564;\ntypedef unsigned int __attribute__ ((bitwidth(565))) uint565;\ntypedef unsigned int __attribute__ ((bitwidth(566))) uint566;\ntypedef unsigned int __attribute__ ((bitwidth(567))) uint567;\ntypedef unsigned int __attribute__ ((bitwidth(568))) uint568;\ntypedef unsigned int __attribute__ ((bitwidth(569))) uint569;\ntypedef unsigned int __attribute__ ((bitwidth(570))) uint570;\ntypedef unsigned int __attribute__ ((bitwidth(571))) uint571;\ntypedef unsigned int __attribute__ ((bitwidth(572))) uint572;\ntypedef unsigned int __attribute__ ((bitwidth(573))) uint573;\ntypedef unsigned int __attribute__ ((bitwidth(574))) uint574;\ntypedef unsigned int __attribute__ ((bitwidth(575))) uint575;\ntypedef unsigned int __attribute__ ((bitwidth(576))) uint576;\ntypedef unsigned int __attribute__ ((bitwidth(577))) uint577;\ntypedef unsigned int __attribute__ ((bitwidth(578))) uint578;\ntypedef unsigned int __attribute__ ((bitwidth(579))) uint579;\ntypedef unsigned int __attribute__ ((bitwidth(580))) uint580;\ntypedef unsigned int __attribute__ ((bitwidth(581))) uint581;\ntypedef unsigned int __attribute__ ((bitwidth(582))) uint582;\ntypedef unsigned int __attribute__ ((bitwidth(583))) uint583;\ntypedef unsigned int __attribute__ ((bitwidth(584))) uint584;\ntypedef unsigned int __attribute__ ((bitwidth(585))) uint585;\ntypedef unsigned int __attribute__ ((bitwidth(586))) uint586;\ntypedef unsigned int __attribute__ ((bitwidth(587))) uint587;\ntypedef unsigned int __attribute__ ((bitwidth(588))) uint588;\ntypedef unsigned int __attribute__ ((bitwidth(589))) uint589;\ntypedef unsigned int __attribute__ ((bitwidth(590))) uint590;\ntypedef unsigned int __attribute__ ((bitwidth(591))) uint591;\ntypedef unsigned int __attribute__ ((bitwidth(592))) uint592;\ntypedef unsigned int __attribute__ ((bitwidth(593))) uint593;\ntypedef unsigned int __attribute__ ((bitwidth(594))) uint594;\ntypedef unsigned int __attribute__ ((bitwidth(595))) uint595;\ntypedef unsigned int __attribute__ ((bitwidth(596))) uint596;\ntypedef unsigned int __attribute__ ((bitwidth(597))) uint597;\ntypedef unsigned int __attribute__ ((bitwidth(598))) uint598;\ntypedef unsigned int __attribute__ ((bitwidth(599))) uint599;\ntypedef unsigned int __attribute__ ((bitwidth(600))) uint600;\ntypedef unsigned int __attribute__ ((bitwidth(601))) uint601;\ntypedef unsigned int __attribute__ ((bitwidth(602))) uint602;\ntypedef unsigned int __attribute__ ((bitwidth(603))) uint603;\ntypedef unsigned int __attribute__ ((bitwidth(604))) uint604;\ntypedef unsigned int __attribute__ ((bitwidth(605))) uint605;\ntypedef unsigned int __attribute__ ((bitwidth(606))) uint606;\ntypedef unsigned int __attribute__ ((bitwidth(607))) uint607;\ntypedef unsigned int __attribute__ ((bitwidth(608))) uint608;\ntypedef unsigned int __attribute__ ((bitwidth(609))) uint609;\ntypedef unsigned int __attribute__ ((bitwidth(610))) uint610;\ntypedef unsigned int __attribute__ ((bitwidth(611))) uint611;\ntypedef unsigned int __attribute__ ((bitwidth(612))) uint612;\ntypedef unsigned int __attribute__ ((bitwidth(613))) uint613;\ntypedef unsigned int __attribute__ ((bitwidth(614))) uint614;\ntypedef unsigned int __attribute__ ((bitwidth(615))) uint615;\ntypedef unsigned int __attribute__ ((bitwidth(616))) uint616;\ntypedef unsigned int __attribute__ ((bitwidth(617))) uint617;\ntypedef unsigned int __attribute__ ((bitwidth(618))) uint618;\ntypedef unsigned int __attribute__ ((bitwidth(619))) uint619;\ntypedef unsigned int __attribute__ ((bitwidth(620))) uint620;\ntypedef unsigned int __attribute__ ((bitwidth(621))) uint621;\ntypedef unsigned int __attribute__ ((bitwidth(622))) uint622;\ntypedef unsigned int __attribute__ ((bitwidth(623))) uint623;\ntypedef unsigned int __attribute__ ((bitwidth(624))) uint624;\ntypedef unsigned int __attribute__ ((bitwidth(625))) uint625;\ntypedef unsigned int __attribute__ ((bitwidth(626))) uint626;\ntypedef unsigned int __attribute__ ((bitwidth(627))) uint627;\ntypedef unsigned int __attribute__ ((bitwidth(628))) uint628;\ntypedef unsigned int __attribute__ ((bitwidth(629))) uint629;\ntypedef unsigned int __attribute__ ((bitwidth(630))) uint630;\ntypedef unsigned int __attribute__ ((bitwidth(631))) uint631;\ntypedef unsigned int __attribute__ ((bitwidth(632))) uint632;\ntypedef unsigned int __attribute__ ((bitwidth(633))) uint633;\ntypedef unsigned int __attribute__ ((bitwidth(634))) uint634;\ntypedef unsigned int __attribute__ ((bitwidth(635))) uint635;\ntypedef unsigned int __attribute__ ((bitwidth(636))) uint636;\ntypedef unsigned int __attribute__ ((bitwidth(637))) uint637;\ntypedef unsigned int __attribute__ ((bitwidth(638))) uint638;\ntypedef unsigned int __attribute__ ((bitwidth(639))) uint639;\ntypedef unsigned int __attribute__ ((bitwidth(640))) uint640;\ntypedef unsigned int __attribute__ ((bitwidth(641))) uint641;\ntypedef unsigned int __attribute__ ((bitwidth(642))) uint642;\ntypedef unsigned int __attribute__ ((bitwidth(643))) uint643;\ntypedef unsigned int __attribute__ ((bitwidth(644))) uint644;\ntypedef unsigned int __attribute__ ((bitwidth(645))) uint645;\ntypedef unsigned int __attribute__ ((bitwidth(646))) uint646;\ntypedef unsigned int __attribute__ ((bitwidth(647))) uint647;\ntypedef unsigned int __attribute__ ((bitwidth(648))) uint648;\ntypedef unsigned int __attribute__ ((bitwidth(649))) uint649;\ntypedef unsigned int __attribute__ ((bitwidth(650))) uint650;\ntypedef unsigned int __attribute__ ((bitwidth(651))) uint651;\ntypedef unsigned int __attribute__ ((bitwidth(652))) uint652;\ntypedef unsigned int __attribute__ ((bitwidth(653))) uint653;\ntypedef unsigned int __attribute__ ((bitwidth(654))) uint654;\ntypedef unsigned int __attribute__ ((bitwidth(655))) uint655;\ntypedef unsigned int __attribute__ ((bitwidth(656))) uint656;\ntypedef unsigned int __attribute__ ((bitwidth(657))) uint657;\ntypedef unsigned int __attribute__ ((bitwidth(658))) uint658;\ntypedef unsigned int __attribute__ ((bitwidth(659))) uint659;\ntypedef unsigned int __attribute__ ((bitwidth(660))) uint660;\ntypedef unsigned int __attribute__ ((bitwidth(661))) uint661;\ntypedef unsigned int __attribute__ ((bitwidth(662))) uint662;\ntypedef unsigned int __attribute__ ((bitwidth(663))) uint663;\ntypedef unsigned int __attribute__ ((bitwidth(664))) uint664;\ntypedef unsigned int __attribute__ ((bitwidth(665))) uint665;\ntypedef unsigned int __attribute__ ((bitwidth(666))) uint666;\ntypedef unsigned int __attribute__ ((bitwidth(667))) uint667;\ntypedef unsigned int __attribute__ ((bitwidth(668))) uint668;\ntypedef unsigned int __attribute__ ((bitwidth(669))) uint669;\ntypedef unsigned int __attribute__ ((bitwidth(670))) uint670;\ntypedef unsigned int __attribute__ ((bitwidth(671))) uint671;\ntypedef unsigned int __attribute__ ((bitwidth(672))) uint672;\ntypedef unsigned int __attribute__ ((bitwidth(673))) uint673;\ntypedef unsigned int __attribute__ ((bitwidth(674))) uint674;\ntypedef unsigned int __attribute__ ((bitwidth(675))) uint675;\ntypedef unsigned int __attribute__ ((bitwidth(676))) uint676;\ntypedef unsigned int __attribute__ ((bitwidth(677))) uint677;\ntypedef unsigned int __attribute__ ((bitwidth(678))) uint678;\ntypedef unsigned int __attribute__ ((bitwidth(679))) uint679;\ntypedef unsigned int __attribute__ ((bitwidth(680))) uint680;\ntypedef unsigned int __attribute__ ((bitwidth(681))) uint681;\ntypedef unsigned int __attribute__ ((bitwidth(682))) uint682;\ntypedef unsigned int __attribute__ ((bitwidth(683))) uint683;\ntypedef unsigned int __attribute__ ((bitwidth(684))) uint684;\ntypedef unsigned int __attribute__ ((bitwidth(685))) uint685;\ntypedef unsigned int __attribute__ ((bitwidth(686))) uint686;\ntypedef unsigned int __attribute__ ((bitwidth(687))) uint687;\ntypedef unsigned int __attribute__ ((bitwidth(688))) uint688;\ntypedef unsigned int __attribute__ ((bitwidth(689))) uint689;\ntypedef unsigned int __attribute__ ((bitwidth(690))) uint690;\ntypedef unsigned int __attribute__ ((bitwidth(691))) uint691;\ntypedef unsigned int __attribute__ ((bitwidth(692))) uint692;\ntypedef unsigned int __attribute__ ((bitwidth(693))) uint693;\ntypedef unsigned int __attribute__ ((bitwidth(694))) uint694;\ntypedef unsigned int __attribute__ ((bitwidth(695))) uint695;\ntypedef unsigned int __attribute__ ((bitwidth(696))) uint696;\ntypedef unsigned int __attribute__ ((bitwidth(697))) uint697;\ntypedef unsigned int __attribute__ ((bitwidth(698))) uint698;\ntypedef unsigned int __attribute__ ((bitwidth(699))) uint699;\ntypedef unsigned int __attribute__ ((bitwidth(700))) uint700;\ntypedef unsigned int __attribute__ ((bitwidth(701))) uint701;\ntypedef unsigned int __attribute__ ((bitwidth(702))) uint702;\ntypedef unsigned int __attribute__ ((bitwidth(703))) uint703;\ntypedef unsigned int __attribute__ ((bitwidth(704))) uint704;\ntypedef unsigned int __attribute__ ((bitwidth(705))) uint705;\ntypedef unsigned int __attribute__ ((bitwidth(706))) uint706;\ntypedef unsigned int __attribute__ ((bitwidth(707))) uint707;\ntypedef unsigned int __attribute__ ((bitwidth(708))) uint708;\ntypedef unsigned int __attribute__ ((bitwidth(709))) uint709;\ntypedef unsigned int __attribute__ ((bitwidth(710))) uint710;\ntypedef unsigned int __attribute__ ((bitwidth(711))) uint711;\ntypedef unsigned int __attribute__ ((bitwidth(712))) uint712;\ntypedef unsigned int __attribute__ ((bitwidth(713))) uint713;\ntypedef unsigned int __attribute__ ((bitwidth(714))) uint714;\ntypedef unsigned int __attribute__ ((bitwidth(715))) uint715;\ntypedef unsigned int __attribute__ ((bitwidth(716))) uint716;\ntypedef unsigned int __attribute__ ((bitwidth(717))) uint717;\ntypedef unsigned int __attribute__ ((bitwidth(718))) uint718;\ntypedef unsigned int __attribute__ ((bitwidth(719))) uint719;\ntypedef unsigned int __attribute__ ((bitwidth(720))) uint720;\ntypedef unsigned int __attribute__ ((bitwidth(721))) uint721;\ntypedef unsigned int __attribute__ ((bitwidth(722))) uint722;\ntypedef unsigned int __attribute__ ((bitwidth(723))) uint723;\ntypedef unsigned int __attribute__ ((bitwidth(724))) uint724;\ntypedef unsigned int __attribute__ ((bitwidth(725))) uint725;\ntypedef unsigned int __attribute__ ((bitwidth(726))) uint726;\ntypedef unsigned int __attribute__ ((bitwidth(727))) uint727;\ntypedef unsigned int __attribute__ ((bitwidth(728))) uint728;\ntypedef unsigned int __attribute__ ((bitwidth(729))) uint729;\ntypedef unsigned int __attribute__ ((bitwidth(730))) uint730;\ntypedef unsigned int __attribute__ ((bitwidth(731))) uint731;\ntypedef unsigned int __attribute__ ((bitwidth(732))) uint732;\ntypedef unsigned int __attribute__ ((bitwidth(733))) uint733;\ntypedef unsigned int __attribute__ ((bitwidth(734))) uint734;\ntypedef unsigned int __attribute__ ((bitwidth(735))) uint735;\ntypedef unsigned int __attribute__ ((bitwidth(736))) uint736;\ntypedef unsigned int __attribute__ ((bitwidth(737))) uint737;\ntypedef unsigned int __attribute__ ((bitwidth(738))) uint738;\ntypedef unsigned int __attribute__ ((bitwidth(739))) uint739;\ntypedef unsigned int __attribute__ ((bitwidth(740))) uint740;\ntypedef unsigned int __attribute__ ((bitwidth(741))) uint741;\ntypedef unsigned int __attribute__ ((bitwidth(742))) uint742;\ntypedef unsigned int __attribute__ ((bitwidth(743))) uint743;\ntypedef unsigned int __attribute__ ((bitwidth(744))) uint744;\ntypedef unsigned int __attribute__ ((bitwidth(745))) uint745;\ntypedef unsigned int __attribute__ ((bitwidth(746))) uint746;\ntypedef unsigned int __attribute__ ((bitwidth(747))) uint747;\ntypedef unsigned int __attribute__ ((bitwidth(748))) uint748;\ntypedef unsigned int __attribute__ ((bitwidth(749))) uint749;\ntypedef unsigned int __attribute__ ((bitwidth(750))) uint750;\ntypedef unsigned int __attribute__ ((bitwidth(751))) uint751;\ntypedef unsigned int __attribute__ ((bitwidth(752))) uint752;\ntypedef unsigned int __attribute__ ((bitwidth(753))) uint753;\ntypedef unsigned int __attribute__ ((bitwidth(754))) uint754;\ntypedef unsigned int __attribute__ ((bitwidth(755))) uint755;\ntypedef unsigned int __attribute__ ((bitwidth(756))) uint756;\ntypedef unsigned int __attribute__ ((bitwidth(757))) uint757;\ntypedef unsigned int __attribute__ ((bitwidth(758))) uint758;\ntypedef unsigned int __attribute__ ((bitwidth(759))) uint759;\ntypedef unsigned int __attribute__ ((bitwidth(760))) uint760;\ntypedef unsigned int __attribute__ ((bitwidth(761))) uint761;\ntypedef unsigned int __attribute__ ((bitwidth(762))) uint762;\ntypedef unsigned int __attribute__ ((bitwidth(763))) uint763;\ntypedef unsigned int __attribute__ ((bitwidth(764))) uint764;\ntypedef unsigned int __attribute__ ((bitwidth(765))) uint765;\ntypedef unsigned int __attribute__ ((bitwidth(766))) uint766;\ntypedef unsigned int __attribute__ ((bitwidth(767))) uint767;\ntypedef unsigned int __attribute__ ((bitwidth(768))) uint768;\ntypedef unsigned int __attribute__ ((bitwidth(769))) uint769;\ntypedef unsigned int __attribute__ ((bitwidth(770))) uint770;\ntypedef unsigned int __attribute__ ((bitwidth(771))) uint771;\ntypedef unsigned int __attribute__ ((bitwidth(772))) uint772;\ntypedef unsigned int __attribute__ ((bitwidth(773))) uint773;\ntypedef unsigned int __attribute__ ((bitwidth(774))) uint774;\ntypedef unsigned int __attribute__ ((bitwidth(775))) uint775;\ntypedef unsigned int __attribute__ ((bitwidth(776))) uint776;\ntypedef unsigned int __attribute__ ((bitwidth(777))) uint777;\ntypedef unsigned int __attribute__ ((bitwidth(778))) uint778;\ntypedef unsigned int __attribute__ ((bitwidth(779))) uint779;\ntypedef unsigned int __attribute__ ((bitwidth(780))) uint780;\ntypedef unsigned int __attribute__ ((bitwidth(781))) uint781;\ntypedef unsigned int __attribute__ ((bitwidth(782))) uint782;\ntypedef unsigned int __attribute__ ((bitwidth(783))) uint783;\ntypedef unsigned int __attribute__ ((bitwidth(784))) uint784;\ntypedef unsigned int __attribute__ ((bitwidth(785))) uint785;\ntypedef unsigned int __attribute__ ((bitwidth(786))) uint786;\ntypedef unsigned int __attribute__ ((bitwidth(787))) uint787;\ntypedef unsigned int __attribute__ ((bitwidth(788))) uint788;\ntypedef unsigned int __attribute__ ((bitwidth(789))) uint789;\ntypedef unsigned int __attribute__ ((bitwidth(790))) uint790;\ntypedef unsigned int __attribute__ ((bitwidth(791))) uint791;\ntypedef unsigned int __attribute__ ((bitwidth(792))) uint792;\ntypedef unsigned int __attribute__ ((bitwidth(793))) uint793;\ntypedef unsigned int __attribute__ ((bitwidth(794))) uint794;\ntypedef unsigned int __attribute__ ((bitwidth(795))) uint795;\ntypedef unsigned int __attribute__ ((bitwidth(796))) uint796;\ntypedef unsigned int __attribute__ ((bitwidth(797))) uint797;\ntypedef unsigned int __attribute__ ((bitwidth(798))) uint798;\ntypedef unsigned int __attribute__ ((bitwidth(799))) uint799;\ntypedef unsigned int __attribute__ ((bitwidth(800))) uint800;\ntypedef unsigned int __attribute__ ((bitwidth(801))) uint801;\ntypedef unsigned int __attribute__ ((bitwidth(802))) uint802;\ntypedef unsigned int __attribute__ ((bitwidth(803))) uint803;\ntypedef unsigned int __attribute__ ((bitwidth(804))) uint804;\ntypedef unsigned int __attribute__ ((bitwidth(805))) uint805;\ntypedef unsigned int __attribute__ ((bitwidth(806))) uint806;\ntypedef unsigned int __attribute__ ((bitwidth(807))) uint807;\ntypedef unsigned int __attribute__ ((bitwidth(808))) uint808;\ntypedef unsigned int __attribute__ ((bitwidth(809))) uint809;\ntypedef unsigned int __attribute__ ((bitwidth(810))) uint810;\ntypedef unsigned int __attribute__ ((bitwidth(811))) uint811;\ntypedef unsigned int __attribute__ ((bitwidth(812))) uint812;\ntypedef unsigned int __attribute__ ((bitwidth(813))) uint813;\ntypedef unsigned int __attribute__ ((bitwidth(814))) uint814;\ntypedef unsigned int __attribute__ ((bitwidth(815))) uint815;\ntypedef unsigned int __attribute__ ((bitwidth(816))) uint816;\ntypedef unsigned int __attribute__ ((bitwidth(817))) uint817;\ntypedef unsigned int __attribute__ ((bitwidth(818))) uint818;\ntypedef unsigned int __attribute__ ((bitwidth(819))) uint819;\ntypedef unsigned int __attribute__ ((bitwidth(820))) uint820;\ntypedef unsigned int __attribute__ ((bitwidth(821))) uint821;\ntypedef unsigned int __attribute__ ((bitwidth(822))) uint822;\ntypedef unsigned int __attribute__ ((bitwidth(823))) uint823;\ntypedef unsigned int __attribute__ ((bitwidth(824))) uint824;\ntypedef unsigned int __attribute__ ((bitwidth(825))) uint825;\ntypedef unsigned int __attribute__ ((bitwidth(826))) uint826;\ntypedef unsigned int __attribute__ ((bitwidth(827))) uint827;\ntypedef unsigned int __attribute__ ((bitwidth(828))) uint828;\ntypedef unsigned int __attribute__ ((bitwidth(829))) uint829;\ntypedef unsigned int __attribute__ ((bitwidth(830))) uint830;\ntypedef unsigned int __attribute__ ((bitwidth(831))) uint831;\ntypedef unsigned int __attribute__ ((bitwidth(832))) uint832;\ntypedef unsigned int __attribute__ ((bitwidth(833))) uint833;\ntypedef unsigned int __attribute__ ((bitwidth(834))) uint834;\ntypedef unsigned int __attribute__ ((bitwidth(835))) uint835;\ntypedef unsigned int __attribute__ ((bitwidth(836))) uint836;\ntypedef unsigned int __attribute__ ((bitwidth(837))) uint837;\ntypedef unsigned int __attribute__ ((bitwidth(838))) uint838;\ntypedef unsigned int __attribute__ ((bitwidth(839))) uint839;\ntypedef unsigned int __attribute__ ((bitwidth(840))) uint840;\ntypedef unsigned int __attribute__ ((bitwidth(841))) uint841;\ntypedef unsigned int __attribute__ ((bitwidth(842))) uint842;\ntypedef unsigned int __attribute__ ((bitwidth(843))) uint843;\ntypedef unsigned int __attribute__ ((bitwidth(844))) uint844;\ntypedef unsigned int __attribute__ ((bitwidth(845))) uint845;\ntypedef unsigned int __attribute__ ((bitwidth(846))) uint846;\ntypedef unsigned int __attribute__ ((bitwidth(847))) uint847;\ntypedef unsigned int __attribute__ ((bitwidth(848))) uint848;\ntypedef unsigned int __attribute__ ((bitwidth(849))) uint849;\ntypedef unsigned int __attribute__ ((bitwidth(850))) uint850;\ntypedef unsigned int __attribute__ ((bitwidth(851))) uint851;\ntypedef unsigned int __attribute__ ((bitwidth(852))) uint852;\ntypedef unsigned int __attribute__ ((bitwidth(853))) uint853;\ntypedef unsigned int __attribute__ ((bitwidth(854))) uint854;\ntypedef unsigned int __attribute__ ((bitwidth(855))) uint855;\ntypedef unsigned int __attribute__ ((bitwidth(856))) uint856;\ntypedef unsigned int __attribute__ ((bitwidth(857))) uint857;\ntypedef unsigned int __attribute__ ((bitwidth(858))) uint858;\ntypedef unsigned int __attribute__ ((bitwidth(859))) uint859;\ntypedef unsigned int __attribute__ ((bitwidth(860))) uint860;\ntypedef unsigned int __attribute__ ((bitwidth(861))) uint861;\ntypedef unsigned int __attribute__ ((bitwidth(862))) uint862;\ntypedef unsigned int __attribute__ ((bitwidth(863))) uint863;\ntypedef unsigned int __attribute__ ((bitwidth(864))) uint864;\ntypedef unsigned int __attribute__ ((bitwidth(865))) uint865;\ntypedef unsigned int __attribute__ ((bitwidth(866))) uint866;\ntypedef unsigned int __attribute__ ((bitwidth(867))) uint867;\ntypedef unsigned int __attribute__ ((bitwidth(868))) uint868;\ntypedef unsigned int __attribute__ ((bitwidth(869))) uint869;\ntypedef unsigned int __attribute__ ((bitwidth(870))) uint870;\ntypedef unsigned int __attribute__ ((bitwidth(871))) uint871;\ntypedef unsigned int __attribute__ ((bitwidth(872))) uint872;\ntypedef unsigned int __attribute__ ((bitwidth(873))) uint873;\ntypedef unsigned int __attribute__ ((bitwidth(874))) uint874;\ntypedef unsigned int __attribute__ ((bitwidth(875))) uint875;\ntypedef unsigned int __attribute__ ((bitwidth(876))) uint876;\ntypedef unsigned int __attribute__ ((bitwidth(877))) uint877;\ntypedef unsigned int __attribute__ ((bitwidth(878))) uint878;\ntypedef unsigned int __attribute__ ((bitwidth(879))) uint879;\ntypedef unsigned int __attribute__ ((bitwidth(880))) uint880;\ntypedef unsigned int __attribute__ ((bitwidth(881))) uint881;\ntypedef unsigned int __attribute__ ((bitwidth(882))) uint882;\ntypedef unsigned int __attribute__ ((bitwidth(883))) uint883;\ntypedef unsigned int __attribute__ ((bitwidth(884))) uint884;\ntypedef unsigned int __attribute__ ((bitwidth(885))) uint885;\ntypedef unsigned int __attribute__ ((bitwidth(886))) uint886;\ntypedef unsigned int __attribute__ ((bitwidth(887))) uint887;\ntypedef unsigned int __attribute__ ((bitwidth(888))) uint888;\ntypedef unsigned int __attribute__ ((bitwidth(889))) uint889;\ntypedef unsigned int __attribute__ ((bitwidth(890))) uint890;\ntypedef unsigned int __attribute__ ((bitwidth(891))) uint891;\ntypedef unsigned int __attribute__ ((bitwidth(892))) uint892;\ntypedef unsigned int __attribute__ ((bitwidth(893))) uint893;\ntypedef unsigned int __attribute__ ((bitwidth(894))) uint894;\ntypedef unsigned int __attribute__ ((bitwidth(895))) uint895;\ntypedef unsigned int __attribute__ ((bitwidth(896))) uint896;\ntypedef unsigned int __attribute__ ((bitwidth(897))) uint897;\ntypedef unsigned int __attribute__ ((bitwidth(898))) uint898;\ntypedef unsigned int __attribute__ ((bitwidth(899))) uint899;\ntypedef unsigned int __attribute__ ((bitwidth(900))) uint900;\ntypedef unsigned int __attribute__ ((bitwidth(901))) uint901;\ntypedef unsigned int __attribute__ ((bitwidth(902))) uint902;\ntypedef unsigned int __attribute__ ((bitwidth(903))) uint903;\ntypedef unsigned int __attribute__ ((bitwidth(904))) uint904;\ntypedef unsigned int __attribute__ ((bitwidth(905))) uint905;\ntypedef unsigned int __attribute__ ((bitwidth(906))) uint906;\ntypedef unsigned int __attribute__ ((bitwidth(907))) uint907;\ntypedef unsigned int __attribute__ ((bitwidth(908))) uint908;\ntypedef unsigned int __attribute__ ((bitwidth(909))) uint909;\ntypedef unsigned int __attribute__ ((bitwidth(910))) uint910;\ntypedef unsigned int __attribute__ ((bitwidth(911))) uint911;\ntypedef unsigned int __attribute__ ((bitwidth(912))) uint912;\ntypedef unsigned int __attribute__ ((bitwidth(913))) uint913;\ntypedef unsigned int __attribute__ ((bitwidth(914))) uint914;\ntypedef unsigned int __attribute__ ((bitwidth(915))) uint915;\ntypedef unsigned int __attribute__ ((bitwidth(916))) uint916;\ntypedef unsigned int __attribute__ ((bitwidth(917))) uint917;\ntypedef unsigned int __attribute__ ((bitwidth(918))) uint918;\ntypedef unsigned int __attribute__ ((bitwidth(919))) uint919;\ntypedef unsigned int __attribute__ ((bitwidth(920))) uint920;\ntypedef unsigned int __attribute__ ((bitwidth(921))) uint921;\ntypedef unsigned int __attribute__ ((bitwidth(922))) uint922;\ntypedef unsigned int __attribute__ ((bitwidth(923))) uint923;\ntypedef unsigned int __attribute__ ((bitwidth(924))) uint924;\ntypedef unsigned int __attribute__ ((bitwidth(925))) uint925;\ntypedef unsigned int __attribute__ ((bitwidth(926))) uint926;\ntypedef unsigned int __attribute__ ((bitwidth(927))) uint927;\ntypedef unsigned int __attribute__ ((bitwidth(928))) uint928;\ntypedef unsigned int __attribute__ ((bitwidth(929))) uint929;\ntypedef unsigned int __attribute__ ((bitwidth(930))) uint930;\ntypedef unsigned int __attribute__ ((bitwidth(931))) uint931;\ntypedef unsigned int __attribute__ ((bitwidth(932))) uint932;\ntypedef unsigned int __attribute__ ((bitwidth(933))) uint933;\ntypedef unsigned int __attribute__ ((bitwidth(934))) uint934;\ntypedef unsigned int __attribute__ ((bitwidth(935))) uint935;\ntypedef unsigned int __attribute__ ((bitwidth(936))) uint936;\ntypedef unsigned int __attribute__ ((bitwidth(937))) uint937;\ntypedef unsigned int __attribute__ ((bitwidth(938))) uint938;\ntypedef unsigned int __attribute__ ((bitwidth(939))) uint939;\ntypedef unsigned int __attribute__ ((bitwidth(940))) uint940;\ntypedef unsigned int __attribute__ ((bitwidth(941))) uint941;\ntypedef unsigned int __attribute__ ((bitwidth(942))) uint942;\ntypedef unsigned int __attribute__ ((bitwidth(943))) uint943;\ntypedef unsigned int __attribute__ ((bitwidth(944))) uint944;\ntypedef unsigned int __attribute__ ((bitwidth(945))) uint945;\ntypedef unsigned int __attribute__ ((bitwidth(946))) uint946;\ntypedef unsigned int __attribute__ ((bitwidth(947))) uint947;\ntypedef unsigned int __attribute__ ((bitwidth(948))) uint948;\ntypedef unsigned int __attribute__ ((bitwidth(949))) uint949;\ntypedef unsigned int __attribute__ ((bitwidth(950))) uint950;\ntypedef unsigned int __attribute__ ((bitwidth(951))) uint951;\ntypedef unsigned int __attribute__ ((bitwidth(952))) uint952;\ntypedef unsigned int __attribute__ ((bitwidth(953))) uint953;\ntypedef unsigned int __attribute__ ((bitwidth(954))) uint954;\ntypedef unsigned int __attribute__ ((bitwidth(955))) uint955;\ntypedef unsigned int __attribute__ ((bitwidth(956))) uint956;\ntypedef unsigned int __attribute__ ((bitwidth(957))) uint957;\ntypedef unsigned int __attribute__ ((bitwidth(958))) uint958;\ntypedef unsigned int __attribute__ ((bitwidth(959))) uint959;\ntypedef unsigned int __attribute__ ((bitwidth(960))) uint960;\ntypedef unsigned int __attribute__ ((bitwidth(961))) uint961;\ntypedef unsigned int __attribute__ ((bitwidth(962))) uint962;\ntypedef unsigned int __attribute__ ((bitwidth(963))) uint963;\ntypedef unsigned int __attribute__ ((bitwidth(964))) uint964;\ntypedef unsigned int __attribute__ ((bitwidth(965))) uint965;\ntypedef unsigned int __attribute__ ((bitwidth(966))) uint966;\ntypedef unsigned int __attribute__ ((bitwidth(967))) uint967;\ntypedef unsigned int __attribute__ ((bitwidth(968))) uint968;\ntypedef unsigned int __attribute__ ((bitwidth(969))) uint969;\ntypedef unsigned int __attribute__ ((bitwidth(970))) uint970;\ntypedef unsigned int __attribute__ ((bitwidth(971))) uint971;\ntypedef unsigned int __attribute__ ((bitwidth(972))) uint972;\ntypedef unsigned int __attribute__ ((bitwidth(973))) uint973;\ntypedef unsigned int __attribute__ ((bitwidth(974))) uint974;\ntypedef unsigned int __attribute__ ((bitwidth(975))) uint975;\ntypedef unsigned int __attribute__ ((bitwidth(976))) uint976;\ntypedef unsigned int __attribute__ ((bitwidth(977))) uint977;\ntypedef unsigned int __attribute__ ((bitwidth(978))) uint978;\ntypedef unsigned int __attribute__ ((bitwidth(979))) uint979;\ntypedef unsigned int __attribute__ ((bitwidth(980))) uint980;\ntypedef unsigned int __attribute__ ((bitwidth(981))) uint981;\ntypedef unsigned int __attribute__ ((bitwidth(982))) uint982;\ntypedef unsigned int __attribute__ ((bitwidth(983))) uint983;\ntypedef unsigned int __attribute__ ((bitwidth(984))) uint984;\ntypedef unsigned int __attribute__ ((bitwidth(985))) uint985;\ntypedef unsigned int __attribute__ ((bitwidth(986))) uint986;\ntypedef unsigned int __attribute__ ((bitwidth(987))) uint987;\ntypedef unsigned int __attribute__ ((bitwidth(988))) uint988;\ntypedef unsigned int __attribute__ ((bitwidth(989))) uint989;\ntypedef unsigned int __attribute__ ((bitwidth(990))) uint990;\ntypedef unsigned int __attribute__ ((bitwidth(991))) uint991;\ntypedef unsigned int __attribute__ ((bitwidth(992))) uint992;\ntypedef unsigned int __attribute__ ((bitwidth(993))) uint993;\ntypedef unsigned int __attribute__ ((bitwidth(994))) uint994;\ntypedef unsigned int __attribute__ ((bitwidth(995))) uint995;\ntypedef unsigned int __attribute__ ((bitwidth(996))) uint996;\ntypedef unsigned int __attribute__ ((bitwidth(997))) uint997;\ntypedef unsigned int __attribute__ ((bitwidth(998))) uint998;\ntypedef unsigned int __attribute__ ((bitwidth(999))) uint999;\ntypedef unsigned int __attribute__ ((bitwidth(1000))) uint1000;\ntypedef unsigned int __attribute__ ((bitwidth(1001))) uint1001;\ntypedef unsigned int __attribute__ ((bitwidth(1002))) uint1002;\ntypedef unsigned int __attribute__ ((bitwidth(1003))) uint1003;\ntypedef unsigned int __attribute__ ((bitwidth(1004))) uint1004;\ntypedef unsigned int __attribute__ ((bitwidth(1005))) uint1005;\ntypedef unsigned int __attribute__ ((bitwidth(1006))) uint1006;\ntypedef unsigned int __attribute__ ((bitwidth(1007))) uint1007;\ntypedef unsigned int __attribute__ ((bitwidth(1008))) uint1008;\ntypedef unsigned int __attribute__ ((bitwidth(1009))) uint1009;\ntypedef unsigned int __attribute__ ((bitwidth(1010))) uint1010;\ntypedef unsigned int __attribute__ ((bitwidth(1011))) uint1011;\ntypedef unsigned int __attribute__ ((bitwidth(1012))) uint1012;\ntypedef unsigned int __attribute__ ((bitwidth(1013))) uint1013;\ntypedef unsigned int __attribute__ ((bitwidth(1014))) uint1014;\ntypedef unsigned int __attribute__ ((bitwidth(1015))) uint1015;\ntypedef unsigned int __attribute__ ((bitwidth(1016))) uint1016;\ntypedef unsigned int __attribute__ ((bitwidth(1017))) uint1017;\ntypedef unsigned int __attribute__ ((bitwidth(1018))) uint1018;\ntypedef unsigned int __attribute__ ((bitwidth(1019))) uint1019;\ntypedef unsigned int __attribute__ ((bitwidth(1020))) uint1020;\ntypedef unsigned int __attribute__ ((bitwidth(1021))) uint1021;\ntypedef unsigned int __attribute__ ((bitwidth(1022))) uint1022;\ntypedef unsigned int __attribute__ ((bitwidth(1023))) uint1023;\ntypedef unsigned int __attribute__ ((bitwidth(1024))) uint1024;\n#pragma line 109 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_dt.h\" 2\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_dt_ext.def\" 1\n#pragma empty_line\n#pragma empty_line\ntypedef unsigned int __attribute__ ((bitwidth(1025))) uint1025;\ntypedef unsigned int __attribute__ ((bitwidth(1026))) uint1026;\ntypedef unsigned int __attribute__ ((bitwidth(1027))) uint1027;\ntypedef unsigned int __attribute__ ((bitwidth(1028))) uint1028;\ntypedef unsigned int __attribute__ ((bitwidth(1029))) uint1029;\ntypedef unsigned int __attribute__ ((bitwidth(1030))) uint1030;\ntypedef unsigned int __attribute__ ((bitwidth(1031))) uint1031;\ntypedef unsigned int __attribute__ ((bitwidth(1032))) uint1032;\ntypedef unsigned int __attribute__ ((bitwidth(1033))) uint1033;\ntypedef unsigned int __attribute__ ((bitwidth(1034))) uint1034;\ntypedef unsigned int __attribute__ ((bitwidth(1035))) uint1035;\ntypedef unsigned int __attribute__ ((bitwidth(1036))) uint1036;\ntypedef unsigned int __attribute__ ((bitwidth(1037))) uint1037;\ntypedef unsigned int __attribute__ ((bitwidth(1038))) uint1038;\ntypedef unsigned int __attribute__ ((bitwidth(1039))) uint1039;\ntypedef unsigned int __attribute__ ((bitwidth(1040))) uint1040;\ntypedef unsigned int __attribute__ ((bitwidth(1041))) uint1041;\ntypedef unsigned int __attribute__ ((bitwidth(1042))) uint1042;\ntypedef unsigned int __attribute__ ((bitwidth(1043))) uint1043;\ntypedef unsigned int __attribute__ ((bitwidth(1044))) uint1044;\ntypedef unsigned int __attribute__ ((bitwidth(1045))) uint1045;\ntypedef unsigned int __attribute__ ((bitwidth(1046))) uint1046;\ntypedef unsigned int __attribute__ ((bitwidth(1047))) uint1047;\ntypedef unsigned int __attribute__ ((bitwidth(1048))) uint1048;\ntypedef unsigned int __attribute__ ((bitwidth(1049))) uint1049;\ntypedef unsigned int __attribute__ ((bitwidth(1050))) uint1050;\ntypedef unsigned int __attribute__ ((bitwidth(1051))) uint1051;\ntypedef unsigned int __attribute__ ((bitwidth(1052))) uint1052;\ntypedef unsigned int __attribute__ ((bitwidth(1053))) uint1053;\ntypedef unsigned int __attribute__ ((bitwidth(1054))) uint1054;\ntypedef unsigned int __attribute__ ((bitwidth(1055))) uint1055;\ntypedef unsigned int __attribute__ ((bitwidth(1056))) uint1056;\ntypedef unsigned int __attribute__ ((bitwidth(1057))) uint1057;\ntypedef unsigned int __attribute__ ((bitwidth(1058))) uint1058;\ntypedef unsigned int __attribute__ ((bitwidth(1059))) uint1059;\ntypedef unsigned int __attribute__ ((bitwidth(1060))) uint1060;\ntypedef unsigned int __attribute__ ((bitwidth(1061))) uint1061;\ntypedef unsigned int __attribute__ ((bitwidth(1062))) uint1062;\ntypedef unsigned int __attribute__ ((bitwidth(1063))) uint1063;\ntypedef unsigned int __attribute__ ((bitwidth(1064))) uint1064;\ntypedef unsigned int __attribute__ ((bitwidth(1065))) uint1065;\ntypedef unsigned int __attribute__ ((bitwidth(1066))) uint1066;\ntypedef unsigned int __attribute__ ((bitwidth(1067))) uint1067;\ntypedef unsigned int __attribute__ ((bitwidth(1068))) uint1068;\ntypedef unsigned int __attribute__ ((bitwidth(1069))) uint1069;\ntypedef unsigned int __attribute__ ((bitwidth(1070))) uint1070;\ntypedef unsigned int __attribute__ ((bitwidth(1071))) uint1071;\ntypedef unsigned int __attribute__ ((bitwidth(1072))) uint1072;\ntypedef unsigned int __attribute__ ((bitwidth(1073))) uint1073;\ntypedef unsigned int __attribute__ ((bitwidth(1074))) uint1074;\ntypedef unsigned int __attribute__ ((bitwidth(1075))) uint1075;\ntypedef unsigned int __attribute__ ((bitwidth(1076))) uint1076;\ntypedef unsigned int __attribute__ ((bitwidth(1077))) uint1077;\ntypedef unsigned int __attribute__ ((bitwidth(1078))) uint1078;\ntypedef unsigned int __attribute__ ((bitwidth(1079))) uint1079;\ntypedef unsigned int __attribute__ ((bitwidth(1080))) uint1080;\ntypedef unsigned int __attribute__ ((bitwidth(1081))) uint1081;\ntypedef unsigned int __attribute__ ((bitwidth(1082))) uint1082;\ntypedef unsigned int __attribute__ ((bitwidth(1083))) uint1083;\ntypedef unsigned int __attribute__ ((bitwidth(1084))) uint1084;\ntypedef unsigned int __attribute__ ((bitwidth(1085))) uint1085;\ntypedef unsigned int __attribute__ ((bitwidth(1086))) uint1086;\ntypedef unsigned int __attribute__ ((bitwidth(1087))) uint1087;\ntypedef unsigned int __attribute__ ((bitwidth(1088))) uint1088;\ntypedef unsigned int __attribute__ ((bitwidth(1089))) uint1089;\ntypedef unsigned int __attribute__ ((bitwidth(1090))) uint1090;\ntypedef unsigned int __attribute__ ((bitwidth(1091))) uint1091;\ntypedef unsigned int __attribute__ ((bitwidth(1092))) uint1092;\ntypedef unsigned int __attribute__ ((bitwidth(1093))) uint1093;\ntypedef unsigned int __attribute__ ((bitwidth(1094))) uint1094;\ntypedef unsigned int __attribute__ ((bitwidth(1095))) uint1095;\ntypedef unsigned int __attribute__ ((bitwidth(1096))) uint1096;\ntypedef unsigned int __attribute__ ((bitwidth(1097))) uint1097;\ntypedef unsigned int __attribute__ ((bitwidth(1098))) uint1098;\ntypedef unsigned int __attribute__ ((bitwidth(1099))) uint1099;\ntypedef unsigned int __attribute__ ((bitwidth(1100))) uint1100;\ntypedef unsigned int __attribute__ ((bitwidth(1101))) uint1101;\ntypedef unsigned int __attribute__ ((bitwidth(1102))) uint1102;\ntypedef unsigned int __attribute__ ((bitwidth(1103))) uint1103;\ntypedef unsigned int __attribute__ ((bitwidth(1104))) uint1104;\ntypedef unsigned int __attribute__ ((bitwidth(1105))) uint1105;\ntypedef unsigned int __attribute__ ((bitwidth(1106))) uint1106;\ntypedef unsigned int __attribute__ ((bitwidth(1107))) uint1107;\ntypedef unsigned int __attribute__ ((bitwidth(1108))) uint1108;\ntypedef unsigned int __attribute__ ((bitwidth(1109))) uint1109;\ntypedef unsigned int __attribute__ ((bitwidth(1110))) uint1110;\ntypedef unsigned int __attribute__ ((bitwidth(1111))) uint1111;\ntypedef unsigned int __attribute__ ((bitwidth(1112))) uint1112;\ntypedef unsigned int __attribute__ ((bitwidth(1113))) uint1113;\ntypedef unsigned int __attribute__ ((bitwidth(1114))) uint1114;\ntypedef unsigned int __attribute__ ((bitwidth(1115))) uint1115;\ntypedef unsigned int __attribute__ ((bitwidth(1116))) uint1116;\ntypedef unsigned int __attribute__ ((bitwidth(1117))) uint1117;\ntypedef unsigned int __attribute__ ((bitwidth(1118))) uint1118;\ntypedef unsigned int __attribute__ ((bitwidth(1119))) uint1119;\ntypedef unsigned int __attribute__ ((bitwidth(1120))) uint1120;\ntypedef unsigned int __attribute__ ((bitwidth(1121))) uint1121;\ntypedef unsigned int __attribute__ ((bitwidth(1122))) uint1122;\ntypedef unsigned int __attribute__ ((bitwidth(1123))) uint1123;\ntypedef unsigned int __attribute__ ((bitwidth(1124))) uint1124;\ntypedef unsigned int __attribute__ ((bitwidth(1125))) uint1125;\ntypedef unsigned int __attribute__ ((bitwidth(1126))) uint1126;\ntypedef unsigned int __attribute__ ((bitwidth(1127))) uint1127;\ntypedef unsigned int __attribute__ ((bitwidth(1128))) uint1128;\ntypedef unsigned int __attribute__ ((bitwidth(1129))) uint1129;\ntypedef unsigned int __attribute__ ((bitwidth(1130))) uint1130;\ntypedef unsigned int __attribute__ ((bitwidth(1131))) uint1131;\ntypedef unsigned int __attribute__ ((bitwidth(1132))) uint1132;\ntypedef unsigned int __attribute__ ((bitwidth(1133))) uint1133;\ntypedef unsigned int __attribute__ ((bitwidth(1134))) uint1134;\ntypedef unsigned int __attribute__ ((bitwidth(1135))) uint1135;\ntypedef unsigned int __attribute__ ((bitwidth(1136))) uint1136;\ntypedef unsigned int __attribute__ ((bitwidth(1137))) uint1137;\ntypedef unsigned int __attribute__ ((bitwidth(1138))) uint1138;\ntypedef unsigned int __attribute__ ((bitwidth(1139))) uint1139;\ntypedef unsigned int __attribute__ ((bitwidth(1140))) uint1140;\ntypedef unsigned int __attribute__ ((bitwidth(1141))) uint1141;\ntypedef unsigned int __attribute__ ((bitwidth(1142))) uint1142;\ntypedef unsigned int __attribute__ ((bitwidth(1143))) uint1143;\ntypedef unsigned int __attribute__ ((bitwidth(1144))) uint1144;\ntypedef unsigned int __attribute__ ((bitwidth(1145))) uint1145;\ntypedef unsigned int __attribute__ ((bitwidth(1146))) uint1146;\ntypedef unsigned int __attribute__ ((bitwidth(1147))) uint1147;\ntypedef unsigned int __attribute__ ((bitwidth(1148))) uint1148;\ntypedef unsigned int __attribute__ ((bitwidth(1149))) uint1149;\ntypedef unsigned int __attribute__ ((bitwidth(1150))) uint1150;\ntypedef unsigned int __attribute__ ((bitwidth(1151))) uint1151;\ntypedef unsigned int __attribute__ ((bitwidth(1152))) uint1152;\ntypedef unsigned int __attribute__ ((bitwidth(1153))) uint1153;\ntypedef unsigned int __attribute__ ((bitwidth(1154))) uint1154;\ntypedef unsigned int __attribute__ ((bitwidth(1155))) uint1155;\ntypedef unsigned int __attribute__ ((bitwidth(1156))) uint1156;\ntypedef unsigned int __attribute__ ((bitwidth(1157))) uint1157;\ntypedef unsigned int __attribute__ ((bitwidth(1158))) uint1158;\ntypedef unsigned int __attribute__ ((bitwidth(1159))) uint1159;\ntypedef unsigned int __attribute__ ((bitwidth(1160))) uint1160;\ntypedef unsigned int __attribute__ ((bitwidth(1161))) uint1161;\ntypedef unsigned int __attribute__ ((bitwidth(1162))) uint1162;\ntypedef unsigned int __attribute__ ((bitwidth(1163))) uint1163;\ntypedef unsigned int __attribute__ ((bitwidth(1164))) uint1164;\ntypedef unsigned int __attribute__ ((bitwidth(1165))) uint1165;\ntypedef unsigned int __attribute__ ((bitwidth(1166))) uint1166;\ntypedef unsigned int __attribute__ ((bitwidth(1167))) uint1167;\ntypedef unsigned int __attribute__ ((bitwidth(1168))) uint1168;\ntypedef unsigned int __attribute__ ((bitwidth(1169))) uint1169;\ntypedef unsigned int __attribute__ ((bitwidth(1170))) uint1170;\ntypedef unsigned int __attribute__ ((bitwidth(1171))) uint1171;\ntypedef unsigned int __attribute__ ((bitwidth(1172))) uint1172;\ntypedef unsigned int __attribute__ ((bitwidth(1173))) uint1173;\ntypedef unsigned int __attribute__ ((bitwidth(1174))) uint1174;\ntypedef unsigned int __attribute__ ((bitwidth(1175))) uint1175;\ntypedef unsigned int __attribute__ ((bitwidth(1176))) uint1176;\ntypedef unsigned int __attribute__ ((bitwidth(1177))) uint1177;\ntypedef unsigned int __attribute__ ((bitwidth(1178))) uint1178;\ntypedef unsigned int __attribute__ ((bitwidth(1179))) uint1179;\ntypedef unsigned int __attribute__ ((bitwidth(1180))) uint1180;\ntypedef unsigned int __attribute__ ((bitwidth(1181))) uint1181;\ntypedef unsigned int __attribute__ ((bitwidth(1182))) uint1182;\ntypedef unsigned int __attribute__ ((bitwidth(1183))) uint1183;\ntypedef unsigned int __attribute__ ((bitwidth(1184))) uint1184;\ntypedef unsigned int __attribute__ ((bitwidth(1185))) uint1185;\ntypedef unsigned int __attribute__ ((bitwidth(1186))) uint1186;\ntypedef unsigned int __attribute__ ((bitwidth(1187))) uint1187;\ntypedef unsigned int __attribute__ ((bitwidth(1188))) uint1188;\ntypedef unsigned int __attribute__ ((bitwidth(1189))) uint1189;\ntypedef unsigned int __attribute__ ((bitwidth(1190))) uint1190;\ntypedef unsigned int __attribute__ ((bitwidth(1191))) uint1191;\ntypedef unsigned int __attribute__ ((bitwidth(1192))) uint1192;\ntypedef unsigned int __attribute__ ((bitwidth(1193))) uint1193;\ntypedef unsigned int __attribute__ ((bitwidth(1194))) uint1194;\ntypedef unsigned int __attribute__ ((bitwidth(1195))) uint1195;\ntypedef unsigned int __attribute__ ((bitwidth(1196))) uint1196;\ntypedef unsigned int __attribute__ ((bitwidth(1197))) uint1197;\ntypedef unsigned int __attribute__ ((bitwidth(1198))) uint1198;\ntypedef unsigned int __attribute__ ((bitwidth(1199))) uint1199;\ntypedef unsigned int __attribute__ ((bitwidth(1200))) uint1200;\ntypedef unsigned int __attribute__ ((bitwidth(1201))) uint1201;\ntypedef unsigned int __attribute__ ((bitwidth(1202))) uint1202;\ntypedef unsigned int __attribute__ ((bitwidth(1203))) uint1203;\ntypedef unsigned int __attribute__ ((bitwidth(1204))) uint1204;\ntypedef unsigned int __attribute__ ((bitwidth(1205))) uint1205;\ntypedef unsigned int __attribute__ ((bitwidth(1206))) uint1206;\ntypedef unsigned int __attribute__ ((bitwidth(1207))) uint1207;\ntypedef unsigned int __attribute__ ((bitwidth(1208))) uint1208;\ntypedef unsigned int __attribute__ ((bitwidth(1209))) uint1209;\ntypedef unsigned int __attribute__ ((bitwidth(1210))) uint1210;\ntypedef unsigned int __attribute__ ((bitwidth(1211))) uint1211;\ntypedef unsigned int __attribute__ ((bitwidth(1212))) uint1212;\ntypedef unsigned int __attribute__ ((bitwidth(1213))) uint1213;\ntypedef unsigned int __attribute__ ((bitwidth(1214))) uint1214;\ntypedef unsigned int __attribute__ ((bitwidth(1215))) uint1215;\ntypedef unsigned int __attribute__ ((bitwidth(1216))) uint1216;\ntypedef unsigned int __attribute__ ((bitwidth(1217))) uint1217;\ntypedef unsigned int __attribute__ ((bitwidth(1218))) uint1218;\ntypedef unsigned int __attribute__ ((bitwidth(1219))) uint1219;\ntypedef unsigned int __attribute__ ((bitwidth(1220))) uint1220;\ntypedef unsigned int __attribute__ ((bitwidth(1221))) uint1221;\ntypedef unsigned int __attribute__ ((bitwidth(1222))) uint1222;\ntypedef unsigned int __attribute__ ((bitwidth(1223))) uint1223;\ntypedef unsigned int __attribute__ ((bitwidth(1224))) uint1224;\ntypedef unsigned int __attribute__ ((bitwidth(1225))) uint1225;\ntypedef unsigned int __attribute__ ((bitwidth(1226))) uint1226;\ntypedef unsigned int __attribute__ ((bitwidth(1227))) uint1227;\ntypedef unsigned int __attribute__ ((bitwidth(1228))) uint1228;\ntypedef unsigned int __attribute__ ((bitwidth(1229))) uint1229;\ntypedef unsigned int __attribute__ ((bitwidth(1230))) uint1230;\ntypedef unsigned int __attribute__ ((bitwidth(1231))) uint1231;\ntypedef unsigned int __attribute__ ((bitwidth(1232))) uint1232;\ntypedef unsigned int __attribute__ ((bitwidth(1233))) uint1233;\ntypedef unsigned int __attribute__ ((bitwidth(1234))) uint1234;\ntypedef unsigned int __attribute__ ((bitwidth(1235))) uint1235;\ntypedef unsigned int __attribute__ ((bitwidth(1236))) uint1236;\ntypedef unsigned int __attribute__ ((bitwidth(1237))) uint1237;\ntypedef unsigned int __attribute__ ((bitwidth(1238))) uint1238;\ntypedef unsigned int __attribute__ ((bitwidth(1239))) uint1239;\ntypedef unsigned int __attribute__ ((bitwidth(1240))) uint1240;\ntypedef unsigned int __attribute__ ((bitwidth(1241))) uint1241;\ntypedef unsigned int __attribute__ ((bitwidth(1242))) uint1242;\ntypedef unsigned int __attribute__ ((bitwidth(1243))) uint1243;\ntypedef unsigned int __attribute__ ((bitwidth(1244))) uint1244;\ntypedef unsigned int __attribute__ ((bitwidth(1245))) uint1245;\ntypedef unsigned int __attribute__ ((bitwidth(1246))) uint1246;\ntypedef unsigned int __attribute__ ((bitwidth(1247))) uint1247;\ntypedef unsigned int __attribute__ ((bitwidth(1248))) uint1248;\ntypedef unsigned int __attribute__ ((bitwidth(1249))) uint1249;\ntypedef unsigned int __attribute__ ((bitwidth(1250))) uint1250;\ntypedef unsigned int __attribute__ ((bitwidth(1251))) uint1251;\ntypedef unsigned int __attribute__ ((bitwidth(1252))) uint1252;\ntypedef unsigned int __attribute__ ((bitwidth(1253))) uint1253;\ntypedef unsigned int __attribute__ ((bitwidth(1254))) uint1254;\ntypedef unsigned int __attribute__ ((bitwidth(1255))) uint1255;\ntypedef unsigned int __attribute__ ((bitwidth(1256))) uint1256;\ntypedef unsigned int __attribute__ ((bitwidth(1257))) uint1257;\ntypedef unsigned int __attribute__ ((bitwidth(1258))) uint1258;\ntypedef unsigned int __attribute__ ((bitwidth(1259))) uint1259;\ntypedef unsigned int __attribute__ ((bitwidth(1260))) uint1260;\ntypedef unsigned int __attribute__ ((bitwidth(1261))) uint1261;\ntypedef unsigned int __attribute__ ((bitwidth(1262))) uint1262;\ntypedef unsigned int __attribute__ ((bitwidth(1263))) uint1263;\ntypedef unsigned int __attribute__ ((bitwidth(1264))) uint1264;\ntypedef unsigned int __attribute__ ((bitwidth(1265))) uint1265;\ntypedef unsigned int __attribute__ ((bitwidth(1266))) uint1266;\ntypedef unsigned int __attribute__ ((bitwidth(1267))) uint1267;\ntypedef unsigned int __attribute__ ((bitwidth(1268))) uint1268;\ntypedef unsigned int __attribute__ ((bitwidth(1269))) uint1269;\ntypedef unsigned int __attribute__ ((bitwidth(1270))) uint1270;\ntypedef unsigned int __attribute__ ((bitwidth(1271))) uint1271;\ntypedef unsigned int __attribute__ ((bitwidth(1272))) uint1272;\ntypedef unsigned int __attribute__ ((bitwidth(1273))) uint1273;\ntypedef unsigned int __attribute__ ((bitwidth(1274))) uint1274;\ntypedef unsigned int __attribute__ ((bitwidth(1275))) uint1275;\ntypedef unsigned int __attribute__ ((bitwidth(1276))) uint1276;\ntypedef unsigned int __attribute__ ((bitwidth(1277))) uint1277;\ntypedef unsigned int __attribute__ ((bitwidth(1278))) uint1278;\ntypedef unsigned int __attribute__ ((bitwidth(1279))) uint1279;\ntypedef unsigned int __attribute__ ((bitwidth(1280))) uint1280;\ntypedef unsigned int __attribute__ ((bitwidth(1281))) uint1281;\ntypedef unsigned int __attribute__ ((bitwidth(1282))) uint1282;\ntypedef unsigned int __attribute__ ((bitwidth(1283))) uint1283;\ntypedef unsigned int __attribute__ ((bitwidth(1284))) uint1284;\ntypedef unsigned int __attribute__ ((bitwidth(1285))) uint1285;\ntypedef unsigned int __attribute__ ((bitwidth(1286))) uint1286;\ntypedef unsigned int __attribute__ ((bitwidth(1287))) uint1287;\ntypedef unsigned int __attribute__ ((bitwidth(1288))) uint1288;\ntypedef unsigned int __attribute__ ((bitwidth(1289))) uint1289;\ntypedef unsigned int __attribute__ ((bitwidth(1290))) uint1290;\ntypedef unsigned int __attribute__ ((bitwidth(1291))) uint1291;\ntypedef unsigned int __attribute__ ((bitwidth(1292))) uint1292;\ntypedef unsigned int __attribute__ ((bitwidth(1293))) uint1293;\ntypedef unsigned int __attribute__ ((bitwidth(1294))) uint1294;\ntypedef unsigned int __attribute__ ((bitwidth(1295))) uint1295;\ntypedef unsigned int __attribute__ ((bitwidth(1296))) uint1296;\ntypedef unsigned int __attribute__ ((bitwidth(1297))) uint1297;\ntypedef unsigned int __attribute__ ((bitwidth(1298))) uint1298;\ntypedef unsigned int __attribute__ ((bitwidth(1299))) uint1299;\ntypedef unsigned int __attribute__ ((bitwidth(1300))) uint1300;\ntypedef unsigned int __attribute__ ((bitwidth(1301))) uint1301;\ntypedef unsigned int __attribute__ ((bitwidth(1302))) uint1302;\ntypedef unsigned int __attribute__ ((bitwidth(1303))) uint1303;\ntypedef unsigned int __attribute__ ((bitwidth(1304))) uint1304;\ntypedef unsigned int __attribute__ ((bitwidth(1305))) uint1305;\ntypedef unsigned int __attribute__ ((bitwidth(1306))) uint1306;\ntypedef unsigned int __attribute__ ((bitwidth(1307))) uint1307;\ntypedef unsigned int __attribute__ ((bitwidth(1308))) uint1308;\ntypedef unsigned int __attribute__ ((bitwidth(1309))) uint1309;\ntypedef unsigned int __attribute__ ((bitwidth(1310))) uint1310;\ntypedef unsigned int __attribute__ ((bitwidth(1311))) uint1311;\ntypedef unsigned int __attribute__ ((bitwidth(1312))) uint1312;\ntypedef unsigned int __attribute__ ((bitwidth(1313))) uint1313;\ntypedef unsigned int __attribute__ ((bitwidth(1314))) uint1314;\ntypedef unsigned int __attribute__ ((bitwidth(1315))) uint1315;\ntypedef unsigned int __attribute__ ((bitwidth(1316))) uint1316;\ntypedef unsigned int __attribute__ ((bitwidth(1317))) uint1317;\ntypedef unsigned int __attribute__ ((bitwidth(1318))) uint1318;\ntypedef unsigned int __attribute__ ((bitwidth(1319))) uint1319;\ntypedef unsigned int __attribute__ ((bitwidth(1320))) uint1320;\ntypedef unsigned int __attribute__ ((bitwidth(1321))) uint1321;\ntypedef unsigned int __attribute__ ((bitwidth(1322))) uint1322;\ntypedef unsigned int __attribute__ ((bitwidth(1323))) uint1323;\ntypedef unsigned int __attribute__ ((bitwidth(1324))) uint1324;\ntypedef unsigned int __attribute__ ((bitwidth(1325))) uint1325;\ntypedef unsigned int __attribute__ ((bitwidth(1326))) uint1326;\ntypedef unsigned int __attribute__ ((bitwidth(1327))) uint1327;\ntypedef unsigned int __attribute__ ((bitwidth(1328))) uint1328;\ntypedef unsigned int __attribute__ ((bitwidth(1329))) uint1329;\ntypedef unsigned int __attribute__ ((bitwidth(1330))) uint1330;\ntypedef unsigned int __attribute__ ((bitwidth(1331))) uint1331;\ntypedef unsigned int __attribute__ ((bitwidth(1332))) uint1332;\ntypedef unsigned int __attribute__ ((bitwidth(1333))) uint1333;\ntypedef unsigned int __attribute__ ((bitwidth(1334))) uint1334;\ntypedef unsigned int __attribute__ ((bitwidth(1335))) uint1335;\ntypedef unsigned int __attribute__ ((bitwidth(1336))) uint1336;\ntypedef unsigned int __attribute__ ((bitwidth(1337))) uint1337;\ntypedef unsigned int __attribute__ ((bitwidth(1338))) uint1338;\ntypedef unsigned int __attribute__ ((bitwidth(1339))) uint1339;\ntypedef unsigned int __attribute__ ((bitwidth(1340))) uint1340;\ntypedef unsigned int __attribute__ ((bitwidth(1341))) uint1341;\ntypedef unsigned int __attribute__ ((bitwidth(1342))) uint1342;\ntypedef unsigned int __attribute__ ((bitwidth(1343))) uint1343;\ntypedef unsigned int __attribute__ ((bitwidth(1344))) uint1344;\ntypedef unsigned int __attribute__ ((bitwidth(1345))) uint1345;\ntypedef unsigned int __attribute__ ((bitwidth(1346))) uint1346;\ntypedef unsigned int __attribute__ ((bitwidth(1347))) uint1347;\ntypedef unsigned int __attribute__ ((bitwidth(1348))) uint1348;\ntypedef unsigned int __attribute__ ((bitwidth(1349))) uint1349;\ntypedef unsigned int __attribute__ ((bitwidth(1350))) uint1350;\ntypedef unsigned int __attribute__ ((bitwidth(1351))) uint1351;\ntypedef unsigned int __attribute__ ((bitwidth(1352))) uint1352;\ntypedef unsigned int __attribute__ ((bitwidth(1353))) uint1353;\ntypedef unsigned int __attribute__ ((bitwidth(1354))) uint1354;\ntypedef unsigned int __attribute__ ((bitwidth(1355))) uint1355;\ntypedef unsigned int __attribute__ ((bitwidth(1356))) uint1356;\ntypedef unsigned int __attribute__ ((bitwidth(1357))) uint1357;\ntypedef unsigned int __attribute__ ((bitwidth(1358))) uint1358;\ntypedef unsigned int __attribute__ ((bitwidth(1359))) uint1359;\ntypedef unsigned int __attribute__ ((bitwidth(1360))) uint1360;\ntypedef unsigned int __attribute__ ((bitwidth(1361))) uint1361;\ntypedef unsigned int __attribute__ ((bitwidth(1362))) uint1362;\ntypedef unsigned int __attribute__ ((bitwidth(1363))) uint1363;\ntypedef unsigned int __attribute__ ((bitwidth(1364))) uint1364;\ntypedef unsigned int __attribute__ ((bitwidth(1365))) uint1365;\ntypedef unsigned int __attribute__ ((bitwidth(1366))) uint1366;\ntypedef unsigned int __attribute__ ((bitwidth(1367))) uint1367;\ntypedef unsigned int __attribute__ ((bitwidth(1368))) uint1368;\ntypedef unsigned int __attribute__ ((bitwidth(1369))) uint1369;\ntypedef unsigned int __attribute__ ((bitwidth(1370))) uint1370;\ntypedef unsigned int __attribute__ ((bitwidth(1371))) uint1371;\ntypedef unsigned int __attribute__ ((bitwidth(1372))) uint1372;\ntypedef unsigned int __attribute__ ((bitwidth(1373))) uint1373;\ntypedef unsigned int __attribute__ ((bitwidth(1374))) uint1374;\ntypedef unsigned int __attribute__ ((bitwidth(1375))) uint1375;\ntypedef unsigned int __attribute__ ((bitwidth(1376))) uint1376;\ntypedef unsigned int __attribute__ ((bitwidth(1377))) uint1377;\ntypedef unsigned int __attribute__ ((bitwidth(1378))) uint1378;\ntypedef unsigned int __attribute__ ((bitwidth(1379))) uint1379;\ntypedef unsigned int __attribute__ ((bitwidth(1380))) uint1380;\ntypedef unsigned int __attribute__ ((bitwidth(1381))) uint1381;\ntypedef unsigned int __attribute__ ((bitwidth(1382))) uint1382;\ntypedef unsigned int __attribute__ ((bitwidth(1383))) uint1383;\ntypedef unsigned int __attribute__ ((bitwidth(1384))) uint1384;\ntypedef unsigned int __attribute__ ((bitwidth(1385))) uint1385;\ntypedef unsigned int __attribute__ ((bitwidth(1386))) uint1386;\ntypedef unsigned int __attribute__ ((bitwidth(1387))) uint1387;\ntypedef unsigned int __attribute__ ((bitwidth(1388))) uint1388;\ntypedef unsigned int __attribute__ ((bitwidth(1389))) uint1389;\ntypedef unsigned int __attribute__ ((bitwidth(1390))) uint1390;\ntypedef unsigned int __attribute__ ((bitwidth(1391))) uint1391;\ntypedef unsigned int __attribute__ ((bitwidth(1392))) uint1392;\ntypedef unsigned int __attribute__ ((bitwidth(1393))) uint1393;\ntypedef unsigned int __attribute__ ((bitwidth(1394))) uint1394;\ntypedef unsigned int __attribute__ ((bitwidth(1395))) uint1395;\ntypedef unsigned int __attribute__ ((bitwidth(1396))) uint1396;\ntypedef unsigned int __attribute__ ((bitwidth(1397))) uint1397;\ntypedef unsigned int __attribute__ ((bitwidth(1398))) uint1398;\ntypedef unsigned int __attribute__ ((bitwidth(1399))) uint1399;\ntypedef unsigned int __attribute__ ((bitwidth(1400))) uint1400;\ntypedef unsigned int __attribute__ ((bitwidth(1401))) uint1401;\ntypedef unsigned int __attribute__ ((bitwidth(1402))) uint1402;\ntypedef unsigned int __attribute__ ((bitwidth(1403))) uint1403;\ntypedef unsigned int __attribute__ ((bitwidth(1404))) uint1404;\ntypedef unsigned int __attribute__ ((bitwidth(1405))) uint1405;\ntypedef unsigned int __attribute__ ((bitwidth(1406))) uint1406;\ntypedef unsigned int __attribute__ ((bitwidth(1407))) uint1407;\ntypedef unsigned int __attribute__ ((bitwidth(1408))) uint1408;\ntypedef unsigned int __attribute__ ((bitwidth(1409))) uint1409;\ntypedef unsigned int __attribute__ ((bitwidth(1410))) uint1410;\ntypedef unsigned int __attribute__ ((bitwidth(1411))) uint1411;\ntypedef unsigned int __attribute__ ((bitwidth(1412))) uint1412;\ntypedef unsigned int __attribute__ ((bitwidth(1413))) uint1413;\ntypedef unsigned int __attribute__ ((bitwidth(1414))) uint1414;\ntypedef unsigned int __attribute__ ((bitwidth(1415))) uint1415;\ntypedef unsigned int __attribute__ ((bitwidth(1416))) uint1416;\ntypedef unsigned int __attribute__ ((bitwidth(1417))) uint1417;\ntypedef unsigned int __attribute__ ((bitwidth(1418))) uint1418;\ntypedef unsigned int __attribute__ ((bitwidth(1419))) uint1419;\ntypedef unsigned int __attribute__ ((bitwidth(1420))) uint1420;\ntypedef unsigned int __attribute__ ((bitwidth(1421))) uint1421;\ntypedef unsigned int __attribute__ ((bitwidth(1422))) uint1422;\ntypedef unsigned int __attribute__ ((bitwidth(1423))) uint1423;\ntypedef unsigned int __attribute__ ((bitwidth(1424))) uint1424;\ntypedef unsigned int __attribute__ ((bitwidth(1425))) uint1425;\ntypedef unsigned int __attribute__ ((bitwidth(1426))) uint1426;\ntypedef unsigned int __attribute__ ((bitwidth(1427))) uint1427;\ntypedef unsigned int __attribute__ ((bitwidth(1428))) uint1428;\ntypedef unsigned int __attribute__ ((bitwidth(1429))) uint1429;\ntypedef unsigned int __attribute__ ((bitwidth(1430))) uint1430;\ntypedef unsigned int __attribute__ ((bitwidth(1431))) uint1431;\ntypedef unsigned int __attribute__ ((bitwidth(1432))) uint1432;\ntypedef unsigned int __attribute__ ((bitwidth(1433))) uint1433;\ntypedef unsigned int __attribute__ ((bitwidth(1434))) uint1434;\ntypedef unsigned int __attribute__ ((bitwidth(1435))) uint1435;\ntypedef unsigned int __attribute__ ((bitwidth(1436))) uint1436;\ntypedef unsigned int __attribute__ ((bitwidth(1437))) uint1437;\ntypedef unsigned int __attribute__ ((bitwidth(1438))) uint1438;\ntypedef unsigned int __attribute__ ((bitwidth(1439))) uint1439;\ntypedef unsigned int __attribute__ ((bitwidth(1440))) uint1440;\ntypedef unsigned int __attribute__ ((bitwidth(1441))) uint1441;\ntypedef unsigned int __attribute__ ((bitwidth(1442))) uint1442;\ntypedef unsigned int __attribute__ ((bitwidth(1443))) uint1443;\ntypedef unsigned int __attribute__ ((bitwidth(1444))) uint1444;\ntypedef unsigned int __attribute__ ((bitwidth(1445))) uint1445;\ntypedef unsigned int __attribute__ ((bitwidth(1446))) uint1446;\ntypedef unsigned int __attribute__ ((bitwidth(1447))) uint1447;\ntypedef unsigned int __attribute__ ((bitwidth(1448))) uint1448;\ntypedef unsigned int __attribute__ ((bitwidth(1449))) uint1449;\ntypedef unsigned int __attribute__ ((bitwidth(1450))) uint1450;\ntypedef unsigned int __attribute__ ((bitwidth(1451))) uint1451;\ntypedef unsigned int __attribute__ ((bitwidth(1452))) uint1452;\ntypedef unsigned int __attribute__ ((bitwidth(1453))) uint1453;\ntypedef unsigned int __attribute__ ((bitwidth(1454))) uint1454;\ntypedef unsigned int __attribute__ ((bitwidth(1455))) uint1455;\ntypedef unsigned int __attribute__ ((bitwidth(1456))) uint1456;\ntypedef unsigned int __attribute__ ((bitwidth(1457))) uint1457;\ntypedef unsigned int __attribute__ ((bitwidth(1458))) uint1458;\ntypedef unsigned int __attribute__ ((bitwidth(1459))) uint1459;\ntypedef unsigned int __attribute__ ((bitwidth(1460))) uint1460;\ntypedef unsigned int __attribute__ ((bitwidth(1461))) uint1461;\ntypedef unsigned int __attribute__ ((bitwidth(1462))) uint1462;\ntypedef unsigned int __attribute__ ((bitwidth(1463))) uint1463;\ntypedef unsigned int __attribute__ ((bitwidth(1464))) uint1464;\ntypedef unsigned int __attribute__ ((bitwidth(1465))) uint1465;\ntypedef unsigned int __attribute__ ((bitwidth(1466))) uint1466;\ntypedef unsigned int __attribute__ ((bitwidth(1467))) uint1467;\ntypedef unsigned int __attribute__ ((bitwidth(1468))) uint1468;\ntypedef unsigned int __attribute__ ((bitwidth(1469))) uint1469;\ntypedef unsigned int __attribute__ ((bitwidth(1470))) uint1470;\ntypedef unsigned int __attribute__ ((bitwidth(1471))) uint1471;\ntypedef unsigned int __attribute__ ((bitwidth(1472))) uint1472;\ntypedef unsigned int __attribute__ ((bitwidth(1473))) uint1473;\ntypedef unsigned int __attribute__ ((bitwidth(1474))) uint1474;\ntypedef unsigned int __attribute__ ((bitwidth(1475))) uint1475;\ntypedef unsigned int __attribute__ ((bitwidth(1476))) uint1476;\ntypedef unsigned int __attribute__ ((bitwidth(1477))) uint1477;\ntypedef unsigned int __attribute__ ((bitwidth(1478))) uint1478;\ntypedef unsigned int __attribute__ ((bitwidth(1479))) uint1479;\ntypedef unsigned int __attribute__ ((bitwidth(1480))) uint1480;\ntypedef unsigned int __attribute__ ((bitwidth(1481))) uint1481;\ntypedef unsigned int __attribute__ ((bitwidth(1482))) uint1482;\ntypedef unsigned int __attribute__ ((bitwidth(1483))) uint1483;\ntypedef unsigned int __attribute__ ((bitwidth(1484))) uint1484;\ntypedef unsigned int __attribute__ ((bitwidth(1485))) uint1485;\ntypedef unsigned int __attribute__ ((bitwidth(1486))) uint1486;\ntypedef unsigned int __attribute__ ((bitwidth(1487))) uint1487;\ntypedef unsigned int __attribute__ ((bitwidth(1488))) uint1488;\ntypedef unsigned int __attribute__ ((bitwidth(1489))) uint1489;\ntypedef unsigned int __attribute__ ((bitwidth(1490))) uint1490;\ntypedef unsigned int __attribute__ ((bitwidth(1491))) uint1491;\ntypedef unsigned int __attribute__ ((bitwidth(1492))) uint1492;\ntypedef unsigned int __attribute__ ((bitwidth(1493))) uint1493;\ntypedef unsigned int __attribute__ ((bitwidth(1494))) uint1494;\ntypedef unsigned int __attribute__ ((bitwidth(1495))) uint1495;\ntypedef unsigned int __attribute__ ((bitwidth(1496))) uint1496;\ntypedef unsigned int __attribute__ ((bitwidth(1497))) uint1497;\ntypedef unsigned int __attribute__ ((bitwidth(1498))) uint1498;\ntypedef unsigned int __attribute__ ((bitwidth(1499))) uint1499;\ntypedef unsigned int __attribute__ ((bitwidth(1500))) uint1500;\ntypedef unsigned int __attribute__ ((bitwidth(1501))) uint1501;\ntypedef unsigned int __attribute__ ((bitwidth(1502))) uint1502;\ntypedef unsigned int __attribute__ ((bitwidth(1503))) uint1503;\ntypedef unsigned int __attribute__ ((bitwidth(1504))) uint1504;\ntypedef unsigned int __attribute__ ((bitwidth(1505))) uint1505;\ntypedef unsigned int __attribute__ ((bitwidth(1506))) uint1506;\ntypedef unsigned int __attribute__ ((bitwidth(1507))) uint1507;\ntypedef unsigned int __attribute__ ((bitwidth(1508))) uint1508;\ntypedef unsigned int __attribute__ ((bitwidth(1509))) uint1509;\ntypedef unsigned int __attribute__ ((bitwidth(1510))) uint1510;\ntypedef unsigned int __attribute__ ((bitwidth(1511))) uint1511;\ntypedef unsigned int __attribute__ ((bitwidth(1512))) uint1512;\ntypedef unsigned int __attribute__ ((bitwidth(1513))) uint1513;\ntypedef unsigned int __attribute__ ((bitwidth(1514))) uint1514;\ntypedef unsigned int __attribute__ ((bitwidth(1515))) uint1515;\ntypedef unsigned int __attribute__ ((bitwidth(1516))) uint1516;\ntypedef unsigned int __attribute__ ((bitwidth(1517))) uint1517;\ntypedef unsigned int __attribute__ ((bitwidth(1518))) uint1518;\ntypedef unsigned int __attribute__ ((bitwidth(1519))) uint1519;\ntypedef unsigned int __attribute__ ((bitwidth(1520))) uint1520;\ntypedef unsigned int __attribute__ ((bitwidth(1521))) uint1521;\ntypedef unsigned int __attribute__ ((bitwidth(1522))) uint1522;\ntypedef unsigned int __attribute__ ((bitwidth(1523))) uint1523;\ntypedef unsigned int __attribute__ ((bitwidth(1524))) uint1524;\ntypedef unsigned int __attribute__ ((bitwidth(1525))) uint1525;\ntypedef unsigned int __attribute__ ((bitwidth(1526))) uint1526;\ntypedef unsigned int __attribute__ ((bitwidth(1527))) uint1527;\ntypedef unsigned int __attribute__ ((bitwidth(1528))) uint1528;\ntypedef unsigned int __attribute__ ((bitwidth(1529))) uint1529;\ntypedef unsigned int __attribute__ ((bitwidth(1530))) uint1530;\ntypedef unsigned int __attribute__ ((bitwidth(1531))) uint1531;\ntypedef unsigned int __attribute__ ((bitwidth(1532))) uint1532;\ntypedef unsigned int __attribute__ ((bitwidth(1533))) uint1533;\ntypedef unsigned int __attribute__ ((bitwidth(1534))) uint1534;\ntypedef unsigned int __attribute__ ((bitwidth(1535))) uint1535;\ntypedef unsigned int __attribute__ ((bitwidth(1536))) uint1536;\ntypedef unsigned int __attribute__ ((bitwidth(1537))) uint1537;\ntypedef unsigned int __attribute__ ((bitwidth(1538))) uint1538;\ntypedef unsigned int __attribute__ ((bitwidth(1539))) uint1539;\ntypedef unsigned int __attribute__ ((bitwidth(1540))) uint1540;\ntypedef unsigned int __attribute__ ((bitwidth(1541))) uint1541;\ntypedef unsigned int __attribute__ ((bitwidth(1542))) uint1542;\ntypedef unsigned int __attribute__ ((bitwidth(1543))) uint1543;\ntypedef unsigned int __attribute__ ((bitwidth(1544))) uint1544;\ntypedef unsigned int __attribute__ ((bitwidth(1545))) uint1545;\ntypedef unsigned int __attribute__ ((bitwidth(1546))) uint1546;\ntypedef unsigned int __attribute__ ((bitwidth(1547))) uint1547;\ntypedef unsigned int __attribute__ ((bitwidth(1548))) uint1548;\ntypedef unsigned int __attribute__ ((bitwidth(1549))) uint1549;\ntypedef unsigned int __attribute__ ((bitwidth(1550))) uint1550;\ntypedef unsigned int __attribute__ ((bitwidth(1551))) uint1551;\ntypedef unsigned int __attribute__ ((bitwidth(1552))) uint1552;\ntypedef unsigned int __attribute__ ((bitwidth(1553))) uint1553;\ntypedef unsigned int __attribute__ ((bitwidth(1554))) uint1554;\ntypedef unsigned int __attribute__ ((bitwidth(1555))) uint1555;\ntypedef unsigned int __attribute__ ((bitwidth(1556))) uint1556;\ntypedef unsigned int __attribute__ ((bitwidth(1557))) uint1557;\ntypedef unsigned int __attribute__ ((bitwidth(1558))) uint1558;\ntypedef unsigned int __attribute__ ((bitwidth(1559))) uint1559;\ntypedef unsigned int __attribute__ ((bitwidth(1560))) uint1560;\ntypedef unsigned int __attribute__ ((bitwidth(1561))) uint1561;\ntypedef unsigned int __attribute__ ((bitwidth(1562))) uint1562;\ntypedef unsigned int __attribute__ ((bitwidth(1563))) uint1563;\ntypedef unsigned int __attribute__ ((bitwidth(1564))) uint1564;\ntypedef unsigned int __attribute__ ((bitwidth(1565))) uint1565;\ntypedef unsigned int __attribute__ ((bitwidth(1566))) uint1566;\ntypedef unsigned int __attribute__ ((bitwidth(1567))) uint1567;\ntypedef unsigned int __attribute__ ((bitwidth(1568))) uint1568;\ntypedef unsigned int __attribute__ ((bitwidth(1569))) uint1569;\ntypedef unsigned int __attribute__ ((bitwidth(1570))) uint1570;\ntypedef unsigned int __attribute__ ((bitwidth(1571))) uint1571;\ntypedef unsigned int __attribute__ ((bitwidth(1572))) uint1572;\ntypedef unsigned int __attribute__ ((bitwidth(1573))) uint1573;\ntypedef unsigned int __attribute__ ((bitwidth(1574))) uint1574;\ntypedef unsigned int __attribute__ ((bitwidth(1575))) uint1575;\ntypedef unsigned int __attribute__ ((bitwidth(1576))) uint1576;\ntypedef unsigned int __attribute__ ((bitwidth(1577))) uint1577;\ntypedef unsigned int __attribute__ ((bitwidth(1578))) uint1578;\ntypedef unsigned int __attribute__ ((bitwidth(1579))) uint1579;\ntypedef unsigned int __attribute__ ((bitwidth(1580))) uint1580;\ntypedef unsigned int __attribute__ ((bitwidth(1581))) uint1581;\ntypedef unsigned int __attribute__ ((bitwidth(1582))) uint1582;\ntypedef unsigned int __attribute__ ((bitwidth(1583))) uint1583;\ntypedef unsigned int __attribute__ ((bitwidth(1584))) uint1584;\ntypedef unsigned int __attribute__ ((bitwidth(1585))) uint1585;\ntypedef unsigned int __attribute__ ((bitwidth(1586))) uint1586;\ntypedef unsigned int __attribute__ ((bitwidth(1587))) uint1587;\ntypedef unsigned int __attribute__ ((bitwidth(1588))) uint1588;\ntypedef unsigned int __attribute__ ((bitwidth(1589))) uint1589;\ntypedef unsigned int __attribute__ ((bitwidth(1590))) uint1590;\ntypedef unsigned int __attribute__ ((bitwidth(1591))) uint1591;\ntypedef unsigned int __attribute__ ((bitwidth(1592))) uint1592;\ntypedef unsigned int __attribute__ ((bitwidth(1593))) uint1593;\ntypedef unsigned int __attribute__ ((bitwidth(1594))) uint1594;\ntypedef unsigned int __attribute__ ((bitwidth(1595))) uint1595;\ntypedef unsigned int __attribute__ ((bitwidth(1596))) uint1596;\ntypedef unsigned int __attribute__ ((bitwidth(1597))) uint1597;\ntypedef unsigned int __attribute__ ((bitwidth(1598))) uint1598;\ntypedef unsigned int __attribute__ ((bitwidth(1599))) uint1599;\ntypedef unsigned int __attribute__ ((bitwidth(1600))) uint1600;\ntypedef unsigned int __attribute__ ((bitwidth(1601))) uint1601;\ntypedef unsigned int __attribute__ ((bitwidth(1602))) uint1602;\ntypedef unsigned int __attribute__ ((bitwidth(1603))) uint1603;\ntypedef unsigned int __attribute__ ((bitwidth(1604))) uint1604;\ntypedef unsigned int __attribute__ ((bitwidth(1605))) uint1605;\ntypedef unsigned int __attribute__ ((bitwidth(1606))) uint1606;\ntypedef unsigned int __attribute__ ((bitwidth(1607))) uint1607;\ntypedef unsigned int __attribute__ ((bitwidth(1608))) uint1608;\ntypedef unsigned int __attribute__ ((bitwidth(1609))) uint1609;\ntypedef unsigned int __attribute__ ((bitwidth(1610))) uint1610;\ntypedef unsigned int __attribute__ ((bitwidth(1611))) uint1611;\ntypedef unsigned int __attribute__ ((bitwidth(1612))) uint1612;\ntypedef unsigned int __attribute__ ((bitwidth(1613))) uint1613;\ntypedef unsigned int __attribute__ ((bitwidth(1614))) uint1614;\ntypedef unsigned int __attribute__ ((bitwidth(1615))) uint1615;\ntypedef unsigned int __attribute__ ((bitwidth(1616))) uint1616;\ntypedef unsigned int __attribute__ ((bitwidth(1617))) uint1617;\ntypedef unsigned int __attribute__ ((bitwidth(1618))) uint1618;\ntypedef unsigned int __attribute__ ((bitwidth(1619))) uint1619;\ntypedef unsigned int __attribute__ ((bitwidth(1620))) uint1620;\ntypedef unsigned int __attribute__ ((bitwidth(1621))) uint1621;\ntypedef unsigned int __attribute__ ((bitwidth(1622))) uint1622;\ntypedef unsigned int __attribute__ ((bitwidth(1623))) uint1623;\ntypedef unsigned int __attribute__ ((bitwidth(1624))) uint1624;\ntypedef unsigned int __attribute__ ((bitwidth(1625))) uint1625;\ntypedef unsigned int __attribute__ ((bitwidth(1626))) uint1626;\ntypedef unsigned int __attribute__ ((bitwidth(1627))) uint1627;\ntypedef unsigned int __attribute__ ((bitwidth(1628))) uint1628;\ntypedef unsigned int __attribute__ ((bitwidth(1629))) uint1629;\ntypedef unsigned int __attribute__ ((bitwidth(1630))) uint1630;\ntypedef unsigned int __attribute__ ((bitwidth(1631))) uint1631;\ntypedef unsigned int __attribute__ ((bitwidth(1632))) uint1632;\ntypedef unsigned int __attribute__ ((bitwidth(1633))) uint1633;\ntypedef unsigned int __attribute__ ((bitwidth(1634))) uint1634;\ntypedef unsigned int __attribute__ ((bitwidth(1635))) uint1635;\ntypedef unsigned int __attribute__ ((bitwidth(1636))) uint1636;\ntypedef unsigned int __attribute__ ((bitwidth(1637))) uint1637;\ntypedef unsigned int __attribute__ ((bitwidth(1638))) uint1638;\ntypedef unsigned int __attribute__ ((bitwidth(1639))) uint1639;\ntypedef unsigned int __attribute__ ((bitwidth(1640))) uint1640;\ntypedef unsigned int __attribute__ ((bitwidth(1641))) uint1641;\ntypedef unsigned int __attribute__ ((bitwidth(1642))) uint1642;\ntypedef unsigned int __attribute__ ((bitwidth(1643))) uint1643;\ntypedef unsigned int __attribute__ ((bitwidth(1644))) uint1644;\ntypedef unsigned int __attribute__ ((bitwidth(1645))) uint1645;\ntypedef unsigned int __attribute__ ((bitwidth(1646))) uint1646;\ntypedef unsigned int __attribute__ ((bitwidth(1647))) uint1647;\ntypedef unsigned int __attribute__ ((bitwidth(1648))) uint1648;\ntypedef unsigned int __attribute__ ((bitwidth(1649))) uint1649;\ntypedef unsigned int __attribute__ ((bitwidth(1650))) uint1650;\ntypedef unsigned int __attribute__ ((bitwidth(1651))) uint1651;\ntypedef unsigned int __attribute__ ((bitwidth(1652))) uint1652;\ntypedef unsigned int __attribute__ ((bitwidth(1653))) uint1653;\ntypedef unsigned int __attribute__ ((bitwidth(1654))) uint1654;\ntypedef unsigned int __attribute__ ((bitwidth(1655))) uint1655;\ntypedef unsigned int __attribute__ ((bitwidth(1656))) uint1656;\ntypedef unsigned int __attribute__ ((bitwidth(1657))) uint1657;\ntypedef unsigned int __attribute__ ((bitwidth(1658))) uint1658;\ntypedef unsigned int __attribute__ ((bitwidth(1659))) uint1659;\ntypedef unsigned int __attribute__ ((bitwidth(1660))) uint1660;\ntypedef unsigned int __attribute__ ((bitwidth(1661))) uint1661;\ntypedef unsigned int __attribute__ ((bitwidth(1662))) uint1662;\ntypedef unsigned int __attribute__ ((bitwidth(1663))) uint1663;\ntypedef unsigned int __attribute__ ((bitwidth(1664))) uint1664;\ntypedef unsigned int __attribute__ ((bitwidth(1665))) uint1665;\ntypedef unsigned int __attribute__ ((bitwidth(1666))) uint1666;\ntypedef unsigned int __attribute__ ((bitwidth(1667))) uint1667;\ntypedef unsigned int __attribute__ ((bitwidth(1668))) uint1668;\ntypedef unsigned int __attribute__ ((bitwidth(1669))) uint1669;\ntypedef unsigned int __attribute__ ((bitwidth(1670))) uint1670;\ntypedef unsigned int __attribute__ ((bitwidth(1671))) uint1671;\ntypedef unsigned int __attribute__ ((bitwidth(1672))) uint1672;\ntypedef unsigned int __attribute__ ((bitwidth(1673))) uint1673;\ntypedef unsigned int __attribute__ ((bitwidth(1674))) uint1674;\ntypedef unsigned int __attribute__ ((bitwidth(1675))) uint1675;\ntypedef unsigned int __attribute__ ((bitwidth(1676))) uint1676;\ntypedef unsigned int __attribute__ ((bitwidth(1677))) uint1677;\ntypedef unsigned int __attribute__ ((bitwidth(1678))) uint1678;\ntypedef unsigned int __attribute__ ((bitwidth(1679))) uint1679;\ntypedef unsigned int __attribute__ ((bitwidth(1680))) uint1680;\ntypedef unsigned int __attribute__ ((bitwidth(1681))) uint1681;\ntypedef unsigned int __attribute__ ((bitwidth(1682))) uint1682;\ntypedef unsigned int __attribute__ ((bitwidth(1683))) uint1683;\ntypedef unsigned int __attribute__ ((bitwidth(1684))) uint1684;\ntypedef unsigned int __attribute__ ((bitwidth(1685))) uint1685;\ntypedef unsigned int __attribute__ ((bitwidth(1686))) uint1686;\ntypedef unsigned int __attribute__ ((bitwidth(1687))) uint1687;\ntypedef unsigned int __attribute__ ((bitwidth(1688))) uint1688;\ntypedef unsigned int __attribute__ ((bitwidth(1689))) uint1689;\ntypedef unsigned int __attribute__ ((bitwidth(1690))) uint1690;\ntypedef unsigned int __attribute__ ((bitwidth(1691))) uint1691;\ntypedef unsigned int __attribute__ ((bitwidth(1692))) uint1692;\ntypedef unsigned int __attribute__ ((bitwidth(1693))) uint1693;\ntypedef unsigned int __attribute__ ((bitwidth(1694))) uint1694;\ntypedef unsigned int __attribute__ ((bitwidth(1695))) uint1695;\ntypedef unsigned int __attribute__ ((bitwidth(1696))) uint1696;\ntypedef unsigned int __attribute__ ((bitwidth(1697))) uint1697;\ntypedef unsigned int __attribute__ ((bitwidth(1698))) uint1698;\ntypedef unsigned int __attribute__ ((bitwidth(1699))) uint1699;\ntypedef unsigned int __attribute__ ((bitwidth(1700))) uint1700;\ntypedef unsigned int __attribute__ ((bitwidth(1701))) uint1701;\ntypedef unsigned int __attribute__ ((bitwidth(1702))) uint1702;\ntypedef unsigned int __attribute__ ((bitwidth(1703))) uint1703;\ntypedef unsigned int __attribute__ ((bitwidth(1704))) uint1704;\ntypedef unsigned int __attribute__ ((bitwidth(1705))) uint1705;\ntypedef unsigned int __attribute__ ((bitwidth(1706))) uint1706;\ntypedef unsigned int __attribute__ ((bitwidth(1707))) uint1707;\ntypedef unsigned int __attribute__ ((bitwidth(1708))) uint1708;\ntypedef unsigned int __attribute__ ((bitwidth(1709))) uint1709;\ntypedef unsigned int __attribute__ ((bitwidth(1710))) uint1710;\ntypedef unsigned int __attribute__ ((bitwidth(1711))) uint1711;\ntypedef unsigned int __attribute__ ((bitwidth(1712))) uint1712;\ntypedef unsigned int __attribute__ ((bitwidth(1713))) uint1713;\ntypedef unsigned int __attribute__ ((bitwidth(1714))) uint1714;\ntypedef unsigned int __attribute__ ((bitwidth(1715))) uint1715;\ntypedef unsigned int __attribute__ ((bitwidth(1716))) uint1716;\ntypedef unsigned int __attribute__ ((bitwidth(1717))) uint1717;\ntypedef unsigned int __attribute__ ((bitwidth(1718))) uint1718;\ntypedef unsigned int __attribute__ ((bitwidth(1719))) uint1719;\ntypedef unsigned int __attribute__ ((bitwidth(1720))) uint1720;\ntypedef unsigned int __attribute__ ((bitwidth(1721))) uint1721;\ntypedef unsigned int __attribute__ ((bitwidth(1722))) uint1722;\ntypedef unsigned int __attribute__ ((bitwidth(1723))) uint1723;\ntypedef unsigned int __attribute__ ((bitwidth(1724))) uint1724;\ntypedef unsigned int __attribute__ ((bitwidth(1725))) uint1725;\ntypedef unsigned int __attribute__ ((bitwidth(1726))) uint1726;\ntypedef unsigned int __attribute__ ((bitwidth(1727))) uint1727;\ntypedef unsigned int __attribute__ ((bitwidth(1728))) uint1728;\ntypedef unsigned int __attribute__ ((bitwidth(1729))) uint1729;\ntypedef unsigned int __attribute__ ((bitwidth(1730))) uint1730;\ntypedef unsigned int __attribute__ ((bitwidth(1731))) uint1731;\ntypedef unsigned int __attribute__ ((bitwidth(1732))) uint1732;\ntypedef unsigned int __attribute__ ((bitwidth(1733))) uint1733;\ntypedef unsigned int __attribute__ ((bitwidth(1734))) uint1734;\ntypedef unsigned int __attribute__ ((bitwidth(1735))) uint1735;\ntypedef unsigned int __attribute__ ((bitwidth(1736))) uint1736;\ntypedef unsigned int __attribute__ ((bitwidth(1737))) uint1737;\ntypedef unsigned int __attribute__ ((bitwidth(1738))) uint1738;\ntypedef unsigned int __attribute__ ((bitwidth(1739))) uint1739;\ntypedef unsigned int __attribute__ ((bitwidth(1740))) uint1740;\ntypedef unsigned int __attribute__ ((bitwidth(1741))) uint1741;\ntypedef unsigned int __attribute__ ((bitwidth(1742))) uint1742;\ntypedef unsigned int __attribute__ ((bitwidth(1743))) uint1743;\ntypedef unsigned int __attribute__ ((bitwidth(1744))) uint1744;\ntypedef unsigned int __attribute__ ((bitwidth(1745))) uint1745;\ntypedef unsigned int __attribute__ ((bitwidth(1746))) uint1746;\ntypedef unsigned int __attribute__ ((bitwidth(1747))) uint1747;\ntypedef unsigned int __attribute__ ((bitwidth(1748))) uint1748;\ntypedef unsigned int __attribute__ ((bitwidth(1749))) uint1749;\ntypedef unsigned int __attribute__ ((bitwidth(1750))) uint1750;\ntypedef unsigned int __attribute__ ((bitwidth(1751))) uint1751;\ntypedef unsigned int __attribute__ ((bitwidth(1752))) uint1752;\ntypedef unsigned int __attribute__ ((bitwidth(1753))) uint1753;\ntypedef unsigned int __attribute__ ((bitwidth(1754))) uint1754;\ntypedef unsigned int __attribute__ ((bitwidth(1755))) uint1755;\ntypedef unsigned int __attribute__ ((bitwidth(1756))) uint1756;\ntypedef unsigned int __attribute__ ((bitwidth(1757))) uint1757;\ntypedef unsigned int __attribute__ ((bitwidth(1758))) uint1758;\ntypedef unsigned int __attribute__ ((bitwidth(1759))) uint1759;\ntypedef unsigned int __attribute__ ((bitwidth(1760))) uint1760;\ntypedef unsigned int __attribute__ ((bitwidth(1761))) uint1761;\ntypedef unsigned int __attribute__ ((bitwidth(1762))) uint1762;\ntypedef unsigned int __attribute__ ((bitwidth(1763))) uint1763;\ntypedef unsigned int __attribute__ ((bitwidth(1764))) uint1764;\ntypedef unsigned int __attribute__ ((bitwidth(1765))) uint1765;\ntypedef unsigned int __attribute__ ((bitwidth(1766))) uint1766;\ntypedef unsigned int __attribute__ ((bitwidth(1767))) uint1767;\ntypedef unsigned int __attribute__ ((bitwidth(1768))) uint1768;\ntypedef unsigned int __attribute__ ((bitwidth(1769))) uint1769;\ntypedef unsigned int __attribute__ ((bitwidth(1770))) uint1770;\ntypedef unsigned int __attribute__ ((bitwidth(1771))) uint1771;\ntypedef unsigned int __attribute__ ((bitwidth(1772))) uint1772;\ntypedef unsigned int __attribute__ ((bitwidth(1773))) uint1773;\ntypedef unsigned int __attribute__ ((bitwidth(1774))) uint1774;\ntypedef unsigned int __attribute__ ((bitwidth(1775))) uint1775;\ntypedef unsigned int __attribute__ ((bitwidth(1776))) uint1776;\ntypedef unsigned int __attribute__ ((bitwidth(1777))) uint1777;\ntypedef unsigned int __attribute__ ((bitwidth(1778))) uint1778;\ntypedef unsigned int __attribute__ ((bitwidth(1779))) uint1779;\ntypedef unsigned int __attribute__ ((bitwidth(1780))) uint1780;\ntypedef unsigned int __attribute__ ((bitwidth(1781))) uint1781;\ntypedef unsigned int __attribute__ ((bitwidth(1782))) uint1782;\ntypedef unsigned int __attribute__ ((bitwidth(1783))) uint1783;\ntypedef unsigned int __attribute__ ((bitwidth(1784))) uint1784;\ntypedef unsigned int __attribute__ ((bitwidth(1785))) uint1785;\ntypedef unsigned int __attribute__ ((bitwidth(1786))) uint1786;\ntypedef unsigned int __attribute__ ((bitwidth(1787))) uint1787;\ntypedef unsigned int __attribute__ ((bitwidth(1788))) uint1788;\ntypedef unsigned int __attribute__ ((bitwidth(1789))) uint1789;\ntypedef unsigned int __attribute__ ((bitwidth(1790))) uint1790;\ntypedef unsigned int __attribute__ ((bitwidth(1791))) uint1791;\ntypedef unsigned int __attribute__ ((bitwidth(1792))) uint1792;\ntypedef unsigned int __attribute__ ((bitwidth(1793))) uint1793;\ntypedef unsigned int __attribute__ ((bitwidth(1794))) uint1794;\ntypedef unsigned int __attribute__ ((bitwidth(1795))) uint1795;\ntypedef unsigned int __attribute__ ((bitwidth(1796))) uint1796;\ntypedef unsigned int __attribute__ ((bitwidth(1797))) uint1797;\ntypedef unsigned int __attribute__ ((bitwidth(1798))) uint1798;\ntypedef unsigned int __attribute__ ((bitwidth(1799))) uint1799;\ntypedef unsigned int __attribute__ ((bitwidth(1800))) uint1800;\ntypedef unsigned int __attribute__ ((bitwidth(1801))) uint1801;\ntypedef unsigned int __attribute__ ((bitwidth(1802))) uint1802;\ntypedef unsigned int __attribute__ ((bitwidth(1803))) uint1803;\ntypedef unsigned int __attribute__ ((bitwidth(1804))) uint1804;\ntypedef unsigned int __attribute__ ((bitwidth(1805))) uint1805;\ntypedef unsigned int __attribute__ ((bitwidth(1806))) uint1806;\ntypedef unsigned int __attribute__ ((bitwidth(1807))) uint1807;\ntypedef unsigned int __attribute__ ((bitwidth(1808))) uint1808;\ntypedef unsigned int __attribute__ ((bitwidth(1809))) uint1809;\ntypedef unsigned int __attribute__ ((bitwidth(1810))) uint1810;\ntypedef unsigned int __attribute__ ((bitwidth(1811))) uint1811;\ntypedef unsigned int __attribute__ ((bitwidth(1812))) uint1812;\ntypedef unsigned int __attribute__ ((bitwidth(1813))) uint1813;\ntypedef unsigned int __attribute__ ((bitwidth(1814))) uint1814;\ntypedef unsigned int __attribute__ ((bitwidth(1815))) uint1815;\ntypedef unsigned int __attribute__ ((bitwidth(1816))) uint1816;\ntypedef unsigned int __attribute__ ((bitwidth(1817))) uint1817;\ntypedef unsigned int __attribute__ ((bitwidth(1818))) uint1818;\ntypedef unsigned int __attribute__ ((bitwidth(1819))) uint1819;\ntypedef unsigned int __attribute__ ((bitwidth(1820))) uint1820;\ntypedef unsigned int __attribute__ ((bitwidth(1821))) uint1821;\ntypedef unsigned int __attribute__ ((bitwidth(1822))) uint1822;\ntypedef unsigned int __attribute__ ((bitwidth(1823))) uint1823;\ntypedef unsigned int __attribute__ ((bitwidth(1824))) uint1824;\ntypedef unsigned int __attribute__ ((bitwidth(1825))) uint1825;\ntypedef unsigned int __attribute__ ((bitwidth(1826))) uint1826;\ntypedef unsigned int __attribute__ ((bitwidth(1827))) uint1827;\ntypedef unsigned int __attribute__ ((bitwidth(1828))) uint1828;\ntypedef unsigned int __attribute__ ((bitwidth(1829))) uint1829;\ntypedef unsigned int __attribute__ ((bitwidth(1830))) uint1830;\ntypedef unsigned int __attribute__ ((bitwidth(1831))) uint1831;\ntypedef unsigned int __attribute__ ((bitwidth(1832))) uint1832;\ntypedef unsigned int __attribute__ ((bitwidth(1833))) uint1833;\ntypedef unsigned int __attribute__ ((bitwidth(1834))) uint1834;\ntypedef unsigned int __attribute__ ((bitwidth(1835))) uint1835;\ntypedef unsigned int __attribute__ ((bitwidth(1836))) uint1836;\ntypedef unsigned int __attribute__ ((bitwidth(1837))) uint1837;\ntypedef unsigned int __attribute__ ((bitwidth(1838))) uint1838;\ntypedef unsigned int __attribute__ ((bitwidth(1839))) uint1839;\ntypedef unsigned int __attribute__ ((bitwidth(1840))) uint1840;\ntypedef unsigned int __attribute__ ((bitwidth(1841))) uint1841;\ntypedef unsigned int __attribute__ ((bitwidth(1842))) uint1842;\ntypedef unsigned int __attribute__ ((bitwidth(1843))) uint1843;\ntypedef unsigned int __attribute__ ((bitwidth(1844))) uint1844;\ntypedef unsigned int __attribute__ ((bitwidth(1845))) uint1845;\ntypedef unsigned int __attribute__ ((bitwidth(1846))) uint1846;\ntypedef unsigned int __attribute__ ((bitwidth(1847))) uint1847;\ntypedef unsigned int __attribute__ ((bitwidth(1848))) uint1848;\ntypedef unsigned int __attribute__ ((bitwidth(1849))) uint1849;\ntypedef unsigned int __attribute__ ((bitwidth(1850))) uint1850;\ntypedef unsigned int __attribute__ ((bitwidth(1851))) uint1851;\ntypedef unsigned int __attribute__ ((bitwidth(1852))) uint1852;\ntypedef unsigned int __attribute__ ((bitwidth(1853))) uint1853;\ntypedef unsigned int __attribute__ ((bitwidth(1854))) uint1854;\ntypedef unsigned int __attribute__ ((bitwidth(1855))) uint1855;\ntypedef unsigned int __attribute__ ((bitwidth(1856))) uint1856;\ntypedef unsigned int __attribute__ ((bitwidth(1857))) uint1857;\ntypedef unsigned int __attribute__ ((bitwidth(1858))) uint1858;\ntypedef unsigned int __attribute__ ((bitwidth(1859))) uint1859;\ntypedef unsigned int __attribute__ ((bitwidth(1860))) uint1860;\ntypedef unsigned int __attribute__ ((bitwidth(1861))) uint1861;\ntypedef unsigned int __attribute__ ((bitwidth(1862))) uint1862;\ntypedef unsigned int __attribute__ ((bitwidth(1863))) uint1863;\ntypedef unsigned int __attribute__ ((bitwidth(1864))) uint1864;\ntypedef unsigned int __attribute__ ((bitwidth(1865))) uint1865;\ntypedef unsigned int __attribute__ ((bitwidth(1866))) uint1866;\ntypedef unsigned int __attribute__ ((bitwidth(1867))) uint1867;\ntypedef unsigned int __attribute__ ((bitwidth(1868))) uint1868;\ntypedef unsigned int __attribute__ ((bitwidth(1869))) uint1869;\ntypedef unsigned int __attribute__ ((bitwidth(1870))) uint1870;\ntypedef unsigned int __attribute__ ((bitwidth(1871))) uint1871;\ntypedef unsigned int __attribute__ ((bitwidth(1872))) uint1872;\ntypedef unsigned int __attribute__ ((bitwidth(1873))) uint1873;\ntypedef unsigned int __attribute__ ((bitwidth(1874))) uint1874;\ntypedef unsigned int __attribute__ ((bitwidth(1875))) uint1875;\ntypedef unsigned int __attribute__ ((bitwidth(1876))) uint1876;\ntypedef unsigned int __attribute__ ((bitwidth(1877))) uint1877;\ntypedef unsigned int __attribute__ ((bitwidth(1878))) uint1878;\ntypedef unsigned int __attribute__ ((bitwidth(1879))) uint1879;\ntypedef unsigned int __attribute__ ((bitwidth(1880))) uint1880;\ntypedef unsigned int __attribute__ ((bitwidth(1881))) uint1881;\ntypedef unsigned int __attribute__ ((bitwidth(1882))) uint1882;\ntypedef unsigned int __attribute__ ((bitwidth(1883))) uint1883;\ntypedef unsigned int __attribute__ ((bitwidth(1884))) uint1884;\ntypedef unsigned int __attribute__ ((bitwidth(1885))) uint1885;\ntypedef unsigned int __attribute__ ((bitwidth(1886))) uint1886;\ntypedef unsigned int __attribute__ ((bitwidth(1887))) uint1887;\ntypedef unsigned int __attribute__ ((bitwidth(1888))) uint1888;\ntypedef unsigned int __attribute__ ((bitwidth(1889))) uint1889;\ntypedef unsigned int __attribute__ ((bitwidth(1890))) uint1890;\ntypedef unsigned int __attribute__ ((bitwidth(1891))) uint1891;\ntypedef unsigned int __attribute__ ((bitwidth(1892))) uint1892;\ntypedef unsigned int __attribute__ ((bitwidth(1893))) uint1893;\ntypedef unsigned int __attribute__ ((bitwidth(1894))) uint1894;\ntypedef unsigned int __attribute__ ((bitwidth(1895))) uint1895;\ntypedef unsigned int __attribute__ ((bitwidth(1896))) uint1896;\ntypedef unsigned int __attribute__ ((bitwidth(1897))) uint1897;\ntypedef unsigned int __attribute__ ((bitwidth(1898))) uint1898;\ntypedef unsigned int __attribute__ ((bitwidth(1899))) uint1899;\ntypedef unsigned int __attribute__ ((bitwidth(1900))) uint1900;\ntypedef unsigned int __attribute__ ((bitwidth(1901))) uint1901;\ntypedef unsigned int __attribute__ ((bitwidth(1902))) uint1902;\ntypedef unsigned int __attribute__ ((bitwidth(1903))) uint1903;\ntypedef unsigned int __attribute__ ((bitwidth(1904))) uint1904;\ntypedef unsigned int __attribute__ ((bitwidth(1905))) uint1905;\ntypedef unsigned int __attribute__ ((bitwidth(1906))) uint1906;\ntypedef unsigned int __attribute__ ((bitwidth(1907))) uint1907;\ntypedef unsigned int __attribute__ ((bitwidth(1908))) uint1908;\ntypedef unsigned int __attribute__ ((bitwidth(1909))) uint1909;\ntypedef unsigned int __attribute__ ((bitwidth(1910))) uint1910;\ntypedef unsigned int __attribute__ ((bitwidth(1911))) uint1911;\ntypedef unsigned int __attribute__ ((bitwidth(1912))) uint1912;\ntypedef unsigned int __attribute__ ((bitwidth(1913))) uint1913;\ntypedef unsigned int __attribute__ ((bitwidth(1914))) uint1914;\ntypedef unsigned int __attribute__ ((bitwidth(1915))) uint1915;\ntypedef unsigned int __attribute__ ((bitwidth(1916))) uint1916;\ntypedef unsigned int __attribute__ ((bitwidth(1917))) uint1917;\ntypedef unsigned int __attribute__ ((bitwidth(1918))) uint1918;\ntypedef unsigned int __attribute__ ((bitwidth(1919))) uint1919;\ntypedef unsigned int __attribute__ ((bitwidth(1920))) uint1920;\ntypedef unsigned int __attribute__ ((bitwidth(1921))) uint1921;\ntypedef unsigned int __attribute__ ((bitwidth(1922))) uint1922;\ntypedef unsigned int __attribute__ ((bitwidth(1923))) uint1923;\ntypedef unsigned int __attribute__ ((bitwidth(1924))) uint1924;\ntypedef unsigned int __attribute__ ((bitwidth(1925))) uint1925;\ntypedef unsigned int __attribute__ ((bitwidth(1926))) uint1926;\ntypedef unsigned int __attribute__ ((bitwidth(1927))) uint1927;\ntypedef unsigned int __attribute__ ((bitwidth(1928))) uint1928;\ntypedef unsigned int __attribute__ ((bitwidth(1929))) uint1929;\ntypedef unsigned int __attribute__ ((bitwidth(1930))) uint1930;\ntypedef unsigned int __attribute__ ((bitwidth(1931))) uint1931;\ntypedef unsigned int __attribute__ ((bitwidth(1932))) uint1932;\ntypedef unsigned int __attribute__ ((bitwidth(1933))) uint1933;\ntypedef unsigned int __attribute__ ((bitwidth(1934))) uint1934;\ntypedef unsigned int __attribute__ ((bitwidth(1935))) uint1935;\ntypedef unsigned int __attribute__ ((bitwidth(1936))) uint1936;\ntypedef unsigned int __attribute__ ((bitwidth(1937))) uint1937;\ntypedef unsigned int __attribute__ ((bitwidth(1938))) uint1938;\ntypedef unsigned int __attribute__ ((bitwidth(1939))) uint1939;\ntypedef unsigned int __attribute__ ((bitwidth(1940))) uint1940;\ntypedef unsigned int __attribute__ ((bitwidth(1941))) uint1941;\ntypedef unsigned int __attribute__ ((bitwidth(1942))) uint1942;\ntypedef unsigned int __attribute__ ((bitwidth(1943))) uint1943;\ntypedef unsigned int __attribute__ ((bitwidth(1944))) uint1944;\ntypedef unsigned int __attribute__ ((bitwidth(1945))) uint1945;\ntypedef unsigned int __attribute__ ((bitwidth(1946))) uint1946;\ntypedef unsigned int __attribute__ ((bitwidth(1947))) uint1947;\ntypedef unsigned int __attribute__ ((bitwidth(1948))) uint1948;\ntypedef unsigned int __attribute__ ((bitwidth(1949))) uint1949;\ntypedef unsigned int __attribute__ ((bitwidth(1950))) uint1950;\ntypedef unsigned int __attribute__ ((bitwidth(1951))) uint1951;\ntypedef unsigned int __attribute__ ((bitwidth(1952))) uint1952;\ntypedef unsigned int __attribute__ ((bitwidth(1953))) uint1953;\ntypedef unsigned int __attribute__ ((bitwidth(1954))) uint1954;\ntypedef unsigned int __attribute__ ((bitwidth(1955))) uint1955;\ntypedef unsigned int __attribute__ ((bitwidth(1956))) uint1956;\ntypedef unsigned int __attribute__ ((bitwidth(1957))) uint1957;\ntypedef unsigned int __attribute__ ((bitwidth(1958))) uint1958;\ntypedef unsigned int __attribute__ ((bitwidth(1959))) uint1959;\ntypedef unsigned int __attribute__ ((bitwidth(1960))) uint1960;\ntypedef unsigned int __attribute__ ((bitwidth(1961))) uint1961;\ntypedef unsigned int __attribute__ ((bitwidth(1962))) uint1962;\ntypedef unsigned int __attribute__ ((bitwidth(1963))) uint1963;\ntypedef unsigned int __attribute__ ((bitwidth(1964))) uint1964;\ntypedef unsigned int __attribute__ ((bitwidth(1965))) uint1965;\ntypedef unsigned int __attribute__ ((bitwidth(1966))) uint1966;\ntypedef unsigned int __attribute__ ((bitwidth(1967))) uint1967;\ntypedef unsigned int __attribute__ ((bitwidth(1968))) uint1968;\ntypedef unsigned int __attribute__ ((bitwidth(1969))) uint1969;\ntypedef unsigned int __attribute__ ((bitwidth(1970))) uint1970;\ntypedef unsigned int __attribute__ ((bitwidth(1971))) uint1971;\ntypedef unsigned int __attribute__ ((bitwidth(1972))) uint1972;\ntypedef unsigned int __attribute__ ((bitwidth(1973))) uint1973;\ntypedef unsigned int __attribute__ ((bitwidth(1974))) uint1974;\ntypedef unsigned int __attribute__ ((bitwidth(1975))) uint1975;\ntypedef unsigned int __attribute__ ((bitwidth(1976))) uint1976;\ntypedef unsigned int __attribute__ ((bitwidth(1977))) uint1977;\ntypedef unsigned int __attribute__ ((bitwidth(1978))) uint1978;\ntypedef unsigned int __attribute__ ((bitwidth(1979))) uint1979;\ntypedef unsigned int __attribute__ ((bitwidth(1980))) uint1980;\ntypedef unsigned int __attribute__ ((bitwidth(1981))) uint1981;\ntypedef unsigned int __attribute__ ((bitwidth(1982))) uint1982;\ntypedef unsigned int __attribute__ ((bitwidth(1983))) uint1983;\ntypedef unsigned int __attribute__ ((bitwidth(1984))) uint1984;\ntypedef unsigned int __attribute__ ((bitwidth(1985))) uint1985;\ntypedef unsigned int __attribute__ ((bitwidth(1986))) uint1986;\ntypedef unsigned int __attribute__ ((bitwidth(1987))) uint1987;\ntypedef unsigned int __attribute__ ((bitwidth(1988))) uint1988;\ntypedef unsigned int __attribute__ ((bitwidth(1989))) uint1989;\ntypedef unsigned int __attribute__ ((bitwidth(1990))) uint1990;\ntypedef unsigned int __attribute__ ((bitwidth(1991))) uint1991;\ntypedef unsigned int __attribute__ ((bitwidth(1992))) uint1992;\ntypedef unsigned int __attribute__ ((bitwidth(1993))) uint1993;\ntypedef unsigned int __attribute__ ((bitwidth(1994))) uint1994;\ntypedef unsigned int __attribute__ ((bitwidth(1995))) uint1995;\ntypedef unsigned int __attribute__ ((bitwidth(1996))) uint1996;\ntypedef unsigned int __attribute__ ((bitwidth(1997))) uint1997;\ntypedef unsigned int __attribute__ ((bitwidth(1998))) uint1998;\ntypedef unsigned int __attribute__ ((bitwidth(1999))) uint1999;\ntypedef unsigned int __attribute__ ((bitwidth(2000))) uint2000;\ntypedef unsigned int __attribute__ ((bitwidth(2001))) uint2001;\ntypedef unsigned int __attribute__ ((bitwidth(2002))) uint2002;\ntypedef unsigned int __attribute__ ((bitwidth(2003))) uint2003;\ntypedef unsigned int __attribute__ ((bitwidth(2004))) uint2004;\ntypedef unsigned int __attribute__ ((bitwidth(2005))) uint2005;\ntypedef unsigned int __attribute__ ((bitwidth(2006))) uint2006;\ntypedef unsigned int __attribute__ ((bitwidth(2007))) uint2007;\ntypedef unsigned int __attribute__ ((bitwidth(2008))) uint2008;\ntypedef unsigned int __attribute__ ((bitwidth(2009))) uint2009;\ntypedef unsigned int __attribute__ ((bitwidth(2010))) uint2010;\ntypedef unsigned int __attribute__ ((bitwidth(2011))) uint2011;\ntypedef unsigned int __attribute__ ((bitwidth(2012))) uint2012;\ntypedef unsigned int __attribute__ ((bitwidth(2013))) uint2013;\ntypedef unsigned int __attribute__ ((bitwidth(2014))) uint2014;\ntypedef unsigned int __attribute__ ((bitwidth(2015))) uint2015;\ntypedef unsigned int __attribute__ ((bitwidth(2016))) uint2016;\ntypedef unsigned int __attribute__ ((bitwidth(2017))) uint2017;\ntypedef unsigned int __attribute__ ((bitwidth(2018))) uint2018;\ntypedef unsigned int __attribute__ ((bitwidth(2019))) uint2019;\ntypedef unsigned int __attribute__ ((bitwidth(2020))) uint2020;\ntypedef unsigned int __attribute__ ((bitwidth(2021))) uint2021;\ntypedef unsigned int __attribute__ ((bitwidth(2022))) uint2022;\ntypedef unsigned int __attribute__ ((bitwidth(2023))) uint2023;\ntypedef unsigned int __attribute__ ((bitwidth(2024))) uint2024;\ntypedef unsigned int __attribute__ ((bitwidth(2025))) uint2025;\ntypedef unsigned int __attribute__ ((bitwidth(2026))) uint2026;\ntypedef unsigned int __attribute__ ((bitwidth(2027))) uint2027;\ntypedef unsigned int __attribute__ ((bitwidth(2028))) uint2028;\ntypedef unsigned int __attribute__ ((bitwidth(2029))) uint2029;\ntypedef unsigned int __attribute__ ((bitwidth(2030))) uint2030;\ntypedef unsigned int __attribute__ ((bitwidth(2031))) uint2031;\ntypedef unsigned int __attribute__ ((bitwidth(2032))) uint2032;\ntypedef unsigned int __attribute__ ((bitwidth(2033))) uint2033;\ntypedef unsigned int __attribute__ ((bitwidth(2034))) uint2034;\ntypedef unsigned int __attribute__ ((bitwidth(2035))) uint2035;\ntypedef unsigned int __attribute__ ((bitwidth(2036))) uint2036;\ntypedef unsigned int __attribute__ ((bitwidth(2037))) uint2037;\ntypedef unsigned int __attribute__ ((bitwidth(2038))) uint2038;\ntypedef unsigned int __attribute__ ((bitwidth(2039))) uint2039;\ntypedef unsigned int __attribute__ ((bitwidth(2040))) uint2040;\ntypedef unsigned int __attribute__ ((bitwidth(2041))) uint2041;\ntypedef unsigned int __attribute__ ((bitwidth(2042))) uint2042;\ntypedef unsigned int __attribute__ ((bitwidth(2043))) uint2043;\ntypedef unsigned int __attribute__ ((bitwidth(2044))) uint2044;\ntypedef unsigned int __attribute__ ((bitwidth(2045))) uint2045;\ntypedef unsigned int __attribute__ ((bitwidth(2046))) uint2046;\ntypedef unsigned int __attribute__ ((bitwidth(2047))) uint2047;\ntypedef unsigned int __attribute__ ((bitwidth(2048))) uint2048;\n#pragma line 110 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_dt.h\" 2\n#pragma line 131 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_dt.h\"\ntypedef int __attribute__ ((bitwidth(64))) int64;\ntypedef unsigned int __attribute__ ((bitwidth(64))) uint64;\n#pragma line 58 \"C:/Xilinx/Vivado/2018.2/include/etc/autopilot_apint.h\" 2\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_ssdm_bits.h\" 1\n#pragma line 64 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_ssdm_bits.h\"\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\assert.h\" 1 3\n#pragma line 15 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\assert.h\" 3\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 1 3\n#pragma line 15 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\assert.h\" 2 3\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n void __cdecl __attribute__ ((__nothrow__)) exit(int _Code) __attribute__ ((__noreturn__));\n __attribute__ ((__dllimport__)) void __cdecl __attribute__ ((__nothrow__)) _exit(int _Code) __attribute__ ((__noreturn__));\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n void __cdecl _Exit(int) __attribute__ ((__noreturn__));\n#pragma line 36 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\assert.h\" 3\n void __cdecl __attribute__((noreturn)) abort(void);\n#pragma line 45 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\assert.h\" 3\nextern void __cdecl\n_wassert(const wchar_t *_Message,const wchar_t *_File,unsigned _Line);\nextern void __cdecl\n_assert (const char *_Message, const char *_File, unsigned _Line);\n#pragma line 65 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_ssdm_bits.h\" 2\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 1 3\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 1 3\n#pragma line 9 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 2 3\n#pragma empty_line\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/include\\\\limits.h\" 1 3 4\n#pragma line 38 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/include\\\\limits.h\" 3 4\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\limits.h\" 1 3 4\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 1 3 4\n#pragma line 6 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\limits.h\" 2 3 4\n#pragma line 38 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/include\\\\limits.h\" 2 3 4\n#pragma line 10 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 2 3\n#pragma empty_line\n#pragma empty_line\n#pragma pack(push,_CRT_PACKING)\n#pragma line 36 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n typedef int (__cdecl *_onexit_t)(void);\n#pragma line 46 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n typedef struct _div_t {\n int quot;\n int rem;\n } div_t;\n#pragma empty_line\n typedef struct _ldiv_t {\n long quot;\n long rem;\n } ldiv_t;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma pack(4)\n typedef struct {\n unsigned char ld[10];\n } _LDOUBLE;\n#pragma pack()\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n typedef struct {\n double x;\n } _CRT_DOUBLE;\n#pragma empty_line\n typedef struct {\n float f;\n } _CRT_FLOAT;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n typedef struct {\n long double x;\n } _LONGDOUBLE;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma pack(4)\n typedef struct {\n unsigned char ld12[12];\n } _LDBL12;\n#pragma pack()\n#pragma line 100 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n extern int * __imp___mb_cur_max;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n extern int* __imp___mbcur_max;\n#pragma line 132 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n typedef void (__cdecl *_purecall_handler)(void);\n#pragma empty_line\n __attribute__ ((__dllimport__)) _purecall_handler __cdecl _set_purecall_handler(_purecall_handler _Handler);\n __attribute__ ((__dllimport__)) _purecall_handler __cdecl _get_purecall_handler(void);\n#pragma empty_line\n typedef void (__cdecl *_invalid_parameter_handler)(const wchar_t *,const wchar_t *,const wchar_t *,unsigned int,uintptr_t);\n _invalid_parameter_handler __cdecl _set_invalid_parameter_handler(_invalid_parameter_handler _Handler);\n _invalid_parameter_handler __cdecl _get_invalid_parameter_handler(void);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n __attribute__ ((__dllimport__)) extern int *__cdecl _errno(void);\n#pragma empty_line\n errno_t __cdecl _set_errno(int _Value);\n errno_t __cdecl _get_errno(int *_Value);\n#pragma empty_line\n __attribute__ ((__dllimport__)) unsigned long *__cdecl __doserrno(void);\n#pragma empty_line\n errno_t __cdecl _set_doserrno(unsigned long _Value);\n errno_t __cdecl _get_doserrno(unsigned long *_Value);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n extern __attribute__ ((__dllimport__)) char *_sys_errlist[1];\n extern __attribute__ ((__dllimport__)) int _sys_nerr;\n#pragma line 172 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n extern int * __imp___argc;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n extern char *** __imp___argv;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n extern wchar_t *** __imp___wargv;\n#pragma line 200 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n extern char *** __imp__environ;\n#pragma line 209 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n extern wchar_t *** __imp__wenviron;\n#pragma line 218 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n extern char ** __imp__pgmptr;\n#pragma line 227 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n extern wchar_t ** __imp__wpgmptr;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n errno_t __cdecl _get_pgmptr(char **_Value);\n errno_t __cdecl _get_wpgmptr(wchar_t **_Value);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n extern int * __imp__fmode;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n __attribute__ ((__dllimport__)) errno_t __cdecl _set_fmode(int _Mode);\n __attribute__ ((__dllimport__)) errno_t __cdecl _get_fmode(int *_PMode);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n extern unsigned int * __imp__osplatform;\n#pragma line 257 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n extern unsigned int * __imp__osver;\n#pragma line 266 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n extern unsigned int * __imp__winver;\n#pragma line 275 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n extern unsigned int * __imp__winmajor;\n#pragma line 284 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n extern unsigned int * __imp__winminor;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n errno_t __cdecl _get_osplatform(unsigned int *_Value);\n errno_t __cdecl _get_osver(unsigned int *_Value);\n errno_t __cdecl _get_winver(unsigned int *_Value);\n errno_t __cdecl _get_winmajor(unsigned int *_Value);\n errno_t __cdecl _get_winminor(unsigned int *_Value);\n#pragma line 326 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n __attribute__ ((__dllimport__)) unsigned int __cdecl _set_abort_behavior(unsigned int _Flags,unsigned int _Mask);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n __extension__ long long __cdecl _abs64(long long);\n int __cdecl atexit(void (__cdecl *)(void));\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n int __cdecl atoi(const char *_Str);\n __attribute__ ((__dllimport__)) int __cdecl _atoi_l(const char *_Str,_locale_t _Locale);\n long __cdecl atol(const char *_Str);\n __attribute__ ((__dllimport__)) long __cdecl _atol_l(const char *_Str,_locale_t _Locale);\n#pragma empty_line\n#pragma empty_line\n void *__cdecl bsearch(const void *_Key,const void *_Base,size_t _NumOfElements,size_t _SizeOfElements,int (__cdecl *_PtFuncCompare)(const void *,const void *));\n void __cdecl qsort(void *_Base,size_t _NumOfElements,size_t _SizeOfElements,int (__cdecl *_PtFuncCompare)(const void *,const void *));\n#pragma empty_line\n unsigned short __cdecl _byteswap_ushort(unsigned short _Short);\n#pragma empty_line\n __extension__ unsigned long long __cdecl _byteswap_uint64(unsigned long long _Int64);\n div_t __cdecl div(int _Numerator,int _Denominator);\n char *__cdecl getenv(const char *_VarName) ;\n __attribute__ ((__dllimport__)) char *__cdecl _itoa(int _Value,char *_Dest,int _Radix);\n __extension__ __attribute__ ((__dllimport__)) char *__cdecl _i64toa(long long _Val,char *_DstBuf,int _Radix) ;\n __extension__ __attribute__ ((__dllimport__)) char *__cdecl _ui64toa(unsigned long long _Val,char *_DstBuf,int _Radix) ;\n __extension__ __attribute__ ((__dllimport__)) long long __cdecl _atoi64(const char *_String);\n __extension__ __attribute__ ((__dllimport__)) long long __cdecl _atoi64_l(const char *_String,_locale_t _Locale);\n __extension__ __attribute__ ((__dllimport__)) long long __cdecl _strtoi64(const char *_String,char **_EndPtr,int _Radix);\n __extension__ __attribute__ ((__dllimport__)) long long __cdecl _strtoi64_l(const char *_String,char **_EndPtr,int _Radix,_locale_t _Locale);\n __extension__ __attribute__ ((__dllimport__)) unsigned long long __cdecl _strtoui64(const char *_String,char **_EndPtr,int _Radix);\n __extension__ __attribute__ ((__dllimport__)) unsigned long long __cdecl _strtoui64_l(const char *_String,char **_EndPtr,int _Radix,_locale_t _Locale);\n ldiv_t __cdecl ldiv(long _Numerator,long _Denominator);\n __attribute__ ((__dllimport__)) char *__cdecl _ltoa(long _Value,char *_Dest,int _Radix) ;\n int __cdecl mblen(const char *_Ch,size_t _MaxCount);\n __attribute__ ((__dllimport__)) int __cdecl _mblen_l(const char *_Ch,size_t _MaxCount,_locale_t _Locale);\n __attribute__ ((__dllimport__)) size_t __cdecl _mbstrlen(const char *_Str);\n __attribute__ ((__dllimport__)) size_t __cdecl _mbstrlen_l(const char *_Str,_locale_t _Locale);\n __attribute__ ((__dllimport__)) size_t __cdecl _mbstrnlen(const char *_Str,size_t _MaxCount);\n __attribute__ ((__dllimport__)) size_t __cdecl _mbstrnlen_l(const char *_Str,size_t _MaxCount,_locale_t _Locale);\n int __cdecl mbtowc(wchar_t * __restrict__ _DstCh,const char * __restrict__ _SrcCh,size_t _SrcSizeInBytes);\n __attribute__ ((__dllimport__)) int __cdecl _mbtowc_l(wchar_t * __restrict__ _DstCh,const char * __restrict__ _SrcCh,size_t _SrcSizeInBytes,_locale_t _Locale);\n size_t __cdecl mbstowcs(wchar_t * __restrict__ _Dest,const char * __restrict__ _Source,size_t _MaxCount);\n __attribute__ ((__dllimport__)) size_t __cdecl _mbstowcs_l(wchar_t * __restrict__ _Dest,const char * __restrict__ _Source,size_t _MaxCount,_locale_t _Locale);\n int __cdecl rand(void);\n __attribute__ ((__dllimport__)) int __cdecl _set_error_mode(int _Mode);\n void __cdecl srand(unsigned int _Seed);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n double __cdecl __attribute__ ((__nothrow__)) strtod(const char * __restrict__ _Str,char ** __restrict__ _EndPtr);\n float __cdecl __attribute__ ((__nothrow__)) strtof(const char * __restrict__ nptr, char ** __restrict__ endptr);\n long double __cdecl __attribute__ ((__nothrow__)) strtold(const char * __restrict__ , char ** __restrict__ );\n#pragma empty_line\n#pragma empty_line\n extern double __cdecl __attribute__ ((__nothrow__))\n __strtod (const char * __restrict__ , char ** __restrict__);\n#pragma line 400 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n float __cdecl __mingw_strtof (const char * __restrict__, char ** __restrict__);\n long double __cdecl __mingw_strtold(const char * __restrict__, char ** __restrict__);\n#pragma empty_line\n __attribute__ ((__dllimport__)) double __cdecl _strtod_l(const char * __restrict__ _Str,char ** __restrict__ _EndPtr,_locale_t _Locale);\n long __cdecl strtol(const char * __restrict__ _Str,char ** __restrict__ _EndPtr,int _Radix);\n __attribute__ ((__dllimport__)) long __cdecl _strtol_l(const char * __restrict__ _Str,char ** __restrict__ _EndPtr,int _Radix,_locale_t _Locale);\n unsigned long __cdecl strtoul(const char * __restrict__ _Str,char ** __restrict__ _EndPtr,int _Radix);\n __attribute__ ((__dllimport__)) unsigned long __cdecl _strtoul_l(const char * __restrict__ _Str,char ** __restrict__ _EndPtr,int _Radix,_locale_t _Locale);\n#pragma empty_line\n#pragma empty_line\n int __cdecl system(const char *_Command);\n#pragma empty_line\n __attribute__ ((__dllimport__)) char *__cdecl _ultoa(unsigned long _Value,char *_Dest,int _Radix) ;\n int __cdecl wctomb(char *_MbCh,wchar_t _WCh) ;\n __attribute__ ((__dllimport__)) int __cdecl _wctomb_l(char *_MbCh,wchar_t _WCh,_locale_t _Locale) ;\n size_t __cdecl wcstombs(char * __restrict__ _Dest,const wchar_t * __restrict__ _Source,size_t _MaxCount) ;\n __attribute__ ((__dllimport__)) size_t __cdecl _wcstombs_l(char * __restrict__ _Dest,const wchar_t * __restrict__ _Source,size_t _MaxCount,_locale_t _Locale) ;\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n void *__cdecl calloc(size_t _NumOfElements,size_t _SizeOfElements);\n void __cdecl free(void *_Memory);\n void *__cdecl malloc(size_t _Size);\n void *__cdecl realloc(void *_Memory,size_t _NewSize);\n __attribute__ ((__dllimport__)) void *__cdecl _recalloc(void *_Memory,size_t _Count,size_t _Size);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n __attribute__ ((__dllimport__)) void __cdecl _aligned_free(void *_Memory);\n __attribute__ ((__dllimport__)) void *__cdecl _aligned_malloc(size_t _Size,size_t _Alignment);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n __attribute__ ((__dllimport__)) void *__cdecl _aligned_offset_malloc(size_t _Size,size_t _Alignment,size_t _Offset);\n __attribute__ ((__dllimport__)) void *__cdecl _aligned_realloc(void *_Memory,size_t _Size,size_t _Alignment);\n __attribute__ ((__dllimport__)) void *__cdecl _aligned_recalloc(void *_Memory,size_t _Count,size_t _Size,size_t _Alignment);\n __attribute__ ((__dllimport__)) void *__cdecl _aligned_offset_realloc(void *_Memory,size_t _Size,size_t _Alignment,size_t _Offset);\n __attribute__ ((__dllimport__)) void *__cdecl _aligned_offset_recalloc(void *_Memory,size_t _Count,size_t _Size,size_t _Alignment,size_t _Offset);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _itow(int _Value,wchar_t *_Dest,int _Radix) ;\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _ltow(long _Value,wchar_t *_Dest,int _Radix) ;\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _ultow(unsigned long _Value,wchar_t *_Dest,int _Radix) ;\n double __cdecl wcstod(const wchar_t * __restrict__ _Str,wchar_t ** __restrict__ _EndPtr);\n float __cdecl wcstof(const wchar_t * __restrict__ nptr, wchar_t ** __restrict__ endptr);\n#pragma empty_line\n float __cdecl wcstof( const wchar_t * __restrict__, wchar_t ** __restrict__);\n long double __cdecl wcstold(const wchar_t * __restrict__, wchar_t ** __restrict__);\n#pragma empty_line\n __attribute__ ((__dllimport__)) double __cdecl _wcstod_l(const wchar_t * __restrict__ _Str,wchar_t ** __restrict__ _EndPtr,_locale_t _Locale);\n long __cdecl wcstol(const wchar_t * __restrict__ _Str,wchar_t ** __restrict__ _EndPtr,int _Radix);\n __attribute__ ((__dllimport__)) long __cdecl _wcstol_l(const wchar_t * __restrict__ _Str,wchar_t ** __restrict__ _EndPtr,int _Radix,_locale_t _Locale);\n unsigned long __cdecl wcstoul(const wchar_t * __restrict__ _Str,wchar_t ** __restrict__ _EndPtr,int _Radix);\n __attribute__ ((__dllimport__)) unsigned long __cdecl _wcstoul_l(const wchar_t * __restrict__ _Str,wchar_t ** __restrict__ _EndPtr,int _Radix,_locale_t _Locale);\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _wgetenv(const wchar_t *_VarName) ;\n#pragma empty_line\n#pragma empty_line\n __attribute__ ((__dllimport__)) int __cdecl _wsystem(const wchar_t *_Command);\n#pragma empty_line\n __attribute__ ((__dllimport__)) double __cdecl _wtof(const wchar_t *_Str);\n __attribute__ ((__dllimport__)) double __cdecl _wtof_l(const wchar_t *_Str,_locale_t _Locale);\n __attribute__ ((__dllimport__)) int __cdecl _wtoi(const wchar_t *_Str);\n __attribute__ ((__dllimport__)) int __cdecl _wtoi_l(const wchar_t *_Str,_locale_t _Locale);\n __attribute__ ((__dllimport__)) long __cdecl _wtol(const wchar_t *_Str);\n __attribute__ ((__dllimport__)) long __cdecl _wtol_l(const wchar_t *_Str,_locale_t _Locale);\n#pragma empty_line\n __extension__ __attribute__ ((__dllimport__)) wchar_t *__cdecl _i64tow(long long _Val,wchar_t *_DstBuf,int _Radix) ;\n __extension__ __attribute__ ((__dllimport__)) wchar_t *__cdecl _ui64tow(unsigned long long _Val,wchar_t *_DstBuf,int _Radix) ;\n __extension__ __attribute__ ((__dllimport__)) long long __cdecl _wtoi64(const wchar_t *_Str);\n __extension__ __attribute__ ((__dllimport__)) long long __cdecl _wtoi64_l(const wchar_t *_Str,_locale_t _Locale);\n __extension__ __attribute__ ((__dllimport__)) long long __cdecl _wcstoi64(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix);\n __extension__ __attribute__ ((__dllimport__)) long long __cdecl _wcstoi64_l(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix,_locale_t _Locale);\n __extension__ __attribute__ ((__dllimport__)) unsigned long long __cdecl _wcstoui64(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix);\n __extension__ __attribute__ ((__dllimport__)) unsigned long long __cdecl _wcstoui64_l(const wchar_t *_Str ,wchar_t **_EndPtr,int _Radix,_locale_t _Locale);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n __attribute__ ((__dllimport__)) char *__cdecl _fullpath(char *_FullPath,const char *_Path,size_t _SizeInBytes);\n __attribute__ ((__dllimport__)) char *__cdecl _ecvt(double _Val,int _NumOfDigits,int *_PtDec,int *_PtSign) ;\n __attribute__ ((__dllimport__)) char *__cdecl _fcvt(double _Val,int _NumOfDec,int *_PtDec,int *_PtSign) ;\n __attribute__ ((__dllimport__)) char *__cdecl _gcvt(double _Val,int _NumOfDigits,char *_DstBuf) ;\n __attribute__ ((__dllimport__)) int __cdecl _atodbl(_CRT_DOUBLE *_Result,char *_Str);\n __attribute__ ((__dllimport__)) int __cdecl _atoldbl(_LDOUBLE *_Result,char *_Str);\n __attribute__ ((__dllimport__)) int __cdecl _atoflt(_CRT_FLOAT *_Result,char *_Str);\n __attribute__ ((__dllimport__)) int __cdecl _atodbl_l(_CRT_DOUBLE *_Result,char *_Str,_locale_t _Locale);\n __attribute__ ((__dllimport__)) int __cdecl _atoldbl_l(_LDOUBLE *_Result,char *_Str,_locale_t _Locale);\n __attribute__ ((__dllimport__)) int __cdecl _atoflt_l(_CRT_FLOAT *_Result,char *_Str,_locale_t _Locale);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n __extension__ unsigned long long __cdecl _lrotl(unsigned long long _Val,int _Shift);\n __extension__ unsigned long long __cdecl _lrotr(unsigned long long _Val,int _Shift);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n __attribute__ ((__dllimport__)) void __cdecl _makepath(char *_Path,const char *_Drive,const char *_Dir,const char *_Filename,const char *_Ext);\n _onexit_t __cdecl _onexit(_onexit_t _Func);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n __attribute__ ((__dllimport__)) int __cdecl _putenv(const char *_EnvString);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n __extension__ unsigned long long __cdecl _rotl64(unsigned long long _Val,int _Shift);\n __extension__ unsigned long long __cdecl _rotr64(unsigned long long Value,int Shift);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n unsigned int __cdecl _rotr(unsigned int _Val,int _Shift);\n unsigned int __cdecl _rotl(unsigned int _Val,int _Shift);\n#pragma empty_line\n#pragma empty_line\n __extension__ unsigned long long __cdecl _rotr64(unsigned long long _Val,int _Shift);\n __attribute__ ((__dllimport__)) void __cdecl _searchenv(const char *_Filename,const char *_EnvVar,char *_ResultPath) ;\n __attribute__ ((__dllimport__)) void __cdecl _splitpath(const char *_FullPath,char *_Drive,char *_Dir,char *_Filename,char *_Ext) ;\n __attribute__ ((__dllimport__)) void __cdecl _swab(char *_Buf1,char *_Buf2,int _SizeInBytes);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _wfullpath(wchar_t *_FullPath,const wchar_t *_Path,size_t _SizeInWords);\n __attribute__ ((__dllimport__)) void __cdecl _wmakepath(wchar_t *_ResultPath,const wchar_t *_Drive,const wchar_t *_Dir,const wchar_t *_Filename,const wchar_t *_Ext);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n __attribute__ ((__dllimport__)) int __cdecl _wputenv(const wchar_t *_EnvString);\n __attribute__ ((__dllimport__)) void __cdecl _wsearchenv(const wchar_t *_Filename,const wchar_t *_EnvVar,wchar_t *_ResultPath) ;\n __attribute__ ((__dllimport__)) void __cdecl _wsplitpath(const wchar_t *_FullPath,wchar_t *_Drive,wchar_t *_Dir,wchar_t *_Filename,wchar_t *_Ext) ;\n#pragma empty_line\n#pragma empty_line\n __attribute__ ((__dllimport__)) void __cdecl _beep(unsigned _Frequency,unsigned _Duration) __attribute__ ((__deprecated__));\n#pragma empty_line\n __attribute__ ((__dllimport__)) void __cdecl _seterrormode(int _Mode) __attribute__ ((__deprecated__));\n __attribute__ ((__dllimport__)) void __cdecl _sleep(unsigned long _Duration) __attribute__ ((__deprecated__));\n#pragma line 574 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n char *__cdecl ecvt(double _Val,int _NumOfDigits,int *_PtDec,int *_PtSign) ;\n char *__cdecl fcvt(double _Val,int _NumOfDec,int *_PtDec,int *_PtSign) ;\n char *__cdecl gcvt(double _Val,int _NumOfDigits,char *_DstBuf) ;\n char *__cdecl itoa(int _Val,char *_DstBuf,int _Radix) ;\n char *__cdecl ltoa(long _Val,char *_DstBuf,int _Radix) ;\n int __cdecl putenv(const char *_EnvString) ;\n void __cdecl swab(char *_Buf1,char *_Buf2,int _SizeInBytes) ;\n char *__cdecl ultoa(unsigned long _Val,char *_Dstbuf,int _Radix) ;\n _onexit_t __cdecl onexit(_onexit_t _Func);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n typedef struct { __extension__ long long quot, rem; } lldiv_t;\n#pragma empty_line\n __extension__ lldiv_t __cdecl lldiv(long long, long long);\n#pragma empty_line\n __extension__ long long __cdecl llabs(long long);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n __extension__ long long __cdecl strtoll(const char * __restrict__, char ** __restrict, int);\n __extension__ unsigned long long __cdecl strtoull(const char * __restrict__, char ** __restrict__, int);\n#pragma empty_line\n#pragma empty_line\n __extension__ long long __cdecl atoll (const char *);\n#pragma empty_line\n#pragma empty_line\n __extension__ long long __cdecl wtoll (const wchar_t *);\n __extension__ char *__cdecl lltoa (long long, char *, int);\n __extension__ char *__cdecl ulltoa (unsigned long long , char *, int);\n __extension__ wchar_t *__cdecl lltow (long long, wchar_t *, int);\n __extension__ wchar_t *__cdecl ulltow (unsigned long long, wchar_t *, int);\n#pragma line 627 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n#pragma pack(pop)\n#pragma empty_line\n#pragma empty_line\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\sec_api/stdlib_s.h\" 1 3\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 1 3\n#pragma line 9 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\sec_api/stdlib_s.h\" 2 3\n#pragma line 629 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 2 3\n#pragma empty_line\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\malloc.h\" 1 3\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma line 1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 1 3\n#pragma line 9 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\malloc.h\" 2 3\n#pragma empty_line\n#pragma empty_line\n#pragma pack(push,_CRT_PACKING)\n#pragma line 46 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\malloc.h\" 3\n typedef struct _heapinfo {\n int *_pentry;\n size_t _size;\n int _useflag;\n } _HEAPINFO;\n#pragma empty_line\n#pragma empty_line\n extern unsigned int _amblksiz;\n#pragma line 99 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\malloc.h\" 3\nvoid * __mingw_aligned_malloc (size_t _Size, size_t _Alignment);\nvoid __mingw_aligned_free (void *_Memory);\nvoid * __mingw_aligned_offset_realloc (void *_Memory, size_t _Size, size_t _Alignment, size_t _Offset);\nvoid * __mingw_aligned_realloc (void *_Memory, size_t _Size, size_t _Offset);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n __attribute__ ((__dllimport__)) int __cdecl _resetstkoflw (void);\n __attribute__ ((__dllimport__)) unsigned long __cdecl _set_malloc_crt_max_wait(unsigned long _NewValue);\n#pragma empty_line\n __attribute__ ((__dllimport__)) void *__cdecl _expand(void *_Memory,size_t _NewSize);\n __attribute__ ((__dllimport__)) size_t __cdecl _msize(void *_Memory);\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n __attribute__ ((__dllimport__)) size_t __cdecl _get_sbh_threshold(void);\n __attribute__ ((__dllimport__)) int __cdecl _set_sbh_threshold(size_t _NewValue);\n __attribute__ ((__dllimport__)) errno_t __cdecl _set_amblksiz(size_t _Value);\n __attribute__ ((__dllimport__)) errno_t __cdecl _get_amblksiz(size_t *_Value);\n __attribute__ ((__dllimport__)) int __cdecl _heapadd(void *_Memory,size_t _Size);\n __attribute__ ((__dllimport__)) int __cdecl _heapchk(void);\n __attribute__ ((__dllimport__)) int __cdecl _heapmin(void);\n __attribute__ ((__dllimport__)) int __cdecl _heapset(unsigned int _Fill);\n __attribute__ ((__dllimport__)) int __cdecl _heapwalk(_HEAPINFO *_EntryInfo);\n __attribute__ ((__dllimport__)) size_t __cdecl _heapused(size_t *_Used,size_t *_Commit);\n __attribute__ ((__dllimport__)) intptr_t __cdecl _get_heap_handle(void);\n#pragma line 140 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\malloc.h\" 3\n static __inline void *_MarkAllocaS(void *_Ptr,unsigned int _Marker) {\n if(_Ptr) {\n *((unsigned int*)_Ptr) = _Marker;\n _Ptr = (char*)_Ptr + 16;\n }\n return _Ptr;\n }\n#pragma line 159 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\malloc.h\" 3\n static __inline void __cdecl _freea(void *_Memory) {\n unsigned int _Marker;\n if(_Memory) {\n _Memory = (char*)_Memory - 16;\n _Marker = *(unsigned int *)_Memory;\n if(_Marker==0xDDDD) {\n free(_Memory);\n }\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\n }\n }\n#pragma line 205 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\malloc.h\" 3\n#pragma pack(pop)\n#pragma line 630 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 2 3\n#pragma line 73 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_ssdm_bits.h\" 2\n#pragma line 59 \"C:/Xilinx/Vivado/2018.2/include/etc/autopilot_apint.h\" 2\n#pragma line 82 \"C:/Xilinx/Vivado/2018.2/include\\\\ap_cint.h\" 2\n#pragma line 3 \"D:/HLS_2018.2update/HLS/labsource/labs/lab4/fir.h\" 2\n#pragma empty_line\n#pragma empty_line\n#pragma empty_line\ntypedef short coef_t;\ntypedef short data_t;\ntypedef int38 acc_t;\n#pragma line 3 \"D:/HLS_2018.2update/HLS/labsource/labs/lab4/fir_test.c\" 2\n#pragma empty_line\nvoid fir (\n data_t *y,\n data_t x\n );\n#pragma empty_line\nint main () {\n FILE *fp;\n#pragma empty_line\n data_t signal, output;\n#pragma empty_line\n fp=fopen(\"fir_impulse.dat\",\"w\");\n int i;\n for (i=0;i<58 +10;i++) {\n if(i==0)\n signal = 0x8000;\n else\n signal = 0;\n fir(&output,signal);\n printf(\"%i %d %d\\n\",i,(int)signal,(int)output);\n#pragma empty_line\n }\n fclose(fp);\n return 0;\n}\n", "groundtruth": " extern\n __attribute__((__format__ (gnu_printf, 1, 2))) __attribute__ ((__nonnull__ (1)))\n int __cdecl __mingw_printf(const char * __restrict__ , ... ) __attribute__ ((__nothrow__));\n", "crossfile_context": ""} {"task_id": "High-Level-Synthesis-Flow-on-Zynq-using-Vivado-HLS", "path": "High-Level-Synthesis-Flow-on-Zynq-using-Vivado-HLS/source/lab4/fir.prj/solution1/sim/wrapc/apatb_fir.h", "left_context": "// ==============================================================\n// File generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC\n// Version: 2018.2\n// Copyright (C) 1986-2018 Xilinx, Inc. All Rights Reserved.\n// ==============================================================\n\n", "right_context": "", "groundtruth": "extern void AESL_WRAP_fir (\nshort* y,\nshort x);\n", "crossfile_context": ""} {"task_id": "High-Level-Synthesis-Flow-on-Zynq-using-Vivado-HLS", "path": "High-Level-Synthesis-Flow-on-Zynq-using-Vivado-HLS/source/lab4/fir.prj/solution1/sim/wrapc_pc/AESL_pkg.h", "left_context": "// __AESL_COPYRIGHT__\n\n#ifndef AESL_PKG_HH\n#define AESL_PKG_HH\n\n#include \"systemc.h\"\n\nnamespace ap_rtl {\n\n \n////////////////////////////////////////////////////////////////\n// Comparisons\n////////////////////////////////////////////////////////////////\n \ntemplate \nbool esl_seteq(const sc_lv& i0, const sc_lv& i1) {\n assert(W0>=1 && W1>=1);\n if (W0 > W1)\n return (i0.range(W1-1, 0) == i1);\n else\n return (i1.range(W0-1, 0) == i0);\n \n assert(W0 == W1);\n return (i0 == i1);\n}\n\ntemplate \nbool esl_setne(const sc_lv& i0, const sc_lv& i1) {\n assert(W0>=1 && W1>=1);\n if (W0 > W1)\n return (i0.range(W1-1, 0) != i1);\n else\n return (i1.range(W0-1, 0) != i0);\n\n assert(W0 == W1);\n return (i0 != i1);\n}\n\ntemplate \nbool esl_seteq(const sc_logic& i0, const sc_logic& i1) {\n assert(W0 == W1);\n return (i0 == i1);\n}\n\ntemplate \nbool esl_setne(const sc_logic& i0, const sc_logic& i1) {\n assert(W0 == W1);\n return (i0 != i1);\n}\n\ntemplate \nbool esl_not(bool i0) {\n return (!i0);\n}\n\ntemplate \nsc_logic esl_not(const sc_logic& i0) {\n return (~i0);\n}\n\ntemplate \nbool esl_setle(const sc_lv& i0, const sc_lv& i1) {\n if (!i0.is_01() || !i1.is_01()) return false;\n return (sc_biguint(i0) <= sc_biguint(i1));\n}\n\ntemplate \nbool esl_setge(const sc_lv& i0, const sc_lv& i1) {\n if (!i0.is_01() || !i1.is_01()) return false;\n return (sc_biguint(i0) >= sc_biguint(i1));\n}\n\ntemplate \nbool esl_setlt(const sc_lv& i0, const sc_lv& i1) {\n if (!i0.is_01() || !i1.is_01()) return false;\n return (sc_biguint(i0) < sc_biguint(i1));\n}\n\ntemplate \nbool esl_setgt(const sc_lv& i0, const sc_lv& i1) {\n if (!i0.is_01() || !i1.is_01()) return false;\n return (sc_biguint(i0) > sc_biguint(i1));\n}\n\ntemplate \nsc_lv<1> esl_icmp_eq(const sc_lv& i0, const sc_lv& i1) {\n assert(W0 == W1);\n if (!i0.is_01() || !i1.is_01()) return sc_lv<1>();\n return sc_lv<1>(i0 == i1);\n}\n\ntemplate \nsc_lv<1> esl_icmp_ne(const sc_lv& i0, const sc_lv& i1) {\n assert(W0 == W1);\n if (!i0.is_01() || !i1.is_01()) return sc_lv<1>();\n return sc_lv<1>(i0 != i1);\n}\n\ntemplate \n", "right_context": " if (!i0.is_01() || !i1.is_01()) return sc_lv<1>();\n return (sc_biguint(i0) >= sc_biguint(i1));\n}\n\ntemplate \nsc_lv<1> esl_icmp_ult(const sc_lv& i0, const sc_lv& i1) {\n if (!i0.is_01() || !i1.is_01()) return sc_lv<1>();\n return (sc_biguint(i0) < sc_biguint(i1));\n}\n\ntemplate \nsc_lv<1> esl_icmp_ule(const sc_lv& i0, const sc_lv& i1) {\n if (!i0.is_01() || !i1.is_01()) return sc_lv<1>();\n return (sc_biguint(i0) <= sc_biguint(i1));\n}\n\ntemplate \nsc_lv<1> esl_icmp_sgt(const sc_lv& i0, const sc_lv& i1) {\n if (!i0.is_01() || !i1.is_01()) return sc_lv<1>();\n return (sc_bigint(i0) > sc_bigint(i1));\n}\n\ntemplate \nsc_lv<1> esl_icmp_sge(const sc_lv& i0, const sc_lv& i1) {\n if (!i0.is_01() || !i1.is_01()) return sc_lv<1>();\n return (sc_bigint(i0) >= sc_bigint(i1));\n}\n\ntemplate \nsc_lv<1> esl_icmp_slt(const sc_lv& i0, const sc_lv& i1) {\n if (!i0.is_01() || !i1.is_01()) return sc_lv<1>();\n return (sc_bigint(i0) < sc_bigint(i1));\n}\n\ntemplate \nsc_lv<1> esl_icmp_sle(const sc_lv& i0, const sc_lv& i1) {\n if (!i0.is_01() || !i1.is_01()) return sc_lv<1>();\n return (sc_bigint(i0) <= sc_bigint(i1));\n}\n\n\ntemplate \nsc_lv esl_trunc(const sc_lv& i0) {\n assert(T <= W0);\n return (i0.range(T-1, 0));\n}\n\ntemplate \nsc_lv esl_sext(const sc_lv& i0) {\n assert(T >= W0);\n if (!i0.is_01()) return sc_lv();\n return ((sc_lv)(sc_bigint(i0)));\n}\n\ntemplate \nsc_lv esl_zext(const sc_lv& i0) {\n assert(T >= W0);\n if (!i0.is_01()) return sc_lv();\n return ((sc_lv)(sc_biguint(i0)));\n}\n\ntemplate \nsc_lv esl_bitcast(const sc_lv& i0) {\n assert(T == W0);\n return i0;\n}\n\n////////////////////////////////////////////////////////////////\n// Conversions\n////////////////////////////////////////////////////////////////\n\n////////////////////////////////////////////////////////////////\n// Logic/Arithmatic operations\n////////////////////////////////////////////////////////////////\n\ntemplate \nsc_lv esl_and(const sc_lv& i0, const sc_lv& i1) {\n assert(W0 == W1);\n return (i0 & i1);\n}\n\ntemplate \nsc_lv esl_or(const sc_lv& i0, const sc_lv& i1) {\n assert(W0 == W1);\n return (i0 | i1);\n}\ntemplate \nsc_lv esl_xor(const sc_lv& i0, const sc_lv& i1) {\n assert(W0 == W1);\n return (i0 ^ i1);\n}\ntemplate \nsc_lv esl_shl(const sc_lv& i0, const sc_lv& i1) {\n //assert(W1 <= 32);\n if (!i1.is_01()) return sc_lv();\n return (i0 << (unsigned short)i1.to_uint());\n}\n\ntemplate \nsc_lv esl_lshr(const sc_lv& i0, const sc_lv& i1) {\n //assert(W1 <= 32);\n if (!i1.is_01()) return sc_lv();\n return (i0 >> (unsigned short)i1.to_uint());\n}\n \ntemplate \nsc_lv esl_ashr(const sc_lv& i0, const sc_lv& i1) {\n //assert(W1 <= 32);\n if (!i0.is_01() || !i1.is_01()) return sc_lv();\n return (sc_bigint(i0) >> (unsigned short)i1.to_uint());\n}\n\n\ntemplate \nsc_lv esl_add(const sc_lv& i0, const sc_lv& i1) {\n if (!i0.is_01() || !i1.is_01()) return sc_lv();\n return (sc_bigint(i0) + sc_biguint(i1));\n}\n\ntemplate \nsc_lv esl_sub(const sc_lv& i0, const sc_lv& i1) {\n if (!i0.is_01() || !i1.is_01()) return sc_lv();\n return (sc_bigint(i0) - sc_biguint(i1));\n}\n\ntemplate \nsc_lv esl_mul_UU(const sc_lv& i0, const sc_lv& i1) {\n if (!i0.is_01() || !i1.is_01()) return sc_lv();\n return (sc_biguint(i0) * sc_biguint(i1));\n}\n\ntemplate \nsc_lv esl_mul_SU(const sc_lv& i0, const sc_lv& i1) {\n if (!i0.is_01() || !i1.is_01()) return sc_lv();\n return (sc_bigint(i0) * sc_biguint(i1));\n}\n\ntemplate \nsc_lv esl_mul_US(const sc_lv& i0, const sc_lv& i1) {\n if (!i0.is_01() || !i1.is_01()) return sc_lv();\n return (sc_biguint(i0) * sc_bigint(i1));\n}\n\ntemplate \nsc_lv esl_mul_SS(const sc_lv& i0, const sc_lv& i1) {\n if (!i0.is_01() || !i1.is_01()) return sc_lv();\n return (sc_bigint(i0) * sc_bigint(i1));\n}\n\ntemplate \nsc_lv esl_udiv(const sc_lv& i0, const sc_lv& i1) {\n if (!i0.is_01() || !i1.is_01()) return sc_lv();\n sc_biguint v1(i1);\n if (v1.to_uint() == 0) return sc_lv();\n return (sc_biguint(i0) / v1);\n}\n\ntemplate \nsc_lv esl_sdiv(const sc_lv& i0, const sc_lv& i1) {\n if (!i0.is_01() || !i1.is_01()) return sc_lv();\n sc_bigint v1(i1);\n if (v1.to_uint() == 0) return sc_lv();\n return (sc_bigint(i0) / v1);\n}\n\ntemplate \nsc_lv esl_urem(const sc_lv& i0, const sc_lv& i1) {\n if (!i0.is_01() || !i1.is_01()) return sc_lv();\n sc_biguint v1(i1);\n if (v1.to_uint() == 0) return sc_lv();\n return (sc_biguint(i0) % v1);\n}\n \ntemplate \nsc_lv esl_srem(const sc_lv& i0, const sc_lv& i1) {\n if (!i0.is_01() || !i1.is_01()) return sc_lv();\n sc_bigint v1(i1);\n if (v1.to_uint() == 0) return sc_lv();\n return (sc_bigint(i0) % v1);\n}\n\ntemplate \nsc_lv esl_ctlz(const sc_lv& i0) {\n int count = 0;\n for (unsigned i = W0-1; i >= 0; --i) {\n if (i0[i] == SC_LOGIC_0) count ++;\n else break;\n }\n return count;\n}\n\ntemplate \nsc_lv esl_cttz(const sc_lv& i0) {\n int count = 0;\n for (unsigned i = 0; i < W0; ++i) {\n if (i0[i] == SC_LOGIC_0) count ++;\n else break;\n }\n return count;\n}\n\n\n////////////////////////////////////////////////////////////////\n// Other operations\n////////////////////////////////////////////////////////////////\ntemplate \nsc_lv esl_select(const sc_lv& i0,\n const sc_lv& i1, const sc_lv& i2) {\n assert((W0 == 1) && (W1 == W2));\n if (!i0[0].is_01()) return sc_lv();\n bool flag = (i0[0].to_bool());\n return (flag ? i1 : i2);\n}\n\n\ntemplate \ninline sc_lv esl_concat(const sc_lv& i0, const sc_lv& i1) {\n return (i0, i1);\n}\n\ntemplate \ninline sc_lv esl_bitselect(const sc_lv& i0, const sc_lv& i1) {\n assert(T == 1);\n if (!i1.is_01()) return sc_lv();\n unsigned int loc = (sc_biguint(i1)).to_uint();\n //assert(W0 >= loc);\n if (W0 <= loc)\n return sc_lv();\n return i0.range(loc, loc);\n}\n \ntemplate \ninline sc_lv esl_bitset(const sc_lv& i0,\n const sc_lv& i1, const sc_lv& i2) {\n assert(T == W0);\n if (!i1.is_01()) return sc_lv();\n unsigned int loc = (sc_biguint(i1)).to_uint();\n //assert(W0 >= loc);\n if (W0 <= loc)\n return sc_lv();\n sc_lv res = i0;\n res[loc] = i2.or_reduce();\n return res;\n}\n\ntemplate \ninline sc_lv esl_partselect(const sc_lv& i0,\n const sc_lv& iLo, const sc_lv& iHi) {\n if (!iLo.is_01() || !iHi.is_01()) return sc_lv();\n unsigned int Lo = (sc_biguint(iLo)).to_uint();\n unsigned int Hi = (sc_biguint(iHi)).to_uint();\n unsigned int rsize = abs((int)(Hi-Lo)) + 1;\n // Warning out the dont-care situation.\n if (Lo >= W0 || Hi >= W0) {\n// std::cout << \"Warning: partselect out of range!\\n\";\n return sc_lv();\n }\n assert(W0 >= rsize);\n return i0.range(Hi, Lo);\n}\n\ntemplate \ninline sc_lv esl_partset(const sc_lv& i0,\n const sc_lv& i1,\n const sc_lv& iLo, const sc_lv& iHi) {\n if (!iLo.is_01() || !iHi.is_01()) return sc_lv();\n assert(W0 == T);\n unsigned int Lo = (sc_biguint(iLo)).to_uint();\n unsigned int Hi = (sc_biguint(iHi)).to_uint();\n unsigned int rsize = abs((int)(Lo-Hi)) + 1;\n // Warning out the dont-care situation.\n if (Hi >= T || Lo >= T) {\n// std::cout << \"Warning: partset out of range!\\n\";\n return sc_lv();\n }\n assert(W0 >= rsize);\n sc_lv res = i0;\n res.range(Hi, Lo) = ((sc_lv)i1).range(rsize-1, 0);\n return res;\n}\n\ntemplate \nsc_lv esl_orreduce(const sc_lv& i0) {\n assert(T == 1);\n sc_lv<1> res;\n res[0] = i0.or_reduce();\n return res;\n}\n\ntemplate \ninline sc_lv esl_andreduce(const sc_lv& i0) {\n assert(T == 1);\n sc_lv<1> res;\n res[0] = i0.and_reduce();\n return res;\n}\n\ntemplate \ninline sc_lv esl_xorreduce(const sc_lv& i0) {\n assert(T == 1);\n sc_lv<1> res;\n res[0] = i0.xor_reduce();\n return res;\n}\n\ntemplate \ninline sc_lv esl_nandreduce(const sc_lv& i0) {\n assert(T == 1);\n sc_lv<1> res;\n res[0] = i0.nand_reduce();\n return res;\n}\n\ntemplate \ninline sc_lv esl_xnorreduce(const sc_lv& i0) {\n assert(T == 1);\n sc_lv<1> res;\n res[0] = i0.xnor_reduce();\n return res;\n}\n\ntemplate \ninline sc_lv esl_norreduce(const sc_lv& i0) {\n assert(T == 1);\n sc_lv<1> res;\n res[0] = i0.nor_reduce();\n return res;\n}\n\n \n////////////////////////////////////////////////////////////////\n// Floating point operations\n////////////////////////////////////////////////////////////////\nstruct esl_FP {\nstatic float esl_INTSP(unsigned int x) { return (*(float*)(&(x))); }\nstatic double esl_INTDP(unsigned long long x) { return (*(double*)(&(x))); }\n\nstatic unsigned int esl_SPINT(float x) { return (*(unsigned int*)(&(x))); }\nstatic unsigned long long esl_DPINT(double x) { return (*(unsigned long long*)(&(x))); }\n};\n\n#define esl_LVSP(x) esl_FP::esl_INTSP((x).to_uint())\n#define esl_LVDP(x) esl_FP::esl_INTDP((x).to_uint64())\n\n#define esl_sitodp(lv) esl_FP::esl_DPINT(double((lv).to_int()))\n#define esl_dptosi(lv) (int(esl_LVDP(lv)))\n\n#define esl_dadd(x, y) \\\nesl_FP::esl_DPINT(esl_LVDP(x) + esl_LVDP(y))\n#define esl_fadd(x, y) \\\nesl_FP::esl_SPINT(esl_LVSP(x) + esl_LVSP(y))\n\n#define esl_dsub(x, y) \\\nesl_FP::esl_DPINT(esl_LVDP(x) - esl_LVDP(y))\n#define esl_fsub(x, y) \\\nesl_FP::esl_SPINT(esl_LVSP(x) - esl_LVSP(y))\n\n#define esl_dmul(x, y) \\\nesl_FP::esl_DPINT(esl_LVDP(x) * esl_LVDP(y))\n#define esl_fmul(x, y) \\\nesl_FP::esl_SPINT(esl_LVSP(x) * esl_LVSP(y))\n\n#define esl_ddiv(x, y) \\\nesl_FP::esl_DPINT(esl_LVDP(x) / esl_LVDP(y))\n#define esl_fdiv(x, y) \\\nesl_FP::esl_SPINT(esl_LVSP(x) / esl_LVSP(y))\n\n#define esl_drem(x, y) \\\nesl_FP::esl_DPINT(esl_LVDP(x) % esl_LVDP(y))\n#define esl_frem(x, y) \\\nesl_FP::esl_SPINT(esl_LVSP(x) % esl_LVSP(y))\n\n//#define esl_dsqrt(x) esl_FP::esl_DPINT(sqrt(esl_LVDP(x)))\n//#define esl_fsqrt(x) esl_FP::esl_SPINT(sqrt(esl_LVSP(x)))\n\n\n#define esl_DFCMP_FALSE(x, y) \\\n(false)\n\n#define esl_DFCMP_ORD(x, y) \\\n(!isnan(esl_LVDP(x)) & !isnan(esl_LVDP(y)))\n#define esl_DFCMP_OEQ(x, y) \\\n(esl_DFCMP_ORD(x, y) & (esl_LVDP(x) == esl_LVDP(y)))\n#define esl_DFCMP_OGT(x, y) \\\n(esl_DFCMP_ORD(x, y) & (esl_LVDP(x) > esl_LVDP(y)))\n#define esl_DFCMP_OGE(x, y) \\\n(esl_DFCMP_ORD(x, y) & (esl_LVDP(x) >= esl_LVDP(y)))\n#define esl_DFCMP_OLT(x, y) \\\n(esl_DFCMP_ORD(x, y) & (esl_LVDP(x) < esl_LVDP(y)))\n#define esl_DFCMP_OLE(x, y) \\\n(esl_DFCMP_ORD(x, y) & (esl_LVDP(x) <= esl_LVDP(y)))\n#define esl_DFCMP_ONE(x, y) \\\n(esl_DFCMP_UNO(x, y) & (esl_LVDP(x) != esl_LVDP(y)))\n\n#define esl_DFCMP_UNO(x, y) \\\n(isnan(esl_LVDP(x)) | isnan(esl_LVDP(y)))\n#define esl_DFCMP_UEQ(x, y) \\\n(esl_DFCMP_UNO(x, y) | (esl_LVDP(x) == esl_LVDP(y)))\n#define esl_DFCMP_UGT(x, y) \\\n(esl_DFCMP_UNO(x, y) | (esl_LVDP(x) > esl_LVDP(y)))\n#define esl_DFCMP_UGE(x, y) \\\n(esl_DFCMP_UNO(x, y) | (esl_LVDP(x) >= esl_LVDP(y)))\n#define esl_DFCMP_ULT(x, y) \\\n(esl_DFCMP_UNO(x, y) | (esl_LVDP(x) < esl_LVDP(y)))\n#define esl_DFCMP_ULE(x, y) \\\n(esl_DFCMP_UNO(x, y) | (esl_LVDP(x) <= esl_LVDP(y)))\n#define esl_DFCMP_UNE(x, y) \\\n(esl_DFCMP_UNO(x, y) | (esl_LVDP(x) != esl_LVDP(y)))\n\n#define esl_DFCMP_TRUE(x, y) \\\n(true)\n\ntemplate \nsc_lv esl_dsqrt(const sc_lv& x) {\n sc_lv ret = esl_FP::esl_DPINT(sqrt(esl_LVDP(x)));\n return ret;\n}\n\ntemplate \nsc_lv esl_fsqrt(const sc_lv& x) {\n sc_lv ret = esl_FP::esl_SPINT(sqrt(esl_LVSP(x)));\n return ret;\n}\n\ntemplate \nsc_lv esl_getelementptr(const sc_lv& i0, const sc_lv& i1) {\n return esl_add(i0, i1);\n}\n\n}\n\n\n#endif\n\n\n\n\n", "groundtruth": "sc_lv<1> esl_icmp_ugt(const sc_lv& i0, const sc_lv& i1) {\n if (!i0.is_01() || !i1.is_01()) return sc_lv<1>();\n return (sc_biguint(i0) > sc_biguint(i1));\n}\n", "crossfile_context": ""} {"task_id": "High-Level-Synthesis-Flow-on-Zynq-using-Vivado-HLS", "path": "High-Level-Synthesis-Flow-on-Zynq-using-Vivado-HLS/source/lab4/fir.prj/solution1/sim/wrapc_pc/fir.c_pre.c.tb.c", "left_context": "// ==============================================================\n// File generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC\n// Version: 2018.2\n// Copyright (C) 1986-2018 Xilinx, Inc. All Rights Reserved.\n// \n// ==============================================================\n\n#1 \"D:/HLS_2018.2update/HLS/labsource/labs/lab4/fir.c\"\n#1 \"D:/HLS_2018.2update/HLS/labsource/labs/lab4/fir.c\" 1\n#1 \"\" 1\n#1 \"\" 3\n#147 \"\" 3\n#1 \"\" 1\n#1 \"\" 2\n#1 \"D:/HLS_2018.2update/HLS/labsource/labs/lab4/fir.c\" 2\n#1 \"D:/HLS_2018.2update/HLS/labsource/labs/lab4/fir.h\" 1\n\n\n#1 \"C:/Xilinx/Vivado/2018.2/include\\\\ap_cint.h\" 1\n#66 \"C:/Xilinx/Vivado/2018.2/include\\\\ap_cint.h\"\n#1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\string.h\" 1 3\n\n\n\n\n\n\n\n\n#1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 1 3\n#10 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 3\n#1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include/_mingw_mac.h\" 1 3\n#10 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 2 3\n#277 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 3\n#1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\vadefs.h\" 1 3\n#13 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\vadefs.h\" 3\n#1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 1 3\n#674 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 3\n#1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include/sdks/_mingw_directx.h\" 1 3\n#674 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 2 3\n\n#1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include/sdks/_mingw_ddk.h\" 1 3\n#675 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 2 3\n#13 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\vadefs.h\" 2 3\n\n\n#pragma pack(push,_CRT_PACKING)\n\n\n\n\n\n\n\n\n typedef __builtin_va_list __gnuc_va_list;\n\n\n\n\n\n\n typedef __gnuc_va_list va_list;\n#102 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\vadefs.h\" 3\n#pragma pack(pop)\n#277 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 2 3\n\n\n#pragma pack(push,_CRT_PACKING)\n#370 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 3\n__extension__ typedef unsigned long long size_t;\n#380 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 3\n__extension__ typedef long long ssize_t;\n#392 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 3\n__extension__ typedef long long intptr_t;\n#405 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 3\n__extension__ typedef unsigned long long uintptr_t;\n#418 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 3\n__extension__ typedef long long ptrdiff_t;\n#428 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 3\ntypedef unsigned short wchar_t;\n\n\n\n\n\n\n\ntypedef unsigned short wint_t;\ntypedef unsigned short wctype_t;\n#456 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 3\ntypedef int errno_t;\n\n\n\n\ntypedef long __time32_t;\n\n\n\n\n__extension__ typedef long long __time64_t;\n\n\n\n\n\n\n\ntypedef __time64_t time_t;\n#607 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 3\nstruct threadlocaleinfostruct;\nstruct threadmbcinfostruct;\ntypedef struct threadlocaleinfostruct *pthreadlocinfo;\ntypedef struct threadmbcinfostruct *pthreadmbcinfo;\nstruct __lc_time_data;\n\ntypedef struct localeinfo_struct {\n pthreadlocinfo locinfo;\n pthreadmbcinfo mbcinfo;\n} _locale_tstruct,*_locale_t;\n\n\n\ntypedef struct tagLC_ID {\n unsigned short wLanguage;\n unsigned short wCountry;\n unsigned short wCodePage;\n} LC_ID,*LPLC_ID;\n\n\n\n\ntypedef struct threadlocaleinfostruct {\n int refcount;\n unsigned int lc_codepage;\n unsigned int lc_collate_cp;\n unsigned long lc_handle[6];\n LC_ID lc_id[6];\n struct {\n char *locale;\n wchar_t *wlocale;\n int *refcount;\n int *wrefcount;\n } lc_category[6];\n int lc_clike;\n int mb_cur_max;\n int *lconv_intl_refcount;\n int *lconv_num_refcount;\n int *lconv_mon_refcount;\n struct lconv *lconv;\n int *ctype1_refcount;\n unsigned short *ctype1;\n const unsigned short *pctype;\n const unsigned char *pclmap;\n const unsigned char *pcumap;\n struct __lc_time_data *lc_time_curr;\n} threadlocinfo;\n\n\n\n\n\n\n\nconst char *__mingw_get_crt_info (void);\n\n\n\n\n\n#pragma pack(pop)\n#9 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\string.h\" 2 3\n#36 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\string.h\" 3\n __attribute__ ((__dllimport__)) void *__cdecl _memccpy(void *_Dst,const void *_Src,int _Val,size_t _MaxCount);\n void *__cdecl memchr(const void *_Buf ,int _Val,size_t _MaxCount);\n __attribute__ ((__dllimport__)) int __cdecl _memicmp(const void *_Buf1,const void *_Buf2,size_t _Size);\n __attribute__ ((__dllimport__)) int __cdecl _memicmp_l(const void *_Buf1,const void *_Buf2,size_t _Size,_locale_t _Locale);\n int __cdecl memcmp(const void *_Buf1,const void *_Buf2,size_t _Size);\n void *__cdecl memcpy(void * __restrict__ _Dst,const void * __restrict__ _Src,size_t _Size) ;\n void *__cdecl memset(void *_Dst,int _Val,size_t _Size);\n\n void *__cdecl memccpy(void *_Dst,const void *_Src,int _Val,size_t _Size) ;\n int __cdecl memicmp(const void *_Buf1,const void *_Buf2,size_t _Size) ;\n\n\n char *__cdecl _strset(char *_Str,int _Val) ;\n char *__cdecl _strset_l(char *_Str,int _Val,_locale_t _Locale) ;\n char *__cdecl strcpy(char * __restrict__ _Dest,const char * __restrict__ _Source);\n char *__cdecl strcat(char * __restrict__ _Dest,const char * __restrict__ _Source);\n int __cdecl strcmp(const char *_Str1,const char *_Str2);\n size_t __cdecl strlen(const char *_Str);\n size_t __cdecl strnlen(const char *_Str,size_t _MaxCount);\n void *__cdecl memmove(void *_Dst,const void *_Src,size_t _Size) ;\n __attribute__ ((__dllimport__)) char *__cdecl _strdup(const char *_Src);\n char *__cdecl strchr(const char *_Str,int _Val);\n __attribute__ ((__dllimport__)) int __cdecl _stricmp(const char *_Str1,const char *_Str2);\n __attribute__ ((__dllimport__)) int __cdecl _strcmpi(const char *_Str1,const char *_Str2);\n __attribute__ ((__dllimport__)) int __cdecl _stricmp_l(const char *_Str1,const char *_Str2,_locale_t _Locale);\n", "right_context": " __attribute__ ((__dllimport__)) int __cdecl _strcoll_l(const char *_Str1,const char *_Str2,_locale_t _Locale);\n __attribute__ ((__dllimport__)) int __cdecl _stricoll(const char *_Str1,const char *_Str2);\n __attribute__ ((__dllimport__)) int __cdecl _stricoll_l(const char *_Str1,const char *_Str2,_locale_t _Locale);\n __attribute__ ((__dllimport__)) int __cdecl _strncoll (const char *_Str1,const char *_Str2,size_t _MaxCount);\n __attribute__ ((__dllimport__)) int __cdecl _strncoll_l(const char *_Str1,const char *_Str2,size_t _MaxCount,_locale_t _Locale);\n __attribute__ ((__dllimport__)) int __cdecl _strnicoll (const char *_Str1,const char *_Str2,size_t _MaxCount);\n __attribute__ ((__dllimport__)) int __cdecl _strnicoll_l(const char *_Str1,const char *_Str2,size_t _MaxCount,_locale_t _Locale);\n size_t __cdecl strcspn(const char *_Str,const char *_Control);\n __attribute__ ((__dllimport__)) char *__cdecl _strerror(const char *_ErrMsg) ;\n char *__cdecl strerror(int) ;\n __attribute__ ((__dllimport__)) char *__cdecl _strlwr(char *_String) ;\n char *strlwr_l(char *_String,_locale_t _Locale) ;\n char *__cdecl strncat(char * __restrict__ _Dest,const char * __restrict__ _Source,size_t _Count) ;\n int __cdecl strncmp(const char *_Str1,const char *_Str2,size_t _MaxCount);\n __attribute__ ((__dllimport__)) int __cdecl _strnicmp(const char *_Str1,const char *_Str2,size_t _MaxCount);\n __attribute__ ((__dllimport__)) int __cdecl _strnicmp_l(const char *_Str1,const char *_Str2,size_t _MaxCount,_locale_t _Locale);\n char *strncpy(char * __restrict__ _Dest,const char * __restrict__ _Source,size_t _Count) ;\n __attribute__ ((__dllimport__)) char *__cdecl _strnset(char *_Str,int _Val,size_t _MaxCount) ;\n __attribute__ ((__dllimport__)) char *__cdecl _strnset_l(char *str,int c,size_t count,_locale_t _Locale) ;\n char *__cdecl strpbrk(const char *_Str,const char *_Control);\n char *__cdecl strrchr(const char *_Str,int _Ch);\n __attribute__ ((__dllimport__)) char *__cdecl _strrev(char *_Str);\n size_t __cdecl strspn(const char *_Str,const char *_Control);\n char *__cdecl strstr(const char *_Str,const char *_SubStr);\n char *__cdecl strtok(char * __restrict__ _Str,const char * __restrict__ _Delim) ;\n __attribute__ ((__dllimport__)) char *__cdecl _strupr(char *_String) ;\n __attribute__ ((__dllimport__)) char *_strupr_l(char *_String,_locale_t _Locale) ;\n size_t __cdecl strxfrm(char * __restrict__ _Dst,const char * __restrict__ _Src,size_t _MaxCount);\n __attribute__ ((__dllimport__)) size_t __cdecl _strxfrm_l(char * __restrict__ _Dst,const char * __restrict__ _Src,size_t _MaxCount,_locale_t _Locale);\n\n\n char *__cdecl strdup(const char *_Src) ;\n int __cdecl strcmpi(const char *_Str1,const char *_Str2) ;\n int __cdecl stricmp(const char *_Str1,const char *_Str2) ;\n char *__cdecl strlwr(char *_Str) ;\n int __cdecl strnicmp(const char *_Str1,const char *_Str,size_t _MaxCount) ;\n int __cdecl strncasecmp (const char *, const char *, size_t);\n int __cdecl strcasecmp (const char *, const char *);\n\n\n\n\n\n\n\n char *__cdecl strnset(char *_Str,int _Val,size_t _MaxCount) ;\n char *__cdecl strrev(char *_Str) ;\n char *__cdecl strset(char *_Str,int _Val) ;\n char *__cdecl strupr(char *_Str) ;\n\n\n\n\n\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _wcsdup(const wchar_t *_Str);\n wchar_t *__cdecl wcscat(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Source) ;\n wchar_t *__cdecl wcschr(const wchar_t *_Str,wchar_t _Ch);\n int __cdecl wcscmp(const wchar_t *_Str1,const wchar_t *_Str2);\n wchar_t *__cdecl wcscpy(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Source) ;\n size_t __cdecl wcscspn(const wchar_t *_Str,const wchar_t *_Control);\n size_t __cdecl wcslen(const wchar_t *_Str);\n size_t __cdecl wcsnlen(const wchar_t *_Src,size_t _MaxCount);\n wchar_t *wcsncat(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Source,size_t _Count) ;\n int __cdecl wcsncmp(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount);\n wchar_t *wcsncpy(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Source,size_t _Count) ;\n wchar_t *__cdecl _wcsncpy_l(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Source,size_t _Count,_locale_t _Locale) ;\n wchar_t *__cdecl wcspbrk(const wchar_t *_Str,const wchar_t *_Control);\n wchar_t *__cdecl wcsrchr(const wchar_t *_Str,wchar_t _Ch);\n size_t __cdecl wcsspn(const wchar_t *_Str,const wchar_t *_Control);\n wchar_t *__cdecl wcsstr(const wchar_t *_Str,const wchar_t *_SubStr);\n wchar_t *__cdecl wcstok(wchar_t * __restrict__ _Str,const wchar_t * __restrict__ _Delim) ;\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _wcserror(int _ErrNum) ;\n __attribute__ ((__dllimport__)) wchar_t *__cdecl __wcserror(const wchar_t *_Str) ;\n __attribute__ ((__dllimport__)) int __cdecl _wcsicmp(const wchar_t *_Str1,const wchar_t *_Str2);\n __attribute__ ((__dllimport__)) int __cdecl _wcsicmp_l(const wchar_t *_Str1,const wchar_t *_Str2,_locale_t _Locale);\n __attribute__ ((__dllimport__)) int __cdecl _wcsnicmp(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount);\n __attribute__ ((__dllimport__)) int __cdecl _wcsnicmp_l(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount,_locale_t _Locale);\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _wcsnset(wchar_t *_Str,wchar_t _Val,size_t _MaxCount) ;\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _wcsrev(wchar_t *_Str);\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _wcsset(wchar_t *_Str,wchar_t _Val) ;\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _wcslwr(wchar_t *_String) ;\n __attribute__ ((__dllimport__)) wchar_t *_wcslwr_l(wchar_t *_String,_locale_t _Locale) ;\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _wcsupr(wchar_t *_String) ;\n __attribute__ ((__dllimport__)) wchar_t *_wcsupr_l(wchar_t *_String,_locale_t _Locale) ;\n size_t __cdecl wcsxfrm(wchar_t * __restrict__ _Dst,const wchar_t * __restrict__ _Src,size_t _MaxCount);\n __attribute__ ((__dllimport__)) size_t __cdecl _wcsxfrm_l(wchar_t * __restrict__ _Dst,const wchar_t * __restrict__ _Src,size_t _MaxCount,_locale_t _Locale);\n int __cdecl wcscoll(const wchar_t *_Str1,const wchar_t *_Str2);\n __attribute__ ((__dllimport__)) int __cdecl _wcscoll_l(const wchar_t *_Str1,const wchar_t *_Str2,_locale_t _Locale);\n __attribute__ ((__dllimport__)) int __cdecl _wcsicoll(const wchar_t *_Str1,const wchar_t *_Str2);\n __attribute__ ((__dllimport__)) int __cdecl _wcsicoll_l(const wchar_t *_Str1,const wchar_t *_Str2,_locale_t _Locale);\n __attribute__ ((__dllimport__)) int __cdecl _wcsncoll(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount);\n __attribute__ ((__dllimport__)) int __cdecl _wcsncoll_l(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount,_locale_t _Locale);\n __attribute__ ((__dllimport__)) int __cdecl _wcsnicoll(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount);\n __attribute__ ((__dllimport__)) int __cdecl _wcsnicoll_l(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount,_locale_t _Locale);\n\n\n wchar_t *__cdecl wcsdup(const wchar_t *_Str) ;\n\n int __cdecl wcsicmp(const wchar_t *_Str1,const wchar_t *_Str2) ;\n int __cdecl wcsnicmp(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount) ;\n wchar_t *__cdecl wcsnset(wchar_t *_Str,wchar_t _Val,size_t _MaxCount) ;\n wchar_t *__cdecl wcsrev(wchar_t *_Str) ;\n wchar_t *__cdecl wcsset(wchar_t *_Str,wchar_t _Val) ;\n wchar_t *__cdecl wcslwr(wchar_t *_Str) ;\n wchar_t *__cdecl wcsupr(wchar_t *_Str) ;\n int __cdecl wcsicoll(const wchar_t *_Str1,const wchar_t *_Str2) ;\n\n\n\n\n\n\n\n\n#1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\sec_api/string_s.h\" 1 3\n\n\n\n\n\n\n\n\n#1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\string.h\" 1 3\n#9 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\sec_api/string_s.h\" 2 3\n#175 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\string.h\" 2 3\n#67 \"C:/Xilinx/Vivado/2018.2/include\\\\ap_cint.h\" 2\n#1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 1 3\n\n\n\n\n\n\n\n\n#1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 1 3\n#9 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 2 3\n\n\n#1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw_print_push.h\" 1 3\n#11 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 2 3\n\n\n#pragma pack(push,_CRT_PACKING)\n#26 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 3\n struct _iobuf {\n char *_ptr;\n int _cnt;\n char *_base;\n int _flag;\n int _file;\n int _charbuf;\n int _bufsiz;\n char *_tmpfname;\n };\n typedef struct _iobuf FILE;\n#84 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 3\n typedef long _off_t;\n\n typedef long off_t;\n\n\n\n\n\n\n __extension__ typedef long long _off64_t;\n\n __extension__ typedef long long off64_t;\n\n\n\n\n\n __attribute__ ((__dllimport__)) FILE *__cdecl __iob_func(void);\n#120 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 3\n __extension__ typedef long long fpos_t;\n#157 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 3\n __attribute__ ((__dllimport__)) int __cdecl _filbuf(FILE *_File);\n __attribute__ ((__dllimport__)) int __cdecl _flsbuf(int _Ch,FILE *_File);\n\n\n\n __attribute__ ((__dllimport__)) FILE *__cdecl _fsopen(const char *_Filename,const char *_Mode,int _ShFlag);\n\n void __cdecl clearerr(FILE *_File);\n int __cdecl fclose(FILE *_File);\n __attribute__ ((__dllimport__)) int __cdecl _fcloseall(void);\n\n\n\n __attribute__ ((__dllimport__)) FILE *__cdecl _fdopen(int _FileHandle,const char *_Mode);\n\n int __cdecl feof(FILE *_File);\n int __cdecl ferror(FILE *_File);\n int __cdecl fflush(FILE *_File);\n int __cdecl fgetc(FILE *_File);\n __attribute__ ((__dllimport__)) int __cdecl _fgetchar(void);\n int __cdecl fgetpos(FILE * __restrict__ _File ,fpos_t * __restrict__ _Pos);\n char *__cdecl fgets(char * __restrict__ _Buf,int _MaxCount,FILE * __restrict__ _File);\n __attribute__ ((__dllimport__)) int __cdecl _fileno(FILE *_File);\n\n\n\n __attribute__ ((__dllimport__)) char *__cdecl _tempnam(const char *_DirName,const char *_FilePrefix);\n __attribute__ ((__dllimport__)) int __cdecl _flushall(void);\n FILE *__cdecl fopen(const char * __restrict__ _Filename,const char * __restrict__ _Mode) ;\n FILE *fopen64(const char * __restrict__ filename,const char * __restrict__ mode);\n int __cdecl fprintf(FILE * __restrict__ _File,const char * __restrict__ _Format,...);\n int __cdecl fputc(int _Ch,FILE *_File);\n __attribute__ ((__dllimport__)) int __cdecl _fputchar(int _Ch);\n int __cdecl fputs(const char * __restrict__ _Str,FILE * __restrict__ _File);\n size_t __cdecl fread(void * __restrict__ _DstBuf,size_t _ElementSize,size_t _Count,FILE * __restrict__ _File);\n FILE *__cdecl freopen(const char * __restrict__ _Filename,const char * __restrict__ _Mode,FILE * __restrict__ _File) ;\n int __cdecl fscanf(FILE * __restrict__ _File,const char * __restrict__ _Format,...) ;\n int __cdecl _fscanf_l(FILE * __restrict__ _File,const char * __restrict__ _Format,_locale_t locale,...) ;\n int __cdecl fsetpos(FILE *_File,const fpos_t *_Pos);\n int __cdecl fseek(FILE *_File,long _Offset,int _Origin);\n int fseeko64(FILE* stream, _off64_t offset, int whence);\n long __cdecl ftell(FILE *_File);\n _off64_t ftello64(FILE * stream);\n __extension__ int __cdecl _fseeki64(FILE *_File,long long _Offset,int _Origin);\n __extension__ long long __cdecl _ftelli64(FILE *_File);\n size_t __cdecl fwrite(const void * __restrict__ _Str,size_t _Size,size_t _Count,FILE * __restrict__ _File);\n int __cdecl getc(FILE *_File);\n int __cdecl getchar(void);\n __attribute__ ((__dllimport__)) int __cdecl _getmaxstdio(void);\n char *__cdecl gets(char *_Buffer) ;\n int __cdecl _getw(FILE *_File);\n\n\n void __cdecl perror(const char *_ErrMsg);\n\n __attribute__ ((__dllimport__)) int __cdecl _pclose(FILE *_File);\n __attribute__ ((__dllimport__)) FILE *__cdecl _popen(const char *_Command,const char *_Mode);\n\n\n\n\n int __cdecl printf(const char * __restrict__ _Format,...);\n int __cdecl putc(int _Ch,FILE *_File);\n int __cdecl putchar(int _Ch);\n int __cdecl puts(const char *_Str);\n __attribute__ ((__dllimport__)) int __cdecl _putw(int _Word,FILE *_File);\n\n\n int __cdecl remove(const char *_Filename);\n int __cdecl rename(const char *_OldFilename,const char *_NewFilename);\n __attribute__ ((__dllimport__)) int __cdecl _unlink(const char *_Filename);\n\n int __cdecl unlink(const char *_Filename) ;\n\n\n void __cdecl rewind(FILE *_File);\n __attribute__ ((__dllimport__)) int __cdecl _rmtmp(void);\n int __cdecl scanf(const char * __restrict__ _Format,...) ;\n int __cdecl _scanf_l(const char * __restrict__ format,_locale_t locale,... ) ;\n void __cdecl setbuf(FILE * __restrict__ _File,char * __restrict__ _Buffer) ;\n __attribute__ ((__dllimport__)) int __cdecl _setmaxstdio(int _Max);\n __attribute__ ((__dllimport__)) unsigned int __cdecl _set_output_format(unsigned int _Format);\n __attribute__ ((__dllimport__)) unsigned int __cdecl _get_output_format(void);\n unsigned int __cdecl __mingw_set_output_format(unsigned int _Format);\n unsigned int __cdecl __mingw_get_output_format(void);\n\n\n\n\n int __cdecl setvbuf(FILE * __restrict__ _File,char * __restrict__ _Buf,int _Mode,size_t _Size);\n __attribute__ ((__dllimport__)) int __cdecl _scprintf(const char * __restrict__ _Format,...);\n int __cdecl sscanf(const char * __restrict__ _Src,const char * __restrict__ _Format,...) ;\n int __cdecl _sscanf_l(const char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) ;\n __attribute__ ((__dllimport__)) int __cdecl _snscanf(const char * __restrict__ _Src,size_t _MaxCount,const char * __restrict__ _Format,...) ;\n __attribute__ ((__dllimport__)) int __cdecl _snscanf_l(const char * __restrict__ input,size_t length,const char * __restrict__ format,_locale_t locale,...) ;\n FILE *__cdecl tmpfile(void) ;\n char *__cdecl tmpnam(char *_Buffer);\n int __cdecl ungetc(int _Ch,FILE *_File);\n int __cdecl vfprintf(FILE * __restrict__ _File,const char * __restrict__ _Format,va_list _ArgList);\n int __cdecl vprintf(const char * __restrict__ _Format,va_list _ArgList);\n\n\n extern\n __attribute__((__format__ (gnu_printf, 3, 0))) __attribute__ ((__nonnull__ (3)))\n int __cdecl __mingw_vsnprintf(char * __restrict__ _DstBuf,size_t _MaxCount,const char * __restrict__ _Format,\n va_list _ArgList);\n extern\n __attribute__((__format__ (gnu_printf, 3, 4))) __attribute__ ((__nonnull__ (3)))\n int __cdecl __mingw_snprintf(char * __restrict__ s, size_t n, const char * __restrict__ format, ...);\n extern\n __attribute__((__format__ (gnu_printf, 1, 2))) __attribute__ ((__nonnull__ (1)))\n int __cdecl __mingw_printf(const char * __restrict__ , ... ) __attribute__ ((__nothrow__));\n extern\n __attribute__((__format__ (gnu_printf, 1, 0))) __attribute__ ((__nonnull__ (1)))\n int __cdecl __mingw_vprintf (const char * __restrict__ , va_list) __attribute__ ((__nothrow__));\n extern\n __attribute__((__format__ (gnu_printf, 2, 3))) __attribute__ ((__nonnull__ (2)))\n int __cdecl __mingw_fprintf (FILE * __restrict__ , const char * __restrict__ , ...) __attribute__ ((__nothrow__));\n extern\n __attribute__((__format__ (gnu_printf, 2, 0))) __attribute__ ((__nonnull__ (2)))\n int __cdecl __mingw_vfprintf (FILE * __restrict__ , const char * __restrict__ , va_list) __attribute__ ((__nothrow__));\n extern\n __attribute__((__format__ (gnu_printf, 2, 3))) __attribute__ ((__nonnull__ (2)))\n int __cdecl __mingw_sprintf (char * __restrict__ , const char * __restrict__ , ...) __attribute__ ((__nothrow__));\n extern\n __attribute__((__format__ (gnu_printf, 2, 0))) __attribute__ ((__nonnull__ (2)))\n int __cdecl __mingw_vsprintf (char * __restrict__ , const char * __restrict__ , va_list) __attribute__ ((__nothrow__));\n\n __attribute__ ((__dllimport__)) int __cdecl _snprintf(char * __restrict__ _Dest,size_t _Count,const char * __restrict__ _Format,...) ;\n __attribute__ ((__dllimport__)) int __cdecl _snprintf_l(char * __restrict__ buffer,size_t count,const char * __restrict__ format,_locale_t locale,...) ;\n __attribute__ ((__dllimport__)) int __cdecl _vsnprintf(char * __restrict__ _Dest,size_t _Count,const char * __restrict__ _Format,va_list _Args) ;\n __attribute__ ((__dllimport__)) int __cdecl _vsnprintf_l(char * __restrict__ buffer,size_t count,const char * __restrict__ format,_locale_t locale,va_list argptr) ;\n int __cdecl sprintf(char * __restrict__ _Dest,const char * __restrict__ _Format,...) ;\n int __cdecl _sprintf_l(char * __restrict__ buffer,const char * __restrict__ format,_locale_t locale,...) ;\n int __cdecl vsprintf(char * __restrict__ _Dest,const char * __restrict__ _Format,va_list _Args) ;\n\n\n\n\n\n\n\n int __cdecl vsnprintf(char * __restrict__ _DstBuf,size_t _MaxCount,const char * __restrict__ _Format,va_list _ArgList) ;\n\n int __cdecl snprintf(char * __restrict__ s, size_t n, const char * __restrict__ format, ...);\n#312 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 3\n int __cdecl vscanf(const char * __restrict__ Format, va_list argp);\n int __cdecl vfscanf (FILE * __restrict__ fp, const char * __restrict__ Format,va_list argp);\n int __cdecl vsscanf (const char * __restrict__ _Str,const char * __restrict__ Format,va_list argp);\n\n __attribute__ ((__dllimport__)) int __cdecl _vscprintf(const char * __restrict__ _Format,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _set_printf_count_output(int _Value);\n __attribute__ ((__dllimport__)) int __cdecl _get_printf_count_output(void);\n#330 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 3\n __attribute__ ((__dllimport__)) FILE *__cdecl _wfsopen(const wchar_t *_Filename,const wchar_t *_Mode,int _ShFlag);\n\n\n wint_t __cdecl fgetwc(FILE *_File);\n __attribute__ ((__dllimport__)) wint_t __cdecl _fgetwchar(void);\n wint_t __cdecl fputwc(wchar_t _Ch,FILE *_File);\n __attribute__ ((__dllimport__)) wint_t __cdecl _fputwchar(wchar_t _Ch);\n wint_t __cdecl getwc(FILE *_File);\n wint_t __cdecl getwchar(void);\n wint_t __cdecl putwc(wchar_t _Ch,FILE *_File);\n wint_t __cdecl putwchar(wchar_t _Ch);\n wint_t __cdecl ungetwc(wint_t _Ch,FILE *_File);\n wchar_t *__cdecl fgetws(wchar_t * __restrict__ _Dst,int _SizeInWords,FILE * __restrict__ _File);\n int __cdecl fputws(const wchar_t * __restrict__ _Str,FILE * __restrict__ _File);\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _getws(wchar_t *_String) ;\n __attribute__ ((__dllimport__)) int __cdecl _putws(const wchar_t *_Str);\n int __cdecl fwprintf(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,...);\n int __cdecl wprintf(const wchar_t * __restrict__ _Format,...);\n __attribute__ ((__dllimport__)) int __cdecl _scwprintf(const wchar_t * __restrict__ _Format,...);\n int __cdecl vfwprintf(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,va_list _ArgList);\n int __cdecl vwprintf(const wchar_t * __restrict__ _Format,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl swprintf(wchar_t * __restrict__ , const wchar_t * __restrict__ , ...) ;\n __attribute__ ((__dllimport__)) int __cdecl _swprintf_l(wchar_t * __restrict__ buffer,size_t count,const wchar_t * __restrict__ format,_locale_t locale,... ) ;\n __attribute__ ((__dllimport__)) int __cdecl vswprintf(wchar_t * __restrict__ , const wchar_t * __restrict__ ,va_list) ;\n __attribute__ ((__dllimport__)) int __cdecl _swprintf_c(wchar_t * __restrict__ _DstBuf,size_t _SizeInWords,const wchar_t * __restrict__ _Format,...);\n __attribute__ ((__dllimport__)) int __cdecl _vswprintf_c(wchar_t * __restrict__ _DstBuf,size_t _SizeInWords,const wchar_t * __restrict__ _Format,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _snwprintf(wchar_t * __restrict__ _Dest,size_t _Count,const wchar_t * __restrict__ _Format,...) ;\n __attribute__ ((__dllimport__)) int __cdecl _vsnwprintf(wchar_t * __restrict__ _Dest,size_t _Count,const wchar_t * __restrict__ _Format,va_list _Args) ;\n\n\n\n\n\n int __cdecl snwprintf (wchar_t * __restrict__ s, size_t n, const wchar_t * __restrict__ format, ...);\n int __cdecl vsnwprintf (wchar_t * __restrict__ , size_t, const wchar_t * __restrict__ , va_list);\n#373 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 3\n int __cdecl vwscanf (const wchar_t * __restrict__ , va_list);\n int __cdecl vfwscanf (FILE * __restrict__ ,const wchar_t * __restrict__ ,va_list);\n int __cdecl vswscanf (const wchar_t * __restrict__ ,const wchar_t * __restrict__ ,va_list);\n\n __attribute__ ((__dllimport__)) int __cdecl _fwprintf_p(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,...);\n __attribute__ ((__dllimport__)) int __cdecl _wprintf_p(const wchar_t * __restrict__ _Format,...);\n __attribute__ ((__dllimport__)) int __cdecl _vfwprintf_p(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _vwprintf_p(const wchar_t * __restrict__ _Format,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _swprintf_p(wchar_t * __restrict__ _DstBuf,size_t _MaxCount,const wchar_t * __restrict__ _Format,...);\n __attribute__ ((__dllimport__)) int __cdecl _vswprintf_p(wchar_t * __restrict__ _DstBuf,size_t _MaxCount,const wchar_t * __restrict__ _Format,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _scwprintf_p(const wchar_t * __restrict__ _Format,...);\n __attribute__ ((__dllimport__)) int __cdecl _vscwprintf_p(const wchar_t * __restrict__ _Format,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _wprintf_l(const wchar_t * __restrict__ _Format,_locale_t _Locale,...);\n __attribute__ ((__dllimport__)) int __cdecl _wprintf_p_l(const wchar_t * __restrict__ _Format,_locale_t _Locale,...);\n __attribute__ ((__dllimport__)) int __cdecl _vwprintf_l(const wchar_t * __restrict__ _Format,_locale_t _Locale,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _vwprintf_p_l(const wchar_t * __restrict__ _Format,_locale_t _Locale,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _fwprintf_l(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,_locale_t _Locale,...);\n __attribute__ ((__dllimport__)) int __cdecl _fwprintf_p_l(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,_locale_t _Locale,...);\n __attribute__ ((__dllimport__)) int __cdecl _vfwprintf_l(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,_locale_t _Locale,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _vfwprintf_p_l(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,_locale_t _Locale,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _swprintf_c_l(wchar_t * __restrict__ _DstBuf,size_t _MaxCount,const wchar_t * __restrict__ _Format,_locale_t _Locale,...);\n __attribute__ ((__dllimport__)) int __cdecl _swprintf_p_l(wchar_t * __restrict__ _DstBuf,size_t _MaxCount,const wchar_t * __restrict__ _Format,_locale_t _Locale,...);\n __attribute__ ((__dllimport__)) int __cdecl _vswprintf_c_l(wchar_t * __restrict__ _DstBuf,size_t _MaxCount,const wchar_t * __restrict__ _Format,_locale_t _Locale,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _vswprintf_p_l(wchar_t * __restrict__ _DstBuf,size_t _MaxCount,const wchar_t * __restrict__ _Format,_locale_t _Locale,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _scwprintf_l(const wchar_t * __restrict__ _Format,_locale_t _Locale,...);\n __attribute__ ((__dllimport__)) int __cdecl _scwprintf_p_l(const wchar_t * __restrict__ _Format,_locale_t _Locale,...);\n __attribute__ ((__dllimport__)) int __cdecl _vscwprintf_p_l(const wchar_t * __restrict__ _Format,_locale_t _Locale,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _snwprintf_l(wchar_t * __restrict__ _DstBuf,size_t _MaxCount,const wchar_t * __restrict__ _Format,_locale_t _Locale,...);\n __attribute__ ((__dllimport__)) int __cdecl _vsnwprintf_l(wchar_t * __restrict__ _DstBuf,size_t _MaxCount,const wchar_t * __restrict__ _Format,_locale_t _Locale,va_list _ArgList) ;\n __attribute__ ((__dllimport__)) int __cdecl _swprintf(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Format,...);\n __attribute__ ((__dllimport__)) int __cdecl _vswprintf(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Format,va_list _Args);\n __attribute__ ((__dllimport__)) int __cdecl __swprintf_l(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Format,_locale_t _Plocinfo,...) ;\n __attribute__ ((__dllimport__)) int __cdecl _vswprintf_l(wchar_t * __restrict__ buffer,size_t count,const wchar_t * __restrict__ format,_locale_t locale,va_list argptr) ;\n __attribute__ ((__dllimport__)) int __cdecl __vswprintf_l(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Format,_locale_t _Plocinfo,va_list _Args) ;\n#417 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 3\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _wtempnam(const wchar_t *_Directory,const wchar_t *_FilePrefix);\n __attribute__ ((__dllimport__)) int __cdecl _vscwprintf(const wchar_t * __restrict__ _Format,va_list _ArgList);\n __attribute__ ((__dllimport__)) int __cdecl _vscwprintf_l(const wchar_t * __restrict__ _Format,_locale_t _Locale,va_list _ArgList);\n int __cdecl fwscanf(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,...) ;\n __attribute__ ((__dllimport__)) int __cdecl _fwscanf_l(FILE * __restrict__ _File,const wchar_t * __restrict__ _Format,_locale_t _Locale,...) ;\n int __cdecl swscanf(const wchar_t * __restrict__ _Src,const wchar_t * __restrict__ _Format,...) ;\n __attribute__ ((__dllimport__)) int __cdecl _swscanf_l(const wchar_t * __restrict__ _Src,const wchar_t * __restrict__ _Format,_locale_t _Locale,...) ;\n __attribute__ ((__dllimport__)) int __cdecl _snwscanf(const wchar_t * __restrict__ _Src,size_t _MaxCount,const wchar_t * __restrict__ _Format,...);\n __attribute__ ((__dllimport__)) int __cdecl _snwscanf_l(const wchar_t * __restrict__ _Src,size_t _MaxCount,const wchar_t * __restrict__ _Format,_locale_t _Locale,...);\n int __cdecl wscanf(const wchar_t * __restrict__ _Format,...) ;\n __attribute__ ((__dllimport__)) int __cdecl _wscanf_l(const wchar_t * __restrict__ _Format,_locale_t _Locale,...) ;\n __attribute__ ((__dllimport__)) FILE *__cdecl _wfdopen(int _FileHandle ,const wchar_t *_Mode);\n __attribute__ ((__dllimport__)) FILE *__cdecl _wfopen(const wchar_t * __restrict__ _Filename,const wchar_t *__restrict__ _Mode) ;\n __attribute__ ((__dllimport__)) FILE *__cdecl _wfreopen(const wchar_t * __restrict__ _Filename,const wchar_t * __restrict__ _Mode,FILE * __restrict__ _OldFile) ;\n\n\n\n __attribute__ ((__dllimport__)) void __cdecl _wperror(const wchar_t *_ErrMsg);\n\n __attribute__ ((__dllimport__)) FILE *__cdecl _wpopen(const wchar_t *_Command,const wchar_t *_Mode);\n\n\n\n\n __attribute__ ((__dllimport__)) int __cdecl _wremove(const wchar_t *_Filename);\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _wtmpnam(wchar_t *_Buffer);\n __attribute__ ((__dllimport__)) wint_t __cdecl _fgetwc_nolock(FILE *_File);\n __attribute__ ((__dllimport__)) wint_t __cdecl _fputwc_nolock(wchar_t _Ch,FILE *_File);\n __attribute__ ((__dllimport__)) wint_t __cdecl _ungetwc_nolock(wint_t _Ch,FILE *_File);\n#475 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 3\n __attribute__ ((__dllimport__)) void __cdecl _lock_file(FILE *_File);\n __attribute__ ((__dllimport__)) void __cdecl _unlock_file(FILE *_File);\n __attribute__ ((__dllimport__)) int __cdecl _fclose_nolock(FILE *_File);\n __attribute__ ((__dllimport__)) int __cdecl _fflush_nolock(FILE *_File);\n __attribute__ ((__dllimport__)) size_t __cdecl _fread_nolock(void * __restrict__ _DstBuf,size_t _ElementSize,size_t _Count,FILE * __restrict__ _File);\n __attribute__ ((__dllimport__)) int __cdecl _fseek_nolock(FILE *_File,long _Offset,int _Origin);\n __attribute__ ((__dllimport__)) long __cdecl _ftell_nolock(FILE *_File);\n __extension__ __attribute__ ((__dllimport__)) int __cdecl _fseeki64_nolock(FILE *_File,long long _Offset,int _Origin);\n __extension__ __attribute__ ((__dllimport__)) long long __cdecl _ftelli64_nolock(FILE *_File);\n __attribute__ ((__dllimport__)) size_t __cdecl _fwrite_nolock(const void * __restrict__ _DstBuf,size_t _Size,size_t _Count,FILE * __restrict__ _File);\n __attribute__ ((__dllimport__)) int __cdecl _ungetc_nolock(int _Ch,FILE *_File);\n\n\n\n\n\n char *__cdecl tempnam(const char *_Directory,const char *_FilePrefix) ;\n int __cdecl fcloseall(void) ;\n FILE *__cdecl fdopen(int _FileHandle,const char *_Format) ;\n int __cdecl fgetchar(void) ;\n int __cdecl fileno(FILE *_File) ;\n int __cdecl flushall(void) ;\n int __cdecl fputchar(int _Ch) ;\n int __cdecl getw(FILE *_File) ;\n int __cdecl putw(int _Ch,FILE *_File) ;\n int __cdecl rmtmp(void) ;\n\n\n\n\n\n\n#pragma pack(pop)\n\n\n#1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\sec_api/stdio_s.h\" 1 3\n\n\n\n\n\n\n\n\n#1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 1 3\n#9 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\sec_api/stdio_s.h\" 2 3\n#509 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 2 3\n\n\n#1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw_print_pop.h\" 1 3\n#511 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdio.h\" 2 3\n#68 \"C:/Xilinx/Vivado/2018.2/include\\\\ap_cint.h\" 2\n#81 \"C:/Xilinx/Vivado/2018.2/include\\\\ap_cint.h\"\n#1 \"C:/Xilinx/Vivado/2018.2/include/etc/autopilot_apint.h\" 1\n#57 \"C:/Xilinx/Vivado/2018.2/include/etc/autopilot_apint.h\"\n#1 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_dt.h\" 1\n#97 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_dt.h\"\n#1 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_dt.def\" 1\n\n\ntypedef int __attribute__ ((bitwidth(1))) int1;\ntypedef int __attribute__ ((bitwidth(2))) int2;\ntypedef int __attribute__ ((bitwidth(3))) int3;\ntypedef int __attribute__ ((bitwidth(4))) int4;\ntypedef int __attribute__ ((bitwidth(5))) int5;\ntypedef int __attribute__ ((bitwidth(6))) int6;\ntypedef int __attribute__ ((bitwidth(7))) int7;\ntypedef int __attribute__ ((bitwidth(8))) int8;\ntypedef int __attribute__ ((bitwidth(9))) int9;\ntypedef int __attribute__ ((bitwidth(10))) int10;\ntypedef int __attribute__ ((bitwidth(11))) int11;\ntypedef int __attribute__ ((bitwidth(12))) int12;\ntypedef int __attribute__ ((bitwidth(13))) int13;\ntypedef int __attribute__ ((bitwidth(14))) int14;\ntypedef int __attribute__ ((bitwidth(15))) int15;\ntypedef int __attribute__ ((bitwidth(16))) int16;\ntypedef int __attribute__ ((bitwidth(17))) int17;\ntypedef int __attribute__ ((bitwidth(18))) int18;\ntypedef int __attribute__ ((bitwidth(19))) int19;\ntypedef int __attribute__ ((bitwidth(20))) int20;\ntypedef int __attribute__ ((bitwidth(21))) int21;\ntypedef int __attribute__ ((bitwidth(22))) int22;\ntypedef int __attribute__ ((bitwidth(23))) int23;\ntypedef int __attribute__ ((bitwidth(24))) int24;\ntypedef int __attribute__ ((bitwidth(25))) int25;\ntypedef int __attribute__ ((bitwidth(26))) int26;\ntypedef int __attribute__ ((bitwidth(27))) int27;\ntypedef int __attribute__ ((bitwidth(28))) int28;\ntypedef int __attribute__ ((bitwidth(29))) int29;\ntypedef int __attribute__ ((bitwidth(30))) int30;\ntypedef int __attribute__ ((bitwidth(31))) int31;\ntypedef int __attribute__ ((bitwidth(32))) int32;\ntypedef int __attribute__ ((bitwidth(33))) int33;\ntypedef int __attribute__ ((bitwidth(34))) int34;\ntypedef int __attribute__ ((bitwidth(35))) int35;\ntypedef int __attribute__ ((bitwidth(36))) int36;\ntypedef int __attribute__ ((bitwidth(37))) int37;\ntypedef int __attribute__ ((bitwidth(38))) int38;\ntypedef int __attribute__ ((bitwidth(39))) int39;\ntypedef int __attribute__ ((bitwidth(40))) int40;\ntypedef int __attribute__ ((bitwidth(41))) int41;\ntypedef int __attribute__ ((bitwidth(42))) int42;\ntypedef int __attribute__ ((bitwidth(43))) int43;\ntypedef int __attribute__ ((bitwidth(44))) int44;\ntypedef int __attribute__ ((bitwidth(45))) int45;\ntypedef int __attribute__ ((bitwidth(46))) int46;\ntypedef int __attribute__ ((bitwidth(47))) int47;\ntypedef int __attribute__ ((bitwidth(48))) int48;\ntypedef int __attribute__ ((bitwidth(49))) int49;\ntypedef int __attribute__ ((bitwidth(50))) int50;\ntypedef int __attribute__ ((bitwidth(51))) int51;\ntypedef int __attribute__ ((bitwidth(52))) int52;\ntypedef int __attribute__ ((bitwidth(53))) int53;\ntypedef int __attribute__ ((bitwidth(54))) int54;\ntypedef int __attribute__ ((bitwidth(55))) int55;\ntypedef int __attribute__ ((bitwidth(56))) int56;\ntypedef int __attribute__ ((bitwidth(57))) int57;\ntypedef int __attribute__ ((bitwidth(58))) int58;\ntypedef int __attribute__ ((bitwidth(59))) int59;\ntypedef int __attribute__ ((bitwidth(60))) int60;\ntypedef int __attribute__ ((bitwidth(61))) int61;\ntypedef int __attribute__ ((bitwidth(62))) int62;\ntypedef int __attribute__ ((bitwidth(63))) int63;\n\n\n\n\n\n\n\ntypedef int __attribute__ ((bitwidth(65))) int65;\ntypedef int __attribute__ ((bitwidth(66))) int66;\ntypedef int __attribute__ ((bitwidth(67))) int67;\ntypedef int __attribute__ ((bitwidth(68))) int68;\ntypedef int __attribute__ ((bitwidth(69))) int69;\ntypedef int __attribute__ ((bitwidth(70))) int70;\ntypedef int __attribute__ ((bitwidth(71))) int71;\ntypedef int __attribute__ ((bitwidth(72))) int72;\ntypedef int __attribute__ ((bitwidth(73))) int73;\ntypedef int __attribute__ ((bitwidth(74))) int74;\ntypedef int __attribute__ ((bitwidth(75))) int75;\ntypedef int __attribute__ ((bitwidth(76))) int76;\ntypedef int __attribute__ ((bitwidth(77))) int77;\ntypedef int __attribute__ ((bitwidth(78))) int78;\ntypedef int __attribute__ ((bitwidth(79))) int79;\ntypedef int __attribute__ ((bitwidth(80))) int80;\ntypedef int __attribute__ ((bitwidth(81))) int81;\ntypedef int __attribute__ ((bitwidth(82))) int82;\ntypedef int __attribute__ ((bitwidth(83))) int83;\ntypedef int __attribute__ ((bitwidth(84))) int84;\ntypedef int __attribute__ ((bitwidth(85))) int85;\ntypedef int __attribute__ ((bitwidth(86))) int86;\ntypedef int __attribute__ ((bitwidth(87))) int87;\ntypedef int __attribute__ ((bitwidth(88))) int88;\ntypedef int __attribute__ ((bitwidth(89))) int89;\ntypedef int __attribute__ ((bitwidth(90))) int90;\ntypedef int __attribute__ ((bitwidth(91))) int91;\ntypedef int __attribute__ ((bitwidth(92))) int92;\ntypedef int __attribute__ ((bitwidth(93))) int93;\ntypedef int __attribute__ ((bitwidth(94))) int94;\ntypedef int __attribute__ ((bitwidth(95))) int95;\ntypedef int __attribute__ ((bitwidth(96))) int96;\ntypedef int __attribute__ ((bitwidth(97))) int97;\ntypedef int __attribute__ ((bitwidth(98))) int98;\ntypedef int __attribute__ ((bitwidth(99))) int99;\ntypedef int __attribute__ ((bitwidth(100))) int100;\ntypedef int __attribute__ ((bitwidth(101))) int101;\ntypedef int __attribute__ ((bitwidth(102))) int102;\ntypedef int __attribute__ ((bitwidth(103))) int103;\ntypedef int __attribute__ ((bitwidth(104))) int104;\ntypedef int __attribute__ ((bitwidth(105))) int105;\ntypedef int __attribute__ ((bitwidth(106))) int106;\ntypedef int __attribute__ ((bitwidth(107))) int107;\ntypedef int __attribute__ ((bitwidth(108))) int108;\ntypedef int __attribute__ ((bitwidth(109))) int109;\ntypedef int __attribute__ ((bitwidth(110))) int110;\ntypedef int __attribute__ ((bitwidth(111))) int111;\ntypedef int __attribute__ ((bitwidth(112))) int112;\ntypedef int __attribute__ ((bitwidth(113))) int113;\ntypedef int __attribute__ ((bitwidth(114))) int114;\ntypedef int __attribute__ ((bitwidth(115))) int115;\ntypedef int __attribute__ ((bitwidth(116))) int116;\ntypedef int __attribute__ ((bitwidth(117))) int117;\ntypedef int __attribute__ ((bitwidth(118))) int118;\ntypedef int __attribute__ ((bitwidth(119))) int119;\ntypedef int __attribute__ ((bitwidth(120))) int120;\ntypedef int __attribute__ ((bitwidth(121))) int121;\ntypedef int __attribute__ ((bitwidth(122))) int122;\ntypedef int __attribute__ ((bitwidth(123))) int123;\ntypedef int __attribute__ ((bitwidth(124))) int124;\ntypedef int __attribute__ ((bitwidth(125))) int125;\ntypedef int __attribute__ ((bitwidth(126))) int126;\ntypedef int __attribute__ ((bitwidth(127))) int127;\ntypedef int __attribute__ ((bitwidth(128))) int128;\n\n\n\n\n\n\ntypedef int __attribute__ ((bitwidth(129))) int129;\ntypedef int __attribute__ ((bitwidth(130))) int130;\ntypedef int __attribute__ ((bitwidth(131))) int131;\ntypedef int __attribute__ ((bitwidth(132))) int132;\ntypedef int __attribute__ ((bitwidth(133))) int133;\ntypedef int __attribute__ ((bitwidth(134))) int134;\ntypedef int __attribute__ ((bitwidth(135))) int135;\ntypedef int __attribute__ ((bitwidth(136))) int136;\ntypedef int __attribute__ ((bitwidth(137))) int137;\ntypedef int __attribute__ ((bitwidth(138))) int138;\ntypedef int __attribute__ ((bitwidth(139))) int139;\ntypedef int __attribute__ ((bitwidth(140))) int140;\ntypedef int __attribute__ ((bitwidth(141))) int141;\ntypedef int __attribute__ ((bitwidth(142))) int142;\ntypedef int __attribute__ ((bitwidth(143))) int143;\ntypedef int __attribute__ ((bitwidth(144))) int144;\ntypedef int __attribute__ ((bitwidth(145))) int145;\ntypedef int __attribute__ ((bitwidth(146))) int146;\ntypedef int __attribute__ ((bitwidth(147))) int147;\ntypedef int __attribute__ ((bitwidth(148))) int148;\ntypedef int __attribute__ ((bitwidth(149))) int149;\ntypedef int __attribute__ ((bitwidth(150))) int150;\ntypedef int __attribute__ ((bitwidth(151))) int151;\ntypedef int __attribute__ ((bitwidth(152))) int152;\ntypedef int __attribute__ ((bitwidth(153))) int153;\ntypedef int __attribute__ ((bitwidth(154))) int154;\ntypedef int __attribute__ ((bitwidth(155))) int155;\ntypedef int __attribute__ ((bitwidth(156))) int156;\ntypedef int __attribute__ ((bitwidth(157))) int157;\ntypedef int __attribute__ ((bitwidth(158))) int158;\ntypedef int __attribute__ ((bitwidth(159))) int159;\ntypedef int __attribute__ ((bitwidth(160))) int160;\ntypedef int __attribute__ ((bitwidth(161))) int161;\ntypedef int __attribute__ ((bitwidth(162))) int162;\ntypedef int __attribute__ ((bitwidth(163))) int163;\ntypedef int __attribute__ ((bitwidth(164))) int164;\ntypedef int __attribute__ ((bitwidth(165))) int165;\ntypedef int __attribute__ ((bitwidth(166))) int166;\ntypedef int __attribute__ ((bitwidth(167))) int167;\ntypedef int __attribute__ ((bitwidth(168))) int168;\ntypedef int __attribute__ ((bitwidth(169))) int169;\ntypedef int __attribute__ ((bitwidth(170))) int170;\ntypedef int __attribute__ ((bitwidth(171))) int171;\ntypedef int __attribute__ ((bitwidth(172))) int172;\ntypedef int __attribute__ ((bitwidth(173))) int173;\ntypedef int __attribute__ ((bitwidth(174))) int174;\ntypedef int __attribute__ ((bitwidth(175))) int175;\ntypedef int __attribute__ ((bitwidth(176))) int176;\ntypedef int __attribute__ ((bitwidth(177))) int177;\ntypedef int __attribute__ ((bitwidth(178))) int178;\ntypedef int __attribute__ ((bitwidth(179))) int179;\ntypedef int __attribute__ ((bitwidth(180))) int180;\ntypedef int __attribute__ ((bitwidth(181))) int181;\ntypedef int __attribute__ ((bitwidth(182))) int182;\ntypedef int __attribute__ ((bitwidth(183))) int183;\ntypedef int __attribute__ ((bitwidth(184))) int184;\ntypedef int __attribute__ ((bitwidth(185))) int185;\ntypedef int __attribute__ ((bitwidth(186))) int186;\ntypedef int __attribute__ ((bitwidth(187))) int187;\ntypedef int __attribute__ ((bitwidth(188))) int188;\ntypedef int __attribute__ ((bitwidth(189))) int189;\ntypedef int __attribute__ ((bitwidth(190))) int190;\ntypedef int __attribute__ ((bitwidth(191))) int191;\ntypedef int __attribute__ ((bitwidth(192))) int192;\ntypedef int __attribute__ ((bitwidth(193))) int193;\ntypedef int __attribute__ ((bitwidth(194))) int194;\ntypedef int __attribute__ ((bitwidth(195))) int195;\ntypedef int __attribute__ ((bitwidth(196))) int196;\ntypedef int __attribute__ ((bitwidth(197))) int197;\ntypedef int __attribute__ ((bitwidth(198))) int198;\ntypedef int __attribute__ ((bitwidth(199))) int199;\ntypedef int __attribute__ ((bitwidth(200))) int200;\ntypedef int __attribute__ ((bitwidth(201))) int201;\ntypedef int __attribute__ ((bitwidth(202))) int202;\ntypedef int __attribute__ ((bitwidth(203))) int203;\ntypedef int __attribute__ ((bitwidth(204))) int204;\ntypedef int __attribute__ ((bitwidth(205))) int205;\ntypedef int __attribute__ ((bitwidth(206))) int206;\ntypedef int __attribute__ ((bitwidth(207))) int207;\ntypedef int __attribute__ ((bitwidth(208))) int208;\ntypedef int __attribute__ ((bitwidth(209))) int209;\ntypedef int __attribute__ ((bitwidth(210))) int210;\ntypedef int __attribute__ ((bitwidth(211))) int211;\ntypedef int __attribute__ ((bitwidth(212))) int212;\ntypedef int __attribute__ ((bitwidth(213))) int213;\ntypedef int __attribute__ ((bitwidth(214))) int214;\ntypedef int __attribute__ ((bitwidth(215))) int215;\ntypedef int __attribute__ ((bitwidth(216))) int216;\ntypedef int __attribute__ ((bitwidth(217))) int217;\ntypedef int __attribute__ ((bitwidth(218))) int218;\ntypedef int __attribute__ ((bitwidth(219))) int219;\ntypedef int __attribute__ ((bitwidth(220))) int220;\ntypedef int __attribute__ ((bitwidth(221))) int221;\ntypedef int __attribute__ ((bitwidth(222))) int222;\ntypedef int __attribute__ ((bitwidth(223))) int223;\ntypedef int __attribute__ ((bitwidth(224))) int224;\ntypedef int __attribute__ ((bitwidth(225))) int225;\ntypedef int __attribute__ ((bitwidth(226))) int226;\ntypedef int __attribute__ ((bitwidth(227))) int227;\ntypedef int __attribute__ ((bitwidth(228))) int228;\ntypedef int __attribute__ ((bitwidth(229))) int229;\ntypedef int __attribute__ ((bitwidth(230))) int230;\ntypedef int __attribute__ ((bitwidth(231))) int231;\ntypedef int __attribute__ ((bitwidth(232))) int232;\ntypedef int __attribute__ ((bitwidth(233))) int233;\ntypedef int __attribute__ ((bitwidth(234))) int234;\ntypedef int __attribute__ ((bitwidth(235))) int235;\ntypedef int __attribute__ ((bitwidth(236))) int236;\ntypedef int __attribute__ ((bitwidth(237))) int237;\ntypedef int __attribute__ ((bitwidth(238))) int238;\ntypedef int __attribute__ ((bitwidth(239))) int239;\ntypedef int __attribute__ ((bitwidth(240))) int240;\ntypedef int __attribute__ ((bitwidth(241))) int241;\ntypedef int __attribute__ ((bitwidth(242))) int242;\ntypedef int __attribute__ ((bitwidth(243))) int243;\ntypedef int __attribute__ ((bitwidth(244))) int244;\ntypedef int __attribute__ ((bitwidth(245))) int245;\ntypedef int __attribute__ ((bitwidth(246))) int246;\ntypedef int __attribute__ ((bitwidth(247))) int247;\ntypedef int __attribute__ ((bitwidth(248))) int248;\ntypedef int __attribute__ ((bitwidth(249))) int249;\ntypedef int __attribute__ ((bitwidth(250))) int250;\ntypedef int __attribute__ ((bitwidth(251))) int251;\ntypedef int __attribute__ ((bitwidth(252))) int252;\ntypedef int __attribute__ ((bitwidth(253))) int253;\ntypedef int __attribute__ ((bitwidth(254))) int254;\ntypedef int __attribute__ ((bitwidth(255))) int255;\ntypedef int __attribute__ ((bitwidth(256))) int256;\ntypedef int __attribute__ ((bitwidth(257))) int257;\ntypedef int __attribute__ ((bitwidth(258))) int258;\ntypedef int __attribute__ ((bitwidth(259))) int259;\ntypedef int __attribute__ ((bitwidth(260))) int260;\ntypedef int __attribute__ ((bitwidth(261))) int261;\ntypedef int __attribute__ ((bitwidth(262))) int262;\ntypedef int __attribute__ ((bitwidth(263))) int263;\ntypedef int __attribute__ ((bitwidth(264))) int264;\ntypedef int __attribute__ ((bitwidth(265))) int265;\ntypedef int __attribute__ ((bitwidth(266))) int266;\ntypedef int __attribute__ ((bitwidth(267))) int267;\ntypedef int __attribute__ ((bitwidth(268))) int268;\ntypedef int __attribute__ ((bitwidth(269))) int269;\ntypedef int __attribute__ ((bitwidth(270))) int270;\ntypedef int __attribute__ ((bitwidth(271))) int271;\ntypedef int __attribute__ ((bitwidth(272))) int272;\ntypedef int __attribute__ ((bitwidth(273))) int273;\ntypedef int __attribute__ ((bitwidth(274))) int274;\ntypedef int __attribute__ ((bitwidth(275))) int275;\ntypedef int __attribute__ ((bitwidth(276))) int276;\ntypedef int __attribute__ ((bitwidth(277))) int277;\ntypedef int __attribute__ ((bitwidth(278))) int278;\ntypedef int __attribute__ ((bitwidth(279))) int279;\ntypedef int __attribute__ ((bitwidth(280))) int280;\ntypedef int __attribute__ ((bitwidth(281))) int281;\ntypedef int __attribute__ ((bitwidth(282))) int282;\ntypedef int __attribute__ ((bitwidth(283))) int283;\ntypedef int __attribute__ ((bitwidth(284))) int284;\ntypedef int __attribute__ ((bitwidth(285))) int285;\ntypedef int __attribute__ ((bitwidth(286))) int286;\ntypedef int __attribute__ ((bitwidth(287))) int287;\ntypedef int __attribute__ ((bitwidth(288))) int288;\ntypedef int __attribute__ ((bitwidth(289))) int289;\ntypedef int __attribute__ ((bitwidth(290))) int290;\ntypedef int __attribute__ ((bitwidth(291))) int291;\ntypedef int __attribute__ ((bitwidth(292))) int292;\ntypedef int __attribute__ ((bitwidth(293))) int293;\ntypedef int __attribute__ ((bitwidth(294))) int294;\ntypedef int __attribute__ ((bitwidth(295))) int295;\ntypedef int __attribute__ ((bitwidth(296))) int296;\ntypedef int __attribute__ ((bitwidth(297))) int297;\ntypedef int __attribute__ ((bitwidth(298))) int298;\ntypedef int __attribute__ ((bitwidth(299))) int299;\ntypedef int __attribute__ ((bitwidth(300))) int300;\ntypedef int __attribute__ ((bitwidth(301))) int301;\ntypedef int __attribute__ ((bitwidth(302))) int302;\ntypedef int __attribute__ ((bitwidth(303))) int303;\ntypedef int __attribute__ ((bitwidth(304))) int304;\ntypedef int __attribute__ ((bitwidth(305))) int305;\ntypedef int __attribute__ ((bitwidth(306))) int306;\ntypedef int __attribute__ ((bitwidth(307))) int307;\ntypedef int __attribute__ ((bitwidth(308))) int308;\ntypedef int __attribute__ ((bitwidth(309))) int309;\ntypedef int __attribute__ ((bitwidth(310))) int310;\ntypedef int __attribute__ ((bitwidth(311))) int311;\ntypedef int __attribute__ ((bitwidth(312))) int312;\ntypedef int __attribute__ ((bitwidth(313))) int313;\ntypedef int __attribute__ ((bitwidth(314))) int314;\ntypedef int __attribute__ ((bitwidth(315))) int315;\ntypedef int __attribute__ ((bitwidth(316))) int316;\ntypedef int __attribute__ ((bitwidth(317))) int317;\ntypedef int __attribute__ ((bitwidth(318))) int318;\ntypedef int __attribute__ ((bitwidth(319))) int319;\ntypedef int __attribute__ ((bitwidth(320))) int320;\ntypedef int __attribute__ ((bitwidth(321))) int321;\ntypedef int __attribute__ ((bitwidth(322))) int322;\ntypedef int __attribute__ ((bitwidth(323))) int323;\ntypedef int __attribute__ ((bitwidth(324))) int324;\ntypedef int __attribute__ ((bitwidth(325))) int325;\ntypedef int __attribute__ ((bitwidth(326))) int326;\ntypedef int __attribute__ ((bitwidth(327))) int327;\ntypedef int __attribute__ ((bitwidth(328))) int328;\ntypedef int __attribute__ ((bitwidth(329))) int329;\ntypedef int __attribute__ ((bitwidth(330))) int330;\ntypedef int __attribute__ ((bitwidth(331))) int331;\ntypedef int __attribute__ ((bitwidth(332))) int332;\ntypedef int __attribute__ ((bitwidth(333))) int333;\ntypedef int __attribute__ ((bitwidth(334))) int334;\ntypedef int __attribute__ ((bitwidth(335))) int335;\ntypedef int __attribute__ ((bitwidth(336))) int336;\ntypedef int __attribute__ ((bitwidth(337))) int337;\ntypedef int __attribute__ ((bitwidth(338))) int338;\ntypedef int __attribute__ ((bitwidth(339))) int339;\ntypedef int __attribute__ ((bitwidth(340))) int340;\ntypedef int __attribute__ ((bitwidth(341))) int341;\ntypedef int __attribute__ ((bitwidth(342))) int342;\ntypedef int __attribute__ ((bitwidth(343))) int343;\ntypedef int __attribute__ ((bitwidth(344))) int344;\ntypedef int __attribute__ ((bitwidth(345))) int345;\ntypedef int __attribute__ ((bitwidth(346))) int346;\ntypedef int __attribute__ ((bitwidth(347))) int347;\ntypedef int __attribute__ ((bitwidth(348))) int348;\ntypedef int __attribute__ ((bitwidth(349))) int349;\ntypedef int __attribute__ ((bitwidth(350))) int350;\ntypedef int __attribute__ ((bitwidth(351))) int351;\ntypedef int __attribute__ ((bitwidth(352))) int352;\ntypedef int __attribute__ ((bitwidth(353))) int353;\ntypedef int __attribute__ ((bitwidth(354))) int354;\ntypedef int __attribute__ ((bitwidth(355))) int355;\ntypedef int __attribute__ ((bitwidth(356))) int356;\ntypedef int __attribute__ ((bitwidth(357))) int357;\ntypedef int __attribute__ ((bitwidth(358))) int358;\ntypedef int __attribute__ ((bitwidth(359))) int359;\ntypedef int __attribute__ ((bitwidth(360))) int360;\ntypedef int __attribute__ ((bitwidth(361))) int361;\ntypedef int __attribute__ ((bitwidth(362))) int362;\ntypedef int __attribute__ ((bitwidth(363))) int363;\ntypedef int __attribute__ ((bitwidth(364))) int364;\ntypedef int __attribute__ ((bitwidth(365))) int365;\ntypedef int __attribute__ ((bitwidth(366))) int366;\ntypedef int __attribute__ ((bitwidth(367))) int367;\ntypedef int __attribute__ ((bitwidth(368))) int368;\ntypedef int __attribute__ ((bitwidth(369))) int369;\ntypedef int __attribute__ ((bitwidth(370))) int370;\ntypedef int __attribute__ ((bitwidth(371))) int371;\ntypedef int __attribute__ ((bitwidth(372))) int372;\ntypedef int __attribute__ ((bitwidth(373))) int373;\ntypedef int __attribute__ ((bitwidth(374))) int374;\ntypedef int __attribute__ ((bitwidth(375))) int375;\ntypedef int __attribute__ ((bitwidth(376))) int376;\ntypedef int __attribute__ ((bitwidth(377))) int377;\ntypedef int __attribute__ ((bitwidth(378))) int378;\ntypedef int __attribute__ ((bitwidth(379))) int379;\ntypedef int __attribute__ ((bitwidth(380))) int380;\ntypedef int __attribute__ ((bitwidth(381))) int381;\ntypedef int __attribute__ ((bitwidth(382))) int382;\ntypedef int __attribute__ ((bitwidth(383))) int383;\ntypedef int __attribute__ ((bitwidth(384))) int384;\ntypedef int __attribute__ ((bitwidth(385))) int385;\ntypedef int __attribute__ ((bitwidth(386))) int386;\ntypedef int __attribute__ ((bitwidth(387))) int387;\ntypedef int __attribute__ ((bitwidth(388))) int388;\ntypedef int __attribute__ ((bitwidth(389))) int389;\ntypedef int __attribute__ ((bitwidth(390))) int390;\ntypedef int __attribute__ ((bitwidth(391))) int391;\ntypedef int __attribute__ ((bitwidth(392))) int392;\ntypedef int __attribute__ ((bitwidth(393))) int393;\ntypedef int __attribute__ ((bitwidth(394))) int394;\ntypedef int __attribute__ ((bitwidth(395))) int395;\ntypedef int __attribute__ ((bitwidth(396))) int396;\ntypedef int __attribute__ ((bitwidth(397))) int397;\ntypedef int __attribute__ ((bitwidth(398))) int398;\ntypedef int __attribute__ ((bitwidth(399))) int399;\ntypedef int __attribute__ ((bitwidth(400))) int400;\ntypedef int __attribute__ ((bitwidth(401))) int401;\ntypedef int __attribute__ ((bitwidth(402))) int402;\ntypedef int __attribute__ ((bitwidth(403))) int403;\ntypedef int __attribute__ ((bitwidth(404))) int404;\ntypedef int __attribute__ ((bitwidth(405))) int405;\ntypedef int __attribute__ ((bitwidth(406))) int406;\ntypedef int __attribute__ ((bitwidth(407))) int407;\ntypedef int __attribute__ ((bitwidth(408))) int408;\ntypedef int __attribute__ ((bitwidth(409))) int409;\ntypedef int __attribute__ ((bitwidth(410))) int410;\ntypedef int __attribute__ ((bitwidth(411))) int411;\ntypedef int __attribute__ ((bitwidth(412))) int412;\ntypedef int __attribute__ ((bitwidth(413))) int413;\ntypedef int __attribute__ ((bitwidth(414))) int414;\ntypedef int __attribute__ ((bitwidth(415))) int415;\ntypedef int __attribute__ ((bitwidth(416))) int416;\ntypedef int __attribute__ ((bitwidth(417))) int417;\ntypedef int __attribute__ ((bitwidth(418))) int418;\ntypedef int __attribute__ ((bitwidth(419))) int419;\ntypedef int __attribute__ ((bitwidth(420))) int420;\ntypedef int __attribute__ ((bitwidth(421))) int421;\ntypedef int __attribute__ ((bitwidth(422))) int422;\ntypedef int __attribute__ ((bitwidth(423))) int423;\ntypedef int __attribute__ ((bitwidth(424))) int424;\ntypedef int __attribute__ ((bitwidth(425))) int425;\ntypedef int __attribute__ ((bitwidth(426))) int426;\ntypedef int __attribute__ ((bitwidth(427))) int427;\ntypedef int __attribute__ ((bitwidth(428))) int428;\ntypedef int __attribute__ ((bitwidth(429))) int429;\ntypedef int __attribute__ ((bitwidth(430))) int430;\ntypedef int __attribute__ ((bitwidth(431))) int431;\ntypedef int __attribute__ ((bitwidth(432))) int432;\ntypedef int __attribute__ ((bitwidth(433))) int433;\ntypedef int __attribute__ ((bitwidth(434))) int434;\ntypedef int __attribute__ ((bitwidth(435))) int435;\ntypedef int __attribute__ ((bitwidth(436))) int436;\ntypedef int __attribute__ ((bitwidth(437))) int437;\ntypedef int __attribute__ ((bitwidth(438))) int438;\ntypedef int __attribute__ ((bitwidth(439))) int439;\ntypedef int __attribute__ ((bitwidth(440))) int440;\ntypedef int __attribute__ ((bitwidth(441))) int441;\ntypedef int __attribute__ ((bitwidth(442))) int442;\ntypedef int __attribute__ ((bitwidth(443))) int443;\ntypedef int __attribute__ ((bitwidth(444))) int444;\ntypedef int __attribute__ ((bitwidth(445))) int445;\ntypedef int __attribute__ ((bitwidth(446))) int446;\ntypedef int __attribute__ ((bitwidth(447))) int447;\ntypedef int __attribute__ ((bitwidth(448))) int448;\ntypedef int __attribute__ ((bitwidth(449))) int449;\ntypedef int __attribute__ ((bitwidth(450))) int450;\ntypedef int __attribute__ ((bitwidth(451))) int451;\ntypedef int __attribute__ ((bitwidth(452))) int452;\ntypedef int __attribute__ ((bitwidth(453))) int453;\ntypedef int __attribute__ ((bitwidth(454))) int454;\ntypedef int __attribute__ ((bitwidth(455))) int455;\ntypedef int __attribute__ ((bitwidth(456))) int456;\ntypedef int __attribute__ ((bitwidth(457))) int457;\ntypedef int __attribute__ ((bitwidth(458))) int458;\ntypedef int __attribute__ ((bitwidth(459))) int459;\ntypedef int __attribute__ ((bitwidth(460))) int460;\ntypedef int __attribute__ ((bitwidth(461))) int461;\ntypedef int __attribute__ ((bitwidth(462))) int462;\ntypedef int __attribute__ ((bitwidth(463))) int463;\ntypedef int __attribute__ ((bitwidth(464))) int464;\ntypedef int __attribute__ ((bitwidth(465))) int465;\ntypedef int __attribute__ ((bitwidth(466))) int466;\ntypedef int __attribute__ ((bitwidth(467))) int467;\ntypedef int __attribute__ ((bitwidth(468))) int468;\ntypedef int __attribute__ ((bitwidth(469))) int469;\ntypedef int __attribute__ ((bitwidth(470))) int470;\ntypedef int __attribute__ ((bitwidth(471))) int471;\ntypedef int __attribute__ ((bitwidth(472))) int472;\ntypedef int __attribute__ ((bitwidth(473))) int473;\ntypedef int __attribute__ ((bitwidth(474))) int474;\ntypedef int __attribute__ ((bitwidth(475))) int475;\ntypedef int __attribute__ ((bitwidth(476))) int476;\ntypedef int __attribute__ ((bitwidth(477))) int477;\ntypedef int __attribute__ ((bitwidth(478))) int478;\ntypedef int __attribute__ ((bitwidth(479))) int479;\ntypedef int __attribute__ ((bitwidth(480))) int480;\ntypedef int __attribute__ ((bitwidth(481))) int481;\ntypedef int __attribute__ ((bitwidth(482))) int482;\ntypedef int __attribute__ ((bitwidth(483))) int483;\ntypedef int __attribute__ ((bitwidth(484))) int484;\ntypedef int __attribute__ ((bitwidth(485))) int485;\ntypedef int __attribute__ ((bitwidth(486))) int486;\ntypedef int __attribute__ ((bitwidth(487))) int487;\ntypedef int __attribute__ ((bitwidth(488))) int488;\ntypedef int __attribute__ ((bitwidth(489))) int489;\ntypedef int __attribute__ ((bitwidth(490))) int490;\ntypedef int __attribute__ ((bitwidth(491))) int491;\ntypedef int __attribute__ ((bitwidth(492))) int492;\ntypedef int __attribute__ ((bitwidth(493))) int493;\ntypedef int __attribute__ ((bitwidth(494))) int494;\ntypedef int __attribute__ ((bitwidth(495))) int495;\ntypedef int __attribute__ ((bitwidth(496))) int496;\ntypedef int __attribute__ ((bitwidth(497))) int497;\ntypedef int __attribute__ ((bitwidth(498))) int498;\ntypedef int __attribute__ ((bitwidth(499))) int499;\ntypedef int __attribute__ ((bitwidth(500))) int500;\ntypedef int __attribute__ ((bitwidth(501))) int501;\ntypedef int __attribute__ ((bitwidth(502))) int502;\ntypedef int __attribute__ ((bitwidth(503))) int503;\ntypedef int __attribute__ ((bitwidth(504))) int504;\ntypedef int __attribute__ ((bitwidth(505))) int505;\ntypedef int __attribute__ ((bitwidth(506))) int506;\ntypedef int __attribute__ ((bitwidth(507))) int507;\ntypedef int __attribute__ ((bitwidth(508))) int508;\ntypedef int __attribute__ ((bitwidth(509))) int509;\ntypedef int __attribute__ ((bitwidth(510))) int510;\ntypedef int __attribute__ ((bitwidth(511))) int511;\ntypedef int __attribute__ ((bitwidth(512))) int512;\ntypedef int __attribute__ ((bitwidth(513))) int513;\ntypedef int __attribute__ ((bitwidth(514))) int514;\ntypedef int __attribute__ ((bitwidth(515))) int515;\ntypedef int __attribute__ ((bitwidth(516))) int516;\ntypedef int __attribute__ ((bitwidth(517))) int517;\ntypedef int __attribute__ ((bitwidth(518))) int518;\ntypedef int __attribute__ ((bitwidth(519))) int519;\ntypedef int __attribute__ ((bitwidth(520))) int520;\ntypedef int __attribute__ ((bitwidth(521))) int521;\ntypedef int __attribute__ ((bitwidth(522))) int522;\ntypedef int __attribute__ ((bitwidth(523))) int523;\ntypedef int __attribute__ ((bitwidth(524))) int524;\ntypedef int __attribute__ ((bitwidth(525))) int525;\ntypedef int __attribute__ ((bitwidth(526))) int526;\ntypedef int __attribute__ ((bitwidth(527))) int527;\ntypedef int __attribute__ ((bitwidth(528))) int528;\ntypedef int __attribute__ ((bitwidth(529))) int529;\ntypedef int __attribute__ ((bitwidth(530))) int530;\ntypedef int __attribute__ ((bitwidth(531))) int531;\ntypedef int __attribute__ ((bitwidth(532))) int532;\ntypedef int __attribute__ ((bitwidth(533))) int533;\ntypedef int __attribute__ ((bitwidth(534))) int534;\ntypedef int __attribute__ ((bitwidth(535))) int535;\ntypedef int __attribute__ ((bitwidth(536))) int536;\ntypedef int __attribute__ ((bitwidth(537))) int537;\ntypedef int __attribute__ ((bitwidth(538))) int538;\ntypedef int __attribute__ ((bitwidth(539))) int539;\ntypedef int __attribute__ ((bitwidth(540))) int540;\ntypedef int __attribute__ ((bitwidth(541))) int541;\ntypedef int __attribute__ ((bitwidth(542))) int542;\ntypedef int __attribute__ ((bitwidth(543))) int543;\ntypedef int __attribute__ ((bitwidth(544))) int544;\ntypedef int __attribute__ ((bitwidth(545))) int545;\ntypedef int __attribute__ ((bitwidth(546))) int546;\ntypedef int __attribute__ ((bitwidth(547))) int547;\ntypedef int __attribute__ ((bitwidth(548))) int548;\ntypedef int __attribute__ ((bitwidth(549))) int549;\ntypedef int __attribute__ ((bitwidth(550))) int550;\ntypedef int __attribute__ ((bitwidth(551))) int551;\ntypedef int __attribute__ ((bitwidth(552))) int552;\ntypedef int __attribute__ ((bitwidth(553))) int553;\ntypedef int __attribute__ ((bitwidth(554))) int554;\ntypedef int __attribute__ ((bitwidth(555))) int555;\ntypedef int __attribute__ ((bitwidth(556))) int556;\ntypedef int __attribute__ ((bitwidth(557))) int557;\ntypedef int __attribute__ ((bitwidth(558))) int558;\ntypedef int __attribute__ ((bitwidth(559))) int559;\ntypedef int __attribute__ ((bitwidth(560))) int560;\ntypedef int __attribute__ ((bitwidth(561))) int561;\ntypedef int __attribute__ ((bitwidth(562))) int562;\ntypedef int __attribute__ ((bitwidth(563))) int563;\ntypedef int __attribute__ ((bitwidth(564))) int564;\ntypedef int __attribute__ ((bitwidth(565))) int565;\ntypedef int __attribute__ ((bitwidth(566))) int566;\ntypedef int __attribute__ ((bitwidth(567))) int567;\ntypedef int __attribute__ ((bitwidth(568))) int568;\ntypedef int __attribute__ ((bitwidth(569))) int569;\ntypedef int __attribute__ ((bitwidth(570))) int570;\ntypedef int __attribute__ ((bitwidth(571))) int571;\ntypedef int __attribute__ ((bitwidth(572))) int572;\ntypedef int __attribute__ ((bitwidth(573))) int573;\ntypedef int __attribute__ ((bitwidth(574))) int574;\ntypedef int __attribute__ ((bitwidth(575))) int575;\ntypedef int __attribute__ ((bitwidth(576))) int576;\ntypedef int __attribute__ ((bitwidth(577))) int577;\ntypedef int __attribute__ ((bitwidth(578))) int578;\ntypedef int __attribute__ ((bitwidth(579))) int579;\ntypedef int __attribute__ ((bitwidth(580))) int580;\ntypedef int __attribute__ ((bitwidth(581))) int581;\ntypedef int __attribute__ ((bitwidth(582))) int582;\ntypedef int __attribute__ ((bitwidth(583))) int583;\ntypedef int __attribute__ ((bitwidth(584))) int584;\ntypedef int __attribute__ ((bitwidth(585))) int585;\ntypedef int __attribute__ ((bitwidth(586))) int586;\ntypedef int __attribute__ ((bitwidth(587))) int587;\ntypedef int __attribute__ ((bitwidth(588))) int588;\ntypedef int __attribute__ ((bitwidth(589))) int589;\ntypedef int __attribute__ ((bitwidth(590))) int590;\ntypedef int __attribute__ ((bitwidth(591))) int591;\ntypedef int __attribute__ ((bitwidth(592))) int592;\ntypedef int __attribute__ ((bitwidth(593))) int593;\ntypedef int __attribute__ ((bitwidth(594))) int594;\ntypedef int __attribute__ ((bitwidth(595))) int595;\ntypedef int __attribute__ ((bitwidth(596))) int596;\ntypedef int __attribute__ ((bitwidth(597))) int597;\ntypedef int __attribute__ ((bitwidth(598))) int598;\ntypedef int __attribute__ ((bitwidth(599))) int599;\ntypedef int __attribute__ ((bitwidth(600))) int600;\ntypedef int __attribute__ ((bitwidth(601))) int601;\ntypedef int __attribute__ ((bitwidth(602))) int602;\ntypedef int __attribute__ ((bitwidth(603))) int603;\ntypedef int __attribute__ ((bitwidth(604))) int604;\ntypedef int __attribute__ ((bitwidth(605))) int605;\ntypedef int __attribute__ ((bitwidth(606))) int606;\ntypedef int __attribute__ ((bitwidth(607))) int607;\ntypedef int __attribute__ ((bitwidth(608))) int608;\ntypedef int __attribute__ ((bitwidth(609))) int609;\ntypedef int __attribute__ ((bitwidth(610))) int610;\ntypedef int __attribute__ ((bitwidth(611))) int611;\ntypedef int __attribute__ ((bitwidth(612))) int612;\ntypedef int __attribute__ ((bitwidth(613))) int613;\ntypedef int __attribute__ ((bitwidth(614))) int614;\ntypedef int __attribute__ ((bitwidth(615))) int615;\ntypedef int __attribute__ ((bitwidth(616))) int616;\ntypedef int __attribute__ ((bitwidth(617))) int617;\ntypedef int __attribute__ ((bitwidth(618))) int618;\ntypedef int __attribute__ ((bitwidth(619))) int619;\ntypedef int __attribute__ ((bitwidth(620))) int620;\ntypedef int __attribute__ ((bitwidth(621))) int621;\ntypedef int __attribute__ ((bitwidth(622))) int622;\ntypedef int __attribute__ ((bitwidth(623))) int623;\ntypedef int __attribute__ ((bitwidth(624))) int624;\ntypedef int __attribute__ ((bitwidth(625))) int625;\ntypedef int __attribute__ ((bitwidth(626))) int626;\ntypedef int __attribute__ ((bitwidth(627))) int627;\ntypedef int __attribute__ ((bitwidth(628))) int628;\ntypedef int __attribute__ ((bitwidth(629))) int629;\ntypedef int __attribute__ ((bitwidth(630))) int630;\ntypedef int __attribute__ ((bitwidth(631))) int631;\ntypedef int __attribute__ ((bitwidth(632))) int632;\ntypedef int __attribute__ ((bitwidth(633))) int633;\ntypedef int __attribute__ ((bitwidth(634))) int634;\ntypedef int __attribute__ ((bitwidth(635))) int635;\ntypedef int __attribute__ ((bitwidth(636))) int636;\ntypedef int __attribute__ ((bitwidth(637))) int637;\ntypedef int __attribute__ ((bitwidth(638))) int638;\ntypedef int __attribute__ ((bitwidth(639))) int639;\ntypedef int __attribute__ ((bitwidth(640))) int640;\ntypedef int __attribute__ ((bitwidth(641))) int641;\ntypedef int __attribute__ ((bitwidth(642))) int642;\ntypedef int __attribute__ ((bitwidth(643))) int643;\ntypedef int __attribute__ ((bitwidth(644))) int644;\ntypedef int __attribute__ ((bitwidth(645))) int645;\ntypedef int __attribute__ ((bitwidth(646))) int646;\ntypedef int __attribute__ ((bitwidth(647))) int647;\ntypedef int __attribute__ ((bitwidth(648))) int648;\ntypedef int __attribute__ ((bitwidth(649))) int649;\ntypedef int __attribute__ ((bitwidth(650))) int650;\ntypedef int __attribute__ ((bitwidth(651))) int651;\ntypedef int __attribute__ ((bitwidth(652))) int652;\ntypedef int __attribute__ ((bitwidth(653))) int653;\ntypedef int __attribute__ ((bitwidth(654))) int654;\ntypedef int __attribute__ ((bitwidth(655))) int655;\ntypedef int __attribute__ ((bitwidth(656))) int656;\ntypedef int __attribute__ ((bitwidth(657))) int657;\ntypedef int __attribute__ ((bitwidth(658))) int658;\ntypedef int __attribute__ ((bitwidth(659))) int659;\ntypedef int __attribute__ ((bitwidth(660))) int660;\ntypedef int __attribute__ ((bitwidth(661))) int661;\ntypedef int __attribute__ ((bitwidth(662))) int662;\ntypedef int __attribute__ ((bitwidth(663))) int663;\ntypedef int __attribute__ ((bitwidth(664))) int664;\ntypedef int __attribute__ ((bitwidth(665))) int665;\ntypedef int __attribute__ ((bitwidth(666))) int666;\ntypedef int __attribute__ ((bitwidth(667))) int667;\ntypedef int __attribute__ ((bitwidth(668))) int668;\ntypedef int __attribute__ ((bitwidth(669))) int669;\ntypedef int __attribute__ ((bitwidth(670))) int670;\ntypedef int __attribute__ ((bitwidth(671))) int671;\ntypedef int __attribute__ ((bitwidth(672))) int672;\ntypedef int __attribute__ ((bitwidth(673))) int673;\ntypedef int __attribute__ ((bitwidth(674))) int674;\ntypedef int __attribute__ ((bitwidth(675))) int675;\ntypedef int __attribute__ ((bitwidth(676))) int676;\ntypedef int __attribute__ ((bitwidth(677))) int677;\ntypedef int __attribute__ ((bitwidth(678))) int678;\ntypedef int __attribute__ ((bitwidth(679))) int679;\ntypedef int __attribute__ ((bitwidth(680))) int680;\ntypedef int __attribute__ ((bitwidth(681))) int681;\ntypedef int __attribute__ ((bitwidth(682))) int682;\ntypedef int __attribute__ ((bitwidth(683))) int683;\ntypedef int __attribute__ ((bitwidth(684))) int684;\ntypedef int __attribute__ ((bitwidth(685))) int685;\ntypedef int __attribute__ ((bitwidth(686))) int686;\ntypedef int __attribute__ ((bitwidth(687))) int687;\ntypedef int __attribute__ ((bitwidth(688))) int688;\ntypedef int __attribute__ ((bitwidth(689))) int689;\ntypedef int __attribute__ ((bitwidth(690))) int690;\ntypedef int __attribute__ ((bitwidth(691))) int691;\ntypedef int __attribute__ ((bitwidth(692))) int692;\ntypedef int __attribute__ ((bitwidth(693))) int693;\ntypedef int __attribute__ ((bitwidth(694))) int694;\ntypedef int __attribute__ ((bitwidth(695))) int695;\ntypedef int __attribute__ ((bitwidth(696))) int696;\ntypedef int __attribute__ ((bitwidth(697))) int697;\ntypedef int __attribute__ ((bitwidth(698))) int698;\ntypedef int __attribute__ ((bitwidth(699))) int699;\ntypedef int __attribute__ ((bitwidth(700))) int700;\ntypedef int __attribute__ ((bitwidth(701))) int701;\ntypedef int __attribute__ ((bitwidth(702))) int702;\ntypedef int __attribute__ ((bitwidth(703))) int703;\ntypedef int __attribute__ ((bitwidth(704))) int704;\ntypedef int __attribute__ ((bitwidth(705))) int705;\ntypedef int __attribute__ ((bitwidth(706))) int706;\ntypedef int __attribute__ ((bitwidth(707))) int707;\ntypedef int __attribute__ ((bitwidth(708))) int708;\ntypedef int __attribute__ ((bitwidth(709))) int709;\ntypedef int __attribute__ ((bitwidth(710))) int710;\ntypedef int __attribute__ ((bitwidth(711))) int711;\ntypedef int __attribute__ ((bitwidth(712))) int712;\ntypedef int __attribute__ ((bitwidth(713))) int713;\ntypedef int __attribute__ ((bitwidth(714))) int714;\ntypedef int __attribute__ ((bitwidth(715))) int715;\ntypedef int __attribute__ ((bitwidth(716))) int716;\ntypedef int __attribute__ ((bitwidth(717))) int717;\ntypedef int __attribute__ ((bitwidth(718))) int718;\ntypedef int __attribute__ ((bitwidth(719))) int719;\ntypedef int __attribute__ ((bitwidth(720))) int720;\ntypedef int __attribute__ ((bitwidth(721))) int721;\ntypedef int __attribute__ ((bitwidth(722))) int722;\ntypedef int __attribute__ ((bitwidth(723))) int723;\ntypedef int __attribute__ ((bitwidth(724))) int724;\ntypedef int __attribute__ ((bitwidth(725))) int725;\ntypedef int __attribute__ ((bitwidth(726))) int726;\ntypedef int __attribute__ ((bitwidth(727))) int727;\ntypedef int __attribute__ ((bitwidth(728))) int728;\ntypedef int __attribute__ ((bitwidth(729))) int729;\ntypedef int __attribute__ ((bitwidth(730))) int730;\ntypedef int __attribute__ ((bitwidth(731))) int731;\ntypedef int __attribute__ ((bitwidth(732))) int732;\ntypedef int __attribute__ ((bitwidth(733))) int733;\ntypedef int __attribute__ ((bitwidth(734))) int734;\ntypedef int __attribute__ ((bitwidth(735))) int735;\ntypedef int __attribute__ ((bitwidth(736))) int736;\ntypedef int __attribute__ ((bitwidth(737))) int737;\ntypedef int __attribute__ ((bitwidth(738))) int738;\ntypedef int __attribute__ ((bitwidth(739))) int739;\ntypedef int __attribute__ ((bitwidth(740))) int740;\ntypedef int __attribute__ ((bitwidth(741))) int741;\ntypedef int __attribute__ ((bitwidth(742))) int742;\ntypedef int __attribute__ ((bitwidth(743))) int743;\ntypedef int __attribute__ ((bitwidth(744))) int744;\ntypedef int __attribute__ ((bitwidth(745))) int745;\ntypedef int __attribute__ ((bitwidth(746))) int746;\ntypedef int __attribute__ ((bitwidth(747))) int747;\ntypedef int __attribute__ ((bitwidth(748))) int748;\ntypedef int __attribute__ ((bitwidth(749))) int749;\ntypedef int __attribute__ ((bitwidth(750))) int750;\ntypedef int __attribute__ ((bitwidth(751))) int751;\ntypedef int __attribute__ ((bitwidth(752))) int752;\ntypedef int __attribute__ ((bitwidth(753))) int753;\ntypedef int __attribute__ ((bitwidth(754))) int754;\ntypedef int __attribute__ ((bitwidth(755))) int755;\ntypedef int __attribute__ ((bitwidth(756))) int756;\ntypedef int __attribute__ ((bitwidth(757))) int757;\ntypedef int __attribute__ ((bitwidth(758))) int758;\ntypedef int __attribute__ ((bitwidth(759))) int759;\ntypedef int __attribute__ ((bitwidth(760))) int760;\ntypedef int __attribute__ ((bitwidth(761))) int761;\ntypedef int __attribute__ ((bitwidth(762))) int762;\ntypedef int __attribute__ ((bitwidth(763))) int763;\ntypedef int __attribute__ ((bitwidth(764))) int764;\ntypedef int __attribute__ ((bitwidth(765))) int765;\ntypedef int __attribute__ ((bitwidth(766))) int766;\ntypedef int __attribute__ ((bitwidth(767))) int767;\ntypedef int __attribute__ ((bitwidth(768))) int768;\ntypedef int __attribute__ ((bitwidth(769))) int769;\ntypedef int __attribute__ ((bitwidth(770))) int770;\ntypedef int __attribute__ ((bitwidth(771))) int771;\ntypedef int __attribute__ ((bitwidth(772))) int772;\ntypedef int __attribute__ ((bitwidth(773))) int773;\ntypedef int __attribute__ ((bitwidth(774))) int774;\ntypedef int __attribute__ ((bitwidth(775))) int775;\ntypedef int __attribute__ ((bitwidth(776))) int776;\ntypedef int __attribute__ ((bitwidth(777))) int777;\ntypedef int __attribute__ ((bitwidth(778))) int778;\ntypedef int __attribute__ ((bitwidth(779))) int779;\ntypedef int __attribute__ ((bitwidth(780))) int780;\ntypedef int __attribute__ ((bitwidth(781))) int781;\ntypedef int __attribute__ ((bitwidth(782))) int782;\ntypedef int __attribute__ ((bitwidth(783))) int783;\ntypedef int __attribute__ ((bitwidth(784))) int784;\ntypedef int __attribute__ ((bitwidth(785))) int785;\ntypedef int __attribute__ ((bitwidth(786))) int786;\ntypedef int __attribute__ ((bitwidth(787))) int787;\ntypedef int __attribute__ ((bitwidth(788))) int788;\ntypedef int __attribute__ ((bitwidth(789))) int789;\ntypedef int __attribute__ ((bitwidth(790))) int790;\ntypedef int __attribute__ ((bitwidth(791))) int791;\ntypedef int __attribute__ ((bitwidth(792))) int792;\ntypedef int __attribute__ ((bitwidth(793))) int793;\ntypedef int __attribute__ ((bitwidth(794))) int794;\ntypedef int __attribute__ ((bitwidth(795))) int795;\ntypedef int __attribute__ ((bitwidth(796))) int796;\ntypedef int __attribute__ ((bitwidth(797))) int797;\ntypedef int __attribute__ ((bitwidth(798))) int798;\ntypedef int __attribute__ ((bitwidth(799))) int799;\ntypedef int __attribute__ ((bitwidth(800))) int800;\ntypedef int __attribute__ ((bitwidth(801))) int801;\ntypedef int __attribute__ ((bitwidth(802))) int802;\ntypedef int __attribute__ ((bitwidth(803))) int803;\ntypedef int __attribute__ ((bitwidth(804))) int804;\ntypedef int __attribute__ ((bitwidth(805))) int805;\ntypedef int __attribute__ ((bitwidth(806))) int806;\ntypedef int __attribute__ ((bitwidth(807))) int807;\ntypedef int __attribute__ ((bitwidth(808))) int808;\ntypedef int __attribute__ ((bitwidth(809))) int809;\ntypedef int __attribute__ ((bitwidth(810))) int810;\ntypedef int __attribute__ ((bitwidth(811))) int811;\ntypedef int __attribute__ ((bitwidth(812))) int812;\ntypedef int __attribute__ ((bitwidth(813))) int813;\ntypedef int __attribute__ ((bitwidth(814))) int814;\ntypedef int __attribute__ ((bitwidth(815))) int815;\ntypedef int __attribute__ ((bitwidth(816))) int816;\ntypedef int __attribute__ ((bitwidth(817))) int817;\ntypedef int __attribute__ ((bitwidth(818))) int818;\ntypedef int __attribute__ ((bitwidth(819))) int819;\ntypedef int __attribute__ ((bitwidth(820))) int820;\ntypedef int __attribute__ ((bitwidth(821))) int821;\ntypedef int __attribute__ ((bitwidth(822))) int822;\ntypedef int __attribute__ ((bitwidth(823))) int823;\ntypedef int __attribute__ ((bitwidth(824))) int824;\ntypedef int __attribute__ ((bitwidth(825))) int825;\ntypedef int __attribute__ ((bitwidth(826))) int826;\ntypedef int __attribute__ ((bitwidth(827))) int827;\ntypedef int __attribute__ ((bitwidth(828))) int828;\ntypedef int __attribute__ ((bitwidth(829))) int829;\ntypedef int __attribute__ ((bitwidth(830))) int830;\ntypedef int __attribute__ ((bitwidth(831))) int831;\ntypedef int __attribute__ ((bitwidth(832))) int832;\ntypedef int __attribute__ ((bitwidth(833))) int833;\ntypedef int __attribute__ ((bitwidth(834))) int834;\ntypedef int __attribute__ ((bitwidth(835))) int835;\ntypedef int __attribute__ ((bitwidth(836))) int836;\ntypedef int __attribute__ ((bitwidth(837))) int837;\ntypedef int __attribute__ ((bitwidth(838))) int838;\ntypedef int __attribute__ ((bitwidth(839))) int839;\ntypedef int __attribute__ ((bitwidth(840))) int840;\ntypedef int __attribute__ ((bitwidth(841))) int841;\ntypedef int __attribute__ ((bitwidth(842))) int842;\ntypedef int __attribute__ ((bitwidth(843))) int843;\ntypedef int __attribute__ ((bitwidth(844))) int844;\ntypedef int __attribute__ ((bitwidth(845))) int845;\ntypedef int __attribute__ ((bitwidth(846))) int846;\ntypedef int __attribute__ ((bitwidth(847))) int847;\ntypedef int __attribute__ ((bitwidth(848))) int848;\ntypedef int __attribute__ ((bitwidth(849))) int849;\ntypedef int __attribute__ ((bitwidth(850))) int850;\ntypedef int __attribute__ ((bitwidth(851))) int851;\ntypedef int __attribute__ ((bitwidth(852))) int852;\ntypedef int __attribute__ ((bitwidth(853))) int853;\ntypedef int __attribute__ ((bitwidth(854))) int854;\ntypedef int __attribute__ ((bitwidth(855))) int855;\ntypedef int __attribute__ ((bitwidth(856))) int856;\ntypedef int __attribute__ ((bitwidth(857))) int857;\ntypedef int __attribute__ ((bitwidth(858))) int858;\ntypedef int __attribute__ ((bitwidth(859))) int859;\ntypedef int __attribute__ ((bitwidth(860))) int860;\ntypedef int __attribute__ ((bitwidth(861))) int861;\ntypedef int __attribute__ ((bitwidth(862))) int862;\ntypedef int __attribute__ ((bitwidth(863))) int863;\ntypedef int __attribute__ ((bitwidth(864))) int864;\ntypedef int __attribute__ ((bitwidth(865))) int865;\ntypedef int __attribute__ ((bitwidth(866))) int866;\ntypedef int __attribute__ ((bitwidth(867))) int867;\ntypedef int __attribute__ ((bitwidth(868))) int868;\ntypedef int __attribute__ ((bitwidth(869))) int869;\ntypedef int __attribute__ ((bitwidth(870))) int870;\ntypedef int __attribute__ ((bitwidth(871))) int871;\ntypedef int __attribute__ ((bitwidth(872))) int872;\ntypedef int __attribute__ ((bitwidth(873))) int873;\ntypedef int __attribute__ ((bitwidth(874))) int874;\ntypedef int __attribute__ ((bitwidth(875))) int875;\ntypedef int __attribute__ ((bitwidth(876))) int876;\ntypedef int __attribute__ ((bitwidth(877))) int877;\ntypedef int __attribute__ ((bitwidth(878))) int878;\ntypedef int __attribute__ ((bitwidth(879))) int879;\ntypedef int __attribute__ ((bitwidth(880))) int880;\ntypedef int __attribute__ ((bitwidth(881))) int881;\ntypedef int __attribute__ ((bitwidth(882))) int882;\ntypedef int __attribute__ ((bitwidth(883))) int883;\ntypedef int __attribute__ ((bitwidth(884))) int884;\ntypedef int __attribute__ ((bitwidth(885))) int885;\ntypedef int __attribute__ ((bitwidth(886))) int886;\ntypedef int __attribute__ ((bitwidth(887))) int887;\ntypedef int __attribute__ ((bitwidth(888))) int888;\ntypedef int __attribute__ ((bitwidth(889))) int889;\ntypedef int __attribute__ ((bitwidth(890))) int890;\ntypedef int __attribute__ ((bitwidth(891))) int891;\ntypedef int __attribute__ ((bitwidth(892))) int892;\ntypedef int __attribute__ ((bitwidth(893))) int893;\ntypedef int __attribute__ ((bitwidth(894))) int894;\ntypedef int __attribute__ ((bitwidth(895))) int895;\ntypedef int __attribute__ ((bitwidth(896))) int896;\ntypedef int __attribute__ ((bitwidth(897))) int897;\ntypedef int __attribute__ ((bitwidth(898))) int898;\ntypedef int __attribute__ ((bitwidth(899))) int899;\ntypedef int __attribute__ ((bitwidth(900))) int900;\ntypedef int __attribute__ ((bitwidth(901))) int901;\ntypedef int __attribute__ ((bitwidth(902))) int902;\ntypedef int __attribute__ ((bitwidth(903))) int903;\ntypedef int __attribute__ ((bitwidth(904))) int904;\ntypedef int __attribute__ ((bitwidth(905))) int905;\ntypedef int __attribute__ ((bitwidth(906))) int906;\ntypedef int __attribute__ ((bitwidth(907))) int907;\ntypedef int __attribute__ ((bitwidth(908))) int908;\ntypedef int __attribute__ ((bitwidth(909))) int909;\ntypedef int __attribute__ ((bitwidth(910))) int910;\ntypedef int __attribute__ ((bitwidth(911))) int911;\ntypedef int __attribute__ ((bitwidth(912))) int912;\ntypedef int __attribute__ ((bitwidth(913))) int913;\ntypedef int __attribute__ ((bitwidth(914))) int914;\ntypedef int __attribute__ ((bitwidth(915))) int915;\ntypedef int __attribute__ ((bitwidth(916))) int916;\ntypedef int __attribute__ ((bitwidth(917))) int917;\ntypedef int __attribute__ ((bitwidth(918))) int918;\ntypedef int __attribute__ ((bitwidth(919))) int919;\ntypedef int __attribute__ ((bitwidth(920))) int920;\ntypedef int __attribute__ ((bitwidth(921))) int921;\ntypedef int __attribute__ ((bitwidth(922))) int922;\ntypedef int __attribute__ ((bitwidth(923))) int923;\ntypedef int __attribute__ ((bitwidth(924))) int924;\ntypedef int __attribute__ ((bitwidth(925))) int925;\ntypedef int __attribute__ ((bitwidth(926))) int926;\ntypedef int __attribute__ ((bitwidth(927))) int927;\ntypedef int __attribute__ ((bitwidth(928))) int928;\ntypedef int __attribute__ ((bitwidth(929))) int929;\ntypedef int __attribute__ ((bitwidth(930))) int930;\ntypedef int __attribute__ ((bitwidth(931))) int931;\ntypedef int __attribute__ ((bitwidth(932))) int932;\ntypedef int __attribute__ ((bitwidth(933))) int933;\ntypedef int __attribute__ ((bitwidth(934))) int934;\ntypedef int __attribute__ ((bitwidth(935))) int935;\ntypedef int __attribute__ ((bitwidth(936))) int936;\ntypedef int __attribute__ ((bitwidth(937))) int937;\ntypedef int __attribute__ ((bitwidth(938))) int938;\ntypedef int __attribute__ ((bitwidth(939))) int939;\ntypedef int __attribute__ ((bitwidth(940))) int940;\ntypedef int __attribute__ ((bitwidth(941))) int941;\ntypedef int __attribute__ ((bitwidth(942))) int942;\ntypedef int __attribute__ ((bitwidth(943))) int943;\ntypedef int __attribute__ ((bitwidth(944))) int944;\ntypedef int __attribute__ ((bitwidth(945))) int945;\ntypedef int __attribute__ ((bitwidth(946))) int946;\ntypedef int __attribute__ ((bitwidth(947))) int947;\ntypedef int __attribute__ ((bitwidth(948))) int948;\ntypedef int __attribute__ ((bitwidth(949))) int949;\ntypedef int __attribute__ ((bitwidth(950))) int950;\ntypedef int __attribute__ ((bitwidth(951))) int951;\ntypedef int __attribute__ ((bitwidth(952))) int952;\ntypedef int __attribute__ ((bitwidth(953))) int953;\ntypedef int __attribute__ ((bitwidth(954))) int954;\ntypedef int __attribute__ ((bitwidth(955))) int955;\ntypedef int __attribute__ ((bitwidth(956))) int956;\ntypedef int __attribute__ ((bitwidth(957))) int957;\ntypedef int __attribute__ ((bitwidth(958))) int958;\ntypedef int __attribute__ ((bitwidth(959))) int959;\ntypedef int __attribute__ ((bitwidth(960))) int960;\ntypedef int __attribute__ ((bitwidth(961))) int961;\ntypedef int __attribute__ ((bitwidth(962))) int962;\ntypedef int __attribute__ ((bitwidth(963))) int963;\ntypedef int __attribute__ ((bitwidth(964))) int964;\ntypedef int __attribute__ ((bitwidth(965))) int965;\ntypedef int __attribute__ ((bitwidth(966))) int966;\ntypedef int __attribute__ ((bitwidth(967))) int967;\ntypedef int __attribute__ ((bitwidth(968))) int968;\ntypedef int __attribute__ ((bitwidth(969))) int969;\ntypedef int __attribute__ ((bitwidth(970))) int970;\ntypedef int __attribute__ ((bitwidth(971))) int971;\ntypedef int __attribute__ ((bitwidth(972))) int972;\ntypedef int __attribute__ ((bitwidth(973))) int973;\ntypedef int __attribute__ ((bitwidth(974))) int974;\ntypedef int __attribute__ ((bitwidth(975))) int975;\ntypedef int __attribute__ ((bitwidth(976))) int976;\ntypedef int __attribute__ ((bitwidth(977))) int977;\ntypedef int __attribute__ ((bitwidth(978))) int978;\ntypedef int __attribute__ ((bitwidth(979))) int979;\ntypedef int __attribute__ ((bitwidth(980))) int980;\ntypedef int __attribute__ ((bitwidth(981))) int981;\ntypedef int __attribute__ ((bitwidth(982))) int982;\ntypedef int __attribute__ ((bitwidth(983))) int983;\ntypedef int __attribute__ ((bitwidth(984))) int984;\ntypedef int __attribute__ ((bitwidth(985))) int985;\ntypedef int __attribute__ ((bitwidth(986))) int986;\ntypedef int __attribute__ ((bitwidth(987))) int987;\ntypedef int __attribute__ ((bitwidth(988))) int988;\ntypedef int __attribute__ ((bitwidth(989))) int989;\ntypedef int __attribute__ ((bitwidth(990))) int990;\ntypedef int __attribute__ ((bitwidth(991))) int991;\ntypedef int __attribute__ ((bitwidth(992))) int992;\ntypedef int __attribute__ ((bitwidth(993))) int993;\ntypedef int __attribute__ ((bitwidth(994))) int994;\ntypedef int __attribute__ ((bitwidth(995))) int995;\ntypedef int __attribute__ ((bitwidth(996))) int996;\ntypedef int __attribute__ ((bitwidth(997))) int997;\ntypedef int __attribute__ ((bitwidth(998))) int998;\ntypedef int __attribute__ ((bitwidth(999))) int999;\ntypedef int __attribute__ ((bitwidth(1000))) int1000;\ntypedef int __attribute__ ((bitwidth(1001))) int1001;\ntypedef int __attribute__ ((bitwidth(1002))) int1002;\ntypedef int __attribute__ ((bitwidth(1003))) int1003;\ntypedef int __attribute__ ((bitwidth(1004))) int1004;\ntypedef int __attribute__ ((bitwidth(1005))) int1005;\ntypedef int __attribute__ ((bitwidth(1006))) int1006;\ntypedef int __attribute__ ((bitwidth(1007))) int1007;\ntypedef int __attribute__ ((bitwidth(1008))) int1008;\ntypedef int __attribute__ ((bitwidth(1009))) int1009;\ntypedef int __attribute__ ((bitwidth(1010))) int1010;\ntypedef int __attribute__ ((bitwidth(1011))) int1011;\ntypedef int __attribute__ ((bitwidth(1012))) int1012;\ntypedef int __attribute__ ((bitwidth(1013))) int1013;\ntypedef int __attribute__ ((bitwidth(1014))) int1014;\ntypedef int __attribute__ ((bitwidth(1015))) int1015;\ntypedef int __attribute__ ((bitwidth(1016))) int1016;\ntypedef int __attribute__ ((bitwidth(1017))) int1017;\ntypedef int __attribute__ ((bitwidth(1018))) int1018;\ntypedef int __attribute__ ((bitwidth(1019))) int1019;\ntypedef int __attribute__ ((bitwidth(1020))) int1020;\ntypedef int __attribute__ ((bitwidth(1021))) int1021;\ntypedef int __attribute__ ((bitwidth(1022))) int1022;\ntypedef int __attribute__ ((bitwidth(1023))) int1023;\ntypedef int __attribute__ ((bitwidth(1024))) int1024;\n#98 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_dt.h\" 2\n#1 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_dt_ext.def\" 1\n\n\ntypedef int __attribute__ ((bitwidth(1025))) int1025;\ntypedef int __attribute__ ((bitwidth(1026))) int1026;\ntypedef int __attribute__ ((bitwidth(1027))) int1027;\ntypedef int __attribute__ ((bitwidth(1028))) int1028;\ntypedef int __attribute__ ((bitwidth(1029))) int1029;\ntypedef int __attribute__ ((bitwidth(1030))) int1030;\ntypedef int __attribute__ ((bitwidth(1031))) int1031;\ntypedef int __attribute__ ((bitwidth(1032))) int1032;\ntypedef int __attribute__ ((bitwidth(1033))) int1033;\ntypedef int __attribute__ ((bitwidth(1034))) int1034;\ntypedef int __attribute__ ((bitwidth(1035))) int1035;\ntypedef int __attribute__ ((bitwidth(1036))) int1036;\ntypedef int __attribute__ ((bitwidth(1037))) int1037;\ntypedef int __attribute__ ((bitwidth(1038))) int1038;\ntypedef int __attribute__ ((bitwidth(1039))) int1039;\ntypedef int __attribute__ ((bitwidth(1040))) int1040;\ntypedef int __attribute__ ((bitwidth(1041))) int1041;\ntypedef int __attribute__ ((bitwidth(1042))) int1042;\ntypedef int __attribute__ ((bitwidth(1043))) int1043;\ntypedef int __attribute__ ((bitwidth(1044))) int1044;\ntypedef int __attribute__ ((bitwidth(1045))) int1045;\ntypedef int __attribute__ ((bitwidth(1046))) int1046;\ntypedef int __attribute__ ((bitwidth(1047))) int1047;\ntypedef int __attribute__ ((bitwidth(1048))) int1048;\ntypedef int __attribute__ ((bitwidth(1049))) int1049;\ntypedef int __attribute__ ((bitwidth(1050))) int1050;\ntypedef int __attribute__ ((bitwidth(1051))) int1051;\ntypedef int __attribute__ ((bitwidth(1052))) int1052;\ntypedef int __attribute__ ((bitwidth(1053))) int1053;\ntypedef int __attribute__ ((bitwidth(1054))) int1054;\ntypedef int __attribute__ ((bitwidth(1055))) int1055;\ntypedef int __attribute__ ((bitwidth(1056))) int1056;\ntypedef int __attribute__ ((bitwidth(1057))) int1057;\ntypedef int __attribute__ ((bitwidth(1058))) int1058;\ntypedef int __attribute__ ((bitwidth(1059))) int1059;\ntypedef int __attribute__ ((bitwidth(1060))) int1060;\ntypedef int __attribute__ ((bitwidth(1061))) int1061;\ntypedef int __attribute__ ((bitwidth(1062))) int1062;\ntypedef int __attribute__ ((bitwidth(1063))) int1063;\ntypedef int __attribute__ ((bitwidth(1064))) int1064;\ntypedef int __attribute__ ((bitwidth(1065))) int1065;\ntypedef int __attribute__ ((bitwidth(1066))) int1066;\ntypedef int __attribute__ ((bitwidth(1067))) int1067;\ntypedef int __attribute__ ((bitwidth(1068))) int1068;\ntypedef int __attribute__ ((bitwidth(1069))) int1069;\ntypedef int __attribute__ ((bitwidth(1070))) int1070;\ntypedef int __attribute__ ((bitwidth(1071))) int1071;\ntypedef int __attribute__ ((bitwidth(1072))) int1072;\ntypedef int __attribute__ ((bitwidth(1073))) int1073;\ntypedef int __attribute__ ((bitwidth(1074))) int1074;\ntypedef int __attribute__ ((bitwidth(1075))) int1075;\ntypedef int __attribute__ ((bitwidth(1076))) int1076;\ntypedef int __attribute__ ((bitwidth(1077))) int1077;\ntypedef int __attribute__ ((bitwidth(1078))) int1078;\ntypedef int __attribute__ ((bitwidth(1079))) int1079;\ntypedef int __attribute__ ((bitwidth(1080))) int1080;\ntypedef int __attribute__ ((bitwidth(1081))) int1081;\ntypedef int __attribute__ ((bitwidth(1082))) int1082;\ntypedef int __attribute__ ((bitwidth(1083))) int1083;\ntypedef int __attribute__ ((bitwidth(1084))) int1084;\ntypedef int __attribute__ ((bitwidth(1085))) int1085;\ntypedef int __attribute__ ((bitwidth(1086))) int1086;\ntypedef int __attribute__ ((bitwidth(1087))) int1087;\ntypedef int __attribute__ ((bitwidth(1088))) int1088;\ntypedef int __attribute__ ((bitwidth(1089))) int1089;\ntypedef int __attribute__ ((bitwidth(1090))) int1090;\ntypedef int __attribute__ ((bitwidth(1091))) int1091;\ntypedef int __attribute__ ((bitwidth(1092))) int1092;\ntypedef int __attribute__ ((bitwidth(1093))) int1093;\ntypedef int __attribute__ ((bitwidth(1094))) int1094;\ntypedef int __attribute__ ((bitwidth(1095))) int1095;\ntypedef int __attribute__ ((bitwidth(1096))) int1096;\ntypedef int __attribute__ ((bitwidth(1097))) int1097;\ntypedef int __attribute__ ((bitwidth(1098))) int1098;\ntypedef int __attribute__ ((bitwidth(1099))) int1099;\ntypedef int __attribute__ ((bitwidth(1100))) int1100;\ntypedef int __attribute__ ((bitwidth(1101))) int1101;\ntypedef int __attribute__ ((bitwidth(1102))) int1102;\ntypedef int __attribute__ ((bitwidth(1103))) int1103;\ntypedef int __attribute__ ((bitwidth(1104))) int1104;\ntypedef int __attribute__ ((bitwidth(1105))) int1105;\ntypedef int __attribute__ ((bitwidth(1106))) int1106;\ntypedef int __attribute__ ((bitwidth(1107))) int1107;\ntypedef int __attribute__ ((bitwidth(1108))) int1108;\ntypedef int __attribute__ ((bitwidth(1109))) int1109;\ntypedef int __attribute__ ((bitwidth(1110))) int1110;\ntypedef int __attribute__ ((bitwidth(1111))) int1111;\ntypedef int __attribute__ ((bitwidth(1112))) int1112;\ntypedef int __attribute__ ((bitwidth(1113))) int1113;\ntypedef int __attribute__ ((bitwidth(1114))) int1114;\ntypedef int __attribute__ ((bitwidth(1115))) int1115;\ntypedef int __attribute__ ((bitwidth(1116))) int1116;\ntypedef int __attribute__ ((bitwidth(1117))) int1117;\ntypedef int __attribute__ ((bitwidth(1118))) int1118;\ntypedef int __attribute__ ((bitwidth(1119))) int1119;\ntypedef int __attribute__ ((bitwidth(1120))) int1120;\ntypedef int __attribute__ ((bitwidth(1121))) int1121;\ntypedef int __attribute__ ((bitwidth(1122))) int1122;\ntypedef int __attribute__ ((bitwidth(1123))) int1123;\ntypedef int __attribute__ ((bitwidth(1124))) int1124;\ntypedef int __attribute__ ((bitwidth(1125))) int1125;\ntypedef int __attribute__ ((bitwidth(1126))) int1126;\ntypedef int __attribute__ ((bitwidth(1127))) int1127;\ntypedef int __attribute__ ((bitwidth(1128))) int1128;\ntypedef int __attribute__ ((bitwidth(1129))) int1129;\ntypedef int __attribute__ ((bitwidth(1130))) int1130;\ntypedef int __attribute__ ((bitwidth(1131))) int1131;\ntypedef int __attribute__ ((bitwidth(1132))) int1132;\ntypedef int __attribute__ ((bitwidth(1133))) int1133;\ntypedef int __attribute__ ((bitwidth(1134))) int1134;\ntypedef int __attribute__ ((bitwidth(1135))) int1135;\ntypedef int __attribute__ ((bitwidth(1136))) int1136;\ntypedef int __attribute__ ((bitwidth(1137))) int1137;\ntypedef int __attribute__ ((bitwidth(1138))) int1138;\ntypedef int __attribute__ ((bitwidth(1139))) int1139;\ntypedef int __attribute__ ((bitwidth(1140))) int1140;\ntypedef int __attribute__ ((bitwidth(1141))) int1141;\ntypedef int __attribute__ ((bitwidth(1142))) int1142;\ntypedef int __attribute__ ((bitwidth(1143))) int1143;\ntypedef int __attribute__ ((bitwidth(1144))) int1144;\ntypedef int __attribute__ ((bitwidth(1145))) int1145;\ntypedef int __attribute__ ((bitwidth(1146))) int1146;\ntypedef int __attribute__ ((bitwidth(1147))) int1147;\ntypedef int __attribute__ ((bitwidth(1148))) int1148;\ntypedef int __attribute__ ((bitwidth(1149))) int1149;\ntypedef int __attribute__ ((bitwidth(1150))) int1150;\ntypedef int __attribute__ ((bitwidth(1151))) int1151;\ntypedef int __attribute__ ((bitwidth(1152))) int1152;\ntypedef int __attribute__ ((bitwidth(1153))) int1153;\ntypedef int __attribute__ ((bitwidth(1154))) int1154;\ntypedef int __attribute__ ((bitwidth(1155))) int1155;\ntypedef int __attribute__ ((bitwidth(1156))) int1156;\ntypedef int __attribute__ ((bitwidth(1157))) int1157;\ntypedef int __attribute__ ((bitwidth(1158))) int1158;\ntypedef int __attribute__ ((bitwidth(1159))) int1159;\ntypedef int __attribute__ ((bitwidth(1160))) int1160;\ntypedef int __attribute__ ((bitwidth(1161))) int1161;\ntypedef int __attribute__ ((bitwidth(1162))) int1162;\ntypedef int __attribute__ ((bitwidth(1163))) int1163;\ntypedef int __attribute__ ((bitwidth(1164))) int1164;\ntypedef int __attribute__ ((bitwidth(1165))) int1165;\ntypedef int __attribute__ ((bitwidth(1166))) int1166;\ntypedef int __attribute__ ((bitwidth(1167))) int1167;\ntypedef int __attribute__ ((bitwidth(1168))) int1168;\ntypedef int __attribute__ ((bitwidth(1169))) int1169;\ntypedef int __attribute__ ((bitwidth(1170))) int1170;\ntypedef int __attribute__ ((bitwidth(1171))) int1171;\ntypedef int __attribute__ ((bitwidth(1172))) int1172;\ntypedef int __attribute__ ((bitwidth(1173))) int1173;\ntypedef int __attribute__ ((bitwidth(1174))) int1174;\ntypedef int __attribute__ ((bitwidth(1175))) int1175;\ntypedef int __attribute__ ((bitwidth(1176))) int1176;\ntypedef int __attribute__ ((bitwidth(1177))) int1177;\ntypedef int __attribute__ ((bitwidth(1178))) int1178;\ntypedef int __attribute__ ((bitwidth(1179))) int1179;\ntypedef int __attribute__ ((bitwidth(1180))) int1180;\ntypedef int __attribute__ ((bitwidth(1181))) int1181;\ntypedef int __attribute__ ((bitwidth(1182))) int1182;\ntypedef int __attribute__ ((bitwidth(1183))) int1183;\ntypedef int __attribute__ ((bitwidth(1184))) int1184;\ntypedef int __attribute__ ((bitwidth(1185))) int1185;\ntypedef int __attribute__ ((bitwidth(1186))) int1186;\ntypedef int __attribute__ ((bitwidth(1187))) int1187;\ntypedef int __attribute__ ((bitwidth(1188))) int1188;\ntypedef int __attribute__ ((bitwidth(1189))) int1189;\ntypedef int __attribute__ ((bitwidth(1190))) int1190;\ntypedef int __attribute__ ((bitwidth(1191))) int1191;\ntypedef int __attribute__ ((bitwidth(1192))) int1192;\ntypedef int __attribute__ ((bitwidth(1193))) int1193;\ntypedef int __attribute__ ((bitwidth(1194))) int1194;\ntypedef int __attribute__ ((bitwidth(1195))) int1195;\ntypedef int __attribute__ ((bitwidth(1196))) int1196;\ntypedef int __attribute__ ((bitwidth(1197))) int1197;\ntypedef int __attribute__ ((bitwidth(1198))) int1198;\ntypedef int __attribute__ ((bitwidth(1199))) int1199;\ntypedef int __attribute__ ((bitwidth(1200))) int1200;\ntypedef int __attribute__ ((bitwidth(1201))) int1201;\ntypedef int __attribute__ ((bitwidth(1202))) int1202;\ntypedef int __attribute__ ((bitwidth(1203))) int1203;\ntypedef int __attribute__ ((bitwidth(1204))) int1204;\ntypedef int __attribute__ ((bitwidth(1205))) int1205;\ntypedef int __attribute__ ((bitwidth(1206))) int1206;\ntypedef int __attribute__ ((bitwidth(1207))) int1207;\ntypedef int __attribute__ ((bitwidth(1208))) int1208;\ntypedef int __attribute__ ((bitwidth(1209))) int1209;\ntypedef int __attribute__ ((bitwidth(1210))) int1210;\ntypedef int __attribute__ ((bitwidth(1211))) int1211;\ntypedef int __attribute__ ((bitwidth(1212))) int1212;\ntypedef int __attribute__ ((bitwidth(1213))) int1213;\ntypedef int __attribute__ ((bitwidth(1214))) int1214;\ntypedef int __attribute__ ((bitwidth(1215))) int1215;\ntypedef int __attribute__ ((bitwidth(1216))) int1216;\ntypedef int __attribute__ ((bitwidth(1217))) int1217;\ntypedef int __attribute__ ((bitwidth(1218))) int1218;\ntypedef int __attribute__ ((bitwidth(1219))) int1219;\ntypedef int __attribute__ ((bitwidth(1220))) int1220;\ntypedef int __attribute__ ((bitwidth(1221))) int1221;\ntypedef int __attribute__ ((bitwidth(1222))) int1222;\ntypedef int __attribute__ ((bitwidth(1223))) int1223;\ntypedef int __attribute__ ((bitwidth(1224))) int1224;\ntypedef int __attribute__ ((bitwidth(1225))) int1225;\ntypedef int __attribute__ ((bitwidth(1226))) int1226;\ntypedef int __attribute__ ((bitwidth(1227))) int1227;\ntypedef int __attribute__ ((bitwidth(1228))) int1228;\ntypedef int __attribute__ ((bitwidth(1229))) int1229;\ntypedef int __attribute__ ((bitwidth(1230))) int1230;\ntypedef int __attribute__ ((bitwidth(1231))) int1231;\ntypedef int __attribute__ ((bitwidth(1232))) int1232;\ntypedef int __attribute__ ((bitwidth(1233))) int1233;\ntypedef int __attribute__ ((bitwidth(1234))) int1234;\ntypedef int __attribute__ ((bitwidth(1235))) int1235;\ntypedef int __attribute__ ((bitwidth(1236))) int1236;\ntypedef int __attribute__ ((bitwidth(1237))) int1237;\ntypedef int __attribute__ ((bitwidth(1238))) int1238;\ntypedef int __attribute__ ((bitwidth(1239))) int1239;\ntypedef int __attribute__ ((bitwidth(1240))) int1240;\ntypedef int __attribute__ ((bitwidth(1241))) int1241;\ntypedef int __attribute__ ((bitwidth(1242))) int1242;\ntypedef int __attribute__ ((bitwidth(1243))) int1243;\ntypedef int __attribute__ ((bitwidth(1244))) int1244;\ntypedef int __attribute__ ((bitwidth(1245))) int1245;\ntypedef int __attribute__ ((bitwidth(1246))) int1246;\ntypedef int __attribute__ ((bitwidth(1247))) int1247;\ntypedef int __attribute__ ((bitwidth(1248))) int1248;\ntypedef int __attribute__ ((bitwidth(1249))) int1249;\ntypedef int __attribute__ ((bitwidth(1250))) int1250;\ntypedef int __attribute__ ((bitwidth(1251))) int1251;\ntypedef int __attribute__ ((bitwidth(1252))) int1252;\ntypedef int __attribute__ ((bitwidth(1253))) int1253;\ntypedef int __attribute__ ((bitwidth(1254))) int1254;\ntypedef int __attribute__ ((bitwidth(1255))) int1255;\ntypedef int __attribute__ ((bitwidth(1256))) int1256;\ntypedef int __attribute__ ((bitwidth(1257))) int1257;\ntypedef int __attribute__ ((bitwidth(1258))) int1258;\ntypedef int __attribute__ ((bitwidth(1259))) int1259;\ntypedef int __attribute__ ((bitwidth(1260))) int1260;\ntypedef int __attribute__ ((bitwidth(1261))) int1261;\ntypedef int __attribute__ ((bitwidth(1262))) int1262;\ntypedef int __attribute__ ((bitwidth(1263))) int1263;\ntypedef int __attribute__ ((bitwidth(1264))) int1264;\ntypedef int __attribute__ ((bitwidth(1265))) int1265;\ntypedef int __attribute__ ((bitwidth(1266))) int1266;\ntypedef int __attribute__ ((bitwidth(1267))) int1267;\ntypedef int __attribute__ ((bitwidth(1268))) int1268;\ntypedef int __attribute__ ((bitwidth(1269))) int1269;\ntypedef int __attribute__ ((bitwidth(1270))) int1270;\ntypedef int __attribute__ ((bitwidth(1271))) int1271;\ntypedef int __attribute__ ((bitwidth(1272))) int1272;\ntypedef int __attribute__ ((bitwidth(1273))) int1273;\ntypedef int __attribute__ ((bitwidth(1274))) int1274;\ntypedef int __attribute__ ((bitwidth(1275))) int1275;\ntypedef int __attribute__ ((bitwidth(1276))) int1276;\ntypedef int __attribute__ ((bitwidth(1277))) int1277;\ntypedef int __attribute__ ((bitwidth(1278))) int1278;\ntypedef int __attribute__ ((bitwidth(1279))) int1279;\ntypedef int __attribute__ ((bitwidth(1280))) int1280;\ntypedef int __attribute__ ((bitwidth(1281))) int1281;\ntypedef int __attribute__ ((bitwidth(1282))) int1282;\ntypedef int __attribute__ ((bitwidth(1283))) int1283;\ntypedef int __attribute__ ((bitwidth(1284))) int1284;\ntypedef int __attribute__ ((bitwidth(1285))) int1285;\ntypedef int __attribute__ ((bitwidth(1286))) int1286;\ntypedef int __attribute__ ((bitwidth(1287))) int1287;\ntypedef int __attribute__ ((bitwidth(1288))) int1288;\ntypedef int __attribute__ ((bitwidth(1289))) int1289;\ntypedef int __attribute__ ((bitwidth(1290))) int1290;\ntypedef int __attribute__ ((bitwidth(1291))) int1291;\ntypedef int __attribute__ ((bitwidth(1292))) int1292;\ntypedef int __attribute__ ((bitwidth(1293))) int1293;\ntypedef int __attribute__ ((bitwidth(1294))) int1294;\ntypedef int __attribute__ ((bitwidth(1295))) int1295;\ntypedef int __attribute__ ((bitwidth(1296))) int1296;\ntypedef int __attribute__ ((bitwidth(1297))) int1297;\ntypedef int __attribute__ ((bitwidth(1298))) int1298;\ntypedef int __attribute__ ((bitwidth(1299))) int1299;\ntypedef int __attribute__ ((bitwidth(1300))) int1300;\ntypedef int __attribute__ ((bitwidth(1301))) int1301;\ntypedef int __attribute__ ((bitwidth(1302))) int1302;\ntypedef int __attribute__ ((bitwidth(1303))) int1303;\ntypedef int __attribute__ ((bitwidth(1304))) int1304;\ntypedef int __attribute__ ((bitwidth(1305))) int1305;\ntypedef int __attribute__ ((bitwidth(1306))) int1306;\ntypedef int __attribute__ ((bitwidth(1307))) int1307;\ntypedef int __attribute__ ((bitwidth(1308))) int1308;\ntypedef int __attribute__ ((bitwidth(1309))) int1309;\ntypedef int __attribute__ ((bitwidth(1310))) int1310;\ntypedef int __attribute__ ((bitwidth(1311))) int1311;\ntypedef int __attribute__ ((bitwidth(1312))) int1312;\ntypedef int __attribute__ ((bitwidth(1313))) int1313;\ntypedef int __attribute__ ((bitwidth(1314))) int1314;\ntypedef int __attribute__ ((bitwidth(1315))) int1315;\ntypedef int __attribute__ ((bitwidth(1316))) int1316;\ntypedef int __attribute__ ((bitwidth(1317))) int1317;\ntypedef int __attribute__ ((bitwidth(1318))) int1318;\ntypedef int __attribute__ ((bitwidth(1319))) int1319;\ntypedef int __attribute__ ((bitwidth(1320))) int1320;\ntypedef int __attribute__ ((bitwidth(1321))) int1321;\ntypedef int __attribute__ ((bitwidth(1322))) int1322;\ntypedef int __attribute__ ((bitwidth(1323))) int1323;\ntypedef int __attribute__ ((bitwidth(1324))) int1324;\ntypedef int __attribute__ ((bitwidth(1325))) int1325;\ntypedef int __attribute__ ((bitwidth(1326))) int1326;\ntypedef int __attribute__ ((bitwidth(1327))) int1327;\ntypedef int __attribute__ ((bitwidth(1328))) int1328;\ntypedef int __attribute__ ((bitwidth(1329))) int1329;\ntypedef int __attribute__ ((bitwidth(1330))) int1330;\ntypedef int __attribute__ ((bitwidth(1331))) int1331;\ntypedef int __attribute__ ((bitwidth(1332))) int1332;\ntypedef int __attribute__ ((bitwidth(1333))) int1333;\ntypedef int __attribute__ ((bitwidth(1334))) int1334;\ntypedef int __attribute__ ((bitwidth(1335))) int1335;\ntypedef int __attribute__ ((bitwidth(1336))) int1336;\ntypedef int __attribute__ ((bitwidth(1337))) int1337;\ntypedef int __attribute__ ((bitwidth(1338))) int1338;\ntypedef int __attribute__ ((bitwidth(1339))) int1339;\ntypedef int __attribute__ ((bitwidth(1340))) int1340;\ntypedef int __attribute__ ((bitwidth(1341))) int1341;\ntypedef int __attribute__ ((bitwidth(1342))) int1342;\ntypedef int __attribute__ ((bitwidth(1343))) int1343;\ntypedef int __attribute__ ((bitwidth(1344))) int1344;\ntypedef int __attribute__ ((bitwidth(1345))) int1345;\ntypedef int __attribute__ ((bitwidth(1346))) int1346;\ntypedef int __attribute__ ((bitwidth(1347))) int1347;\ntypedef int __attribute__ ((bitwidth(1348))) int1348;\ntypedef int __attribute__ ((bitwidth(1349))) int1349;\ntypedef int __attribute__ ((bitwidth(1350))) int1350;\ntypedef int __attribute__ ((bitwidth(1351))) int1351;\ntypedef int __attribute__ ((bitwidth(1352))) int1352;\ntypedef int __attribute__ ((bitwidth(1353))) int1353;\ntypedef int __attribute__ ((bitwidth(1354))) int1354;\ntypedef int __attribute__ ((bitwidth(1355))) int1355;\ntypedef int __attribute__ ((bitwidth(1356))) int1356;\ntypedef int __attribute__ ((bitwidth(1357))) int1357;\ntypedef int __attribute__ ((bitwidth(1358))) int1358;\ntypedef int __attribute__ ((bitwidth(1359))) int1359;\ntypedef int __attribute__ ((bitwidth(1360))) int1360;\ntypedef int __attribute__ ((bitwidth(1361))) int1361;\ntypedef int __attribute__ ((bitwidth(1362))) int1362;\ntypedef int __attribute__ ((bitwidth(1363))) int1363;\ntypedef int __attribute__ ((bitwidth(1364))) int1364;\ntypedef int __attribute__ ((bitwidth(1365))) int1365;\ntypedef int __attribute__ ((bitwidth(1366))) int1366;\ntypedef int __attribute__ ((bitwidth(1367))) int1367;\ntypedef int __attribute__ ((bitwidth(1368))) int1368;\ntypedef int __attribute__ ((bitwidth(1369))) int1369;\ntypedef int __attribute__ ((bitwidth(1370))) int1370;\ntypedef int __attribute__ ((bitwidth(1371))) int1371;\ntypedef int __attribute__ ((bitwidth(1372))) int1372;\ntypedef int __attribute__ ((bitwidth(1373))) int1373;\ntypedef int __attribute__ ((bitwidth(1374))) int1374;\ntypedef int __attribute__ ((bitwidth(1375))) int1375;\ntypedef int __attribute__ ((bitwidth(1376))) int1376;\ntypedef int __attribute__ ((bitwidth(1377))) int1377;\ntypedef int __attribute__ ((bitwidth(1378))) int1378;\ntypedef int __attribute__ ((bitwidth(1379))) int1379;\ntypedef int __attribute__ ((bitwidth(1380))) int1380;\ntypedef int __attribute__ ((bitwidth(1381))) int1381;\ntypedef int __attribute__ ((bitwidth(1382))) int1382;\ntypedef int __attribute__ ((bitwidth(1383))) int1383;\ntypedef int __attribute__ ((bitwidth(1384))) int1384;\ntypedef int __attribute__ ((bitwidth(1385))) int1385;\ntypedef int __attribute__ ((bitwidth(1386))) int1386;\ntypedef int __attribute__ ((bitwidth(1387))) int1387;\ntypedef int __attribute__ ((bitwidth(1388))) int1388;\ntypedef int __attribute__ ((bitwidth(1389))) int1389;\ntypedef int __attribute__ ((bitwidth(1390))) int1390;\ntypedef int __attribute__ ((bitwidth(1391))) int1391;\ntypedef int __attribute__ ((bitwidth(1392))) int1392;\ntypedef int __attribute__ ((bitwidth(1393))) int1393;\ntypedef int __attribute__ ((bitwidth(1394))) int1394;\ntypedef int __attribute__ ((bitwidth(1395))) int1395;\ntypedef int __attribute__ ((bitwidth(1396))) int1396;\ntypedef int __attribute__ ((bitwidth(1397))) int1397;\ntypedef int __attribute__ ((bitwidth(1398))) int1398;\ntypedef int __attribute__ ((bitwidth(1399))) int1399;\ntypedef int __attribute__ ((bitwidth(1400))) int1400;\ntypedef int __attribute__ ((bitwidth(1401))) int1401;\ntypedef int __attribute__ ((bitwidth(1402))) int1402;\ntypedef int __attribute__ ((bitwidth(1403))) int1403;\ntypedef int __attribute__ ((bitwidth(1404))) int1404;\ntypedef int __attribute__ ((bitwidth(1405))) int1405;\ntypedef int __attribute__ ((bitwidth(1406))) int1406;\ntypedef int __attribute__ ((bitwidth(1407))) int1407;\ntypedef int __attribute__ ((bitwidth(1408))) int1408;\ntypedef int __attribute__ ((bitwidth(1409))) int1409;\ntypedef int __attribute__ ((bitwidth(1410))) int1410;\ntypedef int __attribute__ ((bitwidth(1411))) int1411;\ntypedef int __attribute__ ((bitwidth(1412))) int1412;\ntypedef int __attribute__ ((bitwidth(1413))) int1413;\ntypedef int __attribute__ ((bitwidth(1414))) int1414;\ntypedef int __attribute__ ((bitwidth(1415))) int1415;\ntypedef int __attribute__ ((bitwidth(1416))) int1416;\ntypedef int __attribute__ ((bitwidth(1417))) int1417;\ntypedef int __attribute__ ((bitwidth(1418))) int1418;\ntypedef int __attribute__ ((bitwidth(1419))) int1419;\ntypedef int __attribute__ ((bitwidth(1420))) int1420;\ntypedef int __attribute__ ((bitwidth(1421))) int1421;\ntypedef int __attribute__ ((bitwidth(1422))) int1422;\ntypedef int __attribute__ ((bitwidth(1423))) int1423;\ntypedef int __attribute__ ((bitwidth(1424))) int1424;\ntypedef int __attribute__ ((bitwidth(1425))) int1425;\ntypedef int __attribute__ ((bitwidth(1426))) int1426;\ntypedef int __attribute__ ((bitwidth(1427))) int1427;\ntypedef int __attribute__ ((bitwidth(1428))) int1428;\ntypedef int __attribute__ ((bitwidth(1429))) int1429;\ntypedef int __attribute__ ((bitwidth(1430))) int1430;\ntypedef int __attribute__ ((bitwidth(1431))) int1431;\ntypedef int __attribute__ ((bitwidth(1432))) int1432;\ntypedef int __attribute__ ((bitwidth(1433))) int1433;\ntypedef int __attribute__ ((bitwidth(1434))) int1434;\ntypedef int __attribute__ ((bitwidth(1435))) int1435;\ntypedef int __attribute__ ((bitwidth(1436))) int1436;\ntypedef int __attribute__ ((bitwidth(1437))) int1437;\ntypedef int __attribute__ ((bitwidth(1438))) int1438;\ntypedef int __attribute__ ((bitwidth(1439))) int1439;\ntypedef int __attribute__ ((bitwidth(1440))) int1440;\ntypedef int __attribute__ ((bitwidth(1441))) int1441;\ntypedef int __attribute__ ((bitwidth(1442))) int1442;\ntypedef int __attribute__ ((bitwidth(1443))) int1443;\ntypedef int __attribute__ ((bitwidth(1444))) int1444;\ntypedef int __attribute__ ((bitwidth(1445))) int1445;\ntypedef int __attribute__ ((bitwidth(1446))) int1446;\ntypedef int __attribute__ ((bitwidth(1447))) int1447;\ntypedef int __attribute__ ((bitwidth(1448))) int1448;\ntypedef int __attribute__ ((bitwidth(1449))) int1449;\ntypedef int __attribute__ ((bitwidth(1450))) int1450;\ntypedef int __attribute__ ((bitwidth(1451))) int1451;\ntypedef int __attribute__ ((bitwidth(1452))) int1452;\ntypedef int __attribute__ ((bitwidth(1453))) int1453;\ntypedef int __attribute__ ((bitwidth(1454))) int1454;\ntypedef int __attribute__ ((bitwidth(1455))) int1455;\ntypedef int __attribute__ ((bitwidth(1456))) int1456;\ntypedef int __attribute__ ((bitwidth(1457))) int1457;\ntypedef int __attribute__ ((bitwidth(1458))) int1458;\ntypedef int __attribute__ ((bitwidth(1459))) int1459;\ntypedef int __attribute__ ((bitwidth(1460))) int1460;\ntypedef int __attribute__ ((bitwidth(1461))) int1461;\ntypedef int __attribute__ ((bitwidth(1462))) int1462;\ntypedef int __attribute__ ((bitwidth(1463))) int1463;\ntypedef int __attribute__ ((bitwidth(1464))) int1464;\ntypedef int __attribute__ ((bitwidth(1465))) int1465;\ntypedef int __attribute__ ((bitwidth(1466))) int1466;\ntypedef int __attribute__ ((bitwidth(1467))) int1467;\ntypedef int __attribute__ ((bitwidth(1468))) int1468;\ntypedef int __attribute__ ((bitwidth(1469))) int1469;\ntypedef int __attribute__ ((bitwidth(1470))) int1470;\ntypedef int __attribute__ ((bitwidth(1471))) int1471;\ntypedef int __attribute__ ((bitwidth(1472))) int1472;\ntypedef int __attribute__ ((bitwidth(1473))) int1473;\ntypedef int __attribute__ ((bitwidth(1474))) int1474;\ntypedef int __attribute__ ((bitwidth(1475))) int1475;\ntypedef int __attribute__ ((bitwidth(1476))) int1476;\ntypedef int __attribute__ ((bitwidth(1477))) int1477;\ntypedef int __attribute__ ((bitwidth(1478))) int1478;\ntypedef int __attribute__ ((bitwidth(1479))) int1479;\ntypedef int __attribute__ ((bitwidth(1480))) int1480;\ntypedef int __attribute__ ((bitwidth(1481))) int1481;\ntypedef int __attribute__ ((bitwidth(1482))) int1482;\ntypedef int __attribute__ ((bitwidth(1483))) int1483;\ntypedef int __attribute__ ((bitwidth(1484))) int1484;\ntypedef int __attribute__ ((bitwidth(1485))) int1485;\ntypedef int __attribute__ ((bitwidth(1486))) int1486;\ntypedef int __attribute__ ((bitwidth(1487))) int1487;\ntypedef int __attribute__ ((bitwidth(1488))) int1488;\ntypedef int __attribute__ ((bitwidth(1489))) int1489;\ntypedef int __attribute__ ((bitwidth(1490))) int1490;\ntypedef int __attribute__ ((bitwidth(1491))) int1491;\ntypedef int __attribute__ ((bitwidth(1492))) int1492;\ntypedef int __attribute__ ((bitwidth(1493))) int1493;\ntypedef int __attribute__ ((bitwidth(1494))) int1494;\ntypedef int __attribute__ ((bitwidth(1495))) int1495;\ntypedef int __attribute__ ((bitwidth(1496))) int1496;\ntypedef int __attribute__ ((bitwidth(1497))) int1497;\ntypedef int __attribute__ ((bitwidth(1498))) int1498;\ntypedef int __attribute__ ((bitwidth(1499))) int1499;\ntypedef int __attribute__ ((bitwidth(1500))) int1500;\ntypedef int __attribute__ ((bitwidth(1501))) int1501;\ntypedef int __attribute__ ((bitwidth(1502))) int1502;\ntypedef int __attribute__ ((bitwidth(1503))) int1503;\ntypedef int __attribute__ ((bitwidth(1504))) int1504;\ntypedef int __attribute__ ((bitwidth(1505))) int1505;\ntypedef int __attribute__ ((bitwidth(1506))) int1506;\ntypedef int __attribute__ ((bitwidth(1507))) int1507;\ntypedef int __attribute__ ((bitwidth(1508))) int1508;\ntypedef int __attribute__ ((bitwidth(1509))) int1509;\ntypedef int __attribute__ ((bitwidth(1510))) int1510;\ntypedef int __attribute__ ((bitwidth(1511))) int1511;\ntypedef int __attribute__ ((bitwidth(1512))) int1512;\ntypedef int __attribute__ ((bitwidth(1513))) int1513;\ntypedef int __attribute__ ((bitwidth(1514))) int1514;\ntypedef int __attribute__ ((bitwidth(1515))) int1515;\ntypedef int __attribute__ ((bitwidth(1516))) int1516;\ntypedef int __attribute__ ((bitwidth(1517))) int1517;\ntypedef int __attribute__ ((bitwidth(1518))) int1518;\ntypedef int __attribute__ ((bitwidth(1519))) int1519;\ntypedef int __attribute__ ((bitwidth(1520))) int1520;\ntypedef int __attribute__ ((bitwidth(1521))) int1521;\ntypedef int __attribute__ ((bitwidth(1522))) int1522;\ntypedef int __attribute__ ((bitwidth(1523))) int1523;\ntypedef int __attribute__ ((bitwidth(1524))) int1524;\ntypedef int __attribute__ ((bitwidth(1525))) int1525;\ntypedef int __attribute__ ((bitwidth(1526))) int1526;\ntypedef int __attribute__ ((bitwidth(1527))) int1527;\ntypedef int __attribute__ ((bitwidth(1528))) int1528;\ntypedef int __attribute__ ((bitwidth(1529))) int1529;\ntypedef int __attribute__ ((bitwidth(1530))) int1530;\ntypedef int __attribute__ ((bitwidth(1531))) int1531;\ntypedef int __attribute__ ((bitwidth(1532))) int1532;\ntypedef int __attribute__ ((bitwidth(1533))) int1533;\ntypedef int __attribute__ ((bitwidth(1534))) int1534;\ntypedef int __attribute__ ((bitwidth(1535))) int1535;\ntypedef int __attribute__ ((bitwidth(1536))) int1536;\ntypedef int __attribute__ ((bitwidth(1537))) int1537;\ntypedef int __attribute__ ((bitwidth(1538))) int1538;\ntypedef int __attribute__ ((bitwidth(1539))) int1539;\ntypedef int __attribute__ ((bitwidth(1540))) int1540;\ntypedef int __attribute__ ((bitwidth(1541))) int1541;\ntypedef int __attribute__ ((bitwidth(1542))) int1542;\ntypedef int __attribute__ ((bitwidth(1543))) int1543;\ntypedef int __attribute__ ((bitwidth(1544))) int1544;\ntypedef int __attribute__ ((bitwidth(1545))) int1545;\ntypedef int __attribute__ ((bitwidth(1546))) int1546;\ntypedef int __attribute__ ((bitwidth(1547))) int1547;\ntypedef int __attribute__ ((bitwidth(1548))) int1548;\ntypedef int __attribute__ ((bitwidth(1549))) int1549;\ntypedef int __attribute__ ((bitwidth(1550))) int1550;\ntypedef int __attribute__ ((bitwidth(1551))) int1551;\ntypedef int __attribute__ ((bitwidth(1552))) int1552;\ntypedef int __attribute__ ((bitwidth(1553))) int1553;\ntypedef int __attribute__ ((bitwidth(1554))) int1554;\ntypedef int __attribute__ ((bitwidth(1555))) int1555;\ntypedef int __attribute__ ((bitwidth(1556))) int1556;\ntypedef int __attribute__ ((bitwidth(1557))) int1557;\ntypedef int __attribute__ ((bitwidth(1558))) int1558;\ntypedef int __attribute__ ((bitwidth(1559))) int1559;\ntypedef int __attribute__ ((bitwidth(1560))) int1560;\ntypedef int __attribute__ ((bitwidth(1561))) int1561;\ntypedef int __attribute__ ((bitwidth(1562))) int1562;\ntypedef int __attribute__ ((bitwidth(1563))) int1563;\ntypedef int __attribute__ ((bitwidth(1564))) int1564;\ntypedef int __attribute__ ((bitwidth(1565))) int1565;\ntypedef int __attribute__ ((bitwidth(1566))) int1566;\ntypedef int __attribute__ ((bitwidth(1567))) int1567;\ntypedef int __attribute__ ((bitwidth(1568))) int1568;\ntypedef int __attribute__ ((bitwidth(1569))) int1569;\ntypedef int __attribute__ ((bitwidth(1570))) int1570;\ntypedef int __attribute__ ((bitwidth(1571))) int1571;\ntypedef int __attribute__ ((bitwidth(1572))) int1572;\ntypedef int __attribute__ ((bitwidth(1573))) int1573;\ntypedef int __attribute__ ((bitwidth(1574))) int1574;\ntypedef int __attribute__ ((bitwidth(1575))) int1575;\ntypedef int __attribute__ ((bitwidth(1576))) int1576;\ntypedef int __attribute__ ((bitwidth(1577))) int1577;\ntypedef int __attribute__ ((bitwidth(1578))) int1578;\ntypedef int __attribute__ ((bitwidth(1579))) int1579;\ntypedef int __attribute__ ((bitwidth(1580))) int1580;\ntypedef int __attribute__ ((bitwidth(1581))) int1581;\ntypedef int __attribute__ ((bitwidth(1582))) int1582;\ntypedef int __attribute__ ((bitwidth(1583))) int1583;\ntypedef int __attribute__ ((bitwidth(1584))) int1584;\ntypedef int __attribute__ ((bitwidth(1585))) int1585;\ntypedef int __attribute__ ((bitwidth(1586))) int1586;\ntypedef int __attribute__ ((bitwidth(1587))) int1587;\ntypedef int __attribute__ ((bitwidth(1588))) int1588;\ntypedef int __attribute__ ((bitwidth(1589))) int1589;\ntypedef int __attribute__ ((bitwidth(1590))) int1590;\ntypedef int __attribute__ ((bitwidth(1591))) int1591;\ntypedef int __attribute__ ((bitwidth(1592))) int1592;\ntypedef int __attribute__ ((bitwidth(1593))) int1593;\ntypedef int __attribute__ ((bitwidth(1594))) int1594;\ntypedef int __attribute__ ((bitwidth(1595))) int1595;\ntypedef int __attribute__ ((bitwidth(1596))) int1596;\ntypedef int __attribute__ ((bitwidth(1597))) int1597;\ntypedef int __attribute__ ((bitwidth(1598))) int1598;\ntypedef int __attribute__ ((bitwidth(1599))) int1599;\ntypedef int __attribute__ ((bitwidth(1600))) int1600;\ntypedef int __attribute__ ((bitwidth(1601))) int1601;\ntypedef int __attribute__ ((bitwidth(1602))) int1602;\ntypedef int __attribute__ ((bitwidth(1603))) int1603;\ntypedef int __attribute__ ((bitwidth(1604))) int1604;\ntypedef int __attribute__ ((bitwidth(1605))) int1605;\ntypedef int __attribute__ ((bitwidth(1606))) int1606;\ntypedef int __attribute__ ((bitwidth(1607))) int1607;\ntypedef int __attribute__ ((bitwidth(1608))) int1608;\ntypedef int __attribute__ ((bitwidth(1609))) int1609;\ntypedef int __attribute__ ((bitwidth(1610))) int1610;\ntypedef int __attribute__ ((bitwidth(1611))) int1611;\ntypedef int __attribute__ ((bitwidth(1612))) int1612;\ntypedef int __attribute__ ((bitwidth(1613))) int1613;\ntypedef int __attribute__ ((bitwidth(1614))) int1614;\ntypedef int __attribute__ ((bitwidth(1615))) int1615;\ntypedef int __attribute__ ((bitwidth(1616))) int1616;\ntypedef int __attribute__ ((bitwidth(1617))) int1617;\ntypedef int __attribute__ ((bitwidth(1618))) int1618;\ntypedef int __attribute__ ((bitwidth(1619))) int1619;\ntypedef int __attribute__ ((bitwidth(1620))) int1620;\ntypedef int __attribute__ ((bitwidth(1621))) int1621;\ntypedef int __attribute__ ((bitwidth(1622))) int1622;\ntypedef int __attribute__ ((bitwidth(1623))) int1623;\ntypedef int __attribute__ ((bitwidth(1624))) int1624;\ntypedef int __attribute__ ((bitwidth(1625))) int1625;\ntypedef int __attribute__ ((bitwidth(1626))) int1626;\ntypedef int __attribute__ ((bitwidth(1627))) int1627;\ntypedef int __attribute__ ((bitwidth(1628))) int1628;\ntypedef int __attribute__ ((bitwidth(1629))) int1629;\ntypedef int __attribute__ ((bitwidth(1630))) int1630;\ntypedef int __attribute__ ((bitwidth(1631))) int1631;\ntypedef int __attribute__ ((bitwidth(1632))) int1632;\ntypedef int __attribute__ ((bitwidth(1633))) int1633;\ntypedef int __attribute__ ((bitwidth(1634))) int1634;\ntypedef int __attribute__ ((bitwidth(1635))) int1635;\ntypedef int __attribute__ ((bitwidth(1636))) int1636;\ntypedef int __attribute__ ((bitwidth(1637))) int1637;\ntypedef int __attribute__ ((bitwidth(1638))) int1638;\ntypedef int __attribute__ ((bitwidth(1639))) int1639;\ntypedef int __attribute__ ((bitwidth(1640))) int1640;\ntypedef int __attribute__ ((bitwidth(1641))) int1641;\ntypedef int __attribute__ ((bitwidth(1642))) int1642;\ntypedef int __attribute__ ((bitwidth(1643))) int1643;\ntypedef int __attribute__ ((bitwidth(1644))) int1644;\ntypedef int __attribute__ ((bitwidth(1645))) int1645;\ntypedef int __attribute__ ((bitwidth(1646))) int1646;\ntypedef int __attribute__ ((bitwidth(1647))) int1647;\ntypedef int __attribute__ ((bitwidth(1648))) int1648;\ntypedef int __attribute__ ((bitwidth(1649))) int1649;\ntypedef int __attribute__ ((bitwidth(1650))) int1650;\ntypedef int __attribute__ ((bitwidth(1651))) int1651;\ntypedef int __attribute__ ((bitwidth(1652))) int1652;\ntypedef int __attribute__ ((bitwidth(1653))) int1653;\ntypedef int __attribute__ ((bitwidth(1654))) int1654;\ntypedef int __attribute__ ((bitwidth(1655))) int1655;\ntypedef int __attribute__ ((bitwidth(1656))) int1656;\ntypedef int __attribute__ ((bitwidth(1657))) int1657;\ntypedef int __attribute__ ((bitwidth(1658))) int1658;\ntypedef int __attribute__ ((bitwidth(1659))) int1659;\ntypedef int __attribute__ ((bitwidth(1660))) int1660;\ntypedef int __attribute__ ((bitwidth(1661))) int1661;\ntypedef int __attribute__ ((bitwidth(1662))) int1662;\ntypedef int __attribute__ ((bitwidth(1663))) int1663;\ntypedef int __attribute__ ((bitwidth(1664))) int1664;\ntypedef int __attribute__ ((bitwidth(1665))) int1665;\ntypedef int __attribute__ ((bitwidth(1666))) int1666;\ntypedef int __attribute__ ((bitwidth(1667))) int1667;\ntypedef int __attribute__ ((bitwidth(1668))) int1668;\ntypedef int __attribute__ ((bitwidth(1669))) int1669;\ntypedef int __attribute__ ((bitwidth(1670))) int1670;\ntypedef int __attribute__ ((bitwidth(1671))) int1671;\ntypedef int __attribute__ ((bitwidth(1672))) int1672;\ntypedef int __attribute__ ((bitwidth(1673))) int1673;\ntypedef int __attribute__ ((bitwidth(1674))) int1674;\ntypedef int __attribute__ ((bitwidth(1675))) int1675;\ntypedef int __attribute__ ((bitwidth(1676))) int1676;\ntypedef int __attribute__ ((bitwidth(1677))) int1677;\ntypedef int __attribute__ ((bitwidth(1678))) int1678;\ntypedef int __attribute__ ((bitwidth(1679))) int1679;\ntypedef int __attribute__ ((bitwidth(1680))) int1680;\ntypedef int __attribute__ ((bitwidth(1681))) int1681;\ntypedef int __attribute__ ((bitwidth(1682))) int1682;\ntypedef int __attribute__ ((bitwidth(1683))) int1683;\ntypedef int __attribute__ ((bitwidth(1684))) int1684;\ntypedef int __attribute__ ((bitwidth(1685))) int1685;\ntypedef int __attribute__ ((bitwidth(1686))) int1686;\ntypedef int __attribute__ ((bitwidth(1687))) int1687;\ntypedef int __attribute__ ((bitwidth(1688))) int1688;\ntypedef int __attribute__ ((bitwidth(1689))) int1689;\ntypedef int __attribute__ ((bitwidth(1690))) int1690;\ntypedef int __attribute__ ((bitwidth(1691))) int1691;\ntypedef int __attribute__ ((bitwidth(1692))) int1692;\ntypedef int __attribute__ ((bitwidth(1693))) int1693;\ntypedef int __attribute__ ((bitwidth(1694))) int1694;\ntypedef int __attribute__ ((bitwidth(1695))) int1695;\ntypedef int __attribute__ ((bitwidth(1696))) int1696;\ntypedef int __attribute__ ((bitwidth(1697))) int1697;\ntypedef int __attribute__ ((bitwidth(1698))) int1698;\ntypedef int __attribute__ ((bitwidth(1699))) int1699;\ntypedef int __attribute__ ((bitwidth(1700))) int1700;\ntypedef int __attribute__ ((bitwidth(1701))) int1701;\ntypedef int __attribute__ ((bitwidth(1702))) int1702;\ntypedef int __attribute__ ((bitwidth(1703))) int1703;\ntypedef int __attribute__ ((bitwidth(1704))) int1704;\ntypedef int __attribute__ ((bitwidth(1705))) int1705;\ntypedef int __attribute__ ((bitwidth(1706))) int1706;\ntypedef int __attribute__ ((bitwidth(1707))) int1707;\ntypedef int __attribute__ ((bitwidth(1708))) int1708;\ntypedef int __attribute__ ((bitwidth(1709))) int1709;\ntypedef int __attribute__ ((bitwidth(1710))) int1710;\ntypedef int __attribute__ ((bitwidth(1711))) int1711;\ntypedef int __attribute__ ((bitwidth(1712))) int1712;\ntypedef int __attribute__ ((bitwidth(1713))) int1713;\ntypedef int __attribute__ ((bitwidth(1714))) int1714;\ntypedef int __attribute__ ((bitwidth(1715))) int1715;\ntypedef int __attribute__ ((bitwidth(1716))) int1716;\ntypedef int __attribute__ ((bitwidth(1717))) int1717;\ntypedef int __attribute__ ((bitwidth(1718))) int1718;\ntypedef int __attribute__ ((bitwidth(1719))) int1719;\ntypedef int __attribute__ ((bitwidth(1720))) int1720;\ntypedef int __attribute__ ((bitwidth(1721))) int1721;\ntypedef int __attribute__ ((bitwidth(1722))) int1722;\ntypedef int __attribute__ ((bitwidth(1723))) int1723;\ntypedef int __attribute__ ((bitwidth(1724))) int1724;\ntypedef int __attribute__ ((bitwidth(1725))) int1725;\ntypedef int __attribute__ ((bitwidth(1726))) int1726;\ntypedef int __attribute__ ((bitwidth(1727))) int1727;\ntypedef int __attribute__ ((bitwidth(1728))) int1728;\ntypedef int __attribute__ ((bitwidth(1729))) int1729;\ntypedef int __attribute__ ((bitwidth(1730))) int1730;\ntypedef int __attribute__ ((bitwidth(1731))) int1731;\ntypedef int __attribute__ ((bitwidth(1732))) int1732;\ntypedef int __attribute__ ((bitwidth(1733))) int1733;\ntypedef int __attribute__ ((bitwidth(1734))) int1734;\ntypedef int __attribute__ ((bitwidth(1735))) int1735;\ntypedef int __attribute__ ((bitwidth(1736))) int1736;\ntypedef int __attribute__ ((bitwidth(1737))) int1737;\ntypedef int __attribute__ ((bitwidth(1738))) int1738;\ntypedef int __attribute__ ((bitwidth(1739))) int1739;\ntypedef int __attribute__ ((bitwidth(1740))) int1740;\ntypedef int __attribute__ ((bitwidth(1741))) int1741;\ntypedef int __attribute__ ((bitwidth(1742))) int1742;\ntypedef int __attribute__ ((bitwidth(1743))) int1743;\ntypedef int __attribute__ ((bitwidth(1744))) int1744;\ntypedef int __attribute__ ((bitwidth(1745))) int1745;\ntypedef int __attribute__ ((bitwidth(1746))) int1746;\ntypedef int __attribute__ ((bitwidth(1747))) int1747;\ntypedef int __attribute__ ((bitwidth(1748))) int1748;\ntypedef int __attribute__ ((bitwidth(1749))) int1749;\ntypedef int __attribute__ ((bitwidth(1750))) int1750;\ntypedef int __attribute__ ((bitwidth(1751))) int1751;\ntypedef int __attribute__ ((bitwidth(1752))) int1752;\ntypedef int __attribute__ ((bitwidth(1753))) int1753;\ntypedef int __attribute__ ((bitwidth(1754))) int1754;\ntypedef int __attribute__ ((bitwidth(1755))) int1755;\ntypedef int __attribute__ ((bitwidth(1756))) int1756;\ntypedef int __attribute__ ((bitwidth(1757))) int1757;\ntypedef int __attribute__ ((bitwidth(1758))) int1758;\ntypedef int __attribute__ ((bitwidth(1759))) int1759;\ntypedef int __attribute__ ((bitwidth(1760))) int1760;\ntypedef int __attribute__ ((bitwidth(1761))) int1761;\ntypedef int __attribute__ ((bitwidth(1762))) int1762;\ntypedef int __attribute__ ((bitwidth(1763))) int1763;\ntypedef int __attribute__ ((bitwidth(1764))) int1764;\ntypedef int __attribute__ ((bitwidth(1765))) int1765;\ntypedef int __attribute__ ((bitwidth(1766))) int1766;\ntypedef int __attribute__ ((bitwidth(1767))) int1767;\ntypedef int __attribute__ ((bitwidth(1768))) int1768;\ntypedef int __attribute__ ((bitwidth(1769))) int1769;\ntypedef int __attribute__ ((bitwidth(1770))) int1770;\ntypedef int __attribute__ ((bitwidth(1771))) int1771;\ntypedef int __attribute__ ((bitwidth(1772))) int1772;\ntypedef int __attribute__ ((bitwidth(1773))) int1773;\ntypedef int __attribute__ ((bitwidth(1774))) int1774;\ntypedef int __attribute__ ((bitwidth(1775))) int1775;\ntypedef int __attribute__ ((bitwidth(1776))) int1776;\ntypedef int __attribute__ ((bitwidth(1777))) int1777;\ntypedef int __attribute__ ((bitwidth(1778))) int1778;\ntypedef int __attribute__ ((bitwidth(1779))) int1779;\ntypedef int __attribute__ ((bitwidth(1780))) int1780;\ntypedef int __attribute__ ((bitwidth(1781))) int1781;\ntypedef int __attribute__ ((bitwidth(1782))) int1782;\ntypedef int __attribute__ ((bitwidth(1783))) int1783;\ntypedef int __attribute__ ((bitwidth(1784))) int1784;\ntypedef int __attribute__ ((bitwidth(1785))) int1785;\ntypedef int __attribute__ ((bitwidth(1786))) int1786;\ntypedef int __attribute__ ((bitwidth(1787))) int1787;\ntypedef int __attribute__ ((bitwidth(1788))) int1788;\ntypedef int __attribute__ ((bitwidth(1789))) int1789;\ntypedef int __attribute__ ((bitwidth(1790))) int1790;\ntypedef int __attribute__ ((bitwidth(1791))) int1791;\ntypedef int __attribute__ ((bitwidth(1792))) int1792;\ntypedef int __attribute__ ((bitwidth(1793))) int1793;\ntypedef int __attribute__ ((bitwidth(1794))) int1794;\ntypedef int __attribute__ ((bitwidth(1795))) int1795;\ntypedef int __attribute__ ((bitwidth(1796))) int1796;\ntypedef int __attribute__ ((bitwidth(1797))) int1797;\ntypedef int __attribute__ ((bitwidth(1798))) int1798;\ntypedef int __attribute__ ((bitwidth(1799))) int1799;\ntypedef int __attribute__ ((bitwidth(1800))) int1800;\ntypedef int __attribute__ ((bitwidth(1801))) int1801;\ntypedef int __attribute__ ((bitwidth(1802))) int1802;\ntypedef int __attribute__ ((bitwidth(1803))) int1803;\ntypedef int __attribute__ ((bitwidth(1804))) int1804;\ntypedef int __attribute__ ((bitwidth(1805))) int1805;\ntypedef int __attribute__ ((bitwidth(1806))) int1806;\ntypedef int __attribute__ ((bitwidth(1807))) int1807;\ntypedef int __attribute__ ((bitwidth(1808))) int1808;\ntypedef int __attribute__ ((bitwidth(1809))) int1809;\ntypedef int __attribute__ ((bitwidth(1810))) int1810;\ntypedef int __attribute__ ((bitwidth(1811))) int1811;\ntypedef int __attribute__ ((bitwidth(1812))) int1812;\ntypedef int __attribute__ ((bitwidth(1813))) int1813;\ntypedef int __attribute__ ((bitwidth(1814))) int1814;\ntypedef int __attribute__ ((bitwidth(1815))) int1815;\ntypedef int __attribute__ ((bitwidth(1816))) int1816;\ntypedef int __attribute__ ((bitwidth(1817))) int1817;\ntypedef int __attribute__ ((bitwidth(1818))) int1818;\ntypedef int __attribute__ ((bitwidth(1819))) int1819;\ntypedef int __attribute__ ((bitwidth(1820))) int1820;\ntypedef int __attribute__ ((bitwidth(1821))) int1821;\ntypedef int __attribute__ ((bitwidth(1822))) int1822;\ntypedef int __attribute__ ((bitwidth(1823))) int1823;\ntypedef int __attribute__ ((bitwidth(1824))) int1824;\ntypedef int __attribute__ ((bitwidth(1825))) int1825;\ntypedef int __attribute__ ((bitwidth(1826))) int1826;\ntypedef int __attribute__ ((bitwidth(1827))) int1827;\ntypedef int __attribute__ ((bitwidth(1828))) int1828;\ntypedef int __attribute__ ((bitwidth(1829))) int1829;\ntypedef int __attribute__ ((bitwidth(1830))) int1830;\ntypedef int __attribute__ ((bitwidth(1831))) int1831;\ntypedef int __attribute__ ((bitwidth(1832))) int1832;\ntypedef int __attribute__ ((bitwidth(1833))) int1833;\ntypedef int __attribute__ ((bitwidth(1834))) int1834;\ntypedef int __attribute__ ((bitwidth(1835))) int1835;\ntypedef int __attribute__ ((bitwidth(1836))) int1836;\ntypedef int __attribute__ ((bitwidth(1837))) int1837;\ntypedef int __attribute__ ((bitwidth(1838))) int1838;\ntypedef int __attribute__ ((bitwidth(1839))) int1839;\ntypedef int __attribute__ ((bitwidth(1840))) int1840;\ntypedef int __attribute__ ((bitwidth(1841))) int1841;\ntypedef int __attribute__ ((bitwidth(1842))) int1842;\ntypedef int __attribute__ ((bitwidth(1843))) int1843;\ntypedef int __attribute__ ((bitwidth(1844))) int1844;\ntypedef int __attribute__ ((bitwidth(1845))) int1845;\ntypedef int __attribute__ ((bitwidth(1846))) int1846;\ntypedef int __attribute__ ((bitwidth(1847))) int1847;\ntypedef int __attribute__ ((bitwidth(1848))) int1848;\ntypedef int __attribute__ ((bitwidth(1849))) int1849;\ntypedef int __attribute__ ((bitwidth(1850))) int1850;\ntypedef int __attribute__ ((bitwidth(1851))) int1851;\ntypedef int __attribute__ ((bitwidth(1852))) int1852;\ntypedef int __attribute__ ((bitwidth(1853))) int1853;\ntypedef int __attribute__ ((bitwidth(1854))) int1854;\ntypedef int __attribute__ ((bitwidth(1855))) int1855;\ntypedef int __attribute__ ((bitwidth(1856))) int1856;\ntypedef int __attribute__ ((bitwidth(1857))) int1857;\ntypedef int __attribute__ ((bitwidth(1858))) int1858;\ntypedef int __attribute__ ((bitwidth(1859))) int1859;\ntypedef int __attribute__ ((bitwidth(1860))) int1860;\ntypedef int __attribute__ ((bitwidth(1861))) int1861;\ntypedef int __attribute__ ((bitwidth(1862))) int1862;\ntypedef int __attribute__ ((bitwidth(1863))) int1863;\ntypedef int __attribute__ ((bitwidth(1864))) int1864;\ntypedef int __attribute__ ((bitwidth(1865))) int1865;\ntypedef int __attribute__ ((bitwidth(1866))) int1866;\ntypedef int __attribute__ ((bitwidth(1867))) int1867;\ntypedef int __attribute__ ((bitwidth(1868))) int1868;\ntypedef int __attribute__ ((bitwidth(1869))) int1869;\ntypedef int __attribute__ ((bitwidth(1870))) int1870;\ntypedef int __attribute__ ((bitwidth(1871))) int1871;\ntypedef int __attribute__ ((bitwidth(1872))) int1872;\ntypedef int __attribute__ ((bitwidth(1873))) int1873;\ntypedef int __attribute__ ((bitwidth(1874))) int1874;\ntypedef int __attribute__ ((bitwidth(1875))) int1875;\ntypedef int __attribute__ ((bitwidth(1876))) int1876;\ntypedef int __attribute__ ((bitwidth(1877))) int1877;\ntypedef int __attribute__ ((bitwidth(1878))) int1878;\ntypedef int __attribute__ ((bitwidth(1879))) int1879;\ntypedef int __attribute__ ((bitwidth(1880))) int1880;\ntypedef int __attribute__ ((bitwidth(1881))) int1881;\ntypedef int __attribute__ ((bitwidth(1882))) int1882;\ntypedef int __attribute__ ((bitwidth(1883))) int1883;\ntypedef int __attribute__ ((bitwidth(1884))) int1884;\ntypedef int __attribute__ ((bitwidth(1885))) int1885;\ntypedef int __attribute__ ((bitwidth(1886))) int1886;\ntypedef int __attribute__ ((bitwidth(1887))) int1887;\ntypedef int __attribute__ ((bitwidth(1888))) int1888;\ntypedef int __attribute__ ((bitwidth(1889))) int1889;\ntypedef int __attribute__ ((bitwidth(1890))) int1890;\ntypedef int __attribute__ ((bitwidth(1891))) int1891;\ntypedef int __attribute__ ((bitwidth(1892))) int1892;\ntypedef int __attribute__ ((bitwidth(1893))) int1893;\ntypedef int __attribute__ ((bitwidth(1894))) int1894;\ntypedef int __attribute__ ((bitwidth(1895))) int1895;\ntypedef int __attribute__ ((bitwidth(1896))) int1896;\ntypedef int __attribute__ ((bitwidth(1897))) int1897;\ntypedef int __attribute__ ((bitwidth(1898))) int1898;\ntypedef int __attribute__ ((bitwidth(1899))) int1899;\ntypedef int __attribute__ ((bitwidth(1900))) int1900;\ntypedef int __attribute__ ((bitwidth(1901))) int1901;\ntypedef int __attribute__ ((bitwidth(1902))) int1902;\ntypedef int __attribute__ ((bitwidth(1903))) int1903;\ntypedef int __attribute__ ((bitwidth(1904))) int1904;\ntypedef int __attribute__ ((bitwidth(1905))) int1905;\ntypedef int __attribute__ ((bitwidth(1906))) int1906;\ntypedef int __attribute__ ((bitwidth(1907))) int1907;\ntypedef int __attribute__ ((bitwidth(1908))) int1908;\ntypedef int __attribute__ ((bitwidth(1909))) int1909;\ntypedef int __attribute__ ((bitwidth(1910))) int1910;\ntypedef int __attribute__ ((bitwidth(1911))) int1911;\ntypedef int __attribute__ ((bitwidth(1912))) int1912;\ntypedef int __attribute__ ((bitwidth(1913))) int1913;\ntypedef int __attribute__ ((bitwidth(1914))) int1914;\ntypedef int __attribute__ ((bitwidth(1915))) int1915;\ntypedef int __attribute__ ((bitwidth(1916))) int1916;\ntypedef int __attribute__ ((bitwidth(1917))) int1917;\ntypedef int __attribute__ ((bitwidth(1918))) int1918;\ntypedef int __attribute__ ((bitwidth(1919))) int1919;\ntypedef int __attribute__ ((bitwidth(1920))) int1920;\ntypedef int __attribute__ ((bitwidth(1921))) int1921;\ntypedef int __attribute__ ((bitwidth(1922))) int1922;\ntypedef int __attribute__ ((bitwidth(1923))) int1923;\ntypedef int __attribute__ ((bitwidth(1924))) int1924;\ntypedef int __attribute__ ((bitwidth(1925))) int1925;\ntypedef int __attribute__ ((bitwidth(1926))) int1926;\ntypedef int __attribute__ ((bitwidth(1927))) int1927;\ntypedef int __attribute__ ((bitwidth(1928))) int1928;\ntypedef int __attribute__ ((bitwidth(1929))) int1929;\ntypedef int __attribute__ ((bitwidth(1930))) int1930;\ntypedef int __attribute__ ((bitwidth(1931))) int1931;\ntypedef int __attribute__ ((bitwidth(1932))) int1932;\ntypedef int __attribute__ ((bitwidth(1933))) int1933;\ntypedef int __attribute__ ((bitwidth(1934))) int1934;\ntypedef int __attribute__ ((bitwidth(1935))) int1935;\ntypedef int __attribute__ ((bitwidth(1936))) int1936;\ntypedef int __attribute__ ((bitwidth(1937))) int1937;\ntypedef int __attribute__ ((bitwidth(1938))) int1938;\ntypedef int __attribute__ ((bitwidth(1939))) int1939;\ntypedef int __attribute__ ((bitwidth(1940))) int1940;\ntypedef int __attribute__ ((bitwidth(1941))) int1941;\ntypedef int __attribute__ ((bitwidth(1942))) int1942;\ntypedef int __attribute__ ((bitwidth(1943))) int1943;\ntypedef int __attribute__ ((bitwidth(1944))) int1944;\ntypedef int __attribute__ ((bitwidth(1945))) int1945;\ntypedef int __attribute__ ((bitwidth(1946))) int1946;\ntypedef int __attribute__ ((bitwidth(1947))) int1947;\ntypedef int __attribute__ ((bitwidth(1948))) int1948;\ntypedef int __attribute__ ((bitwidth(1949))) int1949;\ntypedef int __attribute__ ((bitwidth(1950))) int1950;\ntypedef int __attribute__ ((bitwidth(1951))) int1951;\ntypedef int __attribute__ ((bitwidth(1952))) int1952;\ntypedef int __attribute__ ((bitwidth(1953))) int1953;\ntypedef int __attribute__ ((bitwidth(1954))) int1954;\ntypedef int __attribute__ ((bitwidth(1955))) int1955;\ntypedef int __attribute__ ((bitwidth(1956))) int1956;\ntypedef int __attribute__ ((bitwidth(1957))) int1957;\ntypedef int __attribute__ ((bitwidth(1958))) int1958;\ntypedef int __attribute__ ((bitwidth(1959))) int1959;\ntypedef int __attribute__ ((bitwidth(1960))) int1960;\ntypedef int __attribute__ ((bitwidth(1961))) int1961;\ntypedef int __attribute__ ((bitwidth(1962))) int1962;\ntypedef int __attribute__ ((bitwidth(1963))) int1963;\ntypedef int __attribute__ ((bitwidth(1964))) int1964;\ntypedef int __attribute__ ((bitwidth(1965))) int1965;\ntypedef int __attribute__ ((bitwidth(1966))) int1966;\ntypedef int __attribute__ ((bitwidth(1967))) int1967;\ntypedef int __attribute__ ((bitwidth(1968))) int1968;\ntypedef int __attribute__ ((bitwidth(1969))) int1969;\ntypedef int __attribute__ ((bitwidth(1970))) int1970;\ntypedef int __attribute__ ((bitwidth(1971))) int1971;\ntypedef int __attribute__ ((bitwidth(1972))) int1972;\ntypedef int __attribute__ ((bitwidth(1973))) int1973;\ntypedef int __attribute__ ((bitwidth(1974))) int1974;\ntypedef int __attribute__ ((bitwidth(1975))) int1975;\ntypedef int __attribute__ ((bitwidth(1976))) int1976;\ntypedef int __attribute__ ((bitwidth(1977))) int1977;\ntypedef int __attribute__ ((bitwidth(1978))) int1978;\ntypedef int __attribute__ ((bitwidth(1979))) int1979;\ntypedef int __attribute__ ((bitwidth(1980))) int1980;\ntypedef int __attribute__ ((bitwidth(1981))) int1981;\ntypedef int __attribute__ ((bitwidth(1982))) int1982;\ntypedef int __attribute__ ((bitwidth(1983))) int1983;\ntypedef int __attribute__ ((bitwidth(1984))) int1984;\ntypedef int __attribute__ ((bitwidth(1985))) int1985;\ntypedef int __attribute__ ((bitwidth(1986))) int1986;\ntypedef int __attribute__ ((bitwidth(1987))) int1987;\ntypedef int __attribute__ ((bitwidth(1988))) int1988;\ntypedef int __attribute__ ((bitwidth(1989))) int1989;\ntypedef int __attribute__ ((bitwidth(1990))) int1990;\ntypedef int __attribute__ ((bitwidth(1991))) int1991;\ntypedef int __attribute__ ((bitwidth(1992))) int1992;\ntypedef int __attribute__ ((bitwidth(1993))) int1993;\ntypedef int __attribute__ ((bitwidth(1994))) int1994;\ntypedef int __attribute__ ((bitwidth(1995))) int1995;\ntypedef int __attribute__ ((bitwidth(1996))) int1996;\ntypedef int __attribute__ ((bitwidth(1997))) int1997;\ntypedef int __attribute__ ((bitwidth(1998))) int1998;\ntypedef int __attribute__ ((bitwidth(1999))) int1999;\ntypedef int __attribute__ ((bitwidth(2000))) int2000;\ntypedef int __attribute__ ((bitwidth(2001))) int2001;\ntypedef int __attribute__ ((bitwidth(2002))) int2002;\ntypedef int __attribute__ ((bitwidth(2003))) int2003;\ntypedef int __attribute__ ((bitwidth(2004))) int2004;\ntypedef int __attribute__ ((bitwidth(2005))) int2005;\ntypedef int __attribute__ ((bitwidth(2006))) int2006;\ntypedef int __attribute__ ((bitwidth(2007))) int2007;\ntypedef int __attribute__ ((bitwidth(2008))) int2008;\ntypedef int __attribute__ ((bitwidth(2009))) int2009;\ntypedef int __attribute__ ((bitwidth(2010))) int2010;\ntypedef int __attribute__ ((bitwidth(2011))) int2011;\ntypedef int __attribute__ ((bitwidth(2012))) int2012;\ntypedef int __attribute__ ((bitwidth(2013))) int2013;\ntypedef int __attribute__ ((bitwidth(2014))) int2014;\ntypedef int __attribute__ ((bitwidth(2015))) int2015;\ntypedef int __attribute__ ((bitwidth(2016))) int2016;\ntypedef int __attribute__ ((bitwidth(2017))) int2017;\ntypedef int __attribute__ ((bitwidth(2018))) int2018;\ntypedef int __attribute__ ((bitwidth(2019))) int2019;\ntypedef int __attribute__ ((bitwidth(2020))) int2020;\ntypedef int __attribute__ ((bitwidth(2021))) int2021;\ntypedef int __attribute__ ((bitwidth(2022))) int2022;\ntypedef int __attribute__ ((bitwidth(2023))) int2023;\ntypedef int __attribute__ ((bitwidth(2024))) int2024;\ntypedef int __attribute__ ((bitwidth(2025))) int2025;\ntypedef int __attribute__ ((bitwidth(2026))) int2026;\ntypedef int __attribute__ ((bitwidth(2027))) int2027;\ntypedef int __attribute__ ((bitwidth(2028))) int2028;\ntypedef int __attribute__ ((bitwidth(2029))) int2029;\ntypedef int __attribute__ ((bitwidth(2030))) int2030;\ntypedef int __attribute__ ((bitwidth(2031))) int2031;\ntypedef int __attribute__ ((bitwidth(2032))) int2032;\ntypedef int __attribute__ ((bitwidth(2033))) int2033;\ntypedef int __attribute__ ((bitwidth(2034))) int2034;\ntypedef int __attribute__ ((bitwidth(2035))) int2035;\ntypedef int __attribute__ ((bitwidth(2036))) int2036;\ntypedef int __attribute__ ((bitwidth(2037))) int2037;\ntypedef int __attribute__ ((bitwidth(2038))) int2038;\ntypedef int __attribute__ ((bitwidth(2039))) int2039;\ntypedef int __attribute__ ((bitwidth(2040))) int2040;\ntypedef int __attribute__ ((bitwidth(2041))) int2041;\ntypedef int __attribute__ ((bitwidth(2042))) int2042;\ntypedef int __attribute__ ((bitwidth(2043))) int2043;\ntypedef int __attribute__ ((bitwidth(2044))) int2044;\ntypedef int __attribute__ ((bitwidth(2045))) int2045;\ntypedef int __attribute__ ((bitwidth(2046))) int2046;\ntypedef int __attribute__ ((bitwidth(2047))) int2047;\ntypedef int __attribute__ ((bitwidth(2048))) int2048;\n#99 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_dt.h\" 2\n#108 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_dt.h\"\n#1 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_dt.def\" 1\n\n\ntypedef unsigned int __attribute__ ((bitwidth(1))) uint1;\ntypedef unsigned int __attribute__ ((bitwidth(2))) uint2;\ntypedef unsigned int __attribute__ ((bitwidth(3))) uint3;\ntypedef unsigned int __attribute__ ((bitwidth(4))) uint4;\ntypedef unsigned int __attribute__ ((bitwidth(5))) uint5;\ntypedef unsigned int __attribute__ ((bitwidth(6))) uint6;\ntypedef unsigned int __attribute__ ((bitwidth(7))) uint7;\ntypedef unsigned int __attribute__ ((bitwidth(8))) uint8;\ntypedef unsigned int __attribute__ ((bitwidth(9))) uint9;\ntypedef unsigned int __attribute__ ((bitwidth(10))) uint10;\ntypedef unsigned int __attribute__ ((bitwidth(11))) uint11;\ntypedef unsigned int __attribute__ ((bitwidth(12))) uint12;\ntypedef unsigned int __attribute__ ((bitwidth(13))) uint13;\ntypedef unsigned int __attribute__ ((bitwidth(14))) uint14;\ntypedef unsigned int __attribute__ ((bitwidth(15))) uint15;\ntypedef unsigned int __attribute__ ((bitwidth(16))) uint16;\ntypedef unsigned int __attribute__ ((bitwidth(17))) uint17;\ntypedef unsigned int __attribute__ ((bitwidth(18))) uint18;\ntypedef unsigned int __attribute__ ((bitwidth(19))) uint19;\ntypedef unsigned int __attribute__ ((bitwidth(20))) uint20;\ntypedef unsigned int __attribute__ ((bitwidth(21))) uint21;\ntypedef unsigned int __attribute__ ((bitwidth(22))) uint22;\ntypedef unsigned int __attribute__ ((bitwidth(23))) uint23;\ntypedef unsigned int __attribute__ ((bitwidth(24))) uint24;\ntypedef unsigned int __attribute__ ((bitwidth(25))) uint25;\ntypedef unsigned int __attribute__ ((bitwidth(26))) uint26;\ntypedef unsigned int __attribute__ ((bitwidth(27))) uint27;\ntypedef unsigned int __attribute__ ((bitwidth(28))) uint28;\ntypedef unsigned int __attribute__ ((bitwidth(29))) uint29;\ntypedef unsigned int __attribute__ ((bitwidth(30))) uint30;\ntypedef unsigned int __attribute__ ((bitwidth(31))) uint31;\ntypedef unsigned int __attribute__ ((bitwidth(32))) uint32;\ntypedef unsigned int __attribute__ ((bitwidth(33))) uint33;\ntypedef unsigned int __attribute__ ((bitwidth(34))) uint34;\ntypedef unsigned int __attribute__ ((bitwidth(35))) uint35;\ntypedef unsigned int __attribute__ ((bitwidth(36))) uint36;\ntypedef unsigned int __attribute__ ((bitwidth(37))) uint37;\ntypedef unsigned int __attribute__ ((bitwidth(38))) uint38;\ntypedef unsigned int __attribute__ ((bitwidth(39))) uint39;\ntypedef unsigned int __attribute__ ((bitwidth(40))) uint40;\ntypedef unsigned int __attribute__ ((bitwidth(41))) uint41;\ntypedef unsigned int __attribute__ ((bitwidth(42))) uint42;\ntypedef unsigned int __attribute__ ((bitwidth(43))) uint43;\ntypedef unsigned int __attribute__ ((bitwidth(44))) uint44;\ntypedef unsigned int __attribute__ ((bitwidth(45))) uint45;\ntypedef unsigned int __attribute__ ((bitwidth(46))) uint46;\ntypedef unsigned int __attribute__ ((bitwidth(47))) uint47;\ntypedef unsigned int __attribute__ ((bitwidth(48))) uint48;\ntypedef unsigned int __attribute__ ((bitwidth(49))) uint49;\ntypedef unsigned int __attribute__ ((bitwidth(50))) uint50;\ntypedef unsigned int __attribute__ ((bitwidth(51))) uint51;\ntypedef unsigned int __attribute__ ((bitwidth(52))) uint52;\ntypedef unsigned int __attribute__ ((bitwidth(53))) uint53;\ntypedef unsigned int __attribute__ ((bitwidth(54))) uint54;\ntypedef unsigned int __attribute__ ((bitwidth(55))) uint55;\ntypedef unsigned int __attribute__ ((bitwidth(56))) uint56;\ntypedef unsigned int __attribute__ ((bitwidth(57))) uint57;\ntypedef unsigned int __attribute__ ((bitwidth(58))) uint58;\ntypedef unsigned int __attribute__ ((bitwidth(59))) uint59;\ntypedef unsigned int __attribute__ ((bitwidth(60))) uint60;\ntypedef unsigned int __attribute__ ((bitwidth(61))) uint61;\ntypedef unsigned int __attribute__ ((bitwidth(62))) uint62;\ntypedef unsigned int __attribute__ ((bitwidth(63))) uint63;\n\n\n\n\n\n\n\ntypedef unsigned int __attribute__ ((bitwidth(65))) uint65;\ntypedef unsigned int __attribute__ ((bitwidth(66))) uint66;\ntypedef unsigned int __attribute__ ((bitwidth(67))) uint67;\ntypedef unsigned int __attribute__ ((bitwidth(68))) uint68;\ntypedef unsigned int __attribute__ ((bitwidth(69))) uint69;\ntypedef unsigned int __attribute__ ((bitwidth(70))) uint70;\ntypedef unsigned int __attribute__ ((bitwidth(71))) uint71;\ntypedef unsigned int __attribute__ ((bitwidth(72))) uint72;\ntypedef unsigned int __attribute__ ((bitwidth(73))) uint73;\ntypedef unsigned int __attribute__ ((bitwidth(74))) uint74;\ntypedef unsigned int __attribute__ ((bitwidth(75))) uint75;\ntypedef unsigned int __attribute__ ((bitwidth(76))) uint76;\ntypedef unsigned int __attribute__ ((bitwidth(77))) uint77;\ntypedef unsigned int __attribute__ ((bitwidth(78))) uint78;\ntypedef unsigned int __attribute__ ((bitwidth(79))) uint79;\ntypedef unsigned int __attribute__ ((bitwidth(80))) uint80;\ntypedef unsigned int __attribute__ ((bitwidth(81))) uint81;\ntypedef unsigned int __attribute__ ((bitwidth(82))) uint82;\ntypedef unsigned int __attribute__ ((bitwidth(83))) uint83;\ntypedef unsigned int __attribute__ ((bitwidth(84))) uint84;\ntypedef unsigned int __attribute__ ((bitwidth(85))) uint85;\ntypedef unsigned int __attribute__ ((bitwidth(86))) uint86;\ntypedef unsigned int __attribute__ ((bitwidth(87))) uint87;\ntypedef unsigned int __attribute__ ((bitwidth(88))) uint88;\ntypedef unsigned int __attribute__ ((bitwidth(89))) uint89;\ntypedef unsigned int __attribute__ ((bitwidth(90))) uint90;\ntypedef unsigned int __attribute__ ((bitwidth(91))) uint91;\ntypedef unsigned int __attribute__ ((bitwidth(92))) uint92;\ntypedef unsigned int __attribute__ ((bitwidth(93))) uint93;\ntypedef unsigned int __attribute__ ((bitwidth(94))) uint94;\ntypedef unsigned int __attribute__ ((bitwidth(95))) uint95;\ntypedef unsigned int __attribute__ ((bitwidth(96))) uint96;\ntypedef unsigned int __attribute__ ((bitwidth(97))) uint97;\ntypedef unsigned int __attribute__ ((bitwidth(98))) uint98;\ntypedef unsigned int __attribute__ ((bitwidth(99))) uint99;\ntypedef unsigned int __attribute__ ((bitwidth(100))) uint100;\ntypedef unsigned int __attribute__ ((bitwidth(101))) uint101;\ntypedef unsigned int __attribute__ ((bitwidth(102))) uint102;\ntypedef unsigned int __attribute__ ((bitwidth(103))) uint103;\ntypedef unsigned int __attribute__ ((bitwidth(104))) uint104;\ntypedef unsigned int __attribute__ ((bitwidth(105))) uint105;\ntypedef unsigned int __attribute__ ((bitwidth(106))) uint106;\ntypedef unsigned int __attribute__ ((bitwidth(107))) uint107;\ntypedef unsigned int __attribute__ ((bitwidth(108))) uint108;\ntypedef unsigned int __attribute__ ((bitwidth(109))) uint109;\ntypedef unsigned int __attribute__ ((bitwidth(110))) uint110;\ntypedef unsigned int __attribute__ ((bitwidth(111))) uint111;\ntypedef unsigned int __attribute__ ((bitwidth(112))) uint112;\ntypedef unsigned int __attribute__ ((bitwidth(113))) uint113;\ntypedef unsigned int __attribute__ ((bitwidth(114))) uint114;\ntypedef unsigned int __attribute__ ((bitwidth(115))) uint115;\ntypedef unsigned int __attribute__ ((bitwidth(116))) uint116;\ntypedef unsigned int __attribute__ ((bitwidth(117))) uint117;\ntypedef unsigned int __attribute__ ((bitwidth(118))) uint118;\ntypedef unsigned int __attribute__ ((bitwidth(119))) uint119;\ntypedef unsigned int __attribute__ ((bitwidth(120))) uint120;\ntypedef unsigned int __attribute__ ((bitwidth(121))) uint121;\ntypedef unsigned int __attribute__ ((bitwidth(122))) uint122;\ntypedef unsigned int __attribute__ ((bitwidth(123))) uint123;\ntypedef unsigned int __attribute__ ((bitwidth(124))) uint124;\ntypedef unsigned int __attribute__ ((bitwidth(125))) uint125;\ntypedef unsigned int __attribute__ ((bitwidth(126))) uint126;\ntypedef unsigned int __attribute__ ((bitwidth(127))) uint127;\ntypedef unsigned int __attribute__ ((bitwidth(128))) uint128;\n\n\n\n\n\n\ntypedef unsigned int __attribute__ ((bitwidth(129))) uint129;\ntypedef unsigned int __attribute__ ((bitwidth(130))) uint130;\ntypedef unsigned int __attribute__ ((bitwidth(131))) uint131;\ntypedef unsigned int __attribute__ ((bitwidth(132))) uint132;\ntypedef unsigned int __attribute__ ((bitwidth(133))) uint133;\ntypedef unsigned int __attribute__ ((bitwidth(134))) uint134;\ntypedef unsigned int __attribute__ ((bitwidth(135))) uint135;\ntypedef unsigned int __attribute__ ((bitwidth(136))) uint136;\ntypedef unsigned int __attribute__ ((bitwidth(137))) uint137;\ntypedef unsigned int __attribute__ ((bitwidth(138))) uint138;\ntypedef unsigned int __attribute__ ((bitwidth(139))) uint139;\ntypedef unsigned int __attribute__ ((bitwidth(140))) uint140;\ntypedef unsigned int __attribute__ ((bitwidth(141))) uint141;\ntypedef unsigned int __attribute__ ((bitwidth(142))) uint142;\ntypedef unsigned int __attribute__ ((bitwidth(143))) uint143;\ntypedef unsigned int __attribute__ ((bitwidth(144))) uint144;\ntypedef unsigned int __attribute__ ((bitwidth(145))) uint145;\ntypedef unsigned int __attribute__ ((bitwidth(146))) uint146;\ntypedef unsigned int __attribute__ ((bitwidth(147))) uint147;\ntypedef unsigned int __attribute__ ((bitwidth(148))) uint148;\ntypedef unsigned int __attribute__ ((bitwidth(149))) uint149;\ntypedef unsigned int __attribute__ ((bitwidth(150))) uint150;\ntypedef unsigned int __attribute__ ((bitwidth(151))) uint151;\ntypedef unsigned int __attribute__ ((bitwidth(152))) uint152;\ntypedef unsigned int __attribute__ ((bitwidth(153))) uint153;\ntypedef unsigned int __attribute__ ((bitwidth(154))) uint154;\ntypedef unsigned int __attribute__ ((bitwidth(155))) uint155;\ntypedef unsigned int __attribute__ ((bitwidth(156))) uint156;\ntypedef unsigned int __attribute__ ((bitwidth(157))) uint157;\ntypedef unsigned int __attribute__ ((bitwidth(158))) uint158;\ntypedef unsigned int __attribute__ ((bitwidth(159))) uint159;\ntypedef unsigned int __attribute__ ((bitwidth(160))) uint160;\ntypedef unsigned int __attribute__ ((bitwidth(161))) uint161;\ntypedef unsigned int __attribute__ ((bitwidth(162))) uint162;\ntypedef unsigned int __attribute__ ((bitwidth(163))) uint163;\ntypedef unsigned int __attribute__ ((bitwidth(164))) uint164;\ntypedef unsigned int __attribute__ ((bitwidth(165))) uint165;\ntypedef unsigned int __attribute__ ((bitwidth(166))) uint166;\ntypedef unsigned int __attribute__ ((bitwidth(167))) uint167;\ntypedef unsigned int __attribute__ ((bitwidth(168))) uint168;\ntypedef unsigned int __attribute__ ((bitwidth(169))) uint169;\ntypedef unsigned int __attribute__ ((bitwidth(170))) uint170;\ntypedef unsigned int __attribute__ ((bitwidth(171))) uint171;\ntypedef unsigned int __attribute__ ((bitwidth(172))) uint172;\ntypedef unsigned int __attribute__ ((bitwidth(173))) uint173;\ntypedef unsigned int __attribute__ ((bitwidth(174))) uint174;\ntypedef unsigned int __attribute__ ((bitwidth(175))) uint175;\ntypedef unsigned int __attribute__ ((bitwidth(176))) uint176;\ntypedef unsigned int __attribute__ ((bitwidth(177))) uint177;\ntypedef unsigned int __attribute__ ((bitwidth(178))) uint178;\ntypedef unsigned int __attribute__ ((bitwidth(179))) uint179;\ntypedef unsigned int __attribute__ ((bitwidth(180))) uint180;\ntypedef unsigned int __attribute__ ((bitwidth(181))) uint181;\ntypedef unsigned int __attribute__ ((bitwidth(182))) uint182;\ntypedef unsigned int __attribute__ ((bitwidth(183))) uint183;\ntypedef unsigned int __attribute__ ((bitwidth(184))) uint184;\ntypedef unsigned int __attribute__ ((bitwidth(185))) uint185;\ntypedef unsigned int __attribute__ ((bitwidth(186))) uint186;\ntypedef unsigned int __attribute__ ((bitwidth(187))) uint187;\ntypedef unsigned int __attribute__ ((bitwidth(188))) uint188;\ntypedef unsigned int __attribute__ ((bitwidth(189))) uint189;\ntypedef unsigned int __attribute__ ((bitwidth(190))) uint190;\ntypedef unsigned int __attribute__ ((bitwidth(191))) uint191;\ntypedef unsigned int __attribute__ ((bitwidth(192))) uint192;\ntypedef unsigned int __attribute__ ((bitwidth(193))) uint193;\ntypedef unsigned int __attribute__ ((bitwidth(194))) uint194;\ntypedef unsigned int __attribute__ ((bitwidth(195))) uint195;\ntypedef unsigned int __attribute__ ((bitwidth(196))) uint196;\ntypedef unsigned int __attribute__ ((bitwidth(197))) uint197;\ntypedef unsigned int __attribute__ ((bitwidth(198))) uint198;\ntypedef unsigned int __attribute__ ((bitwidth(199))) uint199;\ntypedef unsigned int __attribute__ ((bitwidth(200))) uint200;\ntypedef unsigned int __attribute__ ((bitwidth(201))) uint201;\ntypedef unsigned int __attribute__ ((bitwidth(202))) uint202;\ntypedef unsigned int __attribute__ ((bitwidth(203))) uint203;\ntypedef unsigned int __attribute__ ((bitwidth(204))) uint204;\ntypedef unsigned int __attribute__ ((bitwidth(205))) uint205;\ntypedef unsigned int __attribute__ ((bitwidth(206))) uint206;\ntypedef unsigned int __attribute__ ((bitwidth(207))) uint207;\ntypedef unsigned int __attribute__ ((bitwidth(208))) uint208;\ntypedef unsigned int __attribute__ ((bitwidth(209))) uint209;\ntypedef unsigned int __attribute__ ((bitwidth(210))) uint210;\ntypedef unsigned int __attribute__ ((bitwidth(211))) uint211;\ntypedef unsigned int __attribute__ ((bitwidth(212))) uint212;\ntypedef unsigned int __attribute__ ((bitwidth(213))) uint213;\ntypedef unsigned int __attribute__ ((bitwidth(214))) uint214;\ntypedef unsigned int __attribute__ ((bitwidth(215))) uint215;\ntypedef unsigned int __attribute__ ((bitwidth(216))) uint216;\ntypedef unsigned int __attribute__ ((bitwidth(217))) uint217;\ntypedef unsigned int __attribute__ ((bitwidth(218))) uint218;\ntypedef unsigned int __attribute__ ((bitwidth(219))) uint219;\ntypedef unsigned int __attribute__ ((bitwidth(220))) uint220;\ntypedef unsigned int __attribute__ ((bitwidth(221))) uint221;\ntypedef unsigned int __attribute__ ((bitwidth(222))) uint222;\ntypedef unsigned int __attribute__ ((bitwidth(223))) uint223;\ntypedef unsigned int __attribute__ ((bitwidth(224))) uint224;\ntypedef unsigned int __attribute__ ((bitwidth(225))) uint225;\ntypedef unsigned int __attribute__ ((bitwidth(226))) uint226;\ntypedef unsigned int __attribute__ ((bitwidth(227))) uint227;\ntypedef unsigned int __attribute__ ((bitwidth(228))) uint228;\ntypedef unsigned int __attribute__ ((bitwidth(229))) uint229;\ntypedef unsigned int __attribute__ ((bitwidth(230))) uint230;\ntypedef unsigned int __attribute__ ((bitwidth(231))) uint231;\ntypedef unsigned int __attribute__ ((bitwidth(232))) uint232;\ntypedef unsigned int __attribute__ ((bitwidth(233))) uint233;\ntypedef unsigned int __attribute__ ((bitwidth(234))) uint234;\ntypedef unsigned int __attribute__ ((bitwidth(235))) uint235;\ntypedef unsigned int __attribute__ ((bitwidth(236))) uint236;\ntypedef unsigned int __attribute__ ((bitwidth(237))) uint237;\ntypedef unsigned int __attribute__ ((bitwidth(238))) uint238;\ntypedef unsigned int __attribute__ ((bitwidth(239))) uint239;\ntypedef unsigned int __attribute__ ((bitwidth(240))) uint240;\ntypedef unsigned int __attribute__ ((bitwidth(241))) uint241;\ntypedef unsigned int __attribute__ ((bitwidth(242))) uint242;\ntypedef unsigned int __attribute__ ((bitwidth(243))) uint243;\ntypedef unsigned int __attribute__ ((bitwidth(244))) uint244;\ntypedef unsigned int __attribute__ ((bitwidth(245))) uint245;\ntypedef unsigned int __attribute__ ((bitwidth(246))) uint246;\ntypedef unsigned int __attribute__ ((bitwidth(247))) uint247;\ntypedef unsigned int __attribute__ ((bitwidth(248))) uint248;\ntypedef unsigned int __attribute__ ((bitwidth(249))) uint249;\ntypedef unsigned int __attribute__ ((bitwidth(250))) uint250;\ntypedef unsigned int __attribute__ ((bitwidth(251))) uint251;\ntypedef unsigned int __attribute__ ((bitwidth(252))) uint252;\ntypedef unsigned int __attribute__ ((bitwidth(253))) uint253;\ntypedef unsigned int __attribute__ ((bitwidth(254))) uint254;\ntypedef unsigned int __attribute__ ((bitwidth(255))) uint255;\ntypedef unsigned int __attribute__ ((bitwidth(256))) uint256;\ntypedef unsigned int __attribute__ ((bitwidth(257))) uint257;\ntypedef unsigned int __attribute__ ((bitwidth(258))) uint258;\ntypedef unsigned int __attribute__ ((bitwidth(259))) uint259;\ntypedef unsigned int __attribute__ ((bitwidth(260))) uint260;\ntypedef unsigned int __attribute__ ((bitwidth(261))) uint261;\ntypedef unsigned int __attribute__ ((bitwidth(262))) uint262;\ntypedef unsigned int __attribute__ ((bitwidth(263))) uint263;\ntypedef unsigned int __attribute__ ((bitwidth(264))) uint264;\ntypedef unsigned int __attribute__ ((bitwidth(265))) uint265;\ntypedef unsigned int __attribute__ ((bitwidth(266))) uint266;\ntypedef unsigned int __attribute__ ((bitwidth(267))) uint267;\ntypedef unsigned int __attribute__ ((bitwidth(268))) uint268;\ntypedef unsigned int __attribute__ ((bitwidth(269))) uint269;\ntypedef unsigned int __attribute__ ((bitwidth(270))) uint270;\ntypedef unsigned int __attribute__ ((bitwidth(271))) uint271;\ntypedef unsigned int __attribute__ ((bitwidth(272))) uint272;\ntypedef unsigned int __attribute__ ((bitwidth(273))) uint273;\ntypedef unsigned int __attribute__ ((bitwidth(274))) uint274;\ntypedef unsigned int __attribute__ ((bitwidth(275))) uint275;\ntypedef unsigned int __attribute__ ((bitwidth(276))) uint276;\ntypedef unsigned int __attribute__ ((bitwidth(277))) uint277;\ntypedef unsigned int __attribute__ ((bitwidth(278))) uint278;\ntypedef unsigned int __attribute__ ((bitwidth(279))) uint279;\ntypedef unsigned int __attribute__ ((bitwidth(280))) uint280;\ntypedef unsigned int __attribute__ ((bitwidth(281))) uint281;\ntypedef unsigned int __attribute__ ((bitwidth(282))) uint282;\ntypedef unsigned int __attribute__ ((bitwidth(283))) uint283;\ntypedef unsigned int __attribute__ ((bitwidth(284))) uint284;\ntypedef unsigned int __attribute__ ((bitwidth(285))) uint285;\ntypedef unsigned int __attribute__ ((bitwidth(286))) uint286;\ntypedef unsigned int __attribute__ ((bitwidth(287))) uint287;\ntypedef unsigned int __attribute__ ((bitwidth(288))) uint288;\ntypedef unsigned int __attribute__ ((bitwidth(289))) uint289;\ntypedef unsigned int __attribute__ ((bitwidth(290))) uint290;\ntypedef unsigned int __attribute__ ((bitwidth(291))) uint291;\ntypedef unsigned int __attribute__ ((bitwidth(292))) uint292;\ntypedef unsigned int __attribute__ ((bitwidth(293))) uint293;\ntypedef unsigned int __attribute__ ((bitwidth(294))) uint294;\ntypedef unsigned int __attribute__ ((bitwidth(295))) uint295;\ntypedef unsigned int __attribute__ ((bitwidth(296))) uint296;\ntypedef unsigned int __attribute__ ((bitwidth(297))) uint297;\ntypedef unsigned int __attribute__ ((bitwidth(298))) uint298;\ntypedef unsigned int __attribute__ ((bitwidth(299))) uint299;\ntypedef unsigned int __attribute__ ((bitwidth(300))) uint300;\ntypedef unsigned int __attribute__ ((bitwidth(301))) uint301;\ntypedef unsigned int __attribute__ ((bitwidth(302))) uint302;\ntypedef unsigned int __attribute__ ((bitwidth(303))) uint303;\ntypedef unsigned int __attribute__ ((bitwidth(304))) uint304;\ntypedef unsigned int __attribute__ ((bitwidth(305))) uint305;\ntypedef unsigned int __attribute__ ((bitwidth(306))) uint306;\ntypedef unsigned int __attribute__ ((bitwidth(307))) uint307;\ntypedef unsigned int __attribute__ ((bitwidth(308))) uint308;\ntypedef unsigned int __attribute__ ((bitwidth(309))) uint309;\ntypedef unsigned int __attribute__ ((bitwidth(310))) uint310;\ntypedef unsigned int __attribute__ ((bitwidth(311))) uint311;\ntypedef unsigned int __attribute__ ((bitwidth(312))) uint312;\ntypedef unsigned int __attribute__ ((bitwidth(313))) uint313;\ntypedef unsigned int __attribute__ ((bitwidth(314))) uint314;\ntypedef unsigned int __attribute__ ((bitwidth(315))) uint315;\ntypedef unsigned int __attribute__ ((bitwidth(316))) uint316;\ntypedef unsigned int __attribute__ ((bitwidth(317))) uint317;\ntypedef unsigned int __attribute__ ((bitwidth(318))) uint318;\ntypedef unsigned int __attribute__ ((bitwidth(319))) uint319;\ntypedef unsigned int __attribute__ ((bitwidth(320))) uint320;\ntypedef unsigned int __attribute__ ((bitwidth(321))) uint321;\ntypedef unsigned int __attribute__ ((bitwidth(322))) uint322;\ntypedef unsigned int __attribute__ ((bitwidth(323))) uint323;\ntypedef unsigned int __attribute__ ((bitwidth(324))) uint324;\ntypedef unsigned int __attribute__ ((bitwidth(325))) uint325;\ntypedef unsigned int __attribute__ ((bitwidth(326))) uint326;\ntypedef unsigned int __attribute__ ((bitwidth(327))) uint327;\ntypedef unsigned int __attribute__ ((bitwidth(328))) uint328;\ntypedef unsigned int __attribute__ ((bitwidth(329))) uint329;\ntypedef unsigned int __attribute__ ((bitwidth(330))) uint330;\ntypedef unsigned int __attribute__ ((bitwidth(331))) uint331;\ntypedef unsigned int __attribute__ ((bitwidth(332))) uint332;\ntypedef unsigned int __attribute__ ((bitwidth(333))) uint333;\ntypedef unsigned int __attribute__ ((bitwidth(334))) uint334;\ntypedef unsigned int __attribute__ ((bitwidth(335))) uint335;\ntypedef unsigned int __attribute__ ((bitwidth(336))) uint336;\ntypedef unsigned int __attribute__ ((bitwidth(337))) uint337;\ntypedef unsigned int __attribute__ ((bitwidth(338))) uint338;\ntypedef unsigned int __attribute__ ((bitwidth(339))) uint339;\ntypedef unsigned int __attribute__ ((bitwidth(340))) uint340;\ntypedef unsigned int __attribute__ ((bitwidth(341))) uint341;\ntypedef unsigned int __attribute__ ((bitwidth(342))) uint342;\ntypedef unsigned int __attribute__ ((bitwidth(343))) uint343;\ntypedef unsigned int __attribute__ ((bitwidth(344))) uint344;\ntypedef unsigned int __attribute__ ((bitwidth(345))) uint345;\ntypedef unsigned int __attribute__ ((bitwidth(346))) uint346;\ntypedef unsigned int __attribute__ ((bitwidth(347))) uint347;\ntypedef unsigned int __attribute__ ((bitwidth(348))) uint348;\ntypedef unsigned int __attribute__ ((bitwidth(349))) uint349;\ntypedef unsigned int __attribute__ ((bitwidth(350))) uint350;\ntypedef unsigned int __attribute__ ((bitwidth(351))) uint351;\ntypedef unsigned int __attribute__ ((bitwidth(352))) uint352;\ntypedef unsigned int __attribute__ ((bitwidth(353))) uint353;\ntypedef unsigned int __attribute__ ((bitwidth(354))) uint354;\ntypedef unsigned int __attribute__ ((bitwidth(355))) uint355;\ntypedef unsigned int __attribute__ ((bitwidth(356))) uint356;\ntypedef unsigned int __attribute__ ((bitwidth(357))) uint357;\ntypedef unsigned int __attribute__ ((bitwidth(358))) uint358;\ntypedef unsigned int __attribute__ ((bitwidth(359))) uint359;\ntypedef unsigned int __attribute__ ((bitwidth(360))) uint360;\ntypedef unsigned int __attribute__ ((bitwidth(361))) uint361;\ntypedef unsigned int __attribute__ ((bitwidth(362))) uint362;\ntypedef unsigned int __attribute__ ((bitwidth(363))) uint363;\ntypedef unsigned int __attribute__ ((bitwidth(364))) uint364;\ntypedef unsigned int __attribute__ ((bitwidth(365))) uint365;\ntypedef unsigned int __attribute__ ((bitwidth(366))) uint366;\ntypedef unsigned int __attribute__ ((bitwidth(367))) uint367;\ntypedef unsigned int __attribute__ ((bitwidth(368))) uint368;\ntypedef unsigned int __attribute__ ((bitwidth(369))) uint369;\ntypedef unsigned int __attribute__ ((bitwidth(370))) uint370;\ntypedef unsigned int __attribute__ ((bitwidth(371))) uint371;\ntypedef unsigned int __attribute__ ((bitwidth(372))) uint372;\ntypedef unsigned int __attribute__ ((bitwidth(373))) uint373;\ntypedef unsigned int __attribute__ ((bitwidth(374))) uint374;\ntypedef unsigned int __attribute__ ((bitwidth(375))) uint375;\ntypedef unsigned int __attribute__ ((bitwidth(376))) uint376;\ntypedef unsigned int __attribute__ ((bitwidth(377))) uint377;\ntypedef unsigned int __attribute__ ((bitwidth(378))) uint378;\ntypedef unsigned int __attribute__ ((bitwidth(379))) uint379;\ntypedef unsigned int __attribute__ ((bitwidth(380))) uint380;\ntypedef unsigned int __attribute__ ((bitwidth(381))) uint381;\ntypedef unsigned int __attribute__ ((bitwidth(382))) uint382;\ntypedef unsigned int __attribute__ ((bitwidth(383))) uint383;\ntypedef unsigned int __attribute__ ((bitwidth(384))) uint384;\ntypedef unsigned int __attribute__ ((bitwidth(385))) uint385;\ntypedef unsigned int __attribute__ ((bitwidth(386))) uint386;\ntypedef unsigned int __attribute__ ((bitwidth(387))) uint387;\ntypedef unsigned int __attribute__ ((bitwidth(388))) uint388;\ntypedef unsigned int __attribute__ ((bitwidth(389))) uint389;\ntypedef unsigned int __attribute__ ((bitwidth(390))) uint390;\ntypedef unsigned int __attribute__ ((bitwidth(391))) uint391;\ntypedef unsigned int __attribute__ ((bitwidth(392))) uint392;\ntypedef unsigned int __attribute__ ((bitwidth(393))) uint393;\ntypedef unsigned int __attribute__ ((bitwidth(394))) uint394;\ntypedef unsigned int __attribute__ ((bitwidth(395))) uint395;\ntypedef unsigned int __attribute__ ((bitwidth(396))) uint396;\ntypedef unsigned int __attribute__ ((bitwidth(397))) uint397;\ntypedef unsigned int __attribute__ ((bitwidth(398))) uint398;\ntypedef unsigned int __attribute__ ((bitwidth(399))) uint399;\ntypedef unsigned int __attribute__ ((bitwidth(400))) uint400;\ntypedef unsigned int __attribute__ ((bitwidth(401))) uint401;\ntypedef unsigned int __attribute__ ((bitwidth(402))) uint402;\ntypedef unsigned int __attribute__ ((bitwidth(403))) uint403;\ntypedef unsigned int __attribute__ ((bitwidth(404))) uint404;\ntypedef unsigned int __attribute__ ((bitwidth(405))) uint405;\ntypedef unsigned int __attribute__ ((bitwidth(406))) uint406;\ntypedef unsigned int __attribute__ ((bitwidth(407))) uint407;\ntypedef unsigned int __attribute__ ((bitwidth(408))) uint408;\ntypedef unsigned int __attribute__ ((bitwidth(409))) uint409;\ntypedef unsigned int __attribute__ ((bitwidth(410))) uint410;\ntypedef unsigned int __attribute__ ((bitwidth(411))) uint411;\ntypedef unsigned int __attribute__ ((bitwidth(412))) uint412;\ntypedef unsigned int __attribute__ ((bitwidth(413))) uint413;\ntypedef unsigned int __attribute__ ((bitwidth(414))) uint414;\ntypedef unsigned int __attribute__ ((bitwidth(415))) uint415;\ntypedef unsigned int __attribute__ ((bitwidth(416))) uint416;\ntypedef unsigned int __attribute__ ((bitwidth(417))) uint417;\ntypedef unsigned int __attribute__ ((bitwidth(418))) uint418;\ntypedef unsigned int __attribute__ ((bitwidth(419))) uint419;\ntypedef unsigned int __attribute__ ((bitwidth(420))) uint420;\ntypedef unsigned int __attribute__ ((bitwidth(421))) uint421;\ntypedef unsigned int __attribute__ ((bitwidth(422))) uint422;\ntypedef unsigned int __attribute__ ((bitwidth(423))) uint423;\ntypedef unsigned int __attribute__ ((bitwidth(424))) uint424;\ntypedef unsigned int __attribute__ ((bitwidth(425))) uint425;\ntypedef unsigned int __attribute__ ((bitwidth(426))) uint426;\ntypedef unsigned int __attribute__ ((bitwidth(427))) uint427;\ntypedef unsigned int __attribute__ ((bitwidth(428))) uint428;\ntypedef unsigned int __attribute__ ((bitwidth(429))) uint429;\ntypedef unsigned int __attribute__ ((bitwidth(430))) uint430;\ntypedef unsigned int __attribute__ ((bitwidth(431))) uint431;\ntypedef unsigned int __attribute__ ((bitwidth(432))) uint432;\ntypedef unsigned int __attribute__ ((bitwidth(433))) uint433;\ntypedef unsigned int __attribute__ ((bitwidth(434))) uint434;\ntypedef unsigned int __attribute__ ((bitwidth(435))) uint435;\ntypedef unsigned int __attribute__ ((bitwidth(436))) uint436;\ntypedef unsigned int __attribute__ ((bitwidth(437))) uint437;\ntypedef unsigned int __attribute__ ((bitwidth(438))) uint438;\ntypedef unsigned int __attribute__ ((bitwidth(439))) uint439;\ntypedef unsigned int __attribute__ ((bitwidth(440))) uint440;\ntypedef unsigned int __attribute__ ((bitwidth(441))) uint441;\ntypedef unsigned int __attribute__ ((bitwidth(442))) uint442;\ntypedef unsigned int __attribute__ ((bitwidth(443))) uint443;\ntypedef unsigned int __attribute__ ((bitwidth(444))) uint444;\ntypedef unsigned int __attribute__ ((bitwidth(445))) uint445;\ntypedef unsigned int __attribute__ ((bitwidth(446))) uint446;\ntypedef unsigned int __attribute__ ((bitwidth(447))) uint447;\ntypedef unsigned int __attribute__ ((bitwidth(448))) uint448;\ntypedef unsigned int __attribute__ ((bitwidth(449))) uint449;\ntypedef unsigned int __attribute__ ((bitwidth(450))) uint450;\ntypedef unsigned int __attribute__ ((bitwidth(451))) uint451;\ntypedef unsigned int __attribute__ ((bitwidth(452))) uint452;\ntypedef unsigned int __attribute__ ((bitwidth(453))) uint453;\ntypedef unsigned int __attribute__ ((bitwidth(454))) uint454;\ntypedef unsigned int __attribute__ ((bitwidth(455))) uint455;\ntypedef unsigned int __attribute__ ((bitwidth(456))) uint456;\ntypedef unsigned int __attribute__ ((bitwidth(457))) uint457;\ntypedef unsigned int __attribute__ ((bitwidth(458))) uint458;\ntypedef unsigned int __attribute__ ((bitwidth(459))) uint459;\ntypedef unsigned int __attribute__ ((bitwidth(460))) uint460;\ntypedef unsigned int __attribute__ ((bitwidth(461))) uint461;\ntypedef unsigned int __attribute__ ((bitwidth(462))) uint462;\ntypedef unsigned int __attribute__ ((bitwidth(463))) uint463;\ntypedef unsigned int __attribute__ ((bitwidth(464))) uint464;\ntypedef unsigned int __attribute__ ((bitwidth(465))) uint465;\ntypedef unsigned int __attribute__ ((bitwidth(466))) uint466;\ntypedef unsigned int __attribute__ ((bitwidth(467))) uint467;\ntypedef unsigned int __attribute__ ((bitwidth(468))) uint468;\ntypedef unsigned int __attribute__ ((bitwidth(469))) uint469;\ntypedef unsigned int __attribute__ ((bitwidth(470))) uint470;\ntypedef unsigned int __attribute__ ((bitwidth(471))) uint471;\ntypedef unsigned int __attribute__ ((bitwidth(472))) uint472;\ntypedef unsigned int __attribute__ ((bitwidth(473))) uint473;\ntypedef unsigned int __attribute__ ((bitwidth(474))) uint474;\ntypedef unsigned int __attribute__ ((bitwidth(475))) uint475;\ntypedef unsigned int __attribute__ ((bitwidth(476))) uint476;\ntypedef unsigned int __attribute__ ((bitwidth(477))) uint477;\ntypedef unsigned int __attribute__ ((bitwidth(478))) uint478;\ntypedef unsigned int __attribute__ ((bitwidth(479))) uint479;\ntypedef unsigned int __attribute__ ((bitwidth(480))) uint480;\ntypedef unsigned int __attribute__ ((bitwidth(481))) uint481;\ntypedef unsigned int __attribute__ ((bitwidth(482))) uint482;\ntypedef unsigned int __attribute__ ((bitwidth(483))) uint483;\ntypedef unsigned int __attribute__ ((bitwidth(484))) uint484;\ntypedef unsigned int __attribute__ ((bitwidth(485))) uint485;\ntypedef unsigned int __attribute__ ((bitwidth(486))) uint486;\ntypedef unsigned int __attribute__ ((bitwidth(487))) uint487;\ntypedef unsigned int __attribute__ ((bitwidth(488))) uint488;\ntypedef unsigned int __attribute__ ((bitwidth(489))) uint489;\ntypedef unsigned int __attribute__ ((bitwidth(490))) uint490;\ntypedef unsigned int __attribute__ ((bitwidth(491))) uint491;\ntypedef unsigned int __attribute__ ((bitwidth(492))) uint492;\ntypedef unsigned int __attribute__ ((bitwidth(493))) uint493;\ntypedef unsigned int __attribute__ ((bitwidth(494))) uint494;\ntypedef unsigned int __attribute__ ((bitwidth(495))) uint495;\ntypedef unsigned int __attribute__ ((bitwidth(496))) uint496;\ntypedef unsigned int __attribute__ ((bitwidth(497))) uint497;\ntypedef unsigned int __attribute__ ((bitwidth(498))) uint498;\ntypedef unsigned int __attribute__ ((bitwidth(499))) uint499;\ntypedef unsigned int __attribute__ ((bitwidth(500))) uint500;\ntypedef unsigned int __attribute__ ((bitwidth(501))) uint501;\ntypedef unsigned int __attribute__ ((bitwidth(502))) uint502;\ntypedef unsigned int __attribute__ ((bitwidth(503))) uint503;\ntypedef unsigned int __attribute__ ((bitwidth(504))) uint504;\ntypedef unsigned int __attribute__ ((bitwidth(505))) uint505;\ntypedef unsigned int __attribute__ ((bitwidth(506))) uint506;\ntypedef unsigned int __attribute__ ((bitwidth(507))) uint507;\ntypedef unsigned int __attribute__ ((bitwidth(508))) uint508;\ntypedef unsigned int __attribute__ ((bitwidth(509))) uint509;\ntypedef unsigned int __attribute__ ((bitwidth(510))) uint510;\ntypedef unsigned int __attribute__ ((bitwidth(511))) uint511;\ntypedef unsigned int __attribute__ ((bitwidth(512))) uint512;\ntypedef unsigned int __attribute__ ((bitwidth(513))) uint513;\ntypedef unsigned int __attribute__ ((bitwidth(514))) uint514;\ntypedef unsigned int __attribute__ ((bitwidth(515))) uint515;\ntypedef unsigned int __attribute__ ((bitwidth(516))) uint516;\ntypedef unsigned int __attribute__ ((bitwidth(517))) uint517;\ntypedef unsigned int __attribute__ ((bitwidth(518))) uint518;\ntypedef unsigned int __attribute__ ((bitwidth(519))) uint519;\ntypedef unsigned int __attribute__ ((bitwidth(520))) uint520;\ntypedef unsigned int __attribute__ ((bitwidth(521))) uint521;\ntypedef unsigned int __attribute__ ((bitwidth(522))) uint522;\ntypedef unsigned int __attribute__ ((bitwidth(523))) uint523;\ntypedef unsigned int __attribute__ ((bitwidth(524))) uint524;\ntypedef unsigned int __attribute__ ((bitwidth(525))) uint525;\ntypedef unsigned int __attribute__ ((bitwidth(526))) uint526;\ntypedef unsigned int __attribute__ ((bitwidth(527))) uint527;\ntypedef unsigned int __attribute__ ((bitwidth(528))) uint528;\ntypedef unsigned int __attribute__ ((bitwidth(529))) uint529;\ntypedef unsigned int __attribute__ ((bitwidth(530))) uint530;\ntypedef unsigned int __attribute__ ((bitwidth(531))) uint531;\ntypedef unsigned int __attribute__ ((bitwidth(532))) uint532;\ntypedef unsigned int __attribute__ ((bitwidth(533))) uint533;\ntypedef unsigned int __attribute__ ((bitwidth(534))) uint534;\ntypedef unsigned int __attribute__ ((bitwidth(535))) uint535;\ntypedef unsigned int __attribute__ ((bitwidth(536))) uint536;\ntypedef unsigned int __attribute__ ((bitwidth(537))) uint537;\ntypedef unsigned int __attribute__ ((bitwidth(538))) uint538;\ntypedef unsigned int __attribute__ ((bitwidth(539))) uint539;\ntypedef unsigned int __attribute__ ((bitwidth(540))) uint540;\ntypedef unsigned int __attribute__ ((bitwidth(541))) uint541;\ntypedef unsigned int __attribute__ ((bitwidth(542))) uint542;\ntypedef unsigned int __attribute__ ((bitwidth(543))) uint543;\ntypedef unsigned int __attribute__ ((bitwidth(544))) uint544;\ntypedef unsigned int __attribute__ ((bitwidth(545))) uint545;\ntypedef unsigned int __attribute__ ((bitwidth(546))) uint546;\ntypedef unsigned int __attribute__ ((bitwidth(547))) uint547;\ntypedef unsigned int __attribute__ ((bitwidth(548))) uint548;\ntypedef unsigned int __attribute__ ((bitwidth(549))) uint549;\ntypedef unsigned int __attribute__ ((bitwidth(550))) uint550;\ntypedef unsigned int __attribute__ ((bitwidth(551))) uint551;\ntypedef unsigned int __attribute__ ((bitwidth(552))) uint552;\ntypedef unsigned int __attribute__ ((bitwidth(553))) uint553;\ntypedef unsigned int __attribute__ ((bitwidth(554))) uint554;\ntypedef unsigned int __attribute__ ((bitwidth(555))) uint555;\ntypedef unsigned int __attribute__ ((bitwidth(556))) uint556;\ntypedef unsigned int __attribute__ ((bitwidth(557))) uint557;\ntypedef unsigned int __attribute__ ((bitwidth(558))) uint558;\ntypedef unsigned int __attribute__ ((bitwidth(559))) uint559;\ntypedef unsigned int __attribute__ ((bitwidth(560))) uint560;\ntypedef unsigned int __attribute__ ((bitwidth(561))) uint561;\ntypedef unsigned int __attribute__ ((bitwidth(562))) uint562;\ntypedef unsigned int __attribute__ ((bitwidth(563))) uint563;\ntypedef unsigned int __attribute__ ((bitwidth(564))) uint564;\ntypedef unsigned int __attribute__ ((bitwidth(565))) uint565;\ntypedef unsigned int __attribute__ ((bitwidth(566))) uint566;\ntypedef unsigned int __attribute__ ((bitwidth(567))) uint567;\ntypedef unsigned int __attribute__ ((bitwidth(568))) uint568;\ntypedef unsigned int __attribute__ ((bitwidth(569))) uint569;\ntypedef unsigned int __attribute__ ((bitwidth(570))) uint570;\ntypedef unsigned int __attribute__ ((bitwidth(571))) uint571;\ntypedef unsigned int __attribute__ ((bitwidth(572))) uint572;\ntypedef unsigned int __attribute__ ((bitwidth(573))) uint573;\ntypedef unsigned int __attribute__ ((bitwidth(574))) uint574;\ntypedef unsigned int __attribute__ ((bitwidth(575))) uint575;\ntypedef unsigned int __attribute__ ((bitwidth(576))) uint576;\ntypedef unsigned int __attribute__ ((bitwidth(577))) uint577;\ntypedef unsigned int __attribute__ ((bitwidth(578))) uint578;\ntypedef unsigned int __attribute__ ((bitwidth(579))) uint579;\ntypedef unsigned int __attribute__ ((bitwidth(580))) uint580;\ntypedef unsigned int __attribute__ ((bitwidth(581))) uint581;\ntypedef unsigned int __attribute__ ((bitwidth(582))) uint582;\ntypedef unsigned int __attribute__ ((bitwidth(583))) uint583;\ntypedef unsigned int __attribute__ ((bitwidth(584))) uint584;\ntypedef unsigned int __attribute__ ((bitwidth(585))) uint585;\ntypedef unsigned int __attribute__ ((bitwidth(586))) uint586;\ntypedef unsigned int __attribute__ ((bitwidth(587))) uint587;\ntypedef unsigned int __attribute__ ((bitwidth(588))) uint588;\ntypedef unsigned int __attribute__ ((bitwidth(589))) uint589;\ntypedef unsigned int __attribute__ ((bitwidth(590))) uint590;\ntypedef unsigned int __attribute__ ((bitwidth(591))) uint591;\ntypedef unsigned int __attribute__ ((bitwidth(592))) uint592;\ntypedef unsigned int __attribute__ ((bitwidth(593))) uint593;\ntypedef unsigned int __attribute__ ((bitwidth(594))) uint594;\ntypedef unsigned int __attribute__ ((bitwidth(595))) uint595;\ntypedef unsigned int __attribute__ ((bitwidth(596))) uint596;\ntypedef unsigned int __attribute__ ((bitwidth(597))) uint597;\ntypedef unsigned int __attribute__ ((bitwidth(598))) uint598;\ntypedef unsigned int __attribute__ ((bitwidth(599))) uint599;\ntypedef unsigned int __attribute__ ((bitwidth(600))) uint600;\ntypedef unsigned int __attribute__ ((bitwidth(601))) uint601;\ntypedef unsigned int __attribute__ ((bitwidth(602))) uint602;\ntypedef unsigned int __attribute__ ((bitwidth(603))) uint603;\ntypedef unsigned int __attribute__ ((bitwidth(604))) uint604;\ntypedef unsigned int __attribute__ ((bitwidth(605))) uint605;\ntypedef unsigned int __attribute__ ((bitwidth(606))) uint606;\ntypedef unsigned int __attribute__ ((bitwidth(607))) uint607;\ntypedef unsigned int __attribute__ ((bitwidth(608))) uint608;\ntypedef unsigned int __attribute__ ((bitwidth(609))) uint609;\ntypedef unsigned int __attribute__ ((bitwidth(610))) uint610;\ntypedef unsigned int __attribute__ ((bitwidth(611))) uint611;\ntypedef unsigned int __attribute__ ((bitwidth(612))) uint612;\ntypedef unsigned int __attribute__ ((bitwidth(613))) uint613;\ntypedef unsigned int __attribute__ ((bitwidth(614))) uint614;\ntypedef unsigned int __attribute__ ((bitwidth(615))) uint615;\ntypedef unsigned int __attribute__ ((bitwidth(616))) uint616;\ntypedef unsigned int __attribute__ ((bitwidth(617))) uint617;\ntypedef unsigned int __attribute__ ((bitwidth(618))) uint618;\ntypedef unsigned int __attribute__ ((bitwidth(619))) uint619;\ntypedef unsigned int __attribute__ ((bitwidth(620))) uint620;\ntypedef unsigned int __attribute__ ((bitwidth(621))) uint621;\ntypedef unsigned int __attribute__ ((bitwidth(622))) uint622;\ntypedef unsigned int __attribute__ ((bitwidth(623))) uint623;\ntypedef unsigned int __attribute__ ((bitwidth(624))) uint624;\ntypedef unsigned int __attribute__ ((bitwidth(625))) uint625;\ntypedef unsigned int __attribute__ ((bitwidth(626))) uint626;\ntypedef unsigned int __attribute__ ((bitwidth(627))) uint627;\ntypedef unsigned int __attribute__ ((bitwidth(628))) uint628;\ntypedef unsigned int __attribute__ ((bitwidth(629))) uint629;\ntypedef unsigned int __attribute__ ((bitwidth(630))) uint630;\ntypedef unsigned int __attribute__ ((bitwidth(631))) uint631;\ntypedef unsigned int __attribute__ ((bitwidth(632))) uint632;\ntypedef unsigned int __attribute__ ((bitwidth(633))) uint633;\ntypedef unsigned int __attribute__ ((bitwidth(634))) uint634;\ntypedef unsigned int __attribute__ ((bitwidth(635))) uint635;\ntypedef unsigned int __attribute__ ((bitwidth(636))) uint636;\ntypedef unsigned int __attribute__ ((bitwidth(637))) uint637;\ntypedef unsigned int __attribute__ ((bitwidth(638))) uint638;\ntypedef unsigned int __attribute__ ((bitwidth(639))) uint639;\ntypedef unsigned int __attribute__ ((bitwidth(640))) uint640;\ntypedef unsigned int __attribute__ ((bitwidth(641))) uint641;\ntypedef unsigned int __attribute__ ((bitwidth(642))) uint642;\ntypedef unsigned int __attribute__ ((bitwidth(643))) uint643;\ntypedef unsigned int __attribute__ ((bitwidth(644))) uint644;\ntypedef unsigned int __attribute__ ((bitwidth(645))) uint645;\ntypedef unsigned int __attribute__ ((bitwidth(646))) uint646;\ntypedef unsigned int __attribute__ ((bitwidth(647))) uint647;\ntypedef unsigned int __attribute__ ((bitwidth(648))) uint648;\ntypedef unsigned int __attribute__ ((bitwidth(649))) uint649;\ntypedef unsigned int __attribute__ ((bitwidth(650))) uint650;\ntypedef unsigned int __attribute__ ((bitwidth(651))) uint651;\ntypedef unsigned int __attribute__ ((bitwidth(652))) uint652;\ntypedef unsigned int __attribute__ ((bitwidth(653))) uint653;\ntypedef unsigned int __attribute__ ((bitwidth(654))) uint654;\ntypedef unsigned int __attribute__ ((bitwidth(655))) uint655;\ntypedef unsigned int __attribute__ ((bitwidth(656))) uint656;\ntypedef unsigned int __attribute__ ((bitwidth(657))) uint657;\ntypedef unsigned int __attribute__ ((bitwidth(658))) uint658;\ntypedef unsigned int __attribute__ ((bitwidth(659))) uint659;\ntypedef unsigned int __attribute__ ((bitwidth(660))) uint660;\ntypedef unsigned int __attribute__ ((bitwidth(661))) uint661;\ntypedef unsigned int __attribute__ ((bitwidth(662))) uint662;\ntypedef unsigned int __attribute__ ((bitwidth(663))) uint663;\ntypedef unsigned int __attribute__ ((bitwidth(664))) uint664;\ntypedef unsigned int __attribute__ ((bitwidth(665))) uint665;\ntypedef unsigned int __attribute__ ((bitwidth(666))) uint666;\ntypedef unsigned int __attribute__ ((bitwidth(667))) uint667;\ntypedef unsigned int __attribute__ ((bitwidth(668))) uint668;\ntypedef unsigned int __attribute__ ((bitwidth(669))) uint669;\ntypedef unsigned int __attribute__ ((bitwidth(670))) uint670;\ntypedef unsigned int __attribute__ ((bitwidth(671))) uint671;\ntypedef unsigned int __attribute__ ((bitwidth(672))) uint672;\ntypedef unsigned int __attribute__ ((bitwidth(673))) uint673;\ntypedef unsigned int __attribute__ ((bitwidth(674))) uint674;\ntypedef unsigned int __attribute__ ((bitwidth(675))) uint675;\ntypedef unsigned int __attribute__ ((bitwidth(676))) uint676;\ntypedef unsigned int __attribute__ ((bitwidth(677))) uint677;\ntypedef unsigned int __attribute__ ((bitwidth(678))) uint678;\ntypedef unsigned int __attribute__ ((bitwidth(679))) uint679;\ntypedef unsigned int __attribute__ ((bitwidth(680))) uint680;\ntypedef unsigned int __attribute__ ((bitwidth(681))) uint681;\ntypedef unsigned int __attribute__ ((bitwidth(682))) uint682;\ntypedef unsigned int __attribute__ ((bitwidth(683))) uint683;\ntypedef unsigned int __attribute__ ((bitwidth(684))) uint684;\ntypedef unsigned int __attribute__ ((bitwidth(685))) uint685;\ntypedef unsigned int __attribute__ ((bitwidth(686))) uint686;\ntypedef unsigned int __attribute__ ((bitwidth(687))) uint687;\ntypedef unsigned int __attribute__ ((bitwidth(688))) uint688;\ntypedef unsigned int __attribute__ ((bitwidth(689))) uint689;\ntypedef unsigned int __attribute__ ((bitwidth(690))) uint690;\ntypedef unsigned int __attribute__ ((bitwidth(691))) uint691;\ntypedef unsigned int __attribute__ ((bitwidth(692))) uint692;\ntypedef unsigned int __attribute__ ((bitwidth(693))) uint693;\ntypedef unsigned int __attribute__ ((bitwidth(694))) uint694;\ntypedef unsigned int __attribute__ ((bitwidth(695))) uint695;\ntypedef unsigned int __attribute__ ((bitwidth(696))) uint696;\ntypedef unsigned int __attribute__ ((bitwidth(697))) uint697;\ntypedef unsigned int __attribute__ ((bitwidth(698))) uint698;\ntypedef unsigned int __attribute__ ((bitwidth(699))) uint699;\ntypedef unsigned int __attribute__ ((bitwidth(700))) uint700;\ntypedef unsigned int __attribute__ ((bitwidth(701))) uint701;\ntypedef unsigned int __attribute__ ((bitwidth(702))) uint702;\ntypedef unsigned int __attribute__ ((bitwidth(703))) uint703;\ntypedef unsigned int __attribute__ ((bitwidth(704))) uint704;\ntypedef unsigned int __attribute__ ((bitwidth(705))) uint705;\ntypedef unsigned int __attribute__ ((bitwidth(706))) uint706;\ntypedef unsigned int __attribute__ ((bitwidth(707))) uint707;\ntypedef unsigned int __attribute__ ((bitwidth(708))) uint708;\ntypedef unsigned int __attribute__ ((bitwidth(709))) uint709;\ntypedef unsigned int __attribute__ ((bitwidth(710))) uint710;\ntypedef unsigned int __attribute__ ((bitwidth(711))) uint711;\ntypedef unsigned int __attribute__ ((bitwidth(712))) uint712;\ntypedef unsigned int __attribute__ ((bitwidth(713))) uint713;\ntypedef unsigned int __attribute__ ((bitwidth(714))) uint714;\ntypedef unsigned int __attribute__ ((bitwidth(715))) uint715;\ntypedef unsigned int __attribute__ ((bitwidth(716))) uint716;\ntypedef unsigned int __attribute__ ((bitwidth(717))) uint717;\ntypedef unsigned int __attribute__ ((bitwidth(718))) uint718;\ntypedef unsigned int __attribute__ ((bitwidth(719))) uint719;\ntypedef unsigned int __attribute__ ((bitwidth(720))) uint720;\ntypedef unsigned int __attribute__ ((bitwidth(721))) uint721;\ntypedef unsigned int __attribute__ ((bitwidth(722))) uint722;\ntypedef unsigned int __attribute__ ((bitwidth(723))) uint723;\ntypedef unsigned int __attribute__ ((bitwidth(724))) uint724;\ntypedef unsigned int __attribute__ ((bitwidth(725))) uint725;\ntypedef unsigned int __attribute__ ((bitwidth(726))) uint726;\ntypedef unsigned int __attribute__ ((bitwidth(727))) uint727;\ntypedef unsigned int __attribute__ ((bitwidth(728))) uint728;\ntypedef unsigned int __attribute__ ((bitwidth(729))) uint729;\ntypedef unsigned int __attribute__ ((bitwidth(730))) uint730;\ntypedef unsigned int __attribute__ ((bitwidth(731))) uint731;\ntypedef unsigned int __attribute__ ((bitwidth(732))) uint732;\ntypedef unsigned int __attribute__ ((bitwidth(733))) uint733;\ntypedef unsigned int __attribute__ ((bitwidth(734))) uint734;\ntypedef unsigned int __attribute__ ((bitwidth(735))) uint735;\ntypedef unsigned int __attribute__ ((bitwidth(736))) uint736;\ntypedef unsigned int __attribute__ ((bitwidth(737))) uint737;\ntypedef unsigned int __attribute__ ((bitwidth(738))) uint738;\ntypedef unsigned int __attribute__ ((bitwidth(739))) uint739;\ntypedef unsigned int __attribute__ ((bitwidth(740))) uint740;\ntypedef unsigned int __attribute__ ((bitwidth(741))) uint741;\ntypedef unsigned int __attribute__ ((bitwidth(742))) uint742;\ntypedef unsigned int __attribute__ ((bitwidth(743))) uint743;\ntypedef unsigned int __attribute__ ((bitwidth(744))) uint744;\ntypedef unsigned int __attribute__ ((bitwidth(745))) uint745;\ntypedef unsigned int __attribute__ ((bitwidth(746))) uint746;\ntypedef unsigned int __attribute__ ((bitwidth(747))) uint747;\ntypedef unsigned int __attribute__ ((bitwidth(748))) uint748;\ntypedef unsigned int __attribute__ ((bitwidth(749))) uint749;\ntypedef unsigned int __attribute__ ((bitwidth(750))) uint750;\ntypedef unsigned int __attribute__ ((bitwidth(751))) uint751;\ntypedef unsigned int __attribute__ ((bitwidth(752))) uint752;\ntypedef unsigned int __attribute__ ((bitwidth(753))) uint753;\ntypedef unsigned int __attribute__ ((bitwidth(754))) uint754;\ntypedef unsigned int __attribute__ ((bitwidth(755))) uint755;\ntypedef unsigned int __attribute__ ((bitwidth(756))) uint756;\ntypedef unsigned int __attribute__ ((bitwidth(757))) uint757;\ntypedef unsigned int __attribute__ ((bitwidth(758))) uint758;\ntypedef unsigned int __attribute__ ((bitwidth(759))) uint759;\ntypedef unsigned int __attribute__ ((bitwidth(760))) uint760;\ntypedef unsigned int __attribute__ ((bitwidth(761))) uint761;\ntypedef unsigned int __attribute__ ((bitwidth(762))) uint762;\ntypedef unsigned int __attribute__ ((bitwidth(763))) uint763;\ntypedef unsigned int __attribute__ ((bitwidth(764))) uint764;\ntypedef unsigned int __attribute__ ((bitwidth(765))) uint765;\ntypedef unsigned int __attribute__ ((bitwidth(766))) uint766;\ntypedef unsigned int __attribute__ ((bitwidth(767))) uint767;\ntypedef unsigned int __attribute__ ((bitwidth(768))) uint768;\ntypedef unsigned int __attribute__ ((bitwidth(769))) uint769;\ntypedef unsigned int __attribute__ ((bitwidth(770))) uint770;\ntypedef unsigned int __attribute__ ((bitwidth(771))) uint771;\ntypedef unsigned int __attribute__ ((bitwidth(772))) uint772;\ntypedef unsigned int __attribute__ ((bitwidth(773))) uint773;\ntypedef unsigned int __attribute__ ((bitwidth(774))) uint774;\ntypedef unsigned int __attribute__ ((bitwidth(775))) uint775;\ntypedef unsigned int __attribute__ ((bitwidth(776))) uint776;\ntypedef unsigned int __attribute__ ((bitwidth(777))) uint777;\ntypedef unsigned int __attribute__ ((bitwidth(778))) uint778;\ntypedef unsigned int __attribute__ ((bitwidth(779))) uint779;\ntypedef unsigned int __attribute__ ((bitwidth(780))) uint780;\ntypedef unsigned int __attribute__ ((bitwidth(781))) uint781;\ntypedef unsigned int __attribute__ ((bitwidth(782))) uint782;\ntypedef unsigned int __attribute__ ((bitwidth(783))) uint783;\ntypedef unsigned int __attribute__ ((bitwidth(784))) uint784;\ntypedef unsigned int __attribute__ ((bitwidth(785))) uint785;\ntypedef unsigned int __attribute__ ((bitwidth(786))) uint786;\ntypedef unsigned int __attribute__ ((bitwidth(787))) uint787;\ntypedef unsigned int __attribute__ ((bitwidth(788))) uint788;\ntypedef unsigned int __attribute__ ((bitwidth(789))) uint789;\ntypedef unsigned int __attribute__ ((bitwidth(790))) uint790;\ntypedef unsigned int __attribute__ ((bitwidth(791))) uint791;\ntypedef unsigned int __attribute__ ((bitwidth(792))) uint792;\ntypedef unsigned int __attribute__ ((bitwidth(793))) uint793;\ntypedef unsigned int __attribute__ ((bitwidth(794))) uint794;\ntypedef unsigned int __attribute__ ((bitwidth(795))) uint795;\ntypedef unsigned int __attribute__ ((bitwidth(796))) uint796;\ntypedef unsigned int __attribute__ ((bitwidth(797))) uint797;\ntypedef unsigned int __attribute__ ((bitwidth(798))) uint798;\ntypedef unsigned int __attribute__ ((bitwidth(799))) uint799;\ntypedef unsigned int __attribute__ ((bitwidth(800))) uint800;\ntypedef unsigned int __attribute__ ((bitwidth(801))) uint801;\ntypedef unsigned int __attribute__ ((bitwidth(802))) uint802;\ntypedef unsigned int __attribute__ ((bitwidth(803))) uint803;\ntypedef unsigned int __attribute__ ((bitwidth(804))) uint804;\ntypedef unsigned int __attribute__ ((bitwidth(805))) uint805;\ntypedef unsigned int __attribute__ ((bitwidth(806))) uint806;\ntypedef unsigned int __attribute__ ((bitwidth(807))) uint807;\ntypedef unsigned int __attribute__ ((bitwidth(808))) uint808;\ntypedef unsigned int __attribute__ ((bitwidth(809))) uint809;\ntypedef unsigned int __attribute__ ((bitwidth(810))) uint810;\ntypedef unsigned int __attribute__ ((bitwidth(811))) uint811;\ntypedef unsigned int __attribute__ ((bitwidth(812))) uint812;\ntypedef unsigned int __attribute__ ((bitwidth(813))) uint813;\ntypedef unsigned int __attribute__ ((bitwidth(814))) uint814;\ntypedef unsigned int __attribute__ ((bitwidth(815))) uint815;\ntypedef unsigned int __attribute__ ((bitwidth(816))) uint816;\ntypedef unsigned int __attribute__ ((bitwidth(817))) uint817;\ntypedef unsigned int __attribute__ ((bitwidth(818))) uint818;\ntypedef unsigned int __attribute__ ((bitwidth(819))) uint819;\ntypedef unsigned int __attribute__ ((bitwidth(820))) uint820;\ntypedef unsigned int __attribute__ ((bitwidth(821))) uint821;\ntypedef unsigned int __attribute__ ((bitwidth(822))) uint822;\ntypedef unsigned int __attribute__ ((bitwidth(823))) uint823;\ntypedef unsigned int __attribute__ ((bitwidth(824))) uint824;\ntypedef unsigned int __attribute__ ((bitwidth(825))) uint825;\ntypedef unsigned int __attribute__ ((bitwidth(826))) uint826;\ntypedef unsigned int __attribute__ ((bitwidth(827))) uint827;\ntypedef unsigned int __attribute__ ((bitwidth(828))) uint828;\ntypedef unsigned int __attribute__ ((bitwidth(829))) uint829;\ntypedef unsigned int __attribute__ ((bitwidth(830))) uint830;\ntypedef unsigned int __attribute__ ((bitwidth(831))) uint831;\ntypedef unsigned int __attribute__ ((bitwidth(832))) uint832;\ntypedef unsigned int __attribute__ ((bitwidth(833))) uint833;\ntypedef unsigned int __attribute__ ((bitwidth(834))) uint834;\ntypedef unsigned int __attribute__ ((bitwidth(835))) uint835;\ntypedef unsigned int __attribute__ ((bitwidth(836))) uint836;\ntypedef unsigned int __attribute__ ((bitwidth(837))) uint837;\ntypedef unsigned int __attribute__ ((bitwidth(838))) uint838;\ntypedef unsigned int __attribute__ ((bitwidth(839))) uint839;\ntypedef unsigned int __attribute__ ((bitwidth(840))) uint840;\ntypedef unsigned int __attribute__ ((bitwidth(841))) uint841;\ntypedef unsigned int __attribute__ ((bitwidth(842))) uint842;\ntypedef unsigned int __attribute__ ((bitwidth(843))) uint843;\ntypedef unsigned int __attribute__ ((bitwidth(844))) uint844;\ntypedef unsigned int __attribute__ ((bitwidth(845))) uint845;\ntypedef unsigned int __attribute__ ((bitwidth(846))) uint846;\ntypedef unsigned int __attribute__ ((bitwidth(847))) uint847;\ntypedef unsigned int __attribute__ ((bitwidth(848))) uint848;\ntypedef unsigned int __attribute__ ((bitwidth(849))) uint849;\ntypedef unsigned int __attribute__ ((bitwidth(850))) uint850;\ntypedef unsigned int __attribute__ ((bitwidth(851))) uint851;\ntypedef unsigned int __attribute__ ((bitwidth(852))) uint852;\ntypedef unsigned int __attribute__ ((bitwidth(853))) uint853;\ntypedef unsigned int __attribute__ ((bitwidth(854))) uint854;\ntypedef unsigned int __attribute__ ((bitwidth(855))) uint855;\ntypedef unsigned int __attribute__ ((bitwidth(856))) uint856;\ntypedef unsigned int __attribute__ ((bitwidth(857))) uint857;\ntypedef unsigned int __attribute__ ((bitwidth(858))) uint858;\ntypedef unsigned int __attribute__ ((bitwidth(859))) uint859;\ntypedef unsigned int __attribute__ ((bitwidth(860))) uint860;\ntypedef unsigned int __attribute__ ((bitwidth(861))) uint861;\ntypedef unsigned int __attribute__ ((bitwidth(862))) uint862;\ntypedef unsigned int __attribute__ ((bitwidth(863))) uint863;\ntypedef unsigned int __attribute__ ((bitwidth(864))) uint864;\ntypedef unsigned int __attribute__ ((bitwidth(865))) uint865;\ntypedef unsigned int __attribute__ ((bitwidth(866))) uint866;\ntypedef unsigned int __attribute__ ((bitwidth(867))) uint867;\ntypedef unsigned int __attribute__ ((bitwidth(868))) uint868;\ntypedef unsigned int __attribute__ ((bitwidth(869))) uint869;\ntypedef unsigned int __attribute__ ((bitwidth(870))) uint870;\ntypedef unsigned int __attribute__ ((bitwidth(871))) uint871;\ntypedef unsigned int __attribute__ ((bitwidth(872))) uint872;\ntypedef unsigned int __attribute__ ((bitwidth(873))) uint873;\ntypedef unsigned int __attribute__ ((bitwidth(874))) uint874;\ntypedef unsigned int __attribute__ ((bitwidth(875))) uint875;\ntypedef unsigned int __attribute__ ((bitwidth(876))) uint876;\ntypedef unsigned int __attribute__ ((bitwidth(877))) uint877;\ntypedef unsigned int __attribute__ ((bitwidth(878))) uint878;\ntypedef unsigned int __attribute__ ((bitwidth(879))) uint879;\ntypedef unsigned int __attribute__ ((bitwidth(880))) uint880;\ntypedef unsigned int __attribute__ ((bitwidth(881))) uint881;\ntypedef unsigned int __attribute__ ((bitwidth(882))) uint882;\ntypedef unsigned int __attribute__ ((bitwidth(883))) uint883;\ntypedef unsigned int __attribute__ ((bitwidth(884))) uint884;\ntypedef unsigned int __attribute__ ((bitwidth(885))) uint885;\ntypedef unsigned int __attribute__ ((bitwidth(886))) uint886;\ntypedef unsigned int __attribute__ ((bitwidth(887))) uint887;\ntypedef unsigned int __attribute__ ((bitwidth(888))) uint888;\ntypedef unsigned int __attribute__ ((bitwidth(889))) uint889;\ntypedef unsigned int __attribute__ ((bitwidth(890))) uint890;\ntypedef unsigned int __attribute__ ((bitwidth(891))) uint891;\ntypedef unsigned int __attribute__ ((bitwidth(892))) uint892;\ntypedef unsigned int __attribute__ ((bitwidth(893))) uint893;\ntypedef unsigned int __attribute__ ((bitwidth(894))) uint894;\ntypedef unsigned int __attribute__ ((bitwidth(895))) uint895;\ntypedef unsigned int __attribute__ ((bitwidth(896))) uint896;\ntypedef unsigned int __attribute__ ((bitwidth(897))) uint897;\ntypedef unsigned int __attribute__ ((bitwidth(898))) uint898;\ntypedef unsigned int __attribute__ ((bitwidth(899))) uint899;\ntypedef unsigned int __attribute__ ((bitwidth(900))) uint900;\ntypedef unsigned int __attribute__ ((bitwidth(901))) uint901;\ntypedef unsigned int __attribute__ ((bitwidth(902))) uint902;\ntypedef unsigned int __attribute__ ((bitwidth(903))) uint903;\ntypedef unsigned int __attribute__ ((bitwidth(904))) uint904;\ntypedef unsigned int __attribute__ ((bitwidth(905))) uint905;\ntypedef unsigned int __attribute__ ((bitwidth(906))) uint906;\ntypedef unsigned int __attribute__ ((bitwidth(907))) uint907;\ntypedef unsigned int __attribute__ ((bitwidth(908))) uint908;\ntypedef unsigned int __attribute__ ((bitwidth(909))) uint909;\ntypedef unsigned int __attribute__ ((bitwidth(910))) uint910;\ntypedef unsigned int __attribute__ ((bitwidth(911))) uint911;\ntypedef unsigned int __attribute__ ((bitwidth(912))) uint912;\ntypedef unsigned int __attribute__ ((bitwidth(913))) uint913;\ntypedef unsigned int __attribute__ ((bitwidth(914))) uint914;\ntypedef unsigned int __attribute__ ((bitwidth(915))) uint915;\ntypedef unsigned int __attribute__ ((bitwidth(916))) uint916;\ntypedef unsigned int __attribute__ ((bitwidth(917))) uint917;\ntypedef unsigned int __attribute__ ((bitwidth(918))) uint918;\ntypedef unsigned int __attribute__ ((bitwidth(919))) uint919;\ntypedef unsigned int __attribute__ ((bitwidth(920))) uint920;\ntypedef unsigned int __attribute__ ((bitwidth(921))) uint921;\ntypedef unsigned int __attribute__ ((bitwidth(922))) uint922;\ntypedef unsigned int __attribute__ ((bitwidth(923))) uint923;\ntypedef unsigned int __attribute__ ((bitwidth(924))) uint924;\ntypedef unsigned int __attribute__ ((bitwidth(925))) uint925;\ntypedef unsigned int __attribute__ ((bitwidth(926))) uint926;\ntypedef unsigned int __attribute__ ((bitwidth(927))) uint927;\ntypedef unsigned int __attribute__ ((bitwidth(928))) uint928;\ntypedef unsigned int __attribute__ ((bitwidth(929))) uint929;\ntypedef unsigned int __attribute__ ((bitwidth(930))) uint930;\ntypedef unsigned int __attribute__ ((bitwidth(931))) uint931;\ntypedef unsigned int __attribute__ ((bitwidth(932))) uint932;\ntypedef unsigned int __attribute__ ((bitwidth(933))) uint933;\ntypedef unsigned int __attribute__ ((bitwidth(934))) uint934;\ntypedef unsigned int __attribute__ ((bitwidth(935))) uint935;\ntypedef unsigned int __attribute__ ((bitwidth(936))) uint936;\ntypedef unsigned int __attribute__ ((bitwidth(937))) uint937;\ntypedef unsigned int __attribute__ ((bitwidth(938))) uint938;\ntypedef unsigned int __attribute__ ((bitwidth(939))) uint939;\ntypedef unsigned int __attribute__ ((bitwidth(940))) uint940;\ntypedef unsigned int __attribute__ ((bitwidth(941))) uint941;\ntypedef unsigned int __attribute__ ((bitwidth(942))) uint942;\ntypedef unsigned int __attribute__ ((bitwidth(943))) uint943;\ntypedef unsigned int __attribute__ ((bitwidth(944))) uint944;\ntypedef unsigned int __attribute__ ((bitwidth(945))) uint945;\ntypedef unsigned int __attribute__ ((bitwidth(946))) uint946;\ntypedef unsigned int __attribute__ ((bitwidth(947))) uint947;\ntypedef unsigned int __attribute__ ((bitwidth(948))) uint948;\ntypedef unsigned int __attribute__ ((bitwidth(949))) uint949;\ntypedef unsigned int __attribute__ ((bitwidth(950))) uint950;\ntypedef unsigned int __attribute__ ((bitwidth(951))) uint951;\ntypedef unsigned int __attribute__ ((bitwidth(952))) uint952;\ntypedef unsigned int __attribute__ ((bitwidth(953))) uint953;\ntypedef unsigned int __attribute__ ((bitwidth(954))) uint954;\ntypedef unsigned int __attribute__ ((bitwidth(955))) uint955;\ntypedef unsigned int __attribute__ ((bitwidth(956))) uint956;\ntypedef unsigned int __attribute__ ((bitwidth(957))) uint957;\ntypedef unsigned int __attribute__ ((bitwidth(958))) uint958;\ntypedef unsigned int __attribute__ ((bitwidth(959))) uint959;\ntypedef unsigned int __attribute__ ((bitwidth(960))) uint960;\ntypedef unsigned int __attribute__ ((bitwidth(961))) uint961;\ntypedef unsigned int __attribute__ ((bitwidth(962))) uint962;\ntypedef unsigned int __attribute__ ((bitwidth(963))) uint963;\ntypedef unsigned int __attribute__ ((bitwidth(964))) uint964;\ntypedef unsigned int __attribute__ ((bitwidth(965))) uint965;\ntypedef unsigned int __attribute__ ((bitwidth(966))) uint966;\ntypedef unsigned int __attribute__ ((bitwidth(967))) uint967;\ntypedef unsigned int __attribute__ ((bitwidth(968))) uint968;\ntypedef unsigned int __attribute__ ((bitwidth(969))) uint969;\ntypedef unsigned int __attribute__ ((bitwidth(970))) uint970;\ntypedef unsigned int __attribute__ ((bitwidth(971))) uint971;\ntypedef unsigned int __attribute__ ((bitwidth(972))) uint972;\ntypedef unsigned int __attribute__ ((bitwidth(973))) uint973;\ntypedef unsigned int __attribute__ ((bitwidth(974))) uint974;\ntypedef unsigned int __attribute__ ((bitwidth(975))) uint975;\ntypedef unsigned int __attribute__ ((bitwidth(976))) uint976;\ntypedef unsigned int __attribute__ ((bitwidth(977))) uint977;\ntypedef unsigned int __attribute__ ((bitwidth(978))) uint978;\ntypedef unsigned int __attribute__ ((bitwidth(979))) uint979;\ntypedef unsigned int __attribute__ ((bitwidth(980))) uint980;\ntypedef unsigned int __attribute__ ((bitwidth(981))) uint981;\ntypedef unsigned int __attribute__ ((bitwidth(982))) uint982;\ntypedef unsigned int __attribute__ ((bitwidth(983))) uint983;\ntypedef unsigned int __attribute__ ((bitwidth(984))) uint984;\ntypedef unsigned int __attribute__ ((bitwidth(985))) uint985;\ntypedef unsigned int __attribute__ ((bitwidth(986))) uint986;\ntypedef unsigned int __attribute__ ((bitwidth(987))) uint987;\ntypedef unsigned int __attribute__ ((bitwidth(988))) uint988;\ntypedef unsigned int __attribute__ ((bitwidth(989))) uint989;\ntypedef unsigned int __attribute__ ((bitwidth(990))) uint990;\ntypedef unsigned int __attribute__ ((bitwidth(991))) uint991;\ntypedef unsigned int __attribute__ ((bitwidth(992))) uint992;\ntypedef unsigned int __attribute__ ((bitwidth(993))) uint993;\ntypedef unsigned int __attribute__ ((bitwidth(994))) uint994;\ntypedef unsigned int __attribute__ ((bitwidth(995))) uint995;\ntypedef unsigned int __attribute__ ((bitwidth(996))) uint996;\ntypedef unsigned int __attribute__ ((bitwidth(997))) uint997;\ntypedef unsigned int __attribute__ ((bitwidth(998))) uint998;\ntypedef unsigned int __attribute__ ((bitwidth(999))) uint999;\ntypedef unsigned int __attribute__ ((bitwidth(1000))) uint1000;\ntypedef unsigned int __attribute__ ((bitwidth(1001))) uint1001;\ntypedef unsigned int __attribute__ ((bitwidth(1002))) uint1002;\ntypedef unsigned int __attribute__ ((bitwidth(1003))) uint1003;\ntypedef unsigned int __attribute__ ((bitwidth(1004))) uint1004;\ntypedef unsigned int __attribute__ ((bitwidth(1005))) uint1005;\ntypedef unsigned int __attribute__ ((bitwidth(1006))) uint1006;\ntypedef unsigned int __attribute__ ((bitwidth(1007))) uint1007;\ntypedef unsigned int __attribute__ ((bitwidth(1008))) uint1008;\ntypedef unsigned int __attribute__ ((bitwidth(1009))) uint1009;\ntypedef unsigned int __attribute__ ((bitwidth(1010))) uint1010;\ntypedef unsigned int __attribute__ ((bitwidth(1011))) uint1011;\ntypedef unsigned int __attribute__ ((bitwidth(1012))) uint1012;\ntypedef unsigned int __attribute__ ((bitwidth(1013))) uint1013;\ntypedef unsigned int __attribute__ ((bitwidth(1014))) uint1014;\ntypedef unsigned int __attribute__ ((bitwidth(1015))) uint1015;\ntypedef unsigned int __attribute__ ((bitwidth(1016))) uint1016;\ntypedef unsigned int __attribute__ ((bitwidth(1017))) uint1017;\ntypedef unsigned int __attribute__ ((bitwidth(1018))) uint1018;\ntypedef unsigned int __attribute__ ((bitwidth(1019))) uint1019;\ntypedef unsigned int __attribute__ ((bitwidth(1020))) uint1020;\ntypedef unsigned int __attribute__ ((bitwidth(1021))) uint1021;\ntypedef unsigned int __attribute__ ((bitwidth(1022))) uint1022;\ntypedef unsigned int __attribute__ ((bitwidth(1023))) uint1023;\ntypedef unsigned int __attribute__ ((bitwidth(1024))) uint1024;\n#109 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_dt.h\" 2\n#1 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_dt_ext.def\" 1\n\n\ntypedef unsigned int __attribute__ ((bitwidth(1025))) uint1025;\ntypedef unsigned int __attribute__ ((bitwidth(1026))) uint1026;\ntypedef unsigned int __attribute__ ((bitwidth(1027))) uint1027;\ntypedef unsigned int __attribute__ ((bitwidth(1028))) uint1028;\ntypedef unsigned int __attribute__ ((bitwidth(1029))) uint1029;\ntypedef unsigned int __attribute__ ((bitwidth(1030))) uint1030;\ntypedef unsigned int __attribute__ ((bitwidth(1031))) uint1031;\ntypedef unsigned int __attribute__ ((bitwidth(1032))) uint1032;\ntypedef unsigned int __attribute__ ((bitwidth(1033))) uint1033;\ntypedef unsigned int __attribute__ ((bitwidth(1034))) uint1034;\ntypedef unsigned int __attribute__ ((bitwidth(1035))) uint1035;\ntypedef unsigned int __attribute__ ((bitwidth(1036))) uint1036;\ntypedef unsigned int __attribute__ ((bitwidth(1037))) uint1037;\ntypedef unsigned int __attribute__ ((bitwidth(1038))) uint1038;\ntypedef unsigned int __attribute__ ((bitwidth(1039))) uint1039;\ntypedef unsigned int __attribute__ ((bitwidth(1040))) uint1040;\ntypedef unsigned int __attribute__ ((bitwidth(1041))) uint1041;\ntypedef unsigned int __attribute__ ((bitwidth(1042))) uint1042;\ntypedef unsigned int __attribute__ ((bitwidth(1043))) uint1043;\ntypedef unsigned int __attribute__ ((bitwidth(1044))) uint1044;\ntypedef unsigned int __attribute__ ((bitwidth(1045))) uint1045;\ntypedef unsigned int __attribute__ ((bitwidth(1046))) uint1046;\ntypedef unsigned int __attribute__ ((bitwidth(1047))) uint1047;\ntypedef unsigned int __attribute__ ((bitwidth(1048))) uint1048;\ntypedef unsigned int __attribute__ ((bitwidth(1049))) uint1049;\ntypedef unsigned int __attribute__ ((bitwidth(1050))) uint1050;\ntypedef unsigned int __attribute__ ((bitwidth(1051))) uint1051;\ntypedef unsigned int __attribute__ ((bitwidth(1052))) uint1052;\ntypedef unsigned int __attribute__ ((bitwidth(1053))) uint1053;\ntypedef unsigned int __attribute__ ((bitwidth(1054))) uint1054;\ntypedef unsigned int __attribute__ ((bitwidth(1055))) uint1055;\ntypedef unsigned int __attribute__ ((bitwidth(1056))) uint1056;\ntypedef unsigned int __attribute__ ((bitwidth(1057))) uint1057;\ntypedef unsigned int __attribute__ ((bitwidth(1058))) uint1058;\ntypedef unsigned int __attribute__ ((bitwidth(1059))) uint1059;\ntypedef unsigned int __attribute__ ((bitwidth(1060))) uint1060;\ntypedef unsigned int __attribute__ ((bitwidth(1061))) uint1061;\ntypedef unsigned int __attribute__ ((bitwidth(1062))) uint1062;\ntypedef unsigned int __attribute__ ((bitwidth(1063))) uint1063;\ntypedef unsigned int __attribute__ ((bitwidth(1064))) uint1064;\ntypedef unsigned int __attribute__ ((bitwidth(1065))) uint1065;\ntypedef unsigned int __attribute__ ((bitwidth(1066))) uint1066;\ntypedef unsigned int __attribute__ ((bitwidth(1067))) uint1067;\ntypedef unsigned int __attribute__ ((bitwidth(1068))) uint1068;\ntypedef unsigned int __attribute__ ((bitwidth(1069))) uint1069;\ntypedef unsigned int __attribute__ ((bitwidth(1070))) uint1070;\ntypedef unsigned int __attribute__ ((bitwidth(1071))) uint1071;\ntypedef unsigned int __attribute__ ((bitwidth(1072))) uint1072;\ntypedef unsigned int __attribute__ ((bitwidth(1073))) uint1073;\ntypedef unsigned int __attribute__ ((bitwidth(1074))) uint1074;\ntypedef unsigned int __attribute__ ((bitwidth(1075))) uint1075;\ntypedef unsigned int __attribute__ ((bitwidth(1076))) uint1076;\ntypedef unsigned int __attribute__ ((bitwidth(1077))) uint1077;\ntypedef unsigned int __attribute__ ((bitwidth(1078))) uint1078;\ntypedef unsigned int __attribute__ ((bitwidth(1079))) uint1079;\ntypedef unsigned int __attribute__ ((bitwidth(1080))) uint1080;\ntypedef unsigned int __attribute__ ((bitwidth(1081))) uint1081;\ntypedef unsigned int __attribute__ ((bitwidth(1082))) uint1082;\ntypedef unsigned int __attribute__ ((bitwidth(1083))) uint1083;\ntypedef unsigned int __attribute__ ((bitwidth(1084))) uint1084;\ntypedef unsigned int __attribute__ ((bitwidth(1085))) uint1085;\ntypedef unsigned int __attribute__ ((bitwidth(1086))) uint1086;\ntypedef unsigned int __attribute__ ((bitwidth(1087))) uint1087;\ntypedef unsigned int __attribute__ ((bitwidth(1088))) uint1088;\ntypedef unsigned int __attribute__ ((bitwidth(1089))) uint1089;\ntypedef unsigned int __attribute__ ((bitwidth(1090))) uint1090;\ntypedef unsigned int __attribute__ ((bitwidth(1091))) uint1091;\ntypedef unsigned int __attribute__ ((bitwidth(1092))) uint1092;\ntypedef unsigned int __attribute__ ((bitwidth(1093))) uint1093;\ntypedef unsigned int __attribute__ ((bitwidth(1094))) uint1094;\ntypedef unsigned int __attribute__ ((bitwidth(1095))) uint1095;\ntypedef unsigned int __attribute__ ((bitwidth(1096))) uint1096;\ntypedef unsigned int __attribute__ ((bitwidth(1097))) uint1097;\ntypedef unsigned int __attribute__ ((bitwidth(1098))) uint1098;\ntypedef unsigned int __attribute__ ((bitwidth(1099))) uint1099;\ntypedef unsigned int __attribute__ ((bitwidth(1100))) uint1100;\ntypedef unsigned int __attribute__ ((bitwidth(1101))) uint1101;\ntypedef unsigned int __attribute__ ((bitwidth(1102))) uint1102;\ntypedef unsigned int __attribute__ ((bitwidth(1103))) uint1103;\ntypedef unsigned int __attribute__ ((bitwidth(1104))) uint1104;\ntypedef unsigned int __attribute__ ((bitwidth(1105))) uint1105;\ntypedef unsigned int __attribute__ ((bitwidth(1106))) uint1106;\ntypedef unsigned int __attribute__ ((bitwidth(1107))) uint1107;\ntypedef unsigned int __attribute__ ((bitwidth(1108))) uint1108;\ntypedef unsigned int __attribute__ ((bitwidth(1109))) uint1109;\ntypedef unsigned int __attribute__ ((bitwidth(1110))) uint1110;\ntypedef unsigned int __attribute__ ((bitwidth(1111))) uint1111;\ntypedef unsigned int __attribute__ ((bitwidth(1112))) uint1112;\ntypedef unsigned int __attribute__ ((bitwidth(1113))) uint1113;\ntypedef unsigned int __attribute__ ((bitwidth(1114))) uint1114;\ntypedef unsigned int __attribute__ ((bitwidth(1115))) uint1115;\ntypedef unsigned int __attribute__ ((bitwidth(1116))) uint1116;\ntypedef unsigned int __attribute__ ((bitwidth(1117))) uint1117;\ntypedef unsigned int __attribute__ ((bitwidth(1118))) uint1118;\ntypedef unsigned int __attribute__ ((bitwidth(1119))) uint1119;\ntypedef unsigned int __attribute__ ((bitwidth(1120))) uint1120;\ntypedef unsigned int __attribute__ ((bitwidth(1121))) uint1121;\ntypedef unsigned int __attribute__ ((bitwidth(1122))) uint1122;\ntypedef unsigned int __attribute__ ((bitwidth(1123))) uint1123;\ntypedef unsigned int __attribute__ ((bitwidth(1124))) uint1124;\ntypedef unsigned int __attribute__ ((bitwidth(1125))) uint1125;\ntypedef unsigned int __attribute__ ((bitwidth(1126))) uint1126;\ntypedef unsigned int __attribute__ ((bitwidth(1127))) uint1127;\ntypedef unsigned int __attribute__ ((bitwidth(1128))) uint1128;\ntypedef unsigned int __attribute__ ((bitwidth(1129))) uint1129;\ntypedef unsigned int __attribute__ ((bitwidth(1130))) uint1130;\ntypedef unsigned int __attribute__ ((bitwidth(1131))) uint1131;\ntypedef unsigned int __attribute__ ((bitwidth(1132))) uint1132;\ntypedef unsigned int __attribute__ ((bitwidth(1133))) uint1133;\ntypedef unsigned int __attribute__ ((bitwidth(1134))) uint1134;\ntypedef unsigned int __attribute__ ((bitwidth(1135))) uint1135;\ntypedef unsigned int __attribute__ ((bitwidth(1136))) uint1136;\ntypedef unsigned int __attribute__ ((bitwidth(1137))) uint1137;\ntypedef unsigned int __attribute__ ((bitwidth(1138))) uint1138;\ntypedef unsigned int __attribute__ ((bitwidth(1139))) uint1139;\ntypedef unsigned int __attribute__ ((bitwidth(1140))) uint1140;\ntypedef unsigned int __attribute__ ((bitwidth(1141))) uint1141;\ntypedef unsigned int __attribute__ ((bitwidth(1142))) uint1142;\ntypedef unsigned int __attribute__ ((bitwidth(1143))) uint1143;\ntypedef unsigned int __attribute__ ((bitwidth(1144))) uint1144;\ntypedef unsigned int __attribute__ ((bitwidth(1145))) uint1145;\ntypedef unsigned int __attribute__ ((bitwidth(1146))) uint1146;\ntypedef unsigned int __attribute__ ((bitwidth(1147))) uint1147;\ntypedef unsigned int __attribute__ ((bitwidth(1148))) uint1148;\ntypedef unsigned int __attribute__ ((bitwidth(1149))) uint1149;\ntypedef unsigned int __attribute__ ((bitwidth(1150))) uint1150;\ntypedef unsigned int __attribute__ ((bitwidth(1151))) uint1151;\ntypedef unsigned int __attribute__ ((bitwidth(1152))) uint1152;\ntypedef unsigned int __attribute__ ((bitwidth(1153))) uint1153;\ntypedef unsigned int __attribute__ ((bitwidth(1154))) uint1154;\ntypedef unsigned int __attribute__ ((bitwidth(1155))) uint1155;\ntypedef unsigned int __attribute__ ((bitwidth(1156))) uint1156;\ntypedef unsigned int __attribute__ ((bitwidth(1157))) uint1157;\ntypedef unsigned int __attribute__ ((bitwidth(1158))) uint1158;\ntypedef unsigned int __attribute__ ((bitwidth(1159))) uint1159;\ntypedef unsigned int __attribute__ ((bitwidth(1160))) uint1160;\ntypedef unsigned int __attribute__ ((bitwidth(1161))) uint1161;\ntypedef unsigned int __attribute__ ((bitwidth(1162))) uint1162;\ntypedef unsigned int __attribute__ ((bitwidth(1163))) uint1163;\ntypedef unsigned int __attribute__ ((bitwidth(1164))) uint1164;\ntypedef unsigned int __attribute__ ((bitwidth(1165))) uint1165;\ntypedef unsigned int __attribute__ ((bitwidth(1166))) uint1166;\ntypedef unsigned int __attribute__ ((bitwidth(1167))) uint1167;\ntypedef unsigned int __attribute__ ((bitwidth(1168))) uint1168;\ntypedef unsigned int __attribute__ ((bitwidth(1169))) uint1169;\ntypedef unsigned int __attribute__ ((bitwidth(1170))) uint1170;\ntypedef unsigned int __attribute__ ((bitwidth(1171))) uint1171;\ntypedef unsigned int __attribute__ ((bitwidth(1172))) uint1172;\ntypedef unsigned int __attribute__ ((bitwidth(1173))) uint1173;\ntypedef unsigned int __attribute__ ((bitwidth(1174))) uint1174;\ntypedef unsigned int __attribute__ ((bitwidth(1175))) uint1175;\ntypedef unsigned int __attribute__ ((bitwidth(1176))) uint1176;\ntypedef unsigned int __attribute__ ((bitwidth(1177))) uint1177;\ntypedef unsigned int __attribute__ ((bitwidth(1178))) uint1178;\ntypedef unsigned int __attribute__ ((bitwidth(1179))) uint1179;\ntypedef unsigned int __attribute__ ((bitwidth(1180))) uint1180;\ntypedef unsigned int __attribute__ ((bitwidth(1181))) uint1181;\ntypedef unsigned int __attribute__ ((bitwidth(1182))) uint1182;\ntypedef unsigned int __attribute__ ((bitwidth(1183))) uint1183;\ntypedef unsigned int __attribute__ ((bitwidth(1184))) uint1184;\ntypedef unsigned int __attribute__ ((bitwidth(1185))) uint1185;\ntypedef unsigned int __attribute__ ((bitwidth(1186))) uint1186;\ntypedef unsigned int __attribute__ ((bitwidth(1187))) uint1187;\ntypedef unsigned int __attribute__ ((bitwidth(1188))) uint1188;\ntypedef unsigned int __attribute__ ((bitwidth(1189))) uint1189;\ntypedef unsigned int __attribute__ ((bitwidth(1190))) uint1190;\ntypedef unsigned int __attribute__ ((bitwidth(1191))) uint1191;\ntypedef unsigned int __attribute__ ((bitwidth(1192))) uint1192;\ntypedef unsigned int __attribute__ ((bitwidth(1193))) uint1193;\ntypedef unsigned int __attribute__ ((bitwidth(1194))) uint1194;\ntypedef unsigned int __attribute__ ((bitwidth(1195))) uint1195;\ntypedef unsigned int __attribute__ ((bitwidth(1196))) uint1196;\ntypedef unsigned int __attribute__ ((bitwidth(1197))) uint1197;\ntypedef unsigned int __attribute__ ((bitwidth(1198))) uint1198;\ntypedef unsigned int __attribute__ ((bitwidth(1199))) uint1199;\ntypedef unsigned int __attribute__ ((bitwidth(1200))) uint1200;\ntypedef unsigned int __attribute__ ((bitwidth(1201))) uint1201;\ntypedef unsigned int __attribute__ ((bitwidth(1202))) uint1202;\ntypedef unsigned int __attribute__ ((bitwidth(1203))) uint1203;\ntypedef unsigned int __attribute__ ((bitwidth(1204))) uint1204;\ntypedef unsigned int __attribute__ ((bitwidth(1205))) uint1205;\ntypedef unsigned int __attribute__ ((bitwidth(1206))) uint1206;\ntypedef unsigned int __attribute__ ((bitwidth(1207))) uint1207;\ntypedef unsigned int __attribute__ ((bitwidth(1208))) uint1208;\ntypedef unsigned int __attribute__ ((bitwidth(1209))) uint1209;\ntypedef unsigned int __attribute__ ((bitwidth(1210))) uint1210;\ntypedef unsigned int __attribute__ ((bitwidth(1211))) uint1211;\ntypedef unsigned int __attribute__ ((bitwidth(1212))) uint1212;\ntypedef unsigned int __attribute__ ((bitwidth(1213))) uint1213;\ntypedef unsigned int __attribute__ ((bitwidth(1214))) uint1214;\ntypedef unsigned int __attribute__ ((bitwidth(1215))) uint1215;\ntypedef unsigned int __attribute__ ((bitwidth(1216))) uint1216;\ntypedef unsigned int __attribute__ ((bitwidth(1217))) uint1217;\ntypedef unsigned int __attribute__ ((bitwidth(1218))) uint1218;\ntypedef unsigned int __attribute__ ((bitwidth(1219))) uint1219;\ntypedef unsigned int __attribute__ ((bitwidth(1220))) uint1220;\ntypedef unsigned int __attribute__ ((bitwidth(1221))) uint1221;\ntypedef unsigned int __attribute__ ((bitwidth(1222))) uint1222;\ntypedef unsigned int __attribute__ ((bitwidth(1223))) uint1223;\ntypedef unsigned int __attribute__ ((bitwidth(1224))) uint1224;\ntypedef unsigned int __attribute__ ((bitwidth(1225))) uint1225;\ntypedef unsigned int __attribute__ ((bitwidth(1226))) uint1226;\ntypedef unsigned int __attribute__ ((bitwidth(1227))) uint1227;\ntypedef unsigned int __attribute__ ((bitwidth(1228))) uint1228;\ntypedef unsigned int __attribute__ ((bitwidth(1229))) uint1229;\ntypedef unsigned int __attribute__ ((bitwidth(1230))) uint1230;\ntypedef unsigned int __attribute__ ((bitwidth(1231))) uint1231;\ntypedef unsigned int __attribute__ ((bitwidth(1232))) uint1232;\ntypedef unsigned int __attribute__ ((bitwidth(1233))) uint1233;\ntypedef unsigned int __attribute__ ((bitwidth(1234))) uint1234;\ntypedef unsigned int __attribute__ ((bitwidth(1235))) uint1235;\ntypedef unsigned int __attribute__ ((bitwidth(1236))) uint1236;\ntypedef unsigned int __attribute__ ((bitwidth(1237))) uint1237;\ntypedef unsigned int __attribute__ ((bitwidth(1238))) uint1238;\ntypedef unsigned int __attribute__ ((bitwidth(1239))) uint1239;\ntypedef unsigned int __attribute__ ((bitwidth(1240))) uint1240;\ntypedef unsigned int __attribute__ ((bitwidth(1241))) uint1241;\ntypedef unsigned int __attribute__ ((bitwidth(1242))) uint1242;\ntypedef unsigned int __attribute__ ((bitwidth(1243))) uint1243;\ntypedef unsigned int __attribute__ ((bitwidth(1244))) uint1244;\ntypedef unsigned int __attribute__ ((bitwidth(1245))) uint1245;\ntypedef unsigned int __attribute__ ((bitwidth(1246))) uint1246;\ntypedef unsigned int __attribute__ ((bitwidth(1247))) uint1247;\ntypedef unsigned int __attribute__ ((bitwidth(1248))) uint1248;\ntypedef unsigned int __attribute__ ((bitwidth(1249))) uint1249;\ntypedef unsigned int __attribute__ ((bitwidth(1250))) uint1250;\ntypedef unsigned int __attribute__ ((bitwidth(1251))) uint1251;\ntypedef unsigned int __attribute__ ((bitwidth(1252))) uint1252;\ntypedef unsigned int __attribute__ ((bitwidth(1253))) uint1253;\ntypedef unsigned int __attribute__ ((bitwidth(1254))) uint1254;\ntypedef unsigned int __attribute__ ((bitwidth(1255))) uint1255;\ntypedef unsigned int __attribute__ ((bitwidth(1256))) uint1256;\ntypedef unsigned int __attribute__ ((bitwidth(1257))) uint1257;\ntypedef unsigned int __attribute__ ((bitwidth(1258))) uint1258;\ntypedef unsigned int __attribute__ ((bitwidth(1259))) uint1259;\ntypedef unsigned int __attribute__ ((bitwidth(1260))) uint1260;\ntypedef unsigned int __attribute__ ((bitwidth(1261))) uint1261;\ntypedef unsigned int __attribute__ ((bitwidth(1262))) uint1262;\ntypedef unsigned int __attribute__ ((bitwidth(1263))) uint1263;\ntypedef unsigned int __attribute__ ((bitwidth(1264))) uint1264;\ntypedef unsigned int __attribute__ ((bitwidth(1265))) uint1265;\ntypedef unsigned int __attribute__ ((bitwidth(1266))) uint1266;\ntypedef unsigned int __attribute__ ((bitwidth(1267))) uint1267;\ntypedef unsigned int __attribute__ ((bitwidth(1268))) uint1268;\ntypedef unsigned int __attribute__ ((bitwidth(1269))) uint1269;\ntypedef unsigned int __attribute__ ((bitwidth(1270))) uint1270;\ntypedef unsigned int __attribute__ ((bitwidth(1271))) uint1271;\ntypedef unsigned int __attribute__ ((bitwidth(1272))) uint1272;\ntypedef unsigned int __attribute__ ((bitwidth(1273))) uint1273;\ntypedef unsigned int __attribute__ ((bitwidth(1274))) uint1274;\ntypedef unsigned int __attribute__ ((bitwidth(1275))) uint1275;\ntypedef unsigned int __attribute__ ((bitwidth(1276))) uint1276;\ntypedef unsigned int __attribute__ ((bitwidth(1277))) uint1277;\ntypedef unsigned int __attribute__ ((bitwidth(1278))) uint1278;\ntypedef unsigned int __attribute__ ((bitwidth(1279))) uint1279;\ntypedef unsigned int __attribute__ ((bitwidth(1280))) uint1280;\ntypedef unsigned int __attribute__ ((bitwidth(1281))) uint1281;\ntypedef unsigned int __attribute__ ((bitwidth(1282))) uint1282;\ntypedef unsigned int __attribute__ ((bitwidth(1283))) uint1283;\ntypedef unsigned int __attribute__ ((bitwidth(1284))) uint1284;\ntypedef unsigned int __attribute__ ((bitwidth(1285))) uint1285;\ntypedef unsigned int __attribute__ ((bitwidth(1286))) uint1286;\ntypedef unsigned int __attribute__ ((bitwidth(1287))) uint1287;\ntypedef unsigned int __attribute__ ((bitwidth(1288))) uint1288;\ntypedef unsigned int __attribute__ ((bitwidth(1289))) uint1289;\ntypedef unsigned int __attribute__ ((bitwidth(1290))) uint1290;\ntypedef unsigned int __attribute__ ((bitwidth(1291))) uint1291;\ntypedef unsigned int __attribute__ ((bitwidth(1292))) uint1292;\ntypedef unsigned int __attribute__ ((bitwidth(1293))) uint1293;\ntypedef unsigned int __attribute__ ((bitwidth(1294))) uint1294;\ntypedef unsigned int __attribute__ ((bitwidth(1295))) uint1295;\ntypedef unsigned int __attribute__ ((bitwidth(1296))) uint1296;\ntypedef unsigned int __attribute__ ((bitwidth(1297))) uint1297;\ntypedef unsigned int __attribute__ ((bitwidth(1298))) uint1298;\ntypedef unsigned int __attribute__ ((bitwidth(1299))) uint1299;\ntypedef unsigned int __attribute__ ((bitwidth(1300))) uint1300;\ntypedef unsigned int __attribute__ ((bitwidth(1301))) uint1301;\ntypedef unsigned int __attribute__ ((bitwidth(1302))) uint1302;\ntypedef unsigned int __attribute__ ((bitwidth(1303))) uint1303;\ntypedef unsigned int __attribute__ ((bitwidth(1304))) uint1304;\ntypedef unsigned int __attribute__ ((bitwidth(1305))) uint1305;\ntypedef unsigned int __attribute__ ((bitwidth(1306))) uint1306;\ntypedef unsigned int __attribute__ ((bitwidth(1307))) uint1307;\ntypedef unsigned int __attribute__ ((bitwidth(1308))) uint1308;\ntypedef unsigned int __attribute__ ((bitwidth(1309))) uint1309;\ntypedef unsigned int __attribute__ ((bitwidth(1310))) uint1310;\ntypedef unsigned int __attribute__ ((bitwidth(1311))) uint1311;\ntypedef unsigned int __attribute__ ((bitwidth(1312))) uint1312;\ntypedef unsigned int __attribute__ ((bitwidth(1313))) uint1313;\ntypedef unsigned int __attribute__ ((bitwidth(1314))) uint1314;\ntypedef unsigned int __attribute__ ((bitwidth(1315))) uint1315;\ntypedef unsigned int __attribute__ ((bitwidth(1316))) uint1316;\ntypedef unsigned int __attribute__ ((bitwidth(1317))) uint1317;\ntypedef unsigned int __attribute__ ((bitwidth(1318))) uint1318;\ntypedef unsigned int __attribute__ ((bitwidth(1319))) uint1319;\ntypedef unsigned int __attribute__ ((bitwidth(1320))) uint1320;\ntypedef unsigned int __attribute__ ((bitwidth(1321))) uint1321;\ntypedef unsigned int __attribute__ ((bitwidth(1322))) uint1322;\ntypedef unsigned int __attribute__ ((bitwidth(1323))) uint1323;\ntypedef unsigned int __attribute__ ((bitwidth(1324))) uint1324;\ntypedef unsigned int __attribute__ ((bitwidth(1325))) uint1325;\ntypedef unsigned int __attribute__ ((bitwidth(1326))) uint1326;\ntypedef unsigned int __attribute__ ((bitwidth(1327))) uint1327;\ntypedef unsigned int __attribute__ ((bitwidth(1328))) uint1328;\ntypedef unsigned int __attribute__ ((bitwidth(1329))) uint1329;\ntypedef unsigned int __attribute__ ((bitwidth(1330))) uint1330;\ntypedef unsigned int __attribute__ ((bitwidth(1331))) uint1331;\ntypedef unsigned int __attribute__ ((bitwidth(1332))) uint1332;\ntypedef unsigned int __attribute__ ((bitwidth(1333))) uint1333;\ntypedef unsigned int __attribute__ ((bitwidth(1334))) uint1334;\ntypedef unsigned int __attribute__ ((bitwidth(1335))) uint1335;\ntypedef unsigned int __attribute__ ((bitwidth(1336))) uint1336;\ntypedef unsigned int __attribute__ ((bitwidth(1337))) uint1337;\ntypedef unsigned int __attribute__ ((bitwidth(1338))) uint1338;\ntypedef unsigned int __attribute__ ((bitwidth(1339))) uint1339;\ntypedef unsigned int __attribute__ ((bitwidth(1340))) uint1340;\ntypedef unsigned int __attribute__ ((bitwidth(1341))) uint1341;\ntypedef unsigned int __attribute__ ((bitwidth(1342))) uint1342;\ntypedef unsigned int __attribute__ ((bitwidth(1343))) uint1343;\ntypedef unsigned int __attribute__ ((bitwidth(1344))) uint1344;\ntypedef unsigned int __attribute__ ((bitwidth(1345))) uint1345;\ntypedef unsigned int __attribute__ ((bitwidth(1346))) uint1346;\ntypedef unsigned int __attribute__ ((bitwidth(1347))) uint1347;\ntypedef unsigned int __attribute__ ((bitwidth(1348))) uint1348;\ntypedef unsigned int __attribute__ ((bitwidth(1349))) uint1349;\ntypedef unsigned int __attribute__ ((bitwidth(1350))) uint1350;\ntypedef unsigned int __attribute__ ((bitwidth(1351))) uint1351;\ntypedef unsigned int __attribute__ ((bitwidth(1352))) uint1352;\ntypedef unsigned int __attribute__ ((bitwidth(1353))) uint1353;\ntypedef unsigned int __attribute__ ((bitwidth(1354))) uint1354;\ntypedef unsigned int __attribute__ ((bitwidth(1355))) uint1355;\ntypedef unsigned int __attribute__ ((bitwidth(1356))) uint1356;\ntypedef unsigned int __attribute__ ((bitwidth(1357))) uint1357;\ntypedef unsigned int __attribute__ ((bitwidth(1358))) uint1358;\ntypedef unsigned int __attribute__ ((bitwidth(1359))) uint1359;\ntypedef unsigned int __attribute__ ((bitwidth(1360))) uint1360;\ntypedef unsigned int __attribute__ ((bitwidth(1361))) uint1361;\ntypedef unsigned int __attribute__ ((bitwidth(1362))) uint1362;\ntypedef unsigned int __attribute__ ((bitwidth(1363))) uint1363;\ntypedef unsigned int __attribute__ ((bitwidth(1364))) uint1364;\ntypedef unsigned int __attribute__ ((bitwidth(1365))) uint1365;\ntypedef unsigned int __attribute__ ((bitwidth(1366))) uint1366;\ntypedef unsigned int __attribute__ ((bitwidth(1367))) uint1367;\ntypedef unsigned int __attribute__ ((bitwidth(1368))) uint1368;\ntypedef unsigned int __attribute__ ((bitwidth(1369))) uint1369;\ntypedef unsigned int __attribute__ ((bitwidth(1370))) uint1370;\ntypedef unsigned int __attribute__ ((bitwidth(1371))) uint1371;\ntypedef unsigned int __attribute__ ((bitwidth(1372))) uint1372;\ntypedef unsigned int __attribute__ ((bitwidth(1373))) uint1373;\ntypedef unsigned int __attribute__ ((bitwidth(1374))) uint1374;\ntypedef unsigned int __attribute__ ((bitwidth(1375))) uint1375;\ntypedef unsigned int __attribute__ ((bitwidth(1376))) uint1376;\ntypedef unsigned int __attribute__ ((bitwidth(1377))) uint1377;\ntypedef unsigned int __attribute__ ((bitwidth(1378))) uint1378;\ntypedef unsigned int __attribute__ ((bitwidth(1379))) uint1379;\ntypedef unsigned int __attribute__ ((bitwidth(1380))) uint1380;\ntypedef unsigned int __attribute__ ((bitwidth(1381))) uint1381;\ntypedef unsigned int __attribute__ ((bitwidth(1382))) uint1382;\ntypedef unsigned int __attribute__ ((bitwidth(1383))) uint1383;\ntypedef unsigned int __attribute__ ((bitwidth(1384))) uint1384;\ntypedef unsigned int __attribute__ ((bitwidth(1385))) uint1385;\ntypedef unsigned int __attribute__ ((bitwidth(1386))) uint1386;\ntypedef unsigned int __attribute__ ((bitwidth(1387))) uint1387;\ntypedef unsigned int __attribute__ ((bitwidth(1388))) uint1388;\ntypedef unsigned int __attribute__ ((bitwidth(1389))) uint1389;\ntypedef unsigned int __attribute__ ((bitwidth(1390))) uint1390;\ntypedef unsigned int __attribute__ ((bitwidth(1391))) uint1391;\ntypedef unsigned int __attribute__ ((bitwidth(1392))) uint1392;\ntypedef unsigned int __attribute__ ((bitwidth(1393))) uint1393;\ntypedef unsigned int __attribute__ ((bitwidth(1394))) uint1394;\ntypedef unsigned int __attribute__ ((bitwidth(1395))) uint1395;\ntypedef unsigned int __attribute__ ((bitwidth(1396))) uint1396;\ntypedef unsigned int __attribute__ ((bitwidth(1397))) uint1397;\ntypedef unsigned int __attribute__ ((bitwidth(1398))) uint1398;\ntypedef unsigned int __attribute__ ((bitwidth(1399))) uint1399;\ntypedef unsigned int __attribute__ ((bitwidth(1400))) uint1400;\ntypedef unsigned int __attribute__ ((bitwidth(1401))) uint1401;\ntypedef unsigned int __attribute__ ((bitwidth(1402))) uint1402;\ntypedef unsigned int __attribute__ ((bitwidth(1403))) uint1403;\ntypedef unsigned int __attribute__ ((bitwidth(1404))) uint1404;\ntypedef unsigned int __attribute__ ((bitwidth(1405))) uint1405;\ntypedef unsigned int __attribute__ ((bitwidth(1406))) uint1406;\ntypedef unsigned int __attribute__ ((bitwidth(1407))) uint1407;\ntypedef unsigned int __attribute__ ((bitwidth(1408))) uint1408;\ntypedef unsigned int __attribute__ ((bitwidth(1409))) uint1409;\ntypedef unsigned int __attribute__ ((bitwidth(1410))) uint1410;\ntypedef unsigned int __attribute__ ((bitwidth(1411))) uint1411;\ntypedef unsigned int __attribute__ ((bitwidth(1412))) uint1412;\ntypedef unsigned int __attribute__ ((bitwidth(1413))) uint1413;\ntypedef unsigned int __attribute__ ((bitwidth(1414))) uint1414;\ntypedef unsigned int __attribute__ ((bitwidth(1415))) uint1415;\ntypedef unsigned int __attribute__ ((bitwidth(1416))) uint1416;\ntypedef unsigned int __attribute__ ((bitwidth(1417))) uint1417;\ntypedef unsigned int __attribute__ ((bitwidth(1418))) uint1418;\ntypedef unsigned int __attribute__ ((bitwidth(1419))) uint1419;\ntypedef unsigned int __attribute__ ((bitwidth(1420))) uint1420;\ntypedef unsigned int __attribute__ ((bitwidth(1421))) uint1421;\ntypedef unsigned int __attribute__ ((bitwidth(1422))) uint1422;\ntypedef unsigned int __attribute__ ((bitwidth(1423))) uint1423;\ntypedef unsigned int __attribute__ ((bitwidth(1424))) uint1424;\ntypedef unsigned int __attribute__ ((bitwidth(1425))) uint1425;\ntypedef unsigned int __attribute__ ((bitwidth(1426))) uint1426;\ntypedef unsigned int __attribute__ ((bitwidth(1427))) uint1427;\ntypedef unsigned int __attribute__ ((bitwidth(1428))) uint1428;\ntypedef unsigned int __attribute__ ((bitwidth(1429))) uint1429;\ntypedef unsigned int __attribute__ ((bitwidth(1430))) uint1430;\ntypedef unsigned int __attribute__ ((bitwidth(1431))) uint1431;\ntypedef unsigned int __attribute__ ((bitwidth(1432))) uint1432;\ntypedef unsigned int __attribute__ ((bitwidth(1433))) uint1433;\ntypedef unsigned int __attribute__ ((bitwidth(1434))) uint1434;\ntypedef unsigned int __attribute__ ((bitwidth(1435))) uint1435;\ntypedef unsigned int __attribute__ ((bitwidth(1436))) uint1436;\ntypedef unsigned int __attribute__ ((bitwidth(1437))) uint1437;\ntypedef unsigned int __attribute__ ((bitwidth(1438))) uint1438;\ntypedef unsigned int __attribute__ ((bitwidth(1439))) uint1439;\ntypedef unsigned int __attribute__ ((bitwidth(1440))) uint1440;\ntypedef unsigned int __attribute__ ((bitwidth(1441))) uint1441;\ntypedef unsigned int __attribute__ ((bitwidth(1442))) uint1442;\ntypedef unsigned int __attribute__ ((bitwidth(1443))) uint1443;\ntypedef unsigned int __attribute__ ((bitwidth(1444))) uint1444;\ntypedef unsigned int __attribute__ ((bitwidth(1445))) uint1445;\ntypedef unsigned int __attribute__ ((bitwidth(1446))) uint1446;\ntypedef unsigned int __attribute__ ((bitwidth(1447))) uint1447;\ntypedef unsigned int __attribute__ ((bitwidth(1448))) uint1448;\ntypedef unsigned int __attribute__ ((bitwidth(1449))) uint1449;\ntypedef unsigned int __attribute__ ((bitwidth(1450))) uint1450;\ntypedef unsigned int __attribute__ ((bitwidth(1451))) uint1451;\ntypedef unsigned int __attribute__ ((bitwidth(1452))) uint1452;\ntypedef unsigned int __attribute__ ((bitwidth(1453))) uint1453;\ntypedef unsigned int __attribute__ ((bitwidth(1454))) uint1454;\ntypedef unsigned int __attribute__ ((bitwidth(1455))) uint1455;\ntypedef unsigned int __attribute__ ((bitwidth(1456))) uint1456;\ntypedef unsigned int __attribute__ ((bitwidth(1457))) uint1457;\ntypedef unsigned int __attribute__ ((bitwidth(1458))) uint1458;\ntypedef unsigned int __attribute__ ((bitwidth(1459))) uint1459;\ntypedef unsigned int __attribute__ ((bitwidth(1460))) uint1460;\ntypedef unsigned int __attribute__ ((bitwidth(1461))) uint1461;\ntypedef unsigned int __attribute__ ((bitwidth(1462))) uint1462;\ntypedef unsigned int __attribute__ ((bitwidth(1463))) uint1463;\ntypedef unsigned int __attribute__ ((bitwidth(1464))) uint1464;\ntypedef unsigned int __attribute__ ((bitwidth(1465))) uint1465;\ntypedef unsigned int __attribute__ ((bitwidth(1466))) uint1466;\ntypedef unsigned int __attribute__ ((bitwidth(1467))) uint1467;\ntypedef unsigned int __attribute__ ((bitwidth(1468))) uint1468;\ntypedef unsigned int __attribute__ ((bitwidth(1469))) uint1469;\ntypedef unsigned int __attribute__ ((bitwidth(1470))) uint1470;\ntypedef unsigned int __attribute__ ((bitwidth(1471))) uint1471;\ntypedef unsigned int __attribute__ ((bitwidth(1472))) uint1472;\ntypedef unsigned int __attribute__ ((bitwidth(1473))) uint1473;\ntypedef unsigned int __attribute__ ((bitwidth(1474))) uint1474;\ntypedef unsigned int __attribute__ ((bitwidth(1475))) uint1475;\ntypedef unsigned int __attribute__ ((bitwidth(1476))) uint1476;\ntypedef unsigned int __attribute__ ((bitwidth(1477))) uint1477;\ntypedef unsigned int __attribute__ ((bitwidth(1478))) uint1478;\ntypedef unsigned int __attribute__ ((bitwidth(1479))) uint1479;\ntypedef unsigned int __attribute__ ((bitwidth(1480))) uint1480;\ntypedef unsigned int __attribute__ ((bitwidth(1481))) uint1481;\ntypedef unsigned int __attribute__ ((bitwidth(1482))) uint1482;\ntypedef unsigned int __attribute__ ((bitwidth(1483))) uint1483;\ntypedef unsigned int __attribute__ ((bitwidth(1484))) uint1484;\ntypedef unsigned int __attribute__ ((bitwidth(1485))) uint1485;\ntypedef unsigned int __attribute__ ((bitwidth(1486))) uint1486;\ntypedef unsigned int __attribute__ ((bitwidth(1487))) uint1487;\ntypedef unsigned int __attribute__ ((bitwidth(1488))) uint1488;\ntypedef unsigned int __attribute__ ((bitwidth(1489))) uint1489;\ntypedef unsigned int __attribute__ ((bitwidth(1490))) uint1490;\ntypedef unsigned int __attribute__ ((bitwidth(1491))) uint1491;\ntypedef unsigned int __attribute__ ((bitwidth(1492))) uint1492;\ntypedef unsigned int __attribute__ ((bitwidth(1493))) uint1493;\ntypedef unsigned int __attribute__ ((bitwidth(1494))) uint1494;\ntypedef unsigned int __attribute__ ((bitwidth(1495))) uint1495;\ntypedef unsigned int __attribute__ ((bitwidth(1496))) uint1496;\ntypedef unsigned int __attribute__ ((bitwidth(1497))) uint1497;\ntypedef unsigned int __attribute__ ((bitwidth(1498))) uint1498;\ntypedef unsigned int __attribute__ ((bitwidth(1499))) uint1499;\ntypedef unsigned int __attribute__ ((bitwidth(1500))) uint1500;\ntypedef unsigned int __attribute__ ((bitwidth(1501))) uint1501;\ntypedef unsigned int __attribute__ ((bitwidth(1502))) uint1502;\ntypedef unsigned int __attribute__ ((bitwidth(1503))) uint1503;\ntypedef unsigned int __attribute__ ((bitwidth(1504))) uint1504;\ntypedef unsigned int __attribute__ ((bitwidth(1505))) uint1505;\ntypedef unsigned int __attribute__ ((bitwidth(1506))) uint1506;\ntypedef unsigned int __attribute__ ((bitwidth(1507))) uint1507;\ntypedef unsigned int __attribute__ ((bitwidth(1508))) uint1508;\ntypedef unsigned int __attribute__ ((bitwidth(1509))) uint1509;\ntypedef unsigned int __attribute__ ((bitwidth(1510))) uint1510;\ntypedef unsigned int __attribute__ ((bitwidth(1511))) uint1511;\ntypedef unsigned int __attribute__ ((bitwidth(1512))) uint1512;\ntypedef unsigned int __attribute__ ((bitwidth(1513))) uint1513;\ntypedef unsigned int __attribute__ ((bitwidth(1514))) uint1514;\ntypedef unsigned int __attribute__ ((bitwidth(1515))) uint1515;\ntypedef unsigned int __attribute__ ((bitwidth(1516))) uint1516;\ntypedef unsigned int __attribute__ ((bitwidth(1517))) uint1517;\ntypedef unsigned int __attribute__ ((bitwidth(1518))) uint1518;\ntypedef unsigned int __attribute__ ((bitwidth(1519))) uint1519;\ntypedef unsigned int __attribute__ ((bitwidth(1520))) uint1520;\ntypedef unsigned int __attribute__ ((bitwidth(1521))) uint1521;\ntypedef unsigned int __attribute__ ((bitwidth(1522))) uint1522;\ntypedef unsigned int __attribute__ ((bitwidth(1523))) uint1523;\ntypedef unsigned int __attribute__ ((bitwidth(1524))) uint1524;\ntypedef unsigned int __attribute__ ((bitwidth(1525))) uint1525;\ntypedef unsigned int __attribute__ ((bitwidth(1526))) uint1526;\ntypedef unsigned int __attribute__ ((bitwidth(1527))) uint1527;\ntypedef unsigned int __attribute__ ((bitwidth(1528))) uint1528;\ntypedef unsigned int __attribute__ ((bitwidth(1529))) uint1529;\ntypedef unsigned int __attribute__ ((bitwidth(1530))) uint1530;\ntypedef unsigned int __attribute__ ((bitwidth(1531))) uint1531;\ntypedef unsigned int __attribute__ ((bitwidth(1532))) uint1532;\ntypedef unsigned int __attribute__ ((bitwidth(1533))) uint1533;\ntypedef unsigned int __attribute__ ((bitwidth(1534))) uint1534;\ntypedef unsigned int __attribute__ ((bitwidth(1535))) uint1535;\ntypedef unsigned int __attribute__ ((bitwidth(1536))) uint1536;\ntypedef unsigned int __attribute__ ((bitwidth(1537))) uint1537;\ntypedef unsigned int __attribute__ ((bitwidth(1538))) uint1538;\ntypedef unsigned int __attribute__ ((bitwidth(1539))) uint1539;\ntypedef unsigned int __attribute__ ((bitwidth(1540))) uint1540;\ntypedef unsigned int __attribute__ ((bitwidth(1541))) uint1541;\ntypedef unsigned int __attribute__ ((bitwidth(1542))) uint1542;\ntypedef unsigned int __attribute__ ((bitwidth(1543))) uint1543;\ntypedef unsigned int __attribute__ ((bitwidth(1544))) uint1544;\ntypedef unsigned int __attribute__ ((bitwidth(1545))) uint1545;\ntypedef unsigned int __attribute__ ((bitwidth(1546))) uint1546;\ntypedef unsigned int __attribute__ ((bitwidth(1547))) uint1547;\ntypedef unsigned int __attribute__ ((bitwidth(1548))) uint1548;\ntypedef unsigned int __attribute__ ((bitwidth(1549))) uint1549;\ntypedef unsigned int __attribute__ ((bitwidth(1550))) uint1550;\ntypedef unsigned int __attribute__ ((bitwidth(1551))) uint1551;\ntypedef unsigned int __attribute__ ((bitwidth(1552))) uint1552;\ntypedef unsigned int __attribute__ ((bitwidth(1553))) uint1553;\ntypedef unsigned int __attribute__ ((bitwidth(1554))) uint1554;\ntypedef unsigned int __attribute__ ((bitwidth(1555))) uint1555;\ntypedef unsigned int __attribute__ ((bitwidth(1556))) uint1556;\ntypedef unsigned int __attribute__ ((bitwidth(1557))) uint1557;\ntypedef unsigned int __attribute__ ((bitwidth(1558))) uint1558;\ntypedef unsigned int __attribute__ ((bitwidth(1559))) uint1559;\ntypedef unsigned int __attribute__ ((bitwidth(1560))) uint1560;\ntypedef unsigned int __attribute__ ((bitwidth(1561))) uint1561;\ntypedef unsigned int __attribute__ ((bitwidth(1562))) uint1562;\ntypedef unsigned int __attribute__ ((bitwidth(1563))) uint1563;\ntypedef unsigned int __attribute__ ((bitwidth(1564))) uint1564;\ntypedef unsigned int __attribute__ ((bitwidth(1565))) uint1565;\ntypedef unsigned int __attribute__ ((bitwidth(1566))) uint1566;\ntypedef unsigned int __attribute__ ((bitwidth(1567))) uint1567;\ntypedef unsigned int __attribute__ ((bitwidth(1568))) uint1568;\ntypedef unsigned int __attribute__ ((bitwidth(1569))) uint1569;\ntypedef unsigned int __attribute__ ((bitwidth(1570))) uint1570;\ntypedef unsigned int __attribute__ ((bitwidth(1571))) uint1571;\ntypedef unsigned int __attribute__ ((bitwidth(1572))) uint1572;\ntypedef unsigned int __attribute__ ((bitwidth(1573))) uint1573;\ntypedef unsigned int __attribute__ ((bitwidth(1574))) uint1574;\ntypedef unsigned int __attribute__ ((bitwidth(1575))) uint1575;\ntypedef unsigned int __attribute__ ((bitwidth(1576))) uint1576;\ntypedef unsigned int __attribute__ ((bitwidth(1577))) uint1577;\ntypedef unsigned int __attribute__ ((bitwidth(1578))) uint1578;\ntypedef unsigned int __attribute__ ((bitwidth(1579))) uint1579;\ntypedef unsigned int __attribute__ ((bitwidth(1580))) uint1580;\ntypedef unsigned int __attribute__ ((bitwidth(1581))) uint1581;\ntypedef unsigned int __attribute__ ((bitwidth(1582))) uint1582;\ntypedef unsigned int __attribute__ ((bitwidth(1583))) uint1583;\ntypedef unsigned int __attribute__ ((bitwidth(1584))) uint1584;\ntypedef unsigned int __attribute__ ((bitwidth(1585))) uint1585;\ntypedef unsigned int __attribute__ ((bitwidth(1586))) uint1586;\ntypedef unsigned int __attribute__ ((bitwidth(1587))) uint1587;\ntypedef unsigned int __attribute__ ((bitwidth(1588))) uint1588;\ntypedef unsigned int __attribute__ ((bitwidth(1589))) uint1589;\ntypedef unsigned int __attribute__ ((bitwidth(1590))) uint1590;\ntypedef unsigned int __attribute__ ((bitwidth(1591))) uint1591;\ntypedef unsigned int __attribute__ ((bitwidth(1592))) uint1592;\ntypedef unsigned int __attribute__ ((bitwidth(1593))) uint1593;\ntypedef unsigned int __attribute__ ((bitwidth(1594))) uint1594;\ntypedef unsigned int __attribute__ ((bitwidth(1595))) uint1595;\ntypedef unsigned int __attribute__ ((bitwidth(1596))) uint1596;\ntypedef unsigned int __attribute__ ((bitwidth(1597))) uint1597;\ntypedef unsigned int __attribute__ ((bitwidth(1598))) uint1598;\ntypedef unsigned int __attribute__ ((bitwidth(1599))) uint1599;\ntypedef unsigned int __attribute__ ((bitwidth(1600))) uint1600;\ntypedef unsigned int __attribute__ ((bitwidth(1601))) uint1601;\ntypedef unsigned int __attribute__ ((bitwidth(1602))) uint1602;\ntypedef unsigned int __attribute__ ((bitwidth(1603))) uint1603;\ntypedef unsigned int __attribute__ ((bitwidth(1604))) uint1604;\ntypedef unsigned int __attribute__ ((bitwidth(1605))) uint1605;\ntypedef unsigned int __attribute__ ((bitwidth(1606))) uint1606;\ntypedef unsigned int __attribute__ ((bitwidth(1607))) uint1607;\ntypedef unsigned int __attribute__ ((bitwidth(1608))) uint1608;\ntypedef unsigned int __attribute__ ((bitwidth(1609))) uint1609;\ntypedef unsigned int __attribute__ ((bitwidth(1610))) uint1610;\ntypedef unsigned int __attribute__ ((bitwidth(1611))) uint1611;\ntypedef unsigned int __attribute__ ((bitwidth(1612))) uint1612;\ntypedef unsigned int __attribute__ ((bitwidth(1613))) uint1613;\ntypedef unsigned int __attribute__ ((bitwidth(1614))) uint1614;\ntypedef unsigned int __attribute__ ((bitwidth(1615))) uint1615;\ntypedef unsigned int __attribute__ ((bitwidth(1616))) uint1616;\ntypedef unsigned int __attribute__ ((bitwidth(1617))) uint1617;\ntypedef unsigned int __attribute__ ((bitwidth(1618))) uint1618;\ntypedef unsigned int __attribute__ ((bitwidth(1619))) uint1619;\ntypedef unsigned int __attribute__ ((bitwidth(1620))) uint1620;\ntypedef unsigned int __attribute__ ((bitwidth(1621))) uint1621;\ntypedef unsigned int __attribute__ ((bitwidth(1622))) uint1622;\ntypedef unsigned int __attribute__ ((bitwidth(1623))) uint1623;\ntypedef unsigned int __attribute__ ((bitwidth(1624))) uint1624;\ntypedef unsigned int __attribute__ ((bitwidth(1625))) uint1625;\ntypedef unsigned int __attribute__ ((bitwidth(1626))) uint1626;\ntypedef unsigned int __attribute__ ((bitwidth(1627))) uint1627;\ntypedef unsigned int __attribute__ ((bitwidth(1628))) uint1628;\ntypedef unsigned int __attribute__ ((bitwidth(1629))) uint1629;\ntypedef unsigned int __attribute__ ((bitwidth(1630))) uint1630;\ntypedef unsigned int __attribute__ ((bitwidth(1631))) uint1631;\ntypedef unsigned int __attribute__ ((bitwidth(1632))) uint1632;\ntypedef unsigned int __attribute__ ((bitwidth(1633))) uint1633;\ntypedef unsigned int __attribute__ ((bitwidth(1634))) uint1634;\ntypedef unsigned int __attribute__ ((bitwidth(1635))) uint1635;\ntypedef unsigned int __attribute__ ((bitwidth(1636))) uint1636;\ntypedef unsigned int __attribute__ ((bitwidth(1637))) uint1637;\ntypedef unsigned int __attribute__ ((bitwidth(1638))) uint1638;\ntypedef unsigned int __attribute__ ((bitwidth(1639))) uint1639;\ntypedef unsigned int __attribute__ ((bitwidth(1640))) uint1640;\ntypedef unsigned int __attribute__ ((bitwidth(1641))) uint1641;\ntypedef unsigned int __attribute__ ((bitwidth(1642))) uint1642;\ntypedef unsigned int __attribute__ ((bitwidth(1643))) uint1643;\ntypedef unsigned int __attribute__ ((bitwidth(1644))) uint1644;\ntypedef unsigned int __attribute__ ((bitwidth(1645))) uint1645;\ntypedef unsigned int __attribute__ ((bitwidth(1646))) uint1646;\ntypedef unsigned int __attribute__ ((bitwidth(1647))) uint1647;\ntypedef unsigned int __attribute__ ((bitwidth(1648))) uint1648;\ntypedef unsigned int __attribute__ ((bitwidth(1649))) uint1649;\ntypedef unsigned int __attribute__ ((bitwidth(1650))) uint1650;\ntypedef unsigned int __attribute__ ((bitwidth(1651))) uint1651;\ntypedef unsigned int __attribute__ ((bitwidth(1652))) uint1652;\ntypedef unsigned int __attribute__ ((bitwidth(1653))) uint1653;\ntypedef unsigned int __attribute__ ((bitwidth(1654))) uint1654;\ntypedef unsigned int __attribute__ ((bitwidth(1655))) uint1655;\ntypedef unsigned int __attribute__ ((bitwidth(1656))) uint1656;\ntypedef unsigned int __attribute__ ((bitwidth(1657))) uint1657;\ntypedef unsigned int __attribute__ ((bitwidth(1658))) uint1658;\ntypedef unsigned int __attribute__ ((bitwidth(1659))) uint1659;\ntypedef unsigned int __attribute__ ((bitwidth(1660))) uint1660;\ntypedef unsigned int __attribute__ ((bitwidth(1661))) uint1661;\ntypedef unsigned int __attribute__ ((bitwidth(1662))) uint1662;\ntypedef unsigned int __attribute__ ((bitwidth(1663))) uint1663;\ntypedef unsigned int __attribute__ ((bitwidth(1664))) uint1664;\ntypedef unsigned int __attribute__ ((bitwidth(1665))) uint1665;\ntypedef unsigned int __attribute__ ((bitwidth(1666))) uint1666;\ntypedef unsigned int __attribute__ ((bitwidth(1667))) uint1667;\ntypedef unsigned int __attribute__ ((bitwidth(1668))) uint1668;\ntypedef unsigned int __attribute__ ((bitwidth(1669))) uint1669;\ntypedef unsigned int __attribute__ ((bitwidth(1670))) uint1670;\ntypedef unsigned int __attribute__ ((bitwidth(1671))) uint1671;\ntypedef unsigned int __attribute__ ((bitwidth(1672))) uint1672;\ntypedef unsigned int __attribute__ ((bitwidth(1673))) uint1673;\ntypedef unsigned int __attribute__ ((bitwidth(1674))) uint1674;\ntypedef unsigned int __attribute__ ((bitwidth(1675))) uint1675;\ntypedef unsigned int __attribute__ ((bitwidth(1676))) uint1676;\ntypedef unsigned int __attribute__ ((bitwidth(1677))) uint1677;\ntypedef unsigned int __attribute__ ((bitwidth(1678))) uint1678;\ntypedef unsigned int __attribute__ ((bitwidth(1679))) uint1679;\ntypedef unsigned int __attribute__ ((bitwidth(1680))) uint1680;\ntypedef unsigned int __attribute__ ((bitwidth(1681))) uint1681;\ntypedef unsigned int __attribute__ ((bitwidth(1682))) uint1682;\ntypedef unsigned int __attribute__ ((bitwidth(1683))) uint1683;\ntypedef unsigned int __attribute__ ((bitwidth(1684))) uint1684;\ntypedef unsigned int __attribute__ ((bitwidth(1685))) uint1685;\ntypedef unsigned int __attribute__ ((bitwidth(1686))) uint1686;\ntypedef unsigned int __attribute__ ((bitwidth(1687))) uint1687;\ntypedef unsigned int __attribute__ ((bitwidth(1688))) uint1688;\ntypedef unsigned int __attribute__ ((bitwidth(1689))) uint1689;\ntypedef unsigned int __attribute__ ((bitwidth(1690))) uint1690;\ntypedef unsigned int __attribute__ ((bitwidth(1691))) uint1691;\ntypedef unsigned int __attribute__ ((bitwidth(1692))) uint1692;\ntypedef unsigned int __attribute__ ((bitwidth(1693))) uint1693;\ntypedef unsigned int __attribute__ ((bitwidth(1694))) uint1694;\ntypedef unsigned int __attribute__ ((bitwidth(1695))) uint1695;\ntypedef unsigned int __attribute__ ((bitwidth(1696))) uint1696;\ntypedef unsigned int __attribute__ ((bitwidth(1697))) uint1697;\ntypedef unsigned int __attribute__ ((bitwidth(1698))) uint1698;\ntypedef unsigned int __attribute__ ((bitwidth(1699))) uint1699;\ntypedef unsigned int __attribute__ ((bitwidth(1700))) uint1700;\ntypedef unsigned int __attribute__ ((bitwidth(1701))) uint1701;\ntypedef unsigned int __attribute__ ((bitwidth(1702))) uint1702;\ntypedef unsigned int __attribute__ ((bitwidth(1703))) uint1703;\ntypedef unsigned int __attribute__ ((bitwidth(1704))) uint1704;\ntypedef unsigned int __attribute__ ((bitwidth(1705))) uint1705;\ntypedef unsigned int __attribute__ ((bitwidth(1706))) uint1706;\ntypedef unsigned int __attribute__ ((bitwidth(1707))) uint1707;\ntypedef unsigned int __attribute__ ((bitwidth(1708))) uint1708;\ntypedef unsigned int __attribute__ ((bitwidth(1709))) uint1709;\ntypedef unsigned int __attribute__ ((bitwidth(1710))) uint1710;\ntypedef unsigned int __attribute__ ((bitwidth(1711))) uint1711;\ntypedef unsigned int __attribute__ ((bitwidth(1712))) uint1712;\ntypedef unsigned int __attribute__ ((bitwidth(1713))) uint1713;\ntypedef unsigned int __attribute__ ((bitwidth(1714))) uint1714;\ntypedef unsigned int __attribute__ ((bitwidth(1715))) uint1715;\ntypedef unsigned int __attribute__ ((bitwidth(1716))) uint1716;\ntypedef unsigned int __attribute__ ((bitwidth(1717))) uint1717;\ntypedef unsigned int __attribute__ ((bitwidth(1718))) uint1718;\ntypedef unsigned int __attribute__ ((bitwidth(1719))) uint1719;\ntypedef unsigned int __attribute__ ((bitwidth(1720))) uint1720;\ntypedef unsigned int __attribute__ ((bitwidth(1721))) uint1721;\ntypedef unsigned int __attribute__ ((bitwidth(1722))) uint1722;\ntypedef unsigned int __attribute__ ((bitwidth(1723))) uint1723;\ntypedef unsigned int __attribute__ ((bitwidth(1724))) uint1724;\ntypedef unsigned int __attribute__ ((bitwidth(1725))) uint1725;\ntypedef unsigned int __attribute__ ((bitwidth(1726))) uint1726;\ntypedef unsigned int __attribute__ ((bitwidth(1727))) uint1727;\ntypedef unsigned int __attribute__ ((bitwidth(1728))) uint1728;\ntypedef unsigned int __attribute__ ((bitwidth(1729))) uint1729;\ntypedef unsigned int __attribute__ ((bitwidth(1730))) uint1730;\ntypedef unsigned int __attribute__ ((bitwidth(1731))) uint1731;\ntypedef unsigned int __attribute__ ((bitwidth(1732))) uint1732;\ntypedef unsigned int __attribute__ ((bitwidth(1733))) uint1733;\ntypedef unsigned int __attribute__ ((bitwidth(1734))) uint1734;\ntypedef unsigned int __attribute__ ((bitwidth(1735))) uint1735;\ntypedef unsigned int __attribute__ ((bitwidth(1736))) uint1736;\ntypedef unsigned int __attribute__ ((bitwidth(1737))) uint1737;\ntypedef unsigned int __attribute__ ((bitwidth(1738))) uint1738;\ntypedef unsigned int __attribute__ ((bitwidth(1739))) uint1739;\ntypedef unsigned int __attribute__ ((bitwidth(1740))) uint1740;\ntypedef unsigned int __attribute__ ((bitwidth(1741))) uint1741;\ntypedef unsigned int __attribute__ ((bitwidth(1742))) uint1742;\ntypedef unsigned int __attribute__ ((bitwidth(1743))) uint1743;\ntypedef unsigned int __attribute__ ((bitwidth(1744))) uint1744;\ntypedef unsigned int __attribute__ ((bitwidth(1745))) uint1745;\ntypedef unsigned int __attribute__ ((bitwidth(1746))) uint1746;\ntypedef unsigned int __attribute__ ((bitwidth(1747))) uint1747;\ntypedef unsigned int __attribute__ ((bitwidth(1748))) uint1748;\ntypedef unsigned int __attribute__ ((bitwidth(1749))) uint1749;\ntypedef unsigned int __attribute__ ((bitwidth(1750))) uint1750;\ntypedef unsigned int __attribute__ ((bitwidth(1751))) uint1751;\ntypedef unsigned int __attribute__ ((bitwidth(1752))) uint1752;\ntypedef unsigned int __attribute__ ((bitwidth(1753))) uint1753;\ntypedef unsigned int __attribute__ ((bitwidth(1754))) uint1754;\ntypedef unsigned int __attribute__ ((bitwidth(1755))) uint1755;\ntypedef unsigned int __attribute__ ((bitwidth(1756))) uint1756;\ntypedef unsigned int __attribute__ ((bitwidth(1757))) uint1757;\ntypedef unsigned int __attribute__ ((bitwidth(1758))) uint1758;\ntypedef unsigned int __attribute__ ((bitwidth(1759))) uint1759;\ntypedef unsigned int __attribute__ ((bitwidth(1760))) uint1760;\ntypedef unsigned int __attribute__ ((bitwidth(1761))) uint1761;\ntypedef unsigned int __attribute__ ((bitwidth(1762))) uint1762;\ntypedef unsigned int __attribute__ ((bitwidth(1763))) uint1763;\ntypedef unsigned int __attribute__ ((bitwidth(1764))) uint1764;\ntypedef unsigned int __attribute__ ((bitwidth(1765))) uint1765;\ntypedef unsigned int __attribute__ ((bitwidth(1766))) uint1766;\ntypedef unsigned int __attribute__ ((bitwidth(1767))) uint1767;\ntypedef unsigned int __attribute__ ((bitwidth(1768))) uint1768;\ntypedef unsigned int __attribute__ ((bitwidth(1769))) uint1769;\ntypedef unsigned int __attribute__ ((bitwidth(1770))) uint1770;\ntypedef unsigned int __attribute__ ((bitwidth(1771))) uint1771;\ntypedef unsigned int __attribute__ ((bitwidth(1772))) uint1772;\ntypedef unsigned int __attribute__ ((bitwidth(1773))) uint1773;\ntypedef unsigned int __attribute__ ((bitwidth(1774))) uint1774;\ntypedef unsigned int __attribute__ ((bitwidth(1775))) uint1775;\ntypedef unsigned int __attribute__ ((bitwidth(1776))) uint1776;\ntypedef unsigned int __attribute__ ((bitwidth(1777))) uint1777;\ntypedef unsigned int __attribute__ ((bitwidth(1778))) uint1778;\ntypedef unsigned int __attribute__ ((bitwidth(1779))) uint1779;\ntypedef unsigned int __attribute__ ((bitwidth(1780))) uint1780;\ntypedef unsigned int __attribute__ ((bitwidth(1781))) uint1781;\ntypedef unsigned int __attribute__ ((bitwidth(1782))) uint1782;\ntypedef unsigned int __attribute__ ((bitwidth(1783))) uint1783;\ntypedef unsigned int __attribute__ ((bitwidth(1784))) uint1784;\ntypedef unsigned int __attribute__ ((bitwidth(1785))) uint1785;\ntypedef unsigned int __attribute__ ((bitwidth(1786))) uint1786;\ntypedef unsigned int __attribute__ ((bitwidth(1787))) uint1787;\ntypedef unsigned int __attribute__ ((bitwidth(1788))) uint1788;\ntypedef unsigned int __attribute__ ((bitwidth(1789))) uint1789;\ntypedef unsigned int __attribute__ ((bitwidth(1790))) uint1790;\ntypedef unsigned int __attribute__ ((bitwidth(1791))) uint1791;\ntypedef unsigned int __attribute__ ((bitwidth(1792))) uint1792;\ntypedef unsigned int __attribute__ ((bitwidth(1793))) uint1793;\ntypedef unsigned int __attribute__ ((bitwidth(1794))) uint1794;\ntypedef unsigned int __attribute__ ((bitwidth(1795))) uint1795;\ntypedef unsigned int __attribute__ ((bitwidth(1796))) uint1796;\ntypedef unsigned int __attribute__ ((bitwidth(1797))) uint1797;\ntypedef unsigned int __attribute__ ((bitwidth(1798))) uint1798;\ntypedef unsigned int __attribute__ ((bitwidth(1799))) uint1799;\ntypedef unsigned int __attribute__ ((bitwidth(1800))) uint1800;\ntypedef unsigned int __attribute__ ((bitwidth(1801))) uint1801;\ntypedef unsigned int __attribute__ ((bitwidth(1802))) uint1802;\ntypedef unsigned int __attribute__ ((bitwidth(1803))) uint1803;\ntypedef unsigned int __attribute__ ((bitwidth(1804))) uint1804;\ntypedef unsigned int __attribute__ ((bitwidth(1805))) uint1805;\ntypedef unsigned int __attribute__ ((bitwidth(1806))) uint1806;\ntypedef unsigned int __attribute__ ((bitwidth(1807))) uint1807;\ntypedef unsigned int __attribute__ ((bitwidth(1808))) uint1808;\ntypedef unsigned int __attribute__ ((bitwidth(1809))) uint1809;\ntypedef unsigned int __attribute__ ((bitwidth(1810))) uint1810;\ntypedef unsigned int __attribute__ ((bitwidth(1811))) uint1811;\ntypedef unsigned int __attribute__ ((bitwidth(1812))) uint1812;\ntypedef unsigned int __attribute__ ((bitwidth(1813))) uint1813;\ntypedef unsigned int __attribute__ ((bitwidth(1814))) uint1814;\ntypedef unsigned int __attribute__ ((bitwidth(1815))) uint1815;\ntypedef unsigned int __attribute__ ((bitwidth(1816))) uint1816;\ntypedef unsigned int __attribute__ ((bitwidth(1817))) uint1817;\ntypedef unsigned int __attribute__ ((bitwidth(1818))) uint1818;\ntypedef unsigned int __attribute__ ((bitwidth(1819))) uint1819;\ntypedef unsigned int __attribute__ ((bitwidth(1820))) uint1820;\ntypedef unsigned int __attribute__ ((bitwidth(1821))) uint1821;\ntypedef unsigned int __attribute__ ((bitwidth(1822))) uint1822;\ntypedef unsigned int __attribute__ ((bitwidth(1823))) uint1823;\ntypedef unsigned int __attribute__ ((bitwidth(1824))) uint1824;\ntypedef unsigned int __attribute__ ((bitwidth(1825))) uint1825;\ntypedef unsigned int __attribute__ ((bitwidth(1826))) uint1826;\ntypedef unsigned int __attribute__ ((bitwidth(1827))) uint1827;\ntypedef unsigned int __attribute__ ((bitwidth(1828))) uint1828;\ntypedef unsigned int __attribute__ ((bitwidth(1829))) uint1829;\ntypedef unsigned int __attribute__ ((bitwidth(1830))) uint1830;\ntypedef unsigned int __attribute__ ((bitwidth(1831))) uint1831;\ntypedef unsigned int __attribute__ ((bitwidth(1832))) uint1832;\ntypedef unsigned int __attribute__ ((bitwidth(1833))) uint1833;\ntypedef unsigned int __attribute__ ((bitwidth(1834))) uint1834;\ntypedef unsigned int __attribute__ ((bitwidth(1835))) uint1835;\ntypedef unsigned int __attribute__ ((bitwidth(1836))) uint1836;\ntypedef unsigned int __attribute__ ((bitwidth(1837))) uint1837;\ntypedef unsigned int __attribute__ ((bitwidth(1838))) uint1838;\ntypedef unsigned int __attribute__ ((bitwidth(1839))) uint1839;\ntypedef unsigned int __attribute__ ((bitwidth(1840))) uint1840;\ntypedef unsigned int __attribute__ ((bitwidth(1841))) uint1841;\ntypedef unsigned int __attribute__ ((bitwidth(1842))) uint1842;\ntypedef unsigned int __attribute__ ((bitwidth(1843))) uint1843;\ntypedef unsigned int __attribute__ ((bitwidth(1844))) uint1844;\ntypedef unsigned int __attribute__ ((bitwidth(1845))) uint1845;\ntypedef unsigned int __attribute__ ((bitwidth(1846))) uint1846;\ntypedef unsigned int __attribute__ ((bitwidth(1847))) uint1847;\ntypedef unsigned int __attribute__ ((bitwidth(1848))) uint1848;\ntypedef unsigned int __attribute__ ((bitwidth(1849))) uint1849;\ntypedef unsigned int __attribute__ ((bitwidth(1850))) uint1850;\ntypedef unsigned int __attribute__ ((bitwidth(1851))) uint1851;\ntypedef unsigned int __attribute__ ((bitwidth(1852))) uint1852;\ntypedef unsigned int __attribute__ ((bitwidth(1853))) uint1853;\ntypedef unsigned int __attribute__ ((bitwidth(1854))) uint1854;\ntypedef unsigned int __attribute__ ((bitwidth(1855))) uint1855;\ntypedef unsigned int __attribute__ ((bitwidth(1856))) uint1856;\ntypedef unsigned int __attribute__ ((bitwidth(1857))) uint1857;\ntypedef unsigned int __attribute__ ((bitwidth(1858))) uint1858;\ntypedef unsigned int __attribute__ ((bitwidth(1859))) uint1859;\ntypedef unsigned int __attribute__ ((bitwidth(1860))) uint1860;\ntypedef unsigned int __attribute__ ((bitwidth(1861))) uint1861;\ntypedef unsigned int __attribute__ ((bitwidth(1862))) uint1862;\ntypedef unsigned int __attribute__ ((bitwidth(1863))) uint1863;\ntypedef unsigned int __attribute__ ((bitwidth(1864))) uint1864;\ntypedef unsigned int __attribute__ ((bitwidth(1865))) uint1865;\ntypedef unsigned int __attribute__ ((bitwidth(1866))) uint1866;\ntypedef unsigned int __attribute__ ((bitwidth(1867))) uint1867;\ntypedef unsigned int __attribute__ ((bitwidth(1868))) uint1868;\ntypedef unsigned int __attribute__ ((bitwidth(1869))) uint1869;\ntypedef unsigned int __attribute__ ((bitwidth(1870))) uint1870;\ntypedef unsigned int __attribute__ ((bitwidth(1871))) uint1871;\ntypedef unsigned int __attribute__ ((bitwidth(1872))) uint1872;\ntypedef unsigned int __attribute__ ((bitwidth(1873))) uint1873;\ntypedef unsigned int __attribute__ ((bitwidth(1874))) uint1874;\ntypedef unsigned int __attribute__ ((bitwidth(1875))) uint1875;\ntypedef unsigned int __attribute__ ((bitwidth(1876))) uint1876;\ntypedef unsigned int __attribute__ ((bitwidth(1877))) uint1877;\ntypedef unsigned int __attribute__ ((bitwidth(1878))) uint1878;\ntypedef unsigned int __attribute__ ((bitwidth(1879))) uint1879;\ntypedef unsigned int __attribute__ ((bitwidth(1880))) uint1880;\ntypedef unsigned int __attribute__ ((bitwidth(1881))) uint1881;\ntypedef unsigned int __attribute__ ((bitwidth(1882))) uint1882;\ntypedef unsigned int __attribute__ ((bitwidth(1883))) uint1883;\ntypedef unsigned int __attribute__ ((bitwidth(1884))) uint1884;\ntypedef unsigned int __attribute__ ((bitwidth(1885))) uint1885;\ntypedef unsigned int __attribute__ ((bitwidth(1886))) uint1886;\ntypedef unsigned int __attribute__ ((bitwidth(1887))) uint1887;\ntypedef unsigned int __attribute__ ((bitwidth(1888))) uint1888;\ntypedef unsigned int __attribute__ ((bitwidth(1889))) uint1889;\ntypedef unsigned int __attribute__ ((bitwidth(1890))) uint1890;\ntypedef unsigned int __attribute__ ((bitwidth(1891))) uint1891;\ntypedef unsigned int __attribute__ ((bitwidth(1892))) uint1892;\ntypedef unsigned int __attribute__ ((bitwidth(1893))) uint1893;\ntypedef unsigned int __attribute__ ((bitwidth(1894))) uint1894;\ntypedef unsigned int __attribute__ ((bitwidth(1895))) uint1895;\ntypedef unsigned int __attribute__ ((bitwidth(1896))) uint1896;\ntypedef unsigned int __attribute__ ((bitwidth(1897))) uint1897;\ntypedef unsigned int __attribute__ ((bitwidth(1898))) uint1898;\ntypedef unsigned int __attribute__ ((bitwidth(1899))) uint1899;\ntypedef unsigned int __attribute__ ((bitwidth(1900))) uint1900;\ntypedef unsigned int __attribute__ ((bitwidth(1901))) uint1901;\ntypedef unsigned int __attribute__ ((bitwidth(1902))) uint1902;\ntypedef unsigned int __attribute__ ((bitwidth(1903))) uint1903;\ntypedef unsigned int __attribute__ ((bitwidth(1904))) uint1904;\ntypedef unsigned int __attribute__ ((bitwidth(1905))) uint1905;\ntypedef unsigned int __attribute__ ((bitwidth(1906))) uint1906;\ntypedef unsigned int __attribute__ ((bitwidth(1907))) uint1907;\ntypedef unsigned int __attribute__ ((bitwidth(1908))) uint1908;\ntypedef unsigned int __attribute__ ((bitwidth(1909))) uint1909;\ntypedef unsigned int __attribute__ ((bitwidth(1910))) uint1910;\ntypedef unsigned int __attribute__ ((bitwidth(1911))) uint1911;\ntypedef unsigned int __attribute__ ((bitwidth(1912))) uint1912;\ntypedef unsigned int __attribute__ ((bitwidth(1913))) uint1913;\ntypedef unsigned int __attribute__ ((bitwidth(1914))) uint1914;\ntypedef unsigned int __attribute__ ((bitwidth(1915))) uint1915;\ntypedef unsigned int __attribute__ ((bitwidth(1916))) uint1916;\ntypedef unsigned int __attribute__ ((bitwidth(1917))) uint1917;\ntypedef unsigned int __attribute__ ((bitwidth(1918))) uint1918;\ntypedef unsigned int __attribute__ ((bitwidth(1919))) uint1919;\ntypedef unsigned int __attribute__ ((bitwidth(1920))) uint1920;\ntypedef unsigned int __attribute__ ((bitwidth(1921))) uint1921;\ntypedef unsigned int __attribute__ ((bitwidth(1922))) uint1922;\ntypedef unsigned int __attribute__ ((bitwidth(1923))) uint1923;\ntypedef unsigned int __attribute__ ((bitwidth(1924))) uint1924;\ntypedef unsigned int __attribute__ ((bitwidth(1925))) uint1925;\ntypedef unsigned int __attribute__ ((bitwidth(1926))) uint1926;\ntypedef unsigned int __attribute__ ((bitwidth(1927))) uint1927;\ntypedef unsigned int __attribute__ ((bitwidth(1928))) uint1928;\ntypedef unsigned int __attribute__ ((bitwidth(1929))) uint1929;\ntypedef unsigned int __attribute__ ((bitwidth(1930))) uint1930;\ntypedef unsigned int __attribute__ ((bitwidth(1931))) uint1931;\ntypedef unsigned int __attribute__ ((bitwidth(1932))) uint1932;\ntypedef unsigned int __attribute__ ((bitwidth(1933))) uint1933;\ntypedef unsigned int __attribute__ ((bitwidth(1934))) uint1934;\ntypedef unsigned int __attribute__ ((bitwidth(1935))) uint1935;\ntypedef unsigned int __attribute__ ((bitwidth(1936))) uint1936;\ntypedef unsigned int __attribute__ ((bitwidth(1937))) uint1937;\ntypedef unsigned int __attribute__ ((bitwidth(1938))) uint1938;\ntypedef unsigned int __attribute__ ((bitwidth(1939))) uint1939;\ntypedef unsigned int __attribute__ ((bitwidth(1940))) uint1940;\ntypedef unsigned int __attribute__ ((bitwidth(1941))) uint1941;\ntypedef unsigned int __attribute__ ((bitwidth(1942))) uint1942;\ntypedef unsigned int __attribute__ ((bitwidth(1943))) uint1943;\ntypedef unsigned int __attribute__ ((bitwidth(1944))) uint1944;\ntypedef unsigned int __attribute__ ((bitwidth(1945))) uint1945;\ntypedef unsigned int __attribute__ ((bitwidth(1946))) uint1946;\ntypedef unsigned int __attribute__ ((bitwidth(1947))) uint1947;\ntypedef unsigned int __attribute__ ((bitwidth(1948))) uint1948;\ntypedef unsigned int __attribute__ ((bitwidth(1949))) uint1949;\ntypedef unsigned int __attribute__ ((bitwidth(1950))) uint1950;\ntypedef unsigned int __attribute__ ((bitwidth(1951))) uint1951;\ntypedef unsigned int __attribute__ ((bitwidth(1952))) uint1952;\ntypedef unsigned int __attribute__ ((bitwidth(1953))) uint1953;\ntypedef unsigned int __attribute__ ((bitwidth(1954))) uint1954;\ntypedef unsigned int __attribute__ ((bitwidth(1955))) uint1955;\ntypedef unsigned int __attribute__ ((bitwidth(1956))) uint1956;\ntypedef unsigned int __attribute__ ((bitwidth(1957))) uint1957;\ntypedef unsigned int __attribute__ ((bitwidth(1958))) uint1958;\ntypedef unsigned int __attribute__ ((bitwidth(1959))) uint1959;\ntypedef unsigned int __attribute__ ((bitwidth(1960))) uint1960;\ntypedef unsigned int __attribute__ ((bitwidth(1961))) uint1961;\ntypedef unsigned int __attribute__ ((bitwidth(1962))) uint1962;\ntypedef unsigned int __attribute__ ((bitwidth(1963))) uint1963;\ntypedef unsigned int __attribute__ ((bitwidth(1964))) uint1964;\ntypedef unsigned int __attribute__ ((bitwidth(1965))) uint1965;\ntypedef unsigned int __attribute__ ((bitwidth(1966))) uint1966;\ntypedef unsigned int __attribute__ ((bitwidth(1967))) uint1967;\ntypedef unsigned int __attribute__ ((bitwidth(1968))) uint1968;\ntypedef unsigned int __attribute__ ((bitwidth(1969))) uint1969;\ntypedef unsigned int __attribute__ ((bitwidth(1970))) uint1970;\ntypedef unsigned int __attribute__ ((bitwidth(1971))) uint1971;\ntypedef unsigned int __attribute__ ((bitwidth(1972))) uint1972;\ntypedef unsigned int __attribute__ ((bitwidth(1973))) uint1973;\ntypedef unsigned int __attribute__ ((bitwidth(1974))) uint1974;\ntypedef unsigned int __attribute__ ((bitwidth(1975))) uint1975;\ntypedef unsigned int __attribute__ ((bitwidth(1976))) uint1976;\ntypedef unsigned int __attribute__ ((bitwidth(1977))) uint1977;\ntypedef unsigned int __attribute__ ((bitwidth(1978))) uint1978;\ntypedef unsigned int __attribute__ ((bitwidth(1979))) uint1979;\ntypedef unsigned int __attribute__ ((bitwidth(1980))) uint1980;\ntypedef unsigned int __attribute__ ((bitwidth(1981))) uint1981;\ntypedef unsigned int __attribute__ ((bitwidth(1982))) uint1982;\ntypedef unsigned int __attribute__ ((bitwidth(1983))) uint1983;\ntypedef unsigned int __attribute__ ((bitwidth(1984))) uint1984;\ntypedef unsigned int __attribute__ ((bitwidth(1985))) uint1985;\ntypedef unsigned int __attribute__ ((bitwidth(1986))) uint1986;\ntypedef unsigned int __attribute__ ((bitwidth(1987))) uint1987;\ntypedef unsigned int __attribute__ ((bitwidth(1988))) uint1988;\ntypedef unsigned int __attribute__ ((bitwidth(1989))) uint1989;\ntypedef unsigned int __attribute__ ((bitwidth(1990))) uint1990;\ntypedef unsigned int __attribute__ ((bitwidth(1991))) uint1991;\ntypedef unsigned int __attribute__ ((bitwidth(1992))) uint1992;\ntypedef unsigned int __attribute__ ((bitwidth(1993))) uint1993;\ntypedef unsigned int __attribute__ ((bitwidth(1994))) uint1994;\ntypedef unsigned int __attribute__ ((bitwidth(1995))) uint1995;\ntypedef unsigned int __attribute__ ((bitwidth(1996))) uint1996;\ntypedef unsigned int __attribute__ ((bitwidth(1997))) uint1997;\ntypedef unsigned int __attribute__ ((bitwidth(1998))) uint1998;\ntypedef unsigned int __attribute__ ((bitwidth(1999))) uint1999;\ntypedef unsigned int __attribute__ ((bitwidth(2000))) uint2000;\ntypedef unsigned int __attribute__ ((bitwidth(2001))) uint2001;\ntypedef unsigned int __attribute__ ((bitwidth(2002))) uint2002;\ntypedef unsigned int __attribute__ ((bitwidth(2003))) uint2003;\ntypedef unsigned int __attribute__ ((bitwidth(2004))) uint2004;\ntypedef unsigned int __attribute__ ((bitwidth(2005))) uint2005;\ntypedef unsigned int __attribute__ ((bitwidth(2006))) uint2006;\ntypedef unsigned int __attribute__ ((bitwidth(2007))) uint2007;\ntypedef unsigned int __attribute__ ((bitwidth(2008))) uint2008;\ntypedef unsigned int __attribute__ ((bitwidth(2009))) uint2009;\ntypedef unsigned int __attribute__ ((bitwidth(2010))) uint2010;\ntypedef unsigned int __attribute__ ((bitwidth(2011))) uint2011;\ntypedef unsigned int __attribute__ ((bitwidth(2012))) uint2012;\ntypedef unsigned int __attribute__ ((bitwidth(2013))) uint2013;\ntypedef unsigned int __attribute__ ((bitwidth(2014))) uint2014;\ntypedef unsigned int __attribute__ ((bitwidth(2015))) uint2015;\ntypedef unsigned int __attribute__ ((bitwidth(2016))) uint2016;\ntypedef unsigned int __attribute__ ((bitwidth(2017))) uint2017;\ntypedef unsigned int __attribute__ ((bitwidth(2018))) uint2018;\ntypedef unsigned int __attribute__ ((bitwidth(2019))) uint2019;\ntypedef unsigned int __attribute__ ((bitwidth(2020))) uint2020;\ntypedef unsigned int __attribute__ ((bitwidth(2021))) uint2021;\ntypedef unsigned int __attribute__ ((bitwidth(2022))) uint2022;\ntypedef unsigned int __attribute__ ((bitwidth(2023))) uint2023;\ntypedef unsigned int __attribute__ ((bitwidth(2024))) uint2024;\ntypedef unsigned int __attribute__ ((bitwidth(2025))) uint2025;\ntypedef unsigned int __attribute__ ((bitwidth(2026))) uint2026;\ntypedef unsigned int __attribute__ ((bitwidth(2027))) uint2027;\ntypedef unsigned int __attribute__ ((bitwidth(2028))) uint2028;\ntypedef unsigned int __attribute__ ((bitwidth(2029))) uint2029;\ntypedef unsigned int __attribute__ ((bitwidth(2030))) uint2030;\ntypedef unsigned int __attribute__ ((bitwidth(2031))) uint2031;\ntypedef unsigned int __attribute__ ((bitwidth(2032))) uint2032;\ntypedef unsigned int __attribute__ ((bitwidth(2033))) uint2033;\ntypedef unsigned int __attribute__ ((bitwidth(2034))) uint2034;\ntypedef unsigned int __attribute__ ((bitwidth(2035))) uint2035;\ntypedef unsigned int __attribute__ ((bitwidth(2036))) uint2036;\ntypedef unsigned int __attribute__ ((bitwidth(2037))) uint2037;\ntypedef unsigned int __attribute__ ((bitwidth(2038))) uint2038;\ntypedef unsigned int __attribute__ ((bitwidth(2039))) uint2039;\ntypedef unsigned int __attribute__ ((bitwidth(2040))) uint2040;\ntypedef unsigned int __attribute__ ((bitwidth(2041))) uint2041;\ntypedef unsigned int __attribute__ ((bitwidth(2042))) uint2042;\ntypedef unsigned int __attribute__ ((bitwidth(2043))) uint2043;\ntypedef unsigned int __attribute__ ((bitwidth(2044))) uint2044;\ntypedef unsigned int __attribute__ ((bitwidth(2045))) uint2045;\ntypedef unsigned int __attribute__ ((bitwidth(2046))) uint2046;\ntypedef unsigned int __attribute__ ((bitwidth(2047))) uint2047;\ntypedef unsigned int __attribute__ ((bitwidth(2048))) uint2048;\n#110 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_dt.h\" 2\n#131 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_dt.h\"\ntypedef int __attribute__ ((bitwidth(64))) int64;\ntypedef unsigned int __attribute__ ((bitwidth(64))) uint64;\n#58 \"C:/Xilinx/Vivado/2018.2/include/etc/autopilot_apint.h\" 2\n#1 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_ssdm_bits.h\" 1\n#64 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_ssdm_bits.h\"\n#1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\assert.h\" 1 3\n#15 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\assert.h\" 3\n#1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 1 3\n#15 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\assert.h\" 2 3\n\n\n\n\n\n\n\n void __cdecl __attribute__ ((__nothrow__)) exit(int _Code) __attribute__ ((__noreturn__));\n __attribute__ ((__dllimport__)) void __cdecl __attribute__ ((__nothrow__)) _exit(int _Code) __attribute__ ((__noreturn__));\n\n\n\n void __cdecl _Exit(int) __attribute__ ((__noreturn__));\n#36 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\assert.h\" 3\n void __cdecl __attribute__((noreturn)) abort(void);\n#45 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\assert.h\" 3\nextern void __cdecl\n_wassert(const wchar_t *_Message,const wchar_t *_File,unsigned _Line);\nextern void __cdecl\n_assert (const char *_Message, const char *_File, unsigned _Line);\n#65 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_ssdm_bits.h\" 2\n\n\n\n\n\n\n\n#1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 1 3\n\n\n\n\n\n\n\n\n#1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 1 3\n#9 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 2 3\n\n#1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/include\\\\limits.h\" 1 3 4\n#38 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/include\\\\limits.h\" 3 4\n#1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\limits.h\" 1 3 4\n\n\n\n\n\n#1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 1 3 4\n#6 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\limits.h\" 2 3 4\n#38 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/include\\\\limits.h\" 2 3 4\n#10 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 2 3\n\n\n#pragma pack(push,_CRT_PACKING)\n#36 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n typedef int (__cdecl *_onexit_t)(void);\n#46 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n typedef struct _div_t {\n int quot;\n int rem;\n } div_t;\n\n typedef struct _ldiv_t {\n long quot;\n long rem;\n } ldiv_t;\n\n\n\n\n\n#pragma pack(4)\n typedef struct {\n unsigned char ld[10];\n } _LDOUBLE;\n#pragma pack()\n\n\n\n typedef struct {\n double x;\n } _CRT_DOUBLE;\n\n typedef struct {\n float f;\n } _CRT_FLOAT;\n\n\n\n\n typedef struct {\n long double x;\n } _LONGDOUBLE;\n\n\n\n#pragma pack(4)\n typedef struct {\n unsigned char ld12[12];\n } _LDBL12;\n#pragma pack()\n#100 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n extern int * __imp___mb_cur_max;\n\n\n\n\n\n\n\n extern int* __imp___mbcur_max;\n#132 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n typedef void (__cdecl *_purecall_handler)(void);\n\n __attribute__ ((__dllimport__)) _purecall_handler __cdecl _set_purecall_handler(_purecall_handler _Handler);\n __attribute__ ((__dllimport__)) _purecall_handler __cdecl _get_purecall_handler(void);\n\n typedef void (__cdecl *_invalid_parameter_handler)(const wchar_t *,const wchar_t *,const wchar_t *,unsigned int,uintptr_t);\n _invalid_parameter_handler __cdecl _set_invalid_parameter_handler(_invalid_parameter_handler _Handler);\n _invalid_parameter_handler __cdecl _get_invalid_parameter_handler(void);\n\n\n\n __attribute__ ((__dllimport__)) extern int *__cdecl _errno(void);\n\n errno_t __cdecl _set_errno(int _Value);\n errno_t __cdecl _get_errno(int *_Value);\n\n __attribute__ ((__dllimport__)) unsigned long *__cdecl __doserrno(void);\n\n errno_t __cdecl _set_doserrno(unsigned long _Value);\n errno_t __cdecl _get_doserrno(unsigned long *_Value);\n\n\n\n\n extern __attribute__ ((__dllimport__)) char *_sys_errlist[1];\n extern __attribute__ ((__dllimport__)) int _sys_nerr;\n#172 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n extern int * __imp___argc;\n\n\n\n\n\n\n\n extern char *** __imp___argv;\n\n\n\n\n\n\n\n extern wchar_t *** __imp___wargv;\n#200 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n extern char *** __imp__environ;\n#209 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n extern wchar_t *** __imp__wenviron;\n#218 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n extern char ** __imp__pgmptr;\n#227 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n extern wchar_t ** __imp__wpgmptr;\n\n\n\n errno_t __cdecl _get_pgmptr(char **_Value);\n errno_t __cdecl _get_wpgmptr(wchar_t **_Value);\n\n\n\n\n extern int * __imp__fmode;\n\n\n\n __attribute__ ((__dllimport__)) errno_t __cdecl _set_fmode(int _Mode);\n __attribute__ ((__dllimport__)) errno_t __cdecl _get_fmode(int *_PMode);\n\n\n\n\n\n extern unsigned int * __imp__osplatform;\n#257 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n extern unsigned int * __imp__osver;\n#266 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n extern unsigned int * __imp__winver;\n#275 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n extern unsigned int * __imp__winmajor;\n#284 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n extern unsigned int * __imp__winminor;\n\n\n\n\n errno_t __cdecl _get_osplatform(unsigned int *_Value);\n errno_t __cdecl _get_osver(unsigned int *_Value);\n errno_t __cdecl _get_winver(unsigned int *_Value);\n errno_t __cdecl _get_winmajor(unsigned int *_Value);\n errno_t __cdecl _get_winminor(unsigned int *_Value);\n#326 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n __attribute__ ((__dllimport__)) unsigned int __cdecl _set_abort_behavior(unsigned int _Flags,unsigned int _Mask);\n\n\n\n int __cdecl abs(int _X);\n long __cdecl labs(long _X);\n\n\n __extension__ long long __cdecl _abs64(long long);\n int __cdecl atexit(void (__cdecl *)(void));\n\n\n double __cdecl atof(const char *_String);\n double __cdecl _atof_l(const char *_String,_locale_t _Locale);\n\n int __cdecl atoi(const char *_Str);\n __attribute__ ((__dllimport__)) int __cdecl _atoi_l(const char *_Str,_locale_t _Locale);\n long __cdecl atol(const char *_Str);\n __attribute__ ((__dllimport__)) long __cdecl _atol_l(const char *_Str,_locale_t _Locale);\n\n\n void *__cdecl bsearch(const void *_Key,const void *_Base,size_t _NumOfElements,size_t _SizeOfElements,int (__cdecl *_PtFuncCompare)(const void *,const void *));\n void __cdecl qsort(void *_Base,size_t _NumOfElements,size_t _SizeOfElements,int (__cdecl *_PtFuncCompare)(const void *,const void *));\n\n unsigned short __cdecl _byteswap_ushort(unsigned short _Short);\n\n __extension__ unsigned long long __cdecl _byteswap_uint64(unsigned long long _Int64);\n div_t __cdecl div(int _Numerator,int _Denominator);\n char *__cdecl getenv(const char *_VarName) ;\n __attribute__ ((__dllimport__)) char *__cdecl _itoa(int _Value,char *_Dest,int _Radix);\n __extension__ __attribute__ ((__dllimport__)) char *__cdecl _i64toa(long long _Val,char *_DstBuf,int _Radix) ;\n __extension__ __attribute__ ((__dllimport__)) char *__cdecl _ui64toa(unsigned long long _Val,char *_DstBuf,int _Radix) ;\n __extension__ __attribute__ ((__dllimport__)) long long __cdecl _atoi64(const char *_String);\n __extension__ __attribute__ ((__dllimport__)) long long __cdecl _atoi64_l(const char *_String,_locale_t _Locale);\n __extension__ __attribute__ ((__dllimport__)) long long __cdecl _strtoi64(const char *_String,char **_EndPtr,int _Radix);\n __extension__ __attribute__ ((__dllimport__)) long long __cdecl _strtoi64_l(const char *_String,char **_EndPtr,int _Radix,_locale_t _Locale);\n __extension__ __attribute__ ((__dllimport__)) unsigned long long __cdecl _strtoui64(const char *_String,char **_EndPtr,int _Radix);\n __extension__ __attribute__ ((__dllimport__)) unsigned long long __cdecl _strtoui64_l(const char *_String,char **_EndPtr,int _Radix,_locale_t _Locale);\n ldiv_t __cdecl ldiv(long _Numerator,long _Denominator);\n __attribute__ ((__dllimport__)) char *__cdecl _ltoa(long _Value,char *_Dest,int _Radix) ;\n int __cdecl mblen(const char *_Ch,size_t _MaxCount);\n __attribute__ ((__dllimport__)) int __cdecl _mblen_l(const char *_Ch,size_t _MaxCount,_locale_t _Locale);\n __attribute__ ((__dllimport__)) size_t __cdecl _mbstrlen(const char *_Str);\n __attribute__ ((__dllimport__)) size_t __cdecl _mbstrlen_l(const char *_Str,_locale_t _Locale);\n __attribute__ ((__dllimport__)) size_t __cdecl _mbstrnlen(const char *_Str,size_t _MaxCount);\n __attribute__ ((__dllimport__)) size_t __cdecl _mbstrnlen_l(const char *_Str,size_t _MaxCount,_locale_t _Locale);\n int __cdecl mbtowc(wchar_t * __restrict__ _DstCh,const char * __restrict__ _SrcCh,size_t _SrcSizeInBytes);\n __attribute__ ((__dllimport__)) int __cdecl _mbtowc_l(wchar_t * __restrict__ _DstCh,const char * __restrict__ _SrcCh,size_t _SrcSizeInBytes,_locale_t _Locale);\n size_t __cdecl mbstowcs(wchar_t * __restrict__ _Dest,const char * __restrict__ _Source,size_t _MaxCount);\n __attribute__ ((__dllimport__)) size_t __cdecl _mbstowcs_l(wchar_t * __restrict__ _Dest,const char * __restrict__ _Source,size_t _MaxCount,_locale_t _Locale);\n int __cdecl rand(void);\n __attribute__ ((__dllimport__)) int __cdecl _set_error_mode(int _Mode);\n void __cdecl srand(unsigned int _Seed);\n\n\n\n double __cdecl __attribute__ ((__nothrow__)) strtod(const char * __restrict__ _Str,char ** __restrict__ _EndPtr);\n float __cdecl __attribute__ ((__nothrow__)) strtof(const char * __restrict__ nptr, char ** __restrict__ endptr);\n long double __cdecl __attribute__ ((__nothrow__)) strtold(const char * __restrict__ , char ** __restrict__ );\n\n\n extern double __cdecl __attribute__ ((__nothrow__))\n __strtod (const char * __restrict__ , char ** __restrict__);\n#400 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n float __cdecl __mingw_strtof (const char * __restrict__, char ** __restrict__);\n long double __cdecl __mingw_strtold(const char * __restrict__, char ** __restrict__);\n\n __attribute__ ((__dllimport__)) double __cdecl _strtod_l(const char * __restrict__ _Str,char ** __restrict__ _EndPtr,_locale_t _Locale);\n long __cdecl strtol(const char * __restrict__ _Str,char ** __restrict__ _EndPtr,int _Radix);\n __attribute__ ((__dllimport__)) long __cdecl _strtol_l(const char * __restrict__ _Str,char ** __restrict__ _EndPtr,int _Radix,_locale_t _Locale);\n unsigned long __cdecl strtoul(const char * __restrict__ _Str,char ** __restrict__ _EndPtr,int _Radix);\n __attribute__ ((__dllimport__)) unsigned long __cdecl _strtoul_l(const char * __restrict__ _Str,char ** __restrict__ _EndPtr,int _Radix,_locale_t _Locale);\n\n\n int __cdecl system(const char *_Command);\n\n __attribute__ ((__dllimport__)) char *__cdecl _ultoa(unsigned long _Value,char *_Dest,int _Radix) ;\n int __cdecl wctomb(char *_MbCh,wchar_t _WCh) ;\n __attribute__ ((__dllimport__)) int __cdecl _wctomb_l(char *_MbCh,wchar_t _WCh,_locale_t _Locale) ;\n size_t __cdecl wcstombs(char * __restrict__ _Dest,const wchar_t * __restrict__ _Source,size_t _MaxCount) ;\n __attribute__ ((__dllimport__)) size_t __cdecl _wcstombs_l(char * __restrict__ _Dest,const wchar_t * __restrict__ _Source,size_t _MaxCount,_locale_t _Locale) ;\n\n\n\n void *__cdecl calloc(size_t _NumOfElements,size_t _SizeOfElements);\n void __cdecl free(void *_Memory);\n void *__cdecl malloc(size_t _Size);\n void *__cdecl realloc(void *_Memory,size_t _NewSize);\n __attribute__ ((__dllimport__)) void *__cdecl _recalloc(void *_Memory,size_t _Count,size_t _Size);\n\n\n\n\n\n\n __attribute__ ((__dllimport__)) void __cdecl _aligned_free(void *_Memory);\n __attribute__ ((__dllimport__)) void *__cdecl _aligned_malloc(size_t _Size,size_t _Alignment);\n\n\n\n __attribute__ ((__dllimport__)) void *__cdecl _aligned_offset_malloc(size_t _Size,size_t _Alignment,size_t _Offset);\n __attribute__ ((__dllimport__)) void *__cdecl _aligned_realloc(void *_Memory,size_t _Size,size_t _Alignment);\n __attribute__ ((__dllimport__)) void *__cdecl _aligned_recalloc(void *_Memory,size_t _Count,size_t _Size,size_t _Alignment);\n __attribute__ ((__dllimport__)) void *__cdecl _aligned_offset_realloc(void *_Memory,size_t _Size,size_t _Alignment,size_t _Offset);\n __attribute__ ((__dllimport__)) void *__cdecl _aligned_offset_recalloc(void *_Memory,size_t _Count,size_t _Size,size_t _Alignment,size_t _Offset);\n\n\n\n\n\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _itow(int _Value,wchar_t *_Dest,int _Radix) ;\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _ltow(long _Value,wchar_t *_Dest,int _Radix) ;\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _ultow(unsigned long _Value,wchar_t *_Dest,int _Radix) ;\n double __cdecl wcstod(const wchar_t * __restrict__ _Str,wchar_t ** __restrict__ _EndPtr);\n float __cdecl wcstof(const wchar_t * __restrict__ nptr, wchar_t ** __restrict__ endptr);\n\n float __cdecl wcstof( const wchar_t * __restrict__, wchar_t ** __restrict__);\n long double __cdecl wcstold(const wchar_t * __restrict__, wchar_t ** __restrict__);\n\n __attribute__ ((__dllimport__)) double __cdecl _wcstod_l(const wchar_t * __restrict__ _Str,wchar_t ** __restrict__ _EndPtr,_locale_t _Locale);\n long __cdecl wcstol(const wchar_t * __restrict__ _Str,wchar_t ** __restrict__ _EndPtr,int _Radix);\n __attribute__ ((__dllimport__)) long __cdecl _wcstol_l(const wchar_t * __restrict__ _Str,wchar_t ** __restrict__ _EndPtr,int _Radix,_locale_t _Locale);\n unsigned long __cdecl wcstoul(const wchar_t * __restrict__ _Str,wchar_t ** __restrict__ _EndPtr,int _Radix);\n __attribute__ ((__dllimport__)) unsigned long __cdecl _wcstoul_l(const wchar_t * __restrict__ _Str,wchar_t ** __restrict__ _EndPtr,int _Radix,_locale_t _Locale);\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _wgetenv(const wchar_t *_VarName) ;\n\n\n __attribute__ ((__dllimport__)) int __cdecl _wsystem(const wchar_t *_Command);\n\n __attribute__ ((__dllimport__)) double __cdecl _wtof(const wchar_t *_Str);\n __attribute__ ((__dllimport__)) double __cdecl _wtof_l(const wchar_t *_Str,_locale_t _Locale);\n __attribute__ ((__dllimport__)) int __cdecl _wtoi(const wchar_t *_Str);\n __attribute__ ((__dllimport__)) int __cdecl _wtoi_l(const wchar_t *_Str,_locale_t _Locale);\n __attribute__ ((__dllimport__)) long __cdecl _wtol(const wchar_t *_Str);\n __attribute__ ((__dllimport__)) long __cdecl _wtol_l(const wchar_t *_Str,_locale_t _Locale);\n\n __extension__ __attribute__ ((__dllimport__)) wchar_t *__cdecl _i64tow(long long _Val,wchar_t *_DstBuf,int _Radix) ;\n __extension__ __attribute__ ((__dllimport__)) wchar_t *__cdecl _ui64tow(unsigned long long _Val,wchar_t *_DstBuf,int _Radix) ;\n __extension__ __attribute__ ((__dllimport__)) long long __cdecl _wtoi64(const wchar_t *_Str);\n __extension__ __attribute__ ((__dllimport__)) long long __cdecl _wtoi64_l(const wchar_t *_Str,_locale_t _Locale);\n __extension__ __attribute__ ((__dllimport__)) long long __cdecl _wcstoi64(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix);\n __extension__ __attribute__ ((__dllimport__)) long long __cdecl _wcstoi64_l(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix,_locale_t _Locale);\n __extension__ __attribute__ ((__dllimport__)) unsigned long long __cdecl _wcstoui64(const wchar_t *_Str,wchar_t **_EndPtr,int _Radix);\n __extension__ __attribute__ ((__dllimport__)) unsigned long long __cdecl _wcstoui64_l(const wchar_t *_Str ,wchar_t **_EndPtr,int _Radix,_locale_t _Locale);\n\n\n\n\n __attribute__ ((__dllimport__)) char *__cdecl _fullpath(char *_FullPath,const char *_Path,size_t _SizeInBytes);\n __attribute__ ((__dllimport__)) char *__cdecl _ecvt(double _Val,int _NumOfDigits,int *_PtDec,int *_PtSign) ;\n __attribute__ ((__dllimport__)) char *__cdecl _fcvt(double _Val,int _NumOfDec,int *_PtDec,int *_PtSign) ;\n __attribute__ ((__dllimport__)) char *__cdecl _gcvt(double _Val,int _NumOfDigits,char *_DstBuf) ;\n __attribute__ ((__dllimport__)) int __cdecl _atodbl(_CRT_DOUBLE *_Result,char *_Str);\n __attribute__ ((__dllimport__)) int __cdecl _atoldbl(_LDOUBLE *_Result,char *_Str);\n __attribute__ ((__dllimport__)) int __cdecl _atoflt(_CRT_FLOAT *_Result,char *_Str);\n __attribute__ ((__dllimport__)) int __cdecl _atodbl_l(_CRT_DOUBLE *_Result,char *_Str,_locale_t _Locale);\n __attribute__ ((__dllimport__)) int __cdecl _atoldbl_l(_LDOUBLE *_Result,char *_Str,_locale_t _Locale);\n __attribute__ ((__dllimport__)) int __cdecl _atoflt_l(_CRT_FLOAT *_Result,char *_Str,_locale_t _Locale);\n\n\n\n\n\n __extension__ unsigned long long __cdecl _lrotl(unsigned long long _Val,int _Shift);\n __extension__ unsigned long long __cdecl _lrotr(unsigned long long _Val,int _Shift);\n\n\n\n\n\n\n\n __attribute__ ((__dllimport__)) void __cdecl _makepath(char *_Path,const char *_Drive,const char *_Dir,const char *_Filename,const char *_Ext);\n _onexit_t __cdecl _onexit(_onexit_t _Func);\n\n\n\n\n\n __attribute__ ((__dllimport__)) int __cdecl _putenv(const char *_EnvString);\n\n\n\n\n __extension__ unsigned long long __cdecl _rotl64(unsigned long long _Val,int _Shift);\n __extension__ unsigned long long __cdecl _rotr64(unsigned long long Value,int Shift);\n\n\n\n\n\n\n unsigned int __cdecl _rotr(unsigned int _Val,int _Shift);\n unsigned int __cdecl _rotl(unsigned int _Val,int _Shift);\n\n\n __extension__ unsigned long long __cdecl _rotr64(unsigned long long _Val,int _Shift);\n __attribute__ ((__dllimport__)) void __cdecl _searchenv(const char *_Filename,const char *_EnvVar,char *_ResultPath) ;\n __attribute__ ((__dllimport__)) void __cdecl _splitpath(const char *_FullPath,char *_Drive,char *_Dir,char *_Filename,char *_Ext) ;\n __attribute__ ((__dllimport__)) void __cdecl _swab(char *_Buf1,char *_Buf2,int _SizeInBytes);\n\n\n\n __attribute__ ((__dllimport__)) wchar_t *__cdecl _wfullpath(wchar_t *_FullPath,const wchar_t *_Path,size_t _SizeInWords);\n __attribute__ ((__dllimport__)) void __cdecl _wmakepath(wchar_t *_ResultPath,const wchar_t *_Drive,const wchar_t *_Dir,const wchar_t *_Filename,const wchar_t *_Ext);\n\n\n\n\n __attribute__ ((__dllimport__)) int __cdecl _wputenv(const wchar_t *_EnvString);\n __attribute__ ((__dllimport__)) void __cdecl _wsearchenv(const wchar_t *_Filename,const wchar_t *_EnvVar,wchar_t *_ResultPath) ;\n __attribute__ ((__dllimport__)) void __cdecl _wsplitpath(const wchar_t *_FullPath,wchar_t *_Drive,wchar_t *_Dir,wchar_t *_Filename,wchar_t *_Ext) ;\n\n\n __attribute__ ((__dllimport__)) void __cdecl _beep(unsigned _Frequency,unsigned _Duration) __attribute__ ((__deprecated__));\n\n __attribute__ ((__dllimport__)) void __cdecl _seterrormode(int _Mode) __attribute__ ((__deprecated__));\n __attribute__ ((__dllimport__)) void __cdecl _sleep(unsigned long _Duration) __attribute__ ((__deprecated__));\n#574 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n char *__cdecl ecvt(double _Val,int _NumOfDigits,int *_PtDec,int *_PtSign) ;\n char *__cdecl fcvt(double _Val,int _NumOfDec,int *_PtDec,int *_PtSign) ;\n char *__cdecl gcvt(double _Val,int _NumOfDigits,char *_DstBuf) ;\n char *__cdecl itoa(int _Val,char *_DstBuf,int _Radix) ;\n char *__cdecl ltoa(long _Val,char *_DstBuf,int _Radix) ;\n int __cdecl putenv(const char *_EnvString) ;\n void __cdecl swab(char *_Buf1,char *_Buf2,int _SizeInBytes) ;\n char *__cdecl ultoa(unsigned long _Val,char *_Dstbuf,int _Radix) ;\n _onexit_t __cdecl onexit(_onexit_t _Func);\n\n\n\n\n\n typedef struct { __extension__ long long quot, rem; } lldiv_t;\n\n __extension__ lldiv_t __cdecl lldiv(long long, long long);\n\n __extension__ long long __cdecl llabs(long long);\n\n\n\n\n __extension__ long long __cdecl strtoll(const char * __restrict__, char ** __restrict, int);\n __extension__ unsigned long long __cdecl strtoull(const char * __restrict__, char ** __restrict__, int);\n\n\n __extension__ long long __cdecl atoll (const char *);\n\n\n __extension__ long long __cdecl wtoll (const wchar_t *);\n __extension__ char *__cdecl lltoa (long long, char *, int);\n __extension__ char *__cdecl ulltoa (unsigned long long , char *, int);\n __extension__ wchar_t *__cdecl lltow (long long, wchar_t *, int);\n __extension__ wchar_t *__cdecl ulltow (unsigned long long, wchar_t *, int);\n#627 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 3\n#pragma pack(pop)\n\n\n#1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\sec_api/stdlib_s.h\" 1 3\n\n\n\n\n\n\n\n\n#1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 1 3\n#9 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\sec_api/stdlib_s.h\" 2 3\n#629 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 2 3\n\n#1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\malloc.h\" 1 3\n\n\n\n\n\n\n\n\n#1 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\_mingw.h\" 1 3\n#9 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\malloc.h\" 2 3\n\n\n#pragma pack(push,_CRT_PACKING)\n#46 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\malloc.h\" 3\n typedef struct _heapinfo {\n int *_pentry;\n size_t _size;\n int _useflag;\n } _HEAPINFO;\n\n\n extern unsigned int _amblksiz;\n#99 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\malloc.h\" 3\nvoid * __mingw_aligned_malloc (size_t _Size, size_t _Alignment);\nvoid __mingw_aligned_free (void *_Memory);\nvoid * __mingw_aligned_offset_realloc (void *_Memory, size_t _Size, size_t _Alignment, size_t _Offset);\nvoid * __mingw_aligned_realloc (void *_Memory, size_t _Size, size_t _Offset);\n\n\n\n __attribute__ ((__dllimport__)) int __cdecl _resetstkoflw (void);\n __attribute__ ((__dllimport__)) unsigned long __cdecl _set_malloc_crt_max_wait(unsigned long _NewValue);\n\n __attribute__ ((__dllimport__)) void *__cdecl _expand(void *_Memory,size_t _NewSize);\n __attribute__ ((__dllimport__)) size_t __cdecl _msize(void *_Memory);\n\n\n\n\n\n\n __attribute__ ((__dllimport__)) size_t __cdecl _get_sbh_threshold(void);\n __attribute__ ((__dllimport__)) int __cdecl _set_sbh_threshold(size_t _NewValue);\n __attribute__ ((__dllimport__)) errno_t __cdecl _set_amblksiz(size_t _Value);\n __attribute__ ((__dllimport__)) errno_t __cdecl _get_amblksiz(size_t *_Value);\n __attribute__ ((__dllimport__)) int __cdecl _heapadd(void *_Memory,size_t _Size);\n __attribute__ ((__dllimport__)) int __cdecl _heapchk(void);\n __attribute__ ((__dllimport__)) int __cdecl _heapmin(void);\n __attribute__ ((__dllimport__)) int __cdecl _heapset(unsigned int _Fill);\n __attribute__ ((__dllimport__)) int __cdecl _heapwalk(_HEAPINFO *_EntryInfo);\n __attribute__ ((__dllimport__)) size_t __cdecl _heapused(size_t *_Used,size_t *_Commit);\n __attribute__ ((__dllimport__)) intptr_t __cdecl _get_heap_handle(void);\n#140 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\malloc.h\" 3\n static __inline void *_MarkAllocaS(void *_Ptr,unsigned int _Marker) {\n if(_Ptr) {\n *((unsigned int*)_Ptr) = _Marker;\n _Ptr = (char*)_Ptr + 16;\n }\n return _Ptr;\n }\n#159 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\malloc.h\" 3\n static __inline void __cdecl _freea(void *_Memory) {\n unsigned int _Marker;\n if(_Memory) {\n _Memory = (char*)_Memory - 16;\n _Marker = *(unsigned int *)_Memory;\n if(_Marker==0xDDDD) {\n free(_Memory);\n }\n\n\n\n\n\n }\n }\n#205 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\malloc.h\" 3\n#pragma pack(pop)\n#630 \"C:/Xilinx/Vivado/2018.2/win64/tools/clang/bin/../lib/clang/3.1/../../../x86_64-w64-mingw32/include\\\\stdlib.h\" 2 3\n#73 \"C:/Xilinx/Vivado/2018.2/include\\\\etc/autopilot_ssdm_bits.h\" 2\n#59 \"C:/Xilinx/Vivado/2018.2/include/etc/autopilot_apint.h\" 2\n#82 \"C:/Xilinx/Vivado/2018.2/include\\\\ap_cint.h\" 2\n#3 \"D:/HLS_2018.2update/HLS/labsource/labs/lab4/fir.h\" 2\n\n\n\ntypedef short coef_t;\ntypedef short data_t;\ntypedef int38 acc_t;\n#2 \"D:/HLS_2018.2update/HLS/labsource/labs/lab4/fir.c\" 2\n\nvoid fir (\n data_t *y,\n data_t x\n ) {\n const coef_t c[58 +1]={\n\n#1 \"D:/HLS_2018.2update/HLS/labsource/labs/lab4/fir_coef.dat\" 1\n-378,\n-73,\n27,\n170,\n298,\n352,\n302,\n168,\n14,\n-80,\n-64,\n53,\n186,\n216,\n40,\n-356,\n-867,\n-1283,\n-1366,\n-954,\n-51,\n1132,\n2227,\n2829,\n2647,\n1633,\n25,\n-1712,\n-3042,\n29229,\n-3042,\n-1712,\n25,\n1633,\n2647,\n2829,\n2227,\n1132,\n-51,\n-954,\n-1366,\n-1283,\n-867,\n-356,\n40,\n216,\n186,\n53,\n-64,\n-80,\n14,\n168,\n302,\n352,\n298,\n170,\n27,\n-73,\n-378\n#9 \"D:/HLS_2018.2update/HLS/labsource/labs/lab4/fir.c\" 2\n };\n\n\n static data_t shift_reg[58];\n acc_t acc;\n int i;\n\n acc=(acc_t)shift_reg[58 -1]*(acc_t)c[58];\n loop: for (i=58 -1;i!=0;i--) {\n acc+=(acc_t)shift_reg[i-1]*(acc_t)c[i];\n shift_reg[i]=shift_reg[i-1];\n }\n acc+=(acc_t)x*(acc_t)c[0];\n shift_reg[0]=x;\n *y = acc>>15;\n}\n", "groundtruth": " int __cdecl strcoll(const char *_Str1,const char *_Str2);\n", "crossfile_context": ""} {"task_id": "High-Level-Synthesis-Flow-on-Zynq-using-Vivado-HLS", "path": "High-Level-Synthesis-Flow-on-Zynq-using-Vivado-HLS/source/lab4/fir.prj/solution1/syn/systemc/fir_mul_mul_16s_1bkb.h", "left_context": "// ==============================================================\n// File generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC\n// Version: 2018.2\n// Copyright (C) 1986-2018 Xilinx, Inc. All Rights Reserved.\n// \n// ==============================================================\n\n#ifndef __fir_mul_mul_16s_1bkb__HH__\n#define __fir_mul_mul_16s_1bkb__HH__\n#include \"ACMP_smul_ss.h\"\n#include \n\ntemplate<\n int ID,\n int NUM_STAGE,\n int din0_WIDTH,\n int din1_WIDTH,\n int dout_WIDTH>\nSC_MODULE(fir_mul_mul_16s_1bkb) {\n sc_core::sc_in< sc_dt::sc_lv > din0;\n sc_core::sc_in< sc_dt::sc_lv > din1;\n sc_core::sc_out< sc_dt::sc_lv > dout;\n\n\n\n ACMP_smul_ss ACMP_smul_ss_U;\n\n SC_CTOR(fir_mul_mul_16s_1bkb): ACMP_smul_ss_U (\"ACMP_smul_ss_U\") {\n ACMP_smul_ss_U.din0(din0);\n ACMP_smul_ss_U.din1(din1);\n", "right_context": "\n};\n\n#endif //\n", "groundtruth": " ACMP_smul_ss_U.dout(dout);\n\n", "crossfile_context": ""} {"task_id": "High-Level-Synthesis-Flow-on-Zynq-using-Vivado-HLS", "path": "High-Level-Synthesis-Flow-on-Zynq-using-Vivado-HLS/source/lab4/fir.prj/solution1/syn/systemc/fir_shift_reg.h", "left_context": "// ==============================================================\n// File generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC\n// Version: 2018.2\n// Copyright (C) 1986-2018 Xilinx, Inc. All Rights Reserved.\n// \n// ==============================================================\n\n#ifndef __fir_shift_reg_H__\n#define __fir_shift_reg_H__\n\n\n#include \nusing namespace sc_core;\nusing namespace sc_dt;\n\n\n\n\n#include \n#include \n\nstruct fir_shift_reg_ram : public sc_core::sc_module {\n\n static const unsigned DataWidth = 16;\n static const unsigned AddressRange = 58;\n static const unsigned AddressWidth = 6;\n\n//latency = 1\n//input_reg = 1\n//output_reg = 0\nsc_core::sc_in > address0;\nsc_core::sc_in ce0;\nsc_core::sc_out > q0;\nsc_core::sc_in > address1;\nsc_core::sc_in ce1;\nsc_core::sc_in we1;\nsc_core::sc_in > d1;\nsc_core::sc_in reset;\nsc_core::sc_in clk;\n\n\nsc_lv ram[AddressRange];\n\n\n SC_CTOR(fir_shift_reg_ram) {\n for (unsigned i = 0; i < 58; i = i + 1) {\n ram[i] = 0;\n }\n\n\nSC_METHOD(prc_write_0);\n sensitive<();\n }\n}\n\n\nvoid prc_write_1()\n{\n if (ce1.read() == sc_dt::Log_1) \n {\n if (we1.read() == sc_dt::Log_1) \n {\n if(address1.read().is_01() && address1.read().to_uint() > address0;\nsc_core::sc_in ce0;\nsc_core::sc_out > q0;\nsc_core::sc_in > address1;\nsc_core::sc_in ce1;\nsc_core::sc_in we1;\nsc_core::sc_in > d1;\nsc_core::sc_in reset;\nsc_core::sc_in clk;\n\n\nfir_shift_reg_ram* meminst;\n\n\nSC_CTOR(fir_shift_reg) {\nmeminst = new fir_shift_reg_ram(\"fir_shift_reg_ram\");\nmeminst->address0(address0);\nmeminst->ce0(ce0);\nmeminst->q0(q0);\n\nmeminst->address1(address1);\nmeminst->ce1(ce1);\nmeminst->we1(we1);\nmeminst->d1(d1);\n\nmeminst->reset(reset);\nmeminst->clk(clk);\n}\n~fir_shift_reg() {\n delete meminst;\n}\n\n\n};//endmodule\n#endif\n", "groundtruth": "static const unsigned DataWidth = 16;\n", "crossfile_context": ""} {"task_id": "High-Level-Synthesis-Flow-on-Zynq-using-Vivado-HLS", "path": "High-Level-Synthesis-Flow-on-Zynq-using-Vivado-HLS/source/lab4/fir.prj/solution1/sim/autowrap/systemc/apatb_fir.cpp", "left_context": "// ==============================================================\n// File generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC\n// Version: 2018.2\n// Copyright (C) 1986-2018 Xilinx, Inc. All Rights Reserved.\n// ==============================================================\n\n#include \n#include \n#include \n#include \n#include \n#include \"SysCFileHandler.h\"\n#include \"ap_int.h\"\n#include \"ap_fixed.h\"\n#include \n#include \n#include \"autopilot_cbe.h\"\n#include \"ap_stream.h\"\n#include \"hls_stream.h\"\n#include \"hls_half.h\"\n#include \"hls_signal_handler.h\"\n\nusing namespace std;\nusing namespace sc_core;\nusing namespace sc_dt;\n\n\n// [dump_struct_tree [build_nameSpaceTree] dumpedStructList] ---------->\n\n\n// [dump_enumeration [get_enumeration_list]] ---------->\n\n\n// wrapc file define: \"y\"\n#define AUTOTB_TVOUT_y \"../tv/cdatafile/c.fir.autotvout_y.dat\"\n// wrapc file define: \"x\"\n#define AUTOTB_TVIN_x \"../tv/cdatafile/c.fir.autotvin_x.dat\"\n\n#define INTER_TCL \"../tv/cdatafile/ref.tcl\"\n\n// tvout file define: \"y\"\n#define AUTOTB_TVOUT_PC_y \"../tv/rtldatafile/rtl.fir.autotvout_y.dat\"\n\nclass INTER_TCL_FILE {\n\tpublic:\n\t\tINTER_TCL_FILE(const char* name) {\n\t\t\tmName = name;\n\t\t\ty_depth = 0;\n\t\t\tx_depth = 0;\n\t\t\ttrans_num =0;\n\t\t}\n\n\t\t~INTER_TCL_FILE() {\n\t\t\tmFile.open(mName);\n\t\t\tif (!mFile.good()) {\n\t\t\t\tcout << \"Failed to open file ref.tcl\" << endl;\n\t\t\t\texit (1);\n\t\t\t}\n\t\t\tstring total_list = get_depth_list();\n\t\t\tmFile << \"set depth_list {\\n\";\n\t\t\tmFile << total_list;\n\t\t\tmFile << \"}\\n\";\n\t\t\tmFile << \"set trans_num \"< num ? (*class_num) : num;\n\t\t}\n\tpublic:\n\t\tint y_depth;\n\t\tint x_depth;\n\t\tint trans_num;\n\n\tprivate:\n\t\tofstream mFile;\n\t\tconst char* mName;\n};\n\nextern \"C\" void fir (\nshort* y,\nshort x);\n\nextern \"C\" void AESL_WRAP_fir (\nshort* y,\nshort x)\n{\n\trefine_signal_handler();\n\tfstream wrapc_switch_file_token;\n\twrapc_switch_file_token.open(\".hls_cosim_wrapc_switch.log\");\n\tint AESL_i;\n\tif (wrapc_switch_file_token.good())\n\t{\n\t\tCodeState = ENTER_WRAPC_PC;\n\t\tstatic unsigned AESL_transaction_pc = 0;\n\t\tstring AESL_token;\n\t\tstring AESL_num;\n\t\tstatic AESL_FILE_HANDLER aesl_fh;\n\n\n\t\t// output port post check: \"y\"\n\t\taesl_fh.read(AUTOTB_TVOUT_PC_y, AESL_token); // [[transaction]]\n\t\tif (AESL_token != \"[[transaction]]\")\n\t\t{\n\t\t\texit(1);\n\t\t}\n\t\taesl_fh.read(AUTOTB_TVOUT_PC_y, AESL_num); // transaction number\n\n\t\tif (atoi(AESL_num.c_str()) == AESL_transaction_pc)\n\t\t{\n\t\t\taesl_fh.read(AUTOTB_TVOUT_PC_y, AESL_token); // data\n\n\t\t\tsc_bv<16> *y_pc_buffer = new sc_bv<16>[1];\n\t\t\tint i = 0;\n\n\t\t\twhile (AESL_token != \"[[/transaction]]\")\n\t\t\t{\n\t\t\t\tbool no_x = false;\n\t\t\t\tbool err = false;\n\n\t\t\t\t// search and replace 'X' with \"0\" from the 1st char of token\n\t\t\t\twhile (!no_x)\n\t\t\t\t{\n\t\t\t\t\tsize_t x_found = AESL_token.find('X');\n\t\t\t\t\tif (x_found != string::npos)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (!err)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcerr << \"WARNING: [SIM 212-201] RTL produces unknown value 'X' on port 'y', possible cause: There are uninitialized variables in the C design.\" << endl;\n\t\t\t\t\t\t\terr = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tAESL_token.replace(x_found, 1, \"0\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tno_x = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tno_x = false;\n\n\t\t\t\t// search and replace 'x' with \"0\" from the 3rd char of token\n\t\t\t\twhile (!no_x)\n\t\t\t\t{\n\t\t\t\t\tsize_t x_found = AESL_token.find('x', 2);\n\n\t\t\t\t\tif (x_found != string::npos)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (!err)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcerr << \"WARNING: [SIM 212-201] RTL produces unknown value 'X' on port 'y', possible cause: There are uninitialized variables in the C design.\" << endl;\n\t\t\t\t\t\t\terr = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tAESL_token.replace(x_found, 1, \"0\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tno_x = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// push token into output port buffer\n\t\t\t\tif (AESL_token != \"\")\n\t\t\t\t{\n\t\t\t\t\ty_pc_buffer[i] = AESL_token.c_str();\n\t\t\t\t\ti++;\n\t\t\t\t}\n\n\t\t\t\taesl_fh.read(AUTOTB_TVOUT_PC_y, AESL_token); // data or [[/transaction]]\n\n\t\t\t\tif (AESL_token == \"[[[/runtime]]]\" || aesl_fh.eof(AUTOTB_TVOUT_PC_y))\n\t\t\t\t{\n\t\t\t\t\texit(1);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ***********************************\n\t\t\tif (i > 0)\n\t\t\t{\n\t\t\t\t// RTL Name: y\n\t\t\t\t{\n\t\t\t\t\t// bitslice(15, 0)\n\t\t\t\t\t// {\n\t\t\t\t\t\t// celement: y(15, 0)\n\t\t\t\t\t\t// {\n\t\t\t\t\t\t\tsc_lv<16>* y_lv0_0_0_1 = new sc_lv<16>[1];\n\t\t\t\t\t\t// }\n\t\t\t\t\t// }\n\n\t\t\t\t\t// bitslice(15, 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tint hls_map_index = 0;\n\t\t\t\t\t\t// celement: y(15, 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// carray: (0) => (0) @ (1)\n\t\t\t\t\t\t\tfor (int i_0 = 0; i_0 <= 0; i_0 += 1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (&(y[0]) != NULL) // check the null address if the c port is array or others\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\ty_lv0_0_0_1[hls_map_index].range(15, 0) = sc_bv<16>(y_pc_buffer[hls_map_index].range(15, 0));\n\t\t\t\t\t\t\t\t\thls_map_index++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// bitslice(15, 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tint hls_map_index = 0;\n\t\t\t\t\t\t// celement: y(15, 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// carray: (0) => (0) @ (1)\n\t\t\t\t\t\t\tfor (int i_0 = 0; i_0 <= 0; i_0 += 1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// sub : i_0\n\t\t\t\t\t\t\t\t// ori_name : y[i_0]\n\t\t\t\t\t\t\t\t// sub_1st_elem : 0\n\t\t\t\t\t\t\t\t// ori_name_1st_elem : y[0]\n\t\t\t\t\t\t\t\t// output_left_conversion : y[i_0]\n\t\t\t\t\t\t\t\t// output_type_conversion : (y_lv0_0_0_1[hls_map_index]).to_uint64()\n\t\t\t\t\t\t\t\tif (&(y[0]) != NULL) // check the null address if the c port is array or others\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\ty[i_0] = (y_lv0_0_0_1[hls_map_index]).to_uint64();\n", "right_context": "\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// release memory allocation\n\t\t\tdelete [] y_pc_buffer;\n\t\t}\n\n\t\tAESL_transaction_pc++;\n\t}\n\telse\n\t{\n\t\tCodeState = ENTER_WRAPC;\n\t\tstatic unsigned AESL_transaction;\n\n\t\tstatic AESL_FILE_HANDLER aesl_fh;\n\n\t\t// \"y\"\n\t\tchar* tvout_y = new char[50];\n\t\taesl_fh.touch(AUTOTB_TVOUT_y);\n\n\t\t// \"x\"\n\t\tchar* tvin_x = new char[50];\n\t\taesl_fh.touch(AUTOTB_TVIN_x);\n\n\t\tCodeState = DUMP_INPUTS;\n\t\tstatic INTER_TCL_FILE tcl_file(INTER_TCL);\n\t\tint leading_zero;\n\n\t\t// [[transaction]]\n\t\tsprintf(tvin_x, \"[[transaction]] %d\\n\", AESL_transaction);\n\t\taesl_fh.write(AUTOTB_TVIN_x, tvin_x);\n\n\t\tsc_bv<16> x_tvin_wrapc_buffer;\n\n\t\t// RTL Name: x\n\t\t{\n\t\t\t// bitslice(15, 0)\n\t\t\t{\n\t\t\t\t// celement: x(15, 0)\n\t\t\t\t{\n\t\t\t\t\t// carray: (0) => (0) @ (0)\n\t\t\t\t\t{\n\t\t\t\t\t\t// sub : \n\t\t\t\t\t\t// ori_name : x\n\t\t\t\t\t\t// sub_1st_elem : \n\t\t\t\t\t\t// ori_name_1st_elem : x\n\t\t\t\t\t\t// regulate_c_name : x\n\t\t\t\t\t\t// input_type_conversion : x\n\t\t\t\t\t\tif (&(x) != NULL) // check the null address if the c port is array or others\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsc_lv<16> x_tmp_mem;\n\t\t\t\t\t\t\tx_tmp_mem = x;\n\t\t\t\t\t\t\tx_tvin_wrapc_buffer.range(15, 0) = x_tmp_mem.range(15, 0);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// dump tv to file\n\t\tfor (int i = 0; i < 1; i++)\n\t\t{\n\t\t\tsprintf(tvin_x, \"%s\\n\", (x_tvin_wrapc_buffer).to_string(SC_HEX).c_str());\n\t\t\taesl_fh.write(AUTOTB_TVIN_x, tvin_x);\n\t\t}\n\n\t\ttcl_file.set_num(1, &tcl_file.x_depth);\n\t\tsprintf(tvin_x, \"[[/transaction]] \\n\");\n\t\taesl_fh.write(AUTOTB_TVIN_x, tvin_x);\n\n// [call_c_dut] ---------->\n\n\t\tCodeState = CALL_C_DUT;\n\t\tfir(y, x);\n\n\t\tCodeState = DUMP_OUTPUTS;\n\n\t\t// [[transaction]]\n\t\tsprintf(tvout_y, \"[[transaction]] %d\\n\", AESL_transaction);\n\t\taesl_fh.write(AUTOTB_TVOUT_y, tvout_y);\n\n\t\tsc_bv<16>* y_tvout_wrapc_buffer = new sc_bv<16>[1];\n\n\t\t// RTL Name: y\n\t\t{\n\t\t\t// bitslice(15, 0)\n\t\t\t{\n\t\t\t\tint hls_map_index = 0;\n\t\t\t\t// celement: y(15, 0)\n\t\t\t\t{\n\t\t\t\t\t// carray: (0) => (0) @ (1)\n\t\t\t\t\tfor (int i_0 = 0; i_0 <= 0; i_0 += 1)\n\t\t\t\t\t{\n\t\t\t\t\t\t// sub : i_0\n\t\t\t\t\t\t// ori_name : y[i_0]\n\t\t\t\t\t\t// sub_1st_elem : 0\n\t\t\t\t\t\t// ori_name_1st_elem : y[0]\n\t\t\t\t\t\t// regulate_c_name : y\n\t\t\t\t\t\t// input_type_conversion : y[i_0]\n\t\t\t\t\t\tif (&(y[0]) != NULL) // check the null address if the c port is array or others\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsc_lv<16> y_tmp_mem;\n\t\t\t\t\t\t\ty_tmp_mem = y[i_0];\n\t\t\t\t\t\t\ty_tvout_wrapc_buffer[hls_map_index].range(15, 0) = y_tmp_mem.range(15, 0);\n \t hls_map_index++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// dump tv to file\n\t\tfor (int i = 0; i < 1; i++)\n\t\t{\n\t\t\tsprintf(tvout_y, \"%s\\n\", (y_tvout_wrapc_buffer[i]).to_string(SC_HEX).c_str());\n\t\t\taesl_fh.write(AUTOTB_TVOUT_y, tvout_y);\n\t\t}\n\n\t\ttcl_file.set_num(1, &tcl_file.y_depth);\n\t\tsprintf(tvout_y, \"[[/transaction]] \\n\");\n\t\taesl_fh.write(AUTOTB_TVOUT_y, tvout_y);\n\n\t\t// release memory allocation\n\t\tdelete [] y_tvout_wrapc_buffer;\n\n\t\tCodeState = DELETE_CHAR_BUFFERS;\n\t\t// release memory allocation: \"y\"\n\t\tdelete [] tvout_y;\n\t\t// release memory allocation: \"x\"\n\t\tdelete [] tvin_x;\n\n\t\tAESL_transaction++;\n\n\t\ttcl_file.set_num(AESL_transaction , &tcl_file.trans_num);\n\t}\n}\n\n", "groundtruth": "\t\t\t\t\t\t\t\t\thls_map_index++;\n\t\t\t\t\t\t\t\t}\n", "crossfile_context": ""} {"task_id": "streamit-hls", "path": "streamit-hls/dep/googletest/include/gtest/internal/gtest-port.h", "left_context": "// Copyright 2005, Google Inc.\n// All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are\n// met:\n//\n// * Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// * Redistributions in binary form must reproduce the above\n// copyright notice, this list of conditions and the following disclaimer\n// in the documentation and/or other materials provided with the\n// distribution.\n// * Neither the name of Google Inc. nor the names of its\n// contributors may be used to endorse or promote products derived from\n// this software without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n// \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n//\n// Authors: wan@google.com (Zhanyong Wan)\n//\n// Low-level types and utilities for porting Google Test to various\n// platforms. All macros ending with _ and symbols defined in an\n// internal namespace are subject to change without notice. Code\n// outside Google Test MUST NOT USE THEM DIRECTLY. Macros that don't\n// end with _ are part of Google Test's public API and can be used by\n// code outside Google Test.\n//\n// This file is fundamental to Google Test. All other Google Test source\n// files are expected to #include this. Therefore, it cannot #include\n// any other Google Test header.\n\n#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_H_\n#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_H_\n\n// Environment-describing macros\n// -----------------------------\n//\n// Google Test can be used in many different environments. Macros in\n// this section tell Google Test what kind of environment it is being\n// used in, such that Google Test can provide environment-specific\n// features and implementations.\n//\n// Google Test tries to automatically detect the properties of its\n// environment, so users usually don't need to worry about these\n// macros. However, the automatic detection is not perfect.\n// Sometimes it's necessary for a user to define some of the following\n// macros in the build script to override Google Test's decisions.\n//\n// If the user doesn't define a macro in the list, Google Test will\n// provide a default definition. After this header is #included, all\n// macros in this list will be defined to either 1 or 0.\n//\n// Notes to maintainers:\n// - Each macro here is a user-tweakable knob; do not grow the list\n// lightly.\n// - Use #if to key off these macros. Don't use #ifdef or \"#if\n// defined(...)\", which will not work as these macros are ALWAYS\n// defined.\n//\n// GTEST_HAS_CLONE - Define it to 1/0 to indicate that clone(2)\n// is/isn't available.\n// GTEST_HAS_EXCEPTIONS - Define it to 1/0 to indicate that exceptions\n// are enabled.\n// GTEST_HAS_GLOBAL_STRING - Define it to 1/0 to indicate that ::string\n// is/isn't available (some systems define\n// ::string, which is different to std::string).\n// GTEST_HAS_GLOBAL_WSTRING - Define it to 1/0 to indicate that ::string\n// is/isn't available (some systems define\n// ::wstring, which is different to std::wstring).\n// GTEST_HAS_POSIX_RE - Define it to 1/0 to indicate that POSIX regular\n// expressions are/aren't available.\n// GTEST_HAS_PTHREAD - Define it to 1/0 to indicate that \n// is/isn't available.\n// GTEST_HAS_RTTI - Define it to 1/0 to indicate that RTTI is/isn't\n// enabled.\n// GTEST_HAS_STD_WSTRING - Define it to 1/0 to indicate that\n// std::wstring does/doesn't work (Google Test can\n// be used where std::wstring is unavailable).\n// GTEST_HAS_TR1_TUPLE - Define it to 1/0 to indicate tr1::tuple\n// is/isn't available.\n// GTEST_HAS_SEH - Define it to 1/0 to indicate whether the\n// compiler supports Microsoft's \"Structured\n// Exception Handling\".\n// GTEST_HAS_STREAM_REDIRECTION\n// - Define it to 1/0 to indicate whether the\n// platform supports I/O stream redirection using\n// dup() and dup2().\n// GTEST_USE_OWN_TR1_TUPLE - Define it to 1/0 to indicate whether Google\n// Test's own tr1 tuple implementation should be\n// used. Unused when the user sets\n// GTEST_HAS_TR1_TUPLE to 0.\n// GTEST_LANG_CXX11 - Define it to 1/0 to indicate that Google Test\n// is building in C++11/C++98 mode.\n// GTEST_LINKED_AS_SHARED_LIBRARY\n// - Define to 1 when compiling tests that use\n// Google Test as a shared library (known as\n// DLL on Windows).\n// GTEST_CREATE_SHARED_LIBRARY\n// - Define to 1 when compiling Google Test itself\n// as a shared library.\n\n// Platform-indicating macros\n// --------------------------\n//\n// Macros indicating the platform on which Google Test is being used\n// (a macro is defined to 1 if compiled on the given platform;\n// otherwise UNDEFINED -- it's never defined to 0.). Google Test\n// defines these macros automatically. Code outside Google Test MUST\n// NOT define them.\n//\n// GTEST_OS_AIX - IBM AIX\n// GTEST_OS_CYGWIN - Cygwin\n// GTEST_OS_FREEBSD - FreeBSD\n// GTEST_OS_HPUX - HP-UX\n// GTEST_OS_LINUX - Linux\n// GTEST_OS_LINUX_ANDROID - Google Android\n// GTEST_OS_MAC - Mac OS X\n// GTEST_OS_IOS - iOS\n// GTEST_OS_NACL - Google Native Client (NaCl)\n// GTEST_OS_OPENBSD - OpenBSD\n// GTEST_OS_QNX - QNX\n// GTEST_OS_SOLARIS - Sun Solaris\n// GTEST_OS_SYMBIAN - Symbian\n// GTEST_OS_WINDOWS - Windows (Desktop, MinGW, or Mobile)\n// GTEST_OS_WINDOWS_DESKTOP - Windows Desktop\n// GTEST_OS_WINDOWS_MINGW - MinGW\n// GTEST_OS_WINDOWS_MOBILE - Windows Mobile\n// GTEST_OS_WINDOWS_PHONE - Windows Phone\n// GTEST_OS_WINDOWS_RT - Windows Store App/WinRT\n// GTEST_OS_ZOS - z/OS\n//\n// Among the platforms, Cygwin, Linux, Max OS X, and Windows have the\n// most stable support. Since core members of the Google Test project\n// don't have access to other platforms, support for them may be less\n// stable. If you notice any problems on your platform, please notify\n// googletestframework@googlegroups.com (patches for fixing them are\n// even more welcome!).\n//\n// It is possible that none of the GTEST_OS_* macros are defined.\n\n// Feature-indicating macros\n// -------------------------\n//\n// Macros indicating which Google Test features are available (a macro\n// is defined to 1 if the corresponding feature is supported;\n// otherwise UNDEFINED -- it's never defined to 0.). Google Test\n// defines these macros automatically. Code outside Google Test MUST\n// NOT define them.\n//\n// These macros are public so that portable tests can be written.\n// Such tests typically surround code using a feature with an #if\n// which controls that code. For example:\n//\n// #if GTEST_HAS_DEATH_TEST\n// EXPECT_DEATH(DoSomethingDeadly());\n// #endif\n//\n// GTEST_HAS_COMBINE - the Combine() function (for value-parameterized\n// tests)\n// GTEST_HAS_DEATH_TEST - death tests\n// GTEST_HAS_PARAM_TEST - value-parameterized tests\n// GTEST_HAS_TYPED_TEST - typed tests\n// GTEST_HAS_TYPED_TEST_P - type-parameterized tests\n// GTEST_IS_THREADSAFE - Google Test is thread-safe.\n// GTEST_USES_POSIX_RE - enhanced POSIX regex is used. Do not confuse with\n// GTEST_HAS_POSIX_RE (see above) which users can\n// define themselves.\n// GTEST_USES_SIMPLE_RE - our own simple regex is used;\n// the above two are mutually exclusive.\n// GTEST_CAN_COMPARE_NULL - accepts untyped NULL in EXPECT_EQ().\n\n// Misc public macros\n// ------------------\n//\n// GTEST_FLAG(flag_name) - references the variable corresponding to\n// the given Google Test flag.\n\n// Internal utilities\n// ------------------\n//\n// The following macros and utilities are for Google Test's INTERNAL\n// use only. Code outside Google Test MUST NOT USE THEM DIRECTLY.\n//\n// Macros for basic C++ coding:\n// GTEST_AMBIGUOUS_ELSE_BLOCKER_ - for disabling a gcc warning.\n// GTEST_ATTRIBUTE_UNUSED_ - declares that a class' instances or a\n// variable don't have to be used.\n// GTEST_DISALLOW_ASSIGN_ - disables operator=.\n// GTEST_DISALLOW_COPY_AND_ASSIGN_ - disables copy ctor and operator=.\n// GTEST_MUST_USE_RESULT_ - declares that a function's result must be used.\n// GTEST_INTENTIONAL_CONST_COND_PUSH_ - start code section where MSVC C4127 is\n// suppressed (constant conditional).\n// GTEST_INTENTIONAL_CONST_COND_POP_ - finish code section where MSVC C4127\n// is suppressed.\n//\n// C++11 feature wrappers:\n//\n// testing::internal::move - portability wrapper for std::move.\n//\n// Synchronization:\n// Mutex, MutexLock, ThreadLocal, GetThreadCount()\n// - synchronization primitives.\n//\n// Template meta programming:\n// is_pointer - as in TR1; needed on Symbian and IBM XL C/C++ only.\n// IteratorTraits - partial implementation of std::iterator_traits, which\n// is not available in libCstd when compiled with Sun C++.\n//\n// Smart pointers:\n// scoped_ptr - as in TR2.\n//\n// Regular expressions:\n// RE - a simple regular expression class using the POSIX\n// Extended Regular Expression syntax on UNIX-like\n// platforms, or a reduced regular exception syntax on\n// other platforms, including Windows.\n//\n// Logging:\n// GTEST_LOG_() - logs messages at the specified severity level.\n// LogToStderr() - directs all log messages to stderr.\n// FlushInfoLog() - flushes informational log messages.\n//\n// Stdout and stderr capturing:\n// CaptureStdout() - starts capturing stdout.\n// GetCapturedStdout() - stops capturing stdout and returns the captured\n// string.\n// CaptureStderr() - starts capturing stderr.\n// GetCapturedStderr() - stops capturing stderr and returns the captured\n// string.\n//\n// Integer types:\n// TypeWithSize - maps an integer to a int type.\n// Int32, UInt32, Int64, UInt64, TimeInMillis\n// - integers of known sizes.\n// BiggestInt - the biggest signed integer type.\n//\n// Command-line utilities:\n// GTEST_DECLARE_*() - declares a flag.\n// GTEST_DEFINE_*() - defines a flag.\n// GetInjectableArgvs() - returns the command line as a vector of strings.\n//\n// Environment variable utilities:\n// GetEnv() - gets the value of an environment variable.\n// BoolFromGTestEnv() - parses a bool environment variable.\n// Int32FromGTestEnv() - parses an Int32 environment variable.\n// StringFromGTestEnv() - parses a string environment variable.\n\n#include // for isspace, etc\n#include // for ptrdiff_t\n#include \n#include \n#include \n#ifndef _WIN32_WCE\n# include \n# include \n#endif // !_WIN32_WCE\n\n#if defined __APPLE__\n# include \n# include \n#endif\n\n#include // NOLINT\n#include // NOLINT\n#include // NOLINT\n#include // NOLINT\n#include \n#include // NOLINT\n\n#include \"gtest/internal/gtest-port-arch.h\"\n#include \"gtest/internal/custom/gtest-port.h\"\n\n#if !defined(GTEST_DEV_EMAIL_)\n# define GTEST_DEV_EMAIL_ \"googletestframework@@googlegroups.com\"\n# define GTEST_FLAG_PREFIX_ \"gtest_\"\n# define GTEST_FLAG_PREFIX_DASH_ \"gtest-\"\n# define GTEST_FLAG_PREFIX_UPPER_ \"GTEST_\"\n# define GTEST_NAME_ \"Google Test\"\n# define GTEST_PROJECT_URL_ \"https://github.com/google/googletest/\"\n#endif // !defined(GTEST_DEV_EMAIL_)\n\n#if !defined(GTEST_INIT_GOOGLE_TEST_NAME_)\n# define GTEST_INIT_GOOGLE_TEST_NAME_ \"testing::InitGoogleTest\"\n#endif // !defined(GTEST_INIT_GOOGLE_TEST_NAME_)\n\n// Determines the version of gcc that is used to compile this.\n#ifdef __GNUC__\n// 40302 means version 4.3.2.\n# define GTEST_GCC_VER_ \\\n (__GNUC__*10000 + __GNUC_MINOR__*100 + __GNUC_PATCHLEVEL__)\n#endif // __GNUC__\n\n// Macros for disabling Microsoft Visual C++ warnings.\n//\n// GTEST_DISABLE_MSC_WARNINGS_PUSH_(4800 4385)\n// /* code that triggers warnings C4800 and C4385 */\n// GTEST_DISABLE_MSC_WARNINGS_POP_()\n#if _MSC_VER >= 1500\n# define GTEST_DISABLE_MSC_WARNINGS_PUSH_(warnings) \\\n __pragma(warning(push)) \\\n __pragma(warning(disable: warnings))\n# define GTEST_DISABLE_MSC_WARNINGS_POP_() \\\n __pragma(warning(pop))\n#else\n// Older versions of MSVC don't have __pragma.\n# define GTEST_DISABLE_MSC_WARNINGS_PUSH_(warnings)\n# define GTEST_DISABLE_MSC_WARNINGS_POP_()\n#endif\n\n#ifndef GTEST_LANG_CXX11\n// gcc and clang define __GXX_EXPERIMENTAL_CXX0X__ when\n// -std={c,gnu}++{0x,11} is passed. The C++11 standard specifies a\n// value for __cplusplus, and recent versions of clang, gcc, and\n// probably other compilers set that too in C++11 mode.\n# if __GXX_EXPERIMENTAL_CXX0X__ || __cplusplus >= 201103L\n// Compiling in at least C++11 mode.\n# define GTEST_LANG_CXX11 1\n# else\n# define GTEST_LANG_CXX11 0\n# endif\n#endif\n\n// Distinct from C++11 language support, some environments don't provide\n// proper C++11 library support. Notably, it's possible to build in\n// C++11 mode when targeting Mac OS X 10.6, which has an old libstdc++\n// with no C++11 support.\n//\n// libstdc++ has sufficient C++11 support as of GCC 4.6.0, __GLIBCXX__\n// 20110325, but maintenance releases in the 4.4 and 4.5 series followed\n// this date, so check for those versions by their date stamps.\n// https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html#abi.versioning\n#if GTEST_LANG_CXX11 && \\\n (!defined(__GLIBCXX__) || ( \\\n __GLIBCXX__ >= 20110325ul && /* GCC >= 4.6.0 */ \\\n /* Blacklist of patch releases of older branches: */ \\\n __GLIBCXX__ != 20110416ul && /* GCC 4.4.6 */ \\\n __GLIBCXX__ != 20120313ul && /* GCC 4.4.7 */ \\\n __GLIBCXX__ != 20110428ul && /* GCC 4.5.3 */ \\\n __GLIBCXX__ != 20120702ul)) /* GCC 4.5.4 */\n# define GTEST_STDLIB_CXX11 1\n#endif\n\n// Only use C++11 library features if the library provides them.\n#if GTEST_STDLIB_CXX11\n# define GTEST_HAS_STD_BEGIN_AND_END_ 1\n# define GTEST_HAS_STD_FORWARD_LIST_ 1\n# define GTEST_HAS_STD_FUNCTION_ 1\n# define GTEST_HAS_STD_INITIALIZER_LIST_ 1\n# define GTEST_HAS_STD_MOVE_ 1\n# define GTEST_HAS_STD_SHARED_PTR_ 1\n# define GTEST_HAS_STD_TYPE_TRAITS_ 1\n# define GTEST_HAS_STD_UNIQUE_PTR_ 1\n#endif\n\n// C++11 specifies that provides std::tuple.\n// Some platforms still might not have it, however.\n#if GTEST_LANG_CXX11\n# define GTEST_HAS_STD_TUPLE_ 1\n# if defined(__clang__)\n// Inspired by http://clang.llvm.org/docs/LanguageExtensions.html#__has_include\n# if defined(__has_include) && !__has_include()\n# undef GTEST_HAS_STD_TUPLE_\n# endif\n# elif defined(_MSC_VER)\n// Inspired by boost/config/stdlib/dinkumware.hpp\n# if defined(_CPPLIB_VER) && _CPPLIB_VER < 520\n# undef GTEST_HAS_STD_TUPLE_\n# endif\n# elif defined(__GLIBCXX__)\n// Inspired by boost/config/stdlib/libstdcpp3.hpp,\n// http://gcc.gnu.org/gcc-4.2/changes.html and\n// http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt01ch01.html#manual.intro.status.standard.200x\n# if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)\n# undef GTEST_HAS_STD_TUPLE_\n# endif\n# endif\n#endif\n\n// Brings in definitions for functions used in the testing::internal::posix\n// namespace (read, write, close, chdir, isatty, stat). We do not currently\n// use them on Windows Mobile.\n#if GTEST_OS_WINDOWS\n# if !GTEST_OS_WINDOWS_MOBILE\n# include \n# include \n# endif\n// In order to avoid having to include , use forward declaration\n#if GTEST_OS_WINDOWS_MINGW && !defined(__MINGW64_VERSION_MAJOR)\n// MinGW defined _CRITICAL_SECTION and _RTL_CRITICAL_SECTION as two\n// separate (equivalent) structs, instead of using typedef\ntypedef struct _CRITICAL_SECTION GTEST_CRITICAL_SECTION;\n#else\n// Assume CRITICAL_SECTION is a typedef of _RTL_CRITICAL_SECTION.\n// This assumption is verified by\n// WindowsTypesTest.CRITICAL_SECTIONIs_RTL_CRITICAL_SECTION.\ntypedef struct _RTL_CRITICAL_SECTION GTEST_CRITICAL_SECTION;\n#endif\n#else\n// This assumes that non-Windows OSes provide unistd.h. For OSes where this\n// is not the case, we need to include headers that provide the functions\n// mentioned above.\n# include \n# include \n#endif // GTEST_OS_WINDOWS\n\n#if GTEST_OS_LINUX_ANDROID\n// Used to define __ANDROID_API__ matching the target NDK API level.\n# include // NOLINT\n#endif\n\n// Defines this to true iff Google Test can use POSIX regular expressions.\n#ifndef GTEST_HAS_POSIX_RE\n# if GTEST_OS_LINUX_ANDROID\n// On Android, is only available starting with Gingerbread.\n# define GTEST_HAS_POSIX_RE (__ANDROID_API__ >= 9)\n# else\n# define GTEST_HAS_POSIX_RE (!GTEST_OS_WINDOWS)\n# endif\n#endif\n\n#if GTEST_USES_PCRE\n// The appropriate headers have already been included.\n\n#elif GTEST_HAS_POSIX_RE\n\n// On some platforms, needs someone to define size_t, and\n// won't compile otherwise. We can #include it here as we already\n// included , which is guaranteed to define size_t through\n// .\n# include // NOLINT\n\n# define GTEST_USES_POSIX_RE 1\n\n#elif GTEST_OS_WINDOWS\n\n// is not available on Windows. Use our own simple regex\n// implementation instead.\n# define GTEST_USES_SIMPLE_RE 1\n\n#else\n\n// may not be available on this platform. Use our own\n// simple regex implementation instead.\n# define GTEST_USES_SIMPLE_RE 1\n\n#endif // GTEST_USES_PCRE\n\n#ifndef GTEST_HAS_EXCEPTIONS\n// The user didn't tell us whether exceptions are enabled, so we need\n// to figure it out.\n# if defined(_MSC_VER) || defined(__BORLANDC__)\n// MSVC's and C++Builder's implementations of the STL use the _HAS_EXCEPTIONS\n// macro to enable exceptions, so we'll do the same.\n// Assumes that exceptions are enabled by default.\n# ifndef _HAS_EXCEPTIONS\n# define _HAS_EXCEPTIONS 1\n# endif // _HAS_EXCEPTIONS\n# define GTEST_HAS_EXCEPTIONS _HAS_EXCEPTIONS\n# elif defined(__clang__)\n// clang defines __EXCEPTIONS iff exceptions are enabled before clang 220714,\n// but iff cleanups are enabled after that. In Obj-C++ files, there can be\n// cleanups for ObjC exceptions which also need cleanups, even if C++ exceptions\n// are disabled. clang has __has_feature(cxx_exceptions) which checks for C++\n// exceptions starting at clang r206352, but which checked for cleanups prior to\n// that. To reliably check for C++ exception availability with clang, check for\n// __EXCEPTIONS && __has_feature(cxx_exceptions).\n# define GTEST_HAS_EXCEPTIONS (__EXCEPTIONS && __has_feature(cxx_exceptions))\n# elif defined(__GNUC__) && __EXCEPTIONS\n// gcc defines __EXCEPTIONS to 1 iff exceptions are enabled.\n# define GTEST_HAS_EXCEPTIONS 1\n# elif defined(__SUNPRO_CC)\n// Sun Pro CC supports exceptions. However, there is no compile-time way of\n// detecting whether they are enabled or not. Therefore, we assume that\n// they are enabled unless the user tells us otherwise.\n# define GTEST_HAS_EXCEPTIONS 1\n# elif defined(__IBMCPP__) && __EXCEPTIONS\n// xlC defines __EXCEPTIONS to 1 iff exceptions are enabled.\n# define GTEST_HAS_EXCEPTIONS 1\n# elif defined(__HP_aCC)\n// Exception handling is in effect by default in HP aCC compiler. It has to\n// be turned of by +noeh compiler option if desired.\n# define GTEST_HAS_EXCEPTIONS 1\n# else\n// For other compilers, we assume exceptions are disabled to be\n// conservative.\n# define GTEST_HAS_EXCEPTIONS 0\n# endif // defined(_MSC_VER) || defined(__BORLANDC__)\n#endif // GTEST_HAS_EXCEPTIONS\n\n#if !defined(GTEST_HAS_STD_STRING)\n// Even though we don't use this macro any longer, we keep it in case\n// some clients still depend on it.\n# define GTEST_HAS_STD_STRING 1\n#elif !GTEST_HAS_STD_STRING\n// The user told us that ::std::string isn't available.\n# error \"Google Test cannot be used where ::std::string isn't available.\"\n#endif // !defined(GTEST_HAS_STD_STRING)\n\n#ifndef GTEST_HAS_GLOBAL_STRING\n// The user didn't tell us whether ::string is available, so we need\n// to figure it out.\n\n# define GTEST_HAS_GLOBAL_STRING 0\n\n#endif // GTEST_HAS_GLOBAL_STRING\n\n#ifndef GTEST_HAS_STD_WSTRING\n// The user didn't tell us whether ::std::wstring is available, so we need\n// to figure it out.\n// TODO(wan@google.com): uses autoconf to detect whether ::std::wstring\n// is available.\n\n// Cygwin 1.7 and below doesn't support ::std::wstring.\n// Solaris' libc++ doesn't support it either. Android has\n// no support for it at least as recent as Froyo (2.2).\n# define GTEST_HAS_STD_WSTRING \\\n (!(GTEST_OS_LINUX_ANDROID || GTEST_OS_CYGWIN || GTEST_OS_SOLARIS))\n\n#endif // GTEST_HAS_STD_WSTRING\n\n#ifndef GTEST_HAS_GLOBAL_WSTRING\n// The user didn't tell us whether ::wstring is available, so we need\n// to figure it out.\n# define GTEST_HAS_GLOBAL_WSTRING \\\n (GTEST_HAS_STD_WSTRING && GTEST_HAS_GLOBAL_STRING)\n#endif // GTEST_HAS_GLOBAL_WSTRING\n\n// Determines whether RTTI is available.\n#ifndef GTEST_HAS_RTTI\n// The user didn't tell us whether RTTI is enabled, so we need to\n// figure it out.\n\n# ifdef _MSC_VER\n\n# ifdef _CPPRTTI // MSVC defines this macro iff RTTI is enabled.\n# define GTEST_HAS_RTTI 1\n# else\n# define GTEST_HAS_RTTI 0\n# endif\n\n// Starting with version 4.3.2, gcc defines __GXX_RTTI iff RTTI is enabled.\n# elif defined(__GNUC__) && (GTEST_GCC_VER_ >= 40302)\n\n# ifdef __GXX_RTTI\n// When building against STLport with the Android NDK and with\n// -frtti -fno-exceptions, the build fails at link time with undefined\n// references to __cxa_bad_typeid. Note sure if STL or toolchain bug,\n// so disable RTTI when detected.\n# if GTEST_OS_LINUX_ANDROID && defined(_STLPORT_MAJOR) && \\\n !defined(__EXCEPTIONS)\n# define GTEST_HAS_RTTI 0\n# else\n# define GTEST_HAS_RTTI 1\n# endif // GTEST_OS_LINUX_ANDROID && __STLPORT_MAJOR && !__EXCEPTIONS\n# else\n# define GTEST_HAS_RTTI 0\n# endif // __GXX_RTTI\n\n// Clang defines __GXX_RTTI starting with version 3.0, but its manual recommends\n// using has_feature instead. has_feature(cxx_rtti) is supported since 2.7, the\n// first version with C++ support.\n# elif defined(__clang__)\n\n# define GTEST_HAS_RTTI __has_feature(cxx_rtti)\n\n// Starting with version 9.0 IBM Visual Age defines __RTTI_ALL__ to 1 if\n// both the typeid and dynamic_cast features are present.\n# elif defined(__IBMCPP__) && (__IBMCPP__ >= 900)\n\n# ifdef __RTTI_ALL__\n# define GTEST_HAS_RTTI 1\n# else\n# define GTEST_HAS_RTTI 0\n# endif\n\n# else\n\n// For all other compilers, we assume RTTI is enabled.\n# define GTEST_HAS_RTTI 1\n\n# endif // _MSC_VER\n\n#endif // GTEST_HAS_RTTI\n\n// It's this header's responsibility to #include when RTTI\n// is enabled.\n#if GTEST_HAS_RTTI\n# include \n#endif\n\n// Determines whether Google Test can use the pthreads library.\n#ifndef GTEST_HAS_PTHREAD\n// The user didn't tell us explicitly, so we make reasonable assumptions about\n// which platforms have pthreads support.\n//\n// To disable threading support in Google Test, add -DGTEST_HAS_PTHREAD=0\n// to your compiler flags.\n# define GTEST_HAS_PTHREAD (GTEST_OS_LINUX || GTEST_OS_MAC || GTEST_OS_HPUX \\\n || GTEST_OS_QNX || GTEST_OS_FREEBSD || GTEST_OS_NACL)\n#endif // GTEST_HAS_PTHREAD\n\n#if GTEST_HAS_PTHREAD\n// gtest-port.h guarantees to #include when GTEST_HAS_PTHREAD is\n// true.\n# include // NOLINT\n\n// For timespec and nanosleep, used below.\n# include // NOLINT\n#endif\n\n// Determines if hash_map/hash_set are available.\n// Only used for testing against those containers.\n#if !defined(GTEST_HAS_HASH_MAP_)\n# if _MSC_VER\n# define GTEST_HAS_HASH_MAP_ 1 // Indicates that hash_map is available.\n# define GTEST_HAS_HASH_SET_ 1 // Indicates that hash_set is available.\n# endif // _MSC_VER\n#endif // !defined(GTEST_HAS_HASH_MAP_)\n\n// Determines whether Google Test can use tr1/tuple. You can define\n// this macro to 0 to prevent Google Test from using tuple (any\n// feature depending on tuple with be disabled in this mode).\n#ifndef GTEST_HAS_TR1_TUPLE\n# if GTEST_OS_LINUX_ANDROID && defined(_STLPORT_MAJOR)\n// STLport, provided with the Android NDK, has neither or .\n# define GTEST_HAS_TR1_TUPLE 0\n# else\n// The user didn't tell us not to do it, so we assume it's OK.\n# define GTEST_HAS_TR1_TUPLE 1\n# endif\n#endif // GTEST_HAS_TR1_TUPLE\n\n// Determines whether Google Test's own tr1 tuple implementation\n// should be used.\n#ifndef GTEST_USE_OWN_TR1_TUPLE\n// The user didn't tell us, so we need to figure it out.\n\n// We use our own TR1 tuple if we aren't sure the user has an\n// implementation of it already. At this time, libstdc++ 4.0.0+ and\n// MSVC 2010 are the only mainstream standard libraries that come\n// with a TR1 tuple implementation. NVIDIA's CUDA NVCC compiler\n// pretends to be GCC by defining __GNUC__ and friends, but cannot\n// compile GCC's tuple implementation. MSVC 2008 (9.0) provides TR1\n// tuple in a 323 MB Feature Pack download, which we cannot assume the\n// user has. QNX's QCC compiler is a modified GCC but it doesn't\n// support TR1 tuple. libc++ only provides std::tuple, in C++11 mode,\n// and it can be used with some compilers that define __GNUC__.\n# if (defined(__GNUC__) && !defined(__CUDACC__) && (GTEST_GCC_VER_ >= 40000) \\\n && !GTEST_OS_QNX && !defined(_LIBCPP_VERSION)) || _MSC_VER >= 1600\n# define GTEST_ENV_HAS_TR1_TUPLE_ 1\n# endif\n\n// C++11 specifies that provides std::tuple. Use that if gtest is used\n// in C++11 mode and libstdc++ isn't very old (binaries targeting OS X 10.6\n// can build with clang but need to use gcc4.2's libstdc++).\n# if GTEST_LANG_CXX11 && (!defined(__GLIBCXX__) || __GLIBCXX__ > 20110325)\n# define GTEST_ENV_HAS_STD_TUPLE_ 1\n# endif\n\n# if GTEST_ENV_HAS_TR1_TUPLE_ || GTEST_ENV_HAS_STD_TUPLE_\n# define GTEST_USE_OWN_TR1_TUPLE 0\n# else\n# define GTEST_USE_OWN_TR1_TUPLE 1\n# endif\n\n#endif // GTEST_USE_OWN_TR1_TUPLE\n\n// To avoid conditional compilation everywhere, we make it\n// gtest-port.h's responsibility to #include the header implementing\n// tuple.\n#if GTEST_HAS_STD_TUPLE_\n# include // IWYU pragma: export\n# define GTEST_TUPLE_NAMESPACE_ ::std\n#endif // GTEST_HAS_STD_TUPLE_\n\n// We include tr1::tuple even if std::tuple is available to define printers for\n// them.\n#if GTEST_HAS_TR1_TUPLE\n# ifndef GTEST_TUPLE_NAMESPACE_\n# define GTEST_TUPLE_NAMESPACE_ ::std::tr1\n# endif // GTEST_TUPLE_NAMESPACE_\n\n# if GTEST_USE_OWN_TR1_TUPLE\n# include \"gtest/internal/gtest-tuple.h\" // IWYU pragma: export // NOLINT\n# elif GTEST_ENV_HAS_STD_TUPLE_\n# include \n// C++11 puts its tuple into the ::std namespace rather than\n// ::std::tr1. gtest expects tuple to live in ::std::tr1, so put it there.\n// This causes undefined behavior, but supported compilers react in\n// the way we intend.\nnamespace std {\nnamespace tr1 {\nusing ::std::get;\nusing ::std::make_tuple;\nusing ::std::tuple;\nusing ::std::tuple_element;\nusing ::std::tuple_size;\n}\n}\n\n# elif GTEST_OS_SYMBIAN\n\n// On Symbian, BOOST_HAS_TR1_TUPLE causes Boost's TR1 tuple library to\n// use STLport's tuple implementation, which unfortunately doesn't\n// work as the copy of STLport distributed with Symbian is incomplete.\n// By making sure BOOST_HAS_TR1_TUPLE is undefined, we force Boost to\n// use its own tuple implementation.\n# ifdef BOOST_HAS_TR1_TUPLE\n# undef BOOST_HAS_TR1_TUPLE\n# endif // BOOST_HAS_TR1_TUPLE\n\n// This prevents , which defines\n// BOOST_HAS_TR1_TUPLE, from being #included by Boost's .\n# define BOOST_TR1_DETAIL_CONFIG_HPP_INCLUDED\n# include // IWYU pragma: export // NOLINT\n\n# elif defined(__GNUC__) && (GTEST_GCC_VER_ >= 40000)\n// GCC 4.0+ implements tr1/tuple in the header. This does\n// not conform to the TR1 spec, which requires the header to be .\n\n# if !GTEST_HAS_RTTI && GTEST_GCC_VER_ < 40302\n// Until version 4.3.2, gcc has a bug that causes ,\n// which is #included by , to not compile when RTTI is\n// disabled. _TR1_FUNCTIONAL is the header guard for\n// . Hence the following #define is a hack to prevent\n// from being included.\n# define _TR1_FUNCTIONAL 1\n# include \n# undef _TR1_FUNCTIONAL // Allows the user to #include\n // if he chooses to.\n# else\n# include // NOLINT\n# endif // !GTEST_HAS_RTTI && GTEST_GCC_VER_ < 40302\n\n# else\n// If the compiler is not GCC 4.0+, we assume the user is using a\n// spec-conforming TR1 implementation.\n# include // IWYU pragma: export // NOLINT\n# endif // GTEST_USE_OWN_TR1_TUPLE\n\n#endif // GTEST_HAS_TR1_TUPLE\n\n// Determines whether clone(2) is supported.\n// Usually it will only be available on Linux, excluding\n// Linux on the Itanium architecture.\n// Also see http://linux.die.net/man/2/clone.\n#ifndef GTEST_HAS_CLONE\n// The user didn't tell us, so we need to figure it out.\n\n# if GTEST_OS_LINUX && !defined(__ia64__)\n# if GTEST_OS_LINUX_ANDROID\n// On Android, clone() became available at different API levels for each 32-bit\n// architecture.\n# if defined(__LP64__) || \\\n (defined(__arm__) && __ANDROID_API__ >= 9) || \\\n (defined(__mips__) && __ANDROID_API__ >= 12) || \\\n (defined(__i386__) && __ANDROID_API__ >= 17)\n# define GTEST_HAS_CLONE 1\n# else\n# define GTEST_HAS_CLONE 0\n# endif\n# else\n# define GTEST_HAS_CLONE 1\n# endif\n# else\n# define GTEST_HAS_CLONE 0\n# endif // GTEST_OS_LINUX && !defined(__ia64__)\n\n#endif // GTEST_HAS_CLONE\n\n// Determines whether to support stream redirection. This is used to test\n// output correctness and to implement death tests.\n#ifndef GTEST_HAS_STREAM_REDIRECTION\n// By default, we assume that stream redirection is supported on all\n// platforms except known mobile ones.\n# if GTEST_OS_WINDOWS_MOBILE || GTEST_OS_SYMBIAN || \\\n GTEST_OS_WINDOWS_PHONE || GTEST_OS_WINDOWS_RT\n# define GTEST_HAS_STREAM_REDIRECTION 0\n# else\n# define GTEST_HAS_STREAM_REDIRECTION 1\n# endif // !GTEST_OS_WINDOWS_MOBILE && !GTEST_OS_SYMBIAN\n#endif // GTEST_HAS_STREAM_REDIRECTION\n\n// Determines whether to support death tests.\n// Google Test does not support death tests for VC 7.1 and earlier as\n// abort() in a VC 7.1 application compiled as GUI in debug config\n// pops up a dialog window that cannot be suppressed programmatically.\n#if (GTEST_OS_LINUX || GTEST_OS_CYGWIN || GTEST_OS_SOLARIS || \\\n (GTEST_OS_MAC && !GTEST_OS_IOS) || \\\n (GTEST_OS_WINDOWS_DESKTOP && _MSC_VER >= 1400) || \\\n GTEST_OS_WINDOWS_MINGW || GTEST_OS_AIX || GTEST_OS_HPUX || \\\n GTEST_OS_OPENBSD || GTEST_OS_QNX || GTEST_OS_FREEBSD)\n# define GTEST_HAS_DEATH_TEST 1\n#endif\n\n// We don't support MSVC 7.1 with exceptions disabled now. Therefore\n// all the compilers we care about are adequate for supporting\n// value-parameterized tests.\n#define GTEST_HAS_PARAM_TEST 1\n\n// Determines whether to support type-driven tests.\n\n// Typed tests need and variadic macros, which GCC, VC++ 8.0,\n// Sun Pro CC, IBM Visual Age, and HP aCC support.\n#if defined(__GNUC__) || (_MSC_VER >= 1400) || defined(__SUNPRO_CC) || \\\n defined(__IBMCPP__) || defined(__HP_aCC)\n# define GTEST_HAS_TYPED_TEST 1\n# define GTEST_HAS_TYPED_TEST_P 1\n#endif\n\n// Determines whether to support Combine(). This only makes sense when\n// value-parameterized tests are enabled. The implementation doesn't\n// work on Sun Studio since it doesn't understand templated conversion\n// operators.\n#if GTEST_HAS_PARAM_TEST && GTEST_HAS_TR1_TUPLE && !defined(__SUNPRO_CC)\n# define GTEST_HAS_COMBINE 1\n#endif\n\n// Determines whether the system compiler uses UTF-16 for encoding wide strings.\n#define GTEST_WIDE_STRING_USES_UTF16_ \\\n (GTEST_OS_WINDOWS || GTEST_OS_CYGWIN || GTEST_OS_SYMBIAN || GTEST_OS_AIX)\n\n// Determines whether test results can be streamed to a socket.\n#if GTEST_OS_LINUX\n# define GTEST_CAN_STREAM_RESULTS_ 1\n#endif\n\n// Defines some utility macros.\n\n// The GNU compiler emits a warning if nested \"if\" statements are followed by\n// an \"else\" statement and braces are not used to explicitly disambiguate the\n// \"else\" binding. This leads to problems with code like:\n//\n// if (gate)\n// ASSERT_*(condition) << \"Some message\";\n//\n// The \"switch (0) case 0:\" idiom is used to suppress this.\n#ifdef __INTEL_COMPILER\n# define GTEST_AMBIGUOUS_ELSE_BLOCKER_\n#else\n# define GTEST_AMBIGUOUS_ELSE_BLOCKER_ switch (0) case 0: default: // NOLINT\n#endif\n\n// Use this annotation at the end of a struct/class definition to\n// prevent the compiler from optimizing away instances that are never\n// used. This is useful when all interesting logic happens inside the\n// c'tor and / or d'tor. Example:\n//\n// struct Foo {\n// Foo() { ... }\n// } GTEST_ATTRIBUTE_UNUSED_;\n//\n// Also use it after a variable or parameter declaration to tell the\n// compiler the variable/parameter does not have to be used.\n#if defined(__GNUC__) && !defined(COMPILER_ICC)\n# define GTEST_ATTRIBUTE_UNUSED_ __attribute__ ((unused))\n#elif defined(__clang__)\n# if __has_attribute(unused)\n# define GTEST_ATTRIBUTE_UNUSED_ __attribute__ ((unused))\n# endif\n#endif\n#ifndef GTEST_ATTRIBUTE_UNUSED_\n# define GTEST_ATTRIBUTE_UNUSED_\n#endif\n\n// A macro to disallow operator=\n// This should be used in the private: declarations for a class.\n#define GTEST_DISALLOW_ASSIGN_(type)\\\n void operator=(type const &)\n\n// A macro to disallow copy constructor and operator=\n// This should be used in the private: declarations for a class.\n#define GTEST_DISALLOW_COPY_AND_ASSIGN_(type)\\\n type(type const &);\\\n GTEST_DISALLOW_ASSIGN_(type)\n\n// Tell the compiler to warn about unused return values for functions declared\n// with this macro. The macro should be used on function declarations\n// following the argument list:\n//\n// Sprocket* AllocateSprocket() GTEST_MUST_USE_RESULT_;\n#if defined(__GNUC__) && (GTEST_GCC_VER_ >= 30400) && !defined(COMPILER_ICC)\n# define GTEST_MUST_USE_RESULT_ __attribute__ ((warn_unused_result))\n#else\n# define GTEST_MUST_USE_RESULT_\n#endif // __GNUC__ && (GTEST_GCC_VER_ >= 30400) && !COMPILER_ICC\n\n// MS C++ compiler emits warning when a conditional expression is compile time\n// constant. In some contexts this warning is false positive and needs to be\n// suppressed. Use the following two macros in such cases:\n//\n// GTEST_INTENTIONAL_CONST_COND_PUSH_()\n// while (true) {\n// GTEST_INTENTIONAL_CONST_COND_POP_()\n// }\n# define GTEST_INTENTIONAL_CONST_COND_PUSH_() \\\n GTEST_DISABLE_MSC_WARNINGS_PUSH_(4127)\n# define GTEST_INTENTIONAL_CONST_COND_POP_() \\\n GTEST_DISABLE_MSC_WARNINGS_POP_()\n\n// Determine whether the compiler supports Microsoft's Structured Exception\n// Handling. This is supported by several Windows compilers but generally\n// does not exist on any other system.\n#ifndef GTEST_HAS_SEH\n// The user didn't tell us, so we need to figure it out.\n\n# if defined(_MSC_VER) || defined(__BORLANDC__)\n// These two compilers are known to support SEH.\n# define GTEST_HAS_SEH 1\n# else\n// Assume no SEH.\n# define GTEST_HAS_SEH 0\n# endif\n\n#define GTEST_IS_THREADSAFE \\\n (GTEST_HAS_MUTEX_AND_THREAD_LOCAL_ \\\n || (GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_PHONE && !GTEST_OS_WINDOWS_RT) \\\n || GTEST_HAS_PTHREAD)\n\n#endif // GTEST_HAS_SEH\n\n#ifdef _MSC_VER\n# if GTEST_LINKED_AS_SHARED_LIBRARY\n# define GTEST_API_ __declspec(dllimport)\n# elif GTEST_CREATE_SHARED_LIBRARY\n# define GTEST_API_ __declspec(dllexport)\n# endif\n#elif __GNUC__ >= 4 || defined(__clang__)\n# define GTEST_API_ __attribute__((visibility (\"default\")))\n#endif // _MSC_VER\n\n#ifndef GTEST_API_\n# define GTEST_API_\n#endif\n\n#ifdef __GNUC__\n// Ask the compiler to never inline a given function.\n# define GTEST_NO_INLINE_ __attribute__((noinline))\n#else\n# define GTEST_NO_INLINE_\n#endif\n\n// _LIBCPP_VERSION is defined by the libc++ library from the LLVM project.\n#if defined(__GLIBCXX__) || defined(_LIBCPP_VERSION)\n# define GTEST_HAS_CXXABI_H_ 1\n#else\n# define GTEST_HAS_CXXABI_H_ 0\n#endif\n\n// A function level attribute to disable checking for use of uninitialized\n// memory when built with MemorySanitizer.\n#if defined(__clang__)\n# if __has_feature(memory_sanitizer)\n# define GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_ \\\n __attribute__((no_sanitize_memory))\n# else\n# define GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_\n# endif // __has_feature(memory_sanitizer)\n#else\n# define GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_\n#endif // __clang__\n\n// A function level attribute to disable AddressSanitizer instrumentation.\n#if defined(__clang__)\n# if __has_feature(address_sanitizer)\n# define GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_ \\\n __attribute__((no_sanitize_address))\n# else\n# define GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_\n# endif // __has_feature(address_sanitizer)\n#else\n# define GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_\n#endif // __clang__\n\n// A function level attribute to disable ThreadSanitizer instrumentation.\n#if defined(__clang__)\n# if __has_feature(thread_sanitizer)\n# define GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_ \\\n __attribute__((no_sanitize_thread))\n# else\n# define GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_\n# endif // __has_feature(thread_sanitizer)\n#else\n# define GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_\n#endif // __clang__\n\nnamespace testing {\n\nclass Message;\n\n#if defined(GTEST_TUPLE_NAMESPACE_)\n// Import tuple and friends into the ::testing namespace.\n// It is part of our interface, having them in ::testing allows us to change\n// their types as needed.\nusing GTEST_TUPLE_NAMESPACE_::get;\nusing GTEST_TUPLE_NAMESPACE_::make_tuple;\nusing GTEST_TUPLE_NAMESPACE_::tuple;\nusing GTEST_TUPLE_NAMESPACE_::tuple_size;\nusing GTEST_TUPLE_NAMESPACE_::tuple_element;\n#endif // defined(GTEST_TUPLE_NAMESPACE_)\n\nnamespace internal {\n\n// A secret type that Google Test users don't know about. It has no\n// definition on purpose. Therefore it's impossible to create a\n// Secret object, which is what we want.\nclass Secret;\n\n// The GTEST_COMPILE_ASSERT_ macro can be used to verify that a compile time\n// expression is true. For example, you could use it to verify the\n// size of a static array:\n//\n// GTEST_COMPILE_ASSERT_(GTEST_ARRAY_SIZE_(names) == NUM_NAMES,\n// names_incorrect_size);\n//\n// or to make sure a struct is smaller than a certain size:\n//\n// GTEST_COMPILE_ASSERT_(sizeof(foo) < 128, foo_too_large);\n//\n// The second argument to the macro is the name of the variable. If\n// the expression is false, most compilers will issue a warning/error\n// containing the name of the variable.\n\n#if GTEST_LANG_CXX11\n# define GTEST_COMPILE_ASSERT_(expr, msg) static_assert(expr, #msg)\n#else // !GTEST_LANG_CXX11\ntemplate \n struct CompileAssert {\n};\n\n# define GTEST_COMPILE_ASSERT_(expr, msg) \\\n typedef ::testing::internal::CompileAssert<(static_cast(expr))> \\\n msg[static_cast(expr) ? 1 : -1] GTEST_ATTRIBUTE_UNUSED_\n#endif // !GTEST_LANG_CXX11\n\n// Implementation details of GTEST_COMPILE_ASSERT_:\n//\n// (In C++11, we simply use static_assert instead of the following)\n//\n// - GTEST_COMPILE_ASSERT_ works by defining an array type that has -1\n// elements (and thus is invalid) when the expression is false.\n//\n// - The simpler definition\n//\n// #define GTEST_COMPILE_ASSERT_(expr, msg) typedef char msg[(expr) ? 1 : -1]\n//\n// does not work, as gcc supports variable-length arrays whose sizes\n// are determined at run-time (this is gcc's extension and not part\n// of the C++ standard). As a result, gcc fails to reject the\n// following code with the simple definition:\n//\n// int foo;\n// GTEST_COMPILE_ASSERT_(foo, msg); // not supposed to compile as foo is\n// // not a compile-time constant.\n//\n// - By using the type CompileAssert<(bool(expr))>, we ensures that\n// expr is a compile-time constant. (Template arguments must be\n// determined at compile-time.)\n//\n// - The outter parentheses in CompileAssert<(bool(expr))> are necessary\n// to work around a bug in gcc 3.4.4 and 4.0.1. If we had written\n//\n// CompileAssert\n//\n// instead, these compilers will refuse to compile\n//\n// GTEST_COMPILE_ASSERT_(5 > 0, some_message);\n//\n// (They seem to think the \">\" in \"5 > 0\" marks the end of the\n// template argument list.)\n//\n// - The array size is (bool(expr) ? 1 : -1), instead of simply\n//\n// ((expr) ? 1 : -1).\n//\n// This is to avoid running into a bug in MS VC 7.1, which\n// causes ((0.0) ? 1 : -1) to incorrectly evaluate to 1.\n\n// StaticAssertTypeEqHelper is used by StaticAssertTypeEq defined in gtest.h.\n//\n// This template is declared, but intentionally undefined.\ntemplate \nstruct StaticAssertTypeEqHelper;\n\ntemplate \nstruct StaticAssertTypeEqHelper {\n enum { value = true };\n};\n\n// Evaluates to the number of elements in 'array'.\n#define GTEST_ARRAY_SIZE_(array) (sizeof(array) / sizeof(array[0]))\n\n#if GTEST_HAS_GLOBAL_STRING\ntypedef ::string string;\n#else\ntypedef ::std::string string;\n#endif // GTEST_HAS_GLOBAL_STRING\n\n#if GTEST_HAS_GLOBAL_WSTRING\ntypedef ::wstring wstring;\n#elif GTEST_HAS_STD_WSTRING\ntypedef ::std::wstring wstring;\n#endif // GTEST_HAS_GLOBAL_WSTRING\n\n// A helper for suppressing warnings on constant condition. It just\n// returns 'condition'.\nGTEST_API_ bool IsTrue(bool condition);\n\n// Defines scoped_ptr.\n\n// This implementation of scoped_ptr is PARTIAL - it only contains\n// enough stuff to satisfy Google Test's need.\ntemplate \nclass scoped_ptr {\n public:\n typedef T element_type;\n\n explicit scoped_ptr(T* p = NULL) : ptr_(p) {}\n ~scoped_ptr() { reset(); }\n\n T& operator*() const { return *ptr_; }\n T* operator->() const { return ptr_; }\n T* get() const { return ptr_; }\n\n T* release() {\n T* const ptr = ptr_;\n ptr_ = NULL;\n return ptr;\n }\n\n void reset(T* p = NULL) {\n if (p != ptr_) {\n if (IsTrue(sizeof(T) > 0)) { // Makes sure T is a complete type.\n delete ptr_;\n }\n ptr_ = p;\n }\n }\n\n friend void swap(scoped_ptr& a, scoped_ptr& b) {\n using std::swap;\n swap(a.ptr_, b.ptr_);\n }\n\n private:\n T* ptr_;\n\n GTEST_DISALLOW_COPY_AND_ASSIGN_(scoped_ptr);\n};\n\n// Defines RE.\n\n// A simple C++ wrapper for . It uses the POSIX Extended\n// Regular Expression syntax.\nclass GTEST_API_ RE {\n public:\n // A copy constructor is required by the Standard to initialize object\n // references from r-values.\n RE(const RE& other) { Init(other.pattern()); }\n\n // Constructs an RE from a string.\n RE(const ::std::string& regex) { Init(regex.c_str()); } // NOLINT\n\n#if GTEST_HAS_GLOBAL_STRING\n\n RE(const ::string& regex) { Init(regex.c_str()); } // NOLINT\n\n#endif // GTEST_HAS_GLOBAL_STRING\n\n RE(const char* regex) { Init(regex); } // NOLINT\n ~RE();\n\n // Returns the string representation of the regex.\n const char* pattern() const { return pattern_; }\n\n // FullMatch(str, re) returns true iff regular expression re matches\n // the entire str.\n // PartialMatch(str, re) returns true iff regular expression re\n // matches a substring of str (including str itself).\n //\n // TODO(wan@google.com): make FullMatch() and PartialMatch() work\n // when str contains NUL characters.\n static bool FullMatch(const ::std::string& str, const RE& re) {\n return FullMatch(str.c_str(), re);\n }\n static bool PartialMatch(const ::std::string& str, const RE& re) {\n return PartialMatch(str.c_str(), re);\n }\n\n#if GTEST_HAS_GLOBAL_STRING\n\n static bool FullMatch(const ::string& str, const RE& re) {\n return FullMatch(str.c_str(), re);\n }\n static bool PartialMatch(const ::string& str, const RE& re) {\n return PartialMatch(str.c_str(), re);\n }\n\n#endif // GTEST_HAS_GLOBAL_STRING\n\n static bool FullMatch(const char* str, const RE& re);\n static bool PartialMatch(const char* str, const RE& re);\n\n private:\n void Init(const char* regex);\n\n // We use a const char* instead of an std::string, as Google Test used to be\n // used where std::string is not available. TODO(wan@google.com): change to\n // std::string.\n const char* pattern_;\n bool is_valid_;\n\n#if GTEST_USES_POSIX_RE\n\n regex_t full_regex_; // For FullMatch().\n regex_t partial_regex_; // For PartialMatch().\n\n#else // GTEST_USES_SIMPLE_RE\n\n const char* full_pattern_; // For FullMatch();\n\n#endif\n\n GTEST_DISALLOW_ASSIGN_(RE);\n};\n\n// Formats a source file path and a line number as they would appear\n// in an error message from the compiler used to compile this code.\nGTEST_API_ ::std::string FormatFileLocation(const char* file, int line);\n\n// Formats a file location for compiler-independent XML output.\n// Although this function is not platform dependent, we put it next to\n// FormatFileLocation in order to contrast the two functions.\nGTEST_API_ ::std::string FormatCompilerIndependentFileLocation(const char* file,\n int line);\n\n// Defines logging utilities:\n// GTEST_LOG_(severity) - logs messages at the specified severity level. The\n// message itself is streamed into the macro.\n// LogToStderr() - directs all log messages to stderr.\n// FlushInfoLog() - flushes informational log messages.\n\nenum GTestLogSeverity {\n GTEST_INFO,\n GTEST_WARNING,\n GTEST_ERROR,\n GTEST_FATAL\n};\n\n// Formats log entry severity, provides a stream object for streaming the\n// log message, and terminates the message with a newline when going out of\n// scope.\nclass GTEST_API_ GTestLog {\n public:\n GTestLog(GTestLogSeverity severity, const char* file, int line);\n\n // Flushes the buffers and, if severity is GTEST_FATAL, aborts the program.\n ~GTestLog();\n\n ::std::ostream& GetStream() { return ::std::cerr; }\n\n private:\n const GTestLogSeverity severity_;\n\n GTEST_DISALLOW_COPY_AND_ASSIGN_(GTestLog);\n};\n\n#if !defined(GTEST_LOG_)\n\n# define GTEST_LOG_(severity) \\\n ::testing::internal::GTestLog(::testing::internal::GTEST_##severity, \\\n __FILE__, __LINE__).GetStream()\n\ninline void LogToStderr() {}\ninline void FlushInfoLog() { fflush(NULL); }\n\n#endif // !defined(GTEST_LOG_)\n\n#if !defined(GTEST_CHECK_)\n// INTERNAL IMPLEMENTATION - DO NOT USE.\n//\n// GTEST_CHECK_ is an all-mode assert. It aborts the program if the condition\n// is not satisfied.\n// Synopsys:\n// GTEST_CHECK_(boolean_condition);\n// or\n// GTEST_CHECK_(boolean_condition) << \"Additional message\";\n//\n// This checks the condition and if the condition is not satisfied\n// it prints message about the condition violation, including the\n// condition itself, plus additional message streamed into it, if any,\n// and then it aborts the program. It aborts the program irrespective of\n// whether it is built in the debug mode or not.\n# define GTEST_CHECK_(condition) \\\n GTEST_AMBIGUOUS_ELSE_BLOCKER_ \\\n if (::testing::internal::IsTrue(condition)) \\\n ; \\\n else \\\n GTEST_LOG_(FATAL) << \"Condition \" #condition \" failed. \"\n#endif // !defined(GTEST_CHECK_)\n\n// An all-mode assert to verify that the given POSIX-style function\n// call returns 0 (indicating success). Known limitation: this\n// doesn't expand to a balanced 'if' statement, so enclose the macro\n// in {} if you need to use it as the only statement in an 'if'\n// branch.\n#define GTEST_CHECK_POSIX_SUCCESS_(posix_call) \\\n if (const int gtest_error = (posix_call)) \\\n GTEST_LOG_(FATAL) << #posix_call << \"failed with error \" \\\n << gtest_error\n\n#if GTEST_HAS_STD_MOVE_\nusing std::move;\n#else // GTEST_HAS_STD_MOVE_\ntemplate \nconst T& move(const T& t) {\n return t;\n}\n#endif // GTEST_HAS_STD_MOVE_\n\n// INTERNAL IMPLEMENTATION - DO NOT USE IN USER CODE.\n//\n// Use ImplicitCast_ as a safe version of static_cast for upcasting in\n// the type hierarchy (e.g. casting a Foo* to a SuperclassOfFoo* or a\n// const Foo*). When you use ImplicitCast_, the compiler checks that\n// the cast is safe. Such explicit ImplicitCast_s are necessary in\n// surprisingly many situations where C++ demands an exact type match\n// instead of an argument type convertable to a target type.\n//\n// The syntax for using ImplicitCast_ is the same as for static_cast:\n//\n// ImplicitCast_(expr)\n//\n// ImplicitCast_ would have been part of the C++ standard library,\n// but the proposal was submitted too late. It will probably make\n// its way into the language in the future.\n//\n// This relatively ugly name is intentional. It prevents clashes with\n// similar functions users may have (e.g., implicit_cast). The internal\n// namespace alone is not enough because the function can be found by ADL.\ntemplate\ninline To ImplicitCast_(To x) { return x; }\n\n// When you upcast (that is, cast a pointer from type Foo to type\n// SuperclassOfFoo), it's fine to use ImplicitCast_<>, since upcasts\n// always succeed. When you downcast (that is, cast a pointer from\n// type Foo to type SubclassOfFoo), static_cast<> isn't safe, because\n// how do you know the pointer is really of type SubclassOfFoo? It\n// could be a bare Foo, or of type DifferentSubclassOfFoo. Thus,\n// when you downcast, you should use this macro. In debug mode, we\n// use dynamic_cast<> to double-check the downcast is legal (we die\n// if it's not). In normal mode, we do the efficient static_cast<>\n// instead. Thus, it's important to test in debug mode to make sure\n// the cast is legal!\n// This is the only place in the code we should use dynamic_cast<>.\n// In particular, you SHOULDN'T be using dynamic_cast<> in order to\n// do RTTI (eg code like this:\n// if (dynamic_cast(foo)) HandleASubclass1Object(foo);\n// if (dynamic_cast(foo)) HandleASubclass2Object(foo);\n// You should design the code some other way not to need this.\n//\n// This relatively ugly name is intentional. It prevents clashes with\n// similar functions users may have (e.g., down_cast). The internal\n// namespace alone is not enough because the function can be found by ADL.\ntemplate // use like this: DownCast_(foo);\ninline To DownCast_(From* f) { // so we only accept pointers\n // Ensures that To is a sub-type of From *. This test is here only\n // for compile-time type checking, and has no overhead in an\n // optimized build at run-time, as it will be optimized away\n // completely.\n GTEST_INTENTIONAL_CONST_COND_PUSH_()\n if (false) {\n GTEST_INTENTIONAL_CONST_COND_POP_()\n const To to = NULL;\n ::testing::internal::ImplicitCast_(to);\n }\n\n#if GTEST_HAS_RTTI\n // RTTI: debug mode only!\n GTEST_CHECK_(f == NULL || dynamic_cast(f) != NULL);\n#endif\n return static_cast(f);\n}\n\n// Downcasts the pointer of type Base to Derived.\n// Derived must be a subclass of Base. The parameter MUST\n// point to a class of type Derived, not any subclass of it.\n// When RTTI is available, the function performs a runtime\n// check to enforce this.\ntemplate \nDerived* CheckedDowncastToActualType(Base* base) {\n#if GTEST_HAS_RTTI\n GTEST_CHECK_(typeid(*base) == typeid(Derived));\n#endif\n\n#if GTEST_HAS_DOWNCAST_\n return ::down_cast(base);\n#elif GTEST_HAS_RTTI\n return dynamic_cast(base); // NOLINT\n#else\n return static_cast(base); // Poor man's downcast.\n#endif\n}\n\n#if GTEST_HAS_STREAM_REDIRECTION\n\n// Defines the stderr capturer:\n// CaptureStdout - starts capturing stdout.\n// GetCapturedStdout - stops capturing stdout and returns the captured string.\n// CaptureStderr - starts capturing stderr.\n// GetCapturedStderr - stops capturing stderr and returns the captured string.\n//\nGTEST_API_ void CaptureStdout();\nGTEST_API_ std::string GetCapturedStdout();\nGTEST_API_ void CaptureStderr();\nGTEST_API_ std::string GetCapturedStderr();\n\n#endif // GTEST_HAS_STREAM_REDIRECTION\n\n// Returns a path to temporary directory.\nGTEST_API_ std::string TempDir();\n\n// Returns the size (in bytes) of a file.\nGTEST_API_ size_t GetFileSize(FILE* file);\n\n// Reads the entire content of a file as a string.\nGTEST_API_ std::string ReadEntireFile(FILE* file);\n\n// All command line arguments.\nGTEST_API_ const ::std::vector& GetArgvs();\n\n#if GTEST_HAS_DEATH_TEST\n\nconst ::std::vector& GetInjectableArgvs();\nvoid SetInjectableArgvs(const ::std::vector*\n new_argvs);\n\n\n#endif // GTEST_HAS_DEATH_TEST\n\n// Defines synchronization primitives.\n#if GTEST_IS_THREADSAFE\n# if GTEST_HAS_PTHREAD\n// Sleeps for (roughly) n milliseconds. This function is only for testing\n// Google Test's own constructs. Don't use it in user tests, either\n// directly or indirectly.\ninline void SleepMilliseconds(int n) {\n const timespec time = {\n 0, // 0 seconds.\n n * 1000L * 1000L, // And n ms.\n };\n nanosleep(&time, NULL);\n}\n# endif // GTEST_HAS_PTHREAD\n\n# if GTEST_HAS_NOTIFICATION_\n// Notification has already been imported into the namespace.\n// Nothing to do here.\n\n# elif GTEST_HAS_PTHREAD\n// Allows a controller thread to pause execution of newly created\n// threads until notified. Instances of this class must be created\n// and destroyed in the controller thread.\n//\n// This class is only for testing Google Test's own constructs. Do not\n// use it in user tests, either directly or indirectly.\nclass Notification {\n public:\n Notification() : notified_(false) {\n GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_init(&mutex_, NULL));\n }\n ~Notification() {\n pthread_mutex_destroy(&mutex_);\n }\n\n // Notifies all threads created with this notification to start. Must\n // be called from the controller thread.\n void Notify() {\n pthread_mutex_lock(&mutex_);\n notified_ = true;\n pthread_mutex_unlock(&mutex_);\n }\n\n // Blocks until the controller thread notifies. Must be called from a test\n // thread.\n void WaitForNotification() {\n for (;;) {\n pthread_mutex_lock(&mutex_);\n const bool notified = notified_;\n pthread_mutex_unlock(&mutex_);\n if (notified)\n break;\n SleepMilliseconds(10);\n }\n }\n\n private:\n pthread_mutex_t mutex_;\n bool notified_;\n\n GTEST_DISALLOW_COPY_AND_ASSIGN_(Notification);\n};\n\n# elif GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_PHONE && !GTEST_OS_WINDOWS_RT\n\nGTEST_API_ void SleepMilliseconds(int n);\n\n// Provides leak-safe Windows kernel handle ownership.\n// Used in death tests and in threading support.\nclass GTEST_API_ AutoHandle {\n public:\n // Assume that Win32 HANDLE type is equivalent to void*. Doing so allows us to\n // avoid including in this header file. Including is\n // undesirable because it defines a lot of symbols and macros that tend to\n // conflict with client code. This assumption is verified by\n // WindowsTypesTest.HANDLEIsVoidStar.\n typedef void* Handle;\n AutoHandle();\n explicit AutoHandle(Handle handle);\n\n ~AutoHandle();\n\n Handle Get() const;\n void Reset();\n void Reset(Handle handle);\n\n private:\n // Returns true iff the handle is a valid handle object that can be closed.\n bool IsCloseable() const;\n\n Handle handle_;\n\n GTEST_DISALLOW_COPY_AND_ASSIGN_(AutoHandle);\n};\n\n// Allows a controller thread to pause execution of newly created\n// threads until notified. Instances of this class must be created\n// and destroyed in the controller thread.\n//\n// This class is only for testing Google Test's own constructs. Do not\n// use it in user tests, either directly or indirectly.\nclass GTEST_API_ Notification {\n public:\n Notification();\n void Notify();\n void WaitForNotification();\n\n private:\n AutoHandle event_;\n\n GTEST_DISALLOW_COPY_AND_ASSIGN_(Notification);\n};\n# endif // GTEST_HAS_NOTIFICATION_\n\n// On MinGW, we can have both GTEST_OS_WINDOWS and GTEST_HAS_PTHREAD\n// defined, but we don't want to use MinGW's pthreads implementation, which\n// has conformance problems with some versions of the POSIX standard.\n# if GTEST_HAS_PTHREAD && !GTEST_OS_WINDOWS_MINGW\n\n// As a C-function, ThreadFuncWithCLinkage cannot be templated itself.\n// Consequently, it cannot select a correct instantiation of ThreadWithParam\n// in order to call its Run(). Introducing ThreadWithParamBase as a\n// non-templated base class for ThreadWithParam allows us to bypass this\n// problem.\nclass ThreadWithParamBase {\n public:\n virtual ~ThreadWithParamBase() {}\n virtual void Run() = 0;\n};\n\n// pthread_create() accepts a pointer to a function type with the C linkage.\n// According to the Standard (7.5/1), function types with different linkages\n// are different even if they are otherwise identical. Some compilers (for\n// example, SunStudio) treat them as different types. Since class methods\n// cannot be defined with C-linkage we need to define a free C-function to\n// pass into pthread_create().\nextern \"C\" inline void* ThreadFuncWithCLinkage(void* thread) {\n static_cast(thread)->Run();\n return NULL;\n}\n\n// Helper class for testing Google Test's multi-threading constructs.\n// To use it, write:\n//\n// void ThreadFunc(int param) { /* Do things with param */ }\n// Notification thread_can_start;\n// ...\n// // The thread_can_start parameter is optional; you can supply NULL.\n// ThreadWithParam thread(&ThreadFunc, 5, &thread_can_start);\n// thread_can_start.Notify();\n//\n// These classes are only for testing Google Test's own constructs. Do\n// not use them in user tests, either directly or indirectly.\ntemplate \nclass ThreadWithParam : public ThreadWithParamBase {\n public:\n typedef void UserThreadFunc(T);\n\n ThreadWithParam(UserThreadFunc* func, T param, Notification* thread_can_start)\n : func_(func),\n param_(param),\n thread_can_start_(thread_can_start),\n finished_(false) {\n ThreadWithParamBase* const base = this;\n // The thread can be created only after all fields except thread_\n // have been initialized.\n GTEST_CHECK_POSIX_SUCCESS_(\n pthread_create(&thread_, 0, &ThreadFuncWithCLinkage, base));\n }\n ~ThreadWithParam() { Join(); }\n\n void Join() {\n if (!finished_) {\n GTEST_CHECK_POSIX_SUCCESS_(pthread_join(thread_, 0));\n finished_ = true;\n }\n }\n\n virtual void Run() {\n if (thread_can_start_ != NULL)\n thread_can_start_->WaitForNotification();\n func_(param_);\n }\n\n private:\n UserThreadFunc* const func_; // User-supplied thread function.\n const T param_; // User-supplied parameter to the thread function.\n // When non-NULL, used to block execution until the controller thread\n // notifies.\n Notification* const thread_can_start_;\n bool finished_; // true iff we know that the thread function has finished.\n pthread_t thread_; // The native thread object.\n\n GTEST_DISALLOW_COPY_AND_ASSIGN_(ThreadWithParam);\n};\n# endif // !GTEST_OS_WINDOWS && GTEST_HAS_PTHREAD ||\n // GTEST_HAS_MUTEX_AND_THREAD_LOCAL_\n\n# if GTEST_HAS_MUTEX_AND_THREAD_LOCAL_\n// Mutex and ThreadLocal have already been imported into the namespace.\n// Nothing to do here.\n\n# elif GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_PHONE && !GTEST_OS_WINDOWS_RT\n\n// Mutex implements mutex on Windows platforms. It is used in conjunction\n// with class MutexLock:\n//\n// Mutex mutex;\n// ...\n// MutexLock lock(&mutex); // Acquires the mutex and releases it at the\n// // end of the current scope.\n//\n// A static Mutex *must* be defined or declared using one of the following\n// macros:\n// GTEST_DEFINE_STATIC_MUTEX_(g_some_mutex);\n// GTEST_DECLARE_STATIC_MUTEX_(g_some_mutex);\n//\n// (A non-static Mutex is defined/declared in the usual way).\nclass GTEST_API_ Mutex {\n public:\n enum MutexType { kStatic = 0, kDynamic = 1 };\n // We rely on kStaticMutex being 0 as it is to what the linker initializes\n // type_ in static mutexes. critical_section_ will be initialized lazily\n // in ThreadSafeLazyInit().\n enum StaticConstructorSelector { kStaticMutex = 0 };\n\n // This constructor intentionally does nothing. It relies on type_ being\n // statically initialized to 0 (effectively setting it to kStatic) and on\n // ThreadSafeLazyInit() to lazily initialize the rest of the members.\n explicit Mutex(StaticConstructorSelector /*dummy*/) {}\n\n Mutex();\n ~Mutex();\n\n void Lock();\n\n void Unlock();\n\n // Does nothing if the current thread holds the mutex. Otherwise, crashes\n // with high probability.\n void AssertHeld();\n\n private:\n // Initializes owner_thread_id_ and critical_section_ in static mutexes.\n void ThreadSafeLazyInit();\n\n // Per http://blogs.msdn.com/b/oldnewthing/archive/2004/02/23/78395.aspx,\n // we assume that 0 is an invalid value for thread IDs.\n unsigned int owner_thread_id_;\n\n // For static mutexes, we rely on these members being initialized to zeros\n // by the linker.\n MutexType type_;\n long critical_section_init_phase_; // NOLINT\n GTEST_CRITICAL_SECTION* critical_section_;\n\n GTEST_DISALLOW_COPY_AND_ASSIGN_(Mutex);\n};\n\n# define GTEST_DECLARE_STATIC_MUTEX_(mutex) \\\n extern ::testing::internal::Mutex mutex\n\n# define GTEST_DEFINE_STATIC_MUTEX_(mutex) \\\n ::testing::internal::Mutex mutex(::testing::internal::Mutex::kStaticMutex)\n\n// We cannot name this class MutexLock because the ctor declaration would\n// conflict with a macro named MutexLock, which is defined on some\n// platforms. That macro is used as a defensive measure to prevent against\n// inadvertent misuses of MutexLock like \"MutexLock(&mu)\" rather than\n// \"MutexLock l(&mu)\". Hence the typedef trick below.\nclass GTestMutexLock {\n public:\n explicit GTestMutexLock(Mutex* mutex)\n : mutex_(mutex) { mutex_->Lock(); }\n\n ~GTestMutexLock() { mutex_->Unlock(); }\n\n private:\n Mutex* const mutex_;\n\n GTEST_DISALLOW_COPY_AND_ASSIGN_(GTestMutexLock);\n};\n\ntypedef GTestMutexLock MutexLock;\n\n// Base class for ValueHolder. Allows a caller to hold and delete a value\n// without knowing its type.\nclass ThreadLocalValueHolderBase {\n public:\n virtual ~ThreadLocalValueHolderBase() {}\n};\n\n// Provides a way for a thread to send notifications to a ThreadLocal\n// regardless of its parameter type.\nclass ThreadLocalBase {\n public:\n // Creates a new ValueHolder object holding a default value passed to\n // this ThreadLocal's constructor and returns it. It is the caller's\n // responsibility not to call this when the ThreadLocal instance already\n // has a value on the current thread.\n virtual ThreadLocalValueHolderBase* NewValueForCurrentThread() const = 0;\n\n protected:\n ThreadLocalBase() {}\n virtual ~ThreadLocalBase() {}\n\n private:\n GTEST_DISALLOW_COPY_AND_ASSIGN_(ThreadLocalBase);\n};\n\n// Maps a thread to a set of ThreadLocals that have values instantiated on that\n// thread and notifies them when the thread exits. A ThreadLocal instance is\n// expected to persist until all threads it has values on have terminated.\nclass GTEST_API_ ThreadLocalRegistry {\n public:\n // Registers thread_local_instance as having value on the current thread.\n // Returns a value that can be used to identify the thread from other threads.\n static ThreadLocalValueHolderBase* GetValueOnCurrentThread(\n const ThreadLocalBase* thread_local_instance);\n\n // Invoked when a ThreadLocal instance is destroyed.\n static void OnThreadLocalDestroyed(\n const ThreadLocalBase* thread_local_instance);\n};\n\nclass GTEST_API_ ThreadWithParamBase {\n public:\n void Join();\n\n protected:\n class Runnable {\n public:\n virtual ~Runnable() {}\n virtual void Run() = 0;\n };\n\n ThreadWithParamBase(Runnable *runnable, Notification* thread_can_start);\n virtual ~ThreadWithParamBase();\n\n private:\n AutoHandle thread_;\n};\n\n// Helper class for testing Google Test's multi-threading constructs.\ntemplate \nclass ThreadWithParam : public ThreadWithParamBase {\n public:\n typedef void UserThreadFunc(T);\n\n ThreadWithParam(UserThreadFunc* func, T param, Notification* thread_can_start)\n : ThreadWithParamBase(new RunnableImpl(func, param), thread_can_start) {\n }\n virtual ~ThreadWithParam() {}\n\n private:\n class RunnableImpl : public Runnable {\n public:\n RunnableImpl(UserThreadFunc* func, T param)\n : func_(func),\n param_(param) {\n }\n virtual ~RunnableImpl() {}\n virtual void Run() {\n func_(param_);\n }\n\n private:\n UserThreadFunc* const func_;\n const T param_;\n\n GTEST_DISALLOW_COPY_AND_ASSIGN_(RunnableImpl);\n };\n\n GTEST_DISALLOW_COPY_AND_ASSIGN_(ThreadWithParam);\n};\n\n// Implements thread-local storage on Windows systems.\n//\n// // Thread 1\n// ThreadLocal tl(100); // 100 is the default value for each thread.\n//\n// // Thread 2\n// tl.set(150); // Changes the value for thread 2 only.\n// EXPECT_EQ(150, tl.get());\n//\n// // Thread 1\n// EXPECT_EQ(100, tl.get()); // In thread 1, tl has the original value.\n// tl.set(200);\n// EXPECT_EQ(200, tl.get());\n//\n// The template type argument T must have a public copy constructor.\n// In addition, the default ThreadLocal constructor requires T to have\n// a public default constructor.\n//\n// The users of a TheadLocal instance have to make sure that all but one\n// threads (including the main one) using that instance have exited before\n// destroying it. Otherwise, the per-thread objects managed for them by the\n// ThreadLocal instance are not guaranteed to be destroyed on all platforms.\n//\n// Google Test only uses global ThreadLocal objects. That means they\n// will die after main() has returned. Therefore, no per-thread\n// object managed by Google Test will be leaked as long as all threads\n// using Google Test have exited when main() returns.\ntemplate \nclass ThreadLocal : public ThreadLocalBase {\n public:\n ThreadLocal() : default_factory_(new DefaultValueHolderFactory()) {}\n explicit ThreadLocal(const T& value)\n : default_factory_(new InstanceValueHolderFactory(value)) {}\n\n ~ThreadLocal() { ThreadLocalRegistry::OnThreadLocalDestroyed(this); }\n\n T* pointer() { return GetOrCreateValue(); }\n const T* pointer() const { return GetOrCreateValue(); }\n const T& get() const { return *pointer(); }\n void set(const T& value) { *pointer() = value; }\n\n private:\n // Holds a value of T. Can be deleted via its base class without the caller\n // knowing the type of T.\n class ValueHolder : public ThreadLocalValueHolderBase {\n public:\n ValueHolder() : value_() {}\n explicit ValueHolder(const T& value) : value_(value) {}\n\n T* pointer() { return &value_; }\n\n private:\n T value_;\n GTEST_DISALLOW_COPY_AND_ASSIGN_(ValueHolder);\n };\n\n\n T* GetOrCreateValue() const {\n return static_cast(\n ThreadLocalRegistry::GetValueOnCurrentThread(this))->pointer();\n }\n\n virtual ThreadLocalValueHolderBase* NewValueForCurrentThread() const {\n return default_factory_->MakeNewHolder();\n }\n\n class ValueHolderFactory {\n public:\n ValueHolderFactory() {}\n virtual ~ValueHolderFactory() {}\n virtual ValueHolder* MakeNewHolder() const = 0;\n\n private:\n GTEST_DISALLOW_COPY_AND_ASSIGN_(ValueHolderFactory);\n };\n\n class DefaultValueHolderFactory : public ValueHolderFactory {\n public:\n DefaultValueHolderFactory() {}\n virtual ValueHolder* MakeNewHolder() const { return new ValueHolder(); }\n\n private:\n GTEST_DISALLOW_COPY_AND_ASSIGN_(DefaultValueHolderFactory);\n };\n\n class InstanceValueHolderFactory : public ValueHolderFactory {\n public:\n explicit InstanceValueHolderFactory(const T& value) : value_(value) {}\n virtual ValueHolder* MakeNewHolder() const {\n return new ValueHolder(value_);\n }\n\n private:\n const T value_; // The value for each thread.\n\n GTEST_DISALLOW_COPY_AND_ASSIGN_(InstanceValueHolderFactory);\n };\n\n scoped_ptr default_factory_;\n\n GTEST_DISALLOW_COPY_AND_ASSIGN_(ThreadLocal);\n};\n\n# elif GTEST_HAS_PTHREAD\n\n// MutexBase and Mutex implement mutex on pthreads-based platforms.\nclass MutexBase {\n public:\n // Acquires this mutex.\n void Lock() {\n GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_lock(&mutex_));\n owner_ = pthread_self();\n has_owner_ = true;\n }\n\n // Releases this mutex.\n void Unlock() {\n // Since the lock is being released the owner_ field should no longer be\n // considered valid. We don't protect writing to has_owner_ here, as it's\n // the caller's responsibility to ensure that the current thread holds the\n // mutex when this is called.\n has_owner_ = false;\n GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_unlock(&mutex_));\n }\n\n // Does nothing if the current thread holds the mutex. Otherwise, crashes\n // with high probability.\n void AssertHeld() const {\n GTEST_CHECK_(has_owner_ && pthread_equal(owner_, pthread_self()))\n << \"The current thread is not holding the mutex @\" << this;\n }\n\n // A static mutex may be used before main() is entered. It may even\n // be used before the dynamic initialization stage. Therefore we\n // must be able to initialize a static mutex object at link time.\n // This means MutexBase has to be a POD and its member variables\n // have to be public.\n public:\n pthread_mutex_t mutex_; // The underlying pthread mutex.\n // has_owner_ indicates whether the owner_ field below contains a valid thread\n // ID and is therefore safe to inspect (e.g., to use in pthread_equal()). All\n // accesses to the owner_ field should be protected by a check of this field.\n // An alternative might be to memset() owner_ to all zeros, but there's no\n // guarantee that a zero'd pthread_t is necessarily invalid or even different\n // from pthread_self().\n bool has_owner_;\n pthread_t owner_; // The thread holding the mutex.\n};\n\n// Forward-declares a static mutex.\n# define GTEST_DECLARE_STATIC_MUTEX_(mutex) \\\n extern ::testing::internal::MutexBase mutex\n\n// Defines and statically (i.e. at link time) initializes a static mutex.\n# define GTEST_DEFINE_STATIC_MUTEX_(mutex) \\\n ::testing::internal::MutexBase mutex = { PTHREAD_MUTEX_INITIALIZER, false, pthread_t() }\n\n// The Mutex class can only be used for mutexes created at runtime. It\n// shares its API with MutexBase otherwise.\nclass Mutex : public MutexBase {\n public:\n Mutex() {\n GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_init(&mutex_, NULL));\n has_owner_ = false;\n }\n ~Mutex() {\n GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_destroy(&mutex_));\n }\n\n private:\n GTEST_DISALLOW_COPY_AND_ASSIGN_(Mutex);\n};\n\n// We cannot name this class MutexLock because the ctor declaration would\n// conflict with a macro named MutexLock, which is defined on some\n// platforms. That macro is used as a defensive measure to prevent against\n// inadvertent misuses of MutexLock like \"MutexLock(&mu)\" rather than\n// \"MutexLock l(&mu)\". Hence the typedef trick below.\nclass GTestMutexLock {\n public:\n explicit GTestMutexLock(MutexBase* mutex)\n : mutex_(mutex) { mutex_->Lock(); }\n\n ~GTestMutexLock() { mutex_->Unlock(); }\n\n private:\n MutexBase* const mutex_;\n\n GTEST_DISALLOW_COPY_AND_ASSIGN_(GTestMutexLock);\n};\n\ntypedef GTestMutexLock MutexLock;\n\n// Helpers for ThreadLocal.\n\n// pthread_key_create() requires DeleteThreadLocalValue() to have\n// C-linkage. Therefore it cannot be templatized to access\n// ThreadLocal. Hence the need for class\n// ThreadLocalValueHolderBase.\nclass ThreadLocalValueHolderBase {\n public:\n virtual ~ThreadLocalValueHolderBase() {}\n};\n\n// Called by pthread to delete thread-local data stored by\n// pthread_setspecific().\nextern \"C\" inline void DeleteThreadLocalValue(void* value_holder) {\n delete static_cast(value_holder);\n}\n\n// Implements thread-local storage on pthreads-based systems.\ntemplate \nclass ThreadLocal {\n public:\n ThreadLocal()\n : key_(CreateKey()), default_factory_(new DefaultValueHolderFactory()) {}\n explicit ThreadLocal(const T& value)\n : key_(CreateKey()),\n default_factory_(new InstanceValueHolderFactory(value)) {}\n\n ~ThreadLocal() {\n // Destroys the managed object for the current thread, if any.\n DeleteThreadLocalValue(pthread_getspecific(key_));\n\n // Releases resources associated with the key. This will *not*\n // delete managed objects for other threads.\n GTEST_CHECK_POSIX_SUCCESS_(pthread_key_delete(key_));\n }\n\n T* pointer() { return GetOrCreateValue(); }\n const T* pointer() const { return GetOrCreateValue(); }\n const T& get() const { return *pointer(); }\n void set(const T& value) { *pointer() = value; }\n\n private:\n // Holds a value of type T.\n class ValueHolder : public ThreadLocalValueHolderBase {\n public:\n ValueHolder() : value_() {}\n explicit ValueHolder(const T& value) : value_(value) {}\n\n T* pointer() { return &value_; }\n\n private:\n T value_;\n GTEST_DISALLOW_COPY_AND_ASSIGN_(ValueHolder);\n };\n\n static pthread_key_t CreateKey() {\n pthread_key_t key;\n // When a thread exits, DeleteThreadLocalValue() will be called on\n // the object managed for that thread.\n GTEST_CHECK_POSIX_SUCCESS_(\n pthread_key_create(&key, &DeleteThreadLocalValue));\n return key;\n }\n\n T* GetOrCreateValue() const {\n ThreadLocalValueHolderBase* const holder =\n static_cast(pthread_getspecific(key_));\n if (holder != NULL) {\n return CheckedDowncastToActualType(holder)->pointer();\n }\n\n ValueHolder* const new_holder = default_factory_->MakeNewHolder();\n ThreadLocalValueHolderBase* const holder_base = new_holder;\n GTEST_CHECK_POSIX_SUCCESS_(pthread_setspecific(key_, holder_base));\n return new_holder->pointer();\n }\n\n class ValueHolderFactory {\n public:\n ValueHolderFactory() {}\n virtual ~ValueHolderFactory() {}\n virtual ValueHolder* MakeNewHolder() const = 0;\n\n private:\n GTEST_DISALLOW_COPY_AND_ASSIGN_(ValueHolderFactory);\n };\n\n class DefaultValueHolderFactory : public ValueHolderFactory {\n public:\n DefaultValueHolderFactory() {}\n virtual ValueHolder* MakeNewHolder() const { return new ValueHolder(); }\n\n private:\n GTEST_DISALLOW_COPY_AND_ASSIGN_(DefaultValueHolderFactory);\n };\n\n class InstanceValueHolderFactory : public ValueHolderFactory {\n public:\n explicit InstanceValueHolderFactory(const T& value) : value_(value) {}\n virtual ValueHolder* MakeNewHolder() const {\n return new ValueHolder(value_);\n }\n\n private:\n const T value_; // The value for each thread.\n\n GTEST_DISALLOW_COPY_AND_ASSIGN_(InstanceValueHolderFactory);\n };\n\n // A key pthreads uses for looking up per-thread values.\n const pthread_key_t key_;\n scoped_ptr default_factory_;\n\n GTEST_DISALLOW_COPY_AND_ASSIGN_(ThreadLocal);\n};\n\n# endif // GTEST_HAS_MUTEX_AND_THREAD_LOCAL_\n\n#else // GTEST_IS_THREADSAFE\n\n// A dummy implementation of synchronization primitives (mutex, lock,\n// and thread-local variable). Necessary for compiling Google Test where\n// mutex is not supported - using Google Test in multiple threads is not\n// supported on such platforms.\n\nclass Mutex {\n public:\n Mutex() {}\n void Lock() {}\n void Unlock() {}\n void AssertHeld() const {}\n};\n\n# define GTEST_DECLARE_STATIC_MUTEX_(mutex) \\\n extern ::testing::internal::Mutex mutex\n\n# define GTEST_DEFINE_STATIC_MUTEX_(mutex) ::testing::internal::Mutex mutex\n\n// We cannot name this class MutexLock because the ctor declaration would\n// conflict with a macro named MutexLock, which is defined on some\n// platforms. That macro is used as a defensive measure to prevent against\n// inadvertent misuses of MutexLock like \"MutexLock(&mu)\" rather than\n// \"MutexLock l(&mu)\". Hence the typedef trick below.\nclass GTestMutexLock {\n public:\n explicit GTestMutexLock(Mutex*) {} // NOLINT\n};\n\ntypedef GTestMutexLock MutexLock;\n\ntemplate \nclass ThreadLocal {\n public:\n ThreadLocal() : value_() {}\n explicit ThreadLocal(const T& value) : value_(value) {}\n T* pointer() { return &value_; }\n const T* pointer() const { return &value_; }\n const T& get() const { return value_; }\n void set(const T& value) { value_ = value; }\n private:\n T value_;\n};\n\n#endif // GTEST_IS_THREADSAFE\n\n// Returns the number of threads running in the process, or 0 to indicate that\n// we cannot detect it.\nGTEST_API_ size_t GetThreadCount();\n\n// Passing non-POD classes through ellipsis (...) crashes the ARM\n// compiler and generates a warning in Sun Studio. The Nokia Symbian\n// and the IBM XL C/C++ compiler try to instantiate a copy constructor\n// for objects passed through ellipsis (...), failing for uncopyable\n// objects. We define this to ensure that only POD is passed through\n// ellipsis on these systems.\n#if defined(__SYMBIAN32__) || defined(__IBMCPP__) || defined(__SUNPRO_CC)\n// We lose support for NULL detection where the compiler doesn't like\n// passing non-POD classes through ellipsis (...).\n# define GTEST_ELLIPSIS_NEEDS_POD_ 1\n#else\n# define GTEST_CAN_COMPARE_NULL 1\n#endif\n\n// The Nokia Symbian and IBM XL C/C++ compilers cannot decide between\n// const T& and const T* in a function template. These compilers\n// _can_ decide between class template specializations for T and T*,\n// so a tr1::type_traits-like is_pointer works.\n#if defined(__SYMBIAN32__) || defined(__IBMCPP__)\n# define GTEST_NEEDS_IS_POINTER_ 1\n#endif\n\ntemplate \nstruct bool_constant {\n typedef bool_constant type;\n static const bool value = bool_value;\n};\ntemplate const bool bool_constant::value;\n\ntypedef bool_constant false_type;\ntypedef bool_constant true_type;\n\ntemplate \nstruct is_pointer : public false_type {};\n\ntemplate \nstruct is_pointer : public true_type {};\n\ntemplate \nstruct IteratorTraits {\n typedef typename Iterator::value_type value_type;\n};\n\ntemplate \nstruct IteratorTraits {\n typedef T value_type;\n};\n\ntemplate \nstruct IteratorTraits {\n typedef T value_type;\n};\n\n#if GTEST_OS_WINDOWS\n# define GTEST_PATH_SEP_ \"\\\\\"\n# define GTEST_HAS_ALT_PATH_SEP_ 1\n// The biggest signed integer type the compiler supports.\ntypedef __int64 BiggestInt;\n#else\n# define GTEST_PATH_SEP_ \"/\"\n# define GTEST_HAS_ALT_PATH_SEP_ 0\ntypedef long long BiggestInt; // NOLINT\n#endif // GTEST_OS_WINDOWS\n\n// Utilities for char.\n\n// isspace(int ch) and friends accept an unsigned char or EOF. char\n// may be signed, depending on the compiler (or compiler flags).\n// Therefore we need to cast a char to unsigned char before calling\n// isspace(), etc.\n\ninline bool IsAlpha(char ch) {\n return isalpha(static_cast(ch)) != 0;\n}\ninline bool IsAlNum(char ch) {\n return isalnum(static_cast(ch)) != 0;\n}\ninline bool IsDigit(char ch) {\n return isdigit(static_cast(ch)) != 0;\n}\ninline bool IsLower(char ch) {\n return islower(static_cast(ch)) != 0;\n}\ninline bool IsSpace(char ch) {\n return isspace(static_cast(ch)) != 0;\n}\ninline bool IsUpper(char ch) {\n return isupper(static_cast(ch)) != 0;\n}\ninline bool IsXDigit(char ch) {\n return isxdigit(static_cast(ch)) != 0;\n}\ninline bool IsXDigit(wchar_t ch) {\n const unsigned char low_byte = static_cast(ch);\n return ch == low_byte && isxdigit(low_byte) != 0;\n}\n\ninline char ToLower(char ch) {\n return static_cast(tolower(static_cast(ch)));\n}\ninline char ToUpper(char ch) {\n return static_cast(toupper(static_cast(ch)));\n}\n\ninline std::string StripTrailingSpaces(std::string str) {\n std::string::iterator it = str.end();\n while (it != str.begin() && IsSpace(*--it))\n it = str.erase(it);\n return str;\n}\n\n// The testing::internal::posix namespace holds wrappers for common\n// POSIX functions. These wrappers hide the differences between\n// Windows/MSVC and POSIX systems. Since some compilers define these\n// standard functions as macros, the wrapper cannot have the same name\n// as the wrapped function.\n\nnamespace posix {\n\n// Functions with a different name on Windows.\n\n#if GTEST_OS_WINDOWS\n\ntypedef struct _stat StatStruct;\n\n# ifdef __BORLANDC__\ninline int IsATTY(int fd) { return isatty(fd); }\ninline int StrCaseCmp(const char* s1, const char* s2) {\n return stricmp(s1, s2);\n}\ninline char* StrDup(const char* src) { return strdup(src); }\n# else // !__BORLANDC__\n# if GTEST_OS_WINDOWS_MOBILE\n", "right_context": "# else\ninline int IsATTY(int fd) { return _isatty(fd); }\n# endif // GTEST_OS_WINDOWS_MOBILE\ninline int StrCaseCmp(const char* s1, const char* s2) {\n return _stricmp(s1, s2);\n}\ninline char* StrDup(const char* src) { return _strdup(src); }\n# endif // __BORLANDC__\n\n# if GTEST_OS_WINDOWS_MOBILE\ninline int FileNo(FILE* file) { return reinterpret_cast(_fileno(file)); }\n// Stat(), RmDir(), and IsDir() are not needed on Windows CE at this\n// time and thus not defined there.\n# else\ninline int FileNo(FILE* file) { return _fileno(file); }\ninline int Stat(const char* path, StatStruct* buf) { return _stat(path, buf); }\ninline int RmDir(const char* dir) { return _rmdir(dir); }\ninline bool IsDir(const StatStruct& st) {\n return (_S_IFDIR & st.st_mode) != 0;\n}\n# endif // GTEST_OS_WINDOWS_MOBILE\n\n#else\n\ntypedef struct stat StatStruct;\n\ninline int FileNo(FILE* file) { return fileno(file); }\ninline int IsATTY(int fd) { return isatty(fd); }\ninline int Stat(const char* path, StatStruct* buf) { return stat(path, buf); }\ninline int StrCaseCmp(const char* s1, const char* s2) {\n return strcasecmp(s1, s2);\n}\ninline char* StrDup(const char* src) { return strdup(src); }\ninline int RmDir(const char* dir) { return rmdir(dir); }\ninline bool IsDir(const StatStruct& st) { return S_ISDIR(st.st_mode); }\n\n#endif // GTEST_OS_WINDOWS\n\n// Functions deprecated by MSVC 8.0.\n\nGTEST_DISABLE_MSC_WARNINGS_PUSH_(4996 /* deprecated function */)\n\ninline const char* StrNCpy(char* dest, const char* src, size_t n) {\n return strncpy(dest, src, n);\n}\n\n// ChDir(), FReopen(), FDOpen(), Read(), Write(), Close(), and\n// StrError() aren't needed on Windows CE at this time and thus not\n// defined there.\n\n#if !GTEST_OS_WINDOWS_MOBILE && !GTEST_OS_WINDOWS_PHONE && !GTEST_OS_WINDOWS_RT\ninline int ChDir(const char* dir) { return chdir(dir); }\n#endif\ninline FILE* FOpen(const char* path, const char* mode) {\n return fopen(path, mode);\n}\n#if !GTEST_OS_WINDOWS_MOBILE\ninline FILE *FReopen(const char* path, const char* mode, FILE* stream) {\n return freopen(path, mode, stream);\n}\ninline FILE* FDOpen(int fd, const char* mode) { return fdopen(fd, mode); }\n#endif\ninline int FClose(FILE* fp) { return fclose(fp); }\n#if !GTEST_OS_WINDOWS_MOBILE\ninline int Read(int fd, void* buf, unsigned int count) {\n return static_cast(read(fd, buf, count));\n}\ninline int Write(int fd, const void* buf, unsigned int count) {\n return static_cast(write(fd, buf, count));\n}\ninline int Close(int fd) { return close(fd); }\ninline const char* StrError(int errnum) { return strerror(errnum); }\n#endif\ninline const char* GetEnv(const char* name) {\n#if GTEST_OS_WINDOWS_MOBILE || GTEST_OS_WINDOWS_PHONE | GTEST_OS_WINDOWS_RT\n // We are on Windows CE, which has no environment variables.\n static_cast(name); // To prevent 'unused argument' warning.\n return NULL;\n#elif defined(__BORLANDC__) || defined(__SunOS_5_8) || defined(__SunOS_5_9)\n // Environment variables which we programmatically clear will be set to the\n // empty string rather than unset (NULL). Handle that case.\n const char* const env = getenv(name);\n return (env != NULL && env[0] != '\\0') ? env : NULL;\n#else\n return getenv(name);\n#endif\n}\n\nGTEST_DISABLE_MSC_WARNINGS_POP_()\n\n#if GTEST_OS_WINDOWS_MOBILE\n// Windows CE has no C library. The abort() function is used in\n// several places in Google Test. This implementation provides a reasonable\n// imitation of standard behaviour.\nvoid Abort();\n#else\ninline void Abort() { abort(); }\n#endif // GTEST_OS_WINDOWS_MOBILE\n\n} // namespace posix\n\n// MSVC \"deprecates\" snprintf and issues warnings wherever it is used. In\n// order to avoid these warnings, we need to use _snprintf or _snprintf_s on\n// MSVC-based platforms. We map the GTEST_SNPRINTF_ macro to the appropriate\n// function in order to achieve that. We use macro definition here because\n// snprintf is a variadic function.\n#if _MSC_VER >= 1400 && !GTEST_OS_WINDOWS_MOBILE\n// MSVC 2005 and above support variadic macros.\n# define GTEST_SNPRINTF_(buffer, size, format, ...) \\\n _snprintf_s(buffer, size, size, format, __VA_ARGS__)\n#elif defined(_MSC_VER)\n// Windows CE does not define _snprintf_s and MSVC prior to 2005 doesn't\n// complain about _snprintf.\n# define GTEST_SNPRINTF_ _snprintf\n#else\n# define GTEST_SNPRINTF_ snprintf\n#endif\n\n// The maximum number a BiggestInt can represent. This definition\n// works no matter BiggestInt is represented in one's complement or\n// two's complement.\n//\n// We cannot rely on numeric_limits in STL, as __int64 and long long\n// are not part of standard C++ and numeric_limits doesn't need to be\n// defined for them.\nconst BiggestInt kMaxBiggestInt =\n ~(static_cast(1) << (8*sizeof(BiggestInt) - 1));\n\n// This template class serves as a compile-time function from size to\n// type. It maps a size in bytes to a primitive type with that\n// size. e.g.\n//\n// TypeWithSize<4>::UInt\n//\n// is typedef-ed to be unsigned int (unsigned integer made up of 4\n// bytes).\n//\n// Such functionality should belong to STL, but I cannot find it\n// there.\n//\n// Google Test uses this class in the implementation of floating-point\n// comparison.\n//\n// For now it only handles UInt (unsigned int) as that's all Google Test\n// needs. Other types can be easily added in the future if need\n// arises.\ntemplate \nclass TypeWithSize {\n public:\n // This prevents the user from using TypeWithSize with incorrect\n // values of N.\n typedef void UInt;\n};\n\n// The specialization for size 4.\ntemplate <>\nclass TypeWithSize<4> {\n public:\n // unsigned int has size 4 in both gcc and MSVC.\n //\n // As base/basictypes.h doesn't compile on Windows, we cannot use\n // uint32, uint64, and etc here.\n typedef int Int;\n typedef unsigned int UInt;\n};\n\n// The specialization for size 8.\ntemplate <>\nclass TypeWithSize<8> {\n public:\n#if GTEST_OS_WINDOWS\n typedef __int64 Int;\n typedef unsigned __int64 UInt;\n#else\n typedef long long Int; // NOLINT\n typedef unsigned long long UInt; // NOLINT\n#endif // GTEST_OS_WINDOWS\n};\n\n// Integer types of known sizes.\ntypedef TypeWithSize<4>::Int Int32;\ntypedef TypeWithSize<4>::UInt UInt32;\ntypedef TypeWithSize<8>::Int Int64;\ntypedef TypeWithSize<8>::UInt UInt64;\ntypedef TypeWithSize<8>::Int TimeInMillis; // Represents time in milliseconds.\n\n// Utilities for command line flags and environment variables.\n\n// Macro for referencing flags.\n#if !defined(GTEST_FLAG)\n# define GTEST_FLAG(name) FLAGS_gtest_##name\n#endif // !defined(GTEST_FLAG)\n\n#if !defined(GTEST_USE_OWN_FLAGFILE_FLAG_)\n# define GTEST_USE_OWN_FLAGFILE_FLAG_ 1\n#endif // !defined(GTEST_USE_OWN_FLAGFILE_FLAG_)\n\n#if !defined(GTEST_DECLARE_bool_)\n# define GTEST_FLAG_SAVER_ ::testing::internal::GTestFlagSaver\n\n// Macros for declaring flags.\n# define GTEST_DECLARE_bool_(name) GTEST_API_ extern bool GTEST_FLAG(name)\n# define GTEST_DECLARE_int32_(name) \\\n GTEST_API_ extern ::testing::internal::Int32 GTEST_FLAG(name)\n#define GTEST_DECLARE_string_(name) \\\n GTEST_API_ extern ::std::string GTEST_FLAG(name)\n\n// Macros for defining flags.\n#define GTEST_DEFINE_bool_(name, default_val, doc) \\\n GTEST_API_ bool GTEST_FLAG(name) = (default_val)\n#define GTEST_DEFINE_int32_(name, default_val, doc) \\\n GTEST_API_ ::testing::internal::Int32 GTEST_FLAG(name) = (default_val)\n#define GTEST_DEFINE_string_(name, default_val, doc) \\\n GTEST_API_ ::std::string GTEST_FLAG(name) = (default_val)\n\n#endif // !defined(GTEST_DECLARE_bool_)\n\n// Thread annotations\n#if !defined(GTEST_EXCLUSIVE_LOCK_REQUIRED_)\n# define GTEST_EXCLUSIVE_LOCK_REQUIRED_(locks)\n# define GTEST_LOCK_EXCLUDED_(locks)\n#endif // !defined(GTEST_EXCLUSIVE_LOCK_REQUIRED_)\n\n// Parses 'str' for a 32-bit signed integer. If successful, writes the result\n// to *value and returns true; otherwise leaves *value unchanged and returns\n// false.\n// TODO(chandlerc): Find a better way to refactor flag and environment parsing\n// out of both gtest-port.cc and gtest.cc to avoid exporting this utility\n// function.\nbool ParseInt32(const Message& src_text, const char* str, Int32* value);\n\n// Parses a bool/Int32/string from the environment variable\n// corresponding to the given Google Test flag.\nbool BoolFromGTestEnv(const char* flag, bool default_val);\nGTEST_API_ Int32 Int32FromGTestEnv(const char* flag, Int32 default_val);\nstd::string StringFromGTestEnv(const char* flag, const char* default_val);\n\n} // namespace internal\n} // namespace testing\n\n#endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_H_\n", "groundtruth": "inline int IsATTY(int /* fd */) { return 0; }\n", "crossfile_context": ""} {"task_id": "streamit-hls", "path": "streamit-hls/src/cputarget/channel_builder.h", "left_context": "#pragma once\n#include \n#include \"common/types.h\"\n\nnamespace llvm\n{\nclass Constant;\nclass Function;\nclass GlobalVariable;\nclass Module;\nclass Type;\n}\n\n", "right_context": "class Filter;\nclass Split;\nclass Join;\n}\n\nnamespace CPUTarget\n{\nclass ChannelBuilder\n{\npublic:\n ChannelBuilder(Frontend::WrappedLLVMContext* context, llvm::Module* mod);\n ~ChannelBuilder();\n\n Frontend::WrappedLLVMContext* GetContext() const { return m_context; }\n\n // TODO: Enum for mode, 0=roundrobin, 1=duplicate\n bool GenerateCode(StreamGraph::Filter* filter);\n bool GenerateCode(StreamGraph::Split* split);\n bool GenerateCode(StreamGraph::Join* join);\n\nprivate:\n bool GenerateFilterGlobals(StreamGraph::Filter* filter);\n bool GenerateFilterPeekFunction(StreamGraph::Filter* filter);\n bool GenerateFilterPopFunction(StreamGraph::Filter* filter);\n bool GenerateFilterPushFunction(StreamGraph::Filter* filter);\n\n bool GenerateSplitGlobals(StreamGraph::Split* split);\n bool GenerateSplitPushFunction(StreamGraph::Split* split);\n\n bool GenerateJoinGlobals(StreamGraph::Join* join);\n bool GenerateJoinSyncFunction(StreamGraph::Join* join);\n bool GenerateJoinPushFunction(StreamGraph::Join* join);\n\n Frontend::WrappedLLVMContext* m_context;\n llvm::Module* m_module;\n std::string m_instance_name;\n\n u32 m_input_buffer_size = 0;\n llvm::Type* m_input_buffer_type = nullptr;\n llvm::GlobalVariable* m_input_buffer_var = nullptr;\n llvm::GlobalVariable* m_last_index_var = nullptr;\n llvm::GlobalVariable* m_written_var = nullptr;\n llvm::GlobalVariable* m_distribution_var = nullptr;\n};\n\n} // namespace CPUTarget", "groundtruth": "namespace Frontend\n{\nclass WrappedLLVMContext;\n}\n", "crossfile_context": ""} {"task_id": "streamit-hls", "path": "streamit-hls/src/hlstarget/project_generator.h", "left_context": "#pragma once\n#include \n#include \n#include \n\nnamespace llvm\n{\nclass BasicBlock;\nclass Constant;\nclass Function;\nclass Module;\n}\n\nnamespace AST\n{\nclass FilterDeclaration;\n}\n\nnamespace Frontend\n{\nclass WrappedLLVMContext;\n}\n\nnamespace StreamGraph\n{\nclass StreamGraph;\nclass FilterPermutation;\n}\n\nnamespace HLSTarget\n{\n\nclass ProjectGenerator\n{\npublic:\n ProjectGenerator(Frontend::WrappedLLVMContext* context, StreamGraph::StreamGraph* streamgraph,\n const std::string& module_name, const std::string& output_dir);\n ~ProjectGenerator();\n\n Frontend::WrappedLLVMContext* GetContext() const { return m_context; }\n const std::string& GetModuleName() const { return m_module_name; }\n const std::string& GetOutputDirectoryName() const { return m_output_dir; }\n llvm::Module* GetModule() const { return m_module; }\n\n // Generates the whole module.\n bool GenerateCode();\n\n // Generates HLS and Vivado projects.\n bool GenerateProject();\n\nprivate:\n void CreateModule();\n", "right_context": " void OptimizeModule();\n\n bool CleanOutputDirectory();\n bool WriteCCode();\n bool GenerateCTestBench();\n bool GenerateComponent();\n bool GenerateComponentTestBench();\n bool GenerateAXISComponent();\n bool WriteFIFOComponent();\n bool WriteHLSScript();\n bool WriteVivadoScript();\n\n Frontend::WrappedLLVMContext* m_context;\n StreamGraph::StreamGraph* m_streamgraph;\n std::string m_module_name;\n std::string m_output_dir;\n llvm::Module* m_module = nullptr;\n bool m_has_axis_component = false;\n\n using FilterFunctionMap = std::map;\n FilterFunctionMap m_filter_function_map;\n};\n\n} // namespace HLSTarget", "groundtruth": " bool GenerateFilterFunctions();\n", "crossfile_context": ""} {"task_id": "streamit-hls", "path": "streamit-hls/src/parser/ast.h", "left_context": "#pragma once\n#include \n#include \n#include \n#include \"parser/symbol_table.h\"\n\nclass ASTPrinter;\nclass CodeGenerator;\nclass ParserState;\n\nnamespace AST\n{\nclass Visitor;\nclass Node;\nclass NodeList;\nclass TypeSpecifier;\nclass Statement;\nclass Declaration;\nclass Expression;\nclass StreamDeclaration;\nclass FilterDeclaration;\nclass FilterWorkBlock;\nclass IntegerLiteralExpression;\nclass IdentifierExpression;\nclass BinaryExpression;\nclass AssignmentExpression;\nclass PeekExpression;\nclass PopExpression;\nclass PushStatement;\nclass VariableDeclaration;\nclass ExpressionStatement;\n\nusing LexicalScope = SymbolTable;\nusing ExpressionList = std::vector;\n\nstruct SourceLocation\n{\n const char* filename;\n int first_line;\n int first_column;\n int last_line;\n int last_column;\n};\n\nclass StringList\n{\npublic:\n using ListType = std::vector;\n\n StringList() = default;\n ~StringList() = default;\n\n const std::string& operator[](size_t index) const { return m_values[index]; }\n ListType::const_iterator begin() const { return m_values.begin(); }\n ListType::const_iterator end() const { return m_values.end(); }\n\n std::string& operator[](size_t index) { return m_values[index]; }\n ListType::iterator begin() { return m_values.begin(); }\n ListType::iterator end() { return m_values.end(); }\n\n void AddString(const char* str) { m_values.emplace_back(str); }\n void AddString(const std::string& str) { m_values.push_back(str); }\n\nprivate:\n ListType m_values;\n};\n\nclass Node\n{\npublic:\n virtual ~Node() = default;\n virtual void Dump(ASTPrinter* printer) const = 0;\n virtual bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) = 0;\n virtual bool Accept(Visitor* visitor) = 0;\n};\n\nclass NodeList : public Node\n{\npublic:\n using ListType = std::vector;\n\n NodeList() = default;\n ~NodeList() final = default;\n\n const Node* operator[](size_t index) const { return m_nodes[index]; }\n ListType::const_iterator begin() const { return m_nodes.begin(); }\n ListType::const_iterator end() const { return m_nodes.end(); }\n\n Node*& operator[](size_t index) { return m_nodes[index]; }\n ListType::iterator begin() { return m_nodes.begin(); }\n ListType::iterator end() { return m_nodes.end(); }\n\n const ListType& GetNodeList() const { return m_nodes; }\n const size_t GetNumChildren() const { return m_nodes.size(); }\n const Node* GetChild(size_t index) const;\n Node* GetChild(size_t index);\n\n bool HasChildren() const;\n const Node* GetFirst() const;\n Node* GetFirst();\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n\n // If node is null, does nothing.\n // If node is a NodeList, adds all the children from it (recursively).\n void AddNode(Node* node);\n\n // Prepends node/nodelist to this nodelist.\n void PrependNode(Node* node);\n\nprivate:\n ListType m_nodes;\n};\n\nclass TypeSpecifier : public Node\n{\npublic:\n enum class TypeId\n {\n Error,\n Void,\n Boolean,\n Bit,\n Int,\n Float,\n APInt,\n Array,\n Struct\n };\n\npublic:\n TypeSpecifier(TypeId tid, const std::string& name, TypeSpecifier* base_type, unsigned num_bits);\n virtual ~TypeSpecifier() = default;\n\n TypeId GetTypeId() const { return m_type_id; }\n const std::string& GetName() const { return m_name; }\n const TypeSpecifier* GetBaseType() const { return m_base_type; }\n unsigned GetNumBits() const { return m_num_bits; }\n\n // Helper methods\n bool IsPrimitiveType() const { return (m_type_id >= TypeId::Void && m_type_id <= TypeId::APInt); }\n bool IsErrorType() const { return (m_type_id == TypeId::Error); }\n bool IsArrayType() const { return (m_type_id == TypeId::Array); }\n bool IsStructType() const { return (m_type_id == TypeId::Struct); }\n bool HasBooleanBase() const\n {\n return (m_type_id == TypeId::Boolean || (m_base_type && m_base_type->HasBooleanBase()));\n }\n bool HasBitBase() const { return (m_type_id == TypeId::Bit || (m_base_type && m_base_type->HasBitBase())); }\n bool HasIntBase() const { return (m_type_id == TypeId::Int || (m_base_type && m_base_type->HasIntBase())); }\n bool HasFloatBase() const { return (m_type_id == TypeId::Float || (m_base_type && m_base_type->HasFloatBase())); }\n bool IsVoid() const { return (m_type_id == TypeId::Void); }\n bool IsBoolean() const { return (m_type_id == TypeId::Boolean); }\n bool IsBit() const { return (m_type_id == TypeId::Bit); }\n bool IsInt() const { return (m_type_id == TypeId::Int); }\n bool IsFloat() const { return (m_type_id == TypeId::Float); }\n bool IsAPInt() const { return (m_type_id == TypeId::APInt); }\n bool IsIntOrAPInt() const { return (IsInt() || IsAPInt()); }\n\n // Validity -> error\n bool IsValid() const { return !IsErrorType(); }\n\n // Clones this type\n virtual TypeSpecifier* Clone() const;\n\n // Inherited methods\n virtual void Dump(ASTPrinter* printer) const override;\n virtual bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n virtual bool Accept(Visitor* visitor) override;\n\n // equality operators\n virtual bool operator==(const TypeSpecifier& rhs) const;\n bool operator!=(const TypeSpecifier& rhs) const;\n\nprotected:\n TypeId m_type_id;\n std::string m_name;\n TypeSpecifier* m_base_type;\n unsigned m_num_bits;\n};\n\nclass ArrayTypeSpecifier : public TypeSpecifier\n{\npublic:\n ArrayTypeSpecifier(const std::string& name, TypeSpecifier* base_type, Expression* dimensions);\n virtual ~ArrayTypeSpecifier() = default;\n\n Expression* GetArrayDimensions() const { return m_array_dimensions; }\n\n // Inherited methods\n virtual void Dump(ASTPrinter* printer) const override;\n virtual bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n virtual bool Accept(Visitor* visitor) override;\n\n // Clones this type\n virtual TypeSpecifier* Clone() const override;\n\n virtual bool operator==(const TypeSpecifier& rhs) const;\n\nprivate:\n Expression* m_array_dimensions;\n};\n\nclass Declaration : public Node\n{\npublic:\n Declaration(const SourceLocation& sloc, TypeSpecifier* type, const std::string& name, bool constant);\n virtual ~Declaration() = default;\n\n const SourceLocation& GetSourceLocation() const { return m_sloc; }\n const TypeSpecifier* GetType() const { return m_type; }\n const std::string& GetName() const { return m_name; }\n bool IsConstant() const { return m_constant; }\n\nprotected:\n SourceLocation m_sloc;\n TypeSpecifier* m_type;\n std::string m_name;\n bool m_constant;\n};\n\nclass Statement : public Node\n{\npublic:\n Statement(const SourceLocation& sloc);\n virtual ~Statement() = default;\n\n const SourceLocation& GetSourceLocation() const { return m_sloc; }\n\nprotected:\n SourceLocation m_sloc;\n};\n\nclass Expression : public Node\n{\npublic:\n Expression(const SourceLocation& sloc);\n virtual ~Expression() = default;\n\n const SourceLocation& GetSourceLocation() const { return m_sloc; }\n\n virtual bool IsConstant() const;\n virtual bool GetConstantBool() const;\n virtual int GetConstantInt() const;\n virtual float GetConstantFloat() const;\n const TypeSpecifier* GetType() const;\n\nprotected:\n SourceLocation m_sloc;\n const TypeSpecifier* m_type = nullptr;\n};\n\nclass ParameterDeclaration : public Declaration\n{\npublic:\n ParameterDeclaration(const SourceLocation& sloc, TypeSpecifier* type_specifier, const std::string& name);\n ~ParameterDeclaration() = default;\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n};\nusing ParameterDeclarationList = std::vector;\n\nclass StreamDeclaration : public Node\n{\npublic:\n StreamDeclaration(const SourceLocation& sloc, TypeSpecifier* input_type_specifier,\n TypeSpecifier* output_type_specifier, const char* name, ParameterDeclarationList* params);\n ~StreamDeclaration() = default;\n\n const TypeSpecifier* GetInputType() const { return m_input_type; }\n const TypeSpecifier* GetOutputType() const { return m_output_type; }\n ParameterDeclarationList* GetParameters() const { return m_parameters; }\n\n const SourceLocation& GetSourceLocation() const { return m_sloc; }\n const std::string& GetName() const { return m_name; }\n\nprotected:\n SourceLocation m_sloc;\n\n TypeSpecifier* m_input_type = nullptr;\n TypeSpecifier* m_output_type = nullptr;\n\n std::string m_name;\n\n ParameterDeclarationList* m_parameters;\n};\n\nclass PipelineDeclaration : public StreamDeclaration\n{\npublic:\n PipelineDeclaration(const SourceLocation& sloc, TypeSpecifier* input_type_specifier,\n TypeSpecifier* output_type_specifier, const char* name, ParameterDeclarationList* params,\n NodeList* statements);\n ~PipelineDeclaration() override;\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n\n NodeList* GetStatements() const { return m_statements; }\n\nprivate:\n NodeList* m_statements;\n};\n\nclass SplitJoinDeclaration : public StreamDeclaration\n{\npublic:\n SplitJoinDeclaration(const SourceLocation& sloc, TypeSpecifier* input_type_specifier,\n TypeSpecifier* output_type_specifier, const char* name, ParameterDeclarationList* params,\n NodeList* statements);\n ~SplitJoinDeclaration() override;\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n\n NodeList* GetStatements() const { return m_statements; }\n\nprivate:\n NodeList* m_statements;\n};\n\nclass FilterDeclaration : public StreamDeclaration\n{\npublic:\n FilterDeclaration(const SourceLocation& sloc, TypeSpecifier* input_type_specifier,\n TypeSpecifier* output_type_specifier, const char* name, ParameterDeclarationList* params,\n NodeList* vars, FilterWorkBlock* init, FilterWorkBlock* prework, FilterWorkBlock* work,\n bool stateful);\n FilterDeclaration(TypeSpecifier* input_type_specifier, TypeSpecifier* output_type_specifier, const char* name,\n ParameterDeclarationList* params, bool stateful, int peek_rate, int pop_rate, int push_rate);\n ~FilterDeclaration() = default;\n\n // TODO: Const here, but this is a larger change (e.g. visitor impact)\n FilterWorkBlock* GetInitBlock() const { return m_init; }\n FilterWorkBlock* GetPreworkBlock() const { return m_prework; }\n FilterWorkBlock* GetWorkBlock() const { return m_work; }\n ParameterDeclarationList* GetParameters() const { return m_parameters; }\n NodeList* GetStateVariables() const { return m_vars; }\n bool IsStateful() const { return m_stateful; }\n bool IsStateless() const { return !m_stateful; }\n\n bool HasInitBlock() const { return (m_init != nullptr); }\n bool HasPreworkBlock() const { return (m_prework != nullptr); }\n bool HasWorkBlock() const { return (m_work != nullptr); }\n bool HasStateVariables() const { return (m_vars != nullptr); }\n bool IsBuiltin() const { return m_builtin; }\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n\n // Test for a builtin filter\n static FilterDeclaration* GetBuiltinFilter(ParserState* state, const std::string& name, NodeList* type_params,\n NodeList* params);\n static bool IsBuiltinFilter(const std::string& name);\n\nprivate:\n NodeList* m_vars;\n FilterWorkBlock* m_init;\n FilterWorkBlock* m_prework;\n FilterWorkBlock* m_work;\n bool m_stateful;\n bool m_builtin;\n};\n\nstruct FilterWorkParts\n{\n NodeList* vars = nullptr;\n FilterWorkBlock* init = nullptr;\n FilterWorkBlock* prework = nullptr;\n FilterWorkBlock* work = nullptr;\n};\n\nclass FilterWorkBlock final\n{\npublic:\n FilterWorkBlock(const SourceLocation& sloc) : m_sloc(sloc) {}\n ~FilterWorkBlock() = default;\n\n void Dump(ASTPrinter* printer) const;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table);\n bool Accept(Visitor* visitor);\n\n Expression* GetPeekRateExpression() const { return m_peek_rate_expr; }\n Expression* GetPopRateExpression() const { return m_pop_rate_expr; }\n Expression* GetPushRateExpression() const { return m_push_rate_expr; }\n const NodeList* GetStatements() const { return m_stmts; }\n NodeList* GetStatements() { return m_stmts; }\n\n", "right_context": " void SetPopRateExpression(Expression* expr) { m_pop_rate_expr = expr; }\n void SetPushRateExpression(Expression* expr) { m_push_rate_expr = expr; }\n void SetStatements(NodeList* stmts) { m_stmts = stmts; }\n\nprivate:\n SourceLocation m_sloc;\n Expression* m_peek_rate_expr = nullptr;\n Expression* m_pop_rate_expr = nullptr;\n Expression* m_push_rate_expr = nullptr;\n NodeList* m_stmts = nullptr;\n};\n\n// Function references map names -> types\nclass FunctionDeclaration : public Declaration\n{\npublic:\n FunctionDeclaration(const std::string& name, TypeSpecifier* return_type,\n const std::vector& param_types);\n // FunctionDeclaration(const SourceLocation& sloc, const std::string& name, TypeSpecifier* return_type, NodeList*\n // params, NodeList* body);\n ~FunctionDeclaration() = default;\n\n TypeSpecifier* GetReturnType() const { return m_return_type; }\n const std::vector& GetParameterTypes() const { return m_param_types; }\n\n // Turns println(int) into println___int.\n const std::string& GetSymbolName() const { return m_symbol_name; }\n\n // Adds streamit_ prefix to builtin symbols.\n std::string GetExecutableSymbolName() const;\n\n // Builtin function?\n bool IsBuiltin() const { return (m_body == nullptr); }\n\n void Dump(ASTPrinter* printer) const;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table);\n bool Accept(Visitor* visitor);\n\nprivate:\n std::string m_symbol_name;\n TypeSpecifier* m_return_type;\n std::vector m_param_types;\n NodeList* m_params;\n NodeList* m_body;\n};\n\nclass IntegerLiteralExpression : public Expression\n{\npublic:\n IntegerLiteralExpression(const SourceLocation& sloc, int value) : Expression(sloc), m_value(value) {}\n ~IntegerLiteralExpression() = default;\n\n bool IsConstant() const override { return true; }\n int GetConstantInt() const override { return m_value; }\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n\n int GetValue() const { return m_value; }\n\nprivate:\n int m_value;\n};\n\nclass BooleanLiteralExpression : public Expression\n{\npublic:\n BooleanLiteralExpression(const SourceLocation& sloc, bool value) : Expression(sloc), m_value(value) {}\n ~BooleanLiteralExpression() = default;\n\n bool IsConstant() const override { return true; }\n bool GetConstantBool() const override { return m_value; }\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n\n bool GetValue() const { return m_value; }\n\nprivate:\n bool m_value;\n};\n\nclass FloatLiteralExpression : public Expression\n{\npublic:\n FloatLiteralExpression(const SourceLocation& sloc, float value) : Expression(sloc), m_value(value) {}\n ~FloatLiteralExpression() = default;\n\n bool IsConstant() const override { return true; }\n float GetConstantFloat() const override { return m_value; }\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n\n float GetValue() const { return m_value; }\n\nprivate:\n float m_value;\n};\n\nclass IdentifierExpression : public Expression\n{\npublic:\n IdentifierExpression(const SourceLocation& sloc, const char* identifier);\n ~IdentifierExpression() = default;\n\n Declaration* GetReferencedDeclaration() const { return m_declaration; }\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n\nprivate:\n std::string m_identifier;\n Declaration* m_declaration = nullptr;\n};\n\nclass IndexExpression : public Expression\n{\npublic:\n IndexExpression(const SourceLocation& sloc, Expression* array_expr, Expression* index_expr);\n ~IndexExpression() = default;\n\n Expression* GetArrayExpression() const;\n Expression* GetIndexExpression() const;\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n\nprivate:\n Expression* m_array_expression;\n Expression* m_index_expression;\n};\n\nclass UnaryExpression : public Expression\n{\npublic:\n enum Operator : unsigned int\n {\n PreIncrement,\n PreDecrement,\n PostIncrement,\n PostDecrement,\n Positive,\n Negative,\n LogicalNot,\n BitwiseNot\n };\n\n UnaryExpression(const SourceLocation& sloc, Operator op, Expression* rhs);\n ~UnaryExpression() = default;\n\n bool IsConstant() const override;\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n\n Operator GetOperator() const;\n Expression* GetRHSExpression() const;\n\nprivate:\n Expression* m_rhs;\n Operator m_op;\n};\n\nclass BinaryExpression : public Expression\n{\npublic:\n enum Operator : unsigned int\n {\n Add,\n Subtract,\n Multiply,\n Divide,\n Modulo,\n BitwiseAnd,\n BitwiseOr,\n BitwiseXor,\n LeftShift,\n RightShift\n };\n\n BinaryExpression(const SourceLocation& sloc, Expression* lhs, Operator op, Expression* rhs);\n ~BinaryExpression() = default;\n\n bool IsConstant() const override;\n int GetConstantInt() const override;\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n\n Expression* GetLHSExpression() const;\n Expression* GetRHSExpression() const;\n Operator GetOperator() const;\n\nprivate:\n Expression* m_lhs;\n Expression* m_rhs;\n Operator m_op;\n};\n\nclass RelationalExpression : public Expression\n{\npublic:\n enum Operator : unsigned int\n {\n Less,\n LessEqual,\n Greater,\n GreaterEqual,\n Equal,\n NotEqual\n };\n\n RelationalExpression(const SourceLocation& sloc, Expression* lhs, Operator op, Expression* rhs);\n ~RelationalExpression() = default;\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n\n Expression* GetLHSExpression() const;\n Expression* GetRHSExpression() const;\n const TypeSpecifier* GetIntermediateType() const;\n Operator GetOperator() const;\n\nprivate:\n Expression* m_lhs;\n Expression* m_rhs;\n TypeSpecifier* m_intermediate_type;\n Operator m_op;\n};\n\nclass LogicalExpression : public Expression\n{\npublic:\n enum Operator : unsigned int\n {\n And,\n Or\n };\n\n LogicalExpression(const SourceLocation& sloc, Expression* lhs, Operator op, Expression* rhs);\n ~LogicalExpression() = default;\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n\n Expression* GetLHSExpression() const;\n Expression* GetRHSExpression() const;\n Operator GetOperator() const;\n\nprivate:\n Expression* m_lhs;\n Expression* m_rhs;\n Operator m_op;\n};\n\nclass CommaExpression : public Expression\n{\npublic:\n CommaExpression(const SourceLocation& sloc, Expression* lhs, Expression* rhs);\n ~CommaExpression() = default;\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n\n Expression* GetLHSExpression() const;\n Expression* GetRHSExpression() const;\n\nprivate:\n Expression* m_lhs;\n Expression* m_rhs;\n};\n\nclass AssignmentExpression : public Expression\n{\npublic:\n enum Operator : unsigned int\n {\n Assign,\n Add,\n Subtract,\n Multiply,\n Divide,\n Modulo,\n BitwiseAnd,\n BitwiseOr,\n BitwiseXor,\n LeftShift,\n RightShift\n };\n\n AssignmentExpression(const SourceLocation& sloc, Expression* lhs, Operator op, Expression* rhs);\n ~AssignmentExpression() = default;\n\n Expression* GetLValueExpression() const { return m_lhs; }\n Expression* GetInnerExpression() const { return m_rhs; }\n Operator GetOperator() const { return m_op; }\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n\nprivate:\n Expression* m_lhs;\n Expression* m_rhs;\n Operator m_op;\n};\n\nclass PeekExpression : public Expression\n{\npublic:\n PeekExpression(const SourceLocation& sloc, Expression* expr);\n ~PeekExpression() = default;\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n\n Expression* GetIndexExpression() const;\n\nprivate:\n Expression* m_expr;\n};\n\nclass PopExpression : public Expression\n{\npublic:\n PopExpression(const SourceLocation& sloc);\n ~PopExpression() = default;\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n};\n\nclass CallExpression : public Expression\n{\npublic:\n CallExpression(const SourceLocation& sloc, const char* function_name, NodeList* args);\n ~CallExpression() = default;\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n\n const std::string& GetFunctionName() const { return m_function_name; }\n const NodeList* GetArgList() const { return m_args; }\n bool HasArgs() const { return (m_args != nullptr); }\n\n const FunctionDeclaration* GetFunctionReference() const { return m_function_ref; }\n\nprivate:\n std::string m_function_name;\n NodeList* m_args;\n\n const FunctionDeclaration* m_function_ref = nullptr;\n};\n\nclass CastExpression : public Expression\n{\npublic:\n CastExpression(const SourceLocation& sloc, TypeSpecifier* to_type, Expression* expr);\n ~CastExpression() = default;\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n\n TypeSpecifier* GetToType() const { return m_to_type; }\n Expression* GetExpression() const { return m_expr; }\n\nprivate:\n TypeSpecifier* m_to_type;\n Expression* m_expr;\n};\n\nclass PushStatement : public Statement\n{\npublic:\n PushStatement(const SourceLocation& sloc, Expression* expr);\n ~PushStatement() = default;\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n\n Expression* GetValueExpression() const;\n\nprivate:\n Expression* m_expr;\n};\n\nclass AddStatement : public Statement\n{\npublic:\n AddStatement(const SourceLocation& sloc, const char* filter_name, NodeList* type_parameters, NodeList* parameters);\n ~AddStatement();\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n\n const std::string& GetStreamName() const { return m_stream_name; }\n StreamDeclaration* GetStreamDeclaration() const { return m_stream_declaration; }\n NodeList* GetStreamParameters() const { return m_stream_parameters; }\n\nprivate:\n std::string m_stream_name;\n NodeList* m_type_parameters;\n NodeList* m_stream_parameters;\n StreamDeclaration* m_stream_declaration = nullptr;\n};\n\nclass SplitStatement : public Statement\n{\npublic:\n enum Type : unsigned int\n {\n RoundRobin,\n Duplicate\n };\n\n SplitStatement(const SourceLocation& sloc, Type type, NodeList* distribution);\n ~SplitStatement() = default;\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n\n Type GetType() const { return m_type; }\n NodeList* GetDistribution() const { return m_distribution; }\n\nprivate:\n Type m_type;\n NodeList* m_distribution;\n};\n\nclass JoinStatement : public Statement\n{\npublic:\n enum Type : unsigned int\n {\n RoundRobin\n };\n\n JoinStatement(const SourceLocation& sloc, Type type, NodeList* distribution);\n ~JoinStatement() = default;\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n\n Type GetType() const { return m_type; }\n NodeList* GetDistribution() const { return m_distribution; }\n\nprivate:\n Type m_type;\n NodeList* m_distribution;\n};\n\nclass InitializerListExpression : public Expression\n{\npublic:\n InitializerListExpression(const SourceLocation& sloc);\n ~InitializerListExpression() = default;\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n bool IsConstant() const override;\n\n void AddExpression(Expression* expr);\n const std::vector& GetExpressionList() const;\n size_t GetListSize() const;\n\nprivate:\n std::vector m_expressions;\n};\n\nstruct InitDeclarator\n{\n SourceLocation sloc;\n const char* name;\n Expression* initializer;\n};\nusing InitDeclaratorList = std::vector;\n\nclass VariableDeclaration final : public Declaration\n{\npublic:\n VariableDeclaration(const SourceLocation& sloc, TypeSpecifier* type_specifier, const char* name,\n Expression* initializer);\n ~VariableDeclaration() override final = default;\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n\n bool HasInitializer() const { return (m_initializer != nullptr); }\n Expression* GetInitializer() const { return m_initializer; }\n void RemoveInitializer() { m_initializer = nullptr; }\n\n static Node* CreateDeclarations(TypeSpecifier* type_specifier, const InitDeclaratorList* declarator_list);\n\nprivate:\n Expression* m_initializer;\n};\n\nclass ExpressionStatement : public Statement\n{\npublic:\n ExpressionStatement(const SourceLocation& sloc, Expression* expr);\n ~ExpressionStatement() = default;\n\n Expression* GetInnerExpression() const;\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n\nprivate:\n Expression* m_expr;\n};\n\nclass IfStatement : public Statement\n{\npublic:\n IfStatement(const SourceLocation& sloc, Expression* expr, Node* then_stmts, Node* else_stmts);\n ~IfStatement() = default;\n\n Expression* GetInnerExpression() const;\n Node* GetThenStatements() const;\n Node* GetElseStatements() const;\n bool HasElseStatements() const;\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n\nprivate:\n Expression* m_expr;\n Node* m_then;\n Node* m_else;\n};\n\nclass ForStatement : public Statement\n{\npublic:\n ForStatement(const SourceLocation& sloc, Node* init, Expression* cond, Expression* loop, Node* inner);\n ~ForStatement() = default;\n\n Node* GetInitStatements() const;\n Expression* GetConditionExpression() const;\n Expression* GetLoopExpression() const;\n Node* GetInnerStatements() const;\n bool HasInitStatements() const;\n bool HasConditionExpression() const;\n bool HasLoopExpression() const;\n bool HasInnerStatements() const;\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n\nprivate:\n Node* m_init;\n Expression* m_cond;\n Expression* m_loop;\n Node* m_inner;\n};\n\nclass BreakStatement : public Statement\n{\npublic:\n BreakStatement(const SourceLocation& sloc);\n ~BreakStatement() = default;\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n};\n\nclass ContinueStatement : public Statement\n{\npublic:\n ContinueStatement(const SourceLocation& sloc);\n ~ContinueStatement() = default;\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n};\n\nclass ReturnStatement : public Statement\n{\npublic:\n ReturnStatement(const SourceLocation& sloc, Expression* expr = nullptr);\n ~ReturnStatement() = default;\n\n void Dump(ASTPrinter* printer) const override;\n bool SemanticAnalysis(ParserState* state, LexicalScope* symbol_table) override;\n bool Accept(Visitor* visitor) override;\n\n Expression* GetInnerExpression() const;\n bool HasReturnValue() const;\n\nprivate:\n Expression* m_expr;\n};\n}\n", "groundtruth": " void SetPeekRateExpression(Expression* expr) { m_peek_rate_expr = expr; }\n", "crossfile_context": ""} {"task_id": "streamit-hls", "path": "streamit-hls/src/parser/ast_printer.h", "left_context": "#pragma once\n#include \n\nclass ASTPrinter\n{\npublic:\n ASTPrinter() = default;\n ~ASTPrinter() = default;\n\n", "right_context": "private:\n std::stringstream m_ss;\n int m_indent = 0;\n};\n", "groundtruth": " std::string ToString() const { return m_ss.str(); }\n\n void BeginBlock(const char* fmt, ...);\n void Write(const char* fmt, ...);\n", "crossfile_context": ""} {"task_id": "streamit-hls", "path": "streamit-hls/src/parser/symbol_table.h", "left_context": "#pragma once\n#include \n#include \n#include \"common/string_helpers.h\"\n\ntemplate \nclass SymbolTable\n{\npublic:\n using MapType = std::unordered_map;\n\n SymbolTable(SymbolTable* parent = nullptr) : m_parent(parent)\n {\n m_id_counter = m_parent ? m_parent->m_id_counter : 1;\n }\n ~SymbolTable() = default;\n\n typename MapType::const_iterator begin() const { return m_map.begin(); }\n typename MapType::const_iterator end() const { return m_map.end(); }\n\n SymbolTable* GetParentScope() const { return m_parent; }\n\n bool HasName(const NameType& name) const\n {\n if (m_parent && m_parent->HasName(name))\n return true;\n\n return m_map.find(name) != m_map.end();\n }\n\n", "right_context": "\n bool AddName(const NameType& name, ValueType* node)\n {\n if (HasNameInLocalScope(name))\n return false;\n\n m_map.emplace(name, node);\n return true;\n }\n\n ValueType* GetName(const NameType& name) const\n {\n auto* current_table = this;\n while (current_table)\n {\n auto it = current_table->m_map.find(name);\n if (it != current_table->m_map.end())\n return it->second;\n\n current_table = current_table->m_parent;\n }\n\n return nullptr;\n }\n\n unsigned int GenerateNameId() { return m_id_counter++; }\n\n std::string GenerateName(const char* prefix) { return StringFromFormat(\"%s_%u\", prefix, m_id_counter++); }\n\nprivate:\n SymbolTable* m_parent;\n MapType m_map;\n unsigned int m_id_counter;\n};\n", "groundtruth": " bool HasNameInLocalScope(const NameType& name) const { return m_map.find(name) != m_map.end(); }\n", "crossfile_context": ""} {"task_id": "streamit-hls", "path": "streamit-hls/src/streamgraph/streamgraph_builder.h", "left_context": "#pragma once\n#include \n#include \n#include \n#include \n#include \n\nclass ParserState;\n\nnamespace llvm\n{\nclass Constant;\nclass ExecutionEngine;\nclass Function;\nclass GlobalVariable;\nclass Module;\n}\n\nnamespace AST\n{\nclass StreamDeclaration;\nclass FilterDeclaration;\nclass PipelineDeclaration;\nclass SplitJoinDeclaration;\n}\n\nnamespace Frontend\n{\nclass WrappedLLVMContext;\n}\n\nnamespace StreamGraph\n{\nclass FilterParameters;\nclass FilterPermutation;\nclass Node;\n}\n\nnamespace StreamGraph\n{\nclass BuilderState;\n\nclass Builder\n{\npublic:\n Builder(Frontend::WrappedLLVMContext* context, ParserState* state);\n ~Builder();\n\n std::unique_ptr GenerateGraph();\n\nprivate:\n bool GenerateCode();\n bool GenerateGlobals();\n bool GenerateStreamGraphFunctions();\n bool GenerateStreamFunctionPrototype(AST::StreamDeclaration* decl);\n bool GenerateStreamFunction(AST::StreamDeclaration* decl);\n bool GenerateMain();\n bool CreateExecutionEngine();\n", "right_context": "\n Frontend::WrappedLLVMContext* m_context;\n ParserState* m_parser_state;\n std::unique_ptr m_module;\n std::unordered_map m_function_map;\n llvm::ExecutionEngine* m_execution_engine = nullptr;\n\n std::unique_ptr m_builder_state;\n};\n\n// Methods called by generated code.\nclass BuilderState\n{\npublic:\n BuilderState(Frontend::WrappedLLVMContext* context, ParserState* state);\n ~BuilderState() = default;\n\n Node* GetStartNode() const { return m_start_node; }\n const std::vector& GetFilterPermutations() { return m_filter_permutations; }\n Node* GetProgramInputNode() const { return m_program_input_node; }\n Node* GetProgramOutputNode() const { return m_program_output_node; }\n\n void AddFilter(const AST::FilterDeclaration* decl, int peek_rate, int pop_rate, int push_rate, va_list ap);\n void BeginPipeline(const AST::PipelineDeclaration* decl);\n void EndPipeline();\n void BeginSplitJoin(const AST::SplitJoinDeclaration* decl);\n void EndSplitJoin();\n void SplitJoinSplit(int mode, const std::vector& distribution);\n void SplitJoinJoin(const std::vector& distribution);\n\n std::string GenerateName(const std::string& prefix);\n void Error(const char* fmt, ...);\n\nprivate:\n bool HasTopNode() const;\n Node* GetTopNode();\n\n void ExtractParameters(FilterParameters* out_params, const AST::StreamDeclaration* stream_decl, va_list ap);\n\n Frontend::WrappedLLVMContext* m_context;\n ParserState* m_parser_state;\n bool m_error_state = false;\n\n // Graph building.\n unsigned int m_name_id = 1;\n std::stack m_node_stack;\n Node* m_start_node = nullptr;\n Node* m_program_input_node = nullptr;\n Node* m_program_output_node = nullptr;\n\n // Filter permutations\n std::vector m_filter_permutations;\n};\n\n} // namespace Frontend", "groundtruth": " void ExecuteMain();\n", "crossfile_context": ""} {"task_id": "streamit-hls", "path": "streamit-hls/dep/googletest/src/gtest-printers.cc", "left_context": "// Copyright 2007, Google Inc.\n// All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are\n// met:\n//\n// * Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// * Redistributions in binary form must reproduce the above\n// copyright notice, this list of conditions and the following disclaimer\n// in the documentation and/or other materials provided with the\n// distribution.\n// * Neither the name of Google Inc. nor the names of its\n// contributors may be used to endorse or promote products derived from\n// this software without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n// \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n//\n// Author: wan@google.com (Zhanyong Wan)\n\n// Google Test - The Google C++ Testing Framework\n//\n// This file implements a universal value printer that can print a\n// value of any type T:\n//\n// void ::testing::internal::UniversalPrinter::Print(value, ostream_ptr);\n//\n// It uses the << operator when possible, and prints the bytes in the\n// object otherwise. A user can override its behavior for a class\n// type Foo by defining either operator<<(::std::ostream&, const Foo&)\n// or void PrintTo(const Foo&, ::std::ostream*) in the namespace that\n// defines Foo.\n\n#include \"gtest/gtest-printers.h\"\n#include \n#include \n#include \n#include // NOLINT\n#include \n#include \"gtest/internal/gtest-port.h\"\n\nnamespace testing {\n\nnamespace {\n\nusing ::std::ostream;\n\n// Prints a segment of bytes in the given object.\nGTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_\nGTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_\nGTEST_ATTRIBUTE_NO_SANITIZE_THREAD_\nvoid PrintByteSegmentInObjectTo(const unsigned char* obj_bytes, size_t start,\n size_t count, ostream* os) {\n char text[5] = \"\";\n for (size_t i = 0; i != count; i++) {\n const size_t j = start + i;\n if (i != 0) {\n // Organizes the bytes into groups of 2 for easy parsing by\n // human.\n if ((j % 2) == 0)\n *os << ' ';\n else\n *os << '-';\n }\n GTEST_SNPRINTF_(text, sizeof(text), \"%02X\", obj_bytes[j]);\n *os << text;\n }\n}\n\n// Prints the bytes in the given value to the given ostream.\nvoid PrintBytesInObjectToImpl(const unsigned char* obj_bytes, size_t count,\n ostream* os) {\n // Tells the user how big the object is.\n *os << count << \"-byte object <\";\n\n const size_t kThreshold = 132;\n", "right_context": " // If the object size is bigger than kThreshold, we'll have to omit\n // some details by printing only the first and the last kChunkSize\n // bytes.\n // TODO(wan): let the user control the threshold using a flag.\n if (count < kThreshold) {\n PrintByteSegmentInObjectTo(obj_bytes, 0, count, os);\n } else {\n PrintByteSegmentInObjectTo(obj_bytes, 0, kChunkSize, os);\n *os << \" ... \";\n // Rounds up to 2-byte boundary.\n const size_t resume_pos = (count - kChunkSize + 1)/2*2;\n PrintByteSegmentInObjectTo(obj_bytes, resume_pos, count - resume_pos, os);\n }\n *os << \">\";\n}\n\n} // namespace\n\nnamespace internal2 {\n\n// Delegates to PrintBytesInObjectToImpl() to print the bytes in the\n// given object. The delegation simplifies the implementation, which\n// uses the << operator and thus is easier done outside of the\n// ::testing::internal namespace, which contains a << operator that\n// sometimes conflicts with the one in STL.\nvoid PrintBytesInObjectTo(const unsigned char* obj_bytes, size_t count,\n ostream* os) {\n PrintBytesInObjectToImpl(obj_bytes, count, os);\n}\n\n} // namespace internal2\n\nnamespace internal {\n\n// Depending on the value of a char (or wchar_t), we print it in one\n// of three formats:\n// - as is if it's a printable ASCII (e.g. 'a', '2', ' '),\n// - as a hexidecimal escape sequence (e.g. '\\x7F'), or\n// - as a special escape sequence (e.g. '\\r', '\\n').\nenum CharFormat {\n kAsIs,\n kHexEscape,\n kSpecialEscape\n};\n\n// Returns true if c is a printable ASCII character. We test the\n// value of c directly instead of calling isprint(), which is buggy on\n// Windows Mobile.\ninline bool IsPrintableAscii(wchar_t c) {\n return 0x20 <= c && c <= 0x7E;\n}\n\n// Prints a wide or narrow char c as a character literal without the\n// quotes, escaping it when necessary; returns how c was formatted.\n// The template argument UnsignedChar is the unsigned version of Char,\n// which is the type of c.\ntemplate \nstatic CharFormat PrintAsCharLiteralTo(Char c, ostream* os) {\n switch (static_cast(c)) {\n case L'\\0':\n *os << \"\\\\0\";\n break;\n case L'\\'':\n *os << \"\\\\'\";\n break;\n case L'\\\\':\n *os << \"\\\\\\\\\";\n break;\n case L'\\a':\n *os << \"\\\\a\";\n break;\n case L'\\b':\n *os << \"\\\\b\";\n break;\n case L'\\f':\n *os << \"\\\\f\";\n break;\n case L'\\n':\n *os << \"\\\\n\";\n break;\n case L'\\r':\n *os << \"\\\\r\";\n break;\n case L'\\t':\n *os << \"\\\\t\";\n break;\n case L'\\v':\n *os << \"\\\\v\";\n break;\n default:\n if (IsPrintableAscii(c)) {\n *os << static_cast(c);\n return kAsIs;\n } else {\n *os << \"\\\\x\" + String::FormatHexInt(static_cast(c));\n return kHexEscape;\n }\n }\n return kSpecialEscape;\n}\n\n// Prints a wchar_t c as if it's part of a string literal, escaping it when\n// necessary; returns how c was formatted.\nstatic CharFormat PrintAsStringLiteralTo(wchar_t c, ostream* os) {\n switch (c) {\n case L'\\'':\n *os << \"'\";\n return kAsIs;\n case L'\"':\n *os << \"\\\\\\\"\";\n return kSpecialEscape;\n default:\n return PrintAsCharLiteralTo(c, os);\n }\n}\n\n// Prints a char c as if it's part of a string literal, escaping it when\n// necessary; returns how c was formatted.\nstatic CharFormat PrintAsStringLiteralTo(char c, ostream* os) {\n return PrintAsStringLiteralTo(\n static_cast(static_cast(c)), os);\n}\n\n// Prints a wide or narrow character c and its code. '\\0' is printed\n// as \"'\\\\0'\", other unprintable characters are also properly escaped\n// using the standard C++ escape sequence. The template argument\n// UnsignedChar is the unsigned version of Char, which is the type of c.\ntemplate \nvoid PrintCharAndCodeTo(Char c, ostream* os) {\n // First, print c as a literal in the most readable form we can find.\n *os << ((sizeof(c) > 1) ? \"L'\" : \"'\");\n const CharFormat format = PrintAsCharLiteralTo(c, os);\n *os << \"'\";\n\n // To aid user debugging, we also print c's code in decimal, unless\n // it's 0 (in which case c was printed as '\\\\0', making the code\n // obvious).\n if (c == 0)\n return;\n *os << \" (\" << static_cast(c);\n\n // For more convenience, we print c's code again in hexidecimal,\n // unless c was already printed in the form '\\x##' or the code is in\n // [1, 9].\n if (format == kHexEscape || (1 <= c && c <= 9)) {\n // Do nothing.\n } else {\n *os << \", 0x\" << String::FormatHexInt(static_cast(c));\n }\n *os << \")\";\n}\n\nvoid PrintTo(unsigned char c, ::std::ostream* os) {\n PrintCharAndCodeTo(c, os);\n}\nvoid PrintTo(signed char c, ::std::ostream* os) {\n PrintCharAndCodeTo(c, os);\n}\n\n// Prints a wchar_t as a symbol if it is printable or as its internal\n// code otherwise and also as its code. L'\\0' is printed as \"L'\\\\0'\".\nvoid PrintTo(wchar_t wc, ostream* os) {\n PrintCharAndCodeTo(wc, os);\n}\n\n// Prints the given array of characters to the ostream. CharType must be either\n// char or wchar_t.\n// The array starts at begin, the length is len, it may include '\\0' characters\n// and may not be NUL-terminated.\ntemplate \nGTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_\nGTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_\nGTEST_ATTRIBUTE_NO_SANITIZE_THREAD_\nstatic void PrintCharsAsStringTo(\n const CharType* begin, size_t len, ostream* os) {\n const char* const kQuoteBegin = sizeof(CharType) == 1 ? \"\\\"\" : \"L\\\"\";\n *os << kQuoteBegin;\n bool is_previous_hex = false;\n for (size_t index = 0; index < len; ++index) {\n const CharType cur = begin[index];\n if (is_previous_hex && IsXDigit(cur)) {\n // Previous character is of '\\x..' form and this character can be\n // interpreted as another hexadecimal digit in its number. Break string to\n // disambiguate.\n *os << \"\\\" \" << kQuoteBegin;\n }\n is_previous_hex = PrintAsStringLiteralTo(cur, os) == kHexEscape;\n }\n *os << \"\\\"\";\n}\n\n// Prints a (const) char/wchar_t array of 'len' elements, starting at address\n// 'begin'. CharType must be either char or wchar_t.\ntemplate \nGTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_\nGTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_\nGTEST_ATTRIBUTE_NO_SANITIZE_THREAD_\nstatic void UniversalPrintCharArray(\n const CharType* begin, size_t len, ostream* os) {\n // The code\n // const char kFoo[] = \"foo\";\n // generates an array of 4, not 3, elements, with the last one being '\\0'.\n //\n // Therefore when printing a char array, we don't print the last element if\n // it's '\\0', such that the output matches the string literal as it's\n // written in the source code.\n if (len > 0 && begin[len - 1] == '\\0') {\n PrintCharsAsStringTo(begin, len - 1, os);\n return;\n }\n\n // If, however, the last element in the array is not '\\0', e.g.\n // const char kFoo[] = { 'f', 'o', 'o' };\n // we must print the entire array. We also print a message to indicate\n // that the array is not NUL-terminated.\n PrintCharsAsStringTo(begin, len, os);\n *os << \" (no terminating NUL)\";\n}\n\n// Prints a (const) char array of 'len' elements, starting at address 'begin'.\nvoid UniversalPrintArray(const char* begin, size_t len, ostream* os) {\n UniversalPrintCharArray(begin, len, os);\n}\n\n// Prints a (const) wchar_t array of 'len' elements, starting at address\n// 'begin'.\nvoid UniversalPrintArray(const wchar_t* begin, size_t len, ostream* os) {\n UniversalPrintCharArray(begin, len, os);\n}\n\n// Prints the given C string to the ostream.\nvoid PrintTo(const char* s, ostream* os) {\n if (s == NULL) {\n *os << \"NULL\";\n } else {\n *os << ImplicitCast_(s) << \" pointing to \";\n PrintCharsAsStringTo(s, strlen(s), os);\n }\n}\n\n// MSVC compiler can be configured to define whar_t as a typedef\n// of unsigned short. Defining an overload for const wchar_t* in that case\n// would cause pointers to unsigned shorts be printed as wide strings,\n// possibly accessing more memory than intended and causing invalid\n// memory accesses. MSVC defines _NATIVE_WCHAR_T_DEFINED symbol when\n// wchar_t is implemented as a native type.\n#if !defined(_MSC_VER) || defined(_NATIVE_WCHAR_T_DEFINED)\n// Prints the given wide C string to the ostream.\nvoid PrintTo(const wchar_t* s, ostream* os) {\n if (s == NULL) {\n *os << \"NULL\";\n } else {\n *os << ImplicitCast_(s) << \" pointing to \";\n PrintCharsAsStringTo(s, std::wcslen(s), os);\n }\n}\n#endif // wchar_t is native\n\n// Prints a ::string object.\n#if GTEST_HAS_GLOBAL_STRING\nvoid PrintStringTo(const ::string& s, ostream* os) {\n PrintCharsAsStringTo(s.data(), s.size(), os);\n}\n#endif // GTEST_HAS_GLOBAL_STRING\n\nvoid PrintStringTo(const ::std::string& s, ostream* os) {\n PrintCharsAsStringTo(s.data(), s.size(), os);\n}\n\n// Prints a ::wstring object.\n#if GTEST_HAS_GLOBAL_WSTRING\nvoid PrintWideStringTo(const ::wstring& s, ostream* os) {\n PrintCharsAsStringTo(s.data(), s.size(), os);\n}\n#endif // GTEST_HAS_GLOBAL_WSTRING\n\n#if GTEST_HAS_STD_WSTRING\nvoid PrintWideStringTo(const ::std::wstring& s, ostream* os) {\n PrintCharsAsStringTo(s.data(), s.size(), os);\n}\n#endif // GTEST_HAS_STD_WSTRING\n\n} // namespace internal\n\n} // namespace testing\n", "groundtruth": " const size_t kChunkSize = 64;\n", "crossfile_context": ""} {"task_id": "streamit-hls", "path": "streamit-hls/dep/googletest/src/gtest-test-part.cc", "left_context": "// Copyright 2008, Google Inc.\n// All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are\n// met:\n//\n// * Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// * Redistributions in binary form must reproduce the above\n// copyright notice, this list of conditions and the following disclaimer\n// in the documentation and/or other materials provided with the\n// distribution.\n// * Neither the name of Google Inc. nor the names of its\n// contributors may be used to endorse or promote products derived from\n// this software without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n// \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n//\n// Author: mheule@google.com (Markus Heule)\n//\n// The Google C++ Testing Framework (Google Test)\n\n#include \"gtest/gtest-test-part.h\"\n\n// Indicates that this translation unit is part of Google Test's\n// implementation. It must come before gtest-internal-inl.h is\n// included, or there will be a compiler error. This trick exists to\n// prevent the accidental inclusion of gtest-internal-inl.h in the\n// user's code.\n#define GTEST_IMPLEMENTATION_ 1\n#include \"src/gtest-internal-inl.h\"\n#undef GTEST_IMPLEMENTATION_\n\nnamespace testing {\n\nusing internal::GetUnitTestImpl;\n\n// Gets the summary of the failure message by omitting the stack trace\n// in it.\nstd::string TestPartResult::ExtractSummary(const char* message) {\n", "right_context": " return stack_trace == NULL ? message :\n std::string(message, stack_trace);\n}\n\n// Prints a TestPartResult object.\nstd::ostream& operator<<(std::ostream& os, const TestPartResult& result) {\n return os\n << result.file_name() << \":\" << result.line_number() << \": \"\n << (result.type() == TestPartResult::kSuccess ? \"Success\" :\n result.type() == TestPartResult::kFatalFailure ? \"Fatal failure\" :\n \"Non-fatal failure\") << \":\\n\"\n << result.message() << std::endl;\n}\n\n// Appends a TestPartResult to the array.\nvoid TestPartResultArray::Append(const TestPartResult& result) {\n array_.push_back(result);\n}\n\n// Returns the TestPartResult at the given index (0-based).\nconst TestPartResult& TestPartResultArray::GetTestPartResult(int index) const {\n if (index < 0 || index >= size()) {\n printf(\"\\nInvalid index (%d) into TestPartResultArray.\\n\", index);\n internal::posix::Abort();\n }\n\n return array_[index];\n}\n\n// Returns the number of TestPartResult objects in the array.\nint TestPartResultArray::size() const {\n return static_cast(array_.size());\n}\n\nnamespace internal {\n\nHasNewFatalFailureHelper::HasNewFatalFailureHelper()\n : has_new_fatal_failure_(false),\n original_reporter_(GetUnitTestImpl()->\n GetTestPartResultReporterForCurrentThread()) {\n GetUnitTestImpl()->SetTestPartResultReporterForCurrentThread(this);\n}\n\nHasNewFatalFailureHelper::~HasNewFatalFailureHelper() {\n GetUnitTestImpl()->SetTestPartResultReporterForCurrentThread(\n original_reporter_);\n}\n\nvoid HasNewFatalFailureHelper::ReportTestPartResult(\n const TestPartResult& result) {\n if (result.fatally_failed())\n has_new_fatal_failure_ = true;\n original_reporter_->ReportTestPartResult(result);\n}\n\n} // namespace internal\n\n} // namespace testing\n", "groundtruth": " const char* const stack_trace = strstr(message, internal::kStackTraceMarker);\n", "crossfile_context": ""} {"task_id": "streamit-hls", "path": "streamit-hls/src/hlstarget/test_bench_generator.cpp", "left_context": "#include \"hlstarget/test_bench_generator.h\"\n#include \n#include \n#include \n#include \n#include \"common/log.h\"\n#include \"common/string_helpers.h\"\n#include \"common/types.h\"\n#include \"frontend/function_builder.h\"\n#include \"frontend/state_variables_builder.h\"\n#include \"frontend/wrapped_llvm_context.h\"\n#include \"llvm/ExecutionEngine/ExecutionEngine.h\"\n#include \"llvm/ExecutionEngine/GenericValue.h\"\n#include \"llvm/ExecutionEngine/MCJIT.h\"\n#include \"llvm/IR/Argument.h\"\n#include \"llvm/IR/Constants.h\"\n#include \"llvm/IR/DerivedTypes.h\"\n#include \"llvm/IR/Function.h\"\n#include \"llvm/IR/GlobalValue.h\"\n#include \"llvm/IR/IRBuilder.h\"\n#include \"llvm/IR/Module.h\"\n#include \"llvm/IR/Type.h\"\n#include \"llvm/Support/Format.h\"\n#include \"llvm/Support/TargetSelect.h\"\n#include \"parser/ast.h\"\n#include \"streamgraph/streamgraph.h\"\nLog_SetChannel(HLSTarget::TestBenchGenerator);\n\n// TODO: Move this elsewhere\n#if defined(_WIN32) || defined(__CYGWIN__)\n#define EXPORT __declspec(dllexport)\n#else\n#define EXPORT __attribute__((visibility(\"default\")))\n#endif\n\nconstexpr size_t DATA_BUFFER_SIZE = 1024 * 1024;\nEXPORT byte test_bench_gen_input_buffer[DATA_BUFFER_SIZE];\nEXPORT u32 test_bench_gen_input_buffer_pos;\nEXPORT byte test_bench_gen_output_buffer[DATA_BUFFER_SIZE];\n", "right_context": "\nnamespace HLSTarget\n{\nTestBenchGenerator::TestBenchGenerator(Frontend::WrappedLLVMContext* context, StreamGraph::StreamGraph* streamgraph,\n const std::string& module_name, const std::string& out_dir)\n : m_context(context), m_stream_graph(streamgraph), m_module_name(module_name), m_output_directory(out_dir)\n{\n}\n\nTestBenchGenerator::~TestBenchGenerator()\n{\n delete m_module;\n}\n\nbool TestBenchGenerator::GenerateTestBenches()\n{\n CreateModule();\n\n if (!GenerateFilterFunctions())\n return false;\n\n if (!CreateExecutionEngine())\n return false;\n\n ExecuteFilters();\n\n if (!GenerateTestBenchCCode())\n return false;\n\n return true;\n}\n\nvoid TestBenchGenerator::CreateModule()\n{\n m_module = m_context->CreateModule(m_module_name.c_str());\n Log_InfoPrintf(\"Module name is '%s'\", m_module_name.c_str());\n\n // Create data buffers in the module.\n // When the JIT compiles this code, it will resolve the symbols defined above.\n // This is how we pass the data from the JIT back to us.\n llvm::Type* buffer_type = llvm::ArrayType::get(m_context->GetByteType(), DATA_BUFFER_SIZE);\n assert(buffer_type && \"buffer type is a valid type\");\n m_input_buffer_global = new llvm::GlobalVariable(*m_module, buffer_type, false, llvm::GlobalValue::ExternalLinkage,\n nullptr, \"test_bench_gen_input_buffer\");\n m_input_buffer_pos_global =\n new llvm::GlobalVariable(*m_module, m_context->GetIntType(), false, llvm::GlobalVariable::ExternalLinkage, nullptr,\n \"test_bench_gen_input_buffer_pos\");\n m_output_buffer_global = new llvm::GlobalVariable(*m_module, buffer_type, false, llvm::GlobalValue::ExternalLinkage,\n nullptr, \"test_bench_gen_output_buffer\");\n m_output_buffer_pos_global =\n new llvm::GlobalVariable(*m_module, m_context->GetIntType(), false, llvm::GlobalVariable::ExternalLinkage, nullptr,\n \"test_bench_gen_output_buffer_pos\");\n}\n\nbool TestBenchGenerator::GenerateFilterFunctions()\n{\n for (const StreamGraph::FilterPermutation* filter_perm : m_stream_graph->GetFilterPermutationList())\n {\n llvm::Function* func = GenerateFilterFunction(filter_perm);\n if (!func)\n return false;\n\n m_filter_functions.emplace(filter_perm, func);\n }\n\n Log_InfoPrintf(\"Generated %u filter functions\", unsigned(m_filter_functions.size()));\n\n // m_context->DumpModule(m_module);\n return true;\n}\n\nnamespace\n{\nclass FragmentBuilder : public Frontend::FunctionBuilder::TargetFragmentBuilder\n{\npublic:\n FragmentBuilder(Frontend::WrappedLLVMContext* context, llvm::Type* input_type, llvm::GlobalVariable* input_buffer_var,\n llvm::GlobalVariable* input_buffer_pos_var, llvm::Type* output_type,\n llvm::GlobalVariable* output_buffer_var, llvm::GlobalVariable* output_buffer_pos_var)\n : m_context(context), m_input_type(input_type), m_input_buffer_var(input_buffer_var),\n m_input_buffer_pos_var(input_buffer_pos_var), m_output_type(output_type), m_output_buffer_var(output_buffer_var),\n m_output_buffer_pos_var(output_buffer_pos_var)\n {\n }\n\n void CreateTemporaries(llvm::IRBuilder<>& builder)\n {\n // TODO: Fix this type\n if (!m_input_type->isVoidTy())\n m_input_temp = builder.CreateAlloca(m_input_type, nullptr, \"bitcast_input_temp\");\n if (!m_output_type->isVoidTy())\n m_output_temp = builder.CreateAlloca(m_output_type, nullptr, \"bitcast_output_temp\");\n }\n\n u32 GetSizeOfInputElement() const\n {\n // Round up to nearest byte size.\n return (m_input_type->getPrimitiveSizeInBits() + 7) / 8;\n }\n\n u32 GetSizeOfOutputElement() const\n {\n // Round up to nearest byte size.\n return (m_output_type->getPrimitiveSizeInBits() + 7) / 8;\n }\n\n llvm::Value* BuildPop(llvm::IRBuilder<>& builder) override final\n {\n // pop() is the same data as peek(0)\n llvm::Value* peek_val = BuildPeek(builder, builder.getInt32(0));\n // new_pos <- input_buffer_pos + sizeof(elem)\n llvm::Value* new_pos = builder.CreateAdd(builder.CreateLoad(m_input_buffer_pos_var, \"input_buffer_pos\"),\n builder.getInt32(GetSizeOfInputElement()));\n // input_buffer_pos <- new_pos\n builder.CreateStore(new_pos, m_input_buffer_pos_var);\n return peek_val;\n }\n\n llvm::Value* BuildPeek(llvm::IRBuilder<>& builder, llvm::Value* idx_value) override final\n {\n llvm::Type* byte_ptr_type = llvm::PointerType::getUnqual(m_context->GetByteType());\n // input_buffer_pos <- GLOBAL_input_buffer_pos\n llvm::Value* input_buffer_pos = builder.CreateLoad(m_input_buffer_pos_var, \"input_buffer_pos\");\n // input_buffer_ptr <- &GLOBAL_input_buffer[input_buffer_pos]\n llvm::Value* input_buffer_ptr =\n builder.CreateInBoundsGEP(m_input_buffer_var, {builder.getInt32(0), input_buffer_pos}, \"input_buffer_ptr\");\n // bitcast_temp_ptr <- (i8*)&bitcast_temp\n llvm::Value* raw_ptr = builder.CreateBitCast(m_input_temp, byte_ptr_type, \"bitcast_temp_ptr\");\n // memcpy(bitcast_temp_ptr, input_buffer_ptr, sizeof(elem))\n builder.CreateMemCpy(raw_ptr, input_buffer_ptr, GetSizeOfInputElement(), GetSizeOfInputElement());\n // peek_val <- bitcast_temp\n return builder.CreateLoad(m_input_temp, \"peek_val\");\n }\n\n bool BuildPush(llvm::IRBuilder<>& builder, llvm::Value* value) override final\n {\n llvm::Type* byte_ptr_type = llvm::PointerType::getUnqual(m_context->GetByteType());\n // input_buffer_pos <- GLOBAL_input_buffer_pos\n llvm::Value* input_buffer_pos = builder.CreateLoad(m_output_buffer_pos_var, \"input_buffer_pos\");\n // input_buffer_ptr <- &GLOBAL_input_buffer[input_buffer_pos]\n llvm::Value* input_buffer_ptr =\n builder.CreateInBoundsGEP(m_output_buffer_var, {builder.getInt32(0), input_buffer_pos}, \"input_buffer_ptr\");\n // bitcast_temp <- value\n builder.CreateStore(value, m_output_temp);\n // bitcast_temp_ptr <- (i8*)&value\n llvm::Value* raw_ptr = builder.CreateBitCast(m_output_temp, byte_ptr_type, \"value_raw_ptr\");\n // memcpy(bitcast_temp_ptr, input_buffer_ptr, sizeof(elem))\n builder.CreateMemCpy(input_buffer_ptr, raw_ptr, GetSizeOfOutputElement(), GetSizeOfOutputElement());\n // new_pos <- input_buffer_pos + sizeof(elem)\n llvm::Value* new_pos = builder.CreateAdd(builder.CreateLoad(m_output_buffer_pos_var, \"input_buffer_pos\"),\n builder.getInt32(GetSizeOfOutputElement()));\n // input_buffer_pos <- new_pos\n builder.CreateStore(new_pos, m_output_buffer_pos_var);\n return true;\n }\n\nprivate:\n Frontend::WrappedLLVMContext* m_context;\n llvm::AllocaInst* m_input_temp = nullptr;\n llvm::AllocaInst* m_output_temp = nullptr;\n llvm::Type* m_input_type;\n llvm::GlobalVariable* m_input_buffer_var;\n llvm::GlobalVariable* m_input_buffer_pos_var;\n llvm::Type* m_output_type;\n llvm::GlobalVariable* m_output_buffer_var;\n llvm::GlobalVariable* m_output_buffer_pos_var;\n};\n}\n\nllvm::Function* TestBenchGenerator::GenerateFilterFunction(const StreamGraph::FilterPermutation* filter_perm)\n{\n std::string function_name = StringFromFormat(\"%s_work\", filter_perm->GetName().c_str());\n llvm::FunctionType* func_type = llvm::FunctionType::get(m_context->GetVoidType(), {}, false);\n llvm::Constant* func_cons = m_module->getOrInsertFunction(function_name, func_type);\n llvm::Function* func = llvm::dyn_cast(func_cons);\n if (!func)\n {\n Log_ErrorPrintf(\"Could not create function '%s'\", function_name.c_str());\n return nullptr;\n }\n\n FragmentBuilder fragment_builder(m_context, filter_perm->GetInputType(), m_input_buffer_global,\n m_input_buffer_pos_global, filter_perm->GetOutputType(), m_output_buffer_global,\n m_output_buffer_pos_global);\n Frontend::FunctionBuilder function_builder(m_context, m_module, &fragment_builder, func);\n fragment_builder.CreateTemporaries(function_builder.GetCurrentIRBuilder());\n\n // Add constants for the filter parameters\n for (const auto& it : filter_perm->GetFilterParameters())\n function_builder.AddVariable(it.decl, it.value);\n\n // Visit the state variable declarations, generating LLVM variables for them\n if (filter_perm->GetFilterDeclaration()->HasStateVariables())\n {\n Frontend::WrappedLLVMContext::VariableMap vm;\n for (const auto& it : filter_perm->GetFilterParameters())\n vm.emplace(it.decl, it.value);\n m_context->PushVariableMap(&vm);\n\n Frontend::StateVariablesBuilder gvb(m_context, m_module, filter_perm->GetName());\n if (!filter_perm->GetFilterDeclaration()->GetStateVariables()->Accept(&gvb))\n {\n m_context->PopVariableMap();\n return nullptr;\n }\n\n m_context->PopVariableMap();\n\n for (const auto& it : gvb.GetVariableMap())\n function_builder.AddVariable(it.first, it.second);\n }\n\n // Generate the actual function.\n Log_DevPrintf(\"Generating work function '%s' for filter '%s'\", function_name.c_str(), filter_perm->GetName().c_str());\n assert(filter_perm->GetFilterDeclaration()->HasWorkBlock());\n if (!filter_perm->GetFilterDeclaration()->GetWorkBlock()->Accept(&function_builder))\n return nullptr;\n\n // TODO: Need to insert the return. This should be fixed.\n function_builder.GetCurrentIRBuilder().CreateRetVoid();\n return func;\n}\n\nbool TestBenchGenerator::CreateExecutionEngine()\n{\n llvm::InitializeNativeTarget();\n llvm::InitializeNativeTargetAsmPrinter();\n llvm::InitializeNativeTargetAsmParser();\n\n std::string error_msg;\n m_execution_engine = llvm::EngineBuilder(std::unique_ptr(m_module)).setErrorStr(&error_msg).create();\n\n if (!m_execution_engine)\n {\n Log_ErrorPrintf(\"Failed to create LLVM execution engine: %s\", error_msg.c_str());\n return false;\n }\n\n m_module = nullptr;\n m_execution_engine->finalizeObject();\n return true;\n}\n\nnamespace\n{\n\nclass FilterExecutorVisitor : public StreamGraph::Visitor\n{\npublic:\n FilterExecutorVisitor(Frontend::WrappedLLVMContext* context, StreamGraph::StreamGraph* streamgraph,\n llvm::ExecutionEngine* execution_engine, TestBenchGenerator::FilterDataMap& filter_input_data,\n TestBenchGenerator::FilterDataMap& filter_output_data)\n : m_context(context), m_streamgraph(streamgraph), m_execution_engine(execution_engine),\n m_filter_input_data(filter_input_data), m_filter_output_data(filter_output_data)\n {\n }\n\n virtual bool Visit(StreamGraph::Filter* node) override;\n virtual bool Visit(StreamGraph::Pipeline* node) override;\n virtual bool Visit(StreamGraph::SplitJoin* node) override;\n virtual bool Visit(StreamGraph::Split* node) override;\n virtual bool Visit(StreamGraph::Join* node) override;\n\nprivate:\n Frontend::WrappedLLVMContext* m_context;\n StreamGraph::StreamGraph* m_streamgraph;\n llvm::ExecutionEngine* m_execution_engine;\n TestBenchGenerator::FilterDataMap& m_filter_input_data;\n TestBenchGenerator::FilterDataMap& m_filter_output_data;\n};\n\nbool FilterExecutorVisitor::Visit(StreamGraph::Filter* node)\n{\n const StreamGraph::FilterPermutation* filter_perm = node->GetFilterPermutation();\n\n bool skip_execution = false;\n if (filter_perm->IsBuiltin())\n {\n if (m_streamgraph->GetProgramInputNode() == node)\n {\n u32 size_per_elem = (filter_perm->GetOutputType()->getPrimitiveSizeInBits() + 7) / 8;\n u32 input_data_count = node->GetNetPush();\n assert(size_per_elem > 0 && input_data_count > 0);\n\n u32 counter = 1;\n byte* ptr = test_bench_gen_output_buffer;\n for (u32 i = 0; i < input_data_count; i++)\n {\n std::memcpy(ptr, &counter, size_per_elem);\n ptr += size_per_elem;\n counter++;\n }\n\n test_bench_gen_output_buffer_pos = input_data_count * size_per_elem;\n Log_DevPrintf(\"Generated %u byts of input for %s\", test_bench_gen_output_buffer_pos, node->GetName().c_str());\n skip_execution = true;\n }\n else if (m_streamgraph->GetProgramOutputNode() == node)\n {\n // Do nothing for output nodes.\n return true;\n }\n }\n\n if (!skip_execution)\n {\n // Copy the last filter execution's output to this execution's input.\n test_bench_gen_input_buffer_pos = 0;\n if (!filter_perm->GetInputType()->isVoidTy())\n {\n u32 input_data_size = test_bench_gen_output_buffer_pos;\n if (input_data_size > 0)\n {\n std::copy_n(test_bench_gen_output_buffer, input_data_size, test_bench_gen_input_buffer);\n std::fill_n(test_bench_gen_input_buffer + input_data_size,\n sizeof(test_bench_gen_input_buffer) - input_data_size, 0);\n Log_DevPrintf(\"Using %u bytes from previous filter\", test_bench_gen_output_buffer_pos);\n auto& data_vec = m_filter_input_data[filter_perm];\n data_vec.resize(input_data_size);\n std::copy_n(test_bench_gen_input_buffer, input_data_size, data_vec.begin());\n }\n }\n\n // Ensure remaining data is zeroed out.\n std::fill_n(test_bench_gen_output_buffer, sizeof(test_bench_gen_output_buffer), 0);\n test_bench_gen_output_buffer_pos = 0;\n\n // Execute filter\n std::string function_name = StringFromFormat(\"%s_work\", filter_perm->GetName().c_str());\n llvm::Function* filter_func = m_execution_engine->FindFunctionNamed(function_name);\n assert(filter_func && \"filter function exists in execution engine\");\n Log_DevPrintf(\"Executing filter '%s' %u times\", function_name.c_str(), node->GetMultiplicity());\n for (u32 i = 0; i < node->GetMultiplicity(); i++)\n m_execution_engine->runFunction(filter_func, {});\n Log_DevPrintf(\"Exec result %u %u\", test_bench_gen_input_buffer_pos, test_bench_gen_output_buffer_pos);\n }\n\n // Do we have output data?\n if (!filter_perm->GetOutputType()->isVoidTy())\n {\n std::string hexdump = HexDumpString(test_bench_gen_output_buffer, test_bench_gen_output_buffer_pos);\n Log_DevPrintf(\"Output data\\n%s\", hexdump.c_str());\n\n auto& data_vec = m_filter_output_data[filter_perm];\n data_vec.resize(test_bench_gen_output_buffer_pos);\n std::copy_n(test_bench_gen_output_buffer, test_bench_gen_output_buffer_pos, data_vec.begin());\n }\n\n return true;\n}\n\nbool FilterExecutorVisitor::Visit(StreamGraph::Pipeline* node)\n{\n for (StreamGraph::Node* child : node->GetChildren())\n {\n if (!child->Accept(this))\n return false;\n }\n\n return true;\n}\n\nbool FilterExecutorVisitor::Visit(StreamGraph::SplitJoin* node)\n{\n // TODO\n return true;\n}\n\nbool FilterExecutorVisitor::Visit(StreamGraph::Split* node)\n{\n // TODO\n return true;\n}\n\nbool FilterExecutorVisitor::Visit(StreamGraph::Join* node)\n{\n // TODO\n return true;\n}\n\n} // namespace\n\nvoid TestBenchGenerator::ExecuteFilters()\n{\n // Zero out buffers so we don't get any previous/undefined data.\n std::fill_n(test_bench_gen_input_buffer, sizeof(test_bench_gen_input_buffer), 0);\n std::fill_n(test_bench_gen_output_buffer, sizeof(test_bench_gen_output_buffer), 0);\n test_bench_gen_input_buffer_pos = 0;\n test_bench_gen_output_buffer_pos = 0;\n\n FilterExecutorVisitor visitor(m_context, m_stream_graph, m_execution_engine, m_filter_input_data,\n m_filter_output_data);\n m_stream_graph->GetRootNode()->Accept(&visitor);\n}\n\nstatic std::string GetTestBenchTypeName(const llvm::Type* ty)\n{\n if (ty->isIntegerTy())\n {\n const llvm::IntegerType* int_ty = llvm::cast(ty);\n if (int_ty->getBitWidth() == 1)\n return \"uint1\";\n else if (int_ty->getBitWidth() == 8)\n return \"uint8_t\";\n else if (int_ty->getBitWidth() == 16)\n return \"uint16_t\";\n else if (int_ty->getBitWidth() == 32)\n return \"uint32_t\";\n else\n return StringFromFormat(\"uint%u\", int_ty->getBitWidth());\n }\n else if (ty->isFloatTy())\n {\n return \"float\";\n }\n else if (ty->isDoubleTy())\n {\n return \"double\";\n }\n else if (ty->isVoidTy())\n {\n return \"void\";\n }\n else\n {\n assert(0 && \"unknown type\");\n return \"\";\n }\n}\n\nstatic u32 GetTestBenchTypeSize(const llvm::Type* ty)\n{\n // Round up to nearest byte.\n if (ty->isVoidTy())\n return 0;\n\n return (ty->getPrimitiveSizeInBits() + 7) / 8;\n}\n\nstatic void WriteTestBenchFor(const StreamGraph::FilterPermutation* filter_perm,\n const TestBenchGenerator::FilterDataVector* input_data,\n const TestBenchGenerator::FilterDataVector* output_data, llvm::raw_ostream& os)\n{\n // TODO: Fix this for types...\n const std::string in_type = GetTestBenchTypeName(filter_perm->GetInputType());\n u32 in_element_size = GetTestBenchTypeSize(filter_perm->GetInputType());\n u32 input_count = input_data ? (input_data->size() / in_element_size) : 0;\n u32 inputs_per_iteration = 0;\n const std::string out_type = GetTestBenchTypeName(filter_perm->GetOutputType());\n u32 out_element_size = GetTestBenchTypeSize(filter_perm->GetOutputType());\n u32 output_count = output_data ? (output_data->size() / out_element_size) : 0;\n u32 outputs_per_iteration = 0;\n\n // Declaration of top function\n if (!filter_perm->IsCombinational())\n {\n os << \"void filter_\" << filter_perm->GetName() << \"(\";\n if (input_data)\n {\n os << in_type << \"*\";\n inputs_per_iteration = filter_perm->GetPopRate();\n if (output_data)\n {\n os << \", \" << out_type << \"*\";\n outputs_per_iteration = filter_perm->GetPushRate();\n }\n }\n else if (output_data)\n {\n os << out_type << \"*\";\n outputs_per_iteration = filter_perm->GetPushRate();\n }\n os << \");\\n\";\n }\n else\n {\n if (output_data)\n {\n os << out_type << \" \";\n outputs_per_iteration = filter_perm->GetPushRate();\n }\n else\n {\n os << out_type << \"void \";\n }\n os << \"filter_\" << filter_perm->GetName() << \"(\";\n if (input_data)\n {\n os << in_type;\n inputs_per_iteration = filter_perm->GetPopRate();\n }\n os << \");\\n\";\n }\n\n // Definition of test function\n os << \"int test_filter_\" << filter_perm->GetName() << \"() {\\n\";\n\n // Sometimes it doesn't compile in C99 mode...\n os << \" int i;\\n\";\n\n auto WriteData = [&](const char* array_name, const llvm::Type* element_type, const std::string& element_type_name,\n u32 element_size, u32 element_count, const TestBenchGenerator::FilterDataVector* data) {\n const byte* current_in_ptr = data->data();\n os << \" \" << element_type_name << \" \" << array_name << \"[\" << element_count << \"] = {\\n\";\n for (u32 i = 0; i < element_count; i++)\n {\n // This will only work on little-endian..\n u32 value = 0;\n std::memcpy(&value, current_in_ptr, element_size);\n current_in_ptr += element_size;\n os << \" \" << llvm::format_hex(value, 10, true);\n if (element_type->isIntegerTy())\n os << \" & \" << llvm::cast(element_type)->getBitMask();\n os << \",\\n\";\n }\n os << \" };\\n\";\n };\n\n // Write input data\n if (input_data)\n WriteData(\"INPUT_DATA\", filter_perm->GetInputType(), in_type, in_element_size, input_count, input_data);\n\n // Write expected output data\n if (output_data)\n {\n WriteData(\"REFERENCE_OUTPUT_DATA\", filter_perm->GetOutputType(), out_type, out_element_size, output_count,\n output_data);\n os << \" \" << out_type << \" OUTPUT_DATA[\" << output_count << \"];\\n\";\n }\n\n u32 input_iterations = inputs_per_iteration ? input_count / inputs_per_iteration : 0;\n u32 output_iterations = outputs_per_iteration ? output_count / outputs_per_iteration : 0;\n u32 num_iterations = input_data ? input_iterations : output_iterations;\n if (input_data && output_data && input_iterations != output_iterations)\n {\n Log_ErrorPrintf(\"Iteration mismatch for '%s' (%u vs %u)\", filter_perm->GetName().c_str(), input_iterations,\n output_iterations);\n }\n\n // Print some info to the C file to improve readability\n os << \"\\n\"\n << \" /* \" << input_count << \" inputs, \" << inputs_per_iteration << \" inputs per iteration */\\n\"\n << \" /* \" << output_count << \" outputs, \" << outputs_per_iteration << \" outputs per iteration */\\n\"\n << \" /* \" << num_iterations << \" iterations. */\\n\"\n << \"\\n\";\n\n // Main execution loop\n if (input_data)\n os << \" \" << in_type << \"* current_in_ptr = INPUT_DATA;\\n\";\n if (output_data)\n os << \" \" << out_type << \"* current_out_ptr = OUTPUT_DATA;\\n\";\n\n os << \" for (i = 0; i < \" << num_iterations << \"; i++) {\\n\";\n if (!filter_perm->IsCombinational())\n {\n os << \" filter_\" << filter_perm->GetName() << \"(\";\n if (input_data)\n {\n os << \"current_in_ptr\";\n if (output_data)\n os << \", current_out_ptr\";\n }\n else if (output_data)\n {\n os << \"current_out_ptr\";\n }\n os << \");\\n\";\n }\n else\n {\n os << \" \";\n if (output_data)\n os << \"*current_out_ptr = \";\n os << \"filter_\" << filter_perm->GetName() << \"(\";\n if (input_data)\n os << \"*current_in_ptr\";\n os << \");\\n\";\n }\n\n if (input_data)\n os << \" current_in_ptr += \" << inputs_per_iteration << \";\\n\";\n if (output_data)\n os << \" current_out_ptr += \" << outputs_per_iteration << \";\\n\";\n os << \" }\\n\";\n\n // Compare loop\n os << \" int num_errors = 0;\\n\";\n if (output_data)\n {\n os << \" for (i = 0; i < \" << output_count << \"; i++) {\\n\";\n os << \" if (OUTPUT_DATA[i] != REFERENCE_OUTPUT_DATA[i]) {\\n\";\n os << \" printf(\\\"Output mismatch for filter \" << filter_perm->GetName() << \" at output %d: %d vs %d\\\\n\\\",\\n\";\n os << \" i, OUTPUT_DATA[i], REFERENCE_OUTPUT_DATA[i]); \\n\";\n os << \" num_errors++;\\n\";\n os << \" }\\n\";\n os << \" }\\n\";\n }\n os << \" return num_errors;\\n\";\n os << \"}\\n\";\n os << \"\\n\";\n}\n\nbool TestBenchGenerator::GenerateTestBenchCCode()\n{\n std::string c_filename = StringFromFormat(\"%s/_autogen_hls/filters_tb.c\", m_output_directory.c_str());\n Log_InfoPrintf(\"Writing test bench C code to %s...\", c_filename.c_str());\n\n std::error_code ec;\n llvm::raw_fd_ostream os(c_filename, ec, llvm::sys::fs::F_None);\n if (ec || os.has_error())\n return false;\n\n // Write includes\n os << \"#include \\n\";\n os << \"#include \\n\";\n os << \"#include \\n\";\n os << \"#include \\n\";\n os << \"\\n\";\n\n // Write test functions\n std::vector function_names;\n for (const StreamGraph::FilterPermutation* filter_perm : m_stream_graph->GetFilterPermutationList())\n {\n const TestBenchGenerator::FilterDataVector* input_data = nullptr;\n const TestBenchGenerator::FilterDataVector* output_data = nullptr;\n auto iter = m_filter_input_data.find(filter_perm);\n if (iter != m_filter_input_data.end())\n input_data = &iter->second;\n iter = m_filter_output_data.find(filter_perm);\n if (iter != m_filter_output_data.end())\n output_data = &iter->second;\n\n if (!filter_perm->GetInputType()->isVoidTy() && !input_data)\n {\n Log_ErrorPrintf(\"Missing input data for '%s'\", filter_perm->GetName().c_str());\n continue;\n }\n if (!filter_perm->GetOutputType()->isVoidTy() && !output_data)\n {\n Log_ErrorPrintf(\"Missing output data for '%s'\", filter_perm->GetName().c_str());\n continue;\n }\n\n WriteTestBenchFor(filter_perm, input_data, output_data, os);\n function_names.push_back(filter_perm->GetName());\n }\n\n // Write main function\n os << \"int main(int argc, char* argv[]) {\\n\";\n os << \" if (argc < 2) {\\n\";\n os << \" printf(\\\"No module specified.\\\\n\\\");\\n\";\n os << \" return 0;\\n\";\n os << \" }\\n\";\n os << \"\\n\";\n os << \" const char* test_name = argv[1];\\n\";\n os << \"\\n\";\n\n for (const auto& it : function_names)\n {\n os << \" if (!strcmp(test_name, \\\"filter_\" << it << \"\\\"))\\n\";\n os << \" return test_filter_\" << it << \"();\\n\";\n }\n\n os << \"\\n\";\n os << \" printf(\\\"Unknown test name %s\\\\n\\\", test_name);\\n\";\n os << \" return 0;\\n\";\n os << \"}\\n\";\n return true;\n}\n\n} // namespace CPUTarget\n", "groundtruth": "EXPORT u32 test_bench_gen_output_buffer_pos;\n", "crossfile_context": ""} {"task_id": "streamit-hls", "path": "streamit-hls/src/parser/ast_printer.cpp", "left_context": "#include \"parser/ast_printer.h\"\n#include \n#include \n#include \n#include \n#ifdef DEBUG\n#include \n#endif\n\nstatic std::string StringFromFormat(const char* fmt, va_list ap)\n{\n va_list tmp_ap;\n va_copy(tmp_ap, ap);\n#ifdef WIN32\n int length = _vscprintf(fmt, tmp_ap) + 1;\n#else\n int length = vsnprintf(0, 0, fmt, tmp_ap) + 1;\n#endif\n assert(length > 0);\n\n if (length == 0)\n return std::string();\n\n size_t memlength = static_cast(length);\n char* temp = new char[memlength];\n\n#ifdef WIN32\n _vsnprintf_s(temp, memlength, _TRUNCATE, fmt, ap);\n#else\n vsnprintf(temp, memlength, fmt, ap);\n#endif\n\n va_end(tmp_ap);\n\n std::string ret(temp);\n delete[] temp;\n return ret;\n}\n\nstatic std::string IndentString(int indent)\n{\n std::stringstream ss;\n for (int i = 0; i < indent; i++)\n ss << \" \";\n return ss.str();\n}\n\nvoid ASTPrinter::BeginBlock(const char* fmt, ...)\n{\n", "right_context": " va_start(ap, fmt);\n m_ss << IndentString(m_indent) << StringFromFormat(fmt, ap) << \": {\" << std::endl;\n va_end(ap);\n m_indent++;\n#ifdef DEBUG\n std::cout << m_ss.str() << std::endl;\n#endif\n}\n\nvoid ASTPrinter::Write(const char* fmt, ...)\n{\n va_list ap;\n va_start(ap, fmt);\n m_ss << IndentString(m_indent) << StringFromFormat(fmt, ap);\n va_end(ap);\n}\n\nvoid ASTPrinter::WriteLine(const char* fmt, ...)\n{\n va_list ap;\n va_start(ap, fmt);\n m_ss << IndentString(m_indent) << StringFromFormat(fmt, ap) << std::endl;\n va_end(ap);\n}\n\nvoid ASTPrinter::EndBlock()\n{\n assert(m_indent > 0);\n m_indent--;\n m_ss << IndentString(m_indent) << \"}\" << std::endl;\n}\n", "groundtruth": " va_list ap;\n", "crossfile_context": ""} {"task_id": "streamit-hls", "path": "streamit-hls/src/streamgraph/streamgraph_function_builder.cpp", "left_context": "#include \"streamgraph/streamgraph_function_builder.h\"\n#include \n#include \"frontend/expression_builder.h\"\n#include \"frontend/statement_builder.h\"\n#include \"frontend/wrapped_llvm_context.h\"\n#include \"llvm/IR/Module.h\"\n#include \"parser/ast.h\"\n\nnamespace StreamGraph\n{\n// Dummy interface for push/pop/peek\nstruct StreamGraphTargetFragmentBuilder : public Frontend::FunctionBuilder::TargetFragmentBuilder\n{\n StreamGraphTargetFragmentBuilder() = default;\n ~StreamGraphTargetFragmentBuilder() = default;\n\n llvm::Value* BuildPop(llvm::IRBuilder<>& builder) override final { return nullptr; }\n llvm::Value* BuildPeek(llvm::IRBuilder<>& builder, llvm::Value* idx_value) override final { return nullptr; }\n", "right_context": "};\n\nStreamGraphFunctionBuilder::StreamGraphFunctionBuilder(Frontend::WrappedLLVMContext* ctx, llvm::Module* mod,\n llvm::Function* func)\n : Frontend::FunctionBuilder(ctx, mod, new StreamGraphTargetFragmentBuilder(), func)\n{\n}\n\nStreamGraphFunctionBuilder::~StreamGraphFunctionBuilder()\n{\n delete m_target_builder;\n m_target_builder = nullptr;\n}\n\nstatic llvm::Value* GetRateValue(Frontend::FunctionBuilder* fb, AST::Expression* expr)\n{\n // Use 0 when rate is unspecified.\n if (!expr)\n return llvm::ConstantInt::get(fb->GetContext()->GetIntType(), static_cast(0));\n\n Frontend::ExpressionBuilder eb(fb);\n if (!expr->Accept(&eb) || !eb.IsValid())\n return nullptr;\n\n return eb.GetResultValue();\n}\n\nstatic void AddStreamParameterValues(Frontend::FunctionBuilder* fb, AST::StreamDeclaration* stream_decl,\n std::vector& call_params)\n{\n for (AST::ParameterDeclaration* param_decl : *stream_decl->GetParameters())\n call_params.push_back(fb->GetVariable(param_decl));\n}\n\nbool StreamGraphFunctionBuilder::Visit(AST::FilterDeclaration* node)\n{\n llvm::Value* peek_rate_val = GetRateValue(this, node->GetWorkBlock()->GetPeekRateExpression());\n llvm::Value* pop_rate_val = GetRateValue(this, node->GetWorkBlock()->GetPopRateExpression());\n llvm::Value* push_rate_val = GetRateValue(this, node->GetWorkBlock()->GetPushRateExpression());\n if (!peek_rate_val || !pop_rate_val || !push_rate_val)\n return false;\n\n // We're a filter, simply call AddFilter\n llvm::Function* call_func = GetModule()->getFunction(\"StreamGraphBuilder_AddFilter\");\n std::vector call_params = {m_context->CreateHostPointerValue(node), peek_rate_val, pop_rate_val,\n push_rate_val};\n AddStreamParameterValues(this, node, call_params);\n GetCurrentIRBuilder().CreateCall(call_func, call_params);\n GetCurrentIRBuilder().CreateRetVoid();\n return true;\n}\n\nbool StreamGraphFunctionBuilder::Visit(AST::SplitJoinDeclaration* node)\n{\n // We're a splitjoin\n llvm::Function* call_func = GetModule()->getFunction(\"StreamGraphBuilder_BeginSplitJoin\");\n GetCurrentIRBuilder().CreateCall(call_func, {m_context->CreateHostPointerValue(node)});\n\n // Generate statements\n bool result = node->GetStatements()->Accept(this);\n\n // End of splitjoin\n call_func = GetModule()->getFunction(\"StreamGraphBuilder_EndSplitJoin\");\n GetCurrentIRBuilder().CreateCall(call_func);\n GetCurrentIRBuilder().CreateRetVoid();\n return result;\n}\n\nbool StreamGraphFunctionBuilder::Visit(AST::PipelineDeclaration* node)\n{\n // We're a pipeline\n llvm::Function* call_func = GetModule()->getFunction(\"StreamGraphBuilder_BeginPipeline\");\n GetCurrentIRBuilder().CreateCall(call_func, {m_context->CreateHostPointerValue(node)});\n\n // Generate statements\n bool result = node->GetStatements()->Accept(this);\n\n // End of splitjoin\n call_func = GetModule()->getFunction(\"StreamGraphBuilder_EndPipeline\");\n GetCurrentIRBuilder().CreateCall(call_func);\n GetCurrentIRBuilder().CreateRetVoid();\n return result;\n}\n}", "groundtruth": " bool BuildPush(llvm::IRBuilder<>& builder, llvm::Value* value) override final { return false; }\n", "crossfile_context": ""} {"task_id": "kanagawa", "path": "kanagawa/compiler/cpp/circt_util.h", "left_context": "// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n#pragma once\n\n#include \n#include \n#include \n#include \n#include \n#include \n\n// Redirect assertions to a function that will throw an exception on release builds\n#include \"ship_assert.h\"\n\n// Describes how a HW module port\n// will be used in an ESI channel\nenum class EsiPortSemantics\n{\n NonEsi,\n Valid,\n Ready,\n ReadEnable,\n Empty,\n Payload\n};\n\n// Describes which channel in a bundle\n// a particular port will be a port of\nenum class EsiChannelSemantics\n{\n NonEsi,\n\n // The channel which sends information from generated HW to the outside world\n FromGeneratedHw,\n\n // The channel which receives information from the outside world\n ToGeneratedHw\n};\n\n// Name of a channel within a bundle\nenum class EsiChannelName\n{\n Undefined,\n Arguments,\n Results\n};\n\nvoid LoadDialects(mlir::MLIRContext& context);\nmlir::ModuleOp CreateMlirModuleAndDesign(const mlir::Location& loc, const std::string& designName);\ncirct::kanagawa::DesignOp GetDesignOp(mlir::ModuleOp mlirModule);\n\ncirct::hw::StructType GetInspectableStructType();\nmlir::Location LocationToCirctLocation(const Location& locationIn);\nmlir::Location CallStackToCirctLocation(const Program& program, const size_t callStackIndex,\n const mlir::Location leafLocation);\nmlir::Location FileAndLineNumberToCirctLocation(const Program& program, const FileAndLineNumber& faln);\nmlir::Location OperationToCirctLocation(const Operation& op, const Program& program);\nmlir::Location GetUnknownLocation();\nmlir::Location RegDescToLocation(const RegisterDescription& regDesc);\n\nstd::string FixupStringCirct(const std::string& src);\n\nmlir::Value GetPathOp(circt::OpBuilder& opb, const ObjectPath& srcPath, const ObjectPath& dstPath,\n const std::string& finalTypeName, const std::string& circtDesignName);\n\nmlir::APInt LiteralToApInt(const Literal& l);\nmlir::Value LiteralToValue(const Literal& l, circt::OpBuilder& opb, const mlir::Location& location);\n\nmlir::StringAttr StringToStringAttr(const std::string& str);\n\nsize_t GetMlirTypeWidth(const mlir::Type& type);\n\nsize_t GetMlirValueWidth(const mlir::Value& v);\n\nmlir::IntegerType GetIntegerType(const size_t width,\n mlir::IntegerType::SignednessSemantics signedness = mlir::IntegerType::Signless);\n\nmlir::IntegerType GetI1Type();\n\ncirct::hw::ArrayType GetPackedArrayType(const mlir::Type& elementType, const size_t elementCount);\n\ncirct::hw::ArrayType GetPackedArrayTypeParameterizedSize(const mlir::Type& elementType, const std::string& paramName);\n\ncirct::seq::ClockType GetClockType();\n\nmlir::Type ToMlirType(const Type* typeIn, bool signedness = false);\n\nmlir::Value GetTypedZeros(circt::OpBuilder& opb, const mlir::Location& location, const mlir::Type& typeIn);\n\nmlir::Value PopCount(circt::OpBuilder& opb, const mlir::Location location, const mlir::ValueRange values,\n const mlir::Value outputWhenEmpty);\n\nmlir::Value ReadContainerPort(circt::OpBuilder& opb, const mlir::Location location, const mlir::Value containerPath,\n const mlir::StringAttr portSymbol, const mlir::Type type, const mlir::Type dstType = {});\n\nvoid WriteContainerPort(circt::OpBuilder& opb, const mlir::Location location, const mlir::Value containerPath,\n const mlir::StringAttr portSymbol, const mlir::Type type, const mlir::Value valueToWrite);\n\nvoid AssertTwoState(mlir::ModuleOp& moduleOp);\n\nvoid DumpMlirOperation(mlir::Operation* const op);\n\nvoid AttachNameHintToValue(const mlir::Value value, const AccessedRegister accessedRegister, const Program& program);\n\nmlir::Value MuxTree(const mlir::Value selectIndex, const std::vector& choices, circt::OpBuilder& opb,\n const mlir::Location& location);\n\nusing SourceOperandToMlirValueCb =\n std::function;\n\nusing StoreMlirValueInDestOperandCb =\n std::function;\n\nvoid ConvertOpToCirct(const Operation& op, circt::OpBuilder& opb, const Program& program,\n const SourceOperandToMlirValueCb& srcToValue, const StoreMlirValueInDestOperandCb& storeDst);\n\nmlir::Value AdjustValueWidth(const mlir::Value& srcValue, const size_t desiredWidth, const bool signExtend,\n circt::OpBuilder& opb, const mlir::Location& location);\n\nvoid SetLoweringOperations(mlir::ModuleOp& moduleOp);\n\nstd::string GetSVTypeString(mlir::Type type, const std::string& arrayDims);\n\nmlir::StringAttr GetFullyQualifiedStringAttr(const ObjectPath& containerPath, const std::string& fieldName);\n\ncirct::hw::InnerSymAttr GetFullyQualifiedInnerSymAttr(const ObjectPath& containerPath, const std::string& fieldName);\n\nstd::string GetMemoryContainerName(const std::string& registerName);\n\nvoid addPipelineSrcs(mlir::ModuleOp module);\n\n// Compute a single value by applying a binary operator to reduce an array of values\n// If the input array of values is empty, then return a default value\ntemplate \nmlir::Value Reduce(const llvm::SmallVector& inputs, const mlir::IntegerAttr& defaultValue,\n circt::OpBuilder& opb, const mlir::Location& location, const bool TwoState = true)\n{\n if (inputs.empty())\n {\n return opb.create(location, defaultValue);\n }\n else\n {\n return opb.create(location, inputs, TwoState);\n }\n}\n\n// Used to construct a single mlir::Value out of a sparse set of slices\n// unspecified bits are set to 0\nclass SparseConcat\n{\n", "right_context": " private:\n circt::OpBuilder& _opb;\n mlir::Location _location;\n size_t _width;\n\n // Offset and value\n using QueuedValue = std::pair;\n\n std::list _values;\n};\n\n// Groups assignments (where AssignOp) could be used\n// into an AlwaysCombOp with a batch of BPAssignOp\nclass BatchAssignments\n{\n public:\n void Append(const mlir::Location& location, const mlir::Value& dstValue, const mlir::Value& srcValue);\n\n void AppendVerbatimDst(const mlir::Location& location, const std::string& dstString, const mlir::Value& srcValue);\n\n void Flush(circt::OpBuilder& opb, const mlir::Location& location);\n\n bool Empty() const;\n\n private:\n struct AssignRecord\n {\n mlir::Location _location;\n mlir::Value _dstValue;\n mlir::Value _srcValue;\n };\n\n struct VerbatimAssignRecord\n {\n mlir::Location _location;\n std::string _dstString;\n mlir::Value _srcValue;\n };\n\n std::vector _assignments;\n std::vector _verbatimAssignments;\n};\n\n// Each call to Accumulate writes a subset of bits in an output port\n// Flush() inserts sv.assign operations to write an entire output port\nclass AccumulateOutputPortUpdates\n{\n public:\n void Accumulate(const size_t outputRegisterIndex, const mlir::Value& valueToWrite, const size_t offset,\n const size_t width);\n\n void Flush(circt::OpBuilder& opb, const mlir::Location& location, const size_t outputRegisterIndex,\n const mlir::Value portSsaValue, BatchAssignments& batchAssignments);\n\n private:\n struct AccumulateRecord\n {\n size_t _offset;\n size_t _width;\n mlir::Value _value;\n };\n\n // List of updates to apply\n using Value = std::list;\n\n std::map _updates;\n};\n\n// Used to build verbatim ops with substitutions for mlir::Value\nclass VerbatimWriter\n{\n public:\n VerbatimWriter(circt::OpBuilder& opb, const mlir::Location& location);\n\n ~VerbatimWriter();\n\n template ::value>::type* = nullptr>\n VerbatimWriter& operator<<(const T& v)\n {\n _str << \"{{\" << _substitutions.size() << \"}}\";\n\n _substitutions.push_back(v);\n\n return *this;\n }\n\n template ::value>::type* = nullptr>\n VerbatimWriter& operator<<(const T& v)\n {\n _str << v;\n\n return *this;\n }\n\n mlir::Value GetExpr(mlir::Type type);\n\n private:\n circt::OpBuilder& _opb;\n\n mlir::Location _location;\n\n mlir::SmallVector _substitutions;\n\n std::ostringstream _str;\n};\n\n// This is a RAII class for a ifdef section for CIRCT\nclass DisableDynamicAssertsAndTranslateOffCirct\n{\n public:\n DisableDynamicAssertsAndTranslateOffCirct(circt::OpBuilder& opb, mlir::Location opLocation);\n\n ~DisableDynamicAssertsAndTranslateOffCirct();\n\n private:\n circt::OpBuilder& _opb;\n mlir::Location _location;\n};\n\nclass ModuleDeclarationHelper\n{\n public:\n ModuleDeclarationHelper(RedirectableSourceWriter& writer, const std::string& name, const mlir::Location& location,\n const std::string& circtDesignName, mlir::ModuleOp* const mlirModule);\n\n ~ModuleDeclarationHelper();\n\n mlir::Block* GetBodyBlock();\n\n void BeginEsiBundle(const std::string& name);\n\n void EndEsiBundle();\n\n void AddPort(const std::string& name, const circt::hw::ModulePort::Direction direction, const size_t width,\n const EsiPortSemantics portSemantics = EsiPortSemantics::NonEsi,\n const EsiChannelSemantics channelSemantics = EsiChannelSemantics::NonEsi,\n const EsiChannelName channelName = EsiChannelName::Undefined, const std::string fieldName = \"\");\n\n void AddPort(const std::string& name, const circt::hw::ModulePort::Direction direction, const size_t outerWidth,\n const size_t innerWidth);\n\n void AddPortOptionalArray(const std::string& name, const circt::hw::ModulePort::Direction direction,\n const size_t outerWidth, const size_t innerWidth);\n\n void AddPort(const std::string& name, const circt::hw::ModulePort::Direction direction, const mlir::Type type,\n const Type* origType = nullptr, const EsiPortSemantics portSemantics = EsiPortSemantics::NonEsi,\n const EsiChannelSemantics channelSemantics = EsiChannelSemantics::NonEsi,\n const EsiChannelName channelName = EsiChannelName::Undefined, const std::string fieldName = \"\");\n\n void FinishPorts();\n\n std::string AssignPort(const std::string& portName);\n\n std::string AssignPortOptional(const std::string& portName);\n\n void AddTypedefs(const std::string& typeScopeName);\n\n mlir::Type GetInspectableTypeAlias();\n\n mlir::ModuleOp MlirModule();\n\n circt::kanagawa::ContainerOp Container();\n\n circt::OpBuilder& OpBuilder();\n\n void Finish();\n\n void EmitEsiWrapper(const std::string& circtDesignName);\n\n void FlushVerbatimStrings();\n\n using VerbatimCallback = std::function;\n\n void AddVerbatimOp(const mlir::Location& location, const VerbatimCallback& callback);\n\n std::string Name() const;\n\n mlir::Value GetPort(circt::OpBuilder& opb, const ObjectPath& srcPath, const ObjectPath& dstPath,\n const mlir::StringAttr portSymbol, const circt::kanagawa::Direction portDirection,\n const mlir::Type portType, const std::string& finalTypeName,\n const std::string& circtDesignName);\n\n void WritePort(circt::OpBuilder& opb, const ObjectPath& srcPath, const ObjectPath& dstPath,\n const mlir::StringAttr portSymbol, const std::string& finalTypeName,\n const std::string& circtDesignName, mlir::Value value);\n\n mlir::Value ReadPort(circt::OpBuilder& opb, const ObjectPath& srcPath, const ObjectPath& dstPath,\n const mlir::StringAttr portSymbol, const std::string& finalTypeName,\n const std::string& circtDesignName, const mlir::Type type);\n\n private:\n mlir::Type GetTypeAlias(const std::string& name, const mlir::Type& referencedType);\n\n private:\n void AssertStructsMatch(const mlir::Type& circtTypeAlias, const std::string& otherStructName);\n\n std::string _name;\n mlir::Location _location;\n std::string _circtDesignName;\n circt::OpBuilder _opb;\n RedirectableSourceWriter& _originalWriter;\n\n struct PortInfo\n {\n circt::hw::PortInfo _hwPortInfo;\n EsiPortSemantics _esiPortSemantics;\n EsiChannelSemantics _esiChannelSemantics;\n EsiChannelName _esiChannelName;\n std::string _fieldName;\n std::optional _bundleName;\n const Type* _origType;\n };\n\n llvm::SmallVector _ports;\n mlir::ModuleOp _mlirModule;\n circt::kanagawa::ContainerOp _container;\n StringSourceWriter _verbatimBuffer;\n\n std::optional _bundleName;\n size_t _bundleStartPortIndex;\n\n // Maps bundle name to range of relevant ports\n std::map> _bundleNameToPortRange;\n\n std::map _portNameToIndex;\n std::map _outputValues;\n\n // Maps port name to mlir operation which represents the port\n std::map _inputPortOps;\n std::map _outputPortOps;\n\n circt::hw::TypeScopeOp _typeScopeOp;\n\n bool _finished;\n\n bool _exportVerilog;\n};\n\n// RAII class for {Begin, End}EsiBundle\nclass PushPopEsiBundle\n{\n public:\n PushPopEsiBundle(ModuleDeclarationHelper& helper, const std::optional& name) : _helper(helper)\n {\n if (name)\n {\n _pushedName = true;\n\n helper.BeginEsiBundle(*name);\n }\n else\n {\n _pushedName = false;\n }\n }\n\n ~PushPopEsiBundle()\n {\n if (_pushedName)\n {\n _helper.EndEsiBundle();\n }\n }\n\n private:\n ModuleDeclarationHelper& _helper;\n bool _pushedName;\n};\n\n// Helper to create a triggered region\n// and feed signals into it\nclass TriggeredOpHelper\n{\n public:\n TriggeredOpHelper(circt::OpBuilder& opb, circt::pipeline::ScheduledPipelineOp& scheduledPipelineOp,\n const SourceOperandToMlirValueCb& sourceOperandToMlirValue, const Program& program,\n const mlir::Value enableSignal);\n\n ~TriggeredOpHelper();\n\n void AddOp(const Operation& op);\n\n void DoneAddingOps(const circt::hw::EventControl triggerCondition, const mlir::Value clock);\n\n mlir::Value GetEnableSignal();\n\n mlir::Value GetSourceOperand(const Operation& op, const size_t operandIndex);\n\n mlir::Value GetSourceOperand(const Operation& op, const size_t operandIndex, const size_t desiredWidth);\n\n private:\n size_t AddSignal(const mlir::Value& value);\n\n circt::OpBuilder& _opb;\n circt::pipeline::ScheduledPipelineOp& _scheduledPipelineOp;\n SourceOperandToMlirValueCb _sourceOperandToMlirValue;\n const Program& _program;\n mlir::SmallVector _signals;\n circt::hw::TriggeredOp _triggeredOp;\n circt::OpBuilder::InsertPoint _insertionPoint;\n bool _doneAddingOps;\n std::vector _ops;\n std::map _opToStartIndex;\n};\n\n// Top-level container of MLIR\nclass MlirModule\n{\n public:\n MlirModule(const std::string& circtDesignName);\n\n std::string Generate();\n\n mlir::ModuleOp& Module();\n\n void VerifyRoundTrip();\n\n private:\n mlir::ModuleOp _mlirModule;\n};\n\n// Wrapper around LatencyOp that handles a latency of 0\nclass LatencyOpHelper\n{\n public:\n LatencyOpHelper(const mlir::Location location, circt::OpBuilder& opb, const llvm::SmallVector& values,\n const size_t latency);\n\n mlir::Value GetResult(const size_t index);\n\n private:\n llvm::SmallVector _results;\n};\n", "groundtruth": " public:\n SparseConcat(circt::OpBuilder& opb, const mlir::Location& location, const size_t width);\n void Insert(const size_t offset, const mlir::Value value);\n", "crossfile_context": ""} {"task_id": "kanagawa", "path": "kanagawa/compiler/cpp/enumerate_function_instances.h", "left_context": "// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n#pragma once\n\n// Code to compute the number of instances of each function\n// flat non-inline functions have 1 instance\n// non-inline methods have 1 instance per object of the containing class\n// inline functions have 1 instance per call site\n//\n// static local variables (of class type) result in 1 object per instance of the containing function\n\nstruct CompiledModule;\n\n// Describes a function call in the AST\nstruct UnresolvedCall\n{\n // The called function name\n std::string _calledFunctionName;\n\n // Scope that was prepended to the function name\n Scope _explicitScope;\n\n // Object name that was explicitly specified in the call (can be null)\n const ParseTreeNode* _explicitObject;\n\n // The class that contains the call\n const ClassType* _callSiteClassType;\n\n // The namespace/module that contains the call\n Scope _callSiteScope;\n\n // The name of the object that contains the call\n // Can be empty during type checking\n std::string _callSiteObjectName;\n\n // Callback to resolve object references\n ResolveReferenceFunction _resolveReferenceCallback;\n};\n\n// Information about a specific call without reference to any objects or function instances\nstruct ResolvedCall\n{\n // The name of the function that is called\n std::string _functionName;\n\n // The node in the AST corresponding to the called function\n // Can be nullptr if there is no corresponding node in the AST\n const FunctionNode* _functionNode;\n\n // Types that describe function signature\n FunctionDesc _functionDesc;\n\n // For flat functions, the namespaces that the function is declared in\n Scope _flatFunctionScope;\n\n // The type of the class that contains the called function\n // Set to the global class for flat functions\n const ClassType* _calledClassType;\n\n // True if the call is done via an object reference\n bool _callByReference;\n\n // True if this is a call to an exported class\n bool _callToExportClass;\n\n // Object name that was explicitly specified in the call\n // Can either be a node, or an object name string\n // or neither\n const ParseTreeNode* _explicitObjectNode;\n\n boost::optional _explicitObjectName;\n};\n\nResolvedCall ResolveFunctionCallForTypeChecking(const CallNode* const callNode,\n const ClassType* const callSiteClassType, const Scope& callSiteScope);\n\nResolvedCall ResolveFunctionCallPostTypeChecking(const CallNode* const callNode,\n const ClassType* const callSiteClassType, const Scope& callSiteScope,\n const std::string& callSiteObjectName,\n const ResolveReferenceFunction resolveReferenceCallback);\n\nResolvedCall ResolveFunctionCall(const UnresolvedCall& unresolvedCall, const Location& callSiteLocation,\n const bool resolveFunctionNode);\n\nResolvedCall ResolveFlatFunctionCall(const std::string& functionName, const Scope& functionScope,\n const Scope& callSiteScope, const Location& location);\n\nResolvedCall ResolveFlatFunctionCall(const ScopedIdentifierNode* const calledIdentifier, const Scope& callSiteScope);\n\nclass FunctionInstanceEnumerator\n{\n public:\n struct CalledInstanceDesc\n {\n // For member functions, this is \"namespace::object\"\n // For flat functions, this is \"namespace\"\n std::string _prefix;\n\n // Instance describing the called function\n FunctionInstance _calleeInstance;\n };\n\n using InstanceAndLocation = std::pair;\n\n private:\n // Current state of parse tree traversal\n struct Context\n {\n VisitContext _visitContext;\n Scope _namespaceScope;\n std::stack _classTypeStack;\n };\n\n // Maps function parameter name to name of the referenced object\n typedef std::map ParameterReferenceMap;\n\n // For a function instance: Name of containing object + parameter references\n typedef std::pair ObjectNameAndParameterReferences;\n\n // Counts number of instances for inline functions\n typedef std::map PerFunctionSymbolTable;\n std::map _inlineFunctionInstanceCountMap;\n\n // Contains non-inline instances (indexed by functionNode & object name)\n typedef std::map ObjectToInstanceMap;\n std::map _nonInlineInstanceMap;\n\n // Contains all instances (indexed by function node)\n std::map> _allInstanceMap;\n\n // Counts number of call sites for each function instance\n // Used for auto-inlining\n std::map _instanceCallCountMap;\n\n // Tracks called functionNodes that do not support auto-inlining\n // based on their attributes\n std::set _disallowAutoInlineSet;\n\n // Maps caller function instance to a description of the called function\n typedef std::map> CalledInstanceDescriptionListMap;\n std::map _callMap;\n\n // Maps called function instance to calling function instances\n std::map> _calleeToCaller;\n\n // For static local objects, maps (FunctionInstance, DeclareNode) to a unique identifier for the object\n typedef std::map StaticLocalMap;\n std::map _staticLocals;\n\n // Used to give each static local object a unique id\n size_t _staticLocalObjectCount;\n\n // Unique ID used to differentiate functions passed on parameter references\n size_t _referenceObjectNameSeqNumber;\n\n // The set of non-inline, unreachable function instances\n std::set _reachableFunctionInstances;\n\n // The set of functions called by extern class callbacks\n std::set _externClassCallbackCallees;\n\n // Used for binary operations that are implemented as a call to an inline library function\n // Maps binary operation node to the list of instances associated with the called function\n std::map> _binaryOperationCalls;\n\n // Used for array accesses into ecc memories\n // Maps array access node to the list of instances associated with the called function\n std::map> _eccMemoryCalls;\n\n std::map _parameterReferences;\n\n // Maps (caller function instance, call node) -> parameter references for a particular call\n std::map, ParameterReferenceMap> _parameterReferencesAtCallSites;\n\n // Maps VariableAccessNode (containing a reference) to the name of the referenced object\n typedef std::map VariableAccessTable;\n std::map _variableAccessTables;\n\n // Traverse the parse tree, capture the symbol table at each function\n PerFunctionSymbolTable TraverseParseTree(const ParseTreeNode* root);\n\n void EvaluateCallbacks(const ParseTreeNode* const root, PerFunctionSymbolTable& perFunctionSymbolTable,\n const std::function& addToWorkList);\n\n FunctionInstance GetCalledInstance(const CallNode* const callNode, Context& context,\n const FunctionInstance& callSiteInstance,\n const ClassType* const callSiteClassType, const Scope& callSiteScope,\n const ResolveReferenceFunction& resolveReferenceCallback);\n\n size_t GetInlineInstanceIndex(const FunctionNode* const functionNode);\n\n void RegisterExportClassInstance(const std::string& objectName, const ClassNode* const classNode,\n const ClassCallableFunctionMap& classCallableFunctionMap,\n const std::function& addToWorkList,\n PerFunctionSymbolTable& perFunctionSymbolTable);\n\n void RegisterObject(const std::string& objectName, const ClassNode* const classNode,\n const ClassCallableFunctionMap& classCallableFunctionMap,\n PerFunctionSymbolTable& perFunctionSymbolTable,\n const std::function& addToWorkList);\n\n size_t GetOrAllocateInstanceIndex(ObjectToInstanceMap& objectToInstanceMap,\n const ObjectNameAndParameterReferences& objectNameAndParameterReferences);\n\n // Maps function parameter index to compile-time known value & type\n // the type is the parameter (function declaration) type not the argument (call site) type\n using ParameterIndexToKnownValue = std::map;\n\n // Maps function instance (explict inline functions only) to parameter values\n std::map _inlineParameterValueMap;\n\n std::map> _classTypeToMethods;\n // Used to dereference callbacks\n struct CallbackDesc\n {\n const ClassType* _classType;\n std::string _objectName;\n std::string _memberName;\n\n bool operator<(const CallbackDesc& rhs) const\n {\n return std::tie(_classType, _objectName, _memberName) <\n std::tie(rhs._classType, rhs._objectName, rhs._memberName);\n }\n };\n\n // Maps object to list of callable methods or callbacks\n std::map _objectToCallableFunctions;\n\n const CompiledModule& _moduleToCompile;\n\n const bool _isCompilingToVerilog;\n\n // Maps (call node, call site function instance) to called object name\n using CallSite = std::pair;\n std::map> _callSiteToCalledObjectName;\n\n // The function instance currently being enumerated\n std::optional _currentInstance;\n\n public:\n FunctionInstanceEnumerator(const CompiledModule& moduleToCompile, const bool isCompilingToVerilog);\n\n void FindUnreachableFunctions();\n\n void Enumerate(const ParseTreeNode* const root);\n\n std::vector GetObjectNamesForFunction(const FunctionNode* const node) const;\n\n bool IsInlineable(const FunctionInstance& functionInstance, const size_t minimumCallCount) const;\n\n CalledInstanceDesc LookupCall(const CallNode* const callNode, const FunctionInstance& callerInstance);\n\n size_t LookupStaticLocalObjectIndex(const DeclareNode* const declareNode,\n const FunctionInstance& containingInstance) const;\n\n std::list GetAllStaticLocalIndices(const DeclareNode* const declareNode) const;\n\n std::list LookupMethodInstances(const FunctionNode* const functionNode,\n const std::string& objectName) const;\n\n bool IsInstanceReachable(const FunctionInstance& instance) const;\n\n std::string GetReferencedObject(const VariableAccessNode* variableAccessNode,\n const FunctionInstance& instance) const;\n\n FunctionInstance LookupBinaryOpCall(const BinaryOpNode* const node);\n\n FunctionInstance LookupEccMemoryCall(const ArrayAccessNode* const node);\n\n size_t GetFunctionCallCount(const FunctionNode* const node, const std::string& objectName) const;\n\n UnresolvedCall DereferenceCallback(const ClassType* callSiteClassType, const std::string& callSiteObjectName,\n const std::string& callbackName, const Location& callSiteLocation) const;\n\n FunctionInstance DereferenceExternalClassCallback(const ClassType* classType,\n const std::string& externClassObjectName,\n const std::string& callbackName, const Location& location) const;\n\n std::string DereferenceParameter(const FunctionInstance& callerInstance, const CallNode* const callNode,\n const std::string& paramName);\n\n std::string GetCalledObjectName(const CallNode* const callNode, const FunctionInstance& callerInstance);\n\n", "right_context": "\n bool GenerateCurrentEnumerateFunctionCallTrace(std::ostream& str);\n\n const std::set GetExternalClassInstanceCallees() const;\n\n std::optional GetCaller(const FunctionInstance& inst) const;\n};", "groundtruth": " void GenerateCallTrace(std::ostream& str, const FunctionInstance& srcInst);\n", "crossfile_context": ""} {"task_id": "kanagawa", "path": "kanagawa/compiler/cpp/options.h", "left_context": "// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n#pragma once\n\n#ifdef __cplusplus\nextern \"C\"\n{\n#endif\n\n enum VerbosityLevel\n {\n Quiet,\n Normal,\n Verbose\n };\n\n typedef unsigned BOOL;\n\n typedef struct\n {\n // The number of iterations to run for\n size_t _numIterations;\n\n // Random number seed\n size_t _seed;\n\n // Coefficient of linear force that pulls connected nodes together\n float _pullStrength;\n\n // Coefficient of inverse square force that pushes nodes away from others\n float _pushStrength;\n\n // Coefficient of inverse cube force that pushes nodes away from walls\n float _wallStrength;\n\n // Maximum length of gradient vectors\n float _updateRate;\n\n // True to animate the placement process\n BOOL _display;\n } PlacementOptions;\n\n typedef struct\n {\n // True to ensure that generated code runs in the same order as the source code\n // For debugging\n BOOL _debug;\n\n // True to generate DebugSymbols with stripped file names\n BOOL _stripDebugSymbols;\n\n // Optimization level\n size_t _optimize;\n\n // True to add assertions to the IR to verify that narrowing conversions do not lose data\n BOOL _assertNarrowingConversion;\n\n // True to dump IR before/after optimization\n BOOL _dumpIR;\n\n // True to dump IR after each optimization step\n BOOL _dumpOpt;\n\n // True to dump IR to json after all optimizations\n BOOL _serializeIRPostOpt;\n\n // True to dump IR to json after all optimizations\n BOOL _serializeCIRCTIR;\n\n // true to generate hardware to detect race conditions\n BOOL _detectRaces;\n\n // true to generate hardware to inspect control state\n BOOL _controlInspection;\n\n // true to generate hardware to inspect\n BOOL _inspection;\n\n // true to enable assertions on release builds of the compiler\n BOOL _releaseAssert;\n\n // true to allow fifos to stutter when they are almost empty (to improve timing)\n BOOL _allowFifoStutter;\n\n // true to generate pipelines where individual stages may be stalled (to reduce area)\n BOOL _stallablePipelines;\n\n // Level of clock gating to apply (0 disables, 1 is per-stage, 2 is full clock gating)\n size_t _clockGatingLevel;\n\n // Only instantiate a clock gate if it applies to at more than this many register bits\n size_t _clockGatingThreshold;\n\n // For memory reads that are conditional, try and make the memory read enable signal conditional as well.\n // This can lower power consumption, but in some cases may negatively impact the maximum clock frequency.\n BOOL _conditionalMemoryReads;\n\n // Controls the number of pipeline registers inserted in the path of the input signals that drive the semaphore\n // module used to limit threads within a pipeline. This is a trade off between clock frequency and power\n // consumption (lower values mean less extra registers and hence less power and less area).\n size_t _semaphoreDelay;\n\n // true to generate hardware for code coverage\n BOOL _codeCoverage;\n\n // If code coverage is enabled, only generate code coverage hardware for muxes with less than this number of\n // cases A value of 0 means no limit.\n size_t _codeCoverageMuxThreshold;\n\n // true to generate metadata files for memories and fifos\n BOOL _dumpMemoryMetadata;\n\n // Maximum number of each RAM resource allowed\n size_t _maxBlockRam;\n size_t _maxDeepRam;\n\n // Minimum utilization of RAM resources\n // 0 means 0%, 100 means 100%\n size_t _minBlockRamUtilization;\n size_t _minDeepRamUtilization;\n\n // Decompose mux with more than this many inputs\n size_t _maxSelectInputs;\n\n // Decompose multiplication operations with operands wider than this\n size_t _maxMulSrcWidth;\n\n // Max thread count for functions when max count is not specified\n size_t _maxThreadsDefault;\n\n // Max thread count for any function (compilation fails if a function could have a thread count greater than\n // this)\n size_t _maxThreadsLimit;\n\n // Limit on the count of instructions to be scheduled\n size_t _scheduleLimit;\n\n // Extra latency added to to ease routing\n size_t _additionalLatency;\n\n // Additional clock cycles to add to the reset sequence\n // Hyper-retiming can require additional cycles be added\n size_t _additionalResetCycles;\n\n // A maximum number of additional pipeline registers that can be added to function entry points.\n // On platforms that support it, the synthesis tool is allowed to choose the number of registers.\n // On platforms a fixed number of registers will be used.\n // 0 means no auto-pipelining\n // 2 means that each register can be turned into 2 if necessary\n size_t _autoPipelineScale;\n\n // A maximum number of additional pipeline registers that can be added to cross-region function entry points.\n // On platforms that support it, the synthesis tool is allowed to choose the number of registers.\n // On platforms a fixed number of registers will be used.\n // 0 means no auto-pipelining\n // 2 means that each register can be turned into 2 if necessary\n size_t _autoPipelineCrossRegion;\n\n // 1 causes pipeline registers to be inserted after each level of combinational logic\n // 4 causes pipeline registers to be inserted after every 4 levels of combinational logic\n size_t _logicRegisterRatio;\n\n // Atomic blocks can relax scheduling up to this register ratio\n size_t _maxLogicRegisterRatio;\n\n // Number of cycles to propagate the reset signal\n size_t _resetCycles;\n\n // Subset of _resetCycles to spend in a fan-out tree\n size_t _resetFanOutCycles;\n\n // Number of cycles to add to fifo writes\n size_t _fifoWriteDelay;\n\n // Max distance between enqueue operations when merging fifos during local data propagation\n size_t _fifoMergeDistance;\n\n // The number of output bits in a carry-chain operation (add/sub) that is considered to be 1 level of logic\n size_t _carryChainWidthPerLogicLevel;\n\n // Write delay to add to memories that are accessed via read-modify-write\n size_t _rmwMemoryWriteDelay;\n\n // Read delay to add to memories that are accessed via read-modify-write\n size_t _rmwMemoryReadDelay;\n\n // Write delay to add to memories that are accessed via read-modify-write\n // In cases where hardened read-modify-write logic can be used\n size_t _rmwHardenedMemoryWriteDelay;\n\n // In cases where hardened BRAM read-modify-write logic could be used,\n // don't use the hardened logic when the width is > _rmwHardenedMemoryMaxWidth\n // AND height is <= _rmwHardenedMemoryMaxHeight to lessen\n // BRAM requirement/underutilization.\n size_t _rmwHardenedMemoryMaxWidth;\n size_t _rmwHardenedMemoryMaxHeight;\n\n // Optimize read-modify-write memory access within atomic block for area.\n // By default optimize for Fmax.\n BOOL _rmwMemoryFavorArea;\n\n // Require that if a memory read and write (access the same address) occur\n // at the same time, that the read will see the old data\n // If FALSE, then let the synthesis tool decide\n BOOL _strictMemoryReadWrite;\n\n // Delay to account for routing data to/from DSP/BRAM input/output registers (measured in levels of logic)\n size_t _inputOutputRegisterDelay;\n\n // Threshold for moving variables from registers into memories\n // Measured in memory bits per register bit\n // A value of 0 means variables should always stay in registers\n // A value of N means that a single register should be moved to a memory if\n // the number of memory bits is < N\n float _memToRegThreshold;\n\n // Threshold for replacing local data propagation FIFO with DSP\n // Measured in number of pipeline stages that FIFO replaces\n // A value of N means that FIFOs for number of pipeline stages <= N should\n // be replaced with DSPs\n size_t _fifoToDspThreshold;\n\n size_t _verbosity;\n\n // For limiting string length in generated code\n size_t _maxStringLength;\n\n // Randomly force each basic block to stall\n size_t _stall;\n\n // Convert all memories to arrays (ignoring area costs)\n size_t _forceMemToArray;\n\n // Don't emit debug view - currently used for code coverage tests\n BOOL _suppressDebugView;\n\n // Maximum optimizer work list size\n // defaults to 0\n size_t _logWorkListSize;\n\n // Extra pipeline stages to add functions with multiple return sites\n size_t _returnStages;\n\n // Maximum depth of call stack to write into generated RTL\n size_t _maxStackDepth;\n\n // The reset fanout is enabled\n BOOL _resetFanout;\n\n // Remove unnecessary/constant bits from registers\n BOOL _sparseRegOpt;\n\n // Reduce pipeline length with replicated hardware that performs speculative computations\n BOOL _carrySelect;\n\n // Don't output the informational header on top of generated Verilog files\n BOOL _noVerilogHeader;\n\n // True to enable warnings about missing [[transaction_size]]\n BOOL _enableTransactionSizeWarning;\n\n // True to enable warnings about deprecated features\n BOOL _enableDeprecationWarnings;\n\n // True to treat warnings as errors\n BOOL _warningsAsErrors;\n\n } CodeGenOptions;\n\n typedef struct\n {\n // Role clock frequency (in MHz) (clock 0)\n size_t _frequency;\n\n // Name of the FPGA to target\n const char* _deviceName;\n\n // Command line arguments used\n const char* _cmdArgs;\n\n CodeGenOptions _codegenOptions;\n\n PlacementOptions _placementOptions;\n\n", "right_context": "\n } Options;\n\n#ifdef __cplusplus\n};\n#endif\n", "groundtruth": " const char** _fileNames;\n", "crossfile_context": ""} {"task_id": "kanagawa", "path": "kanagawa/compiler/cpp/resource_usage.h", "left_context": "// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n#pragma once\n\n", "right_context": "\nvoid WriteResourceReport(const std::string& fileName, const Program& program);\n\nvoid DumpMemoryMetadata(const char* const memoryMetadataFileNameBase, const Program& program);\n\nvoid DumpSyncRamAndROM(std::ofstream* asrFile, std::ofstream* romFile, const Program& program,\n const char* const memFileBase);\n\nvoid DumpFifoRamInfo(std::ofstream* scfFile, std::ofstream* dcfFile, const Program& program);\n\nsize_t LogicRamCostFunction(size_t width, size_t depth, size_t numReadPorts);", "groundtruth": "void WriteResourceUsage(const char* const fileName, const Program& program);\n", "crossfile_context": ""} {"task_id": "kanagawa", "path": "kanagawa/compiler/cpp/serialize_ir.h", "left_context": "// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n#pragma once\n\n", "right_context": "", "groundtruth": "void SerializeIRToJson(const Program& program, const std::string& fileName);", "crossfile_context": ""} {"task_id": "kanagawa", "path": "kanagawa/thirdparty/coremark/coremark.h", "left_context": "/*\nCopyright 2018 Embedded Microprocessor Benchmark Consortium (EEMBC)\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\nOriginal Author: Shay Gal-on\n*/\n\n/* Topic: Description\n This file contains declarations of the various benchmark functions.\n*/\n\n/* Configuration: TOTAL_DATA_SIZE\n Define total size for data algorithms will operate on\n*/\n#ifndef TOTAL_DATA_SIZE\n#define TOTAL_DATA_SIZE 2 * 1000\n#endif\n\n#define SEED_ARG 0\n#define SEED_FUNC 1\n#define SEED_VOLATILE 2\n\n#define MEM_STATIC 0\n#define MEM_MALLOC 1\n#define MEM_STACK 2\n\n#include \"core_portme.h\"\n\n#if HAS_STDIO\n#include \n#endif\n#if HAS_PRINTF\n#define ee_printf printf\n#endif\n\n/* Actual benchmark execution in iterate */\nvoid *iterate(void *pres);\n\n/* Typedef: secs_ret\n For machines that have floating point support, get number of seconds as\n a double. Otherwise an unsigned int.\n*/\n#if HAS_FLOAT\ntypedef double secs_ret;\n#else\ntypedef ee_u32 secs_ret;\n#endif\n\n#if MAIN_HAS_NORETURN\n#define MAIN_RETURN_VAL\n#define MAIN_RETURN_TYPE void\n#else\n#define MAIN_RETURN_VAL 0\n#define MAIN_RETURN_TYPE int\n#endif\n\nvoid start_time(void);\nvoid stop_time(void);\nCORE_TICKS get_time(void);\nsecs_ret time_in_secs(CORE_TICKS ticks);\n\n/* Misc useful functions */\nee_u16 crcu8(ee_u8 data, ee_u16 crc);\nee_u16 crc16(ee_s16 newval, ee_u16 crc);\nee_u16 crcu16(ee_u16 newval, ee_u16 crc);\nee_u16 crcu32(ee_u32 newval, ee_u16 crc);\nee_u8 check_data_types(void);\n", "right_context": "void portable_free(void *p);\nee_s32 parseval(char *valstring);\n\n/* Algorithm IDS */\n#define ID_LIST (1 << 0)\n#define ID_MATRIX (1 << 1)\n#define ID_STATE (1 << 2)\n#define ALL_ALGORITHMS_MASK (ID_LIST | ID_MATRIX | ID_STATE)\n#define NUM_ALGORITHMS 3\n\n/* list data structures */\ntypedef struct list_data_s\n{\n ee_s16 data16;\n ee_s16 idx;\n} list_data;\n\ntypedef struct list_head_s\n{\n struct list_head_s *next;\n struct list_data_s *info;\n} list_head;\n\n/*matrix benchmark related stuff */\n#define MATDAT_INT 1\n#if MATDAT_INT\ntypedef ee_s16 MATDAT;\ntypedef ee_s32 MATRES;\n#else\ntypedef ee_f16 MATDAT;\ntypedef ee_f32 MATRES;\n#endif\n\ntypedef struct MAT_PARAMS_S\n{\n int N;\n MATDAT *A;\n MATDAT *B;\n MATRES *C;\n} mat_params;\n\n/* state machine related stuff */\n/* List of all the possible states for the FSM */\ntypedef enum CORE_STATE\n{\n CORE_START = 0,\n CORE_INVALID,\n CORE_S1,\n CORE_S2,\n CORE_INT,\n CORE_FLOAT,\n CORE_EXPONENT,\n CORE_SCIENTIFIC,\n NUM_CORE_STATES\n} core_state_e;\n\n/* Helper structure to hold results */\ntypedef struct RESULTS_S\n{\n /* inputs */\n ee_s16 seed1; /* Initializing seed */\n ee_s16 seed2; /* Initializing seed */\n ee_s16 seed3; /* Initializing seed */\n void * memblock[4]; /* Pointer to safe memory location */\n ee_u32 size; /* Size of the data */\n ee_u32 iterations; /* Number of iterations to execute */\n ee_u32 execs; /* Bitmask of operations to execute */\n struct list_head_s *list;\n mat_params mat;\n /* outputs */\n ee_u16 crc;\n ee_u16 crclist;\n ee_u16 crcmatrix;\n ee_u16 crcstate;\n ee_s16 err;\n /* ultithread specific */\n core_portable port;\n} core_results;\n\n/* Multicore execution handling */\n#if (MULTITHREAD > 1)\nee_u8 core_start_parallel(core_results *res);\nee_u8 core_stop_parallel(core_results *res);\n#endif\n\n/* list benchmark functions */\nlist_head *core_list_init(ee_u32 blksize, list_head *memblock, ee_s16 seed);\nee_u16 core_bench_list(core_results *res, ee_s16 finder_idx);\n\n/* state benchmark functions */\nvoid core_init_state(ee_u32 size, ee_s16 seed, ee_u8 *p);\nee_u16 core_bench_state(ee_u32 blksize,\n ee_u8 *memblock,\n ee_s16 seed1,\n ee_s16 seed2,\n ee_s16 step,\n ee_u16 crc);\n\n/* matrix benchmark functions */\nee_u32 core_init_matrix(ee_u32 blksize,\n void * memblk,\n ee_s32 seed,\n mat_params *p);\nee_u16 core_bench_matrix(mat_params *p, ee_s16 seed, ee_u16 crc);\n", "groundtruth": "void * portable_malloc(ee_size_t size);\n", "crossfile_context": ""} {"task_id": "kanagawa", "path": "kanagawa/thirdparty/riscv-arch-test/riscv-test-env/v/riscv_test.h", "left_context": "// See LICENSE for license details.\n\n#ifndef _ENV_VIRTUAL_SINGLE_CORE_H\n#define _ENV_VIRTUAL_SINGLE_CORE_H\n\n#include \"../p/riscv_test.h\"\n\n//-----------------------------------------------------------------------\n// Begin Macro\n//-----------------------------------------------------------------------\n\n#undef RVTEST_FP_ENABLE\n#define RVTEST_FP_ENABLE fssr x0\n\n#undef RVTEST_CODE_BEGIN\n#define RVTEST_CODE_BEGIN \\\n .text; \\\n .global userstart; \\\nuserstart: \\\n init\n\n//-----------------------------------------------------------------------\n// Pass/Fail Macro\n//-----------------------------------------------------------------------\n\n#undef RVTEST_PASS\n#define RVTEST_PASS li a0, 1; scall\n\n#undef RVTEST_FAIL\n#define RVTEST_FAIL sll a0, TESTNUM, 1; 1:beqz a0, 1b; or a0, a0, 1; scall;\n\n//-----------------------------------------------------------------------\n// Data Section Macro\n//-----------------------------------------------------------------------\n\n#undef RVTEST_DATA_END\n#define RVTEST_DATA_END\n\n//-----------------------------------------------------------------------\n// Supervisor mode definitions and macros\n//-----------------------------------------------------------------------\n\n#define MAX_TEST_PAGES 63 // this must be the period of the LFSR below\n#define LFSR_NEXT(x) (((((x)^((x)>>1)) & 1) << 5) | ((x) >> 1))\n\n#define PGSHIFT 12\n#define PGSIZE (1UL << PGSHIFT)\n\n#define SIZEOF_TRAPFRAME_T ((__riscv_xlen / 8) * 36)\n\n#ifndef __ASSEMBLER__\n\ntypedef unsigned long pte_t;\n#define LEVELS (sizeof(pte_t) == sizeof(uint64_t) ? 3 : 2)\n#define PTIDXBITS (PGSHIFT - (sizeof(pte_t) == 8 ? 3 : 2))\n#define VPN_BITS (PTIDXBITS * LEVELS)\n#define VA_BITS (VPN_BITS + PGSHIFT)\n#define PTES_PER_PT (1UL << RISCV_PGLEVEL_BITS)\n#define MEGAPAGE_SIZE (PTES_PER_PT * PGSIZE)\n", "right_context": " long gpr[32];\n long sr;\n long epc;\n long badvaddr;\n long cause;\n} trapframe_t;\n#endif\n\n#endif\n", "groundtruth": "\ntypedef struct\n", "crossfile_context": ""} {"task_id": "kanagawa", "path": "kanagawa/compiler/cpp/object_path.cpp", "left_context": "// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n#include \"pch.h\"\n\nObjectPath AppendToPath(const ObjectPath& path, const std::string& suffix)\n{\n ObjectPath result = path;\n\n result.push_back(suffix);\n\n return result;\n}\n\nstd::string SerializePath(const ObjectPath& path, const char delimeter)\n{\n std::ostringstream str;\n\n bool isFirst = true;\n\n for (const std::string& s : path)\n {\n if (!isFirst)\n {\n str << delimeter;\n }\n\n str << s;\n\n isFirst = false;\n }\n\n return str.str();\n}\n\nObjectPath SubPath(const ObjectPath& src, const size_t offset, const size_t len)\n{\n assert((offset + len) <= src.size());\n\n", "right_context": "\n for (size_t i = 0; i < len; i++)\n {\n result[i] = src[offset + i];\n }\n\n return result;\n}", "groundtruth": " ObjectPath result(len);\n", "crossfile_context": ""} {"task_id": "kanagawa", "path": "kanagawa/compiler/cpp/path_report.cpp", "left_context": "// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n#include \"pch.h\"\n\n// Included separately to avoid rapidsjon overriding assert definition globally\n#include \"report.h\"\n\nenum class PathLengthPathElement\n{\n Object,\n Function,\n BasicBlock,\n Stage,\n OperationName,\n\n Count\n};\n\nenum class PathLengthTupleElement\n{\n OperationLength,\n PathLength,\n\n Count\n};\n\nvoid WritePathLengthReport(const std::string& fileName, const Program& program)\n{\n const size_t ColumnCount = static_cast(PathLengthTupleElement::Count);\n const size_t PathElementCount = static_cast(PathLengthPathElement::Count);\n\n using ReportBuilderT = ReportBuilder;\n\n ReportBuilderT::ColumnArray columns = {};\n\n columns[static_cast(PathLengthTupleElement::OperationLength)] = {\"Op_Depth\", \"level\"};\n columns[static_cast(PathLengthTupleElement::PathLength)] = {\"Path_Depth\", \"level\"};\n\n ReportBuilderT::PathElementNameArray pathElementNames = {};\n\n pathElementNames[static_cast(PathLengthPathElement::Object)] = \"Object\";\n pathElementNames[static_cast(PathLengthPathElement::Function)] = \"Function\";\n pathElementNames[static_cast(PathLengthPathElement::BasicBlock)] = \"Basic block\";\n pathElementNames[static_cast(PathLengthPathElement::Stage)] = \"Stage\";\n pathElementNames[static_cast(PathLengthPathElement::OperationName)] = \"Operation\";\n\n const ReportBuilderT::ProjectionVector projections(\n {{\"Default View\",\n {0, 1, 2, 3, 4},\n {ReportBuilderT::AggregationRule::Max, ReportBuilderT::AggregationRule::Max}}});\n\n ReportBuilderT report(fileName, columns, pathElementNames, projections);\n\n for (const Function& function : program._functions)\n {\n ReportBuilderT::Path path = {};\n\n // Tokenize flat object name into array of nested object names\n path[static_cast(PathLengthPathElement::Object)] = TokenizeObjectName(function._objectName, program);\n\n path[static_cast(PathLengthPathElement::Function)] = ReportBuilderT::SimplePathElement(function._name);\n\n for (const BasicBlock& basicBlock : function._basicBlocks)\n {\n path[static_cast(PathLengthPathElement::BasicBlock)] =\n ReportBuilderT::SimplePathElement(GetBasicBlockName(basicBlock));\n\n const std::vector pipelineStages = GetPipelineStages(const_cast(basicBlock));\n\n for (const PipelineStage& ps : pipelineStages)\n {\n // Distance from the first use to the end of the basic block\n PathLengthTracker pathLengthTracker(program);\n\n assert(!ps.empty());\n\n // Make operation names unique, the visualizer drops duplicates\n size_t opId = 0;\n\n // Track all pipeline registers written by any substage within this stage\n for (const Stage* const subStage : ps)\n {\n const std::string stageName = \"stage\" + std::to_string(subStage->_atomicSequence);\n path[static_cast(PathLengthPathElement::Stage)] =\n ReportBuilderT::SimplePathElement(stageName);\n\n for (const Operation& op : subStage->_operations)\n {\n const size_t pathLength = pathLengthTracker.UpdateForward(op);\n const size_t opLength = GetOpPathLength(program, op, pathLengthTracker.GetCarryChainWidth());\n\n if (opLength > 0)\n {\n const std::string opName = std::to_string(opId) + \"_\" + GetOpcodeString(program, op);\n opId++;\n\n // Multiple source locations can contribute to this operation,\n // but the visualizes only allows one file location.\n // Pick the first location, if any.\n Location loc = {};\n const auto it = op._locations.cbegin();\n if (it != op._locations.cend())\n {\n loc._beginLine = it->_lineNumber;\n loc._endLine = it->_lineNumber + 1;\n loc._fileIndex = it->_fileIndex;\n loc._valid = true;\n }\n else\n {\n loc._valid = false;\n", "right_context": " ReportBuilderT::SimplePathElement(opName);\n\n report.AppendRow(path, loc, tuple);\n }\n }\n }\n }\n }\n }\n}\n", "groundtruth": " }\n\n ReportBuilderT::Tuple tuple = {};\n tuple[static_cast(PathLengthTupleElement::OperationLength)] = opLength;\n", "crossfile_context": ""} {"task_id": "kanagawa", "path": "kanagawa/compiler/cpp/platform.cpp", "left_context": "// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n#include \"platform.h\"\n#ifdef _WIN32\n#include \n#else\n#endif\n#include \n#include \n#include \n#include \n\n#ifdef _WIN32\nvoid SetConsoleColor(const ConsoleColor color)\n{\n uint16_t windowsColor = 0;\n\n switch (color)\n {\n case ConsoleColor::Default:\n windowsColor = 0x0007;\n break;\n\n case ConsoleColor::Red:\n windowsColor = FOREGROUND_INTENSITY | FOREGROUND_RED;\n break;\n\n case ConsoleColor::Yellow:\n windowsColor = FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN;\n break;\n\n default:\n assert(false);\n }\n\n SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), windowsColor);\n}\n\nclass WindowsWindow : public Window\n{\n private:\n struct Label\n {\n size_t _left;\n size_t _top;\n size_t _right;\n size_t _bottom;\n\n std::string _label;\n };\n\n public:\n WindowsWindow(const size_t width, const size_t height)\n {\n _window = CreateWindow(\"STATIC\", \"Placement\", WS_VISIBLE, 0, 0, static_cast(width),\n static_cast(height), nullptr, nullptr, GetModuleHandle(nullptr), nullptr);\n }\n\n ~WindowsWindow()\n {\n for (const auto& p : _brushMap)\n {\n DeleteObject(p.second);\n }\n\n DestroyWindow(_window);\n }\n\n void BeginFrame() override\n {\n _labels.clear();\n\n RECT clientRect = {};\n GetClientRect(_window, &clientRect);\n\n _windowDC = GetDC(_window);\n\n // Create a device context that will be rendered into (off-screen)\n _dc = CreateCompatibleDC(_windowDC);\n\n // Create a bitmap to render into\n _bitmap = CreateCompatibleBitmap(_windowDC, clientRect.right, clientRect.bottom);\n\n SelectObject(_dc, _bitmap);\n }\n\n void FillRectangle(const size_t x, const size_t y, const size_t width, const size_t height, const uint32_t clr,\n const char* const label) override\n {\n if (_brushMap.find(clr) == _brushMap.end())\n {\n _brushMap[clr] = CreateSolidBrush(clr & 0x00ffffff);\n }\n\n HGDIOBJ oldBrush = SelectObject(_dc, _brushMap[clr]);\n\n Rectangle(_dc, static_cast(x), static_cast(y), static_cast(x + width),\n static_cast(y + height));\n\n SelectObject(_dc, oldBrush);\n\n if (label)\n {\n Label labelRecord = {};\n\n labelRecord._left = x;\n labelRecord._top = y;\n labelRecord._right = x + width;\n labelRecord._bottom = y + height;\n\n labelRecord._label = label;\n\n _labels.push_back(labelRecord);\n }\n }\n\n void DrawLine(const size_t x1, const size_t y1, const size_t x2, const size_t y2, const uint32_t clr)\n {\n if (_penMap.end() == _penMap.find(clr))\n {\n _penMap[clr] = CreatePen(PS_SOLID, 1, clr);\n }\n\n HGDIOBJ oldPen = SelectObject(_dc, _penMap[clr]);\n\n MoveToEx(_dc, static_cast(x1), static_cast(y1), nullptr);\n\n LineTo(_dc, static_cast(x2), static_cast(y2));\n\n SelectObject(_dc, oldPen);\n }\n\n void DrawString(const size_t x, const size_t y, const std::string& str) override\n {\n TextOut(_dc, static_cast(x), static_cast(y), str.c_str(), static_cast(str.length()));\n }\n\n void EndFrame() override\n {\n // See if the mouse is over a label\n POINT cursorPos = {};\n\n if (GetCursorPos(&cursorPos))\n {\n if (ScreenToClient(_window, &cursorPos))\n {\n for (const Label& label : _labels)\n {\n if ((cursorPos.x >= label._left) && (cursorPos.x < label._right) && (cursorPos.y >= label._top) &&\n (cursorPos.y < label._bottom))\n {\n DrawString(0, 0, label._label);\n }\n }\n }\n }\n\n RECT clientRect = {};\n GetClientRect(_window, &clientRect);\n\n // Copy from off-screen bitmap to the window\n BitBlt(_windowDC, 0, 0, clientRect.right, clientRect.bottom, _dc, 0, 0, SRCCOPY);\n", "right_context": " DeleteDC(_dc);\n\n ReleaseDC(_window, _windowDC);\n\n // Pump window messages\n MSG msg = {};\n\n while (PeekMessage(&msg, _window, 0, 0, PM_REMOVE))\n {\n TranslateMessage(&msg);\n DispatchMessage(&msg);\n }\n }\n\n private:\n HWND _window;\n HDC _windowDC;\n HDC _dc;\n HBITMAP _bitmap;\n std::map _brushMap;\n std::map _penMap;\n std::vector