#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_FAILURE;
int INT_MAX;
int INT_MIN;
int atoi(char *);
scalar_t__ calloc(int, int);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ free(char *);
int pow(double, int);
int /*<<< orphan*/ stderr;
int read_labels(int **vector, int out_instances, int out_nodes,
                char *filename) {
  FILE *labelset = fopen(filename, "r");
  int bufflen = 20;
  char *line = (char *)calloc(bufflen, sizeof(char));
  int i = 0;
  int min = INT_MAX;
  int max = INT_MIN;
  while (fgets(line, bufflen, labelset)) {
    (*vector)[i] = atoi(line);
    if ((*vector)[i] < min)
      min = (*vector)[i];
    if ((*vector)[i] > max)
      max = (*vector)[i];
    i++;
    if (i > out_instances) {
      fprintf(stderr, "ERROR: Too few allocated out rows!\n");
      exit(EXIT_FAILURE);
    }
  }
  if (pow(2.0, out_nodes) < (max - min)) {
    fprintf(stderr, "ERROR: Too few nodes to represent the outputs!\n");
    exit(EXIT_FAILURE);
  }
  if (min != 0) {
    for (int i = 0; i < out_instances; i++)
      (*vector)[i] -= min;
  }
  free(line);
  fclose(labelset);
  return min;
}


x86 assembly (clang, -O0):
<read_labels>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xe57(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x20(%rbp)
movl   $0x14,-0x24(%rbp)
mov    -0x24(%rbp),%edi
mov    $0x1,%esi
call   1060 <calloc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    0x2e08(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x38(%rbp)
mov    0x2df4(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    -0x20(%rbp),%rdx
call   1050 <fgets@plt>
cmp    $0x0,%rax
je     12b1 <read_labels+0x121>
mov    -0x30(%rbp),%rdi
call   10a0 <atoi@plt>
mov    %eax,%edx
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movslq -0x34(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0x38(%rbp),%eax
jge    124c <read_labels+0xbc>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x38(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0x3c(%rbp),%eax
jle    1274 <read_labels+0xe4>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    12ac <read_labels+0x11c>
mov    0x2d40(%rip),%rax
mov    (%rax),%edi
lea    0xd71(%rip),%rsi
call   1070 <fprintf@plt>
mov    0x2d23(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>
jmp    11f1 <read_labels+0x61>
mov    -0x10(%rbp),%edi
movsd  0xd44(%rip),%xmm0
call   1090 <pow@plt>
mov    -0x3c(%rbp),%ecx
sub    -0x38(%rbp),%ecx
cmp    %ecx,%eax
jge    12f2 <read_labels+0x162>
mov    0x2cfa(%rip),%rax
mov    (%rax),%edi
lea    0xd4f(%rip),%rsi
call   1070 <fprintf@plt>
mov    0x2cdd(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>
cmpl   $0x0,-0x38(%rbp)
je     1338 <read_labels+0x1a8>
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1333 <read_labels+0x1a3>
mov    -0x38(%rbp),%esi
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movslq -0x40(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
sub    %esi,%edx
mov    %edx,(%rax,%rcx,4)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1303 <read_labels+0x173>
jmp    1338 <read_labels+0x1a8>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x38(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_labels>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %edx,0xc(%rsp)
mov    %esi,%r14d
mov    %rdi,%r12
lea    0xe59(%rip),%rsi
mov    %rcx,%rdi
call   1080 <fopen@plt>
mov    %rax,0x10(%rsp)
mov    $0x14,%edi
mov    $0x1,%esi
call   1060 <calloc@plt>
mov    %rax,%rbx
mov    0x2e13(%rip),%rax
mov    (%rax),%ebp
mov    0x2e02(%rip),%rax
mov    (%rax),%r13d
xor    %r15d,%r15d
mov    %r14d,%eax
test   %r14d,%r14d
mov    $0x0,%r14d
mov    %eax,0x8(%rsp)
cmovg  %eax,%r14d
add    $0x1,%r14d
nopl   0x0(%rax)
mov    %rbx,%rdi
mov    $0x14,%esi
mov    0x10(%rsp),%rdx
call   1050 <fgets@plt>
test   %rax,%rax
je     125f <read_labels+0xcf>
mov    %rbx,%rdi
call   10a0 <atoi@plt>
mov    (%r12),%rcx
mov    %eax,(%rcx,%r15,4)
cmp    %ebp,%eax
cmovl  %eax,%ebp
cmp    %r13d,%eax
cmovg  %eax,%r13d
add    $0x1,%r15
cmp    %r15,%r14
jne    1200 <read_labels+0x70>
mov    0x2d8d(%rip),%rax
mov    (%rax),%edi
lea    0xdbe(%rip),%rsi
call   1070 <fprintf@plt>
mov    0x2d70(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>
movq   0xd99(%rip),%xmm0
mov    0xc(%rsp),%edi
call   1090 <pow@plt>
sub    %ebp,%r13d
cmp    %r13d,%eax
jl     1399 <read_labels+0x209>
test   %ebp,%ebp
mov    0x8(%rsp),%edx
je     136c <read_labels+0x1dc>
test   %edx,%edx
jle    136c <read_labels+0x1dc>
mov    (%r12),%rax
mov    %edx,%ecx
cmp    $0x8,%edx
jae    12a2 <read_labels+0x112>
xor    %edx,%edx
jmp    1360 <read_labels+0x1d0>
mov    %ecx,%edx
and    $0xfffffff8,%edx
movd   %ebp,%xmm0
pshufd $0x0,%xmm0,%xmm0
lea    -0x8(%rdx),%rsi
mov    %rsi,%r8
shr    $0x3,%r8
add    $0x1,%r8
test   %rsi,%rsi
je     138f <read_labels+0x1ff>
mov    %r8,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movdqu (%rax,%rsi,4),%xmm1
movdqu 0x10(%rax,%rsi,4),%xmm2
movdqu 0x20(%rax,%rsi,4),%xmm3
movdqu 0x30(%rax,%rsi,4),%xmm4
psubd  %xmm0,%xmm1
psubd  %xmm0,%xmm2
movdqu %xmm1,(%rax,%rsi,4)
movdqu %xmm2,0x10(%rax,%rsi,4)
psubd  %xmm0,%xmm3
psubd  %xmm0,%xmm4
movdqu %xmm3,0x20(%rax,%rsi,4)
movdqu %xmm4,0x30(%rax,%rsi,4)
add    $0x10,%rsi
add    $0xfffffffffffffffe,%rdi
jne    12e0 <read_labels+0x150>
test   $0x1,%r8b
je     134c <read_labels+0x1bc>
movdqu (%rax,%rsi,4),%xmm1
movdqu 0x10(%rax,%rsi,4),%xmm2
psubd  %xmm0,%xmm1
psubd  %xmm0,%xmm2
movdqu %xmm1,(%rax,%rsi,4)
movdqu %xmm2,0x10(%rax,%rsi,4)
cmp    %rcx,%rdx
je     136c <read_labels+0x1dc>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
sub    %ebp,(%rax,%rdx,4)
add    $0x1,%rdx
cmp    %rdx,%rcx
jne    1360 <read_labels+0x1d0>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    0x10(%rsp),%rdi
call   1040 <fclose@plt>
mov    %ebp,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %esi,%esi
test   $0x1,%r8b
jne    132e <read_labels+0x19e>
jmp    134c <read_labels+0x1bc>
mov    0x2c30(%rip),%rax
mov    (%rax),%edi
lea    0xc85(%rip),%rsi
jmp    124c <read_labels+0xbc>

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
@INT_MAX = global i32 0
@INT_MIN = global i32 0
@stderr = global i32 0
@.str.1 = [36 x i8] c"ERROR: Too few allocated out rows!\0A\00"
@EXIT_FAILURE = global i32 0
@.str.2 = [48 x i8] c"ERROR: Too few nodes to represent the outputs!\0A\00"
define i32 @read_labels(i32** %0, i32 %1, i32 %2, i8* %3) {
%5 = alloca i32**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32*
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
store i32** %0, i32*** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i8* %3, i8** %8
%16 = load i8*, i8** %8
%17 = call i32* @fopen(i8* %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %17, i32** %9
store i32 20, i32* %10
%18 = load i32, i32* %10
%19 = call i64 @calloc(i32 %18, i32 1)
%20 = inttoptr i64 %19 to i8*
store i8* %20, i8** %11
store i32 0, i32* %12
%21 = load i32, i32* @INT_MAX
store i32 %21, i32* %13
%22 = load i32, i32* @INT_MIN
store i32 %22, i32* %14
br label %23
23: ; preds = %79, %4
%24 = load i8*, i8** %11
%25 = load i32, i32* %10
%26 = load i32*, i32** %9
%27 = call i64 @fgets(i8* %24, i32 %25, i32* %26)
%28 = icmp ne i64 %27, 0
br i1 %28, label %29, label %80
29: ; preds = %23
%30 = load i8*, i8** %11
%31 = call i32 @atoi(i8* %30)
%32 = load i32**, i32*** %5
%33 = load i32*, i32** %32
%34 = load i32, i32* %12
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i32, i32* %33, i64 %35
store i32 %31, i32* %36
%37 = load i32**, i32*** %5
%38 = load i32*, i32** %37
%39 = load i32, i32* %12
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, i32* %38, i64 %40
%42 = load i32, i32* %41
%43 = load i32, i32* %13
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %52
45: ; preds = %29
%46 = load i32**, i32*** %5
%47 = load i32*, i32** %46
%48 = load i32, i32* %12
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, i32* %47, i64 %49
%51 = load i32, i32* %50
store i32 %51, i32* %13
br label %52
52: ; preds = %45, %29
%53 = load i32**, i32*** %5
%54 = load i32*, i32** %53
%55 = load i32, i32* %12
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i32, i32* %54, i64 %56
%58 = load i32, i32* %57
%59 = load i32, i32* %14
%60 = icmp sgt i32 %58, %59
br i1 %60, label %61, label %68
61: ; preds = %52
%62 = load i32**, i32*** %5
%63 = load i32*, i32** %62
%64 = load i32, i32* %12
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i32, i32* %63, i64 %65
%67 = load i32, i32* %66
store i32 %67, i32* %14
br label %68
68: ; preds = %61, %52
%69 = load i32, i32* %12
%70 = add nsw i32 %69, 1
store i32 %70, i32* %12
%71 = load i32, i32* %12
%72 = load i32, i32* %6
%73 = icmp sgt i32 %71, %72
br i1 %73, label %74, label %79
74: ; preds = %68
%75 = load i32, i32* @stderr
%76 = call i32 @fprintf(i32 %75, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
%77 = load i32, i32* @EXIT_FAILURE
%78 = call i32 @exit(i32 %77)
unreachable
79: ; preds = %68
br label %23
80: ; preds = %23
%81 = load i32, i32* %7
%82 = call i32 @pow(double 2.000000e+00, i32 %81)
%83 = load i32, i32* %14
%84 = load i32, i32* %13
%85 = sub nsw i32 %83, %84
%86 = icmp slt i32 %82, %85
br i1 %86, label %87, label %92
87: ; preds = %80
%88 = load i32, i32* @stderr
%89 = call i32 @fprintf(i32 %88, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0))
%90 = load i32, i32* @EXIT_FAILURE
%91 = call i32 @exit(i32 %90)
unreachable
92: ; preds = %80
%93 = load i32, i32* %13
%94 = icmp ne i32 %93, 0
br i1 %94, label %95, label %113
95: ; preds = %92
store i32 0, i32* %15
br label %96
96: ; preds = %109, %95
%97 = load i32, i32* %15
%98 = load i32, i32* %6
%99 = icmp slt i32 %97, %98
br i1 %99, label %100, label %112
100: ; preds = %96
%101 = load i32, i32* %13
%102 = load i32**, i32*** %5
%103 = load i32*, i32** %102
%104 = load i32, i32* %15
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds i32, i32* %103, i64 %105
%107 = load i32, i32* %106
%108 = sub nsw i32 %107, %101
store i32 %108, i32* %106
br label %109
109: ; preds = %100
%110 = load i32, i32* %15
%111 = add nsw i32 %110, 1
store i32 %111, i32* %15
br label %96
112: ; preds = %96
br label %113
113: ; preds = %112, %92
%114 = load i8*, i8** %11
%115 = call i32 @free(i8* %114)
%116 = load i32*, i32** %9
%117 = call i32 @fclose(i32* %116)
%118 = load i32, i32* %13
ret i32 %118
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@INT_MAX = global i32 0
@INT_MIN = global i32 0
@stderr = global i32 0
@.str.1 = [36 x i8] c"ERROR: Too few allocated out rows!\0A\00"
@EXIT_FAILURE = global i32 0
@.str.2 = [48 x i8] c"ERROR: Too few nodes to represent the outputs!\0A\00"
define i32 @read_labels(i32** nocapture %0, i32 %1, i32 %2, i8* nocapture %3) {
%5 = tail call i32* @fopen(i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%6 = tail call i64 @calloc(i32 20, i32 1)
%7 = inttoptr i64 %6 to i8*
%8 = load i32, i32* @INT_MAX
%9 = load i32, i32* @INT_MIN
%10 = call i32 @llvm.smax.i32(i32 %1, i32 0)
%11 = add nuw i32 %10, 1
%12 = zext i32 %11 to i64
br label %13
13: ; preds = %19, %4
%14 = phi i64 [ %27, %19 ], [ 0, %4 ]
%15 = phi i32 [ %24, %19 ], [ %8, %4 ]
%16 = phi i32 [ %26, %19 ], [ %9, %4 ]
%17 = tail call i64 @fgets(i8* %7, i32 20, i32* %5)
%18 = icmp eq i64 %17, 0
br i1 %18, label %34, label %19
19: ; preds = %13
%20 = tail call i32 @atoi(i8* %7)
%21 = load i32*, i32** %0
%22 = getelementptr inbounds i32, i32* %21, i64 %14
store i32 %20, i32* %22
%23 = icmp slt i32 %20, %15
%24 = select i1 %23, i32 %20, i32 %15
%25 = icmp sgt i32 %20, %16
%26 = select i1 %25, i32 %20, i32 %16
%27 = add nuw nsw i64 %14, 1
%28 = icmp eq i64 %27, %12
br i1 %28, label %29, label %13
29: ; preds = %19
%30 = load i32, i32* @stderr
%31 = tail call i32 @fprintf(i32 %30, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
%32 = load i32, i32* @EXIT_FAILURE
%33 = tail call i32 @exit(i32 %32)
unreachable
34: ; preds = %13
%35 = tail call i32 @pow(double 2.000000e+00, i32 %2)
%36 = sub nsw i32 %16, %15
%37 = icmp slt i32 %35, %36
br i1 %37, label %38, label %43
38: ; preds = %34
%39 = load i32, i32* @stderr
%40 = tail call i32 @fprintf(i32 %39, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0))
%41 = load i32, i32* @EXIT_FAILURE
%42 = tail call i32 @exit(i32 %41)
unreachable
43: ; preds = %34
%44 = icmp ne i32 %15, 0
%45 = icmp sgt i32 %1, 0
%46 = and i1 %44, %45
br i1 %46, label %47, label %116
47: ; preds = %43
%48 = load i32*, i32** %0
%49 = zext i32 %1 to i64
%50 = icmp ult i32 %1, 8
br i1 %50, label %107, label %51
51: ; preds = %47
%52 = and i64 %49, 4294967288
%53 = insertelement <4 x i32> poison, i32 %15, i64 0
%54 = shufflevector <4 x i32> %53, <4 x i32> poison, <4 x i32> zeroinitializer
%55 = insertelement <4 x i32> poison, i32 %15, i64 0
%56 = shufflevector <4 x i32> %55, <4 x i32> poison, <4 x i32> zeroinitializer
%57 = add nsw i64 %52, -8
%58 = lshr exact i64 %57, 3
%59 = add nuw nsw i64 %58, 1
%60 = and i64 %59, 1
%61 = icmp eq i64 %57, 0
br i1 %61, label %91, label %62
62: ; preds = %51
%63 = and i64 %59, 4611686018427387902
br label %64
64: ; preds = %64, %62
%65 = phi i64 [ 0, %62 ], [ %88, %64 ]
%66 = phi i64 [ 0, %62 ], [ %89, %64 ]
%67 = getelementptr inbounds i32, i32* %48, i64 %65
%68 = bitcast i32* %67 to <4 x i32>*
%69 = load <4 x i32>, <4 x i32>* %68
%70 = getelementptr inbounds i32, i32* %67, i64 4
%71 = bitcast i32* %70 to <4 x i32>*
%72 = load <4 x i32>, <4 x i32>* %71
%73 = sub nsw <4 x i32> %69, %54
%74 = sub nsw <4 x i32> %72, %56
%75 = bitcast i32* %67 to <4 x i32>*
store <4 x i32> %73, <4 x i32>* %75
%76 = bitcast i32* %70 to <4 x i32>*
store <4 x i32> %74, <4 x i32>* %76
%77 = or i64 %65, 8
%78 = getelementptr inbounds i32, i32* %48, i64 %77
%79 = bitcast i32* %78 to <4 x i32>*
%80 = load <4 x i32>, <4 x i32>* %79
%81 = getelementptr inbounds i32, i32* %78, i64 4
%82 = bitcast i32* %81 to <4 x i32>*
%83 = load <4 x i32>, <4 x i32>* %82
%84 = sub nsw <4 x i32> %80, %54
%85 = sub nsw <4 x i32> %83, %56
%86 = bitcast i32* %78 to <4 x i32>*
store <4 x i32> %84, <4 x i32>* %86
%87 = bitcast i32* %81 to <4 x i32>*
store <4 x i32> %85, <4 x i32>* %87
%88 = add nuw i64 %65, 16
%89 = add i64 %66, 2
%90 = icmp eq i64 %89, %63
br i1 %90, label %91, label %64
91: ; preds = %64, %51
%92 = phi i64 [ 0, %51 ], [ %88, %64 ]
%93 = icmp eq i64 %60, 0
br i1 %93, label %105, label %94
94: ; preds = %91
%95 = getelementptr inbounds i32, i32* %48, i64 %92
%96 = bitcast i32* %95 to <4 x i32>*
%97 = load <4 x i32>, <4 x i32>* %96
%98 = getelementptr inbounds i32, i32* %95, i64 4
%99 = bitcast i32* %98 to <4 x i32>*
%100 = load <4 x i32>, <4 x i32>* %99
%101 = sub nsw <4 x i32> %97, %54
%102 = sub nsw <4 x i32> %100, %56
%103 = bitcast i32* %95 to <4 x i32>*
store <4 x i32> %101, <4 x i32>* %103
%104 = bitcast i32* %98 to <4 x i32>*
store <4 x i32> %102, <4 x i32>* %104
br label %105
105: ; preds = %91, %94
%106 = icmp eq i64 %52, %49
br i1 %106, label %116, label %107
107: ; preds = %47, %105
%108 = phi i64 [ 0, %47 ], [ %52, %105 ]
br label %109
109: ; preds = %107, %109
%110 = phi i64 [ %114, %109 ], [ %108, %107 ]
%111 = getelementptr inbounds i32, i32* %48, i64 %110
%112 = load i32, i32* %111
%113 = sub nsw i32 %112, %15
store i32 %113, i32* %111
%114 = add nuw nsw i64 %110, 1
%115 = icmp eq i64 %114, %49
br i1 %115, label %116, label %109
116: ; preds = %109, %105, %43
%117 = tail call i32 @free(i8* %7)
%118 = tail call i32 @fclose(i32* %5)
ret i32 %15
}