int main(int argc, char *argv[]) {
  int rows = 2, i, j, k, l;
  int ****matrix = (int ****)malloc(rows * sizeof(int ***));
  for (i = 0; i < rows; i++) {
    matrix[i] = (int ***)malloc(rows * sizeof(int **));
    for (j = 0; j < rows; j++) {
      matrix[i][j] = (int **)malloc(rows * sizeof(int *));
      for (k = 0; k < rows; k++) {
        matrix[i][j][k] = (int *)malloc(rows * sizeof(int));
        for (l = 0; l < rows; l++) {
          matrix[i][j][k][l] = 0;
          printf("%d ", matrix[i][j][k][l]);
        }
        printf("\n");
      }
      printf("\n");
    }
  }
  for (i = 0; i < rows; i++) {
    for (j = 0; j < rows; j++) {
      for (k = 0; k < rows; k++) {
        free(matrix[i][j][k]);
      }
      free(matrix[i][j]);
    }
    free(matrix[i]);
  }
  free(matrix);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x2,-0x14(%rbp)
movslq -0x14(%rbp),%rdi
shl    $0x3,%rdi
call   1050 <malloc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    12c7 <main+0x197>
movslq -0x14(%rbp),%rdi
shl    $0x3,%rdi
call   1050 <malloc@plt>
mov    %rax,%rdx
mov    -0x30(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    12b4 <main+0x184>
movslq -0x14(%rbp),%rdi
shl    $0x3,%rdi
call   1050 <malloc@plt>
mov    %rax,%rdx
mov    -0x30(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1298 <main+0x168>
movslq -0x14(%rbp),%rdi
shl    $0x2,%rdi
call   1050 <malloc@plt>
mov    %rax,%rdx
mov    -0x30(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    127c <main+0x14c>
mov    -0x30(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x30(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xd99(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    120a <main+0xda>
lea    0xd81(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11cb <main+0x9b>
lea    0xd65(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1194 <main+0x64>
jmp    12b9 <main+0x189>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1165 <main+0x35>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1375 <main+0x245>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1356 <main+0x226>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    132f <main+0x1ff>
mov    -0x30(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    12f4 <main+0x1c4>
mov    -0x30(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12e1 <main+0x1b1>
mov    -0x30(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12ce <main+0x19e>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    $0x10,%edi
call   1060 <malloc@plt>
mov    %rax,%r14
mov    $0x10,%edi
call   1060 <malloc@plt>
mov    %rax,%r12
mov    %rax,(%r14)
mov    $0x10,%edi
call   1060 <malloc@plt>
mov    %rax,%rbx
mov    %rax,(%r12)
mov    $0x8,%edi
call   1060 <malloc@plt>
mov    %rax,(%rbx)
movl   $0x0,(%rax)
lea    0xe70(%rip),%r15
mov    %r15,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%r12),%rax
mov    (%rax),%rax
movl   $0x0,0x4(%rax)
mov    %r15,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    $0x8,%edi
call   1060 <malloc@plt>
mov    (%r12),%rcx
mov    %rax,0x8(%rcx)
mov    (%r12),%rax
mov    0x8(%rax),%rax
movl   $0x0,(%rax)
mov    %r15,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%r12),%rax
mov    0x8(%rax),%rax
movl   $0x0,0x4(%rax)
mov    %r15,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    $0x10,%edi
call   1060 <malloc@plt>
mov    %rax,%rbx
mov    %rax,0x8(%r12)
mov    $0x8,%edi
call   1060 <malloc@plt>
mov    %rax,(%rbx)
movl   $0x0,(%rax)
mov    %r15,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%r12),%rax
mov    (%rax),%rax
movl   $0x0,0x4(%rax)
mov    %r15,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    $0x8,%edi
call   1060 <malloc@plt>
mov    0x8(%r12),%rcx
mov    %rax,0x8(%rcx)
mov    0x8(%r12),%rax
mov    0x8(%rax),%rax
movl   $0x0,(%rax)
mov    %r15,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%r12),%rax
mov    0x8(%rax),%rax
movl   $0x0,0x4(%rax)
mov    %r15,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    $0x10,%edi
call   1060 <malloc@plt>
mov    %rax,%r12
mov    %rax,0x8(%r14)
mov    $0x10,%edi
call   1060 <malloc@plt>
mov    %rax,%rbx
mov    %rax,(%r12)
mov    $0x8,%edi
call   1060 <malloc@plt>
mov    %rax,(%rbx)
movl   $0x0,(%rax)
mov    %r15,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%r12),%rax
mov    (%rax),%rax
movl   $0x0,0x4(%rax)
mov    %r15,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    $0x8,%edi
call   1060 <malloc@plt>
mov    (%r12),%rcx
mov    %rax,0x8(%rcx)
mov    (%r12),%rax
mov    0x8(%rax),%rax
movl   $0x0,(%rax)
mov    %r15,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%r12),%rax
mov    0x8(%rax),%rax
movl   $0x0,0x4(%rax)
mov    %r15,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    $0x10,%edi
call   1060 <malloc@plt>
mov    %rax,%rbx
mov    %rax,0x8(%r12)
mov    $0x8,%edi
call   1060 <malloc@plt>
mov    %rax,(%rbx)
movl   $0x0,(%rax)
mov    %r15,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%r12),%rax
mov    (%rax),%rax
movl   $0x0,0x4(%rax)
mov    %r15,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    $0x8,%edi
call   1060 <malloc@plt>
mov    0x8(%r12),%rcx
mov    %rax,0x8(%rcx)
mov    0x8(%r12),%rax
mov    0x8(%rax),%rax
movl   $0x0,(%rax)
mov    %r15,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%r12),%rax
mov    0x8(%rax),%rax
movl   $0x0,0x4(%rax)
mov    %r15,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    (%r14),%rbx
mov    (%rbx),%rax
mov    (%rax),%rdi
call   1030 <free@plt>
mov    (%rbx),%rax
mov    0x8(%rax),%rdi
call   1030 <free@plt>
mov    (%rbx),%rdi
call   1030 <free@plt>
mov    0x8(%rbx),%rax
mov    (%rax),%rdi
call   1030 <free@plt>
mov    0x8(%rbx),%rax
mov    0x8(%rax),%rdi
call   1030 <free@plt>
mov    0x8(%rbx),%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    0x8(%r14),%rbx
mov    (%rbx),%rax
mov    (%rax),%rdi
call   1030 <free@plt>
mov    (%rbx),%rax
mov    0x8(%rax),%rdi
call   1030 <free@plt>
mov    (%rbx),%rdi
call   1030 <free@plt>
mov    0x8(%rbx),%rax
mov    (%rax),%rdi
call   1030 <free@plt>
mov    0x8(%rbx),%rax
mov    0x8(%rax),%rdi
call   1030 <free@plt>
mov    0x8(%rbx),%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d \00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call dereferenceable_or_null(16) i8* @malloc(i64 16)
%4 = bitcast i8* %3 to i32****
%5 = tail call dereferenceable_or_null(16) i8* @malloc(i64 16)
%6 = bitcast i8* %3 to i8**
store i8* %5, i8** %6
%7 = bitcast i8* %5 to i32***
%8 = tail call dereferenceable_or_null(16) i8* @malloc(i64 16)
%9 = bitcast i8* %5 to i8**
store i8* %8, i8** %9
%10 = tail call dereferenceable_or_null(8) i8* @malloc(i64 8)
%11 = bitcast i8* %8 to i8**
store i8* %10, i8** %11
%12 = bitcast i8* %10 to i32*
store i32 0, i32* %12
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 0)
%14 = load i32**, i32*** %7
%15 = load i32*, i32** %14
%16 = getelementptr inbounds i32, i32* %15, i64 1
store i32 0, i32* %16
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 0)
%18 = tail call i32 @putchar(i32 10)
%19 = tail call dereferenceable_or_null(8) i8* @malloc(i64 8)
%20 = load i32**, i32*** %7
%21 = getelementptr inbounds i32*, i32** %20, i64 1
%22 = bitcast i32** %21 to i8**
store i8* %19, i8** %22
%23 = load i32**, i32*** %7
%24 = getelementptr inbounds i32*, i32** %23, i64 1
%25 = load i32*, i32** %24
store i32 0, i32* %25
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 0)
%27 = load i32**, i32*** %7
%28 = getelementptr inbounds i32*, i32** %27, i64 1
%29 = load i32*, i32** %28
%30 = getelementptr inbounds i32, i32* %29, i64 1
store i32 0, i32* %30
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 0)
%32 = tail call i32 @putchar(i32 10)
%33 = tail call i32 @putchar(i32 10)
%34 = tail call dereferenceable_or_null(16) i8* @malloc(i64 16)
%35 = getelementptr inbounds i32**, i32*** %7, i64 1
%36 = bitcast i32*** %35 to i8**
store i8* %34, i8** %36
%37 = tail call dereferenceable_or_null(8) i8* @malloc(i64 8)
%38 = bitcast i8* %34 to i8**
store i8* %37, i8** %38
%39 = bitcast i8* %37 to i32*
store i32 0, i32* %39
%40 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 0)
%41 = load i32**, i32*** %35
%42 = load i32*, i32** %41
%43 = getelementptr inbounds i32, i32* %42, i64 1
store i32 0, i32* %43
%44 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 0)
%45 = tail call i32 @putchar(i32 10)
%46 = tail call dereferenceable_or_null(8) i8* @malloc(i64 8)
%47 = load i32**, i32*** %35
%48 = getelementptr inbounds i32*, i32** %47, i64 1
%49 = bitcast i32** %48 to i8**
store i8* %46, i8** %49
%50 = load i32**, i32*** %35
%51 = getelementptr inbounds i32*, i32** %50, i64 1
%52 = load i32*, i32** %51
store i32 0, i32* %52
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 0)
%54 = load i32**, i32*** %35
%55 = getelementptr inbounds i32*, i32** %54, i64 1
%56 = load i32*, i32** %55
%57 = getelementptr inbounds i32, i32* %56, i64 1
store i32 0, i32* %57
%58 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 0)
%59 = tail call i32 @putchar(i32 10)
%60 = tail call i32 @putchar(i32 10)
%61 = tail call dereferenceable_or_null(16) i8* @malloc(i64 16)
%62 = getelementptr inbounds i32***, i32**** %4, i64 1
%63 = bitcast i32**** %62 to i8**
store i8* %61, i8** %63
%64 = bitcast i8* %61 to i32***
%65 = tail call dereferenceable_or_null(16) i8* @malloc(i64 16)
%66 = bitcast i8* %61 to i8**
store i8* %65, i8** %66
%67 = tail call dereferenceable_or_null(8) i8* @malloc(i64 8)
%68 = bitcast i8* %65 to i8**
store i8* %67, i8** %68
%69 = bitcast i8* %67 to i32*
store i32 0, i32* %69
%70 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 0)
%71 = load i32**, i32*** %64
%72 = load i32*, i32** %71
%73 = getelementptr inbounds i32, i32* %72, i64 1
store i32 0, i32* %73
%74 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 0)
%75 = tail call i32 @putchar(i32 10)
%76 = tail call dereferenceable_or_null(8) i8* @malloc(i64 8)
%77 = load i32**, i32*** %64
%78 = getelementptr inbounds i32*, i32** %77, i64 1
%79 = bitcast i32** %78 to i8**
store i8* %76, i8** %79
%80 = load i32**, i32*** %64
%81 = getelementptr inbounds i32*, i32** %80, i64 1
%82 = load i32*, i32** %81
store i32 0, i32* %82
%83 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 0)
%84 = load i32**, i32*** %64
%85 = getelementptr inbounds i32*, i32** %84, i64 1
%86 = load i32*, i32** %85
%87 = getelementptr inbounds i32, i32* %86, i64 1
store i32 0, i32* %87
%88 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 0)
%89 = tail call i32 @putchar(i32 10)
%90 = tail call i32 @putchar(i32 10)
%91 = tail call dereferenceable_or_null(16) i8* @malloc(i64 16)
%92 = getelementptr inbounds i32**, i32*** %64, i64 1
%93 = bitcast i32*** %92 to i8**
store i8* %91, i8** %93
%94 = tail call dereferenceable_or_null(8) i8* @malloc(i64 8)
%95 = bitcast i8* %91 to i8**
store i8* %94, i8** %95
%96 = bitcast i8* %94 to i32*
store i32 0, i32* %96
%97 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 0)
%98 = load i32**, i32*** %92
%99 = load i32*, i32** %98
%100 = getelementptr inbounds i32, i32* %99, i64 1
store i32 0, i32* %100
%101 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 0)
%102 = tail call i32 @putchar(i32 10)
%103 = tail call dereferenceable_or_null(8) i8* @malloc(i64 8)
%104 = load i32**, i32*** %92
%105 = getelementptr inbounds i32*, i32** %104, i64 1
%106 = bitcast i32** %105 to i8**
store i8* %103, i8** %106
%107 = load i32**, i32*** %92
%108 = getelementptr inbounds i32*, i32** %107, i64 1
%109 = load i32*, i32** %108
store i32 0, i32* %109
%110 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 0)
%111 = load i32**, i32*** %92
%112 = getelementptr inbounds i32*, i32** %111, i64 1
%113 = load i32*, i32** %112
%114 = getelementptr inbounds i32, i32* %113, i64 1
store i32 0, i32* %114
%115 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 0)
%116 = tail call i32 @putchar(i32 10)
%117 = tail call i32 @putchar(i32 10)
%118 = load i32***, i32**** %4
%119 = bitcast i32*** %118 to i8***
%120 = load i8**, i8*** %119
%121 = load i8*, i8** %120
tail call void @free(i8* %121)
%122 = load i32**, i32*** %118
%123 = getelementptr inbounds i32*, i32** %122, i64 1
%124 = bitcast i32** %123 to i8**
%125 = load i8*, i8** %124
tail call void @free(i8* %125)
%126 = bitcast i32*** %118 to i8**
%127 = load i8*, i8** %126
tail call void @free(i8* %127)
%128 = getelementptr inbounds i32**, i32*** %118, i64 1
%129 = bitcast i32*** %128 to i8***
%130 = load i8**, i8*** %129
%131 = load i8*, i8** %130
tail call void @free(i8* %131)
%132 = load i32**, i32*** %128
%133 = getelementptr inbounds i32*, i32** %132, i64 1
%134 = bitcast i32** %133 to i8**
%135 = load i8*, i8** %134
tail call void @free(i8* %135)
%136 = bitcast i32*** %128 to i8**
%137 = load i8*, i8** %136
tail call void @free(i8* %137)
%138 = bitcast i32*** %118 to i8*
tail call void @free(i8* %138)
%139 = getelementptr inbounds i32***, i32**** %4, i64 1
%140 = load i32***, i32**** %139
%141 = bitcast i32*** %140 to i8***
%142 = load i8**, i8*** %141
%143 = load i8*, i8** %142
tail call void @free(i8* %143)
%144 = load i32**, i32*** %140
%145 = getelementptr inbounds i32*, i32** %144, i64 1
%146 = bitcast i32** %145 to i8**
%147 = load i8*, i8** %146
tail call void @free(i8* %147)
%148 = bitcast i32*** %140 to i8**
%149 = load i8*, i8** %148
tail call void @free(i8* %149)
%150 = getelementptr inbounds i32**, i32*** %140, i64 1
%151 = bitcast i32*** %150 to i8***
%152 = load i8**, i8*** %151
%153 = load i8*, i8** %152
tail call void @free(i8* %153)
%154 = load i32**, i32*** %150
%155 = getelementptr inbounds i32*, i32** %154, i64 1
%156 = bitcast i32** %155 to i8**
%157 = load i8*, i8** %156
tail call void @free(i8* %157)
%158 = bitcast i32*** %150 to i8**
%159 = load i8*, i8** %158
tail call void @free(i8* %159)
%160 = bitcast i32*** %140 to i8*
tail call void @free(i8* %160)
tail call void @free(i8* %3)
ret i32 0
}