#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 BUFSIZ;
int cmp_cache(char *, char *);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
int fgetl(int /*<<< orphan*/ *, int, char *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcpy(char *, char *);
char *strerror(int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  FILE *fpList, *fpMeta;
  int line_count;
  if (argc != 3) {
    fprintf(stderr, "usage: %s listfile metafile\n", argv[0]);
    return (-1);
  }
  char *listfile = argv[1];
  char *metafile = argv[2];
  if ((fpList = fopen(listfile, "rb")) == NULL) {
    fprintf(stderr, "%s: %s\n", listfile, strerror(errno));
    return (-1);
  }
  if ((fpMeta = fopen(metafile, "wb")) == NULL) {
    fprintf(stderr, "%s: %s\n", metafile, strerror(errno));
    fclose(fpList);
    return (-1);
  }
  char previous_line[BUFSIZ];
  char current_line[BUFSIZ];
  if (fgetl(fpList, BUFSIZ, previous_line) == -1)
    memset(previous_line, 0, BUFSIZ);
  int comp;
  line_count = 1;
  int line_number = 0;
  while (!feof(fpList)) {
    if (fgetl(fpList, BUFSIZ, current_line) == -1)
      memset(previous_line, 0, BUFSIZ);
    comp = cmp_cache(previous_line, current_line);
    if (comp == 0) {
      line_count++;
      strcpy(previous_line, current_line);
    } else {
      if (line_count > 1) {
        fprintf(fpMeta, "%d %d\n", line_number, line_count);
        line_count = 1;
      }
      line_number++;
      strcpy(previous_line, current_line);
    }
  }
  fclose(fpList);
  fclose(fpMeta);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
je     11de <main+0x4e>
mov    0x2e26(%rip),%rax
movslq (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe35(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1450 <main+0x2c0>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x30(%rbp),%rdi
lea    0xe1c(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    125d <main+0xcd>
mov    0x2dc5(%rip),%rax
movslq (%rax),%rax
mov    %rax,-0x68(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    0x2d9f(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
mov    -0x68(%rbp),%rdi
mov    -0x60(%rbp),%rdx
mov    %rax,%rcx
lea    0xdd6(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1450 <main+0x2c0>
mov    -0x38(%rbp),%rdi
lea    0xdc0(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jne    12cd <main+0x13d>
mov    0x2d5e(%rip),%rax
movslq (%rax),%rax
mov    %rax,-0x78(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    0x2d38(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
mov    -0x78(%rbp),%rdi
mov    -0x70(%rbp),%rdx
mov    %rax,%rcx
lea    0xd6f(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1450 <main+0x2c0>
mov    0x2d04(%rip),%rax
mov    (%rax),%ecx
mov    %rsp,%rdx
mov    %rdx,-0x40(%rbp)
mov    %rcx,%rsi
add    $0xf,%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rdx
sub    %rsi,%rdx
mov    %rdx,-0x88(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x48(%rbp)
mov    (%rax),%eax
mov    %rax,%rsi
add    $0xf,%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rcx
sub    %rsi,%rcx
mov    %rcx,-0x80(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x50(%rbp)
mov    -0x18(%rbp),%rdi
mov    0x2cb3(%rip),%rax
mov    (%rax),%esi
call   1080 <fgetl@plt>
cmp    $0xffffffff,%eax
jne    134c <main+0x1bc>
mov    -0x88(%rbp),%rdi
mov    0x2c95(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1050 <memset@plt>
movl   $0x1,-0x24(%rbp)
movl   $0x0,-0x58(%rbp)
mov    -0x18(%rbp),%rdi
call   1070 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1378 <main+0x1e8>
jmp    1430 <main+0x2a0>
mov    -0x80(%rbp),%rdx
mov    -0x18(%rbp),%rdi
mov    0x2c51(%rip),%rax
mov    (%rax),%esi
call   1080 <fgetl@plt>
cmp    $0xffffffff,%eax
jne    13ae <main+0x21e>
mov    -0x88(%rbp),%rdi
mov    0x2c33(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1050 <memset@plt>
mov    -0x80(%rbp),%rsi
mov    -0x88(%rbp),%rdi
call   1090 <cmp_cache@plt>
mov    %eax,-0x54(%rbp)
cmpl   $0x0,-0x54(%rbp)
jne    13e9 <main+0x259>
mov    -0x80(%rbp),%rsi
mov    -0x88(%rbp),%rdi
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
call   1030 <strcpy@plt>
jmp    142b <main+0x29b>
cmpl   $0x1,-0x24(%rbp)
jle    1412 <main+0x282>
mov    -0x20(%rbp),%rdi
mov    -0x58(%rbp),%edx
mov    -0x24(%rbp),%ecx
lea    0xc27(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x1,-0x24(%rbp)
mov    -0x80(%rbp),%rsi
mov    -0x88(%rbp),%rdi
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
call   1030 <strcpy@plt>
jmp    135a <main+0x1ca>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
cmp    $0x3,%edi
jne    126c <main+0xdc>
mov    0x8(%rsi),%rbx
mov    0x10(%rsi),%r14
lea    0xe64(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <fopen@plt>
test   %rax,%rax
je     1289 <main+0xf9>
mov    %rax,%r15
lea    0xe54(%rip),%rsi
mov    %r14,%rdi
call   10a0 <fopen@plt>
mov    %rax,-0x30(%rbp)
test   %rax,%rax
je     12ba <main+0x12a>
mov    %rsp,-0x38(%rbp)
mov    0x2de4(%rip),%rcx
mov    (%rcx),%eax
mov    %rsp,%r12
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r12
mov    %r12,%rsp
mov    (%rcx),%esi
mov    %rsp,%rbx
mov    %rsi,%rax
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
mov    %r15,%rdi
mov    %r12,%rdx
call   1080 <fgetl@plt>
cmp    $0xffffffff,%eax
jne    1240 <main+0xb0>
mov    0x2da4(%rip),%rax
mov    (%rax),%edx
mov    %r12,%rdi
xor    %esi,%esi
call   1050 <memset@plt>
mov    %r15,%rdi
call   1070 <feof@plt>
test   %eax,%eax
je     1305 <main+0x175>
mov    %r15,%rdi
call   1040 <fclose@plt>
mov    -0x30(%rbp),%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
mov    -0x38(%rbp),%rsp
jmp    12f6 <main+0x166>
mov    0x2d6d(%rip),%rax
movslq (%rax),%rdi
mov    (%rsi),%rdx
lea    0xd80(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
jmp    12f1 <main+0x161>
mov    0x2d50(%rip),%rax
movslq (%rax),%r14
mov    0x2d36(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
lea    0xd78(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1060 <fprintf@plt>
jmp    12f1 <main+0x161>
mov    0x2d1f(%rip),%rax
movslq (%rax),%rbx
mov    0x2d05(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
lea    0xd47(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
call   1040 <fclose@plt>
mov    $0xffffffff,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x1,%r14d
xor    %r13d,%r13d
jmp    132f <main+0x19f>
add    $0x1,%r13d
mov    %r12,%rdi
mov    %rbx,%rsi
call   1030 <strcpy@plt>
mov    %r15,%rdi
call   1070 <feof@plt>
test   %eax,%eax
jne    1250 <main+0xc0>
mov    0x2ca2(%rip),%rax
mov    (%rax),%esi
mov    %r15,%rdi
mov    %rbx,%rdx
call   1080 <fgetl@plt>
cmp    $0xffffffff,%eax
jne    135b <main+0x1cb>
mov    0x2c89(%rip),%rax
mov    (%rax),%edx
mov    %r12,%rdi
xor    %esi,%esi
call   1050 <memset@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1090 <cmp_cache@plt>
test   %eax,%eax
je     1390 <main+0x200>
cmp    $0x2,%r14d
jl     1310 <main+0x180>
mov    -0x30(%rbp),%rdi
lea    0xcb0(%rip),%rsi
mov    %r13d,%edx
mov    %r14d,%ecx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x1,%r14d
jmp    1310 <main+0x180>
add    $0x1,%r14d
jmp    1314 <main+0x184>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [29 x i8] c"usage: %s listfile metafile\0A\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [8 x i8] c"%s: %s\0A\00"
@errno = global i32 0
@.str.3 = [3 x i8] c"wb\00"
@BUFSIZ = global i32 0
@.str.4 = [7 x i8] c"%d %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i64
%13 = alloca i64
%14 = alloca i32
%15 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%16 = load i32, i32* %4
%17 = icmp ne i32 %16, 3
br i1 %17, label %18, label %26
18: ; preds = %2
%19 = load i32, i32* @stderr
%20 = sext i32 %19 to i64
%21 = inttoptr i64 %20 to i32*
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 0
%24 = load i8*, i8** %23
%25 = call i32 (i32*, i8*, ...) @fprintf(i32* %21, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* %24)
store i32 -1, i32* %3
br label %114
26: ; preds = %2
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 1
%29 = load i8*, i8** %28
store i8* %29, i8** %9
%30 = load i8**, i8*** %5
%31 = getelementptr inbounds i8*, i8** %30, i64 2
%32 = load i8*, i8** %31
store i8* %32, i8** %10
%33 = load i8*, i8** %9
%34 = call i32* @fopen(i8* %33, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %34, i32** %6
%35 = icmp eq i32* %34, null
br i1 %35, label %36, label %44
36: ; preds = %26
%37 = load i32, i32* @stderr
%38 = sext i32 %37 to i64
%39 = inttoptr i64 %38 to i32*
%40 = load i8*, i8** %9
%41 = load i32, i32* @errno
%42 = call i8* @strerror(i32 %41)
%43 = call i32 (i32*, i8*, ...) @fprintf(i32* %39, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* %40, i8* %42)
store i32 -1, i32* %3
br label %114
44: ; preds = %26
%45 = load i8*, i8** %10
%46 = call i32* @fopen(i8* %45, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
store i32* %46, i32** %7
%47 = icmp eq i32* %46, null
br i1 %47, label %48, label %58
48: ; preds = %44
%49 = load i32, i32* @stderr
%50 = sext i32 %49 to i64
%51 = inttoptr i64 %50 to i32*
%52 = load i8*, i8** %10
%53 = load i32, i32* @errno
%54 = call i8* @strerror(i32 %53)
%55 = call i32 (i32*, i8*, ...) @fprintf(i32* %51, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* %52, i8* %54)
%56 = load i32*, i32** %6
%57 = call i32 @fclose(i32* %56)
store i32 -1, i32* %3
br label %114
58: ; preds = %44
%59 = load i32, i32* @BUFSIZ
%60 = zext i32 %59 to i64
%61 = call i8* @llvm.stacksave()
store i8* %61, i8** %11
%62 = alloca i8, i64 %60
store i64 %60, i64* %12
%63 = load i32, i32* @BUFSIZ
%64 = zext i32 %63 to i64
%65 = alloca i8, i64 %64
store i64 %64, i64* %13
%66 = load i32*, i32** %6
%67 = load i32, i32* @BUFSIZ
%68 = call i32 @fgetl(i32* %66, i32 %67, i8* %62)
%69 = icmp eq i32 %68, -1
br i1 %69, label %70, label %73
70: ; preds = %58
%71 = load i32, i32* @BUFSIZ
%72 = call i32 @memset(i8* %62, i32 0, i32 %71)
br label %73
73: ; preds = %70, %58
store i32 1, i32* %8
store i32 0, i32* %15
br label %74
74: ; preds = %107, %73
%75 = load i32*, i32** %6
%76 = call i32 @feof(i32* %75)
%77 = icmp ne i32 %76, 0
%78 = xor i1 %77, true
br i1 %78, label %79, label %108
79: ; preds = %74
%80 = load i32*, i32** %6
%81 = load i32, i32* @BUFSIZ
%82 = call i32 @fgetl(i32* %80, i32 %81, i8* %65)
%83 = icmp eq i32 %82, -1
br i1 %83, label %84, label %87
84: ; preds = %79
%85 = load i32, i32* @BUFSIZ
%86 = call i32 @memset(i8* %62, i32 0, i32 %85)
br label %87
87: ; preds = %84, %79
%88 = call i32 @cmp_cache(i8* %62, i8* %65)
store i32 %88, i32* %14
%89 = load i32, i32* %14
%90 = icmp eq i32 %89, 0
br i1 %90, label %91, label %95
91: ; preds = %87
%92 = load i32, i32* %8
%93 = add nsw i32 %92, 1
store i32 %93, i32* %8
%94 = call i32 @strcpy(i8* %62, i8* %65)
br label %107
95: ; preds = %87
%96 = load i32, i32* %8
%97 = icmp sgt i32 %96, 1
br i1 %97, label %98, label %103
98: ; preds = %95
%99 = load i32*, i32** %7
%100 = load i32, i32* %15
%101 = load i32, i32* %8
%102 = call i32 (i32*, i8*, ...) @fprintf(i32* %99, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %100, i32 %101)
store i32 1, i32* %8
br label %103
103: ; preds = %98, %95
%104 = load i32, i32* %15
%105 = add nsw i32 %104, 1
store i32 %105, i32* %15
%106 = call i32 @strcpy(i8* %62, i8* %65)
br label %107
107: ; preds = %103, %91
br label %74
108: ; preds = %74
%109 = load i32*, i32** %6
%110 = call i32 @fclose(i32* %109)
%111 = load i32*, i32** %7
%112 = call i32 @fclose(i32* %111)
store i32 0, i32* %3
%113 = load i8*, i8** %11
br label %114
114: ; preds = %108, %48, %36, %18
%115 = load i32, i32* %3
ret i32 %115
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [29 x i8] c"usage: %s listfile metafile\0A\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [8 x i8] c"%s: %s\0A\00"
@errno = global i32 0
@.str.3 = [3 x i8] c"wb\00"
@BUFSIZ = global i32 0
@.str.4 = [7 x i8] c"%d %d\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 3
br i1 %3, label %10, label %4
4: ; preds = %2
%5 = load i32, i32* @stderr
%6 = sext i32 %5 to i64
%7 = inttoptr i64 %6 to i32*
%8 = load i8*, i8** %1
%9 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %7, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* %8)
br label %81
10: ; preds = %2
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = load i8*, i8** %11
%13 = getelementptr inbounds i8*, i8** %1, i64 2
%14 = load i8*, i8** %13
%15 = tail call i32* @fopen(i8* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%16 = icmp eq i32* %15, null
br i1 %16, label %17, label %24
17: ; preds = %10
%18 = load i32, i32* @stderr
%19 = sext i32 %18 to i64
%20 = inttoptr i64 %19 to i32*
%21 = load i32, i32* @errno
%22 = tail call i8* @strerror(i32 %21)
%23 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %20, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* %12, i8* %22)
br label %81
24: ; preds = %10
%25 = tail call i32* @fopen(i8* %14, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%26 = icmp eq i32* %25, null
br i1 %26, label %27, label %35
27: ; preds = %24
%28 = load i32, i32* @stderr
%29 = sext i32 %28 to i64
%30 = inttoptr i64 %29 to i32*
%31 = load i32, i32* @errno
%32 = tail call i8* @strerror(i32 %31)
%33 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %30, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* %14, i8* %32)
%34 = tail call i32 @fclose(i32* %15)
br label %81
35: ; preds = %24
%36 = load i32, i32* @BUFSIZ
%37 = zext i32 %36 to i64
%38 = tail call i8* @llvm.stacksave()
%39 = alloca i8, i64 %37
%40 = load i32, i32* @BUFSIZ
%41 = zext i32 %40 to i64
%42 = alloca i8, i64 %41
%43 = call i32 @fgetl(i32* %15, i32 %40, i8* %39)
%44 = icmp eq i32 %43, -1
br i1 %44, label %45, label %48
45: ; preds = %35
%46 = load i32, i32* @BUFSIZ
%47 = call i32 @memset(i8* %39, i32 0, i32 %46)
br label %48
48: ; preds = %45, %35
%49 = call i32 @feof(i32* %15)
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %78
51: ; preds = %48, %72
%52 = phi i32 [ %74, %72 ], [ 0, %48 ]
%53 = phi i32 [ %73, %72 ], [ 1, %48 ]
%54 = load i32, i32* @BUFSIZ
%55 = call i32 @fgetl(i32* %15, i32 %54, i8* %42)
%56 = icmp eq i32 %55, -1
br i1 %56, label %57, label %60
57: ; preds = %51
%58 = load i32, i32* @BUFSIZ
%59 = call i32 @memset(i8* %39, i32 0, i32 %58)
br label %60
60: ; preds = %57, %51
%61 = call i32 @cmp_cache(i8* %39, i8* %42)
%62 = icmp eq i32 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %60
%64 = add nsw i32 %53, 1
br label %72
65: ; preds = %60
%66 = icmp sgt i32 %53, 1
br i1 %66, label %67, label %69
67: ; preds = %65
%68 = call i32 (i32*, i8*, ...) @fprintf(i32* %25, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %52, i32 %53)
br label %69
69: ; preds = %67, %65
%70 = phi i32 [ 1, %67 ], [ %53, %65 ]
%71 = add nsw i32 %52, 1
br label %72
72: ; preds = %69, %63
%73 = phi i32 [ %64, %63 ], [ %70, %69 ]
%74 = phi i32 [ %52, %63 ], [ %71, %69 ]
%75 = call i32 @strcpy(i8* %39, i8* %42)
%76 = call i32 @feof(i32* %15)
%77 = icmp eq i32 %76, 0
br i1 %77, label %51, label %78
78: ; preds = %72, %48
%79 = call i32 @fclose(i32* %15)
%80 = call i32 @fclose(i32* %25)
br label %81
81: ; preds = %17, %27, %78, %4
%82 = phi i32 [ -1, %4 ], [ -1, %17 ], [ -1, %27 ], [ 0, %78 ]
ret i32 %82
}