#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 EOF;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *);
int getline(int /*<<< orphan*/ *, char *, int);
int /*<<< orphan*/ perror(char *);
scalar_t__ strcmp(char *, char *);
int stringMerge(char filename1[], char filename2[], char filename3[]) {
  FILE *fd1, *fd2, *fd3;
  char buffer1[128], buffer2[128];
  int ln1, ln2;
  int n = 0;
  if ((fd1 = fopen(filename1, "r")) == NULL) {
    perror("fopen");
    exit(1);
  }
  if ((fd2 = fopen(filename2, "r")) == NULL) {
    perror("fopen");
    exit(1);
  }
  if ((fd3 = fopen(filename3, "w")) == NULL) {
    perror("fopen");
    exit(1);
  }
  ln1 = getline(fd1, buffer1, 128 - 1);
  ln2 = getline(fd2, buffer2, 128 - 1);
  while ((ln1 != EOF) && (ln2 != EOF)) {
    if (strcmp(buffer1, buffer2) <= 0) {
      fprintf(fd3, "%s\n", buffer1);
      ln1 = getline(fd1, buffer1, 128 - 1);
    } else {
      fprintf(fd3, "%s\n", buffer2);
      ln2 = getline(fd2, buffer2, 128 - 1);
    }
    n++;
  }
  while (ln1 != EOF) {
    fprintf(fd3, "%s\n", buffer1);
    ln1 = getline(fd1, buffer1, 128 - 1);
    n++;
  }
  while (ln2 != EOF) {
    fprintf(fd3, "%s\n", buffer2);
    ln2 = getline(fd2, buffer2, 128 - 1);
    n++;
  }
  fclose(fd1);
  fclose(fd2);
  fclose(fd3);
  return n;
}


x86 assembly (clang, -O0):
<stringMerge>:
push   %rbp
mov    %rsp,%rbp
sub    $0x140,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x0,-0x13c(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe64(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jne    11c5 <stringMerge+0x55>
lea    0xe4c(%rip),%rdi
call   1070 <perror@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0x10(%rbp),%rdi
lea    0xe30(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
jne    11f9 <stringMerge+0x89>
lea    0xe18(%rip),%rdi
call   1070 <perror@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0x18(%rbp),%rdi
lea    0xe04(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x30(%rbp)
cmp    $0x0,%rax
jne    122d <stringMerge+0xbd>
lea    0xde4(%rip),%rdi
call   1070 <perror@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0x20(%rbp),%rdi
lea    -0xb0(%rbp),%rsi
mov    $0x7f,%edx
call   1080 <getline@plt>
mov    %eax,-0x134(%rbp)
mov    -0x28(%rbp),%rdi
lea    -0x130(%rbp),%rsi
mov    $0x7f,%edx
call   1080 <getline@plt>
mov    %eax,-0x138(%rbp)
mov    -0x134(%rbp),%ecx
xor    %eax,%eax
mov    0x2d76(%rip),%rdx
cmp    (%rdx),%ecx
mov    %al,-0x13d(%rbp)
je     1298 <stringMerge+0x128>
mov    -0x138(%rbp),%eax
mov    0x2d5b(%rip),%rcx
cmp    (%rcx),%eax
setne  %al
mov    %al,-0x13d(%rbp)
mov    -0x13d(%rbp),%al
test   $0x1,%al
jne    12ab <stringMerge+0x13b>
jmp    1345 <stringMerge+0x1d5>
lea    -0xb0(%rbp),%rdi
lea    -0x130(%rbp),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jg     12ff <stringMerge+0x18f>
mov    -0x30(%rbp),%rdi
lea    -0xb0(%rbp),%rdx
lea    0xd30(%rip),%rsi
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    -0xb0(%rbp),%rsi
mov    $0x7f,%edx
call   1080 <getline@plt>
mov    %eax,-0x134(%rbp)
jmp    1331 <stringMerge+0x1c1>
mov    -0x30(%rbp),%rdi
lea    -0x130(%rbp),%rdx
lea    0xcf9(%rip),%rsi
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
lea    -0x130(%rbp),%rsi
mov    $0x7f,%edx
call   1080 <getline@plt>
mov    %eax,-0x138(%rbp)
mov    -0x13c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13c(%rbp)
jmp    1263 <stringMerge+0xf3>
jmp    134a <stringMerge+0x1da>
mov    -0x134(%rbp),%eax
mov    0x2c91(%rip),%rcx
cmp    (%rcx),%eax
je     13a5 <stringMerge+0x235>
mov    -0x30(%rbp),%rdi
lea    -0xb0(%rbp),%rdx
lea    0xc99(%rip),%rsi
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    -0xb0(%rbp),%rsi
mov    $0x7f,%edx
call   1080 <getline@plt>
mov    %eax,-0x134(%rbp)
mov    -0x13c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13c(%rbp)
jmp    134a <stringMerge+0x1da>
jmp    13aa <stringMerge+0x23a>
mov    -0x138(%rbp),%eax
mov    0x2c31(%rip),%rcx
cmp    (%rcx),%eax
je     1405 <stringMerge+0x295>
mov    -0x30(%rbp),%rdi
lea    -0x130(%rbp),%rdx
lea    0xc39(%rip),%rsi
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
lea    -0x130(%rbp),%rsi
mov    $0x7f,%edx
call   1080 <getline@plt>
mov    %eax,-0x138(%rbp)
mov    -0x13c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13c(%rbp)
jmp    13aa <stringMerge+0x23a>
mov    -0x20(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x28(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x30(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x13c(%rbp),%eax
add    $0x140,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stringMerge>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x118,%rsp
mov    %rdx,%r14
mov    %rsi,%rbp
lea    0xe72(%rip),%rsi
call   1060 <fopen@plt>
test   %rax,%rax
je     1388 <stringMerge+0x218>
mov    %rax,%rbx
lea    0xe5a(%rip),%rsi
mov    %rbp,%rdi
call   1060 <fopen@plt>
test   %rax,%rax
je     1388 <stringMerge+0x218>
mov    %rax,%rbp
lea    0xe47(%rip),%rsi
mov    %r14,%rdi
call   1060 <fopen@plt>
test   %rax,%rax
je     1388 <stringMerge+0x218>
mov    %rax,%r14
lea    0x90(%rsp),%rsi
mov    %rbx,0x8(%rsp)
mov    %rbx,%rdi
mov    $0x7f,%edx
call   1080 <getline@plt>
mov    %eax,%r13d
lea    0x10(%rsp),%rsi
mov    %rbp,(%rsp)
mov    %rbp,%rdi
mov    $0x7f,%edx
call   1080 <getline@plt>
mov    %eax,%r12d
mov    0x2dd6(%rip),%rax
mov    (%rax),%eax
xor    %ebp,%ebp
cmp    %eax,%r13d
je     12b2 <stringMerge+0x142>
cmp    %eax,%r12d
je     12b2 <stringMerge+0x142>
xor    %ebp,%ebp
lea    0x90(%rsp),%rbx
lea    0x10(%rsp),%r15
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    %r15,%rsi
call   1040 <strcmp@plt>
mov    %r14,%rdi
lea    0xdb5(%rip),%rsi
test   %rax,%rax
jg     1280 <stringMerge+0x110>
mov    %rbx,%rdx
call   1050 <fprintf@plt>
mov    0x8(%rsp),%rdi
mov    %rbx,%rsi
mov    $0x7f,%edx
call   1080 <getline@plt>
mov    %eax,%r13d
jmp    129c <stringMerge+0x12c>
nopl   0x0(%rax)
mov    %r15,%rdx
call   1050 <fprintf@plt>
mov    (%rsp),%rdi
mov    %r15,%rsi
mov    $0x7f,%edx
call   1080 <getline@plt>
mov    %eax,%r12d
add    $0x1,%ebp
mov    0x2d42(%rip),%rax
mov    (%rax),%eax
cmp    %eax,%r13d
je     12b2 <stringMerge+0x142>
cmp    %eax,%r12d
jne    1240 <stringMerge+0xd0>
cmp    %eax,%r13d
jne    12be <stringMerge+0x14e>
mov    0x8(%rsp),%r13
jmp    130c <stringMerge+0x19c>
lea    0xd45(%rip),%r15
lea    0x90(%rsp),%rbx
mov    0x8(%rsp),%r13
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r14,%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
call   1050 <fprintf@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
mov    $0x7f,%edx
call   1080 <getline@plt>
add    $0x1,%ebp
mov    0x2ce0(%rip),%rcx
cmp    (%rcx),%eax
jne    12e0 <stringMerge+0x170>
cmp    %eax,%r12d
jne    1317 <stringMerge+0x1a7>
mov    (%rsp),%r12
jmp    135c <stringMerge+0x1ec>
lea    0xcec(%rip),%r15
lea    0x10(%rsp),%rbx
mov    (%rsp),%r12
nopw   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
call   1050 <fprintf@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
mov    $0x7f,%edx
call   1080 <getline@plt>
add    $0x1,%ebp
mov    0x2c90(%rip),%rcx
cmp    (%rcx),%eax
jne    1330 <stringMerge+0x1c0>
mov    %r13,%rdi
call   1030 <fclose@plt>
mov    %r12,%rdi
call   1030 <fclose@plt>
mov    %r14,%rdi
call   1030 <fclose@plt>
mov    %ebp,%eax
add    $0x118,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xc73(%rip),%rdi
call   1070 <perror@plt>
mov    $0x1,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
@.str.1 = [6 x i8] c"fopen\00"
@.str.2 = [2 x i8] c"w\00"
@EOF = global i32 0
@.str.3 = [4 x i8] c"%s\0A\00"
define i32 @stringMerge(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca [128 x i8]
%11 = alloca [128 x i8]
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
store i32 0, i32* %14
%15 = load i8*, i8** %4
%16 = call i32* @fopen(i8* %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %16, i32** %7
%17 = icmp eq i32* %16, null
br i1 %17, label %18, label %21
18: ; preds = %3
%19 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%20 = call i32 @exit(i32 1)
unreachable
21: ; preds = %3
%22 = load i8*, i8** %5
%23 = call i32* @fopen(i8* %22, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %23, i32** %8
%24 = icmp eq i32* %23, null
br i1 %24, label %25, label %28
25: ; preds = %21
%26 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%27 = call i32 @exit(i32 1)
unreachable
28: ; preds = %21
%29 = load i8*, i8** %6
%30 = call i32* @fopen(i8* %29, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %30, i32** %9
%31 = icmp eq i32* %30, null
br i1 %31, label %32, label %35
32: ; preds = %28
%33 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%34 = call i32 @exit(i32 1)
unreachable
35: ; preds = %28
%36 = load i32*, i32** %7
%37 = getelementptr inbounds [128 x i8], [128 x i8]* %10, i64 0, i64 0
%38 = call i32 @getline(i32* %36, i8* %37, i32 127)
store i32 %38, i32* %12
%39 = load i32*, i32** %8
%40 = getelementptr inbounds [128 x i8], [128 x i8]* %11, i64 0, i64 0
%41 = call i32 @getline(i32* %39, i8* %40, i32 127)
store i32 %41, i32* %13
br label %42
42: ; preds = %71, %35
%43 = load i32, i32* %12
%44 = load i32, i32* @EOF
%45 = icmp ne i32 %43, %44
br i1 %45, label %46, label %50
46: ; preds = %42
%47 = load i32, i32* %13
%48 = load i32, i32* @EOF
%49 = icmp ne i32 %47, %48
br label %50
50: ; preds = %46, %42
%51 = phi i1 [ false, %42 ], [ %49, %46 ]
br i1 %51, label %52, label %74
52: ; preds = %50
%53 = getelementptr inbounds [128 x i8], [128 x i8]* %10, i64 0, i64 0
%54 = getelementptr inbounds [128 x i8], [128 x i8]* %11, i64 0, i64 0
%55 = call i64 @strcmp(i8* %53, i8* %54)
%56 = icmp sle i64 %55, 0
br i1 %56, label %57, label %64
57: ; preds = %52
%58 = load i32*, i32** %9
%59 = getelementptr inbounds [128 x i8], [128 x i8]* %10, i64 0, i64 0
%60 = call i32 @fprintf(i32* %58, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %59)
%61 = load i32*, i32** %7
%62 = getelementptr inbounds [128 x i8], [128 x i8]* %10, i64 0, i64 0
%63 = call i32 @getline(i32* %61, i8* %62, i32 127)
store i32 %63, i32* %12
br label %71
64: ; preds = %52
%65 = load i32*, i32** %9
%66 = getelementptr inbounds [128 x i8], [128 x i8]* %11, i64 0, i64 0
%67 = call i32 @fprintf(i32* %65, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %66)
%68 = load i32*, i32** %8
%69 = getelementptr inbounds [128 x i8], [128 x i8]* %11, i64 0, i64 0
%70 = call i32 @getline(i32* %68, i8* %69, i32 127)
store i32 %70, i32* %13
br label %71
71: ; preds = %64, %57
%72 = load i32, i32* %14
%73 = add nsw i32 %72, 1
store i32 %73, i32* %14
br label %42
74: ; preds = %50
br label %75
75: ; preds = %79, %74
%76 = load i32, i32* %12
%77 = load i32, i32* @EOF
%78 = icmp ne i32 %76, %77
br i1 %78, label %79, label %88
79: ; preds = %75
%80 = load i32*, i32** %9
%81 = getelementptr inbounds [128 x i8], [128 x i8]* %10, i64 0, i64 0
%82 = call i32 @fprintf(i32* %80, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %81)
%83 = load i32*, i32** %7
%84 = getelementptr inbounds [128 x i8], [128 x i8]* %10, i64 0, i64 0
%85 = call i32 @getline(i32* %83, i8* %84, i32 127)
store i32 %85, i32* %12
%86 = load i32, i32* %14
%87 = add nsw i32 %86, 1
store i32 %87, i32* %14
br label %75
88: ; preds = %75
br label %89
89: ; preds = %93, %88
%90 = load i32, i32* %13
%91 = load i32, i32* @EOF
%92 = icmp ne i32 %90, %91
br i1 %92, label %93, label %102
93: ; preds = %89
%94 = load i32*, i32** %9
%95 = getelementptr inbounds [128 x i8], [128 x i8]* %11, i64 0, i64 0
%96 = call i32 @fprintf(i32* %94, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %95)
%97 = load i32*, i32** %8
%98 = getelementptr inbounds [128 x i8], [128 x i8]* %11, i64 0, i64 0
%99 = call i32 @getline(i32* %97, i8* %98, i32 127)
store i32 %99, i32* %13
%100 = load i32, i32* %14
%101 = add nsw i32 %100, 1
store i32 %101, i32* %14
br label %89
102: ; preds = %89
%103 = load i32*, i32** %7
%104 = call i32 @fclose(i32* %103)
%105 = load i32*, i32** %8
%106 = call i32 @fclose(i32* %105)
%107 = load i32*, i32** %9
%108 = call i32 @fclose(i32* %107)
%109 = load i32, i32* %14
ret i32 %109
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@.str.1 = [6 x i8] c"fopen\00"
@.str.2 = [2 x i8] c"w\00"
@EOF = global i32 0
@.str.3 = [4 x i8] c"%s\0A\00"
define i32 @stringMerge(i8* nocapture %0, i8* nocapture %1, i8* nocapture %2) {
%4 = alloca [128 x i8]
%5 = alloca [128 x i8]
%6 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 0
%7 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
%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 %13
10: ; preds = %3
%11 = tail call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%12 = tail call i32 @exit(i32 1)
unreachable
13: ; preds = %3
%14 = tail call i32* @fopen(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%15 = icmp eq i32* %14, null
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = tail call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%18 = tail call i32 @exit(i32 1)
unreachable
19: ; preds = %13
%20 = tail call i32* @fopen(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%21 = icmp eq i32* %20, null
br i1 %21, label %22, label %25
22: ; preds = %19
%23 = tail call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%24 = tail call i32 @exit(i32 1)
unreachable
25: ; preds = %19
%26 = call i32 @getline(i32* %8, i8* %6, i32 127)
%27 = call i32 @getline(i32* %14, i8* %7, i32 127)
%28 = load i32, i32* @EOF
%29 = icmp ne i32 %26, %28
%30 = icmp ne i32 %27, %28
%31 = select i1 %29, i1 %30, i1 false
br i1 %31, label %38, label %32
32: ; preds = %50, %25
%33 = phi i32 [ %28, %25 ], [ %54, %50 ]
%34 = phi i32 [ %26, %25 ], [ %51, %50 ]
%35 = phi i32 [ %27, %25 ], [ %52, %50 ]
%36 = phi i32 [ 0, %25 ], [ %53, %50 ]
%37 = icmp eq i32 %34, %33
br i1 %37, label %58, label %62
38: ; preds = %25, %50
%39 = phi i32 [ %53, %50 ], [ 0, %25 ]
%40 = phi i32 [ %52, %50 ], [ %27, %25 ]
%41 = phi i32 [ %51, %50 ], [ %26, %25 ]
%42 = call i64 @strcmp(i8* %6, i8* %7)
%43 = icmp slt i64 %42, 1
br i1 %43, label %44, label %47
44: ; preds = %38
%45 = call i32 @fprintf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %6)
%46 = call i32 @getline(i32* %8, i8* %6, i32 127)
br label %50
47: ; preds = %38
%48 = call i32 @fprintf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %7)
%49 = call i32 @getline(i32* %14, i8* %7, i32 127)
br label %50
50: ; preds = %47, %44
%51 = phi i32 [ %46, %44 ], [ %41, %47 ]
%52 = phi i32 [ %40, %44 ], [ %49, %47 ]
%53 = add nuw nsw i32 %39, 1
%54 = load i32, i32* @EOF
%55 = icmp ne i32 %51, %54
%56 = icmp ne i32 %52, %54
%57 = select i1 %55, i1 %56, i1 false
br i1 %57, label %38, label %32
58: ; preds = %62, %32
%59 = phi i32 [ %33, %32 ], [ %65, %62 ]
%60 = phi i32 [ %36, %32 ], [ %66, %62 ]
%61 = icmp eq i32 %35, %59
br i1 %61, label %76, label %69
62: ; preds = %32, %62
%63 = phi i32 [ %66, %62 ], [ %36, %32 ]
%64 = call i32 @fprintf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %6)
%65 = call i32 @getline(i32* %8, i8* %6, i32 127)
%66 = add nuw nsw i32 %63, 1
%67 = load i32, i32* @EOF
%68 = icmp eq i32 %65, %67
br i1 %68, label %58, label %62
69: ; preds = %58, %69
%70 = phi i32 [ %73, %69 ], [ %60, %58 ]
%71 = call i32 @fprintf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %7)
%72 = call i32 @getline(i32* %14, i8* %7, i32 127)
%73 = add nuw nsw i32 %70, 1
%74 = load i32, i32* @EOF
%75 = icmp eq i32 %72, %74
br i1 %75, label %76, label %69
76: ; preds = %69, %58
%77 = phi i32 [ %60, %58 ], [ %73, %69 ]
%78 = call i32 @fclose(i32* %8)
%79 = call i32 @fclose(i32* %14)
%80 = call i32 @fclose(i32* %20)
ret i32 %77
}