#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 atoi(char *);
int /*<<< orphan*/ fatalx(char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ freeup(char **, int);
int /*<<< orphan*/ openit(char *, int /*<<< orphan*/ **, char *);
int /*<<< orphan*/ printf(char *, int, int, char *);
int splitup(char *, char **, int);
int /*<<< orphan*/ *stdin;
char *strdup(char *);
int getjjnames(char ***pnames, int **jj, int maxrow, int numcol, char *fname) {
  char line[10000];
  char *spt[50];
  char *sx;
  int nsplit, i, j, num = 0, maxff, numcolp;
  FILE *fff;
  int nbad = 0;
  char **names;
  names = *pnames;
  if (fname == NULL)
    fff = stdin;
  else {
    openit(fname, &fff, "r");
  }
  numcolp = numcol + 1;
  maxff = ((50) < (numcolp) ? (numcolp) : (50));
  while (fgets(line, 10000, fff) != NULL) {
    nsplit = splitup(line, spt, maxff);
    if (nsplit == 0) {
      freeup(spt, nsplit);
      continue;
    }
    sx = spt[0];
    if (sx[0] == '#') {
      freeup(spt, nsplit);
      continue;
    }
    names[num] = strdup(sx);
    if (nsplit < numcolp) {
      ++nbad;
      if (nbad < 10)
        printf("+++ bad line: nsplit: %d numcol: %d\n%s\n", nsplit, numcol,
               line);
      continue;
    }
    if (num >= maxrow)
      fatalx("too much data\n");
    for (i = 0; i < numcol; i++) {
      jj[i][num] = atoi(spt[i + 1]);
    }
    freeup(spt, nsplit);
    ++num;
  }
  if (fname != NULL)
    fclose(fff);
  return num;
}


x86 assembly (clang, -O0):
<getjjnames>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2900,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
movl   $0x0,-0x28d8(%rbp)
movl   $0x0,-0x28ec(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x28f8(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    11f0 <getjjnames+0x60>
mov    0x2e07(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x28e8(%rbp)
jmp    1207 <getjjnames+0x77>
mov    -0x20(%rbp),%rdi
lea    -0x28e8(%rbp),%rsi
lea    0xdfe(%rip),%rdx
call   1090 <openit@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28e0(%rbp)
mov    $0x32,%eax
cmp    -0x28e0(%rbp),%eax
jge    1235 <getjjnames+0xa5>
mov    -0x28e0(%rbp),%eax
mov    %eax,-0x28fc(%rbp)
jmp    1245 <getjjnames+0xb5>
mov    $0x32,%eax
mov    %eax,-0x28fc(%rbp)
jmp    1245 <getjjnames+0xb5>
mov    -0x28fc(%rbp),%eax
mov    %eax,-0x28dc(%rbp)
lea    -0x2730(%rbp),%rdi
mov    -0x28e8(%rbp),%rdx
mov    $0x2710,%esi
call   1070 <fgets@plt>
cmp    $0x0,%rax
je     13ff <getjjnames+0x26f>
lea    -0x2730(%rbp),%rdi
lea    -0x28c0(%rbp),%rsi
mov    -0x28dc(%rbp),%edx
call   1040 <splitup@plt>
mov    %eax,-0x28cc(%rbp)
cmpl   $0x0,-0x28cc(%rbp)
jne    12b6 <getjjnames+0x126>
lea    -0x28c0(%rbp),%rdi
mov    -0x28cc(%rbp),%esi
call   1080 <freeup@plt>
jmp    1251 <getjjnames+0xc1>
mov    -0x28c0(%rbp),%rax
mov    %rax,-0x28c8(%rbp)
mov    -0x28c8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
jne    12ee <getjjnames+0x15e>
lea    -0x28c0(%rbp),%rdi
mov    -0x28cc(%rbp),%esi
call   1080 <freeup@plt>
jmp    1251 <getjjnames+0xc1>
mov    -0x28c8(%rbp),%rdi
call   10b0 <strdup@plt>
mov    %rax,%rdx
mov    -0x28f8(%rbp),%rax
movslq -0x28d8(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x28cc(%rbp),%eax
cmp    -0x28e0(%rbp),%eax
jge    135e <getjjnames+0x1ce>
mov    -0x28ec(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28ec(%rbp)
cmpl   $0xa,-0x28ec(%rbp)
jge    1359 <getjjnames+0x1c9>
mov    -0x28cc(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    -0x2730(%rbp),%rcx
lea    0xcae(%rip),%rdi
call   1060 <printf@plt>
jmp    1251 <getjjnames+0xc1>
mov    -0x28d8(%rbp),%eax
cmp    -0x14(%rbp),%eax
jl     1379 <getjjnames+0x1e9>
lea    0xcb6(%rip),%rdi
call   1030 <fatalx@plt>
movl   $0x0,-0x28d0(%rbp)
mov    -0x28d0(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    13d9 <getjjnames+0x249>
mov    -0x28d0(%rbp),%eax
add    $0x1,%eax
cltq
mov    -0x28c0(%rbp,%rax,8),%rdi
ff
call   10a0 <atoi@plt>
mov    %eax,%edx
mov    -0x10(%rbp),%rax
movslq -0x28d0(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x28d8(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x28d0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28d0(%rbp)
jmp    1383 <getjjnames+0x1f3>
lea    -0x28c0(%rbp),%rdi
mov    -0x28cc(%rbp),%esi
call   1080 <freeup@plt>
mov    -0x28d8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28d8(%rbp)
jmp    1251 <getjjnames+0xc1>
cmpq   $0x0,-0x20(%rbp)
je     1416 <getjjnames+0x286>
mov    -0x28e8(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x28d8(%rbp),%eax
add    $0x2900,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getjjnames>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28f8,%rsp
mov    %r8,%r12
mov    %ecx,%r13d
mov    %edx,%r14d
mov    %rsi,%rbp
mov    (%rdi),%rax
mov    %rax,0x48(%rsp)
test   %r8,%r8
je     11d5 <getjjnames+0x45>
lea    0xe3f(%rip),%rdx
lea    0x18(%rsp),%rsi
mov    %r12,%rdi
call   1090 <openit@plt>
mov    0x18(%rsp),%rdx
jmp    11e4 <getjjnames+0x54>
mov    0x2e0c(%rip),%rax
mov    (%rax),%rdx
mov    %rdx,0x18(%rsp)
cmp    $0x32,%r13d
mov    $0x31,%ebx
cmovge %r13d,%ebx
lea    0x1e0(%rsp),%rdi
mov    $0x2710,%esi
call   1070 <fgets@plt>
test   %rax,%rax
je     13b0 <getjjnames+0x220>
mov    %rbp,0x40(%rsp)
add    $0x1,%ebx
movslq %r14d,%rax
mov    %rax,0x30(%rsp)
mov    %r13d,%eax
mov    %rax,0x38(%rsp)
xor    %r15d,%r15d
lea    0x1e0(%rsp),%rbp
lea    0x50(%rsp),%r14
movl   $0x0,0xc(%rsp)
mov    %r15,0x10(%rsp)
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbp,%rdi
mov    %r14,%rsi
mov    %ebx,%edx
call   1040 <splitup@plt>
test   %eax,%eax
je     12c0 <getjjnames+0x130>
mov    %eax,%r15d
mov    0x50(%rsp),%rdi
cmpb   $0x23,(%rdi)
je     12c3 <getjjnames+0x133>
call   10b0 <strdup@plt>
mov    0x48(%rsp),%rcx
mov    0x10(%rsp),%rdx
mov    %rax,(%rcx,%rdx,8)
cmp    %r13d,%r15d
jg     12ee <getjjnames+0x15e>
mov    0xc(%rsp),%eax
cmp    $0x8,%eax
jg     12a8 <getjjnames+0x118>
lea    0xd6c(%rip),%rdi
mov    %r15d,%esi
mov    %r13d,%edx
mov    %rbp,%rcx
call   1060 <printf@plt>
mov    0xc(%rsp),%eax
add    $0x1,%eax
mov    %eax,0xc(%rsp)
jmp    12ce <getjjnames+0x13e>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %r15d,%r15d
mov    %r14,%rdi
mov    %r15d,%esi
call   1080 <freeup@plt>
mov    0x18(%rsp),%rdx
mov    %rbp,%rdi
mov    $0x2710,%esi
call   1070 <fgets@plt>
test   %rax,%rax
jne    1250 <getjjnames+0xc0>
jmp    1387 <getjjnames+0x1f7>
mov    %r12,0x28(%rsp)
mov    0x30(%rsp),%rax
cmp    %rax,0x10(%rsp)
jl     130b <getjjnames+0x17b>
lea    0xd24(%rip),%rdi
call   1030 <fatalx@plt>
mov    %r13d,0x24(%rsp)
test   %r13d,%r13d
jle    134c <getjjnames+0x1bc>
xor    %r13d,%r13d
nopl   0x0(%rax,%rax,1)
lea    0x1(%r13),%r12
mov    0x58(%rsp,%r13,8),%rdi
call   10a0 <atoi@plt>
mov    0x40(%rsp),%rsi
mov    (%rsi,%r13,8),%rcx
mov    0x10(%rsp),%rdx
mov    %eax,(%rcx,%rdx,4)
mov    0x38(%rsp),%rax
mov    %r12,%r13
cmp    %r12,%rax
jne    1320 <getjjnames+0x190>
mov    %r14,%rdi
mov    %r15d,%esi
call   1080 <freeup@plt>
mov    0x10(%rsp),%r15
add    $0x1,%r15
mov    0x18(%rsp),%rdx
mov    %rbp,%rdi
mov    $0x2710,%esi
call   1070 <fgets@plt>
test   %rax,%rax
mov    0x28(%rsp),%r12
mov    0x24(%rsp),%r13d
jne    123c <getjjnames+0xac>
jmp    138c <getjjnames+0x1fc>
mov    0x10(%rsp),%r15
test   %r12,%r12
je     139b <getjjnames+0x20b>
mov    0x18(%rsp),%rdi
call   1050 <fclose@plt>
mov    %r15d,%eax
add    $0x28f8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %r15d,%r15d
test   %r12,%r12
jne    1391 <getjjnames+0x201>
jmp    139b <getjjnames+0x20b>

LLVM IR (-O0):
@stdin = global i32* null
@.str = [2 x i8] c"r\00"
@.str.1 = [40 x i8] c"+++ bad line: nsplit: %d numcol: %d\0A%s\0A\00"
@.str.2 = [15 x i8] c"too much data\0A\00"
define i32 @getjjnames(i8*** %0, i32** %1, i32 %2, i32 %3, i8* %4) {
%6 = alloca i8***
%7 = alloca i32**
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
%11 = alloca [10000 x i8]
%12 = alloca [50 x i8*]
%13 = alloca i8*
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32*
%21 = alloca i32
%22 = alloca i8**
store i8*** %0, i8**** %6
store i32** %1, i32*** %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i8* %4, i8** %10
store i32 0, i32* %17
store i32 0, i32* %21
%23 = load i8***, i8**** %6
%24 = load i8**, i8*** %23
store i8** %24, i8*** %22
%25 = load i8*, i8** %10
%26 = icmp eq i8* %25, null
br i1 %26, label %27, label %29
27: ; preds = %5
%28 = load i32*, i32** @stdin
store i32* %28, i32** %20
br label %32
29: ; preds = %5
%30 = load i8*, i8** %10
%31 = call i32 @openit(i8* %30, i32** %20, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %32
32: ; preds = %29, %27
%33 = load i32, i32* %9
%34 = add nsw i32 %33, 1
store i32 %34, i32* %19
%35 = load i32, i32* %19
%36 = icmp slt i32 50, %35
br i1 %36, label %37, label %39
37: ; preds = %32
%38 = load i32, i32* %19
br label %40
39: ; preds = %32
br label %40
40: ; preds = %39, %37
%41 = phi i32 [ %38, %37 ], [ 50, %39 ]
store i32 %41, i32* %18
br label %42
42: ; preds = %120, %90, %66, %54, %40
%43 = getelementptr inbounds [10000 x i8], [10000 x i8]* %11, i64 0, i64 0
%44 = load i32*, i32** %20
%45 = call i32* @fgets(i8* %43, i32 10000, i32* %44)
%46 = icmp ne i32* %45, null
br i1 %46, label %47, label %126
47: ; preds = %42
%48 = getelementptr inbounds [10000 x i8], [10000 x i8]* %11, i64 0, i64 0
%49 = getelementptr inbounds [50 x i8*], [50 x i8*]* %12, i64 0, i64 0
%50 = load i32, i32* %18
%51 = call i32 @splitup(i8* %48, i8** %49, i32 %50)
store i32 %51, i32* %14
%52 = load i32, i32* %14
%53 = icmp eq i32 %52, 0
br i1 %53, label %54, label %58
54: ; preds = %47
%55 = getelementptr inbounds [50 x i8*], [50 x i8*]* %12, i64 0, i64 0
%56 = load i32, i32* %14
%57 = call i32 @freeup(i8** %55, i32 %56)
br label %42
58: ; preds = %47
%59 = getelementptr inbounds [50 x i8*], [50 x i8*]* %12, i64 0, i64 0
%60 = load i8*, i8** %59
store i8* %60, i8** %13
%61 = load i8*, i8** %13
%62 = getelementptr inbounds i8, i8* %61, i64 0
%63 = load i8, i8* %62
%64 = sext i8 %63 to i32
%65 = icmp eq i32 %64, 35
br i1 %65, label %66, label %70
66: ; preds = %58
%67 = getelementptr inbounds [50 x i8*], [50 x i8*]* %12, i64 0, i64 0
%68 = load i32, i32* %14
%69 = call i32 @freeup(i8** %67, i32 %68)
br label %42
70: ; preds = %58
%71 = load i8*, i8** %13
%72 = call i8* @strdup(i8* %71)
%73 = load i8**, i8*** %22
%74 = load i32, i32* %17
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i8*, i8** %73, i64 %75
store i8* %72, i8** %76
%77 = load i32, i32* %14
%78 = load i32, i32* %19
%79 = icmp slt i32 %77, %78
br i1 %79, label %80, label %91
80: ; preds = %70
%81 = load i32, i32* %21
%82 = add nsw i32 %81, 1
store i32 %82, i32* %21
%83 = load i32, i32* %21
%84 = icmp slt i32 %83, 10
br i1 %84, label %85, label %90
85: ; preds = %80
%86 = load i32, i32* %14
%87 = load i32, i32* %9
%88 = getelementptr inbounds [10000 x i8], [10000 x i8]* %11, i64 0, i64 0
%89 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i32 %86, i32 %87, i8* %88)
br label %90
90: ; preds = %85, %80
br label %42
91: ; preds = %70
%92 = load i32, i32* %17
%93 = load i32, i32* %8
%94 = icmp sge i32 %92, %93
br i1 %94, label %95, label %97
95: ; preds = %91
%96 = call i32 @fatalx(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
br label %97
97: ; preds = %95, %91
store i32 0, i32* %15
br label %98
98: ; preds = %117, %97
%99 = load i32, i32* %15
%100 = load i32, i32* %9
%101 = icmp slt i32 %99, %100
br i1 %101, label %102, label %120
102: ; preds = %98
%103 = load i32, i32* %15
%104 = add nsw i32 %103, 1
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds [50 x i8*], [50 x i8*]* %12, i64 0, i64 %105
%107 = load i8*, i8** %106
%108 = call i32 @atoi(i8* %107)
%109 = load i32**, i32*** %7
%110 = load i32, i32* %15
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds i32*, i32** %109, i64 %111
%113 = load i32*, i32** %112
%114 = load i32, i32* %17
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds i32, i32* %113, i64 %115
store i32 %108, i32* %116
br label %117
117: ; preds = %102
%118 = load i32, i32* %15
%119 = add nsw i32 %118, 1
store i32 %119, i32* %15
br label %98
120: ; preds = %98
%121 = getelementptr inbounds [50 x i8*], [50 x i8*]* %12, i64 0, i64 0
%122 = load i32, i32* %14
%123 = call i32 @freeup(i8** %121, i32 %122)
%124 = load i32, i32* %17
%125 = add nsw i32 %124, 1
store i32 %125, i32* %17
br label %42
126: ; preds = %42
%127 = load i8*, i8** %10
%128 = icmp ne i8* %127, null
br i1 %128, label %129, label %132
129: ; preds = %126
%130 = load i32*, i32** %20
%131 = call i32 @fclose(i32* %130)
br label %132
132: ; preds = %129, %126
%133 = load i32, i32* %17
ret i32 %133
}

LLVM IR (-O2):
@stdin = global i32* null
@.str = [2 x i8] c"r\00"
@.str.1 = [40 x i8] c"+++ bad line: nsplit: %d numcol: %d\0A%s\0A\00"
@.str.2 = [15 x i8] c"too much data\0A\00"
define i32 @getjjnames(i8*** nocapture %0, i32** nocapture %1, i32 %2, i32 %3, i8* %4) {
%6 = alloca [10000 x i8]
%7 = alloca [50 x i8*]
%8 = alloca i32*
%9 = getelementptr inbounds [10000 x i8], [10000 x i8]* %6, i64 0, i64 0
%10 = bitcast [50 x i8*]* %7 to i8*
%11 = bitcast i32** %8 to i8*
%12 = load i8**, i8*** %0
%13 = icmp eq i8* %4, null
br i1 %13, label %14, label %16
14: ; preds = %5
%15 = load i32*, i32** @stdin
store i32* %15, i32** %8
br label %19
16: ; preds = %5
%17 = call i32 @openit(i8* %4, i32** %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%18 = load i32*, i32** %8
br label %19
19: ; preds = %16, %14
%20 = phi i32* [ %18, %16 ], [ %15, %14 ]
%21 = icmp sgt i32 %3, 49
%22 = select i1 %21, i32 %3, i32 49
%23 = add nuw nsw i32 %22, 1
%24 = call i32* @fgets(i8* %9, i32 10000, i32* %20)
%25 = icmp eq i32* %24, null
br i1 %25, label %89, label %26
26: ; preds = %19
%27 = getelementptr inbounds [50 x i8*], [50 x i8*]* %7, i64 0, i64 0
%28 = icmp sgt i32 %3, 0
%29 = sext i32 %2 to i64
%30 = zext i32 %3 to i64
br label %31
31: ; preds = %26, %77
%32 = phi i64 [ 0, %26 ], [ %79, %77 ]
%33 = phi i32 [ 0, %26 ], [ %36, %77 ]
%34 = getelementptr inbounds i8*, i8** %12, i64 %32
br label %35
35: ; preds = %31, %58
%36 = phi i32 [ %33, %31 ], [ %54, %58 ]
br label %37
37: ; preds = %35, %40
%38 = call i32 @splitup(i8* %9, i8** %27, i32 %23)
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %46
40: ; preds = %37, %46
%41 = phi i32 [ %38, %46 ], [ 0, %37 ]
%42 = call i32 @freeup(i8** %27, i32 %41)
%43 = load i32*, i32** %8
%44 = call i32* @fgets(i8* %9, i32 10000, i32* %43)
%45 = icmp eq i32* %44, null
br i1 %45, label %83, label %37
46: ; preds = %37
%47 = load i8*, i8** %27
%48 = load i8, i8* %47
%49 = icmp eq i8 %48, 35
br i1 %49, label %40, label %50
50: ; preds = %46
%51 = call i8* @strdup(i8* %47)
store i8* %51, i8** %34
%52 = icmp sgt i32 %38, %3
br i1 %52, label %62, label %53
53: ; preds = %50
%54 = add nsw i32 %36, 1
%55 = icmp slt i32 %36, 9
br i1 %55, label %56, label %58
56: ; preds = %53
%57 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i32 %38, i32 %3, i8* %9)
br label %58
58: ; preds = %56, %53
%59 = load i32*, i32** %8
%60 = call i32* @fgets(i8* %9, i32 10000, i32* %59)
%61 = icmp eq i32* %60, null
br i1 %61, label %85, label %35
62: ; preds = %50
%63 = icmp slt i64 %32, %29
br i1 %63, label %66, label %64
64: ; preds = %62
%65 = call i32 @fatalx(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
br label %66
66: ; preds = %64, %62
br i1 %28, label %67, label %77
67: ; preds = %66, %67
%68 = phi i64 [ %69, %67 ], [ 0, %66 ]
%69 = add nuw nsw i64 %68, 1
%70 = getelementptr inbounds [50 x i8*], [50 x i8*]* %7, i64 0, i64 %69
%71 = load i8*, i8** %70
%72 = call i32 @atoi(i8* %71)
%73 = getelementptr inbounds i32*, i32** %1, i64 %68
%74 = load i32*, i32** %73
%75 = getelementptr inbounds i32, i32* %74, i64 %32
store i32 %72, i32* %75
%76 = icmp eq i64 %69, %30
br i1 %76, label %77, label %67
77: ; preds = %67, %66
%78 = call i32 @freeup(i8** %27, i32 %38)
%79 = add nuw i64 %32, 1
%80 = load i32*, i32** %8
%81 = call i32* @fgets(i8* %9, i32 10000, i32* %80)
%82 = icmp eq i32* %81, null
br i1 %82, label %87, label %31
83: ; preds = %40
%84 = trunc i64 %32 to i32
br label %89
85: ; preds = %58
%86 = trunc i64 %32 to i32
br label %89
87: ; preds = %77
%88 = trunc i64 %79 to i32
br label %89
89: ; preds = %87, %85, %83, %19
%90 = phi i32 [ 0, %19 ], [ %84, %83 ], [ %86, %85 ], [ %88, %87 ]
br i1 %13, label %94, label %91
91: ; preds = %89
%92 = load i32*, i32** %8
%93 = call i32 @fclose(i32* %92)
br label %94
94: ; preds = %91, %89
ret i32 %90
}