cpp: void print_array(int n,\nDATA_TYPE POLYBENCH_1D(w,N,n))\n{\nint i;\n\nfor (i = 0; i < n; i++) {\nfprintf (stderr, DATA_PRINTF_MODIFIER, w[i]);\nif (i % 20 == 0) fprintf (stderr, "\n");\n}\n}
fortran: subroutine print_array(n, w)\nimplicit none\n\nDATA_TYPE, dimension(n) :: w\ninteger :: n\ninteger :: i, j\ndo i = 1, n\nwrite(0, DATA_PRINTF_MODIFIER) w(i)\nif (mod(i - 1, 20) == 0) then\nwrite(0, *)\nend if\nend do\nwrite(0, *)\nend subroutine