#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 */
struct timeval {
  int tv_sec;
  int tv_usec;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, long, long, ...);
int /*<<< orphan*/ readaline_and_out(int /*<<< orphan*/ *,
                                     int /*<<< orphan*/ *);
int /*<<< orphan*/ stderr;
int main(int argc, char *argv[]) {
  FILE *file1, *file2, *fout;
  int eof1 = 0, eof2 = 0;
  long line1 = 0, line2 = 0, lineout = 0;
  struct timeval before, after;
  int duration;
  int ret = 1;
  if (argc != 4) {
    fprintf(stderr, "usage: %s file1 file2 fout\n", argv[0]);
    goto leave0;
  }
  if ((file1 = fopen(argv[1], "rt")) == NULL) {
    perror(argv[1]);
    goto leave0;
  }
  if ((file2 = fopen(argv[2], "rt")) == NULL) {
    perror(argv[2]);
    goto leave1;
  }
  if ((fout = fopen(argv[3], "wt")) == NULL) {
    perror(argv[3]);
    goto leave2;
  }
  gettimeofday(&before, NULL);
  do {
    if (!eof1) {
      if (!readaline_and_out(file1, fout)) {
        line1++;
        lineout++;
      } else
        eof1 = 1;
    }
    if (!eof2) {
      if (!readaline_and_out(file2, fout)) {
        line2++;
        lineout++;
      } else
        eof2 = 1;
    }
  } while (!eof1 || !eof2);
  gettimeofday(&after, NULL);
  duration = (after.tv_sec - before.tv_sec) * 1000000 +
             (after.tv_usec - before.tv_usec);
  printf("Processing time = %d.%06d sec\n", duration / 1000000,
         duration % 1000000);
  printf("File1 = %ld, File2= %ld, Total = %ld Lines\n", line1, line2, lineout);
  ret = 0;
leave3:
  fclose(fout);
leave2:
  fclose(file2);
leave1:
  fclose(file1);
leave0:
  return ret;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
movq   $0x0,-0x40(%rbp)
movq   $0x0,-0x48(%rbp)
movl   $0x1,-0x60(%rbp)
cmpl   $0x4,-0x8(%rbp)
je     11de <main+0x6e>
mov    0x2e1c(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe2c(%rip),%rsi
call   1070 <fprintf@plt>
jmp    13ce <main+0x25e>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe2f(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    1212 <main+0xa2>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1090 <perror@plt>
jmp    13ce <main+0x25e>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xdfb(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jne    1246 <main+0xd6>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1090 <perror@plt>
jmp    13c5 <main+0x255>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
lea    0xdca(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
jne    127a <main+0x10a>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   1090 <perror@plt>
jmp    13bc <main+0x24c>
lea    -0x50(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1050 <gettimeofday@plt>
cmpl   $0x0,-0x2c(%rbp)
jne    12d0 <main+0x160>
mov    -0x18(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1060 <readaline_and_out@plt>
cmp    $0x0,%eax
jne    12c4 <main+0x154>
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    12cb <main+0x15b>
movl   $0x1,-0x2c(%rbp)
jmp    12d0 <main+0x160>
cmpl   $0x0,-0x30(%rbp)
jne    1319 <main+0x1a9>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1060 <readaline_and_out@plt>
cmp    $0x0,%eax
jne    130d <main+0x19d>
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    1314 <main+0x1a4>
movl   $0x1,-0x30(%rbp)
jmp    1319 <main+0x1a9>
jmp    131e <main+0x1ae>
mov    $0x1,%al
cmpl   $0x0,-0x2c(%rbp)
mov    %al,-0x61(%rbp)
je     1339 <main+0x1c9>
cmpl   $0x0,-0x30(%rbp)
setne  %al
xor    $0xff,%al
mov    %al,-0x61(%rbp)
mov    -0x61(%rbp),%al
test   $0x1,%al
jne    1287 <main+0x117>
lea    -0x58(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1050 <gettimeofday@plt>
mov    -0x58(%rbp),%eax
sub    -0x50(%rbp),%eax
imul   $0xf4240,%eax,%eax
mov    -0x54(%rbp),%ecx
sub    -0x4c(%rbp),%ecx
add    %ecx,%eax
mov    %eax,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
mov    $0xf4240,%ecx
cltd
idiv   %ecx
movslq %eax,%rsi
mov    -0x5c(%rbp),%eax
mov    $0xf4240,%ecx
cltd
idiv   %ecx
movslq %edx,%rdx
lea    0xc97(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x38(%rbp),%rsi
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rcx
lea    0xc9c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x60(%rbp)
mov    -0x28(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x20(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x60(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rsi,%rbp
cmp    $0x4,%edi
jne    1283 <main+0x113>
mov    0x8(%rbp),%rdi
lea    0xe87(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,0x20(%rsp)
test   %rax,%rax
je     134a <main+0x1da>
mov    0x10(%rbp),%rdi
lea    0xe69(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,0x18(%rsp)
test   %rax,%rax
je     135b <main+0x1eb>
mov    0x18(%rbp),%rdi
lea    0xe4e(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     136c <main+0x1fc>
mov    %rax,%rbx
xor    %r13d,%r13d
lea    0x30(%rsp),%rdi
xor    %esi,%esi
call   1050 <gettimeofday@plt>
xor    %eax,%eax
mov    %rax,0x10(%rsp)
xor    %eax,%eax
mov    %rax,0x8(%rsp)
xor    %ebp,%ebp
xor    %r14d,%r14d
jmp    121e <main+0xae>
cs nopw 0x0(%rax,%rax,1)
xor    %ecx,%ecx
or     %cl,%r15b
mov    %r12d,%r13d
je     12a7 <main+0x137>
mov    $0x1,%r12d
test   %r14d,%r14d
jne    123d <main+0xcd>
mov    0x20(%rsp),%rdi
mov    %rbx,%rsi
call   1060 <readaline_and_out@plt>
xor    %r14d,%r14d
test   %eax,%eax
je     126f <main+0xff>
xor    %r15d,%r15d
mov    $0x1,%r14d
test   %r13d,%r13d
jne    1210 <main+0xa0>
mov    0x18(%rsp),%rdi
mov    %rbx,%rsi
call   1060 <readaline_and_out@plt>
xor    %ecx,%ecx
test   %eax,%eax
jne    1212 <main+0xa2>
addq   $0x1,0x8(%rsp)
add    $0x1,%rbp
mov    $0x1,%cl
xor    %r12d,%r12d
jmp    1212 <main+0xa2>
addq   $0x1,0x10(%rsp)
add    $0x1,%rbp
mov    $0x1,%r15b
test   %r13d,%r13d
jne    1210 <main+0xa0>
jmp    124b <main+0xdb>
mov    0x2d56(%rip),%rax
mov    (%rax),%edi
mov    0x0(%rbp),%rdx
lea    0xd69(%rip),%rsi
call   1070 <fprintf@plt>
mov    $0x1,%r14d
jmp    1338 <main+0x1c8>
xor    %r14d,%r14d
lea    0x28(%rsp),%rdi
xor    %esi,%esi
call   1050 <gettimeofday@plt>
mov    0x28(%rsp),%eax
mov    0x2c(%rsp),%ecx
sub    0x30(%rsp),%eax
imul   $0xf4240,%eax,%eax
sub    0x34(%rsp),%ecx
add    %eax,%ecx
movslq %ecx,%rax
imul   $0x431bde83,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x32,%rcx
add    %edx,%ecx
movslq %ecx,%rsi
imul   $0xf4240,%esi,%ecx
sub    %ecx,%eax
movslq %eax,%rdx
lea    0xd28(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd39(%rip),%rdi
mov    0x10(%rsp),%rsi
mov    0x8(%rsp),%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <fclose@plt>
mov    0x18(%rsp),%rdi
call   1030 <fclose@plt>
mov    0x20(%rsp),%rdi
call   1030 <fclose@plt>
mov    %r14d,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x8(%rbp),%rdi
call   1090 <perror@plt>
mov    $0x1,%r14d
jmp    1338 <main+0x1c8>
mov    0x10(%rbp),%rdi
call   1090 <perror@plt>
mov    $0x1,%r14d
jmp    132e <main+0x1be>
mov    0x18(%rbp),%rdi
call   1090 <perror@plt>
mov    $0x1,%r14d
jmp    1324 <main+0x1b4>

LLVM IR (-O0):
%struct.timeval = type { i32, i32 }
@stderr = global i32 0
@.str = [28 x i8] c"usage: %s file1 file2 fout\0A\00"
@.str.1 = [3 x i8] c"rt\00"
@.str.2 = [3 x i8] c"wt\00"
@.str.3 = [31 x i8] c"Processing time = %d.%06d sec\0A\00"
@.str.4 = [44 x i8] c"File1 = %ld, File2= %ld, Total = %ld Lines\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 i32
%10 = alloca i32
%11 = alloca i64
%12 = alloca i64
%13 = alloca i64
%14 = alloca %struct.timeval
%15 = alloca %struct.timeval
%16 = alloca i32
%17 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %9
store i32 0, i32* %10
store i64 0, i64* %11
store i64 0, i64* %12
store i64 0, i64* %13
store i32 1, i32* %17
%18 = load i32, i32* %4
%19 = icmp ne i32 %18, 4
br i1 %19, label %20, label %26
20: ; preds = %2
%21 = load i32, i32* @stderr
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 0
%24 = load i8*, i8** %23
%25 = call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* %24)
br label %135
26: ; preds = %2
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 1
%29 = load i8*, i8** %28
%30 = call i32* @fopen(i8* %29, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %30, i32** %6
%31 = icmp eq i32* %30, null
br i1 %31, label %32, label %37
32: ; preds = %26
%33 = load i8**, i8*** %5
%34 = getelementptr inbounds i8*, i8** %33, i64 1
%35 = load i8*, i8** %34
%36 = call i32 @perror(i8* %35)
br label %135
37: ; preds = %26
%38 = load i8**, i8*** %5
%39 = getelementptr inbounds i8*, i8** %38, i64 2
%40 = load i8*, i8** %39
%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 %48
43: ; preds = %37
%44 = load i8**, i8*** %5
%45 = getelementptr inbounds i8*, i8** %44, i64 2
%46 = load i8*, i8** %45
%47 = call i32 @perror(i8* %46)
br label %132
48: ; preds = %37
%49 = load i8**, i8*** %5
%50 = getelementptr inbounds i8*, i8** %49, i64 3
%51 = load i8*, i8** %50
%52 = call i32* @fopen(i8* %51, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i32* %52, i32** %8
%53 = icmp eq i32* %52, null
br i1 %53, label %54, label %59
54: ; preds = %48
%55 = load i8**, i8*** %5
%56 = getelementptr inbounds i8*, i8** %55, i64 3
%57 = load i8*, i8** %56
%58 = call i32 @perror(i8* %57)
br label %129
59: ; preds = %48
%60 = call i32 @gettimeofday(%struct.timeval* %14, i32* null)
br label %61
61: ; preds = %99, %59
%62 = load i32, i32* %9
%63 = icmp ne i32 %62, 0
br i1 %63, label %76, label %64
64: ; preds = %61
%65 = load i32*, i32** %6
%66 = load i32*, i32** %8
%67 = call i32 @readaline_and_out(i32* %65, i32* %66)
%68 = icmp ne i32 %67, 0
br i1 %68, label %74, label %69
69: ; preds = %64
%70 = load i64, i64* %11
%71 = add nsw i64 %70, 1
store i64 %71, i64* %11
%72 = load i64, i64* %13
%73 = add nsw i64 %72, 1
store i64 %73, i64* %13
br label %75
74: ; preds = %64
store i32 1, i32* %9
br label %75
75: ; preds = %74, %69
br label %76
76: ; preds = %75, %61
%77 = load i32, i32* %10
%78 = icmp ne i32 %77, 0
br i1 %78, label %91, label %79
79: ; preds = %76
%80 = load i32*, i32** %7
%81 = load i32*, i32** %8
%82 = call i32 @readaline_and_out(i32* %80, i32* %81)
%83 = icmp ne i32 %82, 0
br i1 %83, label %89, label %84
84: ; preds = %79
%85 = load i64, i64* %12
%86 = add nsw i64 %85, 1
store i64 %86, i64* %12
%87 = load i64, i64* %13
%88 = add nsw i64 %87, 1
store i64 %88, i64* %13
br label %90
89: ; preds = %79
store i32 1, i32* %10
br label %90
90: ; preds = %89, %84
br label %91
91: ; preds = %90, %76
br label %92
92: ; preds = %91
%93 = load i32, i32* %9
%94 = icmp ne i32 %93, 0
br i1 %94, label %95, label %99
95: ; preds = %92
%96 = load i32, i32* %10
%97 = icmp ne i32 %96, 0
%98 = xor i1 %97, true
br label %99
99: ; preds = %95, %92
%100 = phi i1 [ true, %92 ], [ %98, %95 ]
br i1 %100, label %61, label %101
101: ; preds = %99
%102 = call i32 @gettimeofday(%struct.timeval* %15, i32* null)
%103 = getelementptr inbounds %struct.timeval, %struct.timeval* %15, i32 0, i32 0
%104 = load i32, i32* %103
%105 = getelementptr inbounds %struct.timeval, %struct.timeval* %14, i32 0, i32 0
%106 = load i32, i32* %105
%107 = sub nsw i32 %104, %106
%108 = mul nsw i32 %107, 1000000
%109 = getelementptr inbounds %struct.timeval, %struct.timeval* %15, i32 0, i32 1
%110 = load i32, i32* %109
%111 = getelementptr inbounds %struct.timeval, %struct.timeval* %14, i32 0, i32 1
%112 = load i32, i32* %111
%113 = sub nsw i32 %110, %112
%114 = add nsw i32 %108, %113
store i32 %114, i32* %16
%115 = load i32, i32* %16
%116 = sdiv i32 %115, 1000000
%117 = sext i32 %116 to i64
%118 = load i32, i32* %16
%119 = srem i32 %118, 1000000
%120 = sext i32 %119 to i64
%121 = call i32 (i8*, i64, i64, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i64 %117, i64 %120)
%122 = load i64, i64* %11
%123 = load i64, i64* %12
%124 = load i64, i64* %13
%125 = call i32 (i8*, i64, i64, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0), i64 %122, i64 %123, i64 %124)
store i32 0, i32* %17
br label %126
126: ; preds = %101
%127 = load i32*, i32** %8
%128 = call i32 @fclose(i32* %127)
br label %129
129: ; preds = %126, %54
%130 = load i32*, i32** %7
%131 = call i32 @fclose(i32* %130)
br label %132
132: ; preds = %129, %43
%133 = load i32*, i32** %6
%134 = call i32 @fclose(i32* %133)
br label %135
135: ; preds = %132, %32, %20
%136 = load i32, i32* %17
ret i32 %136
}

LLVM IR (-O2):
%struct.timeval = type { i32, i32 }
@stderr = global i32 0
@.str = [28 x i8] c"usage: %s file1 file2 fout\0A\00"
@.str.1 = [3 x i8] c"rt\00"
@.str.2 = [3 x i8] c"wt\00"
@.str.3 = [31 x i8] c"Processing time = %d.%06d sec\0A\00"
@.str.4 = [44 x i8] c"File1 = %ld, File2= %ld, Total = %ld Lines\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.timeval
%4 = alloca %struct.timeval
%5 = bitcast %struct.timeval* %3 to i8*
%6 = bitcast %struct.timeval* %4 to i8*
%7 = icmp eq i32 %0, 4
br i1 %7, label %12, label %8
8: ; preds = %2
%9 = load i32, i32* @stderr
%10 = load i8*, i8** %1
%11 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* %10)
br label %96
12: ; preds = %2
%13 = getelementptr inbounds i8*, i8** %1, i64 1
%14 = load i8*, i8** %13
%15 = tail call i32* @fopen(i8* %14, 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 %20
17: ; preds = %12
%18 = load i8*, i8** %13
%19 = tail call i32 @perror(i8* %18)
br label %96
20: ; preds = %12
%21 = getelementptr inbounds i8*, i8** %1, i64 2
%22 = load i8*, i8** %21
%23 = tail call i32* @fopen(i8* %22, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%24 = icmp eq i32* %23, null
br i1 %24, label %25, label %28
25: ; preds = %20
%26 = load i8*, i8** %21
%27 = tail call i32 @perror(i8* %26)
br label %93
28: ; preds = %20
%29 = getelementptr inbounds i8*, i8** %1, i64 3
%30 = load i8*, i8** %29
%31 = tail call i32* @fopen(i8* %30, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%32 = icmp eq i32* %31, null
br i1 %32, label %33, label %36
33: ; preds = %28
%34 = load i8*, i8** %29
%35 = tail call i32 @perror(i8* %34)
br label %90
36: ; preds = %28
%37 = call i32 @gettimeofday(%struct.timeval* %3, i32* null)
br label %38
38: ; preds = %63, %36
%39 = phi i32 [ 0, %36 ], [ %65, %63 ]
%40 = phi i64 [ 0, %36 ], [ %52, %63 ]
%41 = phi i64 [ 0, %36 ], [ %66, %63 ]
%42 = phi i64 [ 0, %36 ], [ %67, %63 ]
%43 = phi i32 [ 0, %36 ], [ %55, %63 ]
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %51
45: ; preds = %38
%46 = tail call i32 @readaline_and_out(i32* %15, i32* %31)
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %51
48: ; preds = %45
%49 = add nsw i64 %40, 1
%50 = add nsw i64 %42, 1
br label %51
51: ; preds = %45, %48, %38
%52 = phi i64 [ %40, %38 ], [ %49, %48 ], [ %40, %45 ]
%53 = phi i64 [ %42, %38 ], [ %50, %48 ], [ %42, %45 ]
%54 = phi i1 [ false, %38 ], [ true, %48 ], [ false, %45 ]
%55 = phi i32 [ 1, %38 ], [ 0, %48 ], [ 1, %45 ]
%56 = icmp eq i32 %39, 0
br i1 %56, label %57, label %63
57: ; preds = %51
%58 = tail call i32 @readaline_and_out(i32* %23, i32* %31)
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %63
60: ; preds = %57
%61 = add nsw i64 %41, 1
%62 = add nsw i64 %53, 1
br label %63
63: ; preds = %57, %51, %60
%64 = phi i1 [ false, %51 ], [ true, %60 ], [ false, %57 ]
%65 = phi i32 [ 1, %51 ], [ 0, %60 ], [ 1, %57 ]
%66 = phi i64 [ %41, %51 ], [ %61, %60 ], [ %41, %57 ]
%67 = phi i64 [ %53, %51 ], [ %62, %60 ], [ %53, %57 ]
%68 = or i1 %54, %64
br i1 %68, label %38, label %69
69: ; preds = %63
%70 = call i32 @gettimeofday(%struct.timeval* %4, i32* null)
%71 = getelementptr inbounds %struct.timeval, %struct.timeval* %4, i64 0, i32 0
%72 = load i32, i32* %71
%73 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i64 0, i32 0
%74 = load i32, i32* %73
%75 = sub nsw i32 %72, %74
%76 = mul nsw i32 %75, 1000000
%77 = getelementptr inbounds %struct.timeval, %struct.timeval* %4, i64 0, i32 1
%78 = load i32, i32* %77
%79 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i64 0, i32 1
%80 = load i32, i32* %79
%81 = sub nsw i32 %78, %80
%82 = add nsw i32 %81, %76
%83 = sdiv i32 %82, 1000000
%84 = sext i32 %83 to i64
%85 = srem i32 %82, 1000000
%86 = sext i32 %85 to i64
%87 = tail call i32 (i8*, i64, i64, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i64 %84, i64 %86)
%88 = tail call i32 (i8*, i64, i64, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0), i64 %52, i64 %66, i64 %67)
%89 = tail call i32 @fclose(i32* %31)
br label %90
90: ; preds = %69, %33
%91 = phi i32 [ 1, %33 ], [ 0, %69 ]
%92 = tail call i32 @fclose(i32* %23)
br label %93
93: ; preds = %90, %25
%94 = phi i32 [ 1, %25 ], [ %91, %90 ]
%95 = tail call i32 @fclose(i32* %15)
br label %96
96: ; preds = %93, %17, %8
%97 = phi i32 [ 1, %8 ], [ 1, %17 ], [ %94, %93 ]
ret i32 %97
}