#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 */
scalar_t__ atof(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
char *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ print_error_global(char *, char *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char *, int, ...);
char *strtok(char *, char *);
void read_data_int2(char *file_data, int N, int M, int *dat) {
  FILE *m_File = NULL;
  int i = 0;
  int j = 0;
  int max_char_per_line = 30 * M;
  char szbuff[max_char_per_line];
  char *token;
  int lmax = N;
  int cmax = M;
  i = 0;
  m_File = fopen(file_data, "r");
  if (!m_File)
    print_error_global("open", file_data, 0);
  token = fgets(szbuff, max_char_per_line, m_File);
  while (!feof(m_File) & (i < lmax)) {
    j = 0;
    token = strtok(szbuff, " ");
    while (token && j < cmax) {
      dat[i * M + j] = (int)atof(token);
      token = strtok(NULL, " ");
      j++;
    }
    i++;
    if (j != cmax) {
      printf("Error: unable to read file %s. It seems that"
             " line %d contains %d columns instead of %d."
             "\n\n",
             file_data, i, j, cmax);
      fclose(m_File);
      exit(1);
    }
    if (token) {
      printf("Error: unable to read file %s. It seems that"
             " line %d contains more than %d columns.\n\n",
             file_data, i, cmax);
      fclose(m_File);
      exit(1);
    }
    token = fgets(szbuff, max_char_per_line, m_File);
  }
  if (i != lmax) {
    printf("Error: unable to read file %s. It seems that it "
           "contains %d lines instead of %d.\n\n",
           file_data, i, lmax);
    fclose(m_File);
    exit(1);
  }
  if (!feof(m_File)) {
    printf("Error: unable to read file %s. It seems that it "
           "contains more than %d lines.\n\n",
           file_data, lmax);
    fclose(m_File);
    exit(1);
  }
  fclose(m_File);
}


x86 assembly (clang, -O0):
<read_data_int2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x10(%rbp),%ecx
mov    %ecx,%eax
shl    $0x5,%eax
sub    %ecx,%eax
sub    %ecx,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x38(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x58(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x40(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x50(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xdf1(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    1235 <read_data_int2+0xa5>
mov    -0x8(%rbp),%rsi
lea    0xdd4(%rip),%rdi
xor    %edx,%edx
call   10a0 <print_error_global@plt>
mov    -0x58(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    -0x20(%rbp),%rdx
call   1060 <fgets@plt>
mov    %rax,-0x48(%rbp)
mov    -0x20(%rbp),%rdi
call   1070 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    -0x24(%rbp),%ecx
cmp    -0x4c(%rbp),%ecx
setl   %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     1394 <read_data_int2+0x204>
mov    -0x58(%rbp),%rdi
movl   $0x0,-0x28(%rbp)
lea    0xd7c(%rip),%rsi
call   1090 <strtok@plt>
mov    %rax,-0x48(%rbp)
xor    %eax,%eax
cmpq   $0x0,-0x48(%rbp)
mov    %al,-0x59(%rbp)
je     12b0 <read_data_int2+0x120>
mov    -0x28(%rbp),%eax
cmp    -0x50(%rbp),%eax
setl   %al
mov    %al,-0x59(%rbp)
mov    -0x59(%rbp),%al
test   $0x1,%al
jne    12c0 <read_data_int2+0x130>
jmp    1301 <read_data_int2+0x171>
mov    -0x48(%rbp),%rdi
call   1030 <atof@plt>
mov    %eax,%edx
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
imul   -0x10(%rbp),%ecx
add    -0x28(%rbp),%ecx
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
xor    %eax,%eax
mov    %eax,%edi
lea    0xd1d(%rip),%rsi
call   1090 <strtok@plt>
mov    %rax,-0x48(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1294 <read_data_int2+0x104>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x50(%rbp),%eax
je     1345 <read_data_int2+0x1b5>
mov    -0x8(%rbp),%rsi
mov    -0x24(%rbp),%edx
mov    -0x28(%rbp),%ecx
mov    -0x50(%rbp),%r8d
lea    0xcde(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
cmpq   $0x0,-0x48(%rbp)
je     137b <read_data_int2+0x1eb>
mov    -0x8(%rbp),%rsi
mov    -0x24(%rbp),%edx
mov    -0x50(%rbp),%ecx
lea    0xd02(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
mov    -0x58(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    -0x20(%rbp),%rdx
call   1060 <fgets@plt>
mov    %rax,-0x48(%rbp)
jmp    1249 <read_data_int2+0xb9>
mov    -0x24(%rbp),%eax
cmp    -0x4c(%rbp),%eax
je     13cb <read_data_int2+0x23b>
mov    -0x8(%rbp),%rsi
mov    -0x24(%rbp),%edx
mov    -0x4c(%rbp),%ecx
lea    0xd08(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
mov    -0x20(%rbp),%rdi
call   1070 <feof@plt>
cmp    $0x0,%eax
jne    1405 <read_data_int2+0x275>
mov    -0x8(%rbp),%rsi
mov    -0x4c(%rbp),%edx
lea    0xd21(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x38(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_data_int2>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rcx,%rbx
mov    %esi,%r12d
mov    %edx,%r14d
shl    $0x5,%r14d
sub    %edx,%r14d
mov    %edx,-0x2c(%rbp)
sub    %edx,%r14d
lea    0xf(%r14),%rax
and    $0xfffffffffffffff0,%rax
mov    %rsp,%r15
sub    %rax,%r15
mov    %r15,%rsp
lea    0xe31(%rip),%rsi
mov    %rdi,-0x38(%rbp)
call   1080 <fopen@plt>
mov    %rax,%r13
test   %rax,%rax
jne    11f2 <read_data_int2+0x62>
lea    0xe1b(%rip),%rdi
mov    -0x38(%rbp),%rsi
xor    %edx,%edx
call   10a0 <print_error_global@plt>
mov    %r15,-0x50(%rbp)
mov    %r15,%rdi
mov    %r14,-0x68(%rbp)
mov    %r14d,%esi
mov    %r13,%rdx
call   1060 <fgets@plt>
mov    %r13,%rdi
call   1070 <feof@plt>
xor    %r14d,%r14d
test   %r12d,%r12d
jle    12f3 <read_data_int2+0x163>
test   %eax,%eax
jne    12f3 <read_data_int2+0x163>
movslq -0x2c(%rbp),%r15
mov    %r12d,-0x44(%rbp)
mov    %r12d,%eax
mov    %rax,-0x60(%rbp)
lea    0x0(,%r15,4),%rax
mov    %rax,-0x58(%rbp)
xor    %r14d,%r14d
lea    0xdbe(%rip),%r12
mov    %r13,-0x40(%rbp)
nopl   (%rax)
mov    -0x50(%rbp),%rdi
mov    %r12,%rsi
call   1090 <strtok@plt>
test   %rax,%rax
setne  %cl
je     12b0 <read_data_int2+0x120>
mov    $0x0,%r13d
cmpl   $0x0,-0x2c(%rbp)
jle    12b3 <read_data_int2+0x123>
xor    %r13d,%r13d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rax,%rdi
call   1030 <atof@plt>
mov    %eax,(%rbx,%r13,4)
xor    %edi,%edi
mov    %r12,%rsi
call   1090 <strtok@plt>
add    $0x1,%r13
test   %rax,%rax
setne  %cl
je     12b3 <read_data_int2+0x123>
cmp    %r15,%r13
jl     1280 <read_data_int2+0xf0>
jmp    12b3 <read_data_int2+0x123>
nopl   0x0(%rax)
xor    %r13d,%r13d
add    $0x1,%r14
cmp    -0x2c(%rbp),%r13d
jne    131b <read_data_int2+0x18b>
test   %cl,%cl
mov    -0x50(%rbp),%rdi
jne    1339 <read_data_int2+0x1a9>
mov    -0x68(%rbp),%rsi
mov    -0x40(%rbp),%r13
mov    %r13,%rdx
call   1060 <fgets@plt>
mov    %r13,%rdi
call   1070 <feof@plt>
cmp    -0x60(%rbp),%r14
jae    12ef <read_data_int2+0x15f>
add    -0x58(%rbp),%rbx
test   %eax,%eax
je     1250 <read_data_int2+0xc0>
mov    -0x44(%rbp),%r12d
cmp    %r12d,%r14d
jne    1364 <read_data_int2+0x1d4>
mov    %r13,%rdi
call   1070 <feof@plt>
test   %eax,%eax
je     137e <read_data_int2+0x1ee>
mov    %r13,%rdi
call   1040 <fclose@plt>
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xce7(%rip),%rdi
mov    -0x38(%rbp),%rsi
mov    %r14d,%edx
mov    %r13d,%ecx
mov    -0x2c(%rbp),%r8d
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1351 <read_data_int2+0x1c1>
lea    0xd23(%rip),%rdi
mov    -0x38(%rbp),%rsi
mov    %r14d,%edx
mov    -0x2c(%rbp),%ecx
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x40(%rbp),%rdi
call   1040 <fclose@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
lea    0xd4e(%rip),%rdi
mov    -0x38(%rbp),%rsi
mov    %r14d,%edx
mov    %r12d,%ecx
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1393 <read_data_int2+0x203>
lea    0xd87(%rip),%rdi
mov    -0x38(%rbp),%rsi
mov    %r12d,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13,%rdi
jmp    1355 <read_data_int2+0x1c5>

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
@.str.1 = [5 x i8] c"open\00"
@.str.2 = [2 x i8] c" \00"
@.str.3 = [90 x i8] c"Error: unable to read file %s. It seems that line %d contains %d columns instead of %d.\0A\0A\00"
@.str.4 = [86 x i8] c"Error: unable to read file %s. It seems that line %d contains more than %d columns.\0A\0A\00"
@.str.5 = [83 x i8] c"Error: unable to read file %s. It seems that it contains %d lines instead of %d.\0A\0A\00"
@.str.6 = [79 x i8] c"Error: unable to read file %s. It seems that it contains more than %d lines.\0A\0A\00"
define void @read_data_int2(i8* %0, i32 %1, i32 %2, i32* %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i8*
%14 = alloca i64
%15 = alloca i8*
%16 = alloca i32
%17 = alloca i32
store i8* %0, i8** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32* %3, i32** %8
store i32* null, i32** %9
store i32 0, i32* %10
store i32 0, i32* %11
%18 = load i32, i32* %7
%19 = mul nsw i32 30, %18
store i32 %19, i32* %12
%20 = load i32, i32* %12
%21 = zext i32 %20 to i64
%22 = call i8* @llvm.stacksave()
store i8* %22, i8** %13
%23 = alloca i8, i64 %21
store i64 %21, i64* %14
%24 = load i32, i32* %6
store i32 %24, i32* %16
%25 = load i32, i32* %7
store i32 %25, i32* %17
store i32 0, i32* %10
%26 = load i8*, i8** %5
%27 = call i32* @fopen(i8* %26, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %27, i32** %9
%28 = load i32*, i32** %9
%29 = icmp ne i32* %28, null
br i1 %29, label %33, label %30
30: ; preds = %4
%31 = load i8*, i8** %5
%32 = call i32 @print_error_global(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %31, i32 0)
br label %33
33: ; preds = %30, %4
%34 = load i32, i32* %12
%35 = load i32*, i32** %9
%36 = call i8* @fgets(i8* %23, i32 %34, i32* %35)
store i8* %36, i8** %15
br label %37
37: ; preds = %101, %33
%38 = load i32*, i32** %9
%39 = call i32 @feof(i32* %38)
%40 = icmp ne i32 %39, 0
%41 = xor i1 %40, true
%42 = zext i1 %41 to i32
%43 = load i32, i32* %10
%44 = load i32, i32* %16
%45 = icmp slt i32 %43, %44
%46 = zext i1 %45 to i32
%47 = and i32 %42, %46
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %105
49: ; preds = %37
store i32 0, i32* %11
%50 = call i8* @strtok(i8* %23, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i8* %50, i8** %15
br label %51
51: ; preds = %60, %49
%52 = load i8*, i8** %15
%53 = icmp ne i8* %52, null
br i1 %53, label %54, label %58
54: ; preds = %51
%55 = load i32, i32* %11
%56 = load i32, i32* %17
%57 = icmp slt i32 %55, %56
br label %58
58: ; preds = %54, %51
%59 = phi i1 [ false, %51 ], [ %57, %54 ]
br i1 %59, label %60, label %75
60: ; preds = %58
%61 = load i8*, i8** %15
%62 = call i64 @atof(i8* %61)
%63 = trunc i64 %62 to i32
%64 = load i32*, i32** %8
%65 = load i32, i32* %10
%66 = load i32, i32* %7
%67 = mul nsw i32 %65, %66
%68 = load i32, i32* %11
%69 = add nsw i32 %67, %68
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i32, i32* %64, i64 %70
store i32 %63, i32* %71
%72 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i8* %72, i8** %15
%73 = load i32, i32* %11
%74 = add nsw i32 %73, 1
store i32 %74, i32* %11
br label %51
75: ; preds = %58
%76 = load i32, i32* %10
%77 = add nsw i32 %76, 1
store i32 %77, i32* %10
%78 = load i32, i32* %11
%79 = load i32, i32* %17
%80 = icmp ne i32 %78, %79
br i1 %80, label %81, label %90
81: ; preds = %75
%82 = load i8*, i8** %5
%83 = load i32, i32* %10
%84 = load i32, i32* %11
%85 = load i32, i32* %17
%86 = call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.3, i64 0, i64 0), i8* %82, i32 %83, i32 %84, i32 %85)
%87 = load i32*, i32** %9
%88 = call i32 @fclose(i32* %87)
%89 = call i32 @exit(i32 1)
unreachable
90: ; preds = %75
%91 = load i8*, i8** %15
%92 = icmp ne i8* %91, null
br i1 %92, label %93, label %101
93: ; preds = %90
%94 = load i8*, i8** %5
%95 = load i32, i32* %10
%96 = load i32, i32* %17
%97 = call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.4, i64 0, i64 0), i8* %94, i32 %95, i32 %96)
%98 = load i32*, i32** %9
%99 = call i32 @fclose(i32* %98)
%100 = call i32 @exit(i32 1)
unreachable
101: ; preds = %90
%102 = load i32, i32* %12
%103 = load i32*, i32** %9
%104 = call i8* @fgets(i8* %23, i32 %102, i32* %103)
store i8* %104, i8** %15
br label %37
105: ; preds = %37
%106 = load i32, i32* %10
%107 = load i32, i32* %16
%108 = icmp ne i32 %106, %107
br i1 %108, label %109, label %117
109: ; preds = %105
%110 = load i8*, i8** %5
%111 = load i32, i32* %10
%112 = load i32, i32* %16
%113 = call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.5, i64 0, i64 0), i8* %110, i32 %111, i32 %112)
%114 = load i32*, i32** %9
%115 = call i32 @fclose(i32* %114)
%116 = call i32 @exit(i32 1)
unreachable
117: ; preds = %105
%118 = load i32*, i32** %9
%119 = call i32 @feof(i32* %118)
%120 = icmp ne i32 %119, 0
br i1 %120, label %128, label %121
121: ; preds = %117
%122 = load i8*, i8** %5
%123 = load i32, i32* %16
%124 = call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.6, i64 0, i64 0), i8* %122, i32 %123)
%125 = load i32*, i32** %9
%126 = call i32 @fclose(i32* %125)
%127 = call i32 @exit(i32 1)
unreachable
128: ; preds = %117
%129 = load i32*, i32** %9
%130 = call i32 @fclose(i32* %129)
%131 = load i8*, i8** %13
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@.str.1 = [5 x i8] c"open\00"
@.str.2 = [2 x i8] c" \00"
@.str.3 = [90 x i8] c"Error: unable to read file %s. It seems that line %d contains %d columns instead of %d.\0A\0A\00"
@.str.4 = [86 x i8] c"Error: unable to read file %s. It seems that line %d contains more than %d columns.\0A\0A\00"
@.str.5 = [83 x i8] c"Error: unable to read file %s. It seems that it contains %d lines instead of %d.\0A\0A\00"
@.str.6 = [79 x i8] c"Error: unable to read file %s. It seems that it contains more than %d lines.\0A\0A\00"
define void @read_data_int2(i8* %0, i32 %1, i32 %2, i32* nocapture writeonly %3) {
%5 = mul nsw i32 %2, 30
%6 = zext i32 %5 to i64
%7 = alloca i8, i64 %6
%8 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%9 = icmp eq i32* %8, null
br i1 %9, label %10, label %12
10: ; preds = %4
%11 = tail call i32 @print_error_global(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %0, i32 0)
br label %12
12: ; preds = %10, %4
%13 = call i8* @fgets(i8* %7, i32 %5, i32* %8)
%14 = call i32 @feof(i32* %8)
%15 = icmp eq i32 %14, 0
%16 = icmp sgt i32 %1, 0
%17 = and i1 %16, %15
br i1 %17, label %18, label %67
18: ; preds = %12
%19 = icmp sgt i32 %2, 0
%20 = sext i32 %2 to i64
%21 = zext i32 %1 to i64
br label %22
22: ; preds = %18, %59
%23 = phi i64 [ 0, %18 ], [ %46, %59 ]
%24 = call i8* @strtok(i8* %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%25 = icmp ne i8* %24, null
%26 = and i1 %25, %19
br i1 %26, label %27, label %43
27: ; preds = %22
%28 = mul nsw i64 %23, %20
br label %29
29: ; preds = %27, %29
%30 = phi i64 [ 0, %27 ], [ %37, %29 ]
%31 = phi i8* [ %24, %27 ], [ %36, %29 ]
%32 = call i64 @atof(i8* %31)
%33 = trunc i64 %32 to i32
%34 = add nsw i64 %30, %28
%35 = getelementptr inbounds i32, i32* %3, i64 %34
store i32 %33, i32* %35
%36 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%37 = add nuw nsw i64 %30, 1
%38 = icmp ne i8* %36, null
%39 = icmp slt i64 %37, %20
%40 = select i1 %38, i1 %39, i1 false
br i1 %40, label %29, label %41
41: ; preds = %29
%42 = trunc i64 %37 to i32
br label %43
43: ; preds = %41, %22
%44 = phi i32 [ 0, %22 ], [ %42, %41 ]
%45 = phi i1 [ %25, %22 ], [ %38, %41 ]
%46 = add nuw nsw i64 %23, 1
%47 = icmp eq i32 %44, %2
br i1 %47, label %53, label %48
48: ; preds = %43
%49 = trunc i64 %46 to i32
%50 = call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.3, i64 0, i64 0), i8* %0, i32 %49, i32 %44, i32 %2)
%51 = call i32 @fclose(i32* %8)
%52 = call i32 @exit(i32 1)
unreachable
53: ; preds = %43
br i1 %45, label %54, label %59
54: ; preds = %53
%55 = trunc i64 %46 to i32
%56 = call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.4, i64 0, i64 0), i8* %0, i32 %55, i32 %2)
%57 = call i32 @fclose(i32* %8)
%58 = call i32 @exit(i32 1)
unreachable
59: ; preds = %53
%60 = call i8* @fgets(i8* %7, i32 %5, i32* %8)
%61 = call i32 @feof(i32* %8)
%62 = icmp eq i32 %61, 0
%63 = icmp ult i64 %46, %21
%64 = and i1 %63, %62
br i1 %64, label %22, label %65
65: ; preds = %59
%66 = trunc i64 %46 to i32
br label %67
67: ; preds = %65, %12
%68 = phi i32 [ 0, %12 ], [ %66, %65 ]
%69 = icmp eq i32 %68, %1
br i1 %69, label %74, label %70
70: ; preds = %67
%71 = call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.5, i64 0, i64 0), i8* %0, i32 %68, i32 %1)
%72 = call i32 @fclose(i32* %8)
%73 = call i32 @exit(i32 1)
unreachable
74: ; preds = %67
%75 = call i32 @feof(i32* %8)
%76 = icmp eq i32 %75, 0
br i1 %76, label %77, label %81
77: ; preds = %74
%78 = call i32 (i8*, i8*, i32, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.6, i64 0, i64 0), i8* %0, i32 %1)
%79 = call i32 @fclose(i32* %8)
%80 = call i32 @exit(i32 1)
unreachable
81: ; preds = %74
%82 = call i32 @fclose(i32* %8)
ret void
}