#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 /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int fread(int *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, int *);
int /*<<< orphan*/ fwrite(int *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ stderr;
void main() {
  FILE *fd1, *fd2;
  int buf[5] = {250, -25, 780, 4680, 12};
  int buf2[100], buf3[100];
  int i, n_read;
  if (!(fd1 = fopen("numbers1.txt", "w"))) {
    fprintf(stderr, "cannot create file\n");
    exit(0);
  }
  if (!(fd2 = fopen("numbers2.txt", "wb"))) {
    fprintf(stderr, "cannot create file\n");
    exit(0);
  }
  for (i = 0; i < 5; i++) {
    fprintf(fd1, "%d\n", buf[i]);
  }
  fwrite(buf, sizeof(int), 5, fd2);
  fclose(fd1);
  fclose(fd2);
  puts("\n-----------------------------");
  if (!(fd1 = fopen("numbers1.txt", "r"))) {
    fprintf(stderr, "cannot open file\n");
    exit(0);
  }
  if (!(fd2 = fopen("numbers2.txt", "rb"))) {
    fprintf(stderr, "cannot open file\n");
    exit(0);
  }
  for (i = 0; i < 5; i++) {
    fscanf(fd1, "%d\n", &buf2[i]);
    printf("%d\n", buf[i]);
  }
  n_read = fread(buf3, sizeof(int), 5, fd2);
  for (i = 0; i < n_read; i++) {
    printf("%d\n", buf3[i]);
  }
  fclose(fd1);
  fclose(fd2);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x360,%rsp
mov    0xe5e(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xe5b(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xe59(%rip),%eax
mov    %eax,-0x20(%rbp)
lea    0xe53(%rip),%rdi
lea    0xe59(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x8(%rbp)
cmp    $0x0,%rax
jne    11f9 <main+0x69>
mov    0x2dfe(%rip),%rax
mov    (%rax),%edi
lea    0xe38(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
xor    %edi,%edi
call   10a0 <exit@plt>
lea    0xe37(%rip),%rdi
lea    0xe3d(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
jne    1238 <main+0xa8>
mov    0x2dbf(%rip),%rax
mov    (%rax),%edi
lea    0xdf9(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
xor    %edi,%edi
call   10a0 <exit@plt>
movl   $0x0,-0x354(%rbp)
cmpl   $0x5,-0x354(%rbp)
jge    1282 <main+0xf2>
mov    -0x8(%rbp),%rax
mov    %eax,%edi
movslq -0x354(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%edx
lea    0xde0(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x354(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x354(%rbp)
jmp    1242 <main+0xb2>
lea    -0x30(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x4,%esi
mov    $0x5,%edx
call   10b0 <fwrite@plt>
mov    -0x8(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x10(%rbp),%rdi
call   1050 <fclose@plt>
lea    0xd99(%rip),%rdi
call   1030 <puts@plt>
lea    0xd56(%rip),%rdi
lea    0xda5(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x8(%rbp)
cmp    $0x0,%rax
jne    12f6 <main+0x166>
mov    0x2d01(%rip),%rax
mov    (%rax),%edi
lea    0xd84(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
xor    %edi,%edi
call   10a0 <exit@plt>
lea    0xd3a(%rip),%rdi
lea    0xd7a(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
jne    1335 <main+0x1a5>
mov    0x2cc2(%rip),%rax
mov    (%rax),%edi
lea    0xd45(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
xor    %edi,%edi
call   10a0 <exit@plt>
movl   $0x0,-0x354(%rbp)
cmpl   $0x5,-0x354(%rbp)
jge    139c <main+0x20c>
mov    -0x8(%rbp),%rdi
movslq -0x354(%rbp),%rax
lea    -0x1c0(%rbp),%rdx
shl    $0x2,%rax
add    %rax,%rdx
lea    0xcdb(%rip),%rsi
call   1070 <fscanf@plt>
movslq -0x354(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xcc4(%rip),%rdi
call   1060 <printf@plt>
mov    -0x354(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x354(%rbp)
jmp    133f <main+0x1af>
lea    -0x350(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x4,%esi
mov    $0x5,%edx
call   1040 <fread@plt>
mov    %eax,-0x358(%rbp)
movl   $0x0,-0x354(%rbp)
mov    -0x354(%rbp),%eax
cmp    -0x358(%rbp),%eax
jge    1406 <main+0x276>
movslq -0x354(%rbp),%rax
mov    -0x350(%rbp,%rax,4),%esi
lea    0xc5a(%rip),%rdi
call   1060 <printf@plt>
mov    -0x354(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x354(%rbp)
jmp    13c6 <main+0x236>
mov    -0x8(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x10(%rbp),%rdi
call   1050 <fclose@plt>
add    $0x360,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x340,%rsp
mov    0xe6a(%rip),%eax
mov    %eax,0x10(%rsp)
movaps 0xe4f(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0xe58(%rip),%rdi
lea    0xe5e(%rip),%rsi
call   1090 <fopen@plt>
test   %rax,%rax
je     13b9 <main+0x229>
mov    %rax,%rbx
lea    0xe5c(%rip),%rdi
lea    0xe62(%rip),%rsi
call   1090 <fopen@plt>
test   %rax,%rax
je     13b9 <main+0x229>
mov    %rax,%r14
lea    0xe4d(%rip),%r15
mov    %ebx,%edi
mov    %r15,%rsi
mov    $0xfa,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    %ebx,%edi
mov    %r15,%rsi
mov    $0xffffffe7,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    %ebx,%edi
mov    %r15,%rsi
mov    $0x30c,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    %ebx,%edi
mov    %r15,%rsi
mov    $0x1248,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    %ebx,%edi
mov    %r15,%rsi
mov    $0xc,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    %rsp,%rdi
mov    $0x4,%esi
mov    $0x5,%edx
mov    %r14,%rcx
call   10b0 <fwrite@plt>
mov    %rbx,%rdi
call   1050 <fclose@plt>
mov    %r14,%rdi
call   1050 <fclose@plt>
lea    0xdd0(%rip),%rdi
call   1030 <puts@plt>
lea    0xd8d(%rip),%rdi
lea    0xddc(%rip),%rsi
call   1090 <fopen@plt>
test   %rax,%rax
je     13cb <main+0x23b>
mov    %rax,%r15
lea    0xd91(%rip),%rdi
lea    0xdd1(%rip),%rsi
call   1090 <fopen@plt>
test   %rax,%rax
je     13cb <main+0x23b>
mov    %rax,%r14
lea    0xd82(%rip),%rbx
lea    0x20(%rsp),%rdx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1070 <fscanf@plt>
mov    (%rsp),%esi
mov    %rbx,%rdi
call   1060 <printf@plt>
lea    0x24(%rsp),%rdx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1070 <fscanf@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
call   1060 <printf@plt>
lea    0x28(%rsp),%rdx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1070 <fscanf@plt>
mov    0x8(%rsp),%esi
mov    %rbx,%rdi
call   1060 <printf@plt>
lea    0x2c(%rsp),%rdx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1070 <fscanf@plt>
mov    0xc(%rsp),%esi
mov    %rbx,%rdi
call   1060 <printf@plt>
lea    0x30(%rsp),%rdx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1070 <fscanf@plt>
mov    0x10(%rsp),%esi
mov    %rbx,%rdi
call   1060 <printf@plt>
lea    0x1b0(%rsp),%rdi
mov    $0x4,%esi
mov    $0x5,%edx
mov    %r14,%rcx
call   1040 <fread@plt>
test   %eax,%eax
jle    1398 <main+0x208>
mov    %eax,%r13d
xor    %ebx,%ebx
lea    0xccd(%rip),%r12
nopw   0x0(%rax,%rax,1)
mov    0x1b0(%rsp,%rbx,4),%esi
mov    %r12,%rdi
call   1060 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%r13
jne    1380 <main+0x1f0>
mov    %r15,%rdi
call   1050 <fclose@plt>
mov    %r14,%rdi
call   1050 <fclose@plt>
add    $0x340,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret
mov    0x2c20(%rip),%rax
mov    (%rax),%edi
lea    0xc5a(%rip),%rsi
jmp    13db <main+0x24b>
mov    0x2c0e(%rip),%rax
mov    (%rax),%edi
lea    0xc91(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
xor    %edi,%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
@__const.main.buf = [5 x i32] [i32 250, i32 -25, i32 780, i32 4680, i32 12]
@.str = [13 x i8] c"numbers1.txt\00"
@.str.1 = [2 x i8] c"w\00"
@stderr = global i32 0
@.str.2 = [20 x i8] c"cannot create file\0A\00"
@.str.3 = [13 x i8] c"numbers2.txt\00"
@.str.4 = [3 x i8] c"wb\00"
@.str.5 = [4 x i8] c"%d\0A\00"
@.str.6 = [31 x i8] c"\0A-----------------------------\00"
@.str.7 = [2 x i8] c"r\00"
@.str.8 = [18 x i8] c"cannot open file\0A\00"
@.str.9 = [3 x i8] c"rb\00"
define void @main() {
%1 = alloca i32*
%2 = alloca i32*
%3 = alloca [5 x i32]
%4 = alloca [100 x i32]
%5 = alloca [100 x i32]
%6 = alloca i32
%7 = alloca i32
%8 = bitcast [5 x i32]* %3 to i8*
%9 = call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %9, i32** %1
%10 = icmp ne i32* %9, null
br i1 %10, label %15, label %11
11: ; preds = %0
%12 = load i32, i32* @stderr
%13 = call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%14 = call i32 @exit(i32 0)
unreachable
15: ; preds = %0
%16 = call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i32* %16, i32** %2
%17 = icmp ne i32* %16, null
br i1 %17, label %22, label %18
18: ; preds = %15
%19 = load i32, i32* @stderr
%20 = call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%21 = call i32 @exit(i32 0)
unreachable
22: ; preds = %15
store i32 0, i32* %6
br label %23
23: ; preds = %34, %22
%24 = load i32, i32* %6
%25 = icmp slt i32 %24, 5
br i1 %25, label %26, label %37
26: ; preds = %23
%27 = load i32*, i32** %1
%28 = ptrtoint i32* %27 to i32
%29 = load i32, i32* %6
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 %30
%32 = load i32, i32* %31
%33 = call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %32)
br label %34
34: ; preds = %26
%35 = load i32, i32* %6
%36 = add nsw i32 %35, 1
store i32 %36, i32* %6
br label %23
37: ; preds = %23
%38 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 0
%39 = load i32*, i32** %2
%40 = call i32 @fwrite(i32* %38, i32 4, i32 5, i32* %39)
%41 = load i32*, i32** %1
%42 = call i32 @fclose(i32* %41)
%43 = load i32*, i32** %2
%44 = call i32 @fclose(i32* %43)
%45 = call i32 @puts(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0))
%46 = call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
store i32* %46, i32** %1
%47 = icmp ne i32* %46, null
br i1 %47, label %52, label %48
48: ; preds = %37
%49 = load i32, i32* @stderr
%50 = call i32 (i32, i8*, ...) @fprintf(i32 %49, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0))
%51 = call i32 @exit(i32 0)
unreachable
52: ; preds = %37
%53 = call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
store i32* %53, i32** %2
%54 = icmp ne i32* %53, null
br i1 %54, label %59, label %55
55: ; preds = %52
%56 = load i32, i32* @stderr
%57 = call i32 (i32, i8*, ...) @fprintf(i32 %56, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0))
%58 = call i32 @exit(i32 0)
unreachable
59: ; preds = %52
store i32 0, i32* %6
br label %60
60: ; preds = %74, %59
%61 = load i32, i32* %6
%62 = icmp slt i32 %61, 5
br i1 %62, label %63, label %77
63: ; preds = %60
%64 = load i32*, i32** %1
%65 = load i32, i32* %6
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [100 x i32], [100 x i32]* %4, i64 0, i64 %66
%68 = call i32 @fscanf(i32* %64, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32* %67)
%69 = load i32, i32* %6
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 %70
%72 = load i32, i32* %71
%73 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %72)
br label %74
74: ; preds = %63
%75 = load i32, i32* %6
%76 = add nsw i32 %75, 1
store i32 %76, i32* %6
br label %60
77: ; preds = %60
%78 = getelementptr inbounds [100 x i32], [100 x i32]* %5, i64 0, i64 0
%79 = load i32*, i32** %2
%80 = call i32 @fread(i32* %78, i32 4, i32 5, i32* %79)
store i32 %80, i32* %7
store i32 0, i32* %6
br label %81
81: ; preds = %91, %77
%82 = load i32, i32* %6
%83 = load i32, i32* %7
%84 = icmp slt i32 %82, %83
br i1 %84, label %85, label %94
85: ; preds = %81
%86 = load i32, i32* %6
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [100 x i32], [100 x i32]* %5, i64 0, i64 %87
%89 = load i32, i32* %88
%90 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %89)
br label %91
91: ; preds = %85
%92 = load i32, i32* %6
%93 = add nsw i32 %92, 1
store i32 %93, i32* %6
br label %81
94: ; preds = %81
%95 = load i32*, i32** %1
%96 = call i32 @fclose(i32* %95)
%97 = load i32*, i32** %2
%98 = call i32 @fclose(i32* %97)
ret void
}

LLVM IR (-O2):
@__const.main.buf = [5 x i32] [i32 250, i32 -25, i32 780, i32 4680, i32 12]
@.str = [13 x i8] c"numbers1.txt\00"
@.str.1 = [2 x i8] c"w\00"
@stderr = global i32 0
@.str.2 = [20 x i8] c"cannot create file\0A\00"
@.str.3 = [13 x i8] c"numbers2.txt\00"
@.str.4 = [3 x i8] c"wb\00"
@.str.5 = [4 x i8] c"%d\0A\00"
@.str.6 = [31 x i8] c"\0A-----------------------------\00"
@.str.7 = [2 x i8] c"r\00"
@.str.8 = [18 x i8] c"cannot open file\0A\00"
@.str.9 = [3 x i8] c"rb\00"
define void @main() {
%1 = alloca [5 x i32]
%2 = alloca [100 x i32]
%3 = alloca [100 x i32]
%4 = bitcast [5 x i32]* %1 to i8*
%5 = bitcast [100 x i32]* %2 to i8*
%6 = bitcast [100 x i32]* %3 to i8*
%7 = tail call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%8 = icmp eq i32* %7, null
br i1 %8, label %9, label %13
9: ; preds = %0
%10 = load i32, i32* @stderr
%11 = tail call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%12 = tail call i32 @exit(i32 0)
unreachable
13: ; preds = %0
%14 = tail call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%15 = icmp eq i32* %14, null
br i1 %15, label %35, label %16
16: ; preds = %13
%17 = ptrtoint i32* %7 to i64
%18 = trunc i64 %17 to i32
%19 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 0
%20 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 250)
%21 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 1
%22 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 -25)
%23 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 2
%24 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 780)
%25 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 3
%26 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 4680)
%27 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 4
%28 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 12)
%29 = call i32 @fwrite(i32* %19, i32 4, i32 5, i32* %14)
%30 = tail call i32 @fclose(i32* %7)
%31 = tail call i32 @fclose(i32* %14)
%32 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0))
%33 = tail call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%34 = icmp eq i32* %33, null
br i1 %34, label %39, label %43
35: ; preds = %13
%36 = load i32, i32* @stderr
%37 = tail call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%38 = tail call i32 @exit(i32 0)
unreachable
39: ; preds = %16
%40 = load i32, i32* @stderr
%41 = tail call i32 (i32, i8*, ...) @fprintf(i32 %40, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0))
%42 = tail call i32 @exit(i32 0)
unreachable
43: ; preds = %16
%44 = tail call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%45 = icmp eq i32* %44, null
br i1 %45, label %70, label %46
46: ; preds = %43
%47 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 0
%48 = call i32 @fscanf(i32* %33, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32* %47)
%49 = load i32, i32* %19
%50 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %49)
%51 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 1
%52 = call i32 @fscanf(i32* %33, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32* %51)
%53 = load i32, i32* %21
%54 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %53)
%55 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 2
%56 = call i32 @fscanf(i32* %33, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32* %55)
%57 = load i32, i32* %23
%58 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %57)
%59 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 3
%60 = call i32 @fscanf(i32* %33, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32* %59)
%61 = load i32, i32* %25
%62 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %61)
%63 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 4
%64 = call i32 @fscanf(i32* %33, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32* %63)
%65 = load i32, i32* %27
%66 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %65)
%67 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 0
%68 = call i32 @fread(i32* %67, i32 4, i32 5, i32* %44)
%69 = icmp sgt i32 %68, 0
br i1 %69, label %74, label %83
70: ; preds = %43
%71 = load i32, i32* @stderr
%72 = tail call i32 (i32, i8*, ...) @fprintf(i32 %71, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0))
%73 = tail call i32 @exit(i32 0)
unreachable
74: ; preds = %46
%75 = zext i32 %68 to i64
br label %76
76: ; preds = %74, %76
%77 = phi i64 [ 0, %74 ], [ %81, %76 ]
%78 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 %77
%79 = load i32, i32* %78
%80 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %79)
%81 = add nuw nsw i64 %77, 1
%82 = icmp eq i64 %81, %75
br i1 %82, label %83, label %76
83: ; preds = %76, %46
%84 = call i32 @fclose(i32* %33)
%85 = call i32 @fclose(i32* %44)
ret void
}