#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*/ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
char *strtok(char *, char *);
void read_mu_sigma_w(int dim, int mixture, FILE *gmmfile, double **mu,
                     double **sigma, double *w) {
  int i, k, l;
  char inbuf[10000], *tp;
  memset(inbuf, 0, 10000);
  for (i = 0; i < 8; i++)
    fgets(inbuf, 10000, gmmfile);
  for (k = 0; k < mixture; k++) {
    fgets(inbuf, 10000, gmmfile);
    tp = strtok(inbuf, " \n");
    tp = strtok(NULL, " \n");
    w[k] = atof(strtok(NULL, " \n"));
    for (i = 0; i < 2; i++)
      fgets(inbuf, 10000, gmmfile);
    l = 0;
    tp = strtok(inbuf, " \n");
    if (tp != NULL)
      mu[k][l++] = atof(tp);
    while (tp != NULL) {
      tp = strtok(NULL, " \n");
      if (tp != NULL)
        mu[k][l++] = atof(tp);
    }
    for (i = 0; i < 2; i++)
      fgets(inbuf, 10000, gmmfile);
    l = 0;
    tp = strtok(inbuf, " \n");
    if (tp != NULL)
      sigma[k][l++] = atof(tp);
    while (tp != NULL) {
      tp = strtok(NULL, " \n");
      if (tp != NULL)
        sigma[k][l++] = atof(tp);
    }
    fgets(inbuf, 10000, gmmfile);
  }
}


x86 assembly (clang, -O0):
<read_mu_sigma_w>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2760,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
lea    -0x2750(%rbp),%rdi
xor    %esi,%esi
mov    $0x2710,%edx
call   1040 <memset@plt>
movl   $0x0,-0x2c(%rbp)
cmpl   $0x8,-0x2c(%rbp)
jge    11a8 <read_mu_sigma_w+0x68>
lea    -0x2750(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    $0x2710,%esi
call   1050 <fgets@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    117b <read_mu_sigma_w+0x3b>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1435 <read_mu_sigma_w+0x2f5>
lea    -0x2750(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    $0x2710,%esi
call   1050 <fgets@plt>
lea    -0x2750(%rbp),%rdi
lea    0xe22(%rip),%rsi
call   1060 <strtok@plt>
mov    %rax,-0x2758(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xe0b(%rip),%rsi
call   1060 <strtok@plt>
mov    %rax,-0x2758(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xdf4(%rip),%rsi
call   1060 <strtok@plt>
mov    %rax,%rdi
call   1030 <atof@plt>
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x2c(%rbp)
cmpl   $0x2,-0x2c(%rbp)
jge    125a <read_mu_sigma_w+0x11a>
lea    -0x2750(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    $0x2710,%esi
call   1050 <fgets@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    122d <read_mu_sigma_w+0xed>
movl   $0x0,-0x34(%rbp)
lea    -0x2750(%rbp),%rdi
lea    0xd91(%rip),%rsi
call   1060 <strtok@plt>
mov    %rax,-0x2758(%rbp)
cmpq   $0x0,-0x2758(%rbp)
je     12b4 <read_mu_sigma_w+0x174>
mov    -0x2758(%rbp),%rdi
call   1030 <atof@plt>
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x34(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x34(%rbp)
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    12b9 <read_mu_sigma_w+0x179>
cmpq   $0x0,-0x2758(%rbp)
je     131c <read_mu_sigma_w+0x1dc>
xor    %eax,%eax
mov    %eax,%edi
lea    0xd2e(%rip),%rsi
call   1060 <strtok@plt>
mov    %rax,-0x2758(%rbp)
cmpq   $0x0,-0x2758(%rbp)
je     1317 <read_mu_sigma_w+0x1d7>
mov    -0x2758(%rbp),%rdi
call   1030 <atof@plt>
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x34(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x34(%rbp)
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    12b9 <read_mu_sigma_w+0x179>
movl   $0x0,-0x2c(%rbp)
cmpl   $0x2,-0x2c(%rbp)
jge    1350 <read_mu_sigma_w+0x210>
lea    -0x2750(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    $0x2710,%esi
call   1050 <fgets@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1323 <read_mu_sigma_w+0x1e3>
movl   $0x0,-0x34(%rbp)
lea    -0x2750(%rbp),%rdi
lea    0xc9b(%rip),%rsi
call   1060 <strtok@plt>
mov    %rax,-0x2758(%rbp)
cmpq   $0x0,-0x2758(%rbp)
je     13aa <read_mu_sigma_w+0x26a>
mov    -0x2758(%rbp),%rdi
call   1030 <atof@plt>
mov    -0x20(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x34(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x34(%rbp)
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    13af <read_mu_sigma_w+0x26f>
cmpq   $0x0,-0x2758(%rbp)
je     1412 <read_mu_sigma_w+0x2d2>
xor    %eax,%eax
mov    %eax,%edi
lea    0xc38(%rip),%rsi
call   1060 <strtok@plt>
mov    %rax,-0x2758(%rbp)
cmpq   $0x0,-0x2758(%rbp)
je     140d <read_mu_sigma_w+0x2cd>
mov    -0x2758(%rbp),%rdi
call   1030 <atof@plt>
mov    -0x20(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x34(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x34(%rbp)
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    13af <read_mu_sigma_w+0x26f>
lea    -0x2750(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    $0x2710,%esi
call   1050 <fgets@plt>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    11af <read_mu_sigma_w+0x6f>
add    $0x2760,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_mu_sigma_w>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x2738,%rsp
mov    %r9,0x18(%rsp)
mov    %r8,0x10(%rsp)
mov    %rcx,0x8(%rsp)
mov    %rdx,%r15
mov    %esi,%r13d
lea    0x20(%rsp),%rbp
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0x2710,%edx
call   1040 <memset@plt>
mov    %rbp,%rdi
mov    $0x2710,%esi
mov    %r15,%rdx
call   1050 <fgets@plt>
mov    %rbp,%rdi
mov    $0x2710,%esi
mov    %r15,%rdx
call   1050 <fgets@plt>
mov    %rbp,%rdi
mov    $0x2710,%esi
mov    %r15,%rdx
call   1050 <fgets@plt>
mov    %rbp,%rdi
mov    $0x2710,%esi
mov    %r15,%rdx
call   1050 <fgets@plt>
mov    %rbp,%rdi
mov    $0x2710,%esi
mov    %r15,%rdx
call   1050 <fgets@plt>
mov    %rbp,%rdi
mov    $0x2710,%esi
mov    %r15,%rdx
call   1050 <fgets@plt>
mov    %rbp,%rdi
mov    $0x2710,%esi
mov    %r15,%rdx
call   1050 <fgets@plt>
mov    %rbp,%rdi
mov    $0x2710,%esi
mov    %r15,%rdx
call   1050 <fgets@plt>
test   %r13d,%r13d
jle    13aa <read_mu_sigma_w+0x26a>
mov    %r13d,%eax
mov    %rax,(%rsp)
xor    %r14d,%r14d
lea    0x20(%rsp),%rbx
lea    0xde7(%rip),%r12
mov    0x10(%rsp),%rbp
jmp    1246 <read_mu_sigma_w+0x106>
lea    0x20(%rsp),%rdi
mov    $0x2710,%esi
mov    %r13,%r15
mov    %rdi,%rbx
mov    %r13,%rdx
call   1050 <fgets@plt>
add    $0x1,%r14
cmp    (%rsp),%r14
je     13aa <read_mu_sigma_w+0x26a>
mov    %rbx,%rdi
mov    $0x2710,%esi
mov    %r15,%rdx
call   1050 <fgets@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1060 <strtok@plt>
xor    %edi,%edi
mov    %r12,%rsi
call   1060 <strtok@plt>
xor    %edi,%edi
mov    %r12,%rsi
call   1060 <strtok@plt>
mov    %rax,%rdi
call   1030 <atof@plt>
mov    0x18(%rsp),%rax
movsd  %xmm0,(%rax,%r14,8)
mov    %rbx,%rdi
mov    $0x2710,%esi
mov    %r15,%rdx
call   1050 <fgets@plt>
mov    %rbx,%rdi
mov    $0x2710,%esi
mov    %r15,%rdx
call   1050 <fgets@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1060 <strtok@plt>
test   %rax,%rax
mov    0x8(%rsp),%rbx
je     1315 <read_mu_sigma_w+0x1d5>
mov    %rax,%rdi
call   1030 <atof@plt>
mov    (%rbx,%r14,8),%rax
movsd  %xmm0,(%rax)
xor    %edi,%edi
mov    %r12,%rsi
call   1060 <strtok@plt>
test   %rax,%rax
je     1315 <read_mu_sigma_w+0x1d5>
mov    $0x8,%r13d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rax,%rdi
call   1030 <atof@plt>
mov    (%rbx,%r14,8),%rax
movsd  %xmm0,(%rax,%r13,1)
xor    %edi,%edi
mov    %r12,%rsi
call   1060 <strtok@plt>
add    $0x8,%r13
test   %rax,%rax
jne    12f0 <read_mu_sigma_w+0x1b0>
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x2710,%esi
mov    %r15,%rdx
call   1050 <fgets@plt>
mov    %rbx,%rdi
mov    $0x2710,%esi
mov    %r15,%r13
mov    %r15,%rdx
call   1050 <fgets@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1060 <strtok@plt>
test   %rax,%rax
je     1220 <read_mu_sigma_w+0xe0>
mov    %rax,%rdi
call   1030 <atof@plt>
mov    0x0(%rbp,%r14,8),%rax
movsd  %xmm0,(%rax)
xor    %edi,%edi
mov    %r12,%rsi
call   1060 <strtok@plt>
test   %rax,%rax
je     1220 <read_mu_sigma_w+0xe0>
mov    $0x8,%ebx
nopw   0x0(%rax,%rax,1)
mov    %rax,%rdi
call   1030 <atof@plt>
mov    0x0(%rbp,%r14,8),%rax
movsd  %xmm0,(%rax,%rbx,1)
xor    %edi,%edi
mov    %r12,%rsi
call   1060 <strtok@plt>
add    $0x8,%rbx
test   %rax,%rax
jne    1380 <read_mu_sigma_w+0x240>
jmp    1220 <read_mu_sigma_w+0xe0>
add    $0x2738,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c" \0A\00"
define void @read_mu_sigma_w(i32 %0, i32 %1, i32* nocapture %2, double** nocapture %3, double** nocapture %4, double* nocapture writeonly %5) {
%7 = alloca [10000 x i8]
%8 = getelementptr inbounds [10000 x i8], [10000 x i8]* %7, i64 0, i64 0
%9 = call i32 @memset(i8* %8, i32 0, i32 10000)
%10 = call i32 @fgets(i8* %8, i32 10000, i32* %2)
%11 = call i32 @fgets(i8* %8, i32 10000, i32* %2)
%12 = call i32 @fgets(i8* %8, i32 10000, i32* %2)
%13 = call i32 @fgets(i8* %8, i32 10000, i32* %2)
%14 = call i32 @fgets(i8* %8, i32 10000, i32* %2)
%15 = call i32 @fgets(i8* %8, i32 10000, i32* %2)
%16 = call i32 @fgets(i8* %8, i32 10000, i32* %2)
%17 = call i32 @fgets(i8* %8, i32 10000, i32* %2)
%18 = icmp sgt i32 %1, 0
br i1 %18, label %19, label %76
19: ; preds = %6
%20 = zext i32 %1 to i64
br label %21
21: ; preds = %19, %72
%22 = phi i64 [ 0, %19 ], [ %74, %72 ]
%23 = call i32 @fgets(i8* %8, i32 10000, i32* %2)
%24 = call i8* @strtok(i8* %8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%25 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%26 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%27 = call double @atof(i8* %26)
%28 = getelementptr inbounds double, double* %5, i64 %22
store double %27, double* %28
%29 = call i32 @fgets(i8* %8, i32 10000, i32* %2)
%30 = call i32 @fgets(i8* %8, i32 10000, i32* %2)
%31 = call i8* @strtok(i8* %8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%32 = icmp eq i8* %31, null
br i1 %32, label %40, label %33
33: ; preds = %21
%34 = call double @atof(i8* %31)
%35 = getelementptr inbounds double*, double** %3, i64 %22
%36 = load double*, double** %35
store double %34, double* %36
%37 = getelementptr inbounds double*, double** %3, i64 %22
%38 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%39 = icmp eq i8* %38, null
br i1 %39, label %40, label %45
40: ; preds = %45, %33, %21
%41 = call i32 @fgets(i8* %8, i32 10000, i32* %2)
%42 = call i32 @fgets(i8* %8, i32 10000, i32* %2)
%43 = call i8* @strtok(i8* %8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%44 = icmp eq i8* %43, null
br i1 %44, label %72, label %55
45: ; preds = %33, %45
%46 = phi i8* [ %53, %45 ], [ %38, %33 ]
%47 = phi i32 [ %50, %45 ], [ 1, %33 ]
%48 = call double @atof(i8* %46)
%49 = load double*, double** %37
%50 = add nuw nsw i32 %47, 1
%51 = zext i32 %47 to i64
%52 = getelementptr inbounds double, double* %49, i64 %51
store double %48, double* %52
%53 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%54 = icmp eq i8* %53, null
br i1 %54, label %40, label %45
55: ; preds = %40
%56 = call double @atof(i8* %43)
%57 = getelementptr inbounds double*, double** %4, i64 %22
%58 = load double*, double** %57
store double %56, double* %58
%59 = getelementptr inbounds double*, double** %4, i64 %22
%60 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%61 = icmp eq i8* %60, null
br i1 %61, label %72, label %62
62: ; preds = %55, %62
%63 = phi i8* [ %70, %62 ], [ %60, %55 ]
%64 = phi i32 [ %67, %62 ], [ 1, %55 ]
%65 = call double @atof(i8* %63)
%66 = load double*, double** %59
%67 = add nuw nsw i32 %64, 1
%68 = zext i32 %64 to i64
%69 = getelementptr inbounds double, double* %66, i64 %68
store double %65, double* %69
%70 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%71 = icmp eq i8* %70, null
br i1 %71, label %72, label %62
72: ; preds = %62, %55, %40
%73 = call i32 @fgets(i8* %8, i32 10000, i32* %2)
%74 = add nuw nsw i64 %22, 1
%75 = icmp eq i64 %74, %20
br i1 %75, label %76, label %21
76: ; preds = %72, %6
ret void
}