#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);
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 *, char *, ...);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ stderr;
char *strerror(int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  FILE *fd1;
  FILE *fd2;
  if (argc != 3) {
    fprintf(stderr, "usage: %s infile removefile\n", argv[0]);
    return (-1);
  }
  char *infile = argv[1];
  char *removefile = argv[2];
  if ((fd1 = fopen(infile, "rb")) == NULL) {
    fprintf(stderr, "%s: %s\n", infile, strerror(errno));
    return (-1);
  }
  if ((fd2 = fopen(removefile, "rb")) == NULL) {
    fprintf(stderr, "%s: %s\n", removefile, strerror(errno));
    return (-1);
  }
  int len;
  char line_buf1[BUFSIZ];
  char line_buf2[BUFSIZ];
  if ((len = fgetl(fd1, BUFSIZ, line_buf1)) == -1)
    memset(line_buf1, 0, BUFSIZ);
  if (fgetl(fd2, BUFSIZ, line_buf2) == -1)
    memset(line_buf2, 0, BUFSIZ);
  int comp;
  while (!feof(fd1) && !feof(fd2)) {
    comp = cmp_cache(line_buf1, line_buf2, len);
    if (comp == 0) {
      puts(line_buf2);
      if ((len = fgetl(fd1, BUFSIZ, line_buf1)) == -1)
        memset(line_buf1, 0, BUFSIZ);
      if (fgetl(fd2, BUFSIZ, line_buf2) == -1)
        memset(line_buf2, 0, BUFSIZ);
    } else if (comp > 0) {
      if (fgetl(fd2, BUFSIZ, line_buf2) == -1)
        memset(line_buf2, 0, BUFSIZ);
    } else if (comp < 0) {
      if ((len = fgetl(fd1, BUFSIZ, line_buf1)) == -1)
        memset(line_buf1, 0, BUFSIZ);
    }
  }
  fclose(fd1);
  fclose(fd2);
  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     11dd <main+0x4d>
mov    0x2e26(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe36(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1516 <main+0x386>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x30(%rbp)
mov    -0x28(%rbp),%rdi
lea    0xe1d(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    1259 <main+0xc9>
mov    0x2dc6(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x64(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    0x2da2(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
mov    -0x64(%rbp),%edi
mov    -0x60(%rbp),%rdx
mov    %rax,%rcx
lea    0xdda(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1516 <main+0x386>
mov    -0x30(%rbp),%rdi
lea    0xdb9(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jne    12bd <main+0x12d>
mov    0x2d62(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x74(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    0x2d3e(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
mov    -0x74(%rbp),%edi
mov    -0x70(%rbp),%rdx
mov    %rax,%rcx
lea    0xd76(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1516 <main+0x386>
mov    0x2d14(%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    0x2cc3(%rip),%rax
mov    (%rax),%esi
call   1080 <fgetl@plt>
mov    %eax,-0x34(%rbp)
cmp    $0xffffffff,%eax
jne    133f <main+0x1af>
mov    -0x88(%rbp),%rdi
mov    0x2ca2(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1050 <memset@plt>
mov    -0x80(%rbp),%rdx
mov    -0x20(%rbp),%rdi
mov    0x2c8a(%rip),%rax
mov    (%rax),%esi
call   1080 <fgetl@plt>
cmp    $0xffffffff,%eax
jne    1372 <main+0x1e2>
mov    -0x80(%rbp),%rdi
mov    0x2c6f(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1050 <memset@plt>
jmp    1377 <main+0x1e7>
mov    -0x18(%rbp),%rdi
call   1070 <feof@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x89(%rbp)
jne    13aa <main+0x21a>
mov    -0x20(%rbp),%rdi
call   1070 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
mov    %al,-0x89(%rbp)
mov    -0x89(%rbp),%al
test   $0x1,%al
jne    13bd <main+0x22d>
jmp    14f6 <main+0x366>
mov    -0x80(%rbp),%rsi
mov    -0x88(%rbp),%rdi
mov    -0x34(%rbp),%edx
call   1090 <cmp_cache@plt>
mov    %eax,-0x54(%rbp)
cmpl   $0x0,-0x54(%rbp)
jne    145a <main+0x2ca>
mov    -0x80(%rbp),%rdi
call   1030 <puts@plt>
mov    -0x88(%rbp),%rdx
mov    -0x18(%rbp),%rdi
mov    0x2be0(%rip),%rax
mov    (%rax),%esi
call   1080 <fgetl@plt>
mov    %eax,-0x34(%rbp)
cmp    $0xffffffff,%eax
jne    1422 <main+0x292>
mov    -0x88(%rbp),%rdi
mov    0x2bbf(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1050 <memset@plt>
mov    -0x80(%rbp),%rdx
mov    -0x20(%rbp),%rdi
mov    0x2ba7(%rip),%rax
mov    (%rax),%esi
call   1080 <fgetl@plt>
cmp    $0xffffffff,%eax
jne    1455 <main+0x2c5>
mov    -0x80(%rbp),%rdi
mov    0x2b8c(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1050 <memset@plt>
jmp    14f1 <main+0x361>
cmpl   $0x0,-0x54(%rbp)
jle    149c <main+0x30c>
mov    -0x80(%rbp),%rdx
mov    -0x20(%rbp),%rdi
mov    0x2b65(%rip),%rax
mov    (%rax),%esi
call   1080 <fgetl@plt>
cmp    $0xffffffff,%eax
jne    1497 <main+0x307>
mov    -0x80(%rbp),%rdi
mov    0x2b4a(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1050 <memset@plt>
jmp    14ec <main+0x35c>
cmpl   $0x0,-0x54(%rbp)
jge    14e7 <main+0x357>
mov    -0x88(%rbp),%rdx
mov    -0x18(%rbp),%rdi
mov    0x2b20(%rip),%rax
mov    (%rax),%esi
call   1080 <fgetl@plt>
mov    %eax,-0x34(%rbp)
cmp    $0xffffffff,%eax
jne    14e2 <main+0x352>
mov    -0x88(%rbp),%rdi
mov    0x2aff(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1050 <memset@plt>
jmp    14e7 <main+0x357>
jmp    14ec <main+0x35c>
jmp    14f1 <main+0x361>
jmp    1377 <main+0x1e7>
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    1296 <main+0x106>
mov    0x8(%rsi),%rbx
mov    0x10(%rsi),%r12
lea    0xe64(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <fopen@plt>
test   %rax,%rax
je     12b2 <main+0x122>
mov    %rax,%r15
lea    0xe49(%rip),%rsi
mov    %r12,%rdi
call   10a0 <fopen@plt>
test   %rax,%rax
je     12d9 <main+0x149>
mov    %rax,%r14
mov    %rsp,-0x30(%rbp)
mov    0x2de5(%rip),%rcx
mov    (%rcx),%eax
mov    %rsp,%rbx
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
mov    (%rcx),%esi
mov    %rsp,%r12
mov    %rsi,%rax
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r12
mov    %r12,%rsp
mov    %r15,%rdi
mov    %rbx,%rdx
call   1080 <fgetl@plt>
mov    %eax,%r13d
cmp    $0xffffffff,%eax
jne    1242 <main+0xb2>
mov    0x2da2(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1050 <memset@plt>
mov    0x2d8f(%rip),%rax
mov    (%rax),%esi
mov    %r14,%rdi
mov    %r12,%rdx
call   1080 <fgetl@plt>
cmp    $0xffffffff,%eax
jne    126e <main+0xde>
mov    0x2d76(%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     131a <main+0x18a>
mov    %r15,%rdi
call   1040 <fclose@plt>
mov    %r14,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
mov    -0x30(%rbp),%rsp
jmp    130b <main+0x17b>
mov    0x2d43(%rip),%rax
mov    (%rax),%edi
mov    (%rsi),%rdx
lea    0xd57(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
jmp    1306 <main+0x176>
mov    0x2d27(%rip),%rax
mov    (%rax),%r14d
mov    0x2d0d(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
lea    0xd4f(%rip),%rsi
mov    %r14d,%edi
mov    %rbx,%rdx
jmp    12fc <main+0x16c>
mov    0x2d00(%rip),%rax
mov    (%rax),%ebx
mov    0x2ce7(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
lea    0xd29(%rip),%rsi
mov    %ebx,%edi
mov    %r12,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0xffffffff,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %r15,-0x38(%rbp)
jmp    1349 <main+0x1b9>
mov    $0xffffffff,%r13d
mov    %rbx,%rdi
mov    0x2ca8(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1050 <memset@plt>
mov    %r15,%rdi
call   1070 <feof@plt>
test   %eax,%eax
jne    127e <main+0xee>
mov    %r14,%rdi
call   1070 <feof@plt>
test   %eax,%eax
jne    127e <main+0xee>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13d,%edx
call   1090 <cmp_cache@plt>
test   %eax,%eax
je     1390 <main+0x200>
mov    0x2c66(%rip),%rax
mov    (%rax),%esi
jle    1400 <main+0x270>
mov    %r14,%rdi
mov    %r12,%rdx
call   1080 <fgetl@plt>
mov    %r12,%rdi
cmp    $0xffffffff,%eax
jne    1339 <main+0x1a9>
jmp    1329 <main+0x199>
nop
mov    %rbx,%r13
mov    %r15,%rbx
mov    %r14,%r15
mov    %r12,%rdi
call   1030 <puts@plt>
mov    0x2c30(%rip),%r14
mov    (%r14),%esi
mov    %rbx,%rdi
mov    %r13,%rbx
mov    %r13,%rdx
call   1080 <fgetl@plt>
mov    %eax,%r13d
cmp    $0xffffffff,%eax
jne    13ce <main+0x23e>
mov    (%r14),%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1050 <memset@plt>
mov    (%r14),%esi
mov    %r15,%r14
mov    %r15,%rdi
mov    %r12,%rdx
call   1080 <fgetl@plt>
mov    %r12,%rdi
cmp    $0xffffffff,%eax
mov    -0x38(%rbp),%r15
jne    1339 <main+0x1a9>
jmp    1329 <main+0x199>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r15,%rdi
mov    %rbx,%rdx
call   1080 <fgetl@plt>
mov    %eax,%r13d
cmp    $0xffffffff,%eax
jne    1339 <main+0x1a9>
jmp    1320 <main+0x190>

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

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