#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 */
double atof(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 getxxnames(char ***pnames, double **xx, 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 = NULL;
  if (pnames != NULL)
    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;
    }
    if (names != NULL)
      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++) {
      xx[i][num] = atof(spt[i + 1]);
    }
    freeup(spt, nsplit);
    ++num;
  }
  if (fname != NULL)
    fclose(fff);
  return num;
}


x86 assembly (clang, -O0):
<getxxnames>:
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)
movq   $0x0,-0x28f8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     11e5 <getxxnames+0x55>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x28f8(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    1206 <getxxnames+0x76>
mov    0x2df1(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x28e8(%rbp)
jmp    121d <getxxnames+0x8d>
mov    -0x20(%rbp),%rdi
lea    -0x28e8(%rbp),%rsi
lea    0xde8(%rip),%rdx
call   10a0 <openit@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28e0(%rbp)
mov    $0x32,%eax
cmp    -0x28e0(%rbp),%eax
jge    124b <getxxnames+0xbb>
mov    -0x28e0(%rbp),%eax
mov    %eax,-0x28fc(%rbp)
jmp    125b <getxxnames+0xcb>
mov    $0x32,%eax
mov    %eax,-0x28fc(%rbp)
jmp    125b <getxxnames+0xcb>
mov    -0x28fc(%rbp),%eax
mov    %eax,-0x28dc(%rbp)
lea    -0x2730(%rbp),%rdi
mov    -0x28e8(%rbp),%rdx
mov    $0x2710,%esi
call   1080 <fgets@plt>
cmp    $0x0,%rax
je     1423 <getxxnames+0x293>
lea    -0x2730(%rbp),%rdi
lea    -0x28c0(%rbp),%rsi
mov    -0x28dc(%rbp),%edx
call   1050 <splitup@plt>
mov    %eax,-0x28cc(%rbp)
cmpl   $0x0,-0x28cc(%rbp)
jne    12cc <getxxnames+0x13c>
lea    -0x28c0(%rbp),%rdi
mov    -0x28cc(%rbp),%esi
call   1090 <freeup@plt>
jmp    1267 <getxxnames+0xd7>
mov    -0x28c0(%rbp),%rax
mov    %rax,-0x28c8(%rbp)
mov    -0x28c8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
jne    1304 <getxxnames+0x174>
lea    -0x28c0(%rbp),%rdi
mov    -0x28cc(%rbp),%esi
call   1090 <freeup@plt>
jmp    1267 <getxxnames+0xd7>
cmpq   $0x0,-0x28f8(%rbp)
je     1333 <getxxnames+0x1a3>
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    1382 <getxxnames+0x1f2>
mov    -0x28ec(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28ec(%rbp)
cmpl   $0xa,-0x28ec(%rbp)
jge    137d <getxxnames+0x1ed>
mov    -0x28cc(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    -0x2730(%rbp),%rcx
lea    0xc8a(%rip),%rdi
call   1070 <printf@plt>
jmp    1267 <getxxnames+0xd7>
mov    -0x28d8(%rbp),%eax
cmp    -0x14(%rbp),%eax
jl     139d <getxxnames+0x20d>
lea    0xc92(%rip),%rdi
call   1030 <fatalx@plt>
movl   $0x0,-0x28d0(%rbp)
mov    -0x28d0(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    13fd <getxxnames+0x26d>
mov    -0x28d0(%rbp),%eax
add    $0x1,%eax
cltq
mov    -0x28c0(%rbp,%rax,8),%rdi
ff
call   1040 <atof@plt>
mov    -0x10(%rbp),%rax
movslq -0x28d0(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x28d8(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28d0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28d0(%rbp)
jmp    13a7 <getxxnames+0x217>
lea    -0x28c0(%rbp),%rdi
mov    -0x28cc(%rbp),%esi
call   1090 <freeup@plt>
mov    -0x28d8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28d8(%rbp)
jmp    1267 <getxxnames+0xd7>
cmpq   $0x0,-0x20(%rbp)
je     143a <getxxnames+0x2aa>
mov    -0x28e8(%rbp),%rdi
call   1060 <fclose@plt>
mov    -0x28d8(%rbp),%eax
add    $0x2900,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getxxnames>:
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,%r15
test   %rdi,%rdi
je     11d5 <getxxnames+0x45>
mov    (%rdi),%rbp
test   %r12,%r12
je     11dc <getxxnames+0x4c>
lea    0xe3f(%rip),%rdx
lea    0x18(%rsp),%rsi
mov    %r12,%rdi
call   10a0 <openit@plt>
mov    0x18(%rsp),%rdx
jmp    11eb <getxxnames+0x5b>
xor    %ebp,%ebp
test   %r12,%r12
jne    11ba <getxxnames+0x2a>
mov    0x2e05(%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   1080 <fgets@plt>
test   %rax,%rax
je     13b2 <getxxnames+0x222>
mov    %rbp,0x48(%rsp)
mov    %r15,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)
nopl   (%rax)
mov    %rbp,%rdi
mov    %r14,%rsi
mov    %ebx,%edx
call   1050 <splitup@plt>
test   %eax,%eax
je     12c0 <getxxnames+0x130>
mov    %eax,%r15d
mov    0x50(%rsp),%rdi
cmpb   $0x23,(%rdi)
je     12c3 <getxxnames+0x133>
mov    %r12,0x28(%rsp)
mov    0x48(%rsp),%r12
test   %r12,%r12
je     128b <getxxnames+0xfb>
call   10b0 <strdup@plt>
mov    0x10(%rsp),%rcx
mov    %rax,(%r12,%rcx,8)
cmp    %r13d,%r15d
jg     12ee <getxxnames+0x15e>
mov    0xc(%rsp),%eax
cmp    $0x8,%eax
mov    0x28(%rsp),%r12
jg     12b7 <getxxnames+0x127>
lea    0xd5d(%rip),%rdi
mov    %r15d,%esi
mov    %r13d,%edx
mov    %rbp,%rcx
call   1070 <printf@plt>
mov    0xc(%rsp),%eax
add    $0x1,%eax
mov    %eax,0xc(%rsp)
jmp    12ce <getxxnames+0x13e>
xor    %r15d,%r15d
mov    %r14,%rdi
mov    %r15d,%esi
call   1090 <freeup@plt>
mov    0x18(%rsp),%rdx
mov    %rbp,%rdi
mov    $0x2710,%esi
call   1080 <fgets@plt>
test   %rax,%rax
jne    1250 <getxxnames+0xc0>
jmp    1389 <getxxnames+0x1f9>
mov    0x30(%rsp),%rax
cmp    %rax,0x10(%rsp)
jl     1306 <getxxnames+0x176>
lea    0xd29(%rip),%rdi
call   1030 <fatalx@plt>
mov    %r13d,0x24(%rsp)
test   %r13d,%r13d
jle    134e <getxxnames+0x1be>
xor    %r13d,%r13d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    0x1(%r13),%r12
mov    0x58(%rsp,%r13,8),%rdi
call   1040 <atof@plt>
mov    0x40(%rsp),%rdx
mov    (%rdx,%r13,8),%rax
mov    0x10(%rsp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x38(%rsp),%rax
mov    %r12,%r13
cmp    %r12,%rax
jne    1320 <getxxnames+0x190>
mov    %r14,%rdi
mov    %r15d,%esi
call   1090 <freeup@plt>
mov    0x10(%rsp),%r15
add    $0x1,%r15
mov    0x18(%rsp),%rdx
mov    %rbp,%rdi
mov    $0x2710,%esi
call   1080 <fgets@plt>
test   %rax,%rax
mov    0x28(%rsp),%r12
mov    0x24(%rsp),%r13d
jne    1248 <getxxnames+0xb8>
jmp    138e <getxxnames+0x1fe>
mov    0x10(%rsp),%r15
test   %r12,%r12
je     139d <getxxnames+0x20d>
mov    0x18(%rsp),%rdi
call   1060 <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    1393 <getxxnames+0x203>
jmp    139d <getxxnames+0x20d>

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

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 @getxxnames(i8*** %0, double** 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 = icmp eq i8*** %0, null
br i1 %12, label %15, label %13
13: ; preds = %5
%14 = load i8**, i8*** %0
br label %15
15: ; preds = %13, %5
%16 = phi i8** [ %14, %13 ], [ null, %5 ]
%17 = icmp eq i8* %4, null
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = load i32*, i32** @stdin
store i32* %19, i32** %8
br label %23
20: ; preds = %15
%21 = call i32 @openit(i8* %4, i32** %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%22 = load i32*, i32** %8
br label %23
23: ; preds = %20, %18
%24 = phi i32* [ %22, %20 ], [ %19, %18 ]
%25 = icmp sgt i32 %3, 49
%26 = select i1 %25, i32 %3, i32 49
%27 = add nuw nsw i32 %26, 1
%28 = call i32* @fgets(i8* %9, i32 10000, i32* %24)
%29 = icmp eq i32* %28, null
br i1 %29, label %96, label %30
30: ; preds = %23
%31 = getelementptr inbounds [50 x i8*], [50 x i8*]* %7, i64 0, i64 0
%32 = icmp eq i8** %16, null
%33 = icmp sgt i32 %3, 0
%34 = sext i32 %2 to i64
%35 = zext i32 %3 to i64
br label %36
36: ; preds = %30, %84
%37 = phi i64 [ 0, %30 ], [ %86, %84 ]
%38 = phi i32 [ 0, %30 ], [ %41, %84 ]
%39 = getelementptr inbounds i8*, i8** %16, i64 %37
br label %40
40: ; preds = %36, %65
%41 = phi i32 [ %38, %36 ], [ %61, %65 ]
br label %42
42: ; preds = %40, %45
%43 = call i32 @splitup(i8* %9, i8** %31, i32 %27)
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %51
45: ; preds = %42, %51
%46 = phi i32 [ %43, %51 ], [ 0, %42 ]
%47 = call i32 @freeup(i8** %31, i32 %46)
%48 = load i32*, i32** %8
%49 = call i32* @fgets(i8* %9, i32 10000, i32* %48)
%50 = icmp eq i32* %49, null
br i1 %50, label %90, label %42
51: ; preds = %42
%52 = load i8*, i8** %31
%53 = load i8, i8* %52
%54 = icmp eq i8 %53, 35
br i1 %54, label %45, label %55
55: ; preds = %51
br i1 %32, label %58, label %56
56: ; preds = %55
%57 = call i8* @strdup(i8* %52)
store i8* %57, i8** %39
br label %58
58: ; preds = %56, %55
%59 = icmp sgt i32 %43, %3
br i1 %59, label %69, label %60
60: ; preds = %58
%61 = add nsw i32 %41, 1
%62 = icmp slt i32 %41, 9
br i1 %62, label %63, label %65
63: ; preds = %60
%64 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i32 %43, i32 %3, i8* %9)
br label %65
65: ; preds = %63, %60
%66 = load i32*, i32** %8
%67 = call i32* @fgets(i8* %9, i32 10000, i32* %66)
%68 = icmp eq i32* %67, null
br i1 %68, label %92, label %40
69: ; preds = %58
%70 = icmp slt i64 %37, %34
br i1 %70, label %73, label %71
71: ; preds = %69
%72 = call i32 @fatalx(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
br label %73
73: ; preds = %71, %69
br i1 %33, label %74, label %84
74: ; preds = %73, %74
%75 = phi i64 [ %76, %74 ], [ 0, %73 ]
%76 = add nuw nsw i64 %75, 1
%77 = getelementptr inbounds [50 x i8*], [50 x i8*]* %7, i64 0, i64 %76
%78 = load i8*, i8** %77
%79 = call double @atof(i8* %78)
%80 = getelementptr inbounds double*, double** %1, i64 %75
%81 = load double*, double** %80
%82 = getelementptr inbounds double, double* %81, i64 %37
store double %79, double* %82
%83 = icmp eq i64 %76, %35
br i1 %83, label %84, label %74
84: ; preds = %74, %73
%85 = call i32 @freeup(i8** %31, i32 %43)
%86 = add nuw i64 %37, 1
%87 = load i32*, i32** %8
%88 = call i32* @fgets(i8* %9, i32 10000, i32* %87)
%89 = icmp eq i32* %88, null
br i1 %89, label %94, label %36
90: ; preds = %45
%91 = trunc i64 %37 to i32
br label %96
92: ; preds = %65
%93 = trunc i64 %37 to i32
br label %96
94: ; preds = %84
%95 = trunc i64 %86 to i32
br label %96
96: ; preds = %94, %92, %90, %23
%97 = phi i32 [ 0, %23 ], [ %91, %90 ], [ %93, %92 ], [ %95, %94 ]
br i1 %17, label %101, label %98
98: ; preds = %96
%99 = load i32*, i32** %8
%100 = call i32 @fclose(i32* %99)
br label %101
101: ; preds = %98, %96
ret i32 %97
}