extern void *__builtin___memcpy_chk(void *, void *, unsigned int, unsigned int); extern void *__builtin___memmove_chk(void *, void *, unsigned int, unsigned int); extern void *__builtin___mempcpy_chk(void *, void *, unsigned int, unsigned int); extern void *__builtin___memset_chk(void *, int, unsigned int, unsigned int); extern unsigned char *__builtin___stpcpy_chk(unsigned char *, unsigned char *, unsigned int); extern unsigned char *__builtin___strcat_chk(unsigned char *, unsigned char *, unsigned int); extern unsigned char *__builtin___strcpy_chk(unsigned char *, unsigned char *, unsigned int); extern unsigned char *__builtin___strncat_chk(unsigned char *, unsigned char *, unsigned int, unsigned int); extern unsigned char *__builtin___strncpy_chk(unsigned char *, unsigned char *, unsigned int, unsigned int); extern int __builtin___vfprintf_chk(void *, int, unsigned char *, void *); extern int __builtin___vprintf_chk(int, unsigned char *, void *); extern int __builtin___vsnprintf_chk(unsigned char *, unsigned int, int, unsigned int, unsigned char *, void *); extern int __builtin___vsprintf_chk(unsigned char *, int, unsigned int, unsigned char *, void *); extern double __builtin_acos(double); extern float __builtin_acosf(float); extern double __builtin_acosl(double); extern void *__builtin_alloca(unsigned int); extern double __builtin_asin(double); extern float __builtin_asinf(float); extern double __builtin_asinl(double); extern double __builtin_atan(double); extern float __builtin_atanf(float); extern double __builtin_atanl(double); extern double __builtin_atan2(double, double); extern float __builtin_atan2f(float, float); extern double __builtin_atan2l(double, double); extern double __builtin_ceil(double); extern float __builtin_ceilf(float); extern double __builtin_ceill(double); extern double __builtin_cos(double); extern float __builtin_cosf(float); extern double __builtin_cosl(double); extern double __builtin_cosh(double); extern float __builtin_coshf(float); extern double __builtin_coshl(double); extern int __builtin_clz(unsigned int); extern int __builtin_clzl(unsigned int); extern int __builtin_clzll(unsigned int); extern int __builtin_constant_p(int); extern int __builtin_ctz(unsigned int); extern int __builtin_ctzl(unsigned int); extern int __builtin_ctzll(unsigned int); extern double __builtin_exp(double); extern float __builtin_expf(float); extern double __builtin_expl(double); extern int __builtin_expect(int, int); extern double __builtin_fabs(double); extern float __builtin_fabsf(float); extern double __builtin_fabsl(double); extern int __builtin_ffs(unsigned int); extern int __builtin_ffsl(unsigned int); extern int __builtin_ffsll(unsigned int); extern void *__builtin_frame_address(unsigned int); extern double __builtin_floor(double); extern float __builtin_floorf(float); extern double __builtin_floorl(double); extern double __builtin_huge_val(void); extern float __builtin_huge_valf(void); extern double __builtin_huge_vall(void); extern double __builtin_inf(void); extern float __builtin_inff(void); extern double __builtin_infl(void); extern void *__builtin_memcpy(void *, void *, unsigned int); extern void *__builtin_mempcpy(void *, void *, unsigned int); extern double __builtin_fmod(double); extern float __builtin_fmodf(float); extern double __builtin_fmodl(double); extern double __builtin_frexp(double, int *); extern float __builtin_frexpf(float, int *); extern double __builtin_frexpl(double, int *); extern double __builtin_ldexp(double, int); extern float __builtin_ldexpf(float, int); extern double __builtin_ldexpl(double, int); extern double __builtin_log(double); extern float __builtin_logf(float); extern double __builtin_logl(double); extern double __builtin_log10(double); extern float __builtin_log10f(float); extern double __builtin_log10l(double); extern float __builtin_modff(float, float *); extern double __builtin_modfl(double, double *); extern double __builtin_nan(unsigned char *); extern float __builtin_nanf(unsigned char *); extern double __builtin_nanl(unsigned char *); extern double __builtin_nans(unsigned char *); extern float __builtin_nansf(unsigned char *); extern double __builtin_nansl(unsigned char *); extern void *__builtin_next_arg(void); extern unsigned int __builtin_object_size(void *, int); extern int __builtin_parity(unsigned int); extern int __builtin_parityl(unsigned int); extern int __builtin_parityll(unsigned int); extern int __builtin_popcount(unsigned int); extern int __builtin_popcountl(unsigned int); extern int __builtin_popcountll(unsigned int); extern double __builtin_powi(double, int); extern float __builtin_powif(float, int); extern double __builtin_powil(double, int); extern void __builtin_return(void *); extern void *__builtin_return_address(unsigned int); extern double __builtin_sin(double); extern float __builtin_sinf(float); extern double __builtin_sinl(double); extern double __builtin_sinh(double); extern float __builtin_sinhf(float); extern double __builtin_sinhl(double); extern double __builtin_sqrt(double); extern float __builtin_sqrtf(float); extern double __builtin_sqrtl(double); extern unsigned char *__builtin_stpcpy(unsigned char *, unsigned char *); extern unsigned char *__builtin_strchr(unsigned char *, unsigned char); extern int __builtin_strcmp(unsigned char *, unsigned char *); extern unsigned char *__builtin_strcpy(unsigned char *, unsigned char *); extern unsigned int __builtin_strcspn(unsigned char *, unsigned char *); extern unsigned char *__builtin_strncat(unsigned char *, unsigned char *, unsigned int); extern int __builtin_strncmp(unsigned char *, unsigned char *, unsigned int); extern unsigned char *__builtin_strncpy(unsigned char *, unsigned char *, unsigned int); extern int __builtin_strspn(unsigned char *, unsigned char *); extern unsigned char *__builtin_strpbrk(unsigned char *, unsigned char *); extern int __builtin_types_compatible_p(unsigned int, unsigned int); extern double __builtin_tan(double); extern float __builtin_tanf(float); extern double __builtin_tanl(double); extern double __builtin_tanh(double); extern float __builtin_tanhf(float); extern double __builtin_tanhl(double); extern void __builtin_va_end(void *); extern void __builtin_varargs_start(void *); extern void __builtin_va_start(void *, void *); extern void __builtin_stdarg_start(void *); extern void __builtin_va_arg(void *, unsigned int); extern void __builtin_va_copy(void *, void *); int comp_fir_basic(int *input, int *h, int *z, int N, int n) { int i; int j; int k; int y; c16: y = 0; c15: for (({ c14: k = 0; }); (/* c13 */ k < 3); ({ c12: k = k + 1; })) { c11: z[0] = input[k]; c10: for (({ c9: i = 0; }); (/* c8 */ i < 3); ({ c7: i = i + 1; })) { c6: y = y + h[i] * z[i]; } c5: for (({ c4: j = 2; }); (/* c3 */ j >= 0); ({ c2: j = j - 1; })) { c1: z[(j + 1)] = z[j]; } } c0: return y; } int comp_fir16(int *in, int *c, int *out, int size) { int i; int j; int res; int tmp; int x[16]; int adx; c49: x[0] = 0; c48: x[1] = 0; c47: x[2] = 0; c46: x[3] = 0; c45: x[4] = 0; c44: x[5] = 0; c43: x[6] = 0; c42: x[7] = 0; c41: x[8] = 0; c40: x[9] = 0; c39: x[10] = 0; c38: x[11] = 0; c37: x[12] = 0; c36: x[13] = 0; c35: x[14] = 0; c34: x[15] = 0; c33: adx = 0; c32: res = 0; c31: for (({ c30: j = 0; }); (/* c29 */ j < size); ({ c28: j = j + 1; })) { c27: x[adx] = in[j]; c26: for (({ c25: i = 0; }); (/* c24 */ i < 16); ({ c23: i = i + 1; })) { c22: tmp = (x[adx] * c[i]) * (2 ^ 16); c21: res = res + tmp; c20: adx = (adx + 1) % 16; } c19: adx = (adx + 1) % 16; c18: out[j] = res; } c17: return x[0]; } int comp_ifFor(int a, int b, int pas) { int i; int result; c58: result = 0; c57: for (({ c56: i = 0; }); (/* c55 */ i < a); ({ c54: i = i + pas; })) { c53: if (i != b) { c52: result = result + i; } else { c51: result = 0; } } c50: return result; } int comp_total(int *tabParam, int a, int b) { int i; int j; int k; int tabLocal1[10]; int tabLocal2[10]; c94: tabLocal1[0] = 0; c93: tabLocal1[1] = 0; c92: tabLocal1[2] = 0; c91: tabLocal1[3] = 0; c90: tabLocal1[4] = 0; c89: tabLocal1[5] = 0; c88: tabLocal1[6] = 0; c87: tabLocal1[7] = 0; c86: tabLocal1[8] = 0; c85: tabLocal1[9] = 0; c84: tabLocal2[0] = 0; c83: tabLocal2[1] = 0; c82: tabLocal2[2] = 0; c81: tabLocal2[3] = 0; c80: tabLocal2[4] = 0; c79: tabLocal2[5] = 0; c78: tabLocal2[6] = 0; c77: tabLocal2[7] = 0; c76: tabLocal2[8] = 0; c75: tabLocal2[9] = 0; c74: if (a < b) { c73: for (({ c72: i = 0; }); (/* c71 */ i <= a); ({ c70: i = i + 1; })) { c69: tabLocal1[i] = tabParam[(a - i)]; } } else { c68: for (({ c67: k = 0; }); (/* c66 */ k < a); ({ c65: k = k + 1; })) { c64: for (({ c63: j = b; }); (/* c62 */ j > 0); ({ c61: j = j - 1; })) { c60: tabParam[k] = tabLocal1[k] + tabLocal2[j]; } } } c59: return 0; } int comp_tri(int *t, int n) { int i; int j; int tmp; c108: tmp = 0; c107: for (({ c106: i = 0; }); (/* c105 */ i < n); ({ c104: i = i + 1; })) { c103: for (({ c102: j = 1; }); (/* c101 */ j < n - i); ({ c100: j = j + 1; })) { c99: if (t[j] < t[(j - 1)]) { c98: tmp = t[(j - 1)]; c97: t[(j - 1)] = t[j]; c96: t[j] = tmp; } } } c95: return tmp; } int comp_forif2(int *u, int *v, int a, int b) { int i; int j; int k; int l; int res; c130: k = 0; c129: l = 0; c128: for (({ c127: i = 0; }); (/* c126 */ i < a); ({ c125: i = i + 1; })) { c124: k = k + u[i]; } c123: for (({ c122: j = 0; }); (/* c121 */ j < b); ({ c120: j = j + 1; })) { c119: l = l + v[j]; } c118: if ((/* c117 */ k % 2 == 0) && (/* c116 */ l % 2 == 0)) { c115: res = 0; } else { c114: if (k % 2 == 0) { c113: res = 1; } else { c112: if (l % 2 == 0) { c111: res = 2; } else { c110: res = 3; } } } c109: return 0; } int comp_forif(void) { int i; int j; int k; c141: j = 0; c140: k = 0; c139: for (({ c138: i = 0; }); (/* c137 */ i < 10); ({ c136: i = i + 1; })) { c135: j = j + 1; c134: j = j + 1; c133: if (i % 2 == 0) { c132: k = k + 1; } } c131: return j; } int main(void) { int a; int t[16]; c165: t[0] = 10; c164: t[1] = 9; c163: t[2] = 8; c162: t[3] = 7; c161: t[4] = 6; c160: t[5] = 0; c159: t[6] = 5; c158: t[7] = 4; c157: t[8] = 3; c156: t[9] = 2; c155: t[10] = 0; c154: t[11] = 0; c153: t[12] = 0; c152: t[13] = 0; c151: t[14] = 0; c150: t[15] = 0; c149: a = comp_fir_basic(t, t, t, 10, 10); c148: a = comp_fir16(t, t, t, 16); c147: a = comp_ifFor(4, 1, 1); c146: a = comp_total(t, 9, 3); c145: a = comp_tri(t, 10); c144: a = comp_forif2(t, t, 10, 10); c143: a = comp_forif(); c142: return a; }