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

/* Variables and functions */
int atoi(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ free(char *);
size_t getline(char **, size_t *, int /*<<< orphan*/ *);
int /*<<< orphan*/ memset(char *, char, int);
int /*<<< orphan*/ perror(char *);
int sscanf(char *, char *, char *, char *);
int /*<<< orphan*/ strcmp(char *, char *);
void ParseConfig(FILE *file, int *confNums) {
  char *lineBuff = NULL;
  char secBuff1[256];
  char secBuff2[256];
  int temp[5];
  size_t lineSize = 0;
  size_t lineLen = 0;
  int i = 0, count = 1;
  memset(secBuff1, '\0', sizeof(secBuff1));
  memset(secBuff2, '\0', sizeof(secBuff2));
  for (i = 0; i < 5; i++)
    confNums[i] = 0;
  while ((lineLen = getline(&lineBuff, &lineSize, file)) != -1) {
    count++;
    if (sscanf(lineBuff, "%s %s", secBuff1, secBuff2) < 2) {
      perror("Malformed file - Exiting...\n");
      exit(-1);
    }
    if (!strcmp(secBuff1, "number_of_clusters:")) {
      confNums[0] = 1;
      temp[0] = atoi(secBuff2);
    }
    if (!strcmp(secBuff1, "number_of_hash_functions:")) {
      confNums[1] = 1;
      temp[1] = atoi(secBuff2);
    }
    if (!strcmp(secBuff1, "number_of_hash_tables:")) {
      confNums[2] = 1;
      temp[2] = atoi(secBuff2);
    }
    if (!strcmp(secBuff1, "clarans_set_fraction:")) {
      confNums[3] = 1;
      temp[3] = atoi(secBuff2);
    }
    if (!strcmp(secBuff1, "clarans_iterations:")) {
      confNums[4] = 1;
      temp[4] = atoi(secBuff2);
    }
  }
  for (i = 0; i < 5; i++) {
    if (confNums[i] == 1)
      confNums[i] = temp[i];
    else {
      if (i == 1)
        confNums[i] = 4;
      if (i == 2)
        confNums[i] = 5;
      if (i == 4)
        confNums[i] = 2;
    }
  }
  free(lineBuff);
}


x86 assembly (clang, -O0):
<ParseConfig>:
push   %rbp
mov    %rsp,%rbp
sub    $0x260,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x248(%rbp)
movq   $0x0,-0x250(%rbp)
movl   $0x0,-0x254(%rbp)
movl   $0x1,-0x258(%rbp)
lea    -0x120(%rbp),%rdi
xor    %esi,%esi
mov    $0x100,%edx
call   1040 <memset@plt>
lea    -0x220(%rbp),%rdi
xor    %esi,%esi
mov    $0x100,%edx
call   1040 <memset@plt>
movl   $0x0,-0x254(%rbp)
cmpl   $0x5,-0x254(%rbp)
jge    1228 <ParseConfig+0xa8>
mov    -0x10(%rbp),%rax
movslq -0x254(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x254(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x254(%rbp)
jmp    11f5 <ParseConfig+0x75>
jmp    122d <ParseConfig+0xad>
mov    -0x8(%rbp),%rdx
lea    -0x18(%rbp),%rdi
lea    -0x248(%rbp),%rsi
call   1090 <getline@plt>
mov    %rax,-0x250(%rbp)
cmp    $0xffffffffffffffff,%rax
je     13bf <ParseConfig+0x23f>
mov    -0x258(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x258(%rbp)
mov    -0x18(%rbp),%rdi
lea    -0x120(%rbp),%rdx
lea    -0x220(%rbp),%rcx
lea    0xd86(%rip),%rsi
call   1060 <sscanf@plt>
cmp    $0x2,%eax
jge    129e <ParseConfig+0x11e>
lea    0xd77(%rip),%rdi
call   1070 <perror@plt>
mov    $0xffffffff,%edi
call   10a0 <exit@plt>
lea    -0x120(%rbp),%rdi
lea    0xd77(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    12d6 <ParseConfig+0x156>
mov    -0x10(%rbp),%rax
movl   $0x1,(%rax)
lea    -0x220(%rbp),%rdi
call   1080 <atoi@plt>
mov    %eax,-0x240(%rbp)
lea    -0x120(%rbp),%rdi
lea    0xd53(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    130f <ParseConfig+0x18f>
mov    -0x10(%rbp),%rax
movl   $0x1,0x4(%rax)
lea    -0x220(%rbp),%rdi
call   1080 <atoi@plt>
mov    %eax,-0x23c(%rbp)
lea    -0x120(%rbp),%rdi
lea    0xd34(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    1348 <ParseConfig+0x1c8>
mov    -0x10(%rbp),%rax
movl   $0x1,0x8(%rax)
lea    -0x220(%rbp),%rdi
call   1080 <atoi@plt>
mov    %eax,-0x238(%rbp)
lea    -0x120(%rbp),%rdi
lea    0xd12(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    1381 <ParseConfig+0x201>
mov    -0x10(%rbp),%rax
movl   $0x1,0xc(%rax)
lea    -0x220(%rbp),%rdi
call   1080 <atoi@plt>
mov    %eax,-0x234(%rbp)
lea    -0x120(%rbp),%rdi
lea    0xcef(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    13ba <ParseConfig+0x23a>
mov    -0x10(%rbp),%rax
movl   $0x1,0x10(%rax)
lea    -0x220(%rbp),%rdi
call   1080 <atoi@plt>
mov    %eax,-0x230(%rbp)
jmp    122d <ParseConfig+0xad>
movl   $0x0,-0x254(%rbp)
cmpl   $0x5,-0x254(%rbp)
jge    1487 <ParseConfig+0x307>
mov    -0x10(%rbp),%rax
movslq -0x254(%rbp),%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    140c <ParseConfig+0x28c>
movslq -0x254(%rbp),%rax
mov    -0x240(%rbp,%rax,4),%edx
mov    -0x10(%rbp),%rax
movslq -0x254(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
jmp    146e <ParseConfig+0x2ee>
cmpl   $0x1,-0x254(%rbp)
jne    142b <ParseConfig+0x2ab>
mov    -0x10(%rbp),%rax
movslq -0x254(%rbp),%rcx
movl   $0x4,(%rax,%rcx,4)
cmpl   $0x2,-0x254(%rbp)
jne    144a <ParseConfig+0x2ca>
mov    -0x10(%rbp),%rax
movslq -0x254(%rbp),%rcx
movl   $0x5,(%rax,%rcx,4)
cmpl   $0x4,-0x254(%rbp)
jne    1469 <ParseConfig+0x2e9>
mov    -0x10(%rbp),%rax
movslq -0x254(%rbp),%rcx
movl   $0x2,(%rax,%rcx,4)
jmp    146e <ParseConfig+0x2ee>
jmp    1473 <ParseConfig+0x2f3>
mov    -0x254(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x254(%rbp)
jmp    13c9 <ParseConfig+0x249>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
add    $0x260,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ParseConfig>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x238,%rsp
mov    %rsi,%rbx
mov    %rdi,%r14
movq   $0x0,0x8(%rsp)
movq   $0x0,0x28(%rsp)
lea    0x30(%rsp),%rdi
xor    %esi,%esi
mov    $0x100,%edx
call   1040 <memset@plt>
lea    0x130(%rsp),%rdi
xor    %esi,%esi
mov    $0x100,%edx
call   1040 <memset@plt>
pxor   %xmm0,%xmm0
movdqu %xmm0,(%rbx)
movl   $0x0,0x10(%rbx)
lea    0x8(%rsp),%rdi
lea    0x28(%rsp),%rsi
mov    %r14,%rdx
call   1080 <getline@plt>
cmp    $0xffffffffffffffff,%rax
je     1386 <ParseConfig+0x216>
lea    0x30(%rsp),%r15
lea    0x130(%rsp),%r12
lea    0x8(%rsp),%r13
lea    0x28(%rsp),%rbp
jmp    1228 <ParseConfig+0xb8>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %r14,%rdx
call   1080 <getline@plt>
cmp    $0xffffffffffffffff,%rax
je     1386 <ParseConfig+0x216>
mov    0x8(%rsp),%rdi
lea    0xe6c(%rip),%rsi
mov    %r15,%rdx
mov    %r12,%rcx
call   1050 <sscanf@plt>
cmp    $0x1,%eax
jle    13f1 <ParseConfig+0x281>
movd   0x40(%rsp),%xmm0
pcmpeqb 0xdaa(%rip),%xmm0
movdqa 0x30(%rsp),%xmm1
pcmpeqb 0xdac(%rip),%xmm1
pand   %xmm0,%xmm1
pmovmskb %xmm1,%eax
cmp    $0xffff,%eax
jne    1285 <ParseConfig+0x115>
movl   $0x1,(%rbx)
mov    %r12,%rdi
call   1070 <atoi@plt>
mov    %eax,0x14(%rsp)
movdqu 0x3a(%rsp),%xmm0
pcmpeqb 0xd8d(%rip),%xmm0
movdqa 0x30(%rsp),%xmm1
pcmpeqb 0xd8f(%rip),%xmm1
pand   %xmm0,%xmm1
pmovmskb %xmm1,%eax
cmp    $0xffff,%eax
jne    12c3 <ParseConfig+0x153>
movl   $0x1,0x4(%rbx)
mov    %r12,%rdi
call   1070 <atoi@plt>
mov    %eax,0x1c(%rsp)
movdqu 0x37(%rsp),%xmm0
pcmpeqb 0xd6f(%rip),%xmm0
movdqa 0x30(%rsp),%xmm1
pcmpeqb 0xd71(%rip),%xmm1
pand   %xmm0,%xmm1
pmovmskb %xmm1,%eax
cmp    $0xffff,%eax
jne    1301 <ParseConfig+0x191>
movl   $0x1,0x8(%rbx)
mov    %r12,%rdi
call   1070 <atoi@plt>
mov    %eax,0x20(%rsp)
movdqu 0x36(%rsp),%xmm0
pcmpeqb 0xd51(%rip),%xmm0
movdqa 0x30(%rsp),%xmm1
pcmpeqb 0xd53(%rip),%xmm1
pand   %xmm0,%xmm1
pmovmskb %xmm1,%eax
cmp    $0xffff,%eax
jne    133f <ParseConfig+0x1cf>
movl   $0x1,0xc(%rbx)
mov    %r12,%rdi
call   1070 <atoi@plt>
mov    %eax,0x18(%rsp)
movd   0x40(%rsp),%xmm0
pcmpeqb 0xd33(%rip),%xmm0
movdqa 0x30(%rsp),%xmm1
pcmpeqb 0xd35(%rip),%xmm1
pand   %xmm0,%xmm1
pmovmskb %xmm1,%eax
cmp    $0xffff,%eax
jne    1210 <ParseConfig+0xa0>
movl   $0x1,0x10(%rbx)
mov    %r12,%rdi
call   1070 <atoi@plt>
mov    %eax,0x24(%rsp)
jmp    1210 <ParseConfig+0xa0>
cmpl   $0x1,(%rbx)
jne    1391 <ParseConfig+0x221>
mov    0x14(%rsp),%eax
mov    %eax,(%rbx)
cmpl   $0x1,0x4(%rbx)
mov    0x8(%rbx),%eax
mov    $0x4,%ecx
cmove  0x1c(%rsp),%ecx
cmp    $0x1,%eax
mov    $0x5,%eax
cmove  0x20(%rsp),%eax
mov    %ecx,0x4(%rbx)
mov    %eax,0x8(%rbx)
cmpl   $0x1,0xc(%rbx)
mov    0x24(%rsp),%ecx
jne    13c6 <ParseConfig+0x256>
mov    0x18(%rsp),%eax
mov    %eax,0xc(%rbx)
cmpl   $0x1,0x10(%rbx)
mov    $0x2,%eax
cmove  %ecx,%eax
mov    %eax,0x10(%rbx)
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
add    $0x238,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xcae(%rip),%rdi
call   1060 <perror@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"%s %s\00"
@.str.1 = [29 x i8] c"Malformed file - Exiting...\0A\00"
@.str.2 = [20 x i8] c"number_of_clusters:\00"
@.str.3 = [26 x i8] c"number_of_hash_functions:\00"
@.str.4 = [23 x i8] c"number_of_hash_tables:\00"
@.str.5 = [22 x i8] c"clarans_set_fraction:\00"
@.str.6 = [20 x i8] c"clarans_iterations:\00"
define void @ParseConfig(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca i8*
%6 = alloca [256 x i8]
%7 = alloca [256 x i8]
%8 = alloca [5 x i32]
%9 = alloca i64
%10 = alloca i64
%11 = alloca i32
%12 = alloca i32
store i32* %0, i32** %3
store i32* %1, i32** %4
store i8* null, i8** %5
store i64 0, i64* %9
store i64 0, i64* %10
store i32 0, i32* %11
store i32 1, i32* %12
%13 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%14 = call i32 @memset(i8* %13, i8 signext 0, i32 256)
%15 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%16 = call i32 @memset(i8* %15, i8 signext 0, i32 256)
store i32 0, i32* %11
br label %17
17: ; preds = %25, %2
%18 = load i32, i32* %11
%19 = icmp slt i32 %18, 5
br i1 %19, label %20, label %28
20: ; preds = %17
%21 = load i32*, i32** %4
%22 = load i32, i32* %11
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, i32* %21, i64 %23
store i32 0, i32* %24
br label %25
25: ; preds = %20
%26 = load i32, i32* %11
%27 = add nsw i32 %26, 1
store i32 %27, i32* %11
br label %17
28: ; preds = %17
br label %29
29: ; preds = %94, %28
%30 = load i32*, i32** %3
%31 = call i64 @getline(i8** %5, i64* %9, i32* %30)
store i64 %31, i64* %10
%32 = icmp ne i64 %31, -1
br i1 %32, label %33, label %95
33: ; preds = %29
%34 = load i32, i32* %12
%35 = add nsw i32 %34, 1
store i32 %35, i32* %12
%36 = load i8*, i8** %5
%37 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%38 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%39 = call i32 @sscanf(i8* %36, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %37, i8* %38)
%40 = icmp slt i32 %39, 2
br i1 %40, label %41, label %44
41: ; preds = %33
%42 = call i32 @perror(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
%43 = call i32 @exit(i32 -1)
unreachable
44: ; preds = %33
%45 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%46 = call i32 @strcmp(i8* %45, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%47 = icmp ne i32 %46, 0
br i1 %47, label %54, label %48
48: ; preds = %44
%49 = load i32*, i32** %4
%50 = getelementptr inbounds i32, i32* %49, i64 0
store i32 1, i32* %50
%51 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%52 = call i32 @atoi(i8* %51)
%53 = getelementptr inbounds [5 x i32], [5 x i32]* %8, i64 0, i64 0
store i32 %52, i32* %53
br label %54
54: ; preds = %48, %44
%55 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%56 = call i32 @strcmp(i8* %55, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
%57 = icmp ne i32 %56, 0
br i1 %57, label %64, label %58
58: ; preds = %54
%59 = load i32*, i32** %4
%60 = getelementptr inbounds i32, i32* %59, i64 1
store i32 1, i32* %60
%61 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%62 = call i32 @atoi(i8* %61)
%63 = getelementptr inbounds [5 x i32], [5 x i32]* %8, i64 0, i64 1
store i32 %62, i32* %63
br label %64
64: ; preds = %58, %54
%65 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%66 = call i32 @strcmp(i8* %65, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%67 = icmp ne i32 %66, 0
br i1 %67, label %74, label %68
68: ; preds = %64
%69 = load i32*, i32** %4
%70 = getelementptr inbounds i32, i32* %69, i64 2
store i32 1, i32* %70
%71 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%72 = call i32 @atoi(i8* %71)
%73 = getelementptr inbounds [5 x i32], [5 x i32]* %8, i64 0, i64 2
store i32 %72, i32* %73
br label %74
74: ; preds = %68, %64
%75 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%76 = call i32 @strcmp(i8* %75, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0))
%77 = icmp ne i32 %76, 0
br i1 %77, label %84, label %78
78: ; preds = %74
%79 = load i32*, i32** %4
%80 = getelementptr inbounds i32, i32* %79, i64 3
store i32 1, i32* %80
%81 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%82 = call i32 @atoi(i8* %81)
%83 = getelementptr inbounds [5 x i32], [5 x i32]* %8, i64 0, i64 3
store i32 %82, i32* %83
br label %84
84: ; preds = %78, %74
%85 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%86 = call i32 @strcmp(i8* %85, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
%87 = icmp ne i32 %86, 0
br i1 %87, label %94, label %88
88: ; preds = %84
%89 = load i32*, i32** %4
%90 = getelementptr inbounds i32, i32* %89, i64 4
store i32 1, i32* %90
%91 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%92 = call i32 @atoi(i8* %91)
%93 = getelementptr inbounds [5 x i32], [5 x i32]* %8, i64 0, i64 4
store i32 %92, i32* %93
br label %94
94: ; preds = %88, %84
br label %29
95: ; preds = %29
store i32 0, i32* %11
br label %96
96: ; preds = %141, %95
%97 = load i32, i32* %11
%98 = icmp slt i32 %97, 5
br i1 %98, label %99, label %144
99: ; preds = %96
%100 = load i32*, i32** %4
%101 = load i32, i32* %11
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i32, i32* %100, i64 %102
%104 = load i32, i32* %103
%105 = icmp eq i32 %104, 1
br i1 %105, label %106, label %115
106: ; preds = %99
%107 = load i32, i32* %11
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [5 x i32], [5 x i32]* %8, i64 0, i64 %108
%110 = load i32, i32* %109
%111 = load i32*, i32** %4
%112 = load i32, i32* %11
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds i32, i32* %111, i64 %113
store i32 %110, i32* %114
br label %140
115: ; preds = %99
%116 = load i32, i32* %11
%117 = icmp eq i32 %116, 1
br i1 %117, label %118, label %123
118: ; preds = %115
%119 = load i32*, i32** %4
%120 = load i32, i32* %11
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds i32, i32* %119, i64 %121
store i32 4, i32* %122
br label %123
123: ; preds = %118, %115
%124 = load i32, i32* %11
%125 = icmp eq i32 %124, 2
br i1 %125, label %126, label %131
126: ; preds = %123
%127 = load i32*, i32** %4
%128 = load i32, i32* %11
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds i32, i32* %127, i64 %129
store i32 5, i32* %130
br label %131
131: ; preds = %126, %123
%132 = load i32, i32* %11
%133 = icmp eq i32 %132, 4
br i1 %133, label %134, label %139
134: ; preds = %131
%135 = load i32*, i32** %4
%136 = load i32, i32* %11
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds i32, i32* %135, i64 %137
store i32 2, i32* %138
br label %139
139: ; preds = %134, %131
br label %140
140: ; preds = %139, %106
br label %141
141: ; preds = %140
%142 = load i32, i32* %11
%143 = add nsw i32 %142, 1
store i32 %143, i32* %11
br label %96
144: ; preds = %96
%145 = load i8*, i8** %5
%146 = call i32 @free(i8* %145)
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"%s %s\00"
@.str.1 = [29 x i8] c"Malformed file - Exiting...\0A\00"
@.str.2 = [20 x i8] c"number_of_clusters:\00"
@.str.3 = [26 x i8] c"number_of_hash_functions:\00"
@.str.4 = [23 x i8] c"number_of_hash_tables:\00"
@.str.5 = [22 x i8] c"clarans_set_fraction:\00"
@.str.6 = [20 x i8] c"clarans_iterations:\00"
define void @ParseConfig(i32* %0, i32* nocapture %1) {
%3 = bitcast i32* %1 to i8*
%4 = alloca i8*
%5 = alloca [256 x i8]
%6 = alloca [256 x i8]
%7 = alloca i64
%8 = bitcast i8** %4 to i8*
store i8* null, i8** %4
%9 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%10 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%11 = bitcast i64* %7 to i8*
store i64 0, i64* %7
%12 = call i32 @memset(i8* %9, i8 signext 0, i32 256)
%13 = call i32 @memset(i8* %10, i8 signext 0, i32 256)
%14 = call i64 @getline(i8** %4, i64* %7, i32* %0)
%15 = icmp eq i64 %14, -1
br i1 %15, label %21, label %16
16: ; preds = %2
%17 = getelementptr inbounds i32, i32* %1, i64 1
%18 = getelementptr inbounds i32, i32* %1, i64 2
%19 = getelementptr inbounds i32, i32* %1, i64 3
%20 = getelementptr inbounds i32, i32* %1, i64 4
br label %29
21: ; preds = %70, %2
%22 = phi i32 [ undef, %2 ], [ %71, %70 ]
%23 = phi i32 [ undef, %2 ], [ %65, %70 ]
%24 = phi i32 [ undef, %2 ], [ %59, %70 ]
%25 = phi i32 [ undef, %2 ], [ %53, %70 ]
%26 = phi i32 [ undef, %2 ], [ %47, %70 ]
%27 = load i32, i32* %1
%28 = icmp eq i32 %27, 1
br i1 %28, label %74, label %75
29: ; preds = %16, %70
%30 = phi i32 [ undef, %16 ], [ %71, %70 ]
%31 = phi i32 [ undef, %16 ], [ %65, %70 ]
%32 = phi i32 [ undef, %16 ], [ %59, %70 ]
%33 = phi i32 [ undef, %16 ], [ %53, %70 ]
%34 = phi i32 [ undef, %16 ], [ %47, %70 ]
%35 = load i8*, i8** %4
%36 = call i32 @sscanf(i8* %35, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %9, i8* %10)
%37 = icmp slt i32 %36, 2
br i1 %37, label %38, label %41
38: ; preds = %29
%39 = call i32 @perror(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
%40 = call i32 @exit(i32 -1)
unreachable
41: ; preds = %29
%42 = call i32 @bcmp(i8* dereferenceable(20) %9, i8* dereferenceable(20) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i64 20)
%43 = icmp eq i32 %42, 0
br i1 %43, label %44, label %46
44: ; preds = %41
store i32 1, i32* %1
%45 = call i32 @atoi(i8* %10)
br label %46
46: ; preds = %44, %41
%47 = phi i32 [ %45, %44 ], [ %34, %41 ]
%48 = call i32 @bcmp(i8* dereferenceable(26) %9, i8* dereferenceable(26) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i64 26)
%49 = icmp eq i32 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %46
store i32 1, i32* %17
%51 = call i32 @atoi(i8* %10)
br label %52
52: ; preds = %50, %46
%53 = phi i32 [ %51, %50 ], [ %33, %46 ]
%54 = call i32 @bcmp(i8* dereferenceable(23) %9, i8* dereferenceable(23) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i64 23)
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %58
56: ; preds = %52
store i32 1, i32* %18
%57 = call i32 @atoi(i8* %10)
br label %58
58: ; preds = %56, %52
%59 = phi i32 [ %57, %56 ], [ %32, %52 ]
%60 = call i32 @bcmp(i8* dereferenceable(22) %9, i8* dereferenceable(22) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i64 22)
%61 = icmp eq i32 %60, 0
br i1 %61, label %62, label %64
62: ; preds = %58
store i32 1, i32* %19
%63 = call i32 @atoi(i8* %10)
br label %64
64: ; preds = %62, %58
%65 = phi i32 [ %63, %62 ], [ %31, %58 ]
%66 = call i32 @bcmp(i8* dereferenceable(20) %9, i8* dereferenceable(20) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i64 20)
%67 = icmp eq i32 %66, 0
br i1 %67, label %68, label %70
68: ; preds = %64
store i32 1, i32* %20
%69 = call i32 @atoi(i8* %10)
br label %70
70: ; preds = %68, %64
%71 = phi i32 [ %69, %68 ], [ %30, %64 ]
%72 = call i64 @getline(i8** %4, i64* %7, i32* %0)
%73 = icmp eq i64 %72, -1
br i1 %73, label %21, label %29
74: ; preds = %21
store i32 %26, i32* %1
br label %75
75: ; preds = %21, %74
%76 = getelementptr inbounds i32, i32* %1, i64 1
%77 = load i32, i32* %76
%78 = icmp eq i32 %77, 1
%79 = select i1 %78, i32 %25, i32 4
store i32 %79, i32* %76
%80 = getelementptr inbounds i32, i32* %1, i64 2
%81 = load i32, i32* %80
%82 = icmp eq i32 %81, 1
%83 = select i1 %82, i32 %24, i32 5
store i32 %83, i32* %80
%84 = getelementptr inbounds i32, i32* %1, i64 3
%85 = load i32, i32* %84
%86 = icmp eq i32 %85, 1
br i1 %86, label %87, label %88
87: ; preds = %75
store i32 %23, i32* %84
br label %88
88: ; preds = %75, %87
%89 = getelementptr inbounds i32, i32* %1, i64 4
%90 = load i32, i32* %89
%91 = icmp eq i32 %90, 1
%92 = select i1 %91, i32 %22, i32 2
store i32 %92, i32* %89
%93 = load i8*, i8** %4
%94 = call i32 @free(i8* %93)
ret void
}