#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(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char const *, char *);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ rewind(int /*<<< orphan*/ *);
int /*<<< orphan*/ sscanf(char *, char *, int *, int *, float *);
void readMicFile(const char *input_mic_file, int *input_line_count,
                 int *wav_sample_count, int **in_step, int **in_level,
                 float **in_pressure) {
  FILE *fr;
  int val1;
  int val2;
  float val3;
  char line[80];
  fr = fopen(input_mic_file, "rt");
  if (fr == NULL) {
    printf("Can't read input file: %s\n", input_mic_file);
    exit(-1);
  }
  while (fgets(line, 80, fr) != NULL) {
    sscanf(line, "%d %d %e", &val1, &val2, &val3);
    *input_line_count = *input_line_count + 1;
  }
  *wav_sample_count = val1;
  if (*input_line_count < 1) {
    printf("Input file %s is empty\n", input_mic_file);
    exit(-1);
  }
  *in_step = (int *)malloc(*input_line_count * sizeof(int));
  if (*in_step == NULL) {
    printf("Can't allocate in_step[]\n");
    exit(-1);
  }
  *in_level = (int *)malloc(*input_line_count * sizeof(int));
  if (*in_level == NULL) {
    printf("Can't allocate in_level[]\n");
    exit(-1);
  }
  *in_pressure = (float *)malloc(*input_line_count * sizeof(float));
  if (*in_pressure == NULL) {
    printf("Can't allocate in_pressure[]\n");
    exit(-1);
  }
  for (int i = 0; i < *input_line_count; i++) {
    (*in_step)[i] = 0;
    (*in_level)[i] = 0;
    (*in_pressure)[i] = 0.0f;
  }
  rewind(fr);
  int j = 0;
  while (fgets(line, 80, fr) != NULL) {
    sscanf(line, "%d %d %e", &val1, &val2, &val3);
    (*in_step)[j] = val1;
    (*in_level)[j] = val2;
    (*in_pressure)[j] = val3;
    j++;
  }
  fclose(fr);
}


x86 assembly (clang, -O0):
<readMicFile>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe52(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    11de <readMicFile+0x5e>
mov    -0x8(%rbp),%rsi
lea    0xe36(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   10a0 <exit@plt>
jmp    11e3 <readMicFile+0x63>
lea    -0xa0(%rbp),%rdi
mov    -0x38(%rbp),%rdx
mov    $0x50,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
je     1235 <readMicFile+0xb5>
lea    -0xa0(%rbp),%rdi
lea    0xe0e(%rip),%rsi
lea    -0x3c(%rbp),%rdx
lea    -0x40(%rbp),%rcx
lea    -0x44(%rbp),%r8
call   1080 <sscanf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
jmp    11e3 <readMicFile+0x63>
mov    -0x3c(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rax
cmpl   $0x1,(%rax)
jge    1267 <readMicFile+0xe7>
mov    -0x8(%rbp),%rsi
lea    0xdd1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   10a0 <exit@plt>
mov    -0x10(%rbp),%rax
movslq (%rax),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rax
cmpq   $0x0,(%rax)
jne    12a9 <readMicFile+0x129>
lea    0xda7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   10a0 <exit@plt>
mov    -0x10(%rbp),%rax
movslq (%rax),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,%rcx
mov    -0x28(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x28(%rbp),%rax
cmpq   $0x0,(%rax)
jne    12eb <readMicFile+0x16b>
lea    0xd7f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   10a0 <exit@plt>
mov    -0x10(%rbp),%rax
movslq (%rax),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,%rcx
mov    -0x30(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x30(%rbp),%rax
cmpq   $0x0,(%rax)
jne    132d <readMicFile+0x1ad>
lea    0xd58(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   10a0 <exit@plt>
movl   $0x0,-0xa4(%rbp)
mov    -0xa4(%rbp),%eax
mov    -0x10(%rbp),%rcx
cmp    (%rcx),%eax
jge    139d <readMicFile+0x21d>
mov    -0x20(%rbp),%rax
mov    (%rax),%rax
movslq -0xa4(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x28(%rbp),%rax
mov    (%rax),%rax
movslq -0xa4(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x30(%rbp),%rax
mov    (%rax),%rax
movslq -0xa4(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    1337 <readMicFile+0x1b7>
mov    -0x38(%rbp),%rdi
call   1050 <rewind@plt>
movl   $0x0,-0xa8(%rbp)
lea    -0xa0(%rbp),%rdi
mov    -0x38(%rbp),%rdx
mov    $0x50,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
je     1442 <readMicFile+0x2c2>
lea    -0xa0(%rbp),%rdi
lea    0xc41(%rip),%rsi
lea    -0x3c(%rbp),%rdx
lea    -0x40(%rbp),%rcx
lea    -0x44(%rbp),%r8
call   1080 <sscanf@plt>
mov    -0x3c(%rbp),%edx
mov    -0x20(%rbp),%rax
mov    (%rax),%rax
movslq -0xa8(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x40(%rbp),%edx
mov    -0x28(%rbp),%rax
mov    (%rax),%rax
movslq -0xa8(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
movss  -0x44(%rbp),%xmm0
mov    -0x30(%rbp),%rax
mov    (%rax),%rax
movslq -0xa8(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0xa8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa8(%rbp)
jmp    13b0 <readMicFile+0x230>
mov    -0x38(%rbp),%rdi
call   1030 <fclose@plt>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<readMicFile>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    %r9,%r12
mov    %r8,%r14
mov    %rcx,%r15
mov    %rdx,%rbp
mov    %rsi,%rbx
lea    0xe49(%rip),%rsi
mov    %rdi,0x18(%rsp)
call   10a0 <fopen@plt>
test   %rax,%rax
je     1384 <readMicFile+0x1f4>
mov    %rax,%r13
lea    0x40(%rsp),%rdi
mov    $0x50,%esi
mov    %rax,%rdx
call   1070 <fgets@plt>
test   %rax,%rax
je     125a <readMicFile+0xca>
mov    %rbp,0x20(%rsp)
mov    %r15,0x28(%rsp)
mov    %r14,0x30(%rsp)
mov    %r12,0x38(%rsp)
lea    0x40(%rsp),%rbp
lea    0xc(%rsp),%r12
lea    0x14(%rsp),%r14
lea    0x10(%rsp),%r15
nopl   0x0(%rax)
mov    %rbp,%rdi
lea    0xe04(%rip),%rsi
mov    %r12,%rdx
mov    %r14,%rcx
mov    %r15,%r8
call   1090 <sscanf@plt>
addl   $0x1,(%rbx)
mov    %rbp,%rdi
mov    $0x50,%esi
mov    %r13,%rdx
call   1070 <fgets@plt>
test   %rax,%rax
jne    1210 <readMicFile+0x80>
mov    0xc(%rsp),%eax
mov    0x38(%rsp),%r12
mov    0x30(%rsp),%r14
mov    0x28(%rsp),%r15
mov    0x20(%rsp),%rbp
jmp    125a <readMicFile+0xca>
mov    %eax,0x0(%rbp)
mov    (%rbx),%edi
test   %edi,%edi
jle    138d <readMicFile+0x1fd>
shl    $0x2,%edi
call   1080 <malloc@plt>
mov    %rax,(%r15)
test   %rax,%rax
je     13aa <readMicFile+0x21a>
mov    (%rbx),%edi
shl    $0x2,%edi
call   1080 <malloc@plt>
mov    %rax,(%r14)
test   %rax,%rax
je     13b3 <readMicFile+0x223>
mov    (%rbx),%edi
shl    $0x2,%edi
call   1080 <malloc@plt>
mov    %rax,(%r12)
test   %rax,%rax
je     13bc <readMicFile+0x22c>
mov    %r12,%rbp
cmpl   $0x0,(%rbx)
jle    12e1 <readMicFile+0x151>
mov    (%r15),%rcx
mov    (%r14),%rdx
xor    %esi,%esi
nopl   0x0(%rax,%rax,1)
movl   $0x0,(%rcx,%rsi,4)
movl   $0x0,(%rdx,%rsi,4)
movl   $0x0,(%rax,%rsi,4)
add    $0x1,%rsi
movslq (%rbx),%rdi
cmp    %rdi,%rsi
jl     12c0 <readMicFile+0x130>
mov    %r13,%rdi
call   1060 <rewind@plt>
lea    0x40(%rsp),%rdi
mov    $0x50,%esi
mov    %r13,%rdx
call   1070 <fgets@plt>
test   %rax,%rax
je     136a <readMicFile+0x1da>
mov    %r14,%r12
mov    %rbp,%r14
xor    %ebx,%ebx
lea    0x40(%rsp),%rbp
nopl   (%rax)
mov    %rbp,%rdi
lea    0xd04(%rip),%rsi
lea    0xc(%rsp),%rdx
lea    0x14(%rsp),%rcx
lea    0x10(%rsp),%r8
call   1090 <sscanf@plt>
mov    0xc(%rsp),%eax
mov    (%r15),%rcx
mov    %eax,(%rcx,%rbx,1)
mov    0x14(%rsp),%eax
mov    (%r12),%rcx
mov    %eax,(%rcx,%rbx,1)
movss  0x10(%rsp),%xmm0
mov    (%r14),%rax
movss  %xmm0,(%rax,%rbx,1)
mov    %rbp,%rdi
mov    $0x50,%esi
mov    %r13,%rdx
call   1070 <fgets@plt>
add    $0x4,%rbx
test   %rax,%rax
jne    1310 <readMicFile+0x180>
mov    %r13,%rdi
call   1040 <fclose@plt>
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xc78(%rip),%rdi
jmp    1394 <readMicFile+0x204>
lea    0xc93(%rip),%rdi
mov    0x18(%rsp),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xffffffff,%edi
call   10b0 <exit@plt>
lea    0xcc5(%rip),%rdi
jmp    13c3 <readMicFile+0x233>
lea    0xca2(%rip),%rdi
jmp    13c3 <readMicFile+0x233>
lea    0xc7c(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%edi
call   10b0 <exit@plt>

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

LLVM IR (-O2):
@.str = [3 x i8] c"rt\00"
@.str.1 = [27 x i8] c"Can't read input file: %s\0A\00"
@.str.2 = [9 x i8] c"%d %d %e\00"
@.str.3 = [24 x i8] c"Input file %s is empty\0A\00"
@str = [29 x i8] c"Can't allocate in_pressure[]\00"
@str.7 = [26 x i8] c"Can't allocate in_level[]\00"
@str.8 = [25 x i8] c"Can't allocate in_step[]\00"
define void @readMicFile(i8* %0, i32* nocapture %1, i32* nocapture writeonly %2, i32** nocapture %3, i32** nocapture %4, float** nocapture %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca float
%10 = alloca [80 x i8]
%11 = bitcast i32* %7 to i8*
%12 = bitcast i32* %8 to i8*
%13 = bitcast float* %9 to i8*
%14 = getelementptr inbounds [80 x i8], [80 x i8]* %10, i64 0, i64 0
%15 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%16 = icmp eq i32* %15, null
br i1 %16, label %20, label %17
17: ; preds = %6
%18 = call i32* @fgets(i8* %14, i32 80, i32* %15)
%19 = icmp eq i32* %18, null
br i1 %19, label %31, label %23
20: ; preds = %6
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%22 = tail call i32 @exit(i32 -1)
unreachable
23: ; preds = %17, %23
%24 = call i32 @sscanf(i8* %14, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32* %7, i32* %8, float* %9)
%25 = load i32, i32* %1
%26 = add nsw i32 %25, 1
store i32 %26, i32* %1
%27 = call i32* @fgets(i8* %14, i32 80, i32* %15)
%28 = icmp eq i32* %27, null
br i1 %28, label %29, label %23
29: ; preds = %23
%30 = load i32, i32* %7
br label %31
31: ; preds = %29, %17
%32 = phi i32 [ %30, %29 ], [ undef, %17 ]
store i32 %32, i32* %2
%33 = load i32, i32* %1
%34 = icmp slt i32 %33, 1
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), i8* %0)
%37 = call i32 @exit(i32 -1)
unreachable
38: ; preds = %31
%39 = shl i32 %33, 2
%40 = call i64 @malloc(i32 %39)
%41 = inttoptr i64 %40 to i32*
store i32* %41, i32** %3
%42 = icmp eq i64 %40, 0
br i1 %42, label %43, label %46
43: ; preds = %38
%44 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.8, i64 0, i64 0))
%45 = call i32 @exit(i32 -1)
unreachable
46: ; preds = %38
%47 = load i32, i32* %1
%48 = shl i32 %47, 2
%49 = call i64 @malloc(i32 %48)
%50 = inttoptr i64 %49 to i32*
store i32* %50, i32** %4
%51 = icmp eq i64 %49, 0
br i1 %51, label %52, label %55
52: ; preds = %46
%53 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.7, i64 0, i64 0))
%54 = call i32 @exit(i32 -1)
unreachable
55: ; preds = %46
%56 = load i32, i32* %1
%57 = shl i32 %56, 2
%58 = call i64 @malloc(i32 %57)
%59 = inttoptr i64 %58 to float*
store float* %59, float** %5
%60 = icmp eq i64 %58, 0
br i1 %60, label %67, label %61
61: ; preds = %55
%62 = load i32, i32* %1
%63 = icmp sgt i32 %62, 0
br i1 %63, label %64, label %70
64: ; preds = %61
%65 = load i32*, i32** %3
%66 = load i32*, i32** %4
br label %74
67: ; preds = %55
%68 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str, i64 0, i64 0))
%69 = call i32 @exit(i32 -1)
unreachable
70: ; preds = %74, %61
%71 = call i32 @rewind(i32* %15)
%72 = call i32* @fgets(i8* %14, i32 80, i32* %15)
%73 = icmp eq i32* %72, null
br i1 %73, label %98, label %83
74: ; preds = %64, %74
%75 = phi i64 [ 0, %64 ], [ %79, %74 ]
%76 = getelementptr inbounds i32, i32* %65, i64 %75
store i32 0, i32* %76
%77 = getelementptr inbounds i32, i32* %66, i64 %75
store i32 0, i32* %77
%78 = getelementptr inbounds float, float* %59, i64 %75
store float 0.000000e+00, float* %78
%79 = add nuw nsw i64 %75, 1
%80 = load i32, i32* %1
%81 = sext i32 %80 to i64
%82 = icmp slt i64 %79, %81
br i1 %82, label %74, label %70
83: ; preds = %70, %83
%84 = phi i64 [ %95, %83 ], [ 0, %70 ]
%85 = call i32 @sscanf(i8* %14, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32* %7, i32* %8, float* %9)
%86 = load i32, i32* %7
%87 = load i32*, i32** %3
%88 = getelementptr inbounds i32, i32* %87, i64 %84
store i32 %86, i32* %88
%89 = load i32, i32* %8
%90 = load i32*, i32** %4
%91 = getelementptr inbounds i32, i32* %90, i64 %84
store i32 %89, i32* %91
%92 = load float, float* %9
%93 = load float*, float** %5
%94 = getelementptr inbounds float, float* %93, i64 %84
store float %92, float* %94
%95 = add nuw i64 %84, 1
%96 = call i32* @fgets(i8* %14, i32 80, i32* %15)
%97 = icmp eq i32* %96, null
br i1 %97, label %98, label %83
98: ; preds = %83, %70
%99 = call i32 @fclose(i32* %15)
ret void
}