#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*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
scalar_t__ strcmp(char *, char *);
int main(int argc, char *argv[]) {
  char *prog = argv[0];
  if (argc < 3) {
    printf("%s: compare two files\n", prog);
    printf("Usage:\t%s file1 file2\n", prog);
    return 1;
  }
  FILE *fpf, *fps;
  char *name_f = argv[1];
  char *name_s = argv[2];
  if ((fpf = fopen(name_f, "r")) == NULL) {
    fprintf(stderr, "%s: can't open %s\n", prog, name_f);
    return 1;
  }
  if ((fps = fopen(name_s, "r")) == NULL) {
    fprintf(stderr, "%s: can't open %s\n", prog, name_s);
    return 1;
  }
  char line_f[100], line_s[100];
  int lc_f, lc_s;
  lc_f = lc_s = 0;
  int res = 0;
  int eoff = 0;
  do {
    if (fgets(line_f, 100, fpf) == NULL)
      eoff = 1;
    else
      lc_f++;
    if (fgets(line_s, 100, fps) == NULL)
      eoff = 1;
    else
      lc_s++;
    if (strcmp(line_f, line_s) != 0) {
      res = 1;
      break;
    }
  } while (!eoff);
  if (lc_f != lc_s)
    printf("The file \"%s\" is %s than \"%s\".\n", name_f,
           (lc_f > lc_s) ? "bigger" : "smaller", name_s);
  else if (res) {
    printf("first difference at line %i:\n", lc_f);
    printf("line %i in \"%s\":\n\t%s\n", lc_f, name_f, line_f);
    printf("line %i in \"%s\":\n\t%s\n", lc_f, name_s, line_s);
  } else
    printf("The files \"%s\" and \"%s\" has the same content.\n", name_f,
           name_s);
  fclose(fpf);
  fclose(fps);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
cmpl   $0x3,-0x8(%rbp)
jge    11be <main+0x5e>
mov    -0x18(%rbp),%rsi
lea    0xe67(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xe6c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1430 <main+0x2d0>
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    0xe85(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jne    121d <main+0xbd>
mov    0x2de5(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rdx
mov    -0x30(%rbp),%rcx
lea    0xe22(%rip),%rsi
call   1070 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1430 <main+0x2d0>
mov    -0x38(%rbp),%rdi
lea    0xe3e(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
jne    1264 <main+0x104>
mov    0x2d9e(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rdx
mov    -0x38(%rbp),%rcx
lea    0xddb(%rip),%rsi
call   1070 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1430 <main+0x2d0>
movl   $0x0,-0x118(%rbp)
movl   $0x0,-0x114(%rbp)
movl   $0x0,-0x11c(%rbp)
movl   $0x0,-0x120(%rbp)
lea    -0xa0(%rbp),%rdi
mov    -0x20(%rbp),%rdx
mov    $0x64,%esi
call   1050 <fgets@plt>
cmp    $0x0,%rax
jne    12ba <main+0x15a>
movl   $0x1,-0x120(%rbp)
jmp    12c9 <main+0x169>
mov    -0x114(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x114(%rbp)
lea    -0x110(%rbp),%rdi
mov    -0x28(%rbp),%rdx
mov    $0x64,%esi
call   1050 <fgets@plt>
cmp    $0x0,%rax
jne    12f7 <main+0x197>
movl   $0x1,-0x120(%rbp)
jmp    1306 <main+0x1a6>
mov    -0x118(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x118(%rbp)
lea    -0xa0(%rbp),%rdi
lea    -0x110(%rbp),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1332 <main+0x1d2>
movl   $0x1,-0x11c(%rbp)
jmp    134b <main+0x1eb>
jmp    1337 <main+0x1d7>
cmpl   $0x0,-0x120(%rbp)
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    128c <main+0x12c>
mov    -0x114(%rbp),%eax
cmp    -0x118(%rbp),%eax
je     1398 <main+0x238>
mov    -0x30(%rbp),%rsi
mov    -0x114(%rbp),%ecx
mov    -0x118(%rbp),%edi
lea    0xcf4(%rip),%rdx
lea    0xce6(%rip),%rax
cmp    %edi,%ecx
cmovg  %rax,%rdx
mov    -0x38(%rbp),%rcx
lea    0xcb5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1417 <main+0x2b7>
cmpl   $0x0,-0x11c(%rbp)
je     13fc <main+0x29c>
mov    -0x114(%rbp),%esi
lea    0xcbe(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x114(%rbp),%esi
mov    -0x30(%rbp),%rdx
lea    -0xa0(%rbp),%rcx
lea    0xcbd(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x114(%rbp),%esi
mov    -0x38(%rbp),%rdx
lea    -0x110(%rbp),%rcx
lea    0xc9e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1412 <main+0x2b2>
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
lea    0xc99(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1417 <main+0x2b7>
mov    -0x20(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x28(%rbp),%rdi
call   1030 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xf8,%rsp
mov    (%rsi),%rbp
cmp    $0x2,%edi
jg     11a5 <main+0x45>
lea    0xe80(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe86(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x1,%eax
jmp    134f <main+0x1ef>
mov    0x8(%rsi),%rbx
mov    0x10(%rsi),%r14
lea    0xeb2(%rip),%rsi
mov    %rbx,%rdi
call   1080 <fopen@plt>
mov    %rax,0x18(%rsp)
test   %rax,%rax
je     12bf <main+0x15f>
lea    0xe95(%rip),%rsi
mov    %r14,%rdi
call   1080 <fopen@plt>
mov    %rax,0x10(%rsp)
test   %rax,%rax
je     12d7 <main+0x177>
mov    %rbx,0x8(%rsp)
mov    %r14,(%rsp)
xor    %ebp,%ebp
lea    0x90(%rsp),%rbx
lea    0x20(%rsp),%r14
xor    %r13d,%r13d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rbx,%rdi
mov    $0x64,%esi
mov    0x18(%rsp),%rdx
call   1050 <fgets@plt>
mov    %rax,%r12
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
mov    %r14,%rdi
mov    $0x64,%esi
mov    0x10(%rsp),%rdx
call   1050 <fgets@plt>
mov    %rax,%r15
cmp    $0x1,%rax
sbb    $0xffffffff,%r13d
mov    %rbx,%rdi
mov    %r14,%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    1263 <main+0x103>
test   %r12,%r12
je     1263 <main+0x103>
test   %r15,%r15
jne    1210 <main+0xb0>
cmp    %r13d,%ebp
jne    12f9 <main+0x199>
test   %rax,%rax
mov    0x8(%rsp),%rbx
je     1324 <main+0x1c4>
lea    0xdef(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdfd(%rip),%r14
lea    0x90(%rsp),%rcx
mov    %r14,%rdi
mov    %ebp,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x20(%rsp),%rcx
mov    %r14,%rdi
mov    %ebp,%esi
mov    (%rsp),%rdx
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1339 <main+0x1d9>
mov    0x2d1a(%rip),%rax
mov    (%rax),%edi
lea    0xd5f(%rip),%rsi
mov    %rbp,%rdx
mov    %rbx,%rcx
jmp    12ed <main+0x18d>
mov    0x2d02(%rip),%rax
mov    (%rax),%edi
lea    0xd47(%rip),%rsi
mov    %rbp,%rdx
mov    %r14,%rcx
call   1070 <fprintf@plt>
mov    $0x1,%eax
jmp    134f <main+0x1ef>
lea    0xd61(%rip),%rax
lea    0xd61(%rip),%rdx
cmova  %rax,%rdx
lea    0xd2f(%rip),%rdi
mov    0x8(%rsp),%rsi
mov    (%rsp),%rcx
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1339 <main+0x1d9>
lea    0xd79(%rip),%rdi
mov    %rbx,%rsi
mov    (%rsp),%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rsp),%rdi
call   1030 <fclose@plt>
mov    0x10(%rsp),%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0xf8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [23 x i8] c"%s: compare two files\0A\00"
@.str.1 = [23 x i8] c"Usage:\09%s file1 file2\0A\00"
@.str.2 = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.3 = [19 x i8] c"%s: can't open %s\0A\00"
@.str.4 = [32 x i8] c"The file \22%s\22 is %s than \22%s\22.\0A\00"
@.str.5 = [7 x i8] c"bigger\00"
@.str.6 = [8 x i8] c"smaller\00"
@.str.7 = [30 x i8] c"first difference at line %i:\0A\00"
@.str.8 = [22 x i8] c"line %i in \22%s\22:\0A\09%s\0A\00"
@.str.9 = [47 x i8] c"The files \22%s\22 and \22%s\22 has the same content.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca [100 x i8]
%12 = alloca [100 x i8]
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%17 = load i8**, i8*** %5
%18 = getelementptr inbounds i8*, i8** %17, i64 0
%19 = load i8*, i8** %18
store i8* %19, i8** %6
%20 = load i32, i32* %4
%21 = icmp slt i32 %20, 3
br i1 %21, label %22, label %27
22: ; preds = %2
%23 = load i8*, i8** %6
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %23)
%25 = load i8*, i8** %6
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %25)
store i32 1, i32* %3
br label %118
27: ; preds = %2
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i64 1
%30 = load i8*, i8** %29
store i8* %30, i8** %9
%31 = load i8**, i8*** %5
%32 = getelementptr inbounds i8*, i8** %31, i64 2
%33 = load i8*, i8** %32
store i8* %33, i8** %10
%34 = load i8*, i8** %9
%35 = call i32* @fopen(i8* %34, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %35, i32** %7
%36 = icmp eq i32* %35, null
br i1 %36, label %37, label %42
37: ; preds = %27
%38 = load i32, i32* @stderr
%39 = load i8*, i8** %6
%40 = load i8*, i8** %9
%41 = call i32 @fprintf(i32 %38, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %39, i8* %40)
store i32 1, i32* %3
br label %118
42: ; preds = %27
%43 = load i8*, i8** %10
%44 = call i32* @fopen(i8* %43, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %44, i32** %8
%45 = icmp eq i32* %44, null
br i1 %45, label %46, label %51
46: ; preds = %42
%47 = load i32, i32* @stderr
%48 = load i8*, i8** %6
%49 = load i8*, i8** %10
%50 = call i32 @fprintf(i32 %47, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %48, i8* %49)
store i32 1, i32* %3
br label %118
51: ; preds = %42
store i32 0, i32* %14
store i32 0, i32* %13
store i32 0, i32* %15
store i32 0, i32* %16
br label %52
52: ; preds = %77, %51
%53 = getelementptr inbounds [100 x i8], [100 x i8]* %11, i64 0, i64 0
%54 = load i32*, i32** %7
%55 = call i32* @fgets(i8* %53, i32 100, i32* %54)
%56 = icmp eq i32* %55, null
br i1 %56, label %57, label %58
57: ; preds = %52
store i32 1, i32* %16
br label %61
58: ; preds = %52
%59 = load i32, i32* %13
%60 = add nsw i32 %59, 1
store i32 %60, i32* %13
br label %61
61: ; preds = %58, %57
%62 = getelementptr inbounds [100 x i8], [100 x i8]* %12, i64 0, i64 0
%63 = load i32*, i32** %8
%64 = call i32* @fgets(i8* %62, i32 100, i32* %63)
%65 = icmp eq i32* %64, null
br i1 %65, label %66, label %67
66: ; preds = %61
store i32 1, i32* %16
br label %70
67: ; preds = %61
%68 = load i32, i32* %14
%69 = add nsw i32 %68, 1
store i32 %69, i32* %14
br label %70
70: ; preds = %67, %66
%71 = getelementptr inbounds [100 x i8], [100 x i8]* %11, i64 0, i64 0
%72 = getelementptr inbounds [100 x i8], [100 x i8]* %12, i64 0, i64 0
%73 = call i64 @strcmp(i8* %71, i8* %72)
%74 = icmp ne i64 %73, 0
br i1 %74, label %75, label %76
75: ; preds = %70
store i32 1, i32* %15
br label %81
76: ; preds = %70
br label %77
77: ; preds = %76
%78 = load i32, i32* %16
%79 = icmp ne i32 %78, 0
%80 = xor i1 %79, true
br i1 %80, label %52, label %81
81: ; preds = %77, %75
%82 = load i32, i32* %13
%83 = load i32, i32* %14
%84 = icmp ne i32 %82, %83
br i1 %84, label %85, label %94
85: ; preds = %81
%86 = load i8*, i8** %9
%87 = load i32, i32* %13
%88 = load i32, i32* %14
%89 = icmp sgt i32 %87, %88
%90 = zext i1 %89 to i64
%91 = select i1 %89, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0)
%92 = load i8*, i8** %10
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i8* %86, i8* %91, i8* %92)
br label %113
94: ; preds = %81
%95 = load i32, i32* %15
%96 = icmp ne i32 %95, 0
br i1 %96, label %97, label %108
97: ; preds = %94
%98 = load i32, i32* %13
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i32 %98)
%100 = load i32, i32* %13
%101 = load i8*, i8** %9
%102 = getelementptr inbounds [100 x i8], [100 x i8]* %11, i64 0, i64 0
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 %100, i8* %101, i8* %102)
%104 = load i32, i32* %13
%105 = load i8*, i8** %10
%106 = getelementptr inbounds [100 x i8], [100 x i8]* %12, i64 0, i64 0
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 %104, i8* %105, i8* %106)
br label %112
108: ; preds = %94
%109 = load i8*, i8** %9
%110 = load i8*, i8** %10
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.9, i64 0, i64 0), i8* %109, i8* %110)
br label %112
112: ; preds = %108, %97
br label %113
113: ; preds = %112, %85
%114 = load i32*, i32** %7
%115 = call i32 @fclose(i32* %114)
%116 = load i32*, i32** %8
%117 = call i32 @fclose(i32* %116)
store i32 0, i32* %3
br label %118
118: ; preds = %113, %46, %37, %22
%119 = load i32, i32* %3
ret i32 %119
}

LLVM IR (-O2):
@.str = [23 x i8] c"%s: compare two files\0A\00"
@.str.1 = [23 x i8] c"Usage:\09%s file1 file2\0A\00"
@.str.2 = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.3 = [19 x i8] c"%s: can't open %s\0A\00"
@.str.4 = [32 x i8] c"The file \22%s\22 is %s than \22%s\22.\0A\00"
@.str.5 = [7 x i8] c"bigger\00"
@.str.6 = [8 x i8] c"smaller\00"
@.str.7 = [30 x i8] c"first difference at line %i:\0A\00"
@.str.8 = [22 x i8] c"line %i in \22%s\22:\0A\09%s\0A\00"
@.str.9 = [47 x i8] c"The files \22%s\22 and \22%s\22 has the same content.\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [100 x i8]
%4 = alloca [100 x i8]
%5 = load i8*, i8** %1
%6 = icmp slt i32 %0, 3
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %5)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %5)
br label %63
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 ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%16 = icmp eq i32* %15, null
br i1 %16, label %17, label %20
17: ; preds = %10
%18 = load i32, i32* @stderr
%19 = tail call i32 @fprintf(i32 %18, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %5, i8* %12)
br label %63
20: ; preds = %10
%21 = tail call i32* @fopen(i8* %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%22 = icmp eq i32* %21, null
br i1 %22, label %23, label %26
23: ; preds = %20
%24 = load i32, i32* @stderr
%25 = tail call i32 @fprintf(i32 %24, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %5, i8* %14)
br label %63
26: ; preds = %20
%27 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%28 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
br label %29
29: ; preds = %29, %26
%30 = phi i32 [ 0, %26 ], [ %36, %29 ]
%31 = phi i32 [ 0, %26 ], [ %41, %29 ]
%32 = call i32* @fgets(i8* %27, i32 100, i32* %15)
%33 = icmp eq i32* %32, null
%34 = xor i1 %33, true
%35 = zext i1 %34 to i32
%36 = add nuw nsw i32 %30, %35
%37 = call i32* @fgets(i8* %28, i32 100, i32* %21)
%38 = icmp eq i32* %37, null
%39 = xor i1 %38, true
%40 = zext i1 %39 to i32
%41 = add nuw nsw i32 %31, %40
%42 = or i1 %33, %38
%43 = call i64 @strcmp(i8* %27, i8* %28)
%44 = icmp eq i64 %43, 0
%45 = xor i1 %42, true
%46 = and i1 %44, %45
br i1 %46, label %29, label %47
47: ; preds = %29
%48 = icmp eq i32 %36, %41
br i1 %48, label %53, label %49
49: ; preds = %47
%50 = icmp ugt i32 %36, %41
%51 = select i1 %50, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0)
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i8* %12, i8* %51, i8* %14)
br label %60
53: ; preds = %47
br i1 %44, label %58, label %54
54: ; preds = %53
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i32 %36)
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 %36, i8* %12, i8* %27)
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 %36, i8* %14, i8* %28)
br label %60
58: ; preds = %53
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.9, i64 0, i64 0), i8* %12, i8* %14)
br label %60
60: ; preds = %54, %58, %49
%61 = call i32 @fclose(i32* %15)
%62 = call i32 @fclose(i32* %21)
br label %63
63: ; preds = %17, %23, %60, %7
%64 = phi i32 [ 1, %7 ], [ 1, %17 ], [ 1, %23 ], [ 0, %60 ]
ret i32 %64
}