#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*/ printf(char *, int const, ...);
int main() {
  const int aa11[3][8][4];
  const int aa21[][3][4] = {
      {{10, 11, 10, 11}, {12, 13, 12, 13}, {12, 345, 568, 1}},
      {{14, 15, 14, 15}, {16, 17, 16, 17}, {41, 345, 74, 34}}};
  int aa2[][1][2] = {1, 2, 3};
  const int a[][2][1] = {{{}, {12, 13}}, {{14, 15}, {16, 17}}};
  const int arr[] = {10, 20, 30};
  printf("%i\n", 1111111);
  printf("%i\n", a[0][1][0]);
  int n = 5;
  int *nn = &n;
  int **nnn = &nn;
  int *(*a3[2])[10][9];
  printf("%i\n", 1111111111);
  int **a232[5][10] = {{0, 1, 2, 2},
                       {0, 1, 2},
                       {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
                       {0, 0, 0, 0, 0, 0, 7, 0, 0, 0},
                       {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}};
  printf("%i, %i\n", a[0][1][0], a[0][0][0]);
  int a4 = 1, b = 2, c[] = {1, 2}, d[][3] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}},
      f[] = {};
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x410,%rsp
lea    -0x1e0(%rbp),%rdi
lea    0xeb7(%rip),%rsi
mov    $0x60,%edx
call   1050 <memcpy@plt>
mov    0xf46(%rip),%rax
mov    %rax,-0x1f0(%rbp)
mov    0xf40(%rip),%rax
mov    %rax,-0x1e8(%rbp)
mov    0xf3a(%rip),%rax
mov    %rax,-0x200(%rbp)
mov    0xf34(%rip),%rax
mov    %rax,-0x1f8(%rbp)
mov    0xece(%rip),%rax
mov    %rax,-0x20c(%rbp)
mov    0xec9(%rip),%eax
mov    %eax,-0x204(%rbp)
lea    0xf18(%rip),%rdi
mov    $0x10f447,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1fc(%rbp),%esi
lea    0xeff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x5,-0x210(%rbp)
lea    -0x210(%rbp),%rax
mov    %rax,-0x218(%rbp)
lea    -0x218(%rbp),%rax
mov    %rax,-0x220(%rbp)
lea    0xecb(%rip),%rdi
mov    $0x423a35c7,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x3c0(%rbp),%rdi
xor    %esi,%esi
mov    $0x190,%edx
call   1040 <memset@plt>
mov    $0x1,%eax
mov    %rax,-0x3b8(%rbp)
mov    $0x2,%eax
mov    %rax,-0x3b0(%rbp)
mov    $0x2,%eax
mov    %rax,-0x3a8(%rbp)
mov    $0x1,%eax
mov    %rax,-0x368(%rbp)
mov    $0x2,%eax
mov    %rax,-0x360(%rbp)
mov    $0x7,%eax
mov    %rax,-0x2a0(%rbp)
mov    -0x1fc(%rbp),%esi
mov    -0x200(%rbp),%edx
lea    0xe4d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x3c4(%rbp)
movl   $0x2,-0x3c8(%rbp)
mov    0xe33(%rip),%rax
mov    %rax,-0x3d0(%rbp)
lea    -0x400(%rbp),%rdi
lea    0xdc6(%rip),%rsi
mov    $0x24,%edx
call   1050 <memcpy@plt>
xor    %eax,%eax
add    $0x410,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xeec(%rip),%rbx
mov    %rbx,%rdi
mov    $0x10f447,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0xc,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x423a35c7,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeb4(%rip),%rdi
mov    $0xc,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.aa21 = [2 x [3 x [4 x i32]]] [[3 x [4 x i32]] [[4 x i32] [i32 10, i32 11, i32 10, i32 11], [4 x i32] [i32 12, i32 13, i32 12, i32 13], [4 x i32] [i32 12, i32 345, i32 568, i32 1]], [3 x [4 x i32]] [[4 x i32] [i32 14, i32 15, i32 14, i32 15], [4 x i32] [i32 16, i32 17, i32 16, i32 17], [4 x i32] [i32 41, i32 345, i32 74, i32 34]]]
@__const.main.aa2 = [2 x [1 x [2 x i32]]] [[1 x [2 x i32]] [[2 x i32] [i32 1, i32 2]], [1 x [2 x i32]] [[2 x i32] [i32 3, i32 0]]]
@__const.main.a = [2 x [2 x [1 x i32]]] [[2 x [1 x i32]] [[1 x i32] zeroinitializer, [1 x i32] [i32 12]], [2 x [1 x i32]] [[1 x i32] [i32 14], [1 x i32] [i32 16]]]
@__const.main.arr = [3 x i32] [i32 10, i32 20, i32 30]
@.str = [4 x i8] c"%i\0A\00"
@.str.1 = [8 x i8] c"%i, %i\0A\00"
@__const.main.c = [2 x i32] [i32 1, i32 2]
@__const.main.d = [3 x [3 x i32]] [[3 x i32] [i32 1, i32 2, i32 3], [3 x i32] [i32 4, i32 5, i32 6], [3 x i32] [i32 7, i32 8, i32 9]]
define i32 @main() {
%1 = alloca [3 x [8 x [4 x i32]]]
%2 = alloca [2 x [3 x [4 x i32]]]
%3 = alloca [2 x [1 x [2 x i32]]]
%4 = alloca [2 x [2 x [1 x i32]]]
%5 = alloca [3 x i32]
%6 = alloca i32
%7 = alloca i32*
%8 = alloca i32**
%9 = alloca [2 x [10 x [9 x i32*]]*]
%10 = alloca [5 x [10 x i32**]]
%11 = alloca i32
%12 = alloca i32
%13 = alloca [2 x i32]
%14 = alloca [3 x [3 x i32]]
%15 = alloca [0 x i32]
%16 = bitcast [2 x [3 x [4 x i32]]]* %2 to i8*
%17 = bitcast [2 x [1 x [2 x i32]]]* %3 to i8*
%18 = bitcast [2 x [2 x [1 x i32]]]* %4 to i8*
%19 = bitcast [3 x i32]* %5 to i8*
%20 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 1111111)
%21 = getelementptr inbounds [2 x [2 x [1 x i32]]], [2 x [2 x [1 x i32]]]* %4, i64 0, i64 0
%22 = getelementptr inbounds [2 x [1 x i32]], [2 x [1 x i32]]* %21, i64 0, i64 1
%23 = getelementptr inbounds [1 x i32], [1 x i32]* %22, i64 0, i64 0
%24 = load i32, i32* %23
%25 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %24)
store i32 5, i32* %6
store i32* %6, i32** %7
store i32** %7, i32*** %8
%26 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 1111111111)
%27 = bitcast [5 x [10 x i32**]]* %10 to i8*
%28 = bitcast i8* %27 to [5 x [10 x i32**]]*
%29 = getelementptr inbounds [5 x [10 x i32**]], [5 x [10 x i32**]]* %28, i32 0, i32 0
%30 = getelementptr inbounds [10 x i32**], [10 x i32**]* %29, i32 0, i32 1
store i32** inttoptr (i64 1 to i32**), i32*** %30
%31 = getelementptr inbounds [10 x i32**], [10 x i32**]* %29, i32 0, i32 2
store i32** inttoptr (i64 2 to i32**), i32*** %31
%32 = getelementptr inbounds [10 x i32**], [10 x i32**]* %29, i32 0, i32 3
store i32** inttoptr (i64 2 to i32**), i32*** %32
%33 = getelementptr inbounds [5 x [10 x i32**]], [5 x [10 x i32**]]* %28, i32 0, i32 1
%34 = getelementptr inbounds [10 x i32**], [10 x i32**]* %33, i32 0, i32 1
store i32** inttoptr (i64 1 to i32**), i32*** %34
%35 = getelementptr inbounds [10 x i32**], [10 x i32**]* %33, i32 0, i32 2
store i32** inttoptr (i64 2 to i32**), i32*** %35
%36 = getelementptr inbounds [5 x [10 x i32**]], [5 x [10 x i32**]]* %28, i32 0, i32 3
%37 = getelementptr inbounds [10 x i32**], [10 x i32**]* %36, i32 0, i32 6
store i32** inttoptr (i64 7 to i32**), i32*** %37
%38 = getelementptr inbounds [2 x [2 x [1 x i32]]], [2 x [2 x [1 x i32]]]* %4, i64 0, i64 0
%39 = getelementptr inbounds [2 x [1 x i32]], [2 x [1 x i32]]* %38, i64 0, i64 1
%40 = getelementptr inbounds [1 x i32], [1 x i32]* %39, i64 0, i64 0
%41 = load i32, i32* %40
%42 = getelementptr inbounds [2 x [2 x [1 x i32]]], [2 x [2 x [1 x i32]]]* %4, i64 0, i64 0
%43 = getelementptr inbounds [2 x [1 x i32]], [2 x [1 x i32]]* %42, i64 0, i64 0
%44 = getelementptr inbounds [1 x i32], [1 x i32]* %43, i64 0, i64 0
%45 = load i32, i32* %44
%46 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 %41, i32 %45)
store i32 1, i32* %11
store i32 2, i32* %12
%47 = bitcast [2 x i32]* %13 to i8*
%48 = bitcast [3 x [3 x i32]]* %14 to i8*
%49 = bitcast [0 x i32]* %15 to i8*
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%i\0A\00"
@.str.1 = [8 x i8] c"%i, %i\0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 1111111)
%2 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 12)
%3 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 1111111111)
%4 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 12, i32 0)
ret i32 0
}