#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 */
typedef struct TYPE_8__ TYPE_4__;
typedef struct TYPE_7__ TYPE_3__;
typedef struct TYPE_6__ TYPE_2__;
typedef struct TYPE_5__ TYPE_1__;

/* Type definitions */
struct TYPE_8__ {
  int member_0;
  int member_1;
  int member_2;
  int member_3;
};
struct TYPE_7__ {
  int member_0;
  int member_1;
  int member_2;
  int member_3;
};
struct TYPE_6__ {
  int member_0;
  int member_1;
  int member_2;
  int member_3;
};
struct TYPE_5__ {
  int member_0;
  int member_1;
  int member_2;
  int member_3;
};

/* Variables and functions */
int /*<<< orphan*/ getch();
int /*<<< orphan*/ printf(char *, ...);
int main() {
  int matrix[3][4][4] = {
      {{1, 2, 3, 4}, {5, 6, 7, 8}, {9, 10, 11, 12}, {13, 14, 15, 16}},
      {{2, 4, 6, 8}, {10, 12, 14, 16}, {18, 20, 22, 24}, {26, 28, 30, 32}},
      {{0}, {0}, {0}, {0}}};
  int x = 0, y = 0, z = 2;
  for (y = 0; y < 4; y++)
    for (x = 0; x < 4; x++)
      matrix[z][y][x] = matrix[z - 1][y][x] + matrix[z - 2][y][x];
  for (z = 0; z < 3; z++) {
    switch (z) {
    case 0:
      printf("First Matrix:\n\n");
      break;
    case 1:
      printf("Second Matrix:\n\n");
      break;
    case 2:
      printf("Sum of the matrices:\n\n");
      break;
    }
    for (y = 0; y < 4; y++) {
      for (x = 0; x < 4; x++)
        printf("%d\t", matrix[z][y][x]);
      printf("\n");
    }
    printf("\n");
  }
  getch();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0xd0(%rbp),%rdi
lea    0xeb0(%rip),%rsi
mov    $0xc0,%edx
call   1040 <memcpy@plt>
movl   $0x0,-0xd4(%rbp)
movl   $0x0,-0xd8(%rbp)
movl   $0x2,-0xdc(%rbp)
movl   $0x0,-0xd8(%rbp)
cmpl   $0x4,-0xd8(%rbp)
jge    1264 <main+0x134>
movl   $0x0,-0xd4(%rbp)
cmpl   $0x4,-0xd4(%rbp)
jge    124b <main+0x11b>
mov    -0xdc(%rbp),%eax
sub    $0x1,%eax
movslq %eax,%rcx
lea    -0xd0(%rbp),%rax
shl    $0x6,%rcx
add    %rcx,%rax
movslq -0xd8(%rbp),%rcx
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0xd4(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    -0xdc(%rbp),%eax
sub    $0x2,%eax
movslq %eax,%rcx
lea    -0xd0(%rbp),%rax
shl    $0x6,%rcx
add    %rcx,%rax
movslq -0xd8(%rbp),%rcx
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0xd4(%rbp),%rcx
add    (%rax,%rcx,4),%edx
movslq -0xdc(%rbp),%rcx
lea    -0xd0(%rbp),%rax
shl    $0x6,%rcx
add    %rcx,%rax
movslq -0xd8(%rbp),%rcx
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0xd4(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
jmp    1199 <main+0x69>
jmp    1250 <main+0x120>
mov    -0xd8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd8(%rbp)
jmp    1182 <main+0x52>
movl   $0x0,-0xdc(%rbp)
cmpl   $0x3,-0xdc(%rbp)
jge    13b1 <main+0x281>
mov    -0xdc(%rbp),%eax
mov    %eax,-0xe0(%rbp)
test   %eax,%eax
je     12bc <main+0x18c>
jmp    1294 <main+0x164>
mov    -0xe0(%rbp),%eax
sub    $0x1,%eax
je     12cf <main+0x19f>
jmp    12a8 <main+0x178>
mov    -0xe0(%rbp),%eax
sub    $0x2,%eax
je     12e2 <main+0x1b2>
jmp    12f0 <main+0x1c0>
lea    0xdfd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12f0 <main+0x1c0>
lea    0xdfa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12f0 <main+0x1c0>
lea    0xdf8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0xd8(%rbp)
cmpl   $0x4,-0xd8(%rbp)
jge    138f <main+0x25f>
movl   $0x0,-0xd4(%rbp)
cmpl   $0x4,-0xd4(%rbp)
jge    136d <main+0x23d>
movslq -0xdc(%rbp),%rcx
lea    -0xd0(%rbp),%rax
shl    $0x6,%rcx
add    %rcx,%rax
movslq -0xd8(%rbp),%rcx
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0xd4(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xda6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
jmp    1311 <main+0x1e1>
lea    0xd82(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xd8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd8(%rbp)
jmp    12fa <main+0x1ca>
lea    0xd60(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xdc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xdc(%rbp)
jmp    126e <main+0x13e>
mov    $0x0,%al
call   1050 <getch@plt>
xor    %eax,%eax
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xc0,%rsp
movaps 0xf59(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xf3d(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xf21(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xf05(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xee9(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xecd(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xeb1(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xe95(%rip),%xmm0
movaps %xmm0,(%rsp)
movaps 0xe4a(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xe4b(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xe4c(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xe4d(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
lea    0x3c(%rsp),%rbx
lea    0xf09(%rip),%r15
lea    0xf0e(%rip),%r14
mov    %r15,%r12
xor    %r13d,%r13d
jmp    1323 <main+0x1e3>
nopl   0x0(%rax)
mov    -0x3c(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x38(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x34(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x30(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    -0x2c(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x28(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x24(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x20(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    -0x1c(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x18(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x14(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x10(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    -0xc(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x8(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x4(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r13
add    $0x4,%r12
add    $0x40,%rbx
cmp    $0x3,%r13
je     133e <main+0x1fe>
cmp    $0x2,%r13d
ja     1210 <main+0xd0>
movslq (%r12),%rdi
add    %r15,%rdi
call   1040 <puts@plt>
jmp    1210 <main+0xd0>
xor    %eax,%eax
call   1060 <getch@plt>
xor    %eax,%eax
add    $0xc0,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.matrix = [3 x [4 x [4 x i32]]] [[4 x [4 x i32]] [[4 x i32] [i32 1, i32 2, i32 3, i32 4], [4 x i32] [i32 5, i32 6, i32 7, i32 8], [4 x i32] [i32 9, i32 10, i32 11, i32 12], [4 x i32] [i32 13, i32 14, i32 15, i32 16]], [4 x [4 x i32]] [[4 x i32] [i32 2, i32 4, i32 6, i32 8], [4 x i32] [i32 10, i32 12, i32 14, i32 16], [4 x i32] [i32 18, i32 20, i32 22, i32 24], [4 x i32] [i32 26, i32 28, i32 30, i32 32]], [4 x [4 x i32]] zeroinitializer]
@.str = [16 x i8] c"First Matrix:\0A\0A\00"
@.str.1 = [17 x i8] c"Second Matrix:\0A\0A\00"
@.str.2 = [23 x i8] c"Sum of the matrices:\0A\0A\00"
@.str.3 = [4 x i8] c"%d\09\00"
@.str.4 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [3 x [4 x [4 x i32]]]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
%6 = bitcast [3 x [4 x [4 x i32]]]* %2 to i8*
store i32 0, i32* %3
store i32 0, i32* %4
store i32 2, i32* %5
store i32 0, i32* %4
br label %7
7: ; preds = %51, %0
%8 = load i32, i32* %4
%9 = icmp slt i32 %8, 4
br i1 %9, label %10, label %54
10: ; preds = %7
store i32 0, i32* %3
br label %11
11: ; preds = %47, %10
%12 = load i32, i32* %3
%13 = icmp slt i32 %12, 4
br i1 %13, label %14, label %50
14: ; preds = %11
%15 = load i32, i32* %5
%16 = sub nsw i32 %15, 1
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [3 x [4 x [4 x i32]]], [3 x [4 x [4 x i32]]]* %2, i64 0, i64 %17
%19 = load i32, i32* %4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %18, i64 0, i64 %20
%22 = load i32, i32* %3
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [4 x i32], [4 x i32]* %21, i64 0, i64 %23
%25 = load i32, i32* %24
%26 = load i32, i32* %5
%27 = sub nsw i32 %26, 2
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [3 x [4 x [4 x i32]]], [3 x [4 x [4 x i32]]]* %2, i64 0, i64 %28
%30 = load i32, i32* %4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %29, i64 0, i64 %31
%33 = load i32, i32* %3
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [4 x i32], [4 x i32]* %32, i64 0, i64 %34
%36 = load i32, i32* %35
%37 = add nsw i32 %25, %36
%38 = load i32, i32* %5
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [3 x [4 x [4 x i32]]], [3 x [4 x [4 x i32]]]* %2, i64 0, i64 %39
%41 = load i32, i32* %4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %40, i64 0, i64 %42
%44 = load i32, i32* %3
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [4 x i32], [4 x i32]* %43, i64 0, i64 %45
store i32 %37, i32* %46
br label %47
47: ; preds = %14
%48 = load i32, i32* %3
%49 = add nsw i32 %48, 1
store i32 %49, i32* %3
br label %11
50: ; preds = %11
br label %51
51: ; preds = %50
%52 = load i32, i32* %4
%53 = add nsw i32 %52, 1
store i32 %53, i32* %4
br label %7
54: ; preds = %7
store i32 0, i32* %5
br label %55
55: ; preds = %96, %54
%56 = load i32, i32* %5
%57 = icmp slt i32 %56, 3
br i1 %57, label %58, label %99
58: ; preds = %55
%59 = load i32, i32* %5
switch i32 %59, label %66 [
i32 0, label %60
i32 1, label %62
i32 2, label %64
]
60: ; preds = %58
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
br label %66
62: ; preds = %58
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
br label %66
64: ; preds = %58
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
br label %66
66: ; preds = %58, %64, %62, %60
store i32 0, i32* %4
br label %67
67: ; preds = %91, %66
%68 = load i32, i32* %4
%69 = icmp slt i32 %68, 4
br i1 %69, label %70, label %94
70: ; preds = %67
store i32 0, i32* %3
br label %71
71: ; preds = %86, %70
%72 = load i32, i32* %3
%73 = icmp slt i32 %72, 4
br i1 %73, label %74, label %89
74: ; preds = %71
%75 = load i32, i32* %5
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [3 x [4 x [4 x i32]]], [3 x [4 x [4 x i32]]]* %2, i64 0, i64 %76
%78 = load i32, i32* %4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %77, i64 0, i64 %79
%81 = load i32, i32* %3
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [4 x i32], [4 x i32]* %80, i64 0, i64 %82
%84 = load i32, i32* %83
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %84)
br label %86
86: ; preds = %74
%87 = load i32, i32* %3
%88 = add nsw i32 %87, 1
store i32 %88, i32* %3
br label %71
89: ; preds = %71
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %91
91: ; preds = %89
%92 = load i32, i32* %4
%93 = add nsw i32 %92, 1
store i32 %93, i32* %4
br label %67
94: ; preds = %67
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %96
96: ; preds = %94
%97 = load i32, i32* %5
%98 = add nsw i32 %97, 1
store i32 %98, i32* %5
br label %55
99: ; preds = %55
%100 = call i32 (...) @getch()
ret i32 0
}

LLVM IR (-O2):
@__const.main.matrix = [3 x [4 x [4 x i32]]] [[4 x [4 x i32]] [[4 x i32] [i32 1, i32 2, i32 3, i32 4], [4 x i32] [i32 5, i32 6, i32 7, i32 8], [4 x i32] [i32 9, i32 10, i32 11, i32 12], [4 x i32] [i32 13, i32 14, i32 15, i32 16]], [4 x [4 x i32]] [[4 x i32] [i32 2, i32 4, i32 6, i32 8], [4 x i32] [i32 10, i32 12, i32 14, i32 16], [4 x i32] [i32 18, i32 20, i32 22, i32 24], [4 x i32] [i32 26, i32 28, i32 30, i32 32]], [4 x [4 x i32]] zeroinitializer]
@.str.3 = [4 x i8] c"%d\09\00"
@str = [22 x i8] c"Sum of the matrices:\0A\00"
@str.5 = [16 x i8] c"Second Matrix:\0A\00"
@str.6 = [15 x i8] c"First Matrix:\0A\00"
@reltable.main = [3 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @str.6 to i64), i64 ptrtoint ([3 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @str.5 to i64), i64 ptrtoint ([3 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @str to i64), i64 ptrtoint ([3 x i32]* @reltable.main to i64)) to i32)]
define i32 @main() {
%1 = alloca [3 x [4 x [4 x i32]]]
%2 = bitcast [3 x [4 x [4 x i32]]]* %1 to i8*
%3 = getelementptr inbounds [3 x [4 x [4 x i32]]], [3 x [4 x [4 x i32]]]* %1, i64 0, i64 2, i64 0, i64 0
%4 = bitcast i32* %3 to <4 x i32>*
store <4 x i32> <i32 3, i32 6, i32 9, i32 12>, <4 x i32>* %4
%5 = getelementptr inbounds [3 x [4 x [4 x i32]]], [3 x [4 x [4 x i32]]]* %1, i64 0, i64 2, i64 1, i64 0
%6 = bitcast i32* %5 to <4 x i32>*
store <4 x i32> <i32 15, i32 18, i32 21, i32 24>, <4 x i32>* %6
%7 = getelementptr inbounds [3 x [4 x [4 x i32]]], [3 x [4 x [4 x i32]]]* %1, i64 0, i64 2, i64 2, i64 0
%8 = bitcast i32* %7 to <4 x i32>*
store <4 x i32> <i32 27, i32 30, i32 33, i32 36>, <4 x i32>* %8
%9 = getelementptr inbounds [3 x [4 x [4 x i32]]], [3 x [4 x [4 x i32]]]* %1, i64 0, i64 2, i64 3, i64 0
%10 = bitcast i32* %9 to <4 x i32>*
store <4 x i32> <i32 39, i32 42, i32 45, i32 48>, <4 x i32>* %10
br label %11
11: ; preds = %0, %21
%12 = phi i64 [ 0, %0 ], [ %75, %21 ]
%13 = trunc i64 %12 to i32
%14 = icmp ult i32 %13, 3
br i1 %14, label %15, label %21
15: ; preds = %11
%16 = shl i64 %12, 32
%17 = ashr exact i64 %16, 32
%18 = shl i64 %17, 2
%19 = call i8* @llvm.load.relative.i64(i8* bitcast ([3 x i32]* @reltable.main to i8*), i64 %18)
%20 = tail call i32 @puts(i8* dereferenceable(1) %19)
br label %21
21: ; preds = %11, %15
%22 = getelementptr inbounds [3 x [4 x [4 x i32]]], [3 x [4 x [4 x i32]]]* %1, i64 0, i64 %12, i64 0, i64 0
%23 = load i32, i32* %22
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %23)
%25 = getelementptr inbounds [3 x [4 x [4 x i32]]], [3 x [4 x [4 x i32]]]* %1, i64 0, i64 %12, i64 0, i64 1
%26 = load i32, i32* %25
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %26)
%28 = getelementptr inbounds [3 x [4 x [4 x i32]]], [3 x [4 x [4 x i32]]]* %1, i64 0, i64 %12, i64 0, i64 2
%29 = load i32, i32* %28
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %29)
%31 = getelementptr inbounds [3 x [4 x [4 x i32]]], [3 x [4 x [4 x i32]]]* %1, i64 0, i64 %12, i64 0, i64 3
%32 = load i32, i32* %31
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %32)
%34 = tail call i32 @putchar(i32 10)
%35 = getelementptr inbounds [3 x [4 x [4 x i32]]], [3 x [4 x [4 x i32]]]* %1, i64 0, i64 %12, i64 1, i64 0
%36 = load i32, i32* %35
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %36)
%38 = getelementptr inbounds [3 x [4 x [4 x i32]]], [3 x [4 x [4 x i32]]]* %1, i64 0, i64 %12, i64 1, i64 1
%39 = load i32, i32* %38
%40 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %39)
%41 = getelementptr inbounds [3 x [4 x [4 x i32]]], [3 x [4 x [4 x i32]]]* %1, i64 0, i64 %12, i64 1, i64 2
%42 = load i32, i32* %41
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %42)
%44 = getelementptr inbounds [3 x [4 x [4 x i32]]], [3 x [4 x [4 x i32]]]* %1, i64 0, i64 %12, i64 1, i64 3
%45 = load i32, i32* %44
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %45)
%47 = tail call i32 @putchar(i32 10)
%48 = getelementptr inbounds [3 x [4 x [4 x i32]]], [3 x [4 x [4 x i32]]]* %1, i64 0, i64 %12, i64 2, i64 0
%49 = load i32, i32* %48
%50 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %49)
%51 = getelementptr inbounds [3 x [4 x [4 x i32]]], [3 x [4 x [4 x i32]]]* %1, i64 0, i64 %12, i64 2, i64 1
%52 = load i32, i32* %51
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %52)
%54 = getelementptr inbounds [3 x [4 x [4 x i32]]], [3 x [4 x [4 x i32]]]* %1, i64 0, i64 %12, i64 2, i64 2
%55 = load i32, i32* %54
%56 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %55)
%57 = getelementptr inbounds [3 x [4 x [4 x i32]]], [3 x [4 x [4 x i32]]]* %1, i64 0, i64 %12, i64 2, i64 3
%58 = load i32, i32* %57
%59 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %58)
%60 = tail call i32 @putchar(i32 10)
%61 = getelementptr inbounds [3 x [4 x [4 x i32]]], [3 x [4 x [4 x i32]]]* %1, i64 0, i64 %12, i64 3, i64 0
%62 = load i32, i32* %61
%63 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %62)
%64 = getelementptr inbounds [3 x [4 x [4 x i32]]], [3 x [4 x [4 x i32]]]* %1, i64 0, i64 %12, i64 3, i64 1
%65 = load i32, i32* %64
%66 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %65)
%67 = getelementptr inbounds [3 x [4 x [4 x i32]]], [3 x [4 x [4 x i32]]]* %1, i64 0, i64 %12, i64 3, i64 2
%68 = load i32, i32* %67
%69 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %68)
%70 = getelementptr inbounds [3 x [4 x [4 x i32]]], [3 x [4 x [4 x i32]]]* %1, i64 0, i64 %12, i64 3, i64 3
%71 = load i32, i32* %70
%72 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %71)
%73 = tail call i32 @putchar(i32 10)
%74 = tail call i32 @putchar(i32 10)
%75 = add nuw nsw i64 %12, 1
%76 = icmp eq i64 %75, 3
br i1 %76, label %77, label %11
77: ; preds = %21
%78 = tail call i32 (...) @getch()
ret i32 0
}