#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ free(int *);
int *malloc(int const);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char **argv) {
  int i, j;
  const int nclines = 32;
  const int ncols = 4;
  int nrows = nclines / ncols;
  int *arr = malloc(nclines * sizeof(int));
  int k = 0;
  for (i = 0; i < nrows; ++i)
    for (j = 0; j < ncols; ++j) {
      arr[k++] = i * ncols + j;
    }
  printf("1D progression is the same in both cases:\n");
  for (i = 0; i < nclines; ++i)
    printf("%i ", arr[i]);
  printf("\n");
  printf("Except that, in 2D, column-major looks like so:\n");
  for (j = 0; j < nrows; ++j) {
    for (i = 0; i < ncols; ++i)
      printf("%i ", arr[j + i * nrows]);
    printf("\n");
  }
  k = 0;
  int *arr2 = malloc(nclines * sizeof(int));
  for (j = 0; j < nrows; ++j)
    for (i = 0; i < ncols; ++i)
      arr2[j * ncols + i] = arr[j + nrows * i];
  printf("So naive mapping to 1D, column-major looks like this:\n");
  for (i = 0; i < nclines; ++i)
    printf("%i ", arr2[i]);
  printf("\n");
  int *arr3 = malloc(nclines * sizeof(int));
  for (i = 0; i < nrows; ++i)
    for (j = 0; j < ncols; ++j)
      arr3[j * nrows + i] = arr2[i * ncols + j];
  printf("Arr3:\n");
  for (i = 0; i < nclines; ++i)
    printf("%i ", arr3[i]);
  printf("\n");
  int ncols2 = 12;
  int nrows2 = nclines / ncols2;
  int lastpr = nclines % ncols2;
  printf("How the new array looks ...\n");
  for (i = 0; i < nrows2; ++i) {
    for (j = 0; j < ncols2; ++j)
      printf("%2i ", arr3[i * ncols2 + j]);
    printf("\n");
  }
  for (j = 0; j < lastpr; ++j)
    printf("%2i ", arr3[i * ncols2 + j]);
  printf("\n");
  free(arr);
  free(arr2);
  free(arr3);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x20,-0x1c(%rbp)
movl   $0x4,-0x20(%rbp)
movl   $0x8,-0x24(%rbp)
mov    $0x80,%edi
call   1050 <malloc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    11d3 <main+0xa3>
movl   $0x0,-0x18(%rbp)
cmpl   $0x4,-0x18(%rbp)
jge    11c0 <main+0x90>
mov    -0x14(%rbp),%edx
shl    $0x2,%edx
add    -0x18(%rbp),%edx
mov    -0x30(%rbp),%rax
mov    -0x34(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x34(%rbp)
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    118a <main+0x5a>
jmp    11c5 <main+0x95>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1177 <main+0x47>
lea    0xe26(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x20,-0x14(%rbp)
jge    1219 <main+0xe9>
mov    -0x30(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xe27(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11e8 <main+0xb8>
lea    0xe99(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe01(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    12a7 <main+0x177>
movl   $0x0,-0x14(%rbp)
cmpl   $0x4,-0x14(%rbp)
jge    128b <main+0x15b>
mov    -0x30(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    -0x14(%rbp),%edx
imul   -0x24(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%esi
lea    0xdb5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    124f <main+0x11f>
lea    0xe27(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    123c <main+0x10c>
movl   $0x0,-0x34(%rbp)
mov    $0x80,%edi
call   1050 <malloc@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    132a <main+0x1fa>
movl   $0x0,-0x14(%rbp)
cmpl   $0x4,-0x14(%rbp)
jge    1317 <main+0x1e7>
mov    -0x30(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    -0x24(%rbp),%edx
imul   -0x14(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x40(%rbp),%rax
mov    -0x18(%rbp),%ecx
shl    $0x2,%ecx
add    -0x14(%rbp),%ecx
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12d6 <main+0x1a6>
jmp    131c <main+0x1ec>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12c3 <main+0x193>
lea    0xd2f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x20,-0x14(%rbp)
jge    1370 <main+0x240>
mov    -0x40(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xcd0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    133f <main+0x20f>
lea    0xd42(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x80,%edi
call   1050 <malloc@plt>
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    13f8 <main+0x2c8>
movl   $0x0,-0x18(%rbp)
cmpl   $0x4,-0x18(%rbp)
jge    13e5 <main+0x2b5>
mov    -0x40(%rbp),%rax
mov    -0x14(%rbp),%ecx
shl    $0x2,%ecx
add    -0x18(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x48(%rbp),%rax
mov    -0x18(%rbp),%ecx
imul   -0x24(%rbp),%ecx
add    -0x14(%rbp),%ecx
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    13a6 <main+0x276>
jmp    13ea <main+0x2ba>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1393 <main+0x263>
lea    0xc98(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x20,-0x14(%rbp)
jge    143e <main+0x30e>
mov    -0x48(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xc02(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    140d <main+0x2dd>
lea    0xc74(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0xc,-0x4c(%rbp)
mov    $0x20,%eax
cltd
idivl  -0x4c(%rbp)
mov    %eax,-0x50(%rbp)
mov    $0x20,%eax
cltd
idivl  -0x4c(%rbp)
mov    %edx,-0x54(%rbp)
lea    0xc2c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    14eb <main+0x3bb>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x4c(%rbp),%eax
jge    14cf <main+0x39f>
mov    -0x48(%rbp),%rax
mov    -0x14(%rbp),%ecx
imul   -0x4c(%rbp),%ecx
add    -0x18(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%esi
lea    0xc01(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1493 <main+0x363>
lea    0xbe3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1480 <main+0x350>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x54(%rbp),%eax
jge    152e <main+0x3fe>
mov    -0x48(%rbp),%rax
mov    -0x14(%rbp),%ecx
imul   -0x4c(%rbp),%ecx
add    -0x18(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%esi
lea    0xba2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    14f2 <main+0x3c2>
lea    0xb84(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    $0x80,%edi
call   1070 <malloc@plt>
mov    %rax,%r15
movaps 0xe94(%rip),%xmm0
movups %xmm0,(%rax)
movaps 0xe9a(%rip),%xmm0
movups %xmm0,0x10(%rax)
movaps 0xe9f(%rip),%xmm0
movups %xmm0,0x20(%rax)
movaps 0xea4(%rip),%xmm0
movups %xmm0,0x30(%rax)
movaps 0xea9(%rip),%xmm0
movups %xmm0,0x40(%rax)
movaps 0xeae(%rip),%xmm0
movups %xmm0,0x50(%rax)
movaps 0xeb3(%rip),%xmm0
movups %xmm0,0x60(%rax)
movaps 0xeb8(%rip),%xmm0
movups %xmm0,0x70(%rax)
lea    0xec6(%rip),%rdi
call   1050 <puts@plt>
mov    (%r15),%esi
lea    0xeae(%rip),%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x4(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x8(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0xc(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x10(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x14(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x18(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x1c(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x20(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x24(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x28(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x2c(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x30(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x34(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x38(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x3c(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x40(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x44(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x48(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x4c(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x50(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x54(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x58(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x5c(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x60(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x64(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x68(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x6c(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x70(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x74(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x78(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x7c(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    0xd14(%rip),%rdi
call   1050 <puts@plt>
mov    (%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x20(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x40(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x60(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    0x4(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x24(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x44(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x64(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    0x8(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x28(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x48(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x68(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    0xc(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x2c(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x4c(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x6c(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    0x10(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x30(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x50(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x70(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    0x14(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x34(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x54(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x74(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    0x18(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x38(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x58(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x78(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    0x1c(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x3c(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x5c(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x7c(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    $0x80,%edi
call   1070 <malloc@plt>
mov    %rax,%r12
mov    (%r15),%eax
mov    %eax,(%r12)
mov    0x20(%r15),%eax
mov    %eax,0x4(%r12)
mov    0x40(%r15),%eax
mov    %eax,0x8(%r12)
mov    0x60(%r15),%eax
mov    %eax,0xc(%r12)
mov    0x4(%r15),%eax
mov    %eax,0x10(%r12)
mov    0x24(%r15),%eax
mov    %eax,0x14(%r12)
mov    0x44(%r15),%eax
mov    %eax,0x18(%r12)
mov    0x64(%r15),%eax
mov    %eax,0x1c(%r12)
mov    0x8(%r15),%eax
mov    %eax,0x20(%r12)
mov    0x28(%r15),%eax
mov    %eax,0x24(%r12)
mov    0x48(%r15),%eax
mov    %eax,0x28(%r12)
mov    0x68(%r15),%eax
mov    %eax,0x2c(%r12)
mov    0xc(%r15),%eax
mov    %eax,0x30(%r12)
mov    0x2c(%r15),%eax
mov    %eax,0x34(%r12)
mov    0x4c(%r15),%eax
mov    %eax,0x38(%r12)
mov    0x6c(%r15),%eax
mov    %eax,0x3c(%r12)
mov    0x10(%r15),%eax
mov    %eax,0x40(%r12)
mov    0x30(%r15),%eax
mov    %eax,0x44(%r12)
mov    0x50(%r15),%eax
mov    %eax,0x48(%r12)
mov    0x70(%r15),%eax
mov    %eax,0x4c(%r12)
mov    0x14(%r15),%eax
mov    %eax,0x50(%r12)
mov    0x34(%r15),%eax
mov    %eax,0x54(%r12)
mov    0x54(%r15),%eax
mov    %eax,0x58(%r12)
mov    0x74(%r15),%eax
mov    %eax,0x5c(%r12)
mov    0x18(%r15),%eax
mov    %eax,0x60(%r12)
mov    0x38(%r15),%eax
mov    %eax,0x64(%r12)
mov    0x58(%r15),%eax
mov    %eax,0x68(%r12)
mov    0x78(%r15),%eax
mov    %eax,0x6c(%r12)
mov    0x1c(%r15),%eax
mov    %eax,0x70(%r12)
mov    0x3c(%r15),%eax
mov    %eax,0x74(%r12)
mov    0x5c(%r15),%eax
mov    %eax,0x78(%r12)
mov    0x7c(%r15),%eax
mov    %eax,0x7c(%r12)
lea    0x9fe(%rip),%rdi
call   1050 <puts@plt>
mov    (%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x4(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x8(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0xc(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x10(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x14(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x18(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x1c(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x20(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x24(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x28(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x2c(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x30(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x34(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x38(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x3c(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x40(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x44(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x48(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x4c(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x50(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x54(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x58(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x5c(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x60(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x64(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x68(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x6c(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x70(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x74(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x78(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x7c(%r12),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    $0x80,%edi
call   1070 <malloc@plt>
mov    %rax,%rbx
mov    (%r12),%eax
mov    %eax,(%rbx)
mov    0x4(%r12),%eax
mov    %eax,0x20(%rbx)
mov    0x8(%r12),%eax
mov    %eax,0x40(%rbx)
mov    0xc(%r12),%eax
mov    %eax,0x60(%rbx)
mov    0x10(%r12),%eax
mov    %eax,0x4(%rbx)
mov    0x14(%r12),%eax
mov    %eax,0x24(%rbx)
mov    0x18(%r12),%eax
mov    %eax,0x44(%rbx)
mov    0x1c(%r12),%eax
mov    %eax,0x64(%rbx)
mov    0x20(%r12),%eax
mov    %eax,0x8(%rbx)
mov    0x24(%r12),%eax
mov    %eax,0x28(%rbx)
mov    0x28(%r12),%eax
mov    %eax,0x48(%rbx)
mov    0x2c(%r12),%eax
mov    %eax,0x68(%rbx)
mov    0x30(%r12),%eax
mov    %eax,0xc(%rbx)
mov    0x34(%r12),%eax
mov    %eax,0x2c(%rbx)
mov    0x38(%r12),%eax
mov    %eax,0x4c(%rbx)
mov    0x3c(%r12),%eax
mov    %eax,0x6c(%rbx)
mov    0x40(%r12),%eax
mov    %eax,0x10(%rbx)
mov    0x44(%r12),%eax
mov    %eax,0x30(%rbx)
mov    0x48(%r12),%eax
mov    %eax,0x50(%rbx)
mov    0x4c(%r12),%eax
mov    %eax,0x70(%rbx)
mov    0x50(%r12),%eax
mov    %eax,0x14(%rbx)
mov    0x54(%r12),%eax
mov    %eax,0x34(%rbx)
mov    0x58(%r12),%eax
mov    %eax,0x54(%rbx)
mov    0x5c(%r12),%eax
mov    %eax,0x74(%rbx)
mov    0x60(%r12),%eax
mov    %eax,0x18(%rbx)
mov    0x64(%r12),%eax
mov    %eax,0x38(%rbx)
mov    0x68(%r12),%eax
mov    %eax,0x58(%rbx)
mov    0x6c(%r12),%eax
mov    %eax,0x78(%rbx)
mov    0x70(%r12),%eax
mov    %eax,0x1c(%rbx)
mov    0x74(%r12),%eax
mov    %eax,0x3c(%rbx)
mov    0x78(%r12),%eax
mov    %eax,0x5c(%rbx)
mov    0x7c(%r12),%eax
mov    %eax,0x7c(%rbx)
lea    0x734(%rip),%rdi
call   1050 <puts@plt>
mov    (%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x4(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x8(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0xc(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x10(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x14(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x18(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x1c(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x20(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x24(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x28(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x2c(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x30(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x34(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x38(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x3c(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x40(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x44(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x48(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x4c(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x50(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x54(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x58(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x5c(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x60(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x64(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x68(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x6c(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x70(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x74(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x78(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x7c(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    0x585(%rip),%rdi
call   1050 <puts@plt>
mov    (%rbx),%esi
lea    0x4dc(%rip),%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x4(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x8(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0xc(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x10(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x14(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x18(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x1c(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x20(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x24(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x28(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x2c(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    0x30(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x34(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x38(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x3c(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x40(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x44(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x48(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x4c(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x50(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x54(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x58(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x5c(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    0x60(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x64(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x68(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x6c(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x70(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x74(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x78(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x7c(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [43 x i8] c"1D progression is the same in both cases:\0A\00"
@.str.1 = [4 x i8] c"%i \00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [49 x i8] c"Except that, in 2D, column-major looks like so:\0A\00"
@.str.4 = [55 x i8] c"So naive mapping to 1D, column-major looks like this:\0A\00"
@.str.5 = [7 x i8] c"Arr3:\0A\00"
@.str.6 = [29 x i8] c"How the new array looks ...\0A\00"
@.str.7 = [5 x i8] c"%2i \00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32*
%12 = alloca i32
%13 = alloca i32*
%14 = alloca i32*
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 32, i32* %8
store i32 4, i32* %9
store i32 8, i32* %10
%18 = call i32* @malloc(i32 128)
store i32* %18, i32** %11
store i32 0, i32* %12
store i32 0, i32* %6
br label %19
19: ; preds = %41, %2
%20 = load i32, i32* %6
%21 = load i32, i32* %10
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %44
23: ; preds = %19
store i32 0, i32* %7
br label %24
24: ; preds = %37, %23
%25 = load i32, i32* %7
%26 = icmp slt i32 %25, 4
br i1 %26, label %27, label %40
27: ; preds = %24
%28 = load i32, i32* %6
%29 = mul nsw i32 %28, 4
%30 = load i32, i32* %7
%31 = add nsw i32 %29, %30
%32 = load i32*, i32** %11
%33 = load i32, i32* %12
%34 = add nsw i32 %33, 1
store i32 %34, i32* %12
%35 = sext i32 %33 to i64
%36 = getelementptr inbounds i32, i32* %32, i64 %35
store i32 %31, i32* %36
br label %37
37: ; preds = %27
%38 = load i32, i32* %7
%39 = add nsw i32 %38, 1
store i32 %39, i32* %7
br label %24
40: ; preds = %24
br label %41
41: ; preds = %40
%42 = load i32, i32* %6
%43 = add nsw i32 %42, 1
store i32 %43, i32* %6
br label %19
44: ; preds = %19
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %6
br label %46
46: ; preds = %56, %44
%47 = load i32, i32* %6
%48 = icmp slt i32 %47, 32
br i1 %48, label %49, label %59
49: ; preds = %46
%50 = load i32*, i32** %11
%51 = load i32, i32* %6
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i32, i32* %50, i64 %52
%54 = load i32, i32* %53
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %54)
br label %56
56: ; preds = %49
%57 = load i32, i32* %6
%58 = add nsw i32 %57, 1
store i32 %58, i32* %6
br label %46
59: ; preds = %46
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %7
br label %62
62: ; preds = %86, %59
%63 = load i32, i32* %7
%64 = load i32, i32* %10
%65 = icmp slt i32 %63, %64
br i1 %65, label %66, label %89
66: ; preds = %62
store i32 0, i32* %6
br label %67
67: ; preds = %81, %66
%68 = load i32, i32* %6
%69 = icmp slt i32 %68, 4
br i1 %69, label %70, label %84
70: ; preds = %67
%71 = load i32*, i32** %11
%72 = load i32, i32* %7
%73 = load i32, i32* %6
%74 = load i32, i32* %10
%75 = mul nsw i32 %73, %74
%76 = add nsw i32 %72, %75
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i32, i32* %71, i64 %77
%79 = load i32, i32* %78
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %79)
br label %81
81: ; preds = %70
%82 = load i32, i32* %6
%83 = add nsw i32 %82, 1
store i32 %83, i32* %6
br label %67
84: ; preds = %67
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %86
86: ; preds = %84
%87 = load i32, i32* %7
%88 = add nsw i32 %87, 1
store i32 %88, i32* %7
br label %62
89: ; preds = %62
store i32 0, i32* %12
%90 = call i32* @malloc(i32 128)
store i32* %90, i32** %13
store i32 0, i32* %7
br label %91
91: ; preds = %120, %89
%92 = load i32, i32* %7
%93 = load i32, i32* %10
%94 = icmp slt i32 %92, %93
br i1 %94, label %95, label %123
95: ; preds = %91
store i32 0, i32* %6
br label %96
96: ; preds = %116, %95
%97 = load i32, i32* %6
%98 = icmp slt i32 %97, 4
br i1 %98, label %99, label %119
99: ; preds = %96
%100 = load i32*, i32** %11
%101 = load i32, i32* %7
%102 = load i32, i32* %10
%103 = load i32, i32* %6
%104 = mul nsw i32 %102, %103
%105 = add nsw i32 %101, %104
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i32, i32* %100, i64 %106
%108 = load i32, i32* %107
%109 = load i32*, i32** %13
%110 = load i32, i32* %7
%111 = mul nsw i32 %110, 4
%112 = load i32, i32* %6
%113 = add nsw i32 %111, %112
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds i32, i32* %109, i64 %114
store i32 %108, i32* %115
br label %116
116: ; preds = %99
%117 = load i32, i32* %6
%118 = add nsw i32 %117, 1
store i32 %118, i32* %6
br label %96
119: ; preds = %96
br label %120
120: ; preds = %119
%121 = load i32, i32* %7
%122 = add nsw i32 %121, 1
store i32 %122, i32* %7
br label %91
123: ; preds = %91
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %6
br label %125
125: ; preds = %135, %123
%126 = load i32, i32* %6
%127 = icmp slt i32 %126, 32
br i1 %127, label %128, label %138
128: ; preds = %125
%129 = load i32*, i32** %13
%130 = load i32, i32* %6
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds i32, i32* %129, i64 %131
%133 = load i32, i32* %132
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %133)
br label %135
135: ; preds = %128
%136 = load i32, i32* %6
%137 = add nsw i32 %136, 1
store i32 %137, i32* %6
br label %125
138: ; preds = %125
%139 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%140 = call i32* @malloc(i32 128)
store i32* %140, i32** %14
store i32 0, i32* %6
br label %141
141: ; preds = %170, %138
%142 = load i32, i32* %6
%143 = load i32, i32* %10
%144 = icmp slt i32 %142, %143
br i1 %144, label %145, label %173
145: ; preds = %141
store i32 0, i32* %7
br label %146
146: ; preds = %166, %145
%147 = load i32, i32* %7
%148 = icmp slt i32 %147, 4
br i1 %148, label %149, label %169
149: ; preds = %146
%150 = load i32*, i32** %13
%151 = load i32, i32* %6
%152 = mul nsw i32 %151, 4
%153 = load i32, i32* %7
%154 = add nsw i32 %152, %153
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds i32, i32* %150, i64 %155
%157 = load i32, i32* %156
%158 = load i32*, i32** %14
%159 = load i32, i32* %7
%160 = load i32, i32* %10
%161 = mul nsw i32 %159, %160
%162 = load i32, i32* %6
%163 = add nsw i32 %161, %162
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds i32, i32* %158, i64 %164
store i32 %157, i32* %165
br label %166
166: ; preds = %149
%167 = load i32, i32* %7
%168 = add nsw i32 %167, 1
store i32 %168, i32* %7
br label %146
169: ; preds = %146
br label %170
170: ; preds = %169
%171 = load i32, i32* %6
%172 = add nsw i32 %171, 1
store i32 %172, i32* %6
br label %141
173: ; preds = %141
%174 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %6
br label %175
175: ; preds = %185, %173
%176 = load i32, i32* %6
%177 = icmp slt i32 %176, 32
br i1 %177, label %178, label %188
178: ; preds = %175
%179 = load i32*, i32** %14
%180 = load i32, i32* %6
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds i32, i32* %179, i64 %181
%183 = load i32, i32* %182
%184 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %183)
br label %185
185: ; preds = %178
%186 = load i32, i32* %6
%187 = add nsw i32 %186, 1
store i32 %187, i32* %6
br label %175
188: ; preds = %175
%189 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32 12, i32* %15
%190 = load i32, i32* %15
%191 = sdiv i32 32, %190
store i32 %191, i32* %16
%192 = load i32, i32* %15
%193 = srem i32 32, %192
store i32 %193, i32* %17
%194 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %6
br label %195
195: ; preds = %220, %188
%196 = load i32, i32* %6
%197 = load i32, i32* %16
%198 = icmp slt i32 %196, %197
br i1 %198, label %199, label %223
199: ; preds = %195
store i32 0, i32* %7
br label %200
200: ; preds = %215, %199
%201 = load i32, i32* %7
%202 = load i32, i32* %15
%203 = icmp slt i32 %201, %202
br i1 %203, label %204, label %218
204: ; preds = %200
%205 = load i32*, i32** %14
%206 = load i32, i32* %6
%207 = load i32, i32* %15
%208 = mul nsw i32 %206, %207
%209 = load i32, i32* %7
%210 = add nsw i32 %208, %209
%211 = sext i32 %210 to i64
%212 = getelementptr inbounds i32, i32* %205, i64 %211
%213 = load i32, i32* %212
%214 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %213)
br label %215
215: ; preds = %204
%216 = load i32, i32* %7
%217 = add nsw i32 %216, 1
store i32 %217, i32* %7
br label %200
218: ; preds = %200
%219 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %220
220: ; preds = %218
%221 = load i32, i32* %6
%222 = add nsw i32 %221, 1
store i32 %222, i32* %6
br label %195
223: ; preds = %195
store i32 0, i32* %7
br label %224
224: ; preds = %239, %223
%225 = load i32, i32* %7
%226 = load i32, i32* %17
%227 = icmp slt i32 %225, %226
br i1 %227, label %228, label %242
228: ; preds = %224
%229 = load i32*, i32** %14
%230 = load i32, i32* %6
%231 = load i32, i32* %15
%232 = mul nsw i32 %230, %231
%233 = load i32, i32* %7
%234 = add nsw i32 %232, %233
%235 = sext i32 %234 to i64
%236 = getelementptr inbounds i32, i32* %229, i64 %235
%237 = load i32, i32* %236
%238 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %237)
br label %239
239: ; preds = %228
%240 = load i32, i32* %7
%241 = add nsw i32 %240, 1
store i32 %241, i32* %7
br label %224
242: ; preds = %224
%243 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%244 = load i32*, i32** %11
%245 = call i32 @free(i32* %244)
%246 = load i32*, i32** %13
%247 = call i32 @free(i32* %246)
%248 = load i32*, i32** %14
%249 = call i32 @free(i32* %248)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [4 x i8] c"%i \00"
@.str.7 = [5 x i8] c"%2i \00"
@str = [42 x i8] c"1D progression is the same in both cases:\00"
@str.8 = [48 x i8] c"Except that, in 2D, column-major looks like so:\00"
@str.9 = [54 x i8] c"So naive mapping to 1D, column-major looks like this:\00"
@str.10 = [6 x i8] c"Arr3:\00"
@str.11 = [28 x i8] c"How the new array looks ...\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32* @malloc(i32 128)
%4 = getelementptr inbounds i32, i32* %3, i64 1
%5 = getelementptr inbounds i32, i32* %3, i64 2
%6 = getelementptr inbounds i32, i32* %3, i64 3
%7 = bitcast i32* %3 to <4 x i32>*
store <4 x i32> <i32 0, i32 1, i32 2, i32 3>, <4 x i32>* %7
%8 = getelementptr inbounds i32, i32* %3, i64 4
%9 = getelementptr inbounds i32, i32* %3, i64 5
%10 = getelementptr inbounds i32, i32* %3, i64 6
%11 = getelementptr inbounds i32, i32* %3, i64 7
%12 = bitcast i32* %8 to <4 x i32>*
store <4 x i32> <i32 4, i32 5, i32 6, i32 7>, <4 x i32>* %12
%13 = getelementptr inbounds i32, i32* %3, i64 8
%14 = getelementptr inbounds i32, i32* %3, i64 9
%15 = getelementptr inbounds i32, i32* %3, i64 10
%16 = getelementptr inbounds i32, i32* %3, i64 11
%17 = bitcast i32* %13 to <4 x i32>*
store <4 x i32> <i32 8, i32 9, i32 10, i32 11>, <4 x i32>* %17
%18 = getelementptr inbounds i32, i32* %3, i64 12
%19 = getelementptr inbounds i32, i32* %3, i64 13
%20 = getelementptr inbounds i32, i32* %3, i64 14
%21 = getelementptr inbounds i32, i32* %3, i64 15
%22 = bitcast i32* %18 to <4 x i32>*
store <4 x i32> <i32 12, i32 13, i32 14, i32 15>, <4 x i32>* %22
%23 = getelementptr inbounds i32, i32* %3, i64 16
%24 = getelementptr inbounds i32, i32* %3, i64 17
%25 = getelementptr inbounds i32, i32* %3, i64 18
%26 = getelementptr inbounds i32, i32* %3, i64 19
%27 = bitcast i32* %23 to <4 x i32>*
store <4 x i32> <i32 16, i32 17, i32 18, i32 19>, <4 x i32>* %27
%28 = getelementptr inbounds i32, i32* %3, i64 20
%29 = getelementptr inbounds i32, i32* %3, i64 21
%30 = getelementptr inbounds i32, i32* %3, i64 22
%31 = getelementptr inbounds i32, i32* %3, i64 23
%32 = bitcast i32* %28 to <4 x i32>*
store <4 x i32> <i32 20, i32 21, i32 22, i32 23>, <4 x i32>* %32
%33 = getelementptr inbounds i32, i32* %3, i64 24
%34 = getelementptr inbounds i32, i32* %3, i64 25
%35 = getelementptr inbounds i32, i32* %3, i64 26
%36 = getelementptr inbounds i32, i32* %3, i64 27
%37 = bitcast i32* %33 to <4 x i32>*
store <4 x i32> <i32 24, i32 25, i32 26, i32 27>, <4 x i32>* %37
%38 = getelementptr inbounds i32, i32* %3, i64 28
%39 = getelementptr inbounds i32, i32* %3, i64 29
%40 = getelementptr inbounds i32, i32* %3, i64 30
%41 = getelementptr inbounds i32, i32* %3, i64 31
%42 = bitcast i32* %38 to <4 x i32>*
store <4 x i32> <i32 28, i32 29, i32 30, i32 31>, <4 x i32>* %42
%43 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str, i64 0, i64 0))
%44 = load i32, i32* %3
%45 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %44)
%46 = load i32, i32* %4
%47 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %46)
%48 = load i32, i32* %5
%49 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %48)
%50 = load i32, i32* %6
%51 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %50)
%52 = load i32, i32* %8
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %52)
%54 = load i32, i32* %9
%55 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %54)
%56 = load i32, i32* %10
%57 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %56)
%58 = load i32, i32* %11
%59 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %58)
%60 = load i32, i32* %13
%61 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %60)
%62 = load i32, i32* %14
%63 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %62)
%64 = load i32, i32* %15
%65 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %64)
%66 = load i32, i32* %16
%67 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %66)
%68 = load i32, i32* %18
%69 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %68)
%70 = load i32, i32* %19
%71 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %70)
%72 = load i32, i32* %20
%73 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %72)
%74 = load i32, i32* %21
%75 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %74)
%76 = load i32, i32* %23
%77 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %76)
%78 = load i32, i32* %24
%79 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %78)
%80 = load i32, i32* %25
%81 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %80)
%82 = load i32, i32* %26
%83 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %82)
%84 = load i32, i32* %28
%85 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %84)
%86 = load i32, i32* %29
%87 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %86)
%88 = load i32, i32* %30
%89 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %88)
%90 = load i32, i32* %31
%91 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %90)
%92 = load i32, i32* %33
%93 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %92)
%94 = load i32, i32* %34
%95 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %94)
%96 = load i32, i32* %35
%97 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %96)
%98 = load i32, i32* %36
%99 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %98)
%100 = load i32, i32* %38
%101 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %100)
%102 = load i32, i32* %39
%103 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %102)
%104 = load i32, i32* %40
%105 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %104)
%106 = load i32, i32* %41
%107 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %106)
%108 = tail call i32 @putchar(i32 10)
%109 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.8, i64 0, i64 0))
%110 = load i32, i32* %3
%111 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %110)
%112 = getelementptr inbounds i32, i32* %3, i64 8
%113 = load i32, i32* %112
%114 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %113)
%115 = getelementptr inbounds i32, i32* %3, i64 16
%116 = load i32, i32* %115
%117 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %116)
%118 = getelementptr inbounds i32, i32* %3, i64 24
%119 = load i32, i32* %118
%120 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %119)
%121 = tail call i32 @putchar(i32 10)
%122 = getelementptr inbounds i32, i32* %3, i64 1
%123 = load i32, i32* %122
%124 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %123)
%125 = getelementptr inbounds i32, i32* %3, i64 9
%126 = load i32, i32* %125
%127 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %126)
%128 = getelementptr inbounds i32, i32* %3, i64 17
%129 = load i32, i32* %128
%130 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %129)
%131 = getelementptr inbounds i32, i32* %3, i64 25
%132 = load i32, i32* %131
%133 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %132)
%134 = tail call i32 @putchar(i32 10)
%135 = getelementptr inbounds i32, i32* %3, i64 2
%136 = load i32, i32* %135
%137 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %136)
%138 = getelementptr inbounds i32, i32* %3, i64 10
%139 = load i32, i32* %138
%140 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %139)
%141 = getelementptr inbounds i32, i32* %3, i64 18
%142 = load i32, i32* %141
%143 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %142)
%144 = getelementptr inbounds i32, i32* %3, i64 26
%145 = load i32, i32* %144
%146 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %145)
%147 = tail call i32 @putchar(i32 10)
%148 = getelementptr inbounds i32, i32* %3, i64 3
%149 = load i32, i32* %148
%150 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %149)
%151 = getelementptr inbounds i32, i32* %3, i64 11
%152 = load i32, i32* %151
%153 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %152)
%154 = getelementptr inbounds i32, i32* %3, i64 19
%155 = load i32, i32* %154
%156 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %155)
%157 = getelementptr inbounds i32, i32* %3, i64 27
%158 = load i32, i32* %157
%159 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %158)
%160 = tail call i32 @putchar(i32 10)
%161 = getelementptr inbounds i32, i32* %3, i64 4
%162 = load i32, i32* %161
%163 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %162)
%164 = getelementptr inbounds i32, i32* %3, i64 12
%165 = load i32, i32* %164
%166 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %165)
%167 = getelementptr inbounds i32, i32* %3, i64 20
%168 = load i32, i32* %167
%169 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %168)
%170 = getelementptr inbounds i32, i32* %3, i64 28
%171 = load i32, i32* %170
%172 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %171)
%173 = tail call i32 @putchar(i32 10)
%174 = getelementptr inbounds i32, i32* %3, i64 5
%175 = load i32, i32* %174
%176 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %175)
%177 = getelementptr inbounds i32, i32* %3, i64 13
%178 = load i32, i32* %177
%179 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %178)
%180 = getelementptr inbounds i32, i32* %3, i64 21
%181 = load i32, i32* %180
%182 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %181)
%183 = getelementptr inbounds i32, i32* %3, i64 29
%184 = load i32, i32* %183
%185 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %184)
%186 = tail call i32 @putchar(i32 10)
%187 = getelementptr inbounds i32, i32* %3, i64 6
%188 = load i32, i32* %187
%189 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %188)
%190 = getelementptr inbounds i32, i32* %3, i64 14
%191 = load i32, i32* %190
%192 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %191)
%193 = getelementptr inbounds i32, i32* %3, i64 22
%194 = load i32, i32* %193
%195 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %194)
%196 = getelementptr inbounds i32, i32* %3, i64 30
%197 = load i32, i32* %196
%198 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %197)
%199 = tail call i32 @putchar(i32 10)
%200 = getelementptr inbounds i32, i32* %3, i64 7
%201 = load i32, i32* %200
%202 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %201)
%203 = getelementptr inbounds i32, i32* %3, i64 15
%204 = load i32, i32* %203
%205 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %204)
%206 = getelementptr inbounds i32, i32* %3, i64 23
%207 = load i32, i32* %206
%208 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %207)
%209 = getelementptr inbounds i32, i32* %3, i64 31
%210 = load i32, i32* %209
%211 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %210)
%212 = tail call i32 @putchar(i32 10)
%213 = tail call i32* @malloc(i32 128)
%214 = load i32, i32* %3
store i32 %214, i32* %213
%215 = load i32, i32* %13
%216 = getelementptr inbounds i32, i32* %213, i64 1
store i32 %215, i32* %216
%217 = load i32, i32* %23
%218 = getelementptr inbounds i32, i32* %213, i64 2
store i32 %217, i32* %218
%219 = load i32, i32* %33
%220 = getelementptr inbounds i32, i32* %213, i64 3
store i32 %219, i32* %220
%221 = load i32, i32* %4
%222 = getelementptr inbounds i32, i32* %213, i64 4
store i32 %221, i32* %222
%223 = load i32, i32* %14
%224 = getelementptr inbounds i32, i32* %213, i64 5
store i32 %223, i32* %224
%225 = load i32, i32* %24
%226 = getelementptr inbounds i32, i32* %213, i64 6
store i32 %225, i32* %226
%227 = load i32, i32* %34
%228 = getelementptr inbounds i32, i32* %213, i64 7
store i32 %227, i32* %228
%229 = load i32, i32* %5
%230 = getelementptr inbounds i32, i32* %213, i64 8
store i32 %229, i32* %230
%231 = load i32, i32* %15
%232 = getelementptr inbounds i32, i32* %213, i64 9
store i32 %231, i32* %232
%233 = load i32, i32* %25
%234 = getelementptr inbounds i32, i32* %213, i64 10
store i32 %233, i32* %234
%235 = load i32, i32* %35
%236 = getelementptr inbounds i32, i32* %213, i64 11
store i32 %235, i32* %236
%237 = load i32, i32* %6
%238 = getelementptr inbounds i32, i32* %213, i64 12
store i32 %237, i32* %238
%239 = load i32, i32* %16
%240 = getelementptr inbounds i32, i32* %213, i64 13
store i32 %239, i32* %240
%241 = load i32, i32* %26
%242 = getelementptr inbounds i32, i32* %213, i64 14
store i32 %241, i32* %242
%243 = load i32, i32* %36
%244 = getelementptr inbounds i32, i32* %213, i64 15
store i32 %243, i32* %244
%245 = load i32, i32* %8
%246 = getelementptr inbounds i32, i32* %213, i64 16
store i32 %245, i32* %246
%247 = load i32, i32* %18
%248 = getelementptr inbounds i32, i32* %213, i64 17
store i32 %247, i32* %248
%249 = load i32, i32* %28
%250 = getelementptr inbounds i32, i32* %213, i64 18
store i32 %249, i32* %250
%251 = load i32, i32* %38
%252 = getelementptr inbounds i32, i32* %213, i64 19
store i32 %251, i32* %252
%253 = load i32, i32* %9
%254 = getelementptr inbounds i32, i32* %213, i64 20
store i32 %253, i32* %254
%255 = load i32, i32* %19
%256 = getelementptr inbounds i32, i32* %213, i64 21
store i32 %255, i32* %256
%257 = load i32, i32* %29
%258 = getelementptr inbounds i32, i32* %213, i64 22
store i32 %257, i32* %258
%259 = load i32, i32* %39
%260 = getelementptr inbounds i32, i32* %213, i64 23
store i32 %259, i32* %260
%261 = load i32, i32* %10
%262 = getelementptr inbounds i32, i32* %213, i64 24
store i32 %261, i32* %262
%263 = load i32, i32* %20
%264 = getelementptr inbounds i32, i32* %213, i64 25
store i32 %263, i32* %264
%265 = load i32, i32* %30
%266 = getelementptr inbounds i32, i32* %213, i64 26
store i32 %265, i32* %266
%267 = load i32, i32* %40
%268 = getelementptr inbounds i32, i32* %213, i64 27
store i32 %267, i32* %268
%269 = load i32, i32* %11
%270 = getelementptr inbounds i32, i32* %213, i64 28
store i32 %269, i32* %270
%271 = load i32, i32* %21
%272 = getelementptr inbounds i32, i32* %213, i64 29
store i32 %271, i32* %272
%273 = load i32, i32* %31
%274 = getelementptr inbounds i32, i32* %213, i64 30
store i32 %273, i32* %274
%275 = load i32, i32* %41
%276 = getelementptr inbounds i32, i32* %213, i64 31
store i32 %275, i32* %276
%277 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.9, i64 0, i64 0))
%278 = load i32, i32* %213
%279 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %278)
%280 = load i32, i32* %216
%281 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %280)
%282 = load i32, i32* %218
%283 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %282)
%284 = load i32, i32* %220
%285 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %284)
%286 = load i32, i32* %222
%287 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %286)
%288 = load i32, i32* %224
%289 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %288)
%290 = load i32, i32* %226
%291 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %290)
%292 = load i32, i32* %228
%293 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %292)
%294 = load i32, i32* %230
%295 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %294)
%296 = load i32, i32* %232
%297 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %296)
%298 = load i32, i32* %234
%299 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %298)
%300 = load i32, i32* %236
%301 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %300)
%302 = load i32, i32* %238
%303 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %302)
%304 = load i32, i32* %240
%305 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %304)
%306 = load i32, i32* %242
%307 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %306)
%308 = load i32, i32* %244
%309 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %308)
%310 = load i32, i32* %246
%311 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %310)
%312 = load i32, i32* %248
%313 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %312)
%314 = load i32, i32* %250
%315 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %314)
%316 = load i32, i32* %252
%317 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %316)
%318 = load i32, i32* %254
%319 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %318)
%320 = load i32, i32* %256
%321 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %320)
%322 = load i32, i32* %258
%323 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %322)
%324 = load i32, i32* %260
%325 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %324)
%326 = load i32, i32* %262
%327 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %326)
%328 = load i32, i32* %264
%329 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %328)
%330 = load i32, i32* %266
%331 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %330)
%332 = load i32, i32* %268
%333 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %332)
%334 = load i32, i32* %270
%335 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %334)
%336 = load i32, i32* %272
%337 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %336)
%338 = load i32, i32* %274
%339 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %338)
%340 = load i32, i32* %276
%341 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %340)
%342 = tail call i32 @putchar(i32 10)
%343 = tail call i32* @malloc(i32 128)
%344 = load i32, i32* %213
store i32 %344, i32* %343
%345 = load i32, i32* %216
%346 = getelementptr inbounds i32, i32* %343, i64 8
store i32 %345, i32* %346
%347 = load i32, i32* %218
%348 = getelementptr inbounds i32, i32* %343, i64 16
store i32 %347, i32* %348
%349 = load i32, i32* %220
%350 = getelementptr inbounds i32, i32* %343, i64 24
store i32 %349, i32* %350
%351 = load i32, i32* %222
%352 = getelementptr inbounds i32, i32* %343, i64 1
store i32 %351, i32* %352
%353 = load i32, i32* %224
%354 = getelementptr inbounds i32, i32* %343, i64 9
store i32 %353, i32* %354
%355 = load i32, i32* %226
%356 = getelementptr inbounds i32, i32* %343, i64 17
store i32 %355, i32* %356
%357 = load i32, i32* %228
%358 = getelementptr inbounds i32, i32* %343, i64 25
store i32 %357, i32* %358
%359 = load i32, i32* %230
%360 = getelementptr inbounds i32, i32* %343, i64 2
store i32 %359, i32* %360
%361 = load i32, i32* %232
%362 = getelementptr inbounds i32, i32* %343, i64 10
store i32 %361, i32* %362
%363 = load i32, i32* %234
%364 = getelementptr inbounds i32, i32* %343, i64 18
store i32 %363, i32* %364
%365 = load i32, i32* %236
%366 = getelementptr inbounds i32, i32* %343, i64 26
store i32 %365, i32* %366
%367 = load i32, i32* %238
%368 = getelementptr inbounds i32, i32* %343, i64 3
store i32 %367, i32* %368
%369 = load i32, i32* %240
%370 = getelementptr inbounds i32, i32* %343, i64 11
store i32 %369, i32* %370
%371 = load i32, i32* %242
%372 = getelementptr inbounds i32, i32* %343, i64 19
store i32 %371, i32* %372
%373 = load i32, i32* %244
%374 = getelementptr inbounds i32, i32* %343, i64 27
store i32 %373, i32* %374
%375 = load i32, i32* %246
%376 = getelementptr inbounds i32, i32* %343, i64 4
store i32 %375, i32* %376
%377 = load i32, i32* %248
%378 = getelementptr inbounds i32, i32* %343, i64 12
store i32 %377, i32* %378
%379 = load i32, i32* %250
%380 = getelementptr inbounds i32, i32* %343, i64 20
store i32 %379, i32* %380
%381 = load i32, i32* %252
%382 = getelementptr inbounds i32, i32* %343, i64 28
store i32 %381, i32* %382
%383 = load i32, i32* %254
%384 = getelementptr inbounds i32, i32* %343, i64 5
store i32 %383, i32* %384
%385 = load i32, i32* %256
%386 = getelementptr inbounds i32, i32* %343, i64 13
store i32 %385, i32* %386
%387 = load i32, i32* %258
%388 = getelementptr inbounds i32, i32* %343, i64 21
store i32 %387, i32* %388
%389 = load i32, i32* %260
%390 = getelementptr inbounds i32, i32* %343, i64 29
store i32 %389, i32* %390
%391 = load i32, i32* %262
%392 = getelementptr inbounds i32, i32* %343, i64 6
store i32 %391, i32* %392
%393 = load i32, i32* %264
%394 = getelementptr inbounds i32, i32* %343, i64 14
store i32 %393, i32* %394
%395 = load i32, i32* %266
%396 = getelementptr inbounds i32, i32* %343, i64 22
store i32 %395, i32* %396
%397 = load i32, i32* %268
%398 = getelementptr inbounds i32, i32* %343, i64 30
store i32 %397, i32* %398
%399 = load i32, i32* %270
%400 = getelementptr inbounds i32, i32* %343, i64 7
store i32 %399, i32* %400
%401 = load i32, i32* %272
%402 = getelementptr inbounds i32, i32* %343, i64 15
store i32 %401, i32* %402
%403 = load i32, i32* %274
%404 = getelementptr inbounds i32, i32* %343, i64 23
store i32 %403, i32* %404
%405 = load i32, i32* %276
%406 = getelementptr inbounds i32, i32* %343, i64 31
store i32 %405, i32* %406
%407 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.10, i64 0, i64 0))
%408 = load i32, i32* %343
%409 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %408)
%410 = load i32, i32* %352
%411 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %410)
%412 = load i32, i32* %360
%413 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %412)
%414 = load i32, i32* %368
%415 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %414)
%416 = load i32, i32* %376
%417 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %416)
%418 = load i32, i32* %384
%419 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %418)
%420 = load i32, i32* %392
%421 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %420)
%422 = load i32, i32* %400
%423 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %422)
%424 = load i32, i32* %346
%425 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %424)
%426 = load i32, i32* %354
%427 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %426)
%428 = load i32, i32* %362
%429 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %428)
%430 = load i32, i32* %370
%431 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %430)
%432 = load i32, i32* %378
%433 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %432)
%434 = load i32, i32* %386
%435 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %434)
%436 = load i32, i32* %394
%437 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %436)
%438 = load i32, i32* %402
%439 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %438)
%440 = load i32, i32* %348
%441 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %440)
%442 = load i32, i32* %356
%443 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %442)
%444 = load i32, i32* %364
%445 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %444)
%446 = load i32, i32* %372
%447 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %446)
%448 = load i32, i32* %380
%449 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %448)
%450 = load i32, i32* %388
%451 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %450)
%452 = load i32, i32* %396
%453 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %452)
%454 = load i32, i32* %404
%455 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %454)
%456 = load i32, i32* %350
%457 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %456)
%458 = load i32, i32* %358
%459 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %458)
%460 = load i32, i32* %366
%461 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %460)
%462 = load i32, i32* %374
%463 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %462)
%464 = load i32, i32* %382
%465 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %464)
%466 = load i32, i32* %390
%467 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %466)
%468 = load i32, i32* %398
%469 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %468)
%470 = load i32, i32* %406
%471 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %470)
%472 = tail call i32 @putchar(i32 10)
%473 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.11, i64 0, i64 0))
%474 = load i32, i32* %343
%475 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %474)
%476 = load i32, i32* %352
%477 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %476)
%478 = load i32, i32* %360
%479 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %478)
%480 = load i32, i32* %368
%481 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %480)
%482 = load i32, i32* %376
%483 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %482)
%484 = load i32, i32* %384
%485 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %484)
%486 = load i32, i32* %392
%487 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %486)
%488 = load i32, i32* %400
%489 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %488)
%490 = load i32, i32* %346
%491 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %490)
%492 = load i32, i32* %354
%493 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %492)
%494 = load i32, i32* %362
%495 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %494)
%496 = load i32, i32* %370
%497 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %496)
%498 = tail call i32 @putchar(i32 10)
%499 = load i32, i32* %378
%500 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %499)
%501 = load i32, i32* %386
%502 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %501)
%503 = load i32, i32* %394
%504 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %503)
%505 = load i32, i32* %402
%506 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %505)
%507 = load i32, i32* %348
%508 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %507)
%509 = load i32, i32* %356
%510 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %509)
%511 = load i32, i32* %364
%512 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %511)
%513 = load i32, i32* %372
%514 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %513)
%515 = load i32, i32* %380
%516 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %515)
%517 = load i32, i32* %388
%518 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %517)
%519 = load i32, i32* %396
%520 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %519)
%521 = load i32, i32* %404
%522 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %521)
%523 = tail call i32 @putchar(i32 10)
%524 = load i32, i32* %350
%525 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %524)
%526 = load i32, i32* %358
%527 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %526)
%528 = load i32, i32* %366
%529 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %528)
%530 = load i32, i32* %374
%531 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %530)
%532 = load i32, i32* %382
%533 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %532)
%534 = load i32, i32* %390
%535 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %534)
%536 = load i32, i32* %398
%537 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %536)
%538 = load i32, i32* %406
%539 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %538)
%540 = tail call i32 @putchar(i32 10)
%541 = tail call i32 @free(i32* %3)
%542 = tail call i32 @free(i32* %213)
%543 = tail call i32 @free(i32* %343)
ret i32 0
}