#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 uint32_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ ferror(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int fscanf(int /*<<< orphan*/ *, char *, int *, ...);
int /*<<< orphan*/ yap_quit(char *, ...);
int /*<<< orphan*/ yap_sysquit(char *, char *);
void read_u32sparsetri(int ns, int nr, int nc, uint32_t ***x, char *fname) {
  FILE *fp = fopen(fname, "r");
  int i, u, v, w;
  int Nin;
  int sparse = 0;
  if (!fp)
    yap_sysquit("Cannot open file '%s' for read\n", fname);
  if (fscanf(fp, "%d", &Nin) != 1 || Nin != ns)
    yap_quit("Number blocks wrong for sparse matrix in '%s', should be %d\n",
             fname, ns);
  if (fscanf(fp, "%d", &Nin) != 1 || Nin != nr)
    yap_quit("Number rows wrong for sparse matrix in '%s', should be %d\n",
             fname, nr);
  if (fscanf(fp, "%d", &Nin) != 1 || Nin != nc)
    yap_quit("Number columns wrong for sparse matrix in '%s', should be %d\n",
             fname, nc);
  if (fscanf(fp, "%d", &sparse) != 1)
    yap_quit("Cannot read sparsity in matrix in '%s'\n", fname);
  for (i = 0; i < sparse; i++) {
    if (fscanf(fp, "%d %d %d %u", &u, &v, &w, &Nin) != 4)
      yap_quit("Cannot read line %d in matrix in '%s'\n", i, fname);
    x[u][v][w] = Nin;
  }
  if (ferror(fp))
    yap_sysquit("Error on reading file '%s' ", fname);
  fclose(fp);
}


x86 assembly (clang, -O0):
<read_u32sparsetri>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
lea    0xe7c(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x40(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    11af <read_u32sparsetri+0x4f>
mov    -0x20(%rbp),%rsi
lea    0xe58(%rip),%rdi
call   1080 <yap_sysquit@plt>
mov    -0x28(%rbp),%rdi
lea    0xe68(%rip),%rsi
lea    -0x3c(%rbp),%rdx
mov    $0x0,%al
call   1050 <fscanf@plt>
cmp    $0x1,%eax
jne    11da <read_u32sparsetri+0x7a>
mov    -0x3c(%rbp),%eax
cmp    -0x4(%rbp),%eax
je     11ef <read_u32sparsetri+0x8f>
mov    -0x20(%rbp),%rsi
mov    -0x4(%rbp),%edx
lea    0xe3d(%rip),%rdi
mov    $0x0,%al
call   1060 <yap_quit@plt>
mov    -0x28(%rbp),%rdi
lea    0xe28(%rip),%rsi
lea    -0x3c(%rbp),%rdx
mov    $0x0,%al
call   1050 <fscanf@plt>
cmp    $0x1,%eax
jne    121a <read_u32sparsetri+0xba>
mov    -0x3c(%rbp),%eax
cmp    -0x8(%rbp),%eax
je     122f <read_u32sparsetri+0xcf>
mov    -0x20(%rbp),%rsi
mov    -0x8(%rbp),%edx
lea    0xe3a(%rip),%rdi
mov    $0x0,%al
call   1060 <yap_quit@plt>
mov    -0x28(%rbp),%rdi
lea    0xde8(%rip),%rsi
lea    -0x3c(%rbp),%rdx
mov    $0x0,%al
call   1050 <fscanf@plt>
cmp    $0x1,%eax
jne    125a <read_u32sparsetri+0xfa>
mov    -0x3c(%rbp),%eax
cmp    -0xc(%rbp),%eax
je     126f <read_u32sparsetri+0x10f>
mov    -0x20(%rbp),%rsi
mov    -0xc(%rbp),%edx
lea    0xe35(%rip),%rdi
mov    $0x0,%al
call   1060 <yap_quit@plt>
mov    -0x28(%rbp),%rdi
lea    0xda8(%rip),%rsi
lea    -0x40(%rbp),%rdx
mov    $0x0,%al
call   1050 <fscanf@plt>
cmp    $0x1,%eax
je     12a0 <read_u32sparsetri+0x140>
mov    -0x20(%rbp),%rsi
lea    0xe42(%rip),%rdi
mov    $0x0,%al
call   1060 <yap_quit@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x40(%rbp),%eax
jge    131f <read_u32sparsetri+0x1bf>
mov    -0x28(%rbp),%rdi
lea    0xe45(%rip),%rsi
lea    -0x30(%rbp),%rdx
lea    -0x34(%rbp),%rcx
lea    -0x38(%rbp),%r8
lea    -0x3c(%rbp),%r9
mov    $0x0,%al
call   1050 <fscanf@plt>
cmp    $0x4,%eax
je     12f3 <read_u32sparsetri+0x193>
mov    -0x2c(%rbp),%esi
mov    -0x20(%rbp),%rdx
lea    0xe23(%rip),%rdi
mov    $0x0,%al
call   1060 <yap_quit@plt>
mov    -0x3c(%rbp),%edx
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    12a7 <read_u32sparsetri+0x147>
mov    -0x28(%rbp),%rdi
call   1030 <ferror@plt>
cmp    $0x0,%rax
je     1342 <read_u32sparsetri+0x1e2>
mov    -0x20(%rbp),%rsi
lea    0xdf9(%rip),%rdi
call   1080 <yap_sysquit@plt>
mov    -0x28(%rbp),%rdi
call   1040 <fclose@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_u32sparsetri>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rcx,0x20(%rsp)
mov    %edx,%r14d
mov    %esi,%r13d
mov    %edi,%ebx
lea    0xe7e(%rip),%rsi
mov    %r8,0x8(%rsp)
mov    %r8,%rdi
call   1070 <fopen@plt>
mov    %rax,%rbp
movl   $0x0,0x10(%rsp)
test   %rax,%rax
jne    11b0 <read_u32sparsetri+0x50>
lea    0xe5c(%rip),%rdi
mov    0x8(%rsp),%rsi
call   1080 <yap_sysquit@plt>
lea    0xe6b(%rip),%rsi
lea    0x4(%rsp),%rdx
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <fscanf@plt>
cmp    $0x1,%eax
jne    11d1 <read_u32sparsetri+0x71>
cmp    %ebx,0x4(%rsp)
je     11e6 <read_u32sparsetri+0x86>
lea    0xe4d(%rip),%rdi
mov    0x8(%rsp),%rsi
mov    %ebx,%edx
xor    %eax,%eax
call   1060 <yap_quit@plt>
lea    0xe35(%rip),%rsi
lea    0x4(%rsp),%rdx
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <fscanf@plt>
cmp    $0x1,%eax
jne    1208 <read_u32sparsetri+0xa8>
cmp    %r13d,0x4(%rsp)
je     121e <read_u32sparsetri+0xbe>
lea    0xe53(%rip),%rdi
mov    0x8(%rsp),%rsi
mov    %r13d,%edx
xor    %eax,%eax
call   1060 <yap_quit@plt>
lea    0xdfd(%rip),%rsi
lea    0x4(%rsp),%rdx
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <fscanf@plt>
cmp    $0x1,%eax
jne    1240 <read_u32sparsetri+0xe0>
cmp    %r14d,0x4(%rsp)
je     1256 <read_u32sparsetri+0xf6>
lea    0xe56(%rip),%rdi
mov    0x8(%rsp),%rsi
mov    %r14d,%edx
xor    %eax,%eax
call   1060 <yap_quit@plt>
lea    0xdc5(%rip),%rsi
lea    0x10(%rsp),%rdx
mov    %rbp,%rbx
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <fscanf@plt>
cmp    $0x1,%eax
je     1287 <read_u32sparsetri+0x127>
lea    0xe60(%rip),%rdi
mov    0x8(%rsp),%rsi
xor    %eax,%eax
call   1060 <yap_quit@plt>
cmpl   $0x0,0x10(%rsp)
jle    1318 <read_u32sparsetri+0x1b8>
lea    0x1c(%rsp),%r13
lea    0x18(%rsp),%rbp
lea    0x14(%rsp),%r14
lea    0x4(%rsp),%r15
xor    %r12d,%r12d
jmp    12de <read_u32sparsetri+0x17e>
nopl   0x0(%rax,%rax,1)
mov    0x4(%rsp),%eax
movslq 0x1c(%rsp),%rcx
mov    0x20(%rsp),%rdx
mov    (%rdx,%rcx,8),%rcx
movslq 0x18(%rsp),%rdx
mov    (%rcx,%rdx,8),%rcx
movslq 0x14(%rsp),%rdx
mov    %eax,(%rcx,%rdx,4)
add    $0x1,%r12d
cmp    0x10(%rsp),%r12d
jge    1318 <read_u32sparsetri+0x1b8>
mov    %rbx,%rdi
lea    0xe1b(%rip),%rsi
mov    %r13,%rdx
mov    %rbp,%rcx
mov    %r14,%r8
mov    %r15,%r9
xor    %eax,%eax
call   1050 <fscanf@plt>
cmp    $0x4,%eax
je     12b0 <read_u32sparsetri+0x150>
lea    0xe08(%rip),%rdi
mov    %r12d,%esi
mov    0x8(%rsp),%rdx
xor    %eax,%eax
call   1060 <yap_quit@plt>
jmp    12b0 <read_u32sparsetri+0x150>
mov    %rbx,%rdi
call   1030 <ferror@plt>
test   %rax,%rax
je     1336 <read_u32sparsetri+0x1d6>
lea    0xe0a(%rip),%rdi
mov    0x8(%rsp),%rsi
call   1080 <yap_sysquit@plt>
mov    %rbx,%rdi
call   1040 <fclose@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
@.str.1 = [32 x i8] c"Cannot open file '%s' for read\0A\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [61 x i8] c"Number blocks wrong for sparse matrix in '%s', should be %d\0A\00"
@.str.4 = [59 x i8] c"Number rows wrong for sparse matrix in '%s', should be %d\0A\00"
@.str.5 = [62 x i8] c"Number columns wrong for sparse matrix in '%s', should be %d\0A\00"
@.str.6 = [40 x i8] c"Cannot read sparsity in matrix in '%s'\0A\00"
@.str.7 = [12 x i8] c"%d %d %d %u\00"
@.str.8 = [39 x i8] c"Cannot read line %d in matrix in '%s'\0A\00"
@.str.9 = [28 x i8] c"Error on reading file '%s' \00"
define void @read_u32sparsetri(i32 %0, i32 %1, i32 %2, i32*** %3, i8* %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32***
%10 = alloca i8*
%11 = alloca i32*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
store i32 %0, i32* %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32*** %3, i32**** %9
store i8* %4, i8** %10
%18 = load i8*, i8** %10
%19 = call i32* @fopen(i8* %18, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %19, i32** %11
store i32 0, i32* %17
%20 = load i32*, i32** %11
%21 = icmp ne i32* %20, null
br i1 %21, label %25, label %22
22: ; preds = %5
%23 = load i8*, i8** %10
%24 = call i32 @yap_sysquit(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i8* %23)
br label %25
25: ; preds = %22, %5
%26 = load i32*, i32** %11
%27 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %26, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %16)
%28 = icmp ne i32 %27, 1
br i1 %28, label %33, label %29
29: ; preds = %25
%30 = load i32, i32* %16
%31 = load i32, i32* %6
%32 = icmp ne i32 %30, %31
br i1 %32, label %33, label %37
33: ; preds = %29, %25
%34 = load i8*, i8** %10
%35 = load i32, i32* %6
%36 = call i32 (i8*, ...) @yap_quit(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.3, i64 0, i64 0), i8* %34, i32 %35)
br label %37
37: ; preds = %33, %29
%38 = load i32*, i32** %11
%39 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %38, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %16)
%40 = icmp ne i32 %39, 1
br i1 %40, label %45, label %41
41: ; preds = %37
%42 = load i32, i32* %16
%43 = load i32, i32* %7
%44 = icmp ne i32 %42, %43
br i1 %44, label %45, label %49
45: ; preds = %41, %37
%46 = load i8*, i8** %10
%47 = load i32, i32* %7
%48 = call i32 (i8*, ...) @yap_quit(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.4, i64 0, i64 0), i8* %46, i32 %47)
br label %49
49: ; preds = %45, %41
%50 = load i32*, i32** %11
%51 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %50, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %16)
%52 = icmp ne i32 %51, 1
br i1 %52, label %57, label %53
53: ; preds = %49
%54 = load i32, i32* %16
%55 = load i32, i32* %8
%56 = icmp ne i32 %54, %55
br i1 %56, label %57, label %61
57: ; preds = %53, %49
%58 = load i8*, i8** %10
%59 = load i32, i32* %8
%60 = call i32 (i8*, ...) @yap_quit(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.5, i64 0, i64 0), i8* %58, i32 %59)
br label %61
61: ; preds = %57, %53
%62 = load i32*, i32** %11
%63 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %62, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %17)
%64 = icmp ne i32 %63, 1
br i1 %64, label %65, label %68
65: ; preds = %61
%66 = load i8*, i8** %10
%67 = call i32 (i8*, ...) @yap_quit(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0), i8* %66)
br label %68
68: ; preds = %65, %61
store i32 0, i32* %12
br label %69
69: ; preds = %95, %68
%70 = load i32, i32* %12
%71 = load i32, i32* %17
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %98
73: ; preds = %69
%74 = load i32*, i32** %11
%75 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %74, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i32* %13, i32* %14, i32* %15, i32* %16)
%76 = icmp ne i32 %75, 4
br i1 %76, label %77, label %81
77: ; preds = %73
%78 = load i32, i32* %12
%79 = load i8*, i8** %10
%80 = call i32 (i8*, ...) @yap_quit(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0), i32 %78, i8* %79)
br label %81
81: ; preds = %77, %73
%82 = load i32, i32* %16
%83 = load i32***, i32**** %9
%84 = load i32, i32* %13
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i32**, i32*** %83, i64 %85
%87 = load i32**, i32*** %86
%88 = load i32, i32* %14
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i32*, i32** %87, i64 %89
%91 = load i32*, i32** %90
%92 = load i32, i32* %15
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i32, i32* %91, i64 %93
store i32 %82, i32* %94
br label %95
95: ; preds = %81
%96 = load i32, i32* %12
%97 = add nsw i32 %96, 1
store i32 %97, i32* %12
br label %69
98: ; preds = %69
%99 = load i32*, i32** %11
%100 = call i64 @ferror(i32* %99)
%101 = icmp ne i64 %100, 0
br i1 %101, label %102, label %105
102: ; preds = %98
%103 = load i8*, i8** %10
%104 = call i32 @yap_sysquit(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), i8* %103)
br label %105
105: ; preds = %102, %98
%106 = load i32*, i32** %11
%107 = call i32 @fclose(i32* %106)
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@.str.1 = [32 x i8] c"Cannot open file '%s' for read\0A\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [61 x i8] c"Number blocks wrong for sparse matrix in '%s', should be %d\0A\00"
@.str.4 = [59 x i8] c"Number rows wrong for sparse matrix in '%s', should be %d\0A\00"
@.str.5 = [62 x i8] c"Number columns wrong for sparse matrix in '%s', should be %d\0A\00"
@.str.6 = [40 x i8] c"Cannot read sparsity in matrix in '%s'\0A\00"
@.str.7 = [12 x i8] c"%d %d %d %u\00"
@.str.8 = [39 x i8] c"Cannot read line %d in matrix in '%s'\0A\00"
@.str.9 = [28 x i8] c"Error on reading file '%s' \00"
define void @read_u32sparsetri(i32 %0, i32 %1, i32 %2, i32*** nocapture %3, i8* %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = tail call i32* @fopen(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%12 = bitcast i32* %6 to i8*
%13 = bitcast i32* %7 to i8*
%14 = bitcast i32* %8 to i8*
%15 = bitcast i32* %9 to i8*
%16 = bitcast i32* %10 to i8*
store i32 0, i32* %10
%17 = icmp eq i32* %11, null
br i1 %17, label %18, label %20
18: ; preds = %5
%19 = tail call i32 @yap_sysquit(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i8* %4)
br label %20
20: ; preds = %18, %5
%21 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %9)
%22 = icmp eq i32 %21, 1
%23 = load i32, i32* %9
%24 = icmp eq i32 %23, %0
%25 = select i1 %22, i1 %24, i1 false
br i1 %25, label %28, label %26
26: ; preds = %20
%27 = call i32 (i8*, ...) @yap_quit(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.3, i64 0, i64 0), i8* %4, i32 %0)
br label %28
28: ; preds = %20, %26
%29 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %9)
%30 = icmp eq i32 %29, 1
%31 = load i32, i32* %9
%32 = icmp eq i32 %31, %1
%33 = select i1 %30, i1 %32, i1 false
br i1 %33, label %36, label %34
34: ; preds = %28
%35 = call i32 (i8*, ...) @yap_quit(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.4, i64 0, i64 0), i8* %4, i32 %1)
br label %36
36: ; preds = %28, %34
%37 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %9)
%38 = icmp eq i32 %37, 1
%39 = load i32, i32* %9
%40 = icmp eq i32 %39, %2
%41 = select i1 %38, i1 %40, i1 false
br i1 %41, label %44, label %42
42: ; preds = %36
%43 = call i32 (i8*, ...) @yap_quit(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.5, i64 0, i64 0), i8* %4, i32 %2)
br label %44
44: ; preds = %36, %42
%45 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %10)
%46 = icmp eq i32 %45, 1
br i1 %46, label %49, label %47
47: ; preds = %44
%48 = call i32 (i8*, ...) @yap_quit(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0), i8* %4)
br label %49
49: ; preds = %47, %44
%50 = load i32, i32* %10
%51 = icmp sgt i32 %50, 0
br i1 %51, label %52, label %74
52: ; preds = %49, %58
%53 = phi i32 [ %71, %58 ], [ 0, %49 ]
%54 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %11, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i32* %6, i32* %7, i32* %8, i32* %9)
%55 = icmp eq i32 %54, 4
br i1 %55, label %58, label %56
56: ; preds = %52
%57 = call i32 (i8*, ...) @yap_quit(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0), i32 %53, i8* %4)
br label %58
58: ; preds = %56, %52
%59 = load i32, i32* %9
%60 = load i32, i32* %6
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i32**, i32*** %3, i64 %61
%63 = load i32**, i32*** %62
%64 = load i32, i32* %7
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i32*, i32** %63, i64 %65
%67 = load i32*, i32** %66
%68 = load i32, i32* %8
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i32, i32* %67, i64 %69
store i32 %59, i32* %70
%71 = add nuw nsw i32 %53, 1
%72 = load i32, i32* %10
%73 = icmp slt i32 %71, %72
br i1 %73, label %52, label %74
74: ; preds = %58, %49
%75 = call i64 @ferror(i32* %11)
%76 = icmp eq i64 %75, 0
br i1 %76, label %79, label %77
77: ; preds = %74
%78 = call i32 @yap_sysquit(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), i8* %4)
br label %79
79: ; preds = %77, %74
%80 = call i32 @fclose(i32* %11)
ret void
}