#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*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char const *, char *);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, int *, ...);
int /*<<< orphan*/ printf(char *);
int input_board(const char *board_file, int board[60], int piece_num[60],
                int *ply, int *turn, int *time_limit) {
  int i, piece;
  FILE *fp;
  fp = fopen(board_file, "rt");
  if (fp == NULL) {
    return 0;
  }
  fscanf(fp, "%d %d", ply, turn);
  for (i = 0; i < 15 - 1; i++)
    fscanf(fp, "%d", &piece_num[i]);
  for (i = 0; i < 60; i++)
    if (i % 6 == 0 || i % 6 == 5 || i / 6 == 0 || i / 6 == 9)
      board[i] = -1;
    else
      board[i] = 0;
  for (i = 0; i < 60; i++) {
    if (board[i] == -1)
      continue;
    fscanf(fp, "%d", &piece);
    if (piece < 0 || piece > 15) {
      printf("board data error\n");
      exit(1);
    }
    board[i] = piece;
  }
  fscanf(fp, "%d", time_limit);
  fclose(fp);
  return 1;
}


x86 assembly (clang, -O0):
<input_board>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xe85(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x48(%rbp)
jne    119b <input_board+0x4b>
movl   $0x0,-0x4(%rbp)
jmp    1336 <input_board+0x1e6>
mov    -0x48(%rbp),%rdi
mov    -0x28(%rbp),%rdx
mov    -0x30(%rbp),%rcx
lea    0xe55(%rip),%rsi
mov    $0x0,%al
call   1050 <fscanf@plt>
movl   $0x0,-0x3c(%rbp)
cmpl   $0xe,-0x3c(%rbp)
jge    11f5 <input_board+0xa5>
mov    -0x48(%rbp),%rdi
mov    -0x20(%rbp),%rdx
movslq -0x3c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdx
lea    0xe26(%rip),%rsi
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11bc <input_board+0x6c>
movl   $0x0,-0x3c(%rbp)
cmpl   $0x3c,-0x3c(%rbp)
jge    128c <input_board+0x13c>
mov    -0x3c(%rbp),%eax
mov    $0x6,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1256 <input_board+0x106>
mov    -0x3c(%rbp),%eax
mov    $0x6,%ecx
cltd
idiv   %ecx
cmp    $0x5,%edx
je     1256 <input_board+0x106>
mov    -0x3c(%rbp),%eax
mov    $0x6,%ecx
cltd
idiv   %ecx
cmp    $0x0,%eax
je     1256 <input_board+0x106>
mov    -0x3c(%rbp),%eax
mov    $0x6,%ecx
cltd
idiv   %ecx
cmp    $0x9,%eax
jne    126a <input_board+0x11a>
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movl   $0xffffffff,(%rax,%rcx,4)
jmp    1279 <input_board+0x129>
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
jmp    127e <input_board+0x12e>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11fc <input_board+0xac>
movl   $0x0,-0x3c(%rbp)
cmpl   $0x3c,-0x3c(%rbp)
jge    1310 <input_board+0x1c0>
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
cmpl   $0xffffffff,(%rax,%rcx,4)
jne    12b4 <input_board+0x164>
jmp    1302 <input_board+0x1b2>
mov    -0x48(%rbp),%rdi
lea    0xd47(%rip),%rsi
lea    -0x40(%rbp),%rdx
mov    $0x0,%al
call   1050 <fscanf@plt>
cmpl   $0x0,-0x40(%rbp)
jl     12de <input_board+0x18e>
cmpl   $0xf,-0x40(%rbp)
jle    12f4 <input_board+0x1a4>
lea    0xd24(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1070 <exit@plt>
mov    -0x40(%rbp),%edx
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1293 <input_board+0x143>
mov    -0x48(%rbp),%rdi
mov    -0x38(%rbp),%rdx
lea    0xce7(%rip),%rsi
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    -0x48(%rbp),%rdi
call   1030 <fclose@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<input_board>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r9,%rbx
mov    %r8,%r13
mov    %rcx,%rbp
mov    %rdx,%r12
mov    %rsi,%r15
lea    0xe8c(%rip),%rsi
call   1060 <fopen@plt>
test   %rax,%rax
je     13c7 <input_board+0x277>
mov    %rbx,0x10(%rsp)
lea    0xe75(%rip),%rsi
mov    %rax,%rbx
xor    %r14d,%r14d
mov    %rax,%rdi
mov    %rbp,%rdx
mov    %r13,%rcx
xor    %eax,%eax
call   1050 <fscanf@plt>
lea    0xe5b(%rip),%r13
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
lea    0x4(%r12),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <fscanf@plt>
lea    0x8(%r12),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <fscanf@plt>
lea    0xc(%r12),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <fscanf@plt>
lea    0x10(%r12),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <fscanf@plt>
lea    0x14(%r12),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <fscanf@plt>
lea    0x18(%r12),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <fscanf@plt>
lea    0x1c(%r12),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <fscanf@plt>
lea    0x20(%r12),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <fscanf@plt>
lea    0x24(%r12),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <fscanf@plt>
lea    0x28(%r12),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <fscanf@plt>
lea    0x2c(%r12),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <fscanf@plt>
lea    0x30(%r12),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <fscanf@plt>
add    $0x34,%r12
mov    %rbx,0x8(%rsp)
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    $0x1,%eax
mov    $0xaaaaaaab,%r10d
movabs $0xa8000000000002a,%r8
movabs $0x540000000000015,%r9
jmp    12e2 <input_board+0x192>
xor    %edi,%edi
nop
mov    %edi,(%r15,%rax,4)
add    $0x2,%rax
add    $0x2,%r14d
cmp    $0x3d,%rax
je     1346 <input_board+0x1f6>
mov    %r14d,%edx
mov    %rdx,%rcx
imul   %r10,%rcx
shr    $0x22,%rcx
add    %ecx,%ecx
lea    (%rcx,%rcx,2),%ebx
mov    %eax,%ebp
sub    %ebx,%ebp
mov    $0xffffffff,%edi
mov    %r14d,%ecx
mov    $0xffffffff,%esi
sub    %ebx,%ecx
je     1325 <input_board+0x1d5>
mov    $0xffffffff,%esi
cmp    $0x5,%ecx
je     1325 <input_board+0x1d5>
cmp    $0x3a,%r14d
ja     1342 <input_board+0x1f2>
bt     %rdx,%r9
mov    $0xffffffff,%esi
jae    1342 <input_board+0x1f2>
mov    %esi,-0x4(%r15,%rax,4)
test   %ebp,%ebp
je     12d0 <input_board+0x180>
cmp    $0x5,%ebp
je     12d0 <input_board+0x180>
cmp    $0x3b,%eax
ja     12cd <input_board+0x17d>
mov    %eax,%ecx
bt     %rcx,%r8
jb     12d0 <input_board+0x180>
jmp    12cd <input_board+0x17d>
xor    %esi,%esi
jmp    1325 <input_board+0x1d5>
lea    0xcb9(%rip),%r12
lea    0x4(%rsp),%r13
xor    %ebp,%ebp
mov    0x10(%rsp),%r14
mov    0x8(%rsp),%rbx
jmp    136e <input_board+0x21e>
mov    %eax,(%r15,%rbp,4)
add    $0x1,%rbp
cmp    $0x3c,%rbp
je     13a4 <input_board+0x254>
cmpl   $0xffffffff,(%r15,%rbp,4)
je     1364 <input_board+0x214>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    0x4(%rsp),%eax
cmp    $0x10,%eax
jb     1360 <input_board+0x210>
lea    0xc74(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1070 <exit@plt>
lea    0xc5b(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
call   1040 <fclose@plt>
mov    $0x1,%eax
jmp    13c9 <input_board+0x279>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"rt\00"
@.str.1 = [6 x i8] c"%d %d\00"
@.str.2 = [3 x i8] c"%d\00"
@str = [17 x i8] c"board data error\00"
define i32 @input_board(i8* nocapture %0, i32* nocapture %1, i32* %2, i32* %3, i32* %4, i32* %5) {
%7 = alloca i32
%8 = bitcast i32* %7 to i8*
%9 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%10 = icmp eq i32* %9, null
br i1 %10, label %82, label %11
11: ; preds = %6
%12 = tail call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32* %3, i32* %4)
%13 = tail call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%14 = getelementptr inbounds i32, i32* %2, i64 1
%15 = tail call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %14)
%16 = getelementptr inbounds i32, i32* %2, i64 2
%17 = tail call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %16)
%18 = getelementptr inbounds i32, i32* %2, i64 3
%19 = tail call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %18)
%20 = getelementptr inbounds i32, i32* %2, i64 4
%21 = tail call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %20)
%22 = getelementptr inbounds i32, i32* %2, i64 5
%23 = tail call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %22)
%24 = getelementptr inbounds i32, i32* %2, i64 6
%25 = tail call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %24)
%26 = getelementptr inbounds i32, i32* %2, i64 7
%27 = tail call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %26)
%28 = getelementptr inbounds i32, i32* %2, i64 8
%29 = tail call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %28)
%30 = getelementptr inbounds i32, i32* %2, i64 9
%31 = tail call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %30)
%32 = getelementptr inbounds i32, i32* %2, i64 10
%33 = tail call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %32)
%34 = getelementptr inbounds i32, i32* %2, i64 11
%35 = tail call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %34)
%36 = getelementptr inbounds i32, i32* %2, i64 12
%37 = tail call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %36)
%38 = getelementptr inbounds i32, i32* %2, i64 13
%39 = tail call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %38)
br label %40
40: ; preds = %58, %11
%41 = phi i64 [ 0, %11 ], [ %61, %58 ]
%42 = trunc i64 %41 to i8
%43 = urem i8 %42, 6
%44 = zext i8 %43 to i32
switch i32 %44, label %45 [
i32 0, label %48
i32 5, label %48
]
45: ; preds = %40
%46 = trunc i64 %41 to i32
switch i32 %46, label %47 [
i32 0, label %48
i32 58, label %48
i32 4, label %48
i32 56, label %48
i32 2, label %48
i32 54, label %48
]
47: ; preds = %45
br label %48
48: ; preds = %45, %45, %45, %40, %40, %45, %45, %45, %47
%49 = phi i32 [ 0, %47 ], [ -1, %45 ], [ -1, %45 ], [ -1, %45 ], [ -1, %45 ], [ -1, %45 ], [ -1, %45 ], [ -1, %40 ], [ -1, %40 ]
%50 = getelementptr inbounds i32, i32* %1, i64 %41
store i32 %49, i32* %50
%51 = or i64 %41, 1
%52 = trunc i64 %51 to i8
%53 = urem i8 %52, 6
%54 = zext i8 %53 to i32
switch i32 %54, label %55 [
i32 0, label %58
i32 5, label %58
]
55: ; preds = %48
%56 = trunc i64 %51 to i32
switch i32 %56, label %57 [
i32 59, label %58
i32 5, label %58
i32 57, label %58
i32 1, label %58
i32 55, label %58
i32 3, label %58
]
57: ; preds = %55
br label %58
58: ; preds = %55, %55, %55, %57, %55, %55, %55, %48, %48
%59 = phi i32 [ 0, %57 ], [ -1, %55 ], [ -1, %55 ], [ -1, %55 ], [ -1, %55 ], [ -1, %55 ], [ -1, %55 ], [ -1, %48 ], [ -1, %48 ]
%60 = getelementptr inbounds i32, i32* %1, i64 %51
store i32 %59, i32* %60
%61 = add nuw nsw i64 %41, 2
%62 = icmp eq i64 %61, 60
br i1 %62, label %63, label %40
63: ; preds = %58, %76
%64 = phi i64 [ %77, %76 ], [ 0, %58 ]
%65 = getelementptr inbounds i32, i32* %1, i64 %64
%66 = load i32, i32* %65
%67 = icmp eq i32 %66, -1
br i1 %67, label %76, label %68
68: ; preds = %63
%69 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %7)
%70 = load i32, i32* %7
%71 = icmp ugt i32 %70, 15
br i1 %71, label %72, label %75
72: ; preds = %68
%73 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
%74 = call i32 @exit(i32 1)
unreachable
75: ; preds = %68
store i32 %70, i32* %65
br label %76
76: ; preds = %63, %75
%77 = add nuw nsw i64 %64, 1
%78 = icmp eq i64 %77, 60
br i1 %78, label %79, label %63
79: ; preds = %76
%80 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %5)
%81 = call i32 @fclose(i32* %9)
br label %82
82: ; preds = %6, %79
%83 = phi i32 [ 1, %79 ], [ 0, %6 ]
ret i32 %83
}