#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, int);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, int *);
int main(void) {
  int d = 0, date = 1, month = 0, year = 1900, np, i;
  int array[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
  int final[7];
  FILE *fin, *fout;
  fin = fopen("friday.in", "r");
  fout = fopen("friday.out", "w");
  fscanf(fin, "%d", &np);
  for (i = 0; i < 7; i++)
    final[i] = 0;
  while (year < 1900 + np) {
    if (d == 7)
      d = 0;
    if (year % 400 == 0 || (year % 100 != 0 && year % 4 == 0)) {
      array[1] = 29;
    } else {
      array[1] = 28;
    }
    if (date == array[month]) {
      date = 1;
      month++;
      if (month == 12) {
        month = 0;
        year++;
      }
    } else {
      date++;
    }
    if (date == 13) {
      final[d] += 1;
    }
    d++;
  }
  for (i = 4; i < 7; i++) {
    fprintf(fout, "%d ", final[i]);
  }
  for (i = 0; i < 3; i++) {
    fprintf(fout, "%d ", final[i]);
  }
  fprintf(fout, "%d\n", final[3]);
  fclose(fin);
  fclose(fout);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x76c,-0x14(%rbp)
lea    -0x50(%rbp),%rdi
lea    0xe77(%rip),%rsi
mov    $0x30,%edx
call   1060 <memcpy@plt>
lea    0xe96(%rip),%rdi
lea    0xe99(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x78(%rbp)
lea    0xe8b(%rip),%rdi
lea    0xe8f(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x80(%rbp)
mov    -0x78(%rbp),%rdi
lea    0xe7d(%rip),%rsi
lea    -0x18(%rbp),%rdx
call   1040 <fscanf@plt>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x7,-0x1c(%rbp)
jge    1200 <main+0xb0>
movslq -0x1c(%rbp),%rax
movl   $0x0,-0x70(%rbp,%rax,4)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11dc <main+0x8c>
jmp    1205 <main+0xb5>
mov    -0x14(%rbp),%eax
mov    -0x18(%rbp),%ecx
add    $0x76c,%ecx
cmp    %ecx,%eax
jge    12e9 <main+0x199>
cmpl   $0x7,-0x8(%rbp)
jne    122a <main+0xda>
movl   $0x0,-0x8(%rbp)
mov    -0x14(%rbp),%eax
mov    $0x190,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1266 <main+0x116>
mov    -0x14(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1272 <main+0x122>
mov    -0x14(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1272 <main+0x122>
movl   $0x1d,-0x4c(%rbp)
jmp    1279 <main+0x129>
movl   $0x1c,-0x4c(%rbp)
mov    -0xc(%rbp),%eax
movslq -0x10(%rbp),%rcx
cmp    -0x50(%rbp,%rcx,4),%eax
jne    12b9 <main+0x169>
movl   $0x1,-0xc(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
cmpl   $0xc,-0x10(%rbp)
jne    12b4 <main+0x164>
movl   $0x0,-0x10(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12c2 <main+0x172>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0xd,-0xc(%rbp)
jne    12db <main+0x18b>
movslq -0x8(%rbp),%rax
mov    -0x70(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x70(%rbp,%rax,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1205 <main+0xb5>
movl   $0x4,-0x1c(%rbp)
cmpl   $0x7,-0x1c(%rbp)
jge    1320 <main+0x1d0>
mov    -0x80(%rbp),%rdi
movslq -0x1c(%rbp),%rax
mov    -0x70(%rbp,%rax,4),%edx
lea    0xd3f(%rip),%rsi
call   1050 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12f0 <main+0x1a0>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x3,-0x1c(%rbp)
jge    1357 <main+0x207>
mov    -0x80(%rbp),%rdi
movslq -0x1c(%rbp),%rax
mov    -0x70(%rbp,%rax,4),%edx
lea    0xd08(%rip),%rsi
call   1050 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1327 <main+0x1d7>
mov    -0x80(%rbp),%rdi
mov    -0x64(%rbp),%edx
lea    0xceb(%rip),%rsi
call   1050 <fprintf@plt>
mov    -0x78(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x80(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
movaps 0xecb(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xeaf(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xe93(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
lea    0xeb7(%rip),%rdi
lea    0xeba(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,%rbx
lea    0xead(%rip),%rdi
lea    0xeb1(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,%r13
lea    0xea4(%rip),%rsi
lea    0xc(%rsp),%rdx
mov    %rbx,0x38(%rsp)
mov    %rbx,%rdi
call   1040 <fscanf@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,0x10(%rsp)
movups %xmm0,0x1c(%rsp)
mov    0xc(%rsp),%eax
test   %eax,%eax
jle    12a1 <main+0x161>
add    $0x76c,%eax
mov    $0x76c,%ecx
mov    $0x1,%ebp
xor    %r8d,%r8d
xor    %esi,%esi
xor    %edi,%edi
jmp    120d <main+0xcd>
nopl   0x0(%rax,%rax,1)
add    $0x1,%edi
xor    %edx,%edx
cmp    $0xc,%edi
sete   %dl
cmove  %r8d,%edi
add    %edx,%ecx
mov    $0x1,%ebp
add    $0x1,%esi
cmp    %eax,%ecx
jge    1279 <main+0x139>
cmp    $0x7,%esi
cmove  %r8d,%esi
imul   $0xc28f5c29,%ecx,%edx
add    $0x51eb850,%edx
mov    %edx,%ebx
ror    $0x4,%ebx
cmp    $0xa3d70b,%ebx
jb     1250 <main+0x110>
ror    $0x2,%edx
cmp    $0x28f5c29,%edx
setae  %dl
test   $0x3,%cl
sete   %bl
and    %dl,%bl
movzbl %bl,%ebx
or     $0x1c,%ebx
jmp    1255 <main+0x115>
nopl   0x0(%rax)
mov    $0x1d,%ebx
mov    %ebx,0x44(%rsp)
movslq %edi,%rdx
cmp    0x40(%rsp,%rdx,4),%ebp
je     11f0 <main+0xb0>
add    $0x1,%ebp
cmp    $0xd,%ebp
jne    1206 <main+0xc6>
movslq %esi,%rdx
addl   $0x1,0x10(%rsp,%rdx,4)
mov    $0xd,%ebp
jmp    1206 <main+0xc6>
mov    0x20(%rsp),%edx
mov    0x24(%rsp),%r15d
mov    0x28(%rsp),%r14d
mov    0x10(%rsp),%ebp
mov    0x14(%rsp),%ebx
mov    0x18(%rsp),%eax
mov    %eax,0x4(%rsp)
mov    0x1c(%rsp),%eax
mov    %eax,0x8(%rsp)
jmp    12bd <main+0x17d>
movl   $0x0,0x8(%rsp)
movl   $0x0,0x4(%rsp)
xor    %ebx,%ebx
xor    %ebp,%ebp
xor    %r14d,%r14d
xor    %r15d,%r15d
xor    %edx,%edx
lea    0xd88(%rip),%r12
mov    %r13,%rdi
mov    %r12,%rsi
call   1050 <fprintf@plt>
mov    %r13,%rdi
mov    %r12,%rsi
mov    %r15d,%edx
call   1050 <fprintf@plt>
mov    %r13,%rdi
mov    %r12,%rsi
mov    %r14d,%edx
call   1050 <fprintf@plt>
mov    %r13,%rdi
mov    %r12,%rsi
mov    %ebp,%edx
call   1050 <fprintf@plt>
mov    %r13,%rdi
mov    %r12,%rsi
mov    %ebx,%edx
call   1050 <fprintf@plt>
mov    %r13,%rdi
mov    %r12,%rsi
mov    0x4(%rsp),%edx
call   1050 <fprintf@plt>
lea    0xd35(%rip),%rsi
mov    %r13,%rdi
mov    0x8(%rsp),%edx
call   1050 <fprintf@plt>
mov    0x38(%rsp),%rdi
call   1030 <fclose@plt>
mov    %r13,%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.array = [12 x i32] [i32 31, i32 28, i32 31, i32 30, i32 31, i32 30, i32 31, i32 31, i32 30, i32 31, i32 30, i32 31]
@.str = [10 x i8] c"friday.in\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [11 x i8] c"friday.out\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [4 x i8] c"%d \00"
@.str.6 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca [12 x i32]
%9 = alloca [7 x i32]
%10 = alloca i32*
%11 = alloca i32*
store i32 0, i32* %1
store i32 0, i32* %2
store i32 1, i32* %3
store i32 0, i32* %4
store i32 1900, i32* %5
%12 = bitcast [12 x i32]* %8 to i8*
%13 = call i32* @fopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %13, i32** %10
%14 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %14, i32** %11
%15 = load i32*, i32** %10
%16 = call i32 @fscanf(i32* %15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %6)
store i32 0, i32* %7
br label %17
17: ; preds = %24, %0
%18 = load i32, i32* %7
%19 = icmp slt i32 %18, 7
br i1 %19, label %20, label %27
20: ; preds = %17
%21 = load i32, i32* %7
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [7 x i32], [7 x i32]* %9, i64 0, i64 %22
store i32 0, i32* %23
br label %24
24: ; preds = %20
%25 = load i32, i32* %7
%26 = add nsw i32 %25, 1
store i32 %26, i32* %7
br label %17
27: ; preds = %17
br label %28
28: ; preds = %81, %27
%29 = load i32, i32* %5
%30 = load i32, i32* %6
%31 = add nsw i32 1900, %30
%32 = icmp slt i32 %29, %31
br i1 %32, label %33, label %84
33: ; preds = %28
%34 = load i32, i32* %2
%35 = icmp eq i32 %34, 7
br i1 %35, label %36, label %37
36: ; preds = %33
store i32 0, i32* %2
br label %37
37: ; preds = %36, %33
%38 = load i32, i32* %5
%39 = srem i32 %38, 400
%40 = icmp eq i32 %39, 0
br i1 %40, label %49, label %41
41: ; preds = %37
%42 = load i32, i32* %5
%43 = srem i32 %42, 100
%44 = icmp ne i32 %43, 0
br i1 %44, label %45, label %51
45: ; preds = %41
%46 = load i32, i32* %5
%47 = srem i32 %46, 4
%48 = icmp eq i32 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %45, %37
%50 = getelementptr inbounds [12 x i32], [12 x i32]* %8, i64 0, i64 1
store i32 29, i32* %50
br label %53
51: ; preds = %45, %41
%52 = getelementptr inbounds [12 x i32], [12 x i32]* %8, i64 0, i64 1
store i32 28, i32* %52
br label %53
53: ; preds = %51, %49
%54 = load i32, i32* %3
%55 = load i32, i32* %4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [12 x i32], [12 x i32]* %8, i64 0, i64 %56
%58 = load i32, i32* %57
%59 = icmp eq i32 %54, %58
br i1 %59, label %60, label %69
60: ; preds = %53
store i32 1, i32* %3
%61 = load i32, i32* %4
%62 = add nsw i32 %61, 1
store i32 %62, i32* %4
%63 = load i32, i32* %4
%64 = icmp eq i32 %63, 12
br i1 %64, label %65, label %68
65: ; preds = %60
store i32 0, i32* %4
%66 = load i32, i32* %5
%67 = add nsw i32 %66, 1
store i32 %67, i32* %5
br label %68
68: ; preds = %65, %60
br label %72
69: ; preds = %53
%70 = load i32, i32* %3
%71 = add nsw i32 %70, 1
store i32 %71, i32* %3
br label %72
72: ; preds = %69, %68
%73 = load i32, i32* %3
%74 = icmp eq i32 %73, 13
br i1 %74, label %75, label %81
75: ; preds = %72
%76 = load i32, i32* %2
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [7 x i32], [7 x i32]* %9, i64 0, i64 %77
%79 = load i32, i32* %78
%80 = add nsw i32 %79, 1
store i32 %80, i32* %78
br label %81
81: ; preds = %75, %72
%82 = load i32, i32* %2
%83 = add nsw i32 %82, 1
store i32 %83, i32* %2
br label %28
84: ; preds = %28
store i32 4, i32* %7
br label %85
85: ; preds = %95, %84
%86 = load i32, i32* %7
%87 = icmp slt i32 %86, 7
br i1 %87, label %88, label %98
88: ; preds = %85
%89 = load i32*, i32** %11
%90 = load i32, i32* %7
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [7 x i32], [7 x i32]* %9, i64 0, i64 %91
%93 = load i32, i32* %92
%94 = call i32 @fprintf(i32* %89, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %93)
br label %95
95: ; preds = %88
%96 = load i32, i32* %7
%97 = add nsw i32 %96, 1
store i32 %97, i32* %7
br label %85
98: ; preds = %85
store i32 0, i32* %7
br label %99
99: ; preds = %109, %98
%100 = load i32, i32* %7
%101 = icmp slt i32 %100, 3
br i1 %101, label %102, label %112
102: ; preds = %99
%103 = load i32*, i32** %11
%104 = load i32, i32* %7
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds [7 x i32], [7 x i32]* %9, i64 0, i64 %105
%107 = load i32, i32* %106
%108 = call i32 @fprintf(i32* %103, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %107)
br label %109
109: ; preds = %102
%110 = load i32, i32* %7
%111 = add nsw i32 %110, 1
store i32 %111, i32* %7
br label %99
112: ; preds = %99
%113 = load i32*, i32** %11
%114 = getelementptr inbounds [7 x i32], [7 x i32]* %9, i64 0, i64 3
%115 = load i32, i32* %114
%116 = call i32 @fprintf(i32* %113, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %115)
%117 = load i32*, i32** %10
%118 = call i32 @fclose(i32* %117)
%119 = load i32*, i32** %11
%120 = call i32 @fclose(i32* %119)
%121 = load i32, i32* %1
ret i32 %121
}

LLVM IR (-O2):
@__const.main.array = [12 x i32] [i32 31, i32 28, i32 31, i32 30, i32 31, i32 30, i32 31, i32 31, i32 30, i32 31, i32 30, i32 31]
@.str = [10 x i8] c"friday.in\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [11 x i8] c"friday.out\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [4 x i8] c"%d \00"
@.str.6 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [12 x i32]
%3 = alloca [7 x i32]
%4 = bitcast [7 x i32]* %3 to i8*
%5 = bitcast i32* %1 to i8*
%6 = bitcast [12 x i32]* %2 to i8*
%7 = tail call i32* @fopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%8 = tail call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 @fscanf(i32* %7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%10 = load i32, i32* %1
%11 = add nsw i32 %10, 1900
%12 = icmp sgt i32 %10, 0
br i1 %12, label %13, label %30
13: ; preds = %0
%14 = getelementptr inbounds [12 x i32], [12 x i32]* %2, i64 0, i64 1
br label %47
15: ; preds = %83
%16 = getelementptr inbounds [7 x i32], [7 x i32]* %3, i64 0, i64 4
%17 = load i32, i32* %16
%18 = getelementptr inbounds [7 x i32], [7 x i32]* %3, i64 0, i64 5
%19 = load i32, i32* %18
%20 = getelementptr inbounds [7 x i32], [7 x i32]* %3, i64 0, i64 6
%21 = load i32, i32* %20
%22 = getelementptr inbounds [7 x i32], [7 x i32]* %3, i64 0, i64 0
%23 = load i32, i32* %22
%24 = getelementptr inbounds [7 x i32], [7 x i32]* %3, i64 0, i64 1
%25 = load i32, i32* %24
%26 = getelementptr inbounds [7 x i32], [7 x i32]* %3, i64 0, i64 2
%27 = load i32, i32* %26
%28 = getelementptr inbounds [7 x i32], [7 x i32]* %3, i64 0, i64 3
%29 = load i32, i32* %28
br label %30
30: ; preds = %15, %0
%31 = phi i32 [ %29, %15 ], [ 0, %0 ]
%32 = phi i32 [ %27, %15 ], [ 0, %0 ]
%33 = phi i32 [ %25, %15 ], [ 0, %0 ]
%34 = phi i32 [ %23, %15 ], [ 0, %0 ]
%35 = phi i32 [ %21, %15 ], [ 0, %0 ]
%36 = phi i32 [ %19, %15 ], [ 0, %0 ]
%37 = phi i32 [ %17, %15 ], [ 0, %0 ]
%38 = call i32 @fprintf(i32* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %37)
%39 = call i32 @fprintf(i32* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %36)
%40 = call i32 @fprintf(i32* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %35)
%41 = call i32 @fprintf(i32* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %34)
%42 = call i32 @fprintf(i32* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %33)
%43 = call i32 @fprintf(i32* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %32)
%44 = call i32 @fprintf(i32* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %31)
%45 = call i32 @fclose(i32* %7)
%46 = call i32 @fclose(i32* %8)
ret i32 0
47: ; preds = %13, %83
%48 = phi i32 [ 0, %13 ], [ %87, %83 ]
%49 = phi i32 [ 1, %13 ], [ %84, %83 ]
%50 = phi i32 [ 1900, %13 ], [ %85, %83 ]
%51 = phi i32 [ 0, %13 ], [ %86, %83 ]
%52 = icmp eq i32 %48, 7
%53 = select i1 %52, i32 0, i32 %48
%54 = srem i32 %50, 400
%55 = icmp eq i32 %54, 0
br i1 %55, label %63, label %56
56: ; preds = %47
%57 = srem i32 %50, 100
%58 = icmp ne i32 %57, 0
%59 = and i32 %50, 3
%60 = icmp eq i32 %59, 0
%61 = and i1 %58, %60
%62 = select i1 %61, i32 29, i32 28
br label %63
63: ; preds = %56, %47
%64 = phi i32 [ 29, %47 ], [ %62, %56 ]
store i32 %64, i32* %14
%65 = sext i32 %51 to i64
%66 = getelementptr inbounds [12 x i32], [12 x i32]* %2, i64 0, i64 %65
%67 = load i32, i32* %66
%68 = icmp eq i32 %49, %67
br i1 %68, label %69, label %75
69: ; preds = %63
%70 = add nsw i32 %51, 1
%71 = icmp eq i32 %70, 12
%72 = select i1 %71, i32 0, i32 %70
%73 = zext i1 %71 to i32
%74 = add nsw i32 %50, %73
br label %83
75: ; preds = %63
%76 = add nsw i32 %49, 1
%77 = icmp eq i32 %76, 13
br i1 %77, label %78, label %83
78: ; preds = %75
%79 = sext i32 %53 to i64
%80 = getelementptr inbounds [7 x i32], [7 x i32]* %3, i64 0, i64 %79
%81 = load i32, i32* %80
%82 = add nsw i32 %81, 1
store i32 %82, i32* %80
br label %83
83: ; preds = %69, %78, %75
%84 = phi i32 [ 1, %69 ], [ 13, %78 ], [ %76, %75 ]
%85 = phi i32 [ %74, %69 ], [ %50, %78 ], [ %50, %75 ]
%86 = phi i32 [ %72, %69 ], [ %51, %78 ], [ %51, %75 ]
%87 = add nsw i32 %53, 1
%88 = icmp slt i32 %85, %11
br i1 %88, label %47, label %15
}