#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 EXIT_SUCCESS;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ printf(char *, ...);
char *safegets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ stderr;
scalar_t__ strcmp(char *, char *);
int main(int argc, char *argv[]) {
  FILE *leftFile, *rightFile;
  char buff1[1000], buff2[1000];
  char *ptr1, *ptr2;
  unsigned long lineNum = 0;
  if (argc < 3) {
    fprintf(stderr, "Usage : 7_6 <path to file> <path to file>\n");
    return 0;
  }
  if (!(leftFile = fopen(argv[1], "r"))) {
    fprintf(stderr, "Couldn't open %s for reading\n", argv[1]);
    return 0;
  }
  if (!(rightFile = fopen(argv[2], "r"))) {
    fprintf(stderr, "Couldn't open %s for reading\n", argv[2]);
    fclose(leftFile);
    return 0;
  }
  ptr1 = safegets(buff1, 1000, leftFile);
  ptr2 = safegets(buff2, 1000, rightFile);
  ++lineNum;
  while (ptr1 != NULL && ptr2 != NULL) {
    if (strcmp(buff1, buff2) != 0) {
      printf("Difference:\n");
      printf("%lu\t\"%s\" != \"%s\"\n", lineNum, buff1, buff2);
      goto CleanUp;
    }
    ptr1 = safegets(buff1, 1000, leftFile);
    ptr2 = safegets(buff2, 1000, rightFile);
    ++lineNum;
  }
  if (ptr1 != NULL && ptr2 == NULL) {
    printf("Difference:\n");
    printf("%lu\t\"%s\" != \"EOF\"\n", lineNum, buff1);
  } else if (ptr1 == NULL && ptr2 != NULL) {
    printf("Difference:\n");
    printf("%lu\t\"EOF\" != \"%s\"\n", lineNum, buff2);
  } else {
    printf("No differences\n");
  }
CleanUp:
  fclose(leftFile);
  fclose(rightFile);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x820,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x818(%rbp)
cmpl   $0x3,-0x8(%rbp)
jge    11b1 <main+0x51>
mov    0x2e4b(%rip),%rax
mov    (%rax),%edi
lea    0xe62(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1446 <main+0x2e6>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe6b(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    11fe <main+0x9e>
mov    0x2e06(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xe42(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1446 <main+0x2e6>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xe1e(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jne    1254 <main+0xf4>
mov    0x2db9(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdx
lea    0xdf5(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
movl   $0x0,-0x4(%rbp)
jmp    1446 <main+0x2e6>
lea    -0x410(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    $0x3e8,%esi
call   1080 <safegets@plt>
mov    %rax,-0x808(%rbp)
lea    -0x800(%rbp),%rdi
mov    -0x20(%rbp),%rdx
mov    $0x3e8,%esi
call   1080 <safegets@plt>
mov    %rax,-0x810(%rbp)
mov    -0x818(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x818(%rbp)
xor    %eax,%eax
cmpq   $0x0,-0x808(%rbp)
mov    %al,-0x819(%rbp)
je     12c5 <main+0x165>
cmpq   $0x0,-0x810(%rbp)
setne  %al
mov    %al,-0x819(%rbp)
mov    -0x819(%rbp),%al
test   $0x1,%al
jne    12d8 <main+0x178>
jmp    137a <main+0x21a>
lea    -0x410(%rbp),%rdi
lea    -0x800(%rbp),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     132b <main+0x1cb>
lea    0xd4f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x818(%rbp),%rsi
lea    -0x410(%rbp),%rdx
lea    -0x800(%rbp),%rcx
lea    0xd39(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1428 <main+0x2c8>
lea    -0x410(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    $0x3e8,%esi
call   1080 <safegets@plt>
mov    %rax,-0x808(%rbp)
lea    -0x800(%rbp),%rdi
mov    -0x20(%rbp),%rdx
mov    $0x3e8,%esi
call   1080 <safegets@plt>
mov    %rax,-0x810(%rbp)
mov    -0x818(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x818(%rbp)
jmp    129e <main+0x13e>
cmpq   $0x0,-0x808(%rbp)
je     13c5 <main+0x265>
cmpq   $0x0,-0x810(%rbp)
jne    13c5 <main+0x265>
lea    0xcae(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x818(%rbp),%rsi
lea    -0x410(%rbp),%rdx
lea    0xcb1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1423 <main+0x2c3>
cmpq   $0x0,-0x808(%rbp)
jne    1410 <main+0x2b0>
cmpq   $0x0,-0x810(%rbp)
je     1410 <main+0x2b0>
lea    0xc63(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x818(%rbp),%rsi
lea    -0x800(%rbp),%rdx
lea    0xc79(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    141e <main+0x2be>
lea    0xc79(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1423 <main+0x2c3>
jmp    1428 <main+0x2c8>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x20(%rbp),%rdi
call   1030 <fclose@plt>
mov    0x2b97(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x820,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x7d8,%rsp
cmp    $0x2,%edi
jg     11a4 <main+0x34>
mov    0x2e53(%rip),%rax
mov    (%rax),%edi
lea    0xe6a(%rip),%rsi
xor    %ebx,%ebx
xor    %eax,%eax
call   1070 <fprintf@plt>
jmp    137a <main+0x20a>
mov    %rsi,%rbx
mov    0x8(%rsi),%rdi
lea    0xe79(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     12b4 <main+0x144>
mov    %rax,%r15
mov    0x10(%rbx),%rdi
lea    0xe5d(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     12d6 <main+0x166>
mov    %rax,%r14
lea    0x3f0(%rsp),%rdi
mov    $0x3e8,%esi
mov    %r15,%rdx
call   1090 <safegets@plt>
mov    %rax,%rbx
mov    %rsp,%rdi
mov    $0x3e8,%esi
mov    %r14,%rdx
call   1090 <safegets@plt>
test   %rax,%rax
setne  %cl
mov    $0x1,%r12d
test   %rbx,%rbx
setne  %dl
je     128e <main+0x11e>
test   %rax,%rax
je     128e <main+0x11e>
mov    $0x1,%r12d
lea    0x3f0(%rsp),%r13
mov    %rsp,%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r13,%rdi
mov    %rbp,%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    132b <main+0x1bb>
mov    %r13,%rdi
mov    $0x3e8,%esi
mov    %r15,%rdx
call   1090 <safegets@plt>
mov    %rax,%rbx
mov    %rbp,%rdi
mov    $0x3e8,%esi
mov    %r14,%rdx
call   1090 <safegets@plt>
add    $0x1,%r12
test   %rax,%rax
setne  %cl
test   %rbx,%rbx
setne  %dl
je     128e <main+0x11e>
test   %rax,%rax
jne    1240 <main+0xd0>
test   %dl,%dl
je     12fd <main+0x18d>
test   %rax,%rax
jne    12fd <main+0x18d>
lea    0xdf4(%rip),%rdi
call   1030 <puts@plt>
lea    0xdb3(%rip),%rdi
lea    0x3f0(%rsp),%rdx
jmp    131f <main+0x1af>
mov    0x2d25(%rip),%rax
mov    (%rax),%edi
mov    0x8(%rbx),%rdx
lea    0xd65(%rip),%rsi
xor    %ebx,%ebx
xor    %eax,%eax
call   1070 <fprintf@plt>
jmp    137a <main+0x20a>
mov    0x2d03(%rip),%rax
mov    (%rax),%edi
mov    0x10(%rbx),%rdx
lea    0xd43(%rip),%rsi
xor    %ebx,%ebx
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    %r15,%rdi
call   1040 <fclose@plt>
jmp    137a <main+0x20a>
test   %rbx,%rbx
sete   %al
and    %cl,%al
cmp    $0x1,%al
jne    1355 <main+0x1e5>
lea    0xd82(%rip),%rdi
call   1030 <puts@plt>
lea    0xd54(%rip),%rdi
mov    %rsp,%rdx
mov    %r12,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1361 <main+0x1f1>
lea    0xd60(%rip),%rdi
call   1030 <puts@plt>
lea    0xd0d(%rip),%rdi
lea    0x3f0(%rsp),%rdx
mov    %rsp,%rcx
mov    %r12,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1361 <main+0x1f1>
lea    0xd27(%rip),%rdi
call   1030 <puts@plt>
mov    %r15,%rdi
call   1040 <fclose@plt>
mov    %r14,%rdi
call   1040 <fclose@plt>
mov    0x2c60(%rip),%rax
mov    (%rax),%ebx
mov    %ebx,%eax
add    $0x7d8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [43 x i8] c"Usage : 7_6 <path to file> <path to file>\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [30 x i8] c"Couldn't open %s for reading\0A\00"
@.str.3 = [13 x i8] c"Difference:\0A\00"
@.str.4 = [18 x i8] c"%lu\09\22%s\22 != \22%s\22\0A\00"
@.str.5 = [19 x i8] c"%lu\09\22%s\22 != \22EOF\22\0A\00"
@.str.6 = [19 x i8] c"%lu\09\22EOF\22 != \22%s\22\0A\00"
@.str.7 = [16 x i8] c"No differences\0A\00"
@EXIT_SUCCESS = 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 [1000 x i8]
%9 = alloca [1000 x i8]
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i64 0, i64* %12
%13 = load i32, i32* %4
%14 = icmp slt i32 %13, 3
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = load i32, i32* @stderr
%17 = call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %3
br label %113
18: ; preds = %2
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 1
%21 = load i8*, i8** %20
%22 = call i32* @fopen(i8* %21, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %22, i32** %6
%23 = icmp ne i32* %22, null
br i1 %23, label %30, label %24
24: ; preds = %18
%25 = load i32, i32* @stderr
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 1
%28 = load i8*, i8** %27
%29 = call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* %28)
store i32 0, i32* %3
br label %113
30: ; preds = %18
%31 = load i8**, i8*** %5
%32 = getelementptr inbounds i8*, i8** %31, i64 2
%33 = load i8*, i8** %32
%34 = call i32* @fopen(i8* %33, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %34, i32** %7
%35 = icmp ne i32* %34, null
br i1 %35, label %44, label %36
36: ; preds = %30
%37 = load i32, i32* @stderr
%38 = load i8**, i8*** %5
%39 = getelementptr inbounds i8*, i8** %38, i64 2
%40 = load i8*, i8** %39
%41 = call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* %40)
%42 = load i32*, i32** %6
%43 = call i32 @fclose(i32* %42)
store i32 0, i32* %3
br label %113
44: ; preds = %30
%45 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 0
%46 = load i32*, i32** %6
%47 = call i8* @safegets(i8* %45, i32 1000, i32* %46)
store i8* %47, i8** %10
%48 = getelementptr inbounds [1000 x i8], [1000 x i8]* %9, i64 0, i64 0
%49 = load i32*, i32** %7
%50 = call i8* @safegets(i8* %48, i32 1000, i32* %49)
store i8* %50, i8** %11
%51 = load i64, i64* %12
%52 = add i64 %51, 1
store i64 %52, i64* %12
br label %53
53: ; preds = %72, %44
%54 = load i8*, i8** %10
%55 = icmp ne i8* %54, null
br i1 %55, label %56, label %59
56: ; preds = %53
%57 = load i8*, i8** %11
%58 = icmp ne i8* %57, null
br label %59
59: ; preds = %56, %53
%60 = phi i1 [ false, %53 ], [ %58, %56 ]
br i1 %60, label %61, label %81
61: ; preds = %59
%62 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 0
%63 = getelementptr inbounds [1000 x i8], [1000 x i8]* %9, i64 0, i64 0
%64 = call i64 @strcmp(i8* %62, i8* %63)
%65 = icmp ne i64 %64, 0
br i1 %65, label %66, label %72
66: ; preds = %61
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%68 = load i64, i64* %12
%69 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 0
%70 = getelementptr inbounds [1000 x i8], [1000 x i8]* %9, i64 0, i64 0
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i64 %68, i8* %69, i8* %70)
br label %107
72: ; preds = %61
%73 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 0
%74 = load i32*, i32** %6
%75 = call i8* @safegets(i8* %73, i32 1000, i32* %74)
store i8* %75, i8** %10
%76 = getelementptr inbounds [1000 x i8], [1000 x i8]* %9, i64 0, i64 0
%77 = load i32*, i32** %7
%78 = call i8* @safegets(i8* %76, i32 1000, i32* %77)
store i8* %78, i8** %11
%79 = load i64, i64* %12
%80 = add i64 %79, 1
store i64 %80, i64* %12
br label %53
81: ; preds = %59
%82 = load i8*, i8** %10
%83 = icmp ne i8* %82, null
br i1 %83, label %84, label %92
84: ; preds = %81
%85 = load i8*, i8** %11
%86 = icmp eq i8* %85, null
br i1 %86, label %87, label %92
87: ; preds = %84
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%89 = load i64, i64* %12
%90 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 0
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i64 %89, i8* %90)
br label %106
92: ; preds = %84, %81
%93 = load i8*, i8** %10
%94 = icmp eq i8* %93, null
br i1 %94, label %95, label %103
95: ; preds = %92
%96 = load i8*, i8** %11
%97 = icmp ne i8* %96, null
br i1 %97, label %98, label %103
98: ; preds = %95
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%100 = load i64, i64* %12
%101 = getelementptr inbounds [1000 x i8], [1000 x i8]* %9, i64 0, i64 0
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i64 %100, i8* %101)
br label %105
103: ; preds = %95, %92
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
br label %105
105: ; preds = %103, %98
br label %106
106: ; preds = %105, %87
br label %107
107: ; preds = %106, %66
%108 = load i32*, i32** %6
%109 = call i32 @fclose(i32* %108)
%110 = load i32*, i32** %7
%111 = call i32 @fclose(i32* %110)
%112 = load i32, i32* @EXIT_SUCCESS
store i32 %112, i32* %3
br label %113
113: ; preds = %107, %36, %24, %15
%114 = load i32, i32* %3
ret i32 %114
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [43 x i8] c"Usage : 7_6 <path to file> <path to file>\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [30 x i8] c"Couldn't open %s for reading\0A\00"
@.str.4 = [18 x i8] c"%lu\09\22%s\22 != \22%s\22\0A\00"
@.str.5 = [19 x i8] c"%lu\09\22%s\22 != \22EOF\22\0A\00"
@.str.6 = [19 x i8] c"%lu\09\22EOF\22 != \22%s\22\0A\00"
@EXIT_SUCCESS = global i32 0
@str = [15 x i8] c"No differences\00"
@str.10 = [12 x i8] c"Difference:\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [1000 x i8]
%4 = alloca [1000 x i8]
%5 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%6 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%7 = icmp slt i32 %0, 3
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load i32, i32* @stderr
%10 = tail call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
br label %73
11: ; preds = %2
%12 = getelementptr inbounds i8*, i8** %1, i64 1
%13 = load i8*, i8** %12
%14 = tail call i32* @fopen(i8* %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%15 = icmp eq i32* %14, null
br i1 %15, label %16, label %20
16: ; preds = %11
%17 = load i32, i32* @stderr
%18 = load i8*, i8** %12
%19 = tail call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* %18)
br label %73
20: ; preds = %11
%21 = getelementptr inbounds i8*, i8** %1, i64 2
%22 = load i8*, i8** %21
%23 = tail call i32* @fopen(i8* %22, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%24 = icmp eq i32* %23, null
br i1 %24, label %25, label %30
25: ; preds = %20
%26 = load i32, i32* @stderr
%27 = load i8*, i8** %21
%28 = tail call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* %27)
%29 = tail call i32 @fclose(i32* %14)
br label %73
30: ; preds = %20
%31 = call i8* @safegets(i8* %5, i32 1000, i32* %14)
%32 = call i8* @safegets(i8* %6, i32 1000, i32* %23)
%33 = icmp ne i8* %31, null
%34 = icmp ne i8* %32, null
%35 = select i1 %33, i1 %34, i1 false
br i1 %35, label %36, label %50
36: ; preds = %30, %43
%37 = phi i64 [ %46, %43 ], [ 1, %30 ]
%38 = call i64 @strcmp(i8* %5, i8* %6)
%39 = icmp eq i64 %38, 0
br i1 %39, label %43, label %40
40: ; preds = %36
%41 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.10, i64 0, i64 0))
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i64 %37, i8* %5, i8* %6)
br label %69
43: ; preds = %36
%44 = call i8* @safegets(i8* %5, i32 1000, i32* %14)
%45 = call i8* @safegets(i8* %6, i32 1000, i32* %23)
%46 = add i64 %37, 1
%47 = icmp ne i8* %44, null
%48 = icmp ne i8* %45, null
%49 = select i1 %47, i1 %48, i1 false
br i1 %49, label %36, label %50
50: ; preds = %43, %30
%51 = phi i8* [ %31, %30 ], [ %44, %43 ]
%52 = phi i8* [ %32, %30 ], [ %45, %43 ]
%53 = phi i64 [ 1, %30 ], [ %46, %43 ]
%54 = phi i1 [ %33, %30 ], [ %47, %43 ]
%55 = phi i1 [ %34, %30 ], [ %48, %43 ]
%56 = icmp eq i8* %52, null
%57 = select i1 %54, i1 %56, i1 false
br i1 %57, label %58, label %61
58: ; preds = %50
%59 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.10, i64 0, i64 0))
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i64 %53, i8* %5)
br label %69
61: ; preds = %50
%62 = icmp eq i8* %51, null
%63 = select i1 %62, i1 %55, i1 false
br i1 %63, label %64, label %67
64: ; preds = %61
%65 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.10, i64 0, i64 0))
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i64 %53, i8* %6)
br label %69
67: ; preds = %61
%68 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
br label %69
69: ; preds = %58, %67, %64, %40
%70 = call i32 @fclose(i32* %14)
%71 = call i32 @fclose(i32* %23)
%72 = load i32, i32* @EXIT_SUCCESS
br label %73
73: ; preds = %69, %25, %16, %8
%74 = phi i32 [ 0, %8 ], [ %72, %69 ], [ 0, %25 ], [ 0, %16 ]
ret i32 %74
}