#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*/ line;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
char *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ perror(char *);
int sscanf(char *, char *, int *, int *, int *, unsigned int *, double *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ strcpy(char *, char *);
int main(int argc, char *argv[]) {
  double this_time, last_time;
  char line[256], last_line[256], *p;
  int major, minor, cpu, nr, alias;
  unsigned long long total_entries;
  unsigned int last_seq[(512)], seq;
  FILE *f;
  for (nr = 0; nr < (512); nr++)
    last_seq[nr] = -1;
  if (argc < 2) {
    fprintf(stderr, "%s: file\n", argv[0]);
    return 1;
  }
  f = fopen(argv[1], "r");
  if (!f) {
    perror("fopen");
    return 1;
  }
  last_time = 0;
  alias = nr = 0;
  total_entries = 0;
  while ((p = fgets(line, sizeof(line), f)) != NULL) {
    if (sscanf(p, "%3d,%3d %2d %8d %lf", &major, &minor, &cpu, &seq,
               &this_time) != 5)
      break;
    if (this_time < last_time) {
      fprintf(stdout, "last: %s", last_line);
      fprintf(stdout, "this: %s", p);
      nr++;
    }
    last_time = this_time;
    if (cpu >= (512)) {
      fprintf(stderr, "cpu%d too large\n", cpu);
      break;
    }
    if (last_seq[cpu] == seq) {
      fprintf(stdout, "alias on sequence %u\n", seq);
      alias++;
    }
    last_seq[cpu] = seq;
    total_entries++;
    strcpy(last_line, line);
  }
  fprintf(stdout, "Events %Lu: %d unordered, %d aliases\n", total_entries, nr,
          alias);
  fclose(f);
  return nr != 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x238(%rbp)
cmpl   $0x200,-0x238(%rbp)
jge    11c9 <main+0x59>
movslq -0x238(%rbp),%rax
movl   $0xffffffff,-0xa50(%rbp,%rax,4)
ff ff ff ff
mov    -0x238(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x238(%rbp)
jmp    1193 <main+0x23>
cmpl   $0x2,-0x8(%rbp)
jge    11fd <main+0x8d>
mov    0x2e06(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe16(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    143b <main+0x2cb>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdfe(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0xa60(%rbp)
cmpq   $0x0,-0xa60(%rbp)
jne    123e <main+0xce>
lea    0xddf(%rip),%rdi
call   1090 <perror@plt>
movl   $0x1,-0x4(%rbp)
jmp    143b <main+0x2cb>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
movl   $0x0,-0x238(%rbp)
movl   $0x0,-0x23c(%rbp)
movq   $0x0,-0x248(%rbp)
lea    -0x120(%rbp),%rdi
mov    -0xa60(%rbp),%rdx
mov    $0x100,%esi
call   1050 <fgets@plt>
mov    %rax,-0x228(%rbp)
cmp    $0x0,%rax
je     13f2 <main+0x282>
mov    -0x228(%rbp),%rdi
lea    0xd76(%rip),%rsi
lea    -0x22c(%rbp),%rdx
lea    -0x230(%rbp),%rcx
lea    -0x234(%rbp),%r8
lea    -0xa54(%rbp),%r9
lea    -0x18(%rbp),%rax
mov    %rax,(%rsp)
call   1070 <sscanf@plt>
cmp    $0x5,%eax
je     12d3 <main+0x163>
jmp    13f2 <main+0x282>
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1332 <main+0x1c2>
mov    0x2cea(%rip),%rax
mov    (%rax),%edi
lea    -0x220(%rbp),%rdx
lea    0xd28(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2ccc(%rip),%rax
mov    (%rax),%edi
mov    -0x228(%rbp),%rdx
lea    0xd13(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x238(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x238(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
cmpl   $0x200,-0x234(%rbp)
jl     136e <main+0x1fe>
mov    0x2c8d(%rip),%rax
mov    (%rax),%edi
mov    -0x234(%rbp),%edx
lea    0xcd6(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
jmp    13f2 <main+0x282>
movslq -0x234(%rbp),%rax
mov    -0xa50(%rbp,%rax,4),%eax
cmp    -0xa54(%rbp),%eax
jne    13b4 <main+0x244>
mov    0x2c49(%rip),%rax
mov    (%rax),%edi
mov    -0xa54(%rbp),%edx
lea    0xcab(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x23c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x23c(%rbp)
mov    -0xa54(%rbp),%ecx
movslq -0x234(%rbp),%rax
mov    %ecx,-0xa50(%rbp,%rax,4)
mov    -0x248(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x248(%rbp)
lea    -0x220(%rbp),%rdi
lea    -0x120(%rbp),%rsi
call   1030 <strcpy@plt>
jmp    1265 <main+0xf5>
mov    0x2bdf(%rip),%rax
mov    (%rax),%edi
mov    -0x248(%rbp),%rdx
mov    -0x238(%rbp),%ecx
mov    -0x23c(%rbp),%r8d
lea    0xc49(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0xa60(%rbp),%rdi
call   1040 <fclose@plt>
cmpl   $0x0,-0x238(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xa70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa38,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0x230(%rsp),%rdi
mov    $0x800,%edx
mov    $0xff,%esi
call   1050 <memset@plt>
cmp    $0x1,%ebp
jg     11d6 <main+0x56>
mov    0x2e27(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%rdx
lea    0xe3b(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0x1,%eax
jmp    138c <main+0x20c>
mov    0x8(%rbx),%rdi
lea    0xe29(%rip),%rsi
call   1090 <fopen@plt>
test   %rax,%rax
je     139e <main+0x21e>
mov    %rax,%r15
lea    0x130(%rsp),%rdi
mov    $0x100,%esi
mov    %rax,%rdx
call   1060 <fgets@plt>
test   %rax,%rax
je     133c <main+0x1bc>
mov    %rax,%r13
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x18(%rsp)
lea    0x130(%rsp),%r14
xor    %ebx,%ebx
xor    %ebp,%ebp
xor    %r12d,%r12d
jmp    1264 <main+0xe4>
xchg   %ax,%ax
mov    %ecx,0x230(%rsp,%rdx,4)
add    $0x1,%rbx
lea    0x30(%rsp),%rdi
mov    %r14,%rsi
call   1030 <strcpy@plt>
mov    %r14,%rdi
mov    $0x100,%esi
mov    %r15,%rdx
call   1060 <fgets@plt>
mov    %rax,%r13
test   %rax,%rax
je     135c <main+0x1dc>
lea    0x20(%rsp),%rax
mov    %rax,(%rsp)
mov    %r13,%rdi
lea    0xd9b(%rip),%rsi
lea    0x2c(%rsp),%rdx
lea    0x28(%rsp),%rcx
lea    0x14(%rsp),%r8
lea    0x10(%rsp),%r9
call   1080 <sscanf@plt>
cmp    $0x5,%eax
jne    135c <main+0x1dc>
movsd  0x20(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
ucomisd %xmm0,%xmm1
jbe    12eb <main+0x16b>
mov    0x2d26(%rip),%rax
mov    (%rax),%edi
lea    0xd6b(%rip),%rsi
lea    0x30(%rsp),%rdx
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x2d0a(%rip),%rax
mov    (%rax),%edi
lea    0xd58(%rip),%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1070 <fprintf@plt>
add    $0x1,%r12d
movsd  0x20(%rsp),%xmm0
movslq 0x14(%rsp),%rdx
cmp    $0x200,%rdx
jge    1345 <main+0x1c5>
movsd  %xmm0,0x18(%rsp)
mov    0x230(%rsp,%rdx,4),%eax
mov    0x10(%rsp),%ecx
cmp    %ecx,%eax
jne    1230 <main+0xb0>
mov    0x2cbf(%rip),%rcx
mov    (%rcx),%edi
lea    0xd27(%rip),%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1070 <fprintf@plt>
add    $0x1,%ebp
mov    0x10(%rsp),%ecx
movslq 0x14(%rsp),%rdx
jmp    1230 <main+0xb0>
xor    %ebp,%ebp
xor    %ebx,%ebx
xor    %r12d,%r12d
jmp    135c <main+0x1dc>
mov    0x2c94(%rip),%rax
mov    (%rax),%edi
lea    0xce3(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x2c75(%rip),%rax
mov    (%rax),%edi
lea    0xcf3(%rip),%rsi
mov    %rbx,%rdx
mov    %r12d,%ecx
mov    %ebp,%r8d
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    %r15,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
test   %r12d,%r12d
setne  %al
add    $0xa38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xc67(%rip),%rdi
call   10a0 <perror@plt>
mov    $0x1,%eax
jmp    138c <main+0x20c>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [10 x i8] c"%s: file\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [6 x i8] c"fopen\00"
@.str.3 = [20 x i8] c"%3d,%3d %2d %8d %lf\00"
@stdout = global i32 0
@.str.4 = [9 x i8] c"last: %s\00"
@.str.5 = [9 x i8] c"this: %s\00"
@.str.6 = [17 x i8] c"cpu%d too large\0A\00"
@.str.7 = [22 x i8] c"alias on sequence %u\0A\00"
@.str.8 = [38 x i8] c"Events %Lu: %d unordered, %d aliases\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca double
%7 = alloca double
%8 = alloca [256 x i8]
%9 = alloca [256 x i8]
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i64
%17 = alloca [512 x i32]
%18 = alloca i32
%19 = alloca i32*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %14
br label %20
20: ; preds = %27, %2
%21 = load i32, i32* %14
%22 = icmp slt i32 %21, 512
br i1 %22, label %23, label %30
23: ; preds = %20
%24 = load i32, i32* %14
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [512 x i32], [512 x i32]* %17, i64 0, i64 %25
store i32 -1, i32* %26
br label %27
27: ; preds = %23
%28 = load i32, i32* %14
%29 = add nsw i32 %28, 1
store i32 %29, i32* %14
br label %20
30: ; preds = %20
%31 = load i32, i32* %4
%32 = icmp slt i32 %31, 2
br i1 %32, label %33, label %39
33: ; preds = %30
%34 = load i32, i32* @stderr
%35 = load i8**, i8*** %5
%36 = getelementptr inbounds i8*, i8** %35, i64 0
%37 = load i8*, i8** %36
%38 = call i32 (i32, i8*, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %37)
store i32 1, i32* %3
br label %114
39: ; preds = %30
%40 = load i8**, i8*** %5
%41 = getelementptr inbounds i8*, i8** %40, i64 1
%42 = load i8*, i8** %41
%43 = call i32* @fopen(i8* %42, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %43, i32** %19
%44 = load i32*, i32** %19
%45 = icmp ne i32* %44, null
br i1 %45, label %48, label %46
46: ; preds = %39
%47 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %3
br label %114
48: ; preds = %39
store double 0.000000e+00, double* %7
store i32 0, i32* %14
store i32 0, i32* %15
store i64 0, i64* %16
br label %49
49: ; preds = %93, %48
%50 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%51 = load i32*, i32** %19
%52 = call i8* @fgets(i8* %50, i32 256, i32* %51)
store i8* %52, i8** %10
%53 = icmp ne i8* %52, null
br i1 %53, label %54, label %103
54: ; preds = %49
%55 = load i8*, i8** %10
%56 = call i32 @sscanf(i8* %55, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32* %11, i32* %12, i32* %13, i32* %18, double* %6)
%57 = icmp ne i32 %56, 5
br i1 %57, label %58, label %59
58: ; preds = %54
br label %103
59: ; preds = %54
%60 = load double, double* %6
%61 = load double, double* %7
%62 = fcmp olt double %60, %61
br i1 %62, label %63, label %72
63: ; preds = %59
%64 = load i32, i32* @stdout
%65 = getelementptr inbounds [256 x i8], [256 x i8]* %9, i64 0, i64 0
%66 = call i32 (i32, i8*, ...) @fprintf(i32 %64, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* %65)
%67 = load i32, i32* @stdout
%68 = load i8*, i8** %10
%69 = call i32 (i32, i8*, ...) @fprintf(i32 %67, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %68)
%70 = load i32, i32* %14
%71 = add nsw i32 %70, 1
store i32 %71, i32* %14
br label %72
72: ; preds = %63, %59
%73 = load double, double* %6
store double %73, double* %7
%74 = load i32, i32* %13
%75 = icmp sge i32 %74, 512
br i1 %75, label %76, label %80
76: ; preds = %72
%77 = load i32, i32* @stderr
%78 = load i32, i32* %13
%79 = call i32 (i32, i8*, ...) @fprintf(i32 %77, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i32 %78)
br label %103
80: ; preds = %72
%81 = load i32, i32* %13
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [512 x i32], [512 x i32]* %17, i64 0, i64 %82
%84 = load i32, i32* %83
%85 = load i32, i32* %18
%86 = icmp eq i32 %84, %85
br i1 %86, label %87, label %93
87: ; preds = %80
%88 = load i32, i32* @stdout
%89 = load i32, i32* %18
%90 = call i32 (i32, i8*, ...) @fprintf(i32 %88, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i32 %89)
%91 = load i32, i32* %15
%92 = add nsw i32 %91, 1
store i32 %92, i32* %15
br label %93
93: ; preds = %87, %80
%94 = load i32, i32* %18
%95 = load i32, i32* %13
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [512 x i32], [512 x i32]* %17, i64 0, i64 %96
store i32 %94, i32* %97
%98 = load i64, i64* %16
%99 = add i64 %98, 1
store i64 %99, i64* %16
%100 = getelementptr inbounds [256 x i8], [256 x i8]* %9, i64 0, i64 0
%101 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%102 = call i32 @strcpy(i8* %100, i8* %101)
br label %49
103: ; preds = %76, %58, %49
%104 = load i32, i32* @stdout
%105 = load i64, i64* %16
%106 = load i32, i32* %14
%107 = load i32, i32* %15
%108 = call i32 (i32, i8*, ...) @fprintf(i32 %104, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0), i64 %105, i32 %106, i32 %107)
%109 = load i32*, i32** %19
%110 = call i32 @fclose(i32* %109)
%111 = load i32, i32* %14
%112 = icmp ne i32 %111, 0
%113 = zext i1 %112 to i32
store i32 %113, i32* %3
br label %114
114: ; preds = %103, %46, %33
%115 = load i32, i32* %3
ret i32 %115
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [10 x i8] c"%s: file\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [6 x i8] c"fopen\00"
@.str.3 = [20 x i8] c"%3d,%3d %2d %8d %lf\00"
@stdout = global i32 0
@.str.4 = [9 x i8] c"last: %s\00"
@.str.5 = [9 x i8] c"this: %s\00"
@.str.6 = [17 x i8] c"cpu%d too large\0A\00"
@.str.7 = [22 x i8] c"alias on sequence %u\0A\00"
@.str.8 = [38 x i8] c"Events %Lu: %d unordered, %d aliases\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca double
%4 = alloca [256 x i8]
%5 = alloca [256 x i8]
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca [512 x i32]
%10 = bitcast [512 x i32]* %9 to i8*
%11 = alloca i32
%12 = bitcast double* %3 to i8*
%13 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%14 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%15 = bitcast i32* %6 to i8*
%16 = bitcast i32* %7 to i8*
%17 = bitcast i32* %8 to i8*
%18 = bitcast i32* %11 to i8*
%19 = icmp slt i32 %0, 2
br i1 %19, label %20, label %24
20: ; preds = %2
%21 = load i32, i32* @stderr
%22 = load i8*, i8** %1
%23 = tail call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %22)
br label %91
24: ; preds = %2
%25 = getelementptr inbounds i8*, i8** %1, i64 1
%26 = load i8*, i8** %25
%27 = tail call i32* @fopen(i8* %26, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%28 = icmp eq i32* %27, null
br i1 %28, label %32, label %29
29: ; preds = %24
%30 = call i8* @fgets(i8* %13, i32 256, i32* %27)
%31 = icmp eq i8* %30, null
br i1 %31, label %82, label %34
32: ; preds = %24
%33 = tail call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %91
34: ; preds = %29, %73
%35 = phi i8* [ %80, %73 ], [ %30, %29 ]
%36 = phi i64 [ %78, %73 ], [ 0, %29 ]
%37 = phi i32 [ %76, %73 ], [ 0, %29 ]
%38 = phi i32 [ %54, %73 ], [ 0, %29 ]
%39 = phi double [ %53, %73 ], [ 0.000000e+00, %29 ]
%40 = call i32 @sscanf(i8* %35, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32* %6, i32* %7, i32* %8, i32* %11, double* %3)
%41 = icmp eq i32 %40, 5
br i1 %41, label %42, label %82
42: ; preds = %34
%43 = load double, double* %3
%44 = fcmp olt double %43, %39
br i1 %44, label %45, label %52
45: ; preds = %42
%46 = load i32, i32* @stdout
%47 = call i32 (i32, i8*, ...) @fprintf(i32 %46, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* %14)
%48 = load i32, i32* @stdout
%49 = call i32 (i32, i8*, ...) @fprintf(i32 %48, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %35)
%50 = add nsw i32 %38, 1
%51 = load double, double* %3
br label %52
52: ; preds = %45, %42
%53 = phi double [ %51, %45 ], [ %43, %42 ]
%54 = phi i32 [ %50, %45 ], [ %38, %42 ]
%55 = load i32, i32* %8
%56 = icmp sgt i32 %55, 511
br i1 %56, label %57, label %60
57: ; preds = %52
%58 = load i32, i32* @stderr
%59 = call i32 (i32, i8*, ...) @fprintf(i32 %58, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i32 %55)
br label %82
60: ; preds = %52
%61 = sext i32 %55 to i64
%62 = getelementptr inbounds [512 x i32], [512 x i32]* %9, i64 0, i64 %61
%63 = load i32, i32* %62
%64 = load i32, i32* %11
%65 = icmp eq i32 %63, %64
br i1 %65, label %66, label %73
66: ; preds = %60
%67 = load i32, i32* @stdout
%68 = call i32 (i32, i8*, ...) @fprintf(i32 %67, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i32 %63)
%69 = add nsw i32 %37, 1
%70 = load i32, i32* %11
%71 = load i32, i32* %8
%72 = sext i32 %71 to i64
br label %73
73: ; preds = %66, %60
%74 = phi i64 [ %72, %66 ], [ %61, %60 ]
%75 = phi i32 [ %70, %66 ], [ %64, %60 ]
%76 = phi i32 [ %69, %66 ], [ %37, %60 ]
%77 = getelementptr inbounds [512 x i32], [512 x i32]* %9, i64 0, i64 %74
store i32 %75, i32* %77
%78 = add i64 %36, 1
%79 = call i32 @strcpy(i8* %14, i8* %13)
%80 = call i8* @fgets(i8* %13, i32 256, i32* %27)
%81 = icmp eq i8* %80, null
br i1 %81, label %82, label %34
82: ; preds = %73, %34, %29, %57
%83 = phi i32 [ %37, %57 ], [ 0, %29 ], [ %76, %73 ], [ %37, %34 ]
%84 = phi i64 [ %36, %57 ], [ 0, %29 ], [ %78, %73 ], [ %36, %34 ]
%85 = phi i32 [ %54, %57 ], [ 0, %29 ], [ %54, %73 ], [ %38, %34 ]
%86 = load i32, i32* @stdout
%87 = call i32 (i32, i8*, ...) @fprintf(i32 %86, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0), i64 %84, i32 %85, i32 %83)
%88 = call i32 @fclose(i32* %27)
%89 = icmp ne i32 %85, 0
%90 = zext i1 %89 to i32
br label %91
91: ; preds = %82, %32, %20
%92 = phi i32 [ 1, %20 ], [ %90, %82 ], [ 1, %32 ]
ret i32 %92
}