#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 EXIT_SUCCESS;
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char const *argv[]) {
  printf("================================\n");
  printf("MULTIDIMENSIONAL ARRAYS\n");
  printf("================================\n");
  int m[3][1], n[2][4] = {{0, 1, 2, 3}, {4, 5, 6, 7}}, o[5][6][3];
  char hello[] = {6, 'H', 'e', 'l', 'l', 'o'},
       wonderful[] = {10, 'W', 'o', 'n', 'd', 'e', 'r', 'f', 'u', 'l'},
       world[] = {6, 'W', 'o', 'r', 'l', 'd'},
       *words[3] = {hello, wonderful, world};
  printf("\n[1] ----------------------------\n");
  printf("Non-initialized multidimensional array [3,1]:\n");
  printf("[\n");
  for (int i = 0; i < 3; i++) {
    printf("  [ ");
    for (int j = 0; j < 1; j++) {
      printf("%i ", m[i][j]);
    }
    printf("],\n");
  }
  printf("]\n");
  printf("\n[2] ----------------------------\n");
  printf("Initialized multidimensional array [2,4]:\n");
  printf("[\n");
  for (int i = 0; i < 2; i++) {
    printf("  [ ");
    for (int j = 0; j < 4; j++) {
      printf("%i ", n[i][j]);
    }
    printf("],\n");
  }
  printf("]\n");
  printf("\n[3] ----------------------------\n");
  printf("Dynamic initialized multidimensional array [5, 6, 3]:\n");
  for (int i = 0; i < 5; i++) {
    for (int j = 0; j < 6; j++) {
      for (int k = 0; k < 3; k++) {
        o[i][j][k] = i + j + k;
      }
    }
  }
  printf("[\n");
  for (int i = 0; i < 5; i++) {
    printf("  [\n");
    for (int j = 0; j < 6; j++) {
      printf("    [ ");
      for (int k = 0; k < 3; k++) {
        printf("%i ", o[i][j][k]);
      }
      printf("],\n");
    }
    printf("  ],\n");
  }
  printf("]\n");
  printf("\n[3] ----------------------------\n");
  printf("Non-uniform multidimensional array [3,x]:\n");
  printf("[\n");
  for (int i = 0; i < 3; i++) {
    printf("  [ ");
    char word_size = words[i][0];
    for (int j = 1; j < word_size; j++) {
      printf("%c", words[i][j]);
    }
    printf(" ],\n");
  }
  printf("]\n");
  printf("\n");
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x220,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xed0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x1026(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0x1023(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0x1020(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0x101d(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0x101b(%rip),%eax
mov    %eax,-0x1b6(%rbp)
mov    0x1012(%rip),%ax
mov    %ax,-0x1b2(%rbp)
mov    0x1006(%rip),%rax
mov    %rax,-0x1c0(%rbp)
mov    0x1000(%rip),%ax
mov    %ax,-0x1b8(%rbp)
mov    0xff5(%rip),%eax
mov    %eax,-0x1c6(%rbp)
mov    0xfec(%rip),%ax
mov    %ax,-0x1c2(%rbp)
lea    -0x1b6(%rbp),%rax
mov    %rax,-0x1e0(%rbp)
lea    -0x1c0(%rbp),%rax
mov    %rax,-0x1d8(%rbp)
lea    -0x1c6(%rbp),%rax
mov    %rax,-0x1d0(%rbp)
lea    0xe3b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe50(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf22(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x1e4(%rbp)
cmpl   $0x3,-0x1e4(%rbp)
jge    12bf <main+0x1af>
lea    0xf02(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x1e8(%rbp)
cmpl   $0x1,-0x1e8(%rbp)
jge    129d <main+0x18d>
movslq -0x1e4(%rbp),%rcx
lea    -0x1c(%rbp),%rax
shl    $0x2,%rcx
add    %rcx,%rax
movslq -0x1e8(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xe0b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1e8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1e8(%rbp)
jmp    1252 <main+0x142>
lea    0xea6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1e4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1e4(%rbp)
jmp    122d <main+0x11d>
lea    0xdcb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdc0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdd5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe4e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x1ec(%rbp)
cmpl   $0x2,-0x1ec(%rbp)
jge    1393 <main+0x283>
lea    0xe2e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x1f0(%rbp)
cmpl   $0x4,-0x1f0(%rbp)
jge    1371 <main+0x261>
movslq -0x1ec(%rbp),%rcx
lea    -0x40(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0x1f0(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xd37(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1f0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1f0(%rbp)
jmp    1326 <main+0x216>
lea    0xdd2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1ec(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1ec(%rbp)
jmp    1301 <main+0x1f1>
lea    0xcf7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd3a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd4f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x1f4(%rbp)
cmpl   $0x5,-0x1f4(%rbp)
jge    1487 <main+0x377>
movl   $0x0,-0x1f8(%rbp)
cmpl   $0x6,-0x1f8(%rbp)
jge    146e <main+0x35e>
movl   $0x0,-0x1fc(%rbp)
cmpl   $0x3,-0x1fc(%rbp)
jge    1455 <main+0x345>
mov    -0x1f4(%rbp),%edx
add    -0x1f8(%rbp),%edx
add    -0x1fc(%rbp),%edx
movslq -0x1f4(%rbp),%rcx
lea    -0x1b0(%rbp),%rax
imul   $0x48,%rcx,%rcx
add    %rcx,%rax
movslq -0x1f8(%rbp),%rcx
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
movslq -0x1fc(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x1fc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1fc(%rbp)
jmp    13f5 <main+0x2e5>
jmp    145a <main+0x34a>
mov    -0x1f8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1f8(%rbp)
jmp    13de <main+0x2ce>
jmp    1473 <main+0x363>
mov    -0x1f4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1f4(%rbp)
jmp    13c7 <main+0x2b7>
lea    0xcb0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x200(%rbp)
cmpl   $0x5,-0x200(%rbp)
jge    1589 <main+0x479>
lea    0xc89(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x204(%rbp)
cmpl   $0x6,-0x204(%rbp)
jge    1567 <main+0x457>
lea    0xc69(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x208(%rbp)
cmpl   $0x3,-0x208(%rbp)
jge    1545 <main+0x435>
movslq -0x200(%rbp),%rcx
lea    -0x1b0(%rbp),%rax
imul   $0x48,%rcx,%rcx
add    %rcx,%rax
movslq -0x204(%rbp),%rcx
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
movslq -0x208(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xb63(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x208(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x208(%rbp)
jmp    14e9 <main+0x3d9>
lea    0xbfe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x204(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x204(%rbp)
jmp    14c4 <main+0x3b4>
lea    0xbda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x200(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x200(%rbp)
jmp    149f <main+0x38f>
lea    0xb01(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xb44(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xba2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xb84(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x20c(%rbp)
cmpl   $0x3,-0x20c(%rbp)
jge    167a <main+0x56a>
lea    0xb64(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x20c(%rbp),%rax
mov    -0x1e0(%rbp,%rax,8),%rax
ff
mov    (%rax),%al
mov    %al,-0x20d(%rbp)
movl   $0x1,-0x214(%rbp)
mov    -0x214(%rbp),%eax
movsbl -0x20d(%rbp),%ecx
cmp    %ecx,%eax
jge    1658 <main+0x548>
movslq -0x20c(%rbp),%rax
mov    -0x1e0(%rbp,%rax,8),%rax
ff
movslq -0x214(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xb3c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x214(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x214(%rbp)
jmp    1607 <main+0x4f7>
lea    0xaea(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20c(%rbp)
jmp    15cb <main+0x4bb>
lea    0xa10(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xabd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2943(%rip),%rax
mov    (%rax),%eax
add    $0x220,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x168,%rsp
lea    0xf0b(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xee4(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xf09(%rip),%rdi
call   1040 <puts@plt>
lea    0xf1f(%rip),%rdi
call   1040 <puts@plt>
lea    0x1013(%rip),%r13
mov    %r13,%rdi
call   1040 <puts@plt>
lea    0xea4(%rip),%r15
xor    %ebp,%ebp
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe8b(%rip),%r12
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xfe4(%rip),%r14
mov    %r14,%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
lea    0xf95(%rip),%rdi
call   1040 <puts@plt>
lea    0xebb(%rip),%rdi
call   1040 <puts@plt>
lea    0xed1(%rip),%rdi
call   1040 <puts@plt>
mov    %r13,%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x7,%ebx
mov    %r12,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
lea    0xecb(%rip),%rdi
call   1040 <puts@plt>
lea    0xe73(%rip),%rdi
call   1040 <puts@plt>
lea    0xe31(%rip),%rdi
call   1040 <puts@plt>
mov    %rsp,%rax
movdqa 0xd11(%rip),%xmm0
movdqa 0xd19(%rip),%xmm1
movdqa 0xd21(%rip),%xmm2
nop
lea    -0x7(%rbx),%ecx
mov    %ecx,(%rax)
movd   %ebp,%xmm3
lea    0x1(%rbp),%rcx
mov    %ecx,0x4(%rax)
pshufd $0x0,%xmm3,%xmm3
movdqa %xmm3,%xmm4
paddd  %xmm0,%xmm4
pshufd $0xee,%xmm4,%xmm5
movd   %xmm5,0x8(%rax)
mov    %ecx,0xc(%rax)
movdqu %xmm4,0x10(%rax)
movdqa %xmm3,%xmm4
paddd  %xmm1,%xmm4
movdqu %xmm4,0x20(%rax)
paddd  %xmm2,%xmm3
movdqu %xmm3,0x30(%rax)
lea    -0x1(%rbx),%edx
mov    %edx,0x40(%rax)
mov    %ebx,0x44(%rax)
add    $0x1,%ebx
add    $0x48,%rax
mov    %rcx,%rbp
cmp    $0x5,%rcx
jne    1300 <main+0x1d0>
lea    0xe31(%rip),%rdi
call   1040 <puts@plt>
mov    $0x44,%ebp
lea    0xe1e(%rip),%r14
lea    0xcb7(%rip),%r15
lea    0xcac(%rip),%rbx
lea    0xe0f(%rip),%r12
lea    0xe06(%rip),%r13
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r14,%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x44(%rsp,%rbp,1),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x40(%rsp,%rbp,1),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x3c(%rsp,%rbp,1),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x38(%rsp,%rbp,1),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x34(%rsp,%rbp,1),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x30(%rsp,%rbp,1),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x2c(%rsp,%rbp,1),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x28(%rsp,%rbp,1),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x24(%rsp,%rbp,1),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x20(%rsp,%rbp,1),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x1c(%rsp,%rbp,1),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x18(%rsp,%rbp,1),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x14(%rsp,%rbp,1),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x10(%rsp,%rbp,1),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0xc(%rsp,%rbp,1),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x8(%rsp,%rbp,1),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x4(%rsp,%rbp,1),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%rsp,%rbp,1),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
call   1040 <puts@plt>
mov    %r13,%rdi
call   1040 <puts@plt>
add    $0x48,%rbp
cmp    $0x1ac,%rbp
jne    13a0 <main+0x270>
lea    0xc63(%rip),%r14
mov    %r14,%rdi
call   1040 <puts@plt>
lea    0xc08(%rip),%rdi
call   1040 <puts@plt>
lea    0xc1e(%rip),%rdi
call   1040 <puts@plt>
lea    0xc40(%rip),%rdi
call   1040 <puts@plt>
lea    0xad4(%rip),%r15
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x48,%edi
call   1030 <putchar@plt>
mov    $0x65,%edi
call   1030 <putchar@plt>
mov    $0x6c,%edi
call   1030 <putchar@plt>
mov    $0x6c,%edi
call   1030 <putchar@plt>
mov    $0x6f,%edi
call   1030 <putchar@plt>
lea    0xbf4(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x57,%edi
call   1030 <putchar@plt>
mov    $0x6f,%edi
call   1030 <putchar@plt>
mov    $0x6e,%edi
call   1030 <putchar@plt>
mov    $0x64,%edi
call   1030 <putchar@plt>
mov    $0x65,%edi
call   1030 <putchar@plt>
mov    $0x72,%edi
call   1030 <putchar@plt>
mov    $0x66,%edi
call   1030 <putchar@plt>
mov    $0x75,%edi
call   1030 <putchar@plt>
mov    $0x6c,%edi
call   1030 <putchar@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x57,%edi
call   1030 <putchar@plt>
mov    $0x6f,%edi
call   1030 <putchar@plt>
mov    $0x72,%edi
call   1030 <putchar@plt>
mov    $0x6c,%edi
call   1030 <putchar@plt>
mov    $0x64,%edi
call   1030 <putchar@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x296a(%rip),%rax
mov    (%rax),%eax
add    $0x168,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [34 x i8] c"================================\0A\00"
@.str.1 = [25 x i8] c"MULTIDIMENSIONAL ARRAYS\0A\00"
@__const.main.n = [2 x [4 x i32]] [[4 x i32] [i32 0, i32 1, i32 2, i32 3], [4 x i32] [i32 4, i32 5, i32 6, i32 7]]
@__const.main.hello = [6 x i8] c"\06Hello"
@__const.main.wonderful = [10 x i8] c"\0AWonderful"
@__const.main.world = [6 x i8] c"\06World"
@.str.2 = [35 x i8] c"\0A[1] ----------------------------\0A\00"
@.str.3 = [47 x i8] c"Non-initialized multidimensional array [3,1]:\0A\00"
@.str.4 = [3 x i8] c"[\0A\00"
@.str.5 = [5 x i8] c" [ \00"
@.str.6 = [4 x i8] c"%i \00"
@.str.7 = [4 x i8] c"],\0A\00"
@.str.8 = [3 x i8] c"]\0A\00"
@.str.9 = [35 x i8] c"\0A[2] ----------------------------\0A\00"
@.str.10 = [43 x i8] c"Initialized multidimensional array [2,4]:\0A\00"
@.str.11 = [35 x i8] c"\0A[3] ----------------------------\0A\00"
@.str.12 = [55 x i8] c"Dynamic initialized multidimensional array [5, 6, 3]:\0A\00"
@.str.13 = [5 x i8] c" [\0A\00"
@.str.14 = [7 x i8] c" [ \00"
@.str.15 = [6 x i8] c" ],\0A\00"
@.str.16 = [43 x i8] c"Non-uniform multidimensional array [3,x]:\0A\00"
@.str.17 = [3 x i8] c"%c\00"
@.str.18 = [5 x i8] c" ],\0A\00"
@.str.19 = [2 x i8] c"\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [3 x [1 x i32]]
%7 = alloca [2 x [4 x i32]]
%8 = alloca [5 x [6 x [3 x i32]]]
%9 = alloca [6 x i8]
%10 = alloca [10 x i8]
%11 = alloca [6 x i8]
%12 = alloca [3 x i8*]
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i8
%25 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%29 = bitcast [2 x [4 x i32]]* %7 to i8*
%30 = bitcast [6 x i8]* %9 to i8*
%31 = bitcast [10 x i8]* %10 to i8*
%32 = bitcast [6 x i8]* %11 to i8*
%33 = getelementptr inbounds [3 x i8*], [3 x i8*]* %12, i64 0, i64 0
%34 = getelementptr inbounds [6 x i8], [6 x i8]* %9, i64 0, i64 0
store i8* %34, i8** %33
%35 = getelementptr inbounds i8*, i8** %33, i64 1
%36 = getelementptr inbounds [10 x i8], [10 x i8]* %10, i64 0, i64 0
store i8* %36, i8** %35
%37 = getelementptr inbounds i8*, i8** %35, i64 1
%38 = getelementptr inbounds [6 x i8], [6 x i8]* %11, i64 0, i64 0
store i8* %38, i8** %37
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.3, i64 0, i64 0))
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %13
br label %42
42: ; preds = %64, %2
%43 = load i32, i32* %13
%44 = icmp slt i32 %43, 3
br i1 %44, label %45, label %67
45: ; preds = %42
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %14
br label %47
47: ; preds = %59, %45
%48 = load i32, i32* %14
%49 = icmp slt i32 %48, 1
br i1 %49, label %50, label %62
50: ; preds = %47
%51 = load i32, i32* %13
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [3 x [1 x i32]], [3 x [1 x i32]]* %6, i64 0, i64 %52
%54 = load i32, i32* %14
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [1 x i32], [1 x i32]* %53, i64 0, i64 %55
%57 = load i32, i32* %56
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %57)
br label %59
59: ; preds = %50
%60 = load i32, i32* %14
%61 = add nsw i32 %60, 1
store i32 %61, i32* %14
br label %47
62: ; preds = %47
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
br label %64
64: ; preds = %62
%65 = load i32, i32* %13
%66 = add nsw i32 %65, 1
store i32 %66, i32* %13
br label %42
67: ; preds = %42
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0))
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.10, i64 0, i64 0))
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %15
br label %72
72: ; preds = %94, %67
%73 = load i32, i32* %15
%74 = icmp slt i32 %73, 2
br i1 %74, label %75, label %97
75: ; preds = %72
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %16
br label %77
77: ; preds = %89, %75
%78 = load i32, i32* %16
%79 = icmp slt i32 %78, 4
br i1 %79, label %80, label %92
80: ; preds = %77
%81 = load i32, i32* %15
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [2 x [4 x i32]], [2 x [4 x i32]]* %7, i64 0, i64 %82
%84 = load i32, i32* %16
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [4 x i32], [4 x i32]* %83, i64 0, i64 %85
%87 = load i32, i32* %86
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %87)
br label %89
89: ; preds = %80
%90 = load i32, i32* %16
%91 = add nsw i32 %90, 1
store i32 %91, i32* %16
br label %77
92: ; preds = %77
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
br label %94
94: ; preds = %92
%95 = load i32, i32* %15
%96 = add nsw i32 %95, 1
store i32 %96, i32* %15
br label %72
97: ; preds = %72
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.11, i64 0, i64 0))
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.12, i64 0, i64 0))
store i32 0, i32* %17
br label %101
101: ; preds = %135, %97
%102 = load i32, i32* %17
%103 = icmp slt i32 %102, 5
br i1 %103, label %104, label %138
104: ; preds = %101
store i32 0, i32* %18
br label %105
105: ; preds = %131, %104
%106 = load i32, i32* %18
%107 = icmp slt i32 %106, 6
br i1 %107, label %108, label %134
108: ; preds = %105
store i32 0, i32* %19
br label %109
109: ; preds = %127, %108
%110 = load i32, i32* %19
%111 = icmp slt i32 %110, 3
br i1 %111, label %112, label %130
112: ; preds = %109
%113 = load i32, i32* %17
%114 = load i32, i32* %18
%115 = add nsw i32 %113, %114
%116 = load i32, i32* %19
%117 = add nsw i32 %115, %116
%118 = load i32, i32* %17
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %8, i64 0, i64 %119
%121 = load i32, i32* %18
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [6 x [3 x i32]], [6 x [3 x i32]]* %120, i64 0, i64 %122
%124 = load i32, i32* %19
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds [3 x i32], [3 x i32]* %123, i64 0, i64 %125
store i32 %117, i32* %126
br label %127
127: ; preds = %112
%128 = load i32, i32* %19
%129 = add nsw i32 %128, 1
store i32 %129, i32* %19
br label %109
130: ; preds = %109
br label %131
131: ; preds = %130
%132 = load i32, i32* %18
%133 = add nsw i32 %132, 1
store i32 %133, i32* %18
br label %105
134: ; preds = %105
br label %135
135: ; preds = %134
%136 = load i32, i32* %17
%137 = add nsw i32 %136, 1
store i32 %137, i32* %17
br label %101
138: ; preds = %101
%139 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %20
br label %140
140: ; preds = %175, %138
%141 = load i32, i32* %20
%142 = icmp slt i32 %141, 5
br i1 %142, label %143, label %178
143: ; preds = %140
%144 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
store i32 0, i32* %21
br label %145
145: ; preds = %170, %143
%146 = load i32, i32* %21
%147 = icmp slt i32 %146, 6
br i1 %147, label %148, label %173
148: ; preds = %145
%149 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0))
store i32 0, i32* %22
br label %150
150: ; preds = %165, %148
%151 = load i32, i32* %22
%152 = icmp slt i32 %151, 3
br i1 %152, label %153, label %168
153: ; preds = %150
%154 = load i32, i32* %20
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %8, i64 0, i64 %155
%157 = load i32, i32* %21
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds [6 x [3 x i32]], [6 x [3 x i32]]* %156, i64 0, i64 %158
%160 = load i32, i32* %22
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds [3 x i32], [3 x i32]* %159, i64 0, i64 %161
%163 = load i32, i32* %162
%164 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %163)
br label %165
165: ; preds = %153
%166 = load i32, i32* %22
%167 = add nsw i32 %166, 1
store i32 %167, i32* %22
br label %150
168: ; preds = %150
%169 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
br label %170
170: ; preds = %168
%171 = load i32, i32* %21
%172 = add nsw i32 %171, 1
store i32 %172, i32* %21
br label %145
173: ; preds = %145
%174 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
br label %175
175: ; preds = %173
%176 = load i32, i32* %20
%177 = add nsw i32 %176, 1
store i32 %177, i32* %20
br label %140
178: ; preds = %140
%179 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%180 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.11, i64 0, i64 0))
%181 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.16, i64 0, i64 0))
%182 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %23
br label %183
183: ; preds = %215, %178
%184 = load i32, i32* %23
%185 = icmp slt i32 %184, 3
br i1 %185, label %186, label %218
186: ; preds = %183
%187 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%188 = load i32, i32* %23
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds [3 x i8*], [3 x i8*]* %12, i64 0, i64 %189
%191 = load i8*, i8** %190
%192 = getelementptr inbounds i8, i8* %191, i64 0
%193 = load i8, i8* %192
store i8 %193, i8* %24
store i32 1, i32* %25
br label %194
194: ; preds = %210, %186
%195 = load i32, i32* %25
%196 = load i8, i8* %24
%197 = sext i8 %196 to i32
%198 = icmp slt i32 %195, %197
br i1 %198, label %199, label %213
199: ; preds = %194
%200 = load i32, i32* %23
%201 = sext i32 %200 to i64
%202 = getelementptr inbounds [3 x i8*], [3 x i8*]* %12, i64 0, i64 %201
%203 = load i8*, i8** %202
%204 = load i32, i32* %25
%205 = sext i32 %204 to i64
%206 = getelementptr inbounds i8, i8* %203, i64 %205
%207 = load i8, i8* %206
%208 = sext i8 %207 to i32
%209 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), i32 %208)
br label %210
210: ; preds = %199
%211 = load i32, i32* %25
%212 = add nsw i32 %211, 1
store i32 %212, i32* %25
br label %194
213: ; preds = %194
%214 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0))
br label %215
215: ; preds = %213
%216 = load i32, i32* %23
%217 = add nsw i32 %216, 1
store i32 %217, i32* %23
br label %183
218: ; preds = %183
%219 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%220 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0))
%221 = load i32, i32* @EXIT_SUCCESS
ret i32 %221
}

LLVM IR (-O2):
@.str.5 = [5 x i8] c" [ \00"
@.str.6 = [4 x i8] c"%i \00"
@.str.14 = [7 x i8] c" [ \00"
@EXIT_SUCCESS = global i32 0
@str.20 = [24 x i8] c"MULTIDIMENSIONAL ARRAYS\00"
@str.21 = [33 x i8] c"================================\00"
@str.22 = [34 x i8] c"\0A[1] ----------------------------\00"
@str.23 = [46 x i8] c"Non-initialized multidimensional array [3,1]:\00"
@str.26 = [34 x i8] c"\0A[2] ----------------------------\00"
@str.27 = [42 x i8] c"Initialized multidimensional array [2,4]:\00"
@str.31 = [54 x i8] c"Dynamic initialized multidimensional array [5, 6, 3]:\00"
@str.34 = [34 x i8] c"\0A[3] ----------------------------\00"
@str.35 = [42 x i8] c"Non-uniform multidimensional array [3,x]:\00"
@str.36 = [2 x i8] c"[\00"
@str.37 = [2 x i8] c"]\00"
@str.38 = [4 x i8] c" ],\00"
@str.39 = [4 x i8] c" [\00"
@str.40 = [5 x i8] c" ],\00"
@str.43 = [3 x i8] c"],\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [5 x [6 x [3 x i32]]]
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.21, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.20, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.21, i64 0, i64 0))
%7 = bitcast [5 x [6 x [3 x i32]]]* %3 to i8*
%8 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.22, i64 0, i64 0))
%9 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.23, i64 0, i64 0))
%10 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.36, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 undef)
%13 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.43, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 undef)
%16 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.43, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 undef)
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.43, i64 0, i64 0))
%20 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.37, i64 0, i64 0))
%21 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.26, i64 0, i64 0))
%22 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.27, i64 0, i64 0))
%23 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.36, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 0)
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 1)
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 2)
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 3)
%29 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.43, i64 0, i64 0))
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 4)
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 5)
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 6)
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 7)
%35 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.43, i64 0, i64 0))
%36 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.37, i64 0, i64 0))
%37 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.34, i64 0, i64 0))
%38 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.31, i64 0, i64 0))
br label %39
39: ; preds = %2, %39
%40 = phi i64 [ 0, %2 ], [ %43, %39 ]
%41 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %3, i64 0, i64 %40, i64 0, i64 0
%42 = trunc i64 %40 to i32
store i32 %42, i32* %41
%43 = add nuw nsw i64 %40, 1
%44 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %3, i64 0, i64 %40, i64 0, i64 1
%45 = trunc i64 %43 to i32
store i32 %45, i32* %44
%46 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %3, i64 0, i64 %40, i64 0, i64 2
%47 = insertelement <4 x i64> poison, i64 %40, i64 0
%48 = shufflevector <4 x i64> %47, <4 x i64> poison, <4 x i32> zeroinitializer
%49 = trunc <4 x i64> %48 to <4 x i32>
%50 = add <4 x i32> %49, <i32 2, i32 3, i32 2, i32 3>
%51 = extractelement <4 x i32> %50, i64 2
store i32 %51, i32* %46
%52 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %3, i64 0, i64 %40, i64 1, i64 0
store i32 %45, i32* %52
%53 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %3, i64 0, i64 %40, i64 1, i64 1
%54 = bitcast i32* %53 to <4 x i32>*
store <4 x i32> %50, <4 x i32>* %54
%55 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %3, i64 0, i64 %40, i64 2, i64 2
%56 = trunc <4 x i64> %48 to <4 x i32>
%57 = add <4 x i32> %56, <i32 4, i32 3, i32 4, i32 5>
%58 = bitcast i32* %55 to <4 x i32>*
store <4 x i32> %57, <4 x i32>* %58
%59 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %3, i64 0, i64 %40, i64 4, i64 0
%60 = trunc <4 x i64> %48 to <4 x i32>
%61 = add <4 x i32> %60, <i32 4, i32 5, i32 6, i32 5>
%62 = bitcast i32* %59 to <4 x i32>*
store <4 x i32> %61, <4 x i32>* %62
%63 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %3, i64 0, i64 %40, i64 5, i64 1
%64 = trunc i64 %40 to i32
%65 = add i32 %64, 6
store i32 %65, i32* %63
%66 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %3, i64 0, i64 %40, i64 5, i64 2
%67 = trunc i64 %40 to i32
%68 = add i32 %67, 7
store i32 %68, i32* %66
%69 = icmp eq i64 %43, 5
br i1 %69, label %70, label %39
70: ; preds = %39
%71 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.36, i64 0, i64 0))
br label %72
72: ; preds = %70, %72
%73 = phi i64 [ 0, %70 ], [ %142, %72 ]
%74 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.39, i64 0, i64 0))
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0))
%76 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %3, i64 0, i64 %73, i64 0, i64 0
%77 = load i32, i32* %76
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %77)
%79 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %3, i64 0, i64 %73, i64 0, i64 1
%80 = load i32, i32* %79
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %80)
%82 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %3, i64 0, i64 %73, i64 0, i64 2
%83 = load i32, i32* %82
%84 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %83)
%85 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.43, i64 0, i64 0))
%86 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0))
%87 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %3, i64 0, i64 %73, i64 1, i64 0
%88 = load i32, i32* %87
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %88)
%90 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %3, i64 0, i64 %73, i64 1, i64 1
%91 = load i32, i32* %90
%92 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %91)
%93 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %3, i64 0, i64 %73, i64 1, i64 2
%94 = load i32, i32* %93
%95 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %94)
%96 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.43, i64 0, i64 0))
%97 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0))
%98 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %3, i64 0, i64 %73, i64 2, i64 0
%99 = load i32, i32* %98
%100 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %99)
%101 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %3, i64 0, i64 %73, i64 2, i64 1
%102 = load i32, i32* %101
%103 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %102)
%104 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %3, i64 0, i64 %73, i64 2, i64 2
%105 = load i32, i32* %104
%106 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %105)
%107 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.43, i64 0, i64 0))
%108 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0))
%109 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %3, i64 0, i64 %73, i64 3, i64 0
%110 = load i32, i32* %109
%111 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %110)
%112 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %3, i64 0, i64 %73, i64 3, i64 1
%113 = load i32, i32* %112
%114 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %113)
%115 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %3, i64 0, i64 %73, i64 3, i64 2
%116 = load i32, i32* %115
%117 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %116)
%118 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.43, i64 0, i64 0))
%119 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0))
%120 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %3, i64 0, i64 %73, i64 4, i64 0
%121 = load i32, i32* %120
%122 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %121)
%123 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %3, i64 0, i64 %73, i64 4, i64 1
%124 = load i32, i32* %123
%125 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %124)
%126 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %3, i64 0, i64 %73, i64 4, i64 2
%127 = load i32, i32* %126
%128 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %127)
%129 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.43, i64 0, i64 0))
%130 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0))
%131 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %3, i64 0, i64 %73, i64 5, i64 0
%132 = load i32, i32* %131
%133 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %132)
%134 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %3, i64 0, i64 %73, i64 5, i64 1
%135 = load i32, i32* %134
%136 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %135)
%137 = getelementptr inbounds [5 x [6 x [3 x i32]]], [5 x [6 x [3 x i32]]]* %3, i64 0, i64 %73, i64 5, i64 2
%138 = load i32, i32* %137
%139 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %138)
%140 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.43, i64 0, i64 0))
%141 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.40, i64 0, i64 0))
%142 = add nuw nsw i64 %73, 1
%143 = icmp eq i64 %142, 5
br i1 %143, label %144, label %72
144: ; preds = %72
%145 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.37, i64 0, i64 0))
%146 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.34, i64 0, i64 0))
%147 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.35, i64 0, i64 0))
%148 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.36, i64 0, i64 0))
%149 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%150 = call i32 @putchar(i32 72)
%151 = call i32 @putchar(i32 101)
%152 = call i32 @putchar(i32 108)
%153 = call i32 @putchar(i32 108)
%154 = call i32 @putchar(i32 111)
%155 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.38, i64 0, i64 0))
%156 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%157 = call i32 @putchar(i32 87)
%158 = call i32 @putchar(i32 111)
%159 = call i32 @putchar(i32 110)
%160 = call i32 @putchar(i32 100)
%161 = call i32 @putchar(i32 101)
%162 = call i32 @putchar(i32 114)
%163 = call i32 @putchar(i32 102)
%164 = call i32 @putchar(i32 117)
%165 = call i32 @putchar(i32 108)
%166 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.38, i64 0, i64 0))
%167 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%168 = call i32 @putchar(i32 87)
%169 = call i32 @putchar(i32 111)
%170 = call i32 @putchar(i32 114)
%171 = call i32 @putchar(i32 108)
%172 = call i32 @putchar(i32 100)
%173 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.38, i64 0, i64 0))
%174 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.37, i64 0, i64 0))
%175 = call i32 @putchar(i32 10)
%176 = load i32, i32* @EXIT_SUCCESS
ret i32 %176
}