#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*/ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
scalar_t__ fscanf(int /*<<< orphan*/ *, char *, char *, char *, char *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int /*<<< orphan*/ strncat(char *, char *, int);
scalar_t__ strncmp(char *, char *, int);
unsigned int strtoul(char *, int /*<<< orphan*/ *, int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  unsigned int addr;
  char buff[256];
  if (argc < 2) {
    printf("Usage: %s [0x01234567]\n", argv[0]);
    return 1;
  }
  if (strncmp(argv[1], "0x", 2)) {
    strcpy(buff, "0x");
    strncat(buff, argv[1], 253);
    addr = strtoul(buff, NULL, 0);
  } else {
    addr = strtoul(argv[1], NULL, 0);
  }
  if (addr == 0) {
    perror("strtoul");
    return 1;
  }
  char *file = "kernel.sym";
  FILE *fp = fopen(file, "r");
  if (!fp) {
    printf("Cannot open %s\n", file);
    return 1;
  }
  unsigned int prev_addr = 0, this_addr = 0;
  char address[32];
  char type[32];
  char func_name[64], prev_func_name[64];
  int found = 0;
  do {
    if (fscanf(fp, "%s %s %s\n", address, type, func_name)) {
      char temp[512] = {'0', 'x'};
      strcat(temp, address);
      this_addr = strtoul(temp, NULL, 0);
      if (addr >= prev_addr && addr < this_addr) {
        printf("Found symbol: %s at address 0x%08x matching 0x%08x\n",
               prev_func_name, prev_addr, addr);
        found = 1;
        break;
      } else {
        prev_addr = this_addr;
        strcpy(prev_func_name, func_name);
        prev_func_name[64] = 0;
      }
    } else {
      break;
    }
  } while (!feof(fp));
  if (!found) {
    printf("Cannot find any symbol in kernel at address: 0x%08X\n", addr);
  }
  fclose(fp);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x410,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    1204 <main+0x44>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe0f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1465 <main+0x2a5>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe05(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
je     126d <main+0xad>
lea    -0x120(%rbp),%rdi
lea    0xde3(%rip),%rsi
call   1040 <strcpy@plt>
lea    -0x120(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
mov    $0xfd,%edx
call   1090 <strncat@plt>
lea    -0x120(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   10d0 <strtoul@plt>
mov    %eax,-0x14(%rbp)
jmp    1283 <main+0xc3>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   10d0 <strtoul@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    12a5 <main+0xe5>
lea    0xd87(%rip),%rdi
call   10c0 <perror@plt>
movl   $0x1,-0x4(%rbp)
jmp    1465 <main+0x2a5>
lea    0xd77(%rip),%rax
mov    %rax,-0x128(%rbp)
mov    -0x128(%rbp),%rdi
lea    0xd6d(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x130(%rbp)
cmpq   $0x0,-0x130(%rbp)
jne    12fc <main+0x13c>
mov    -0x128(%rbp),%rsi
lea    0xd47(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1465 <main+0x2a5>
movl   $0x0,-0x134(%rbp)
movl   $0x0,-0x138(%rbp)
movl   $0x0,-0x204(%rbp)
mov    -0x130(%rbp),%rdi
lea    -0x160(%rbp),%rdx
lea    -0x180(%rbp),%rcx
lea    -0x1c0(%rbp),%r8
lea    0xd03(%rip),%rsi
call   1080 <fscanf@plt>
cmp    $0x0,%rax
je     140e <main+0x24e>
lea    -0x410(%rbp),%rdi
xor    %esi,%esi
mov    $0x200,%edx
call   1070 <memset@plt>
movb   $0x30,-0x410(%rbp)
movb   $0x78,-0x40f(%rbp)
lea    -0x410(%rbp),%rdi
lea    -0x160(%rbp),%rsi
call   10e0 <strcat@plt>
lea    -0x410(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   10d0 <strtoul@plt>
mov    %eax,-0x138(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x134(%rbp),%eax
jb     13e3 <main+0x223>
mov    -0x14(%rbp),%eax
cmp    -0x138(%rbp),%eax
jae    13e3 <main+0x223>
lea    -0x200(%rbp),%rsi
mov    -0x134(%rbp),%edx
mov    -0x14(%rbp),%ecx
lea    0xc7d(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x1,-0x204(%rbp)
jmp    1434 <main+0x274>
mov    -0x138(%rbp),%eax
mov    %eax,-0x134(%rbp)
lea    -0x200(%rbp),%rdi
lea    -0x1c0(%rbp),%rsi
call   1040 <strcpy@plt>
movb   $0x0,-0x1c0(%rbp)
jmp    1413 <main+0x253>
jmp    1434 <main+0x274>
jmp    1418 <main+0x258>
mov    -0x130(%rbp),%rdi
call   10a0 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    131a <main+0x15a>
cmpl   $0x0,-0x204(%rbp)
jne    1452 <main+0x292>
mov    -0x14(%rbp),%esi
lea    0xc33(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x130(%rbp),%rdi
call   1050 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x410,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x3d8,%rsp
mov    %rsi,%rbx
cmp    $0x1,%edi
jg     11e8 <main+0x28>
mov    (%rbx),%rsi
lea    0xe1d(%rip),%rdi
jmp    135f <main+0x19f>
mov    0x8(%rbx),%rdi
lea    0xe25(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     122f <main+0x6f>
lea    0xe0f(%rip),%rsi
lea    0x2d0(%rsp),%rbp
mov    %rbp,%rdi
call   1040 <strcpy@plt>
mov    0x8(%rbx),%rsi
mov    %rbp,%rdi
mov    $0xfd,%edx
call   1090 <strncat@plt>
mov    %rbp,%rdi
jmp    1233 <main+0x73>
mov    0x8(%rbx),%rdi
xor    %esi,%esi
xor    %edx,%edx
call   10d0 <strtoul@plt>
mov    %eax,%ebp
test   %eax,%eax
je     137d <main+0x1bd>
lea    0xdd6(%rip),%rdi
lea    0xdda(%rip),%rsi
call   10b0 <fopen@plt>
test   %rax,%rax
je     1351 <main+0x191>
mov    %rax,%r14
mov    %ebp,0xc(%rsp)
xor    %r12d,%r12d
lea    0x70(%rsp),%rbp
lea    0x90(%rsp),%rbx
jmp    12a8 <main+0xe8>
nopl   0x0(%rax,%rax,1)
lea    0x10(%rsp),%rdi
mov    %rbx,%rsi
call   1040 <strcpy@plt>
movb   $0x0,0x50(%rsp)
mov    %r14,%rdi
call   10a0 <feof@plt>
mov    %r15d,%r12d
test   %eax,%eax
mov    %r13,%rbp
jne    1333 <main+0x173>
mov    %r14,%rdi
lea    0xd8e(%rip),%rsi
mov    %rbp,%rdx
lea    0x50(%rsp),%rcx
mov    %rbx,%r8
call   1080 <fscanf@plt>
test   %rax,%rax
je     1333 <main+0x173>
mov    $0x200,%edx
lea    0xd0(%rsp),%r15
mov    %r15,%rdi
xor    %esi,%esi
call   1070 <memset@plt>
movw   $0x7830,0xd0(%rsp)
mov    %r15,%rdi
mov    %rbp,%r13
mov    %rbp,%rsi
call   10e0 <strcat@plt>
mov    %r15,%rdi
xor    %esi,%esi
xor    %edx,%edx
call   10d0 <strtoul@plt>
mov    %eax,%r15d
mov    0xc(%rsp),%ecx
cmp    %r12d,%ecx
jb     1280 <main+0xc0>
cmp    %r15d,%ecx
jae    1280 <main+0xc0>
lea    0xd28(%rip),%rdi
lea    0x10(%rsp),%rsi
mov    %r12d,%edx
xor    %eax,%eax
call   1060 <printf@plt>
jmp    1345 <main+0x185>
lea    0xd44(%rip),%rdi
mov    0xc(%rsp),%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r14,%rdi
call   1050 <fclose@plt>
xor    %eax,%eax
jmp    136b <main+0x1ab>
lea    0xcd8(%rip),%rdi
lea    0xcc4(%rip),%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1,%eax
add    $0x3d8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xc97(%rip),%rdi
call   10c0 <perror@plt>
jmp    1366 <main+0x1a6>

LLVM IR (-O0):
@.str = [24 x i8] c"Usage: %s [0x01234567]\0A\00"
@.str.1 = [3 x i8] c"0x\00"
@.str.2 = [8 x i8] c"strtoul\00"
@.str.3 = [11 x i8] c"kernel.sym\00"
@.str.4 = [2 x i8] c"r\00"
@.str.5 = [16 x i8] c"Cannot open %s\0A\00"
@.str.6 = [10 x i8] c"%s %s %s\0A\00"
@.str.7 = [52 x i8] c"Found symbol: %s at address 0x%08x matching 0x%08x\0A\00"
@.str.8 = [53 x i8] c"Cannot find any symbol in kernel at address: 0x%08X\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca [256 x i8]
%8 = alloca i8*
%9 = alloca i32*
%10 = alloca i32
%11 = alloca i32
%12 = alloca [32 x i8]
%13 = alloca [32 x i8]
%14 = alloca [64 x i8]
%15 = alloca [64 x i8]
%16 = alloca i32
%17 = alloca [512 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%18 = load i32, i32* %4
%19 = icmp slt i32 %18, 2
br i1 %19, label %20, label %25
20: ; preds = %2
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 0
%23 = load i8*, i8** %22
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* %23)
store i32 1, i32* %3
br label %112
25: ; preds = %2
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 1
%28 = load i8*, i8** %27
%29 = call i64 @strncmp(i8* %28, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 2)
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %41
31: ; preds = %25
%32 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%33 = call i32 @strcpy(i8* %32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%34 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%35 = load i8**, i8*** %5
%36 = getelementptr inbounds i8*, i8** %35, i64 1
%37 = load i8*, i8** %36
%38 = call i32 @strncat(i8* %34, i8* %37, i32 253)
%39 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%40 = call i32 @strtoul(i8* %39, i32* null, i32 0)
store i32 %40, i32* %6
br label %46
41: ; preds = %25
%42 = load i8**, i8*** %5
%43 = getelementptr inbounds i8*, i8** %42, i64 1
%44 = load i8*, i8** %43
%45 = call i32 @strtoul(i8* %44, i32* null, i32 0)
store i32 %45, i32* %6
br label %46
46: ; preds = %41, %31
%47 = load i32, i32* %6
%48 = icmp eq i32 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %46
%50 = call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %3
br label %112
51: ; preds = %46
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8** %8
%52 = load i8*, i8** %8
%53 = call i32* @fopen(i8* %52, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i32* %53, i32** %9
%54 = load i32*, i32** %9
%55 = icmp ne i32* %54, null
br i1 %55, label %59, label %56
56: ; preds = %51
%57 = load i8*, i8** %8
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i8* %57)
store i32 1, i32* %3
br label %112
59: ; preds = %51
store i32 0, i32* %10
store i32 0, i32* %11
store i32 0, i32* %16
br label %60
60: ; preds = %98, %59
%61 = load i32*, i32** %9
%62 = getelementptr inbounds [32 x i8], [32 x i8]* %12, i64 0, i64 0
%63 = getelementptr inbounds [32 x i8], [32 x i8]* %13, i64 0, i64 0
%64 = getelementptr inbounds [64 x i8], [64 x i8]* %14, i64 0, i64 0
%65 = call i64 @fscanf(i32* %61, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* %62, i8* %63, i8* %64)
%66 = icmp ne i64 %65, 0
br i1 %66, label %67, label %96
67: ; preds = %60
%68 = bitcast [512 x i8]* %17 to i8*
%69 = bitcast i8* %68 to <{ i8, i8, [510 x i8] }>*
%70 = getelementptr inbounds <{ i8, i8, [510 x i8] }>, <{ i8, i8, [510 x i8] }>* %69, i32 0, i32 0
store i8 48, i8* %70
%71 = getelementptr inbounds <{ i8, i8, [510 x i8] }>, <{ i8, i8, [510 x i8] }>* %69, i32 0, i32 1
store i8 120, i8* %71
%72 = getelementptr inbounds [512 x i8], [512 x i8]* %17, i64 0, i64 0
%73 = getelementptr inbounds [32 x i8], [32 x i8]* %12, i64 0, i64 0
%74 = call i32 @strcat(i8* %72, i8* %73)
%75 = getelementptr inbounds [512 x i8], [512 x i8]* %17, i64 0, i64 0
%76 = call i32 @strtoul(i8* %75, i32* null, i32 0)
store i32 %76, i32* %11
%77 = load i32, i32* %6
%78 = load i32, i32* %10
%79 = icmp uge i32 %77, %78
br i1 %79, label %80, label %89
80: ; preds = %67
%81 = load i32, i32* %6
%82 = load i32, i32* %11
%83 = icmp ult i32 %81, %82
br i1 %83, label %84, label %89
84: ; preds = %80
%85 = getelementptr inbounds [64 x i8], [64 x i8]* %15, i64 0, i64 0
%86 = load i32, i32* %10
%87 = load i32, i32* %6
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.7, i64 0, i64 0), i8* %85, i32 %86, i32 %87)
store i32 1, i32* %16
br label %103
89: ; preds = %80, %67
%90 = load i32, i32* %11
store i32 %90, i32* %10
%91 = getelementptr inbounds [64 x i8], [64 x i8]* %15, i64 0, i64 0
%92 = getelementptr inbounds [64 x i8], [64 x i8]* %14, i64 0, i64 0
%93 = call i32 @strcpy(i8* %91, i8* %92)
%94 = getelementptr inbounds [64 x i8], [64 x i8]* %15, i64 0, i64 64
store i8 0, i8* %94
br label %95
95: ; preds = %89
br label %97
96: ; preds = %60
br label %103
97: ; preds = %95
br label %98
98: ; preds = %97
%99 = load i32*, i32** %9
%100 = call i32 @feof(i32* %99)
%101 = icmp ne i32 %100, 0
%102 = xor i1 %101, true
br i1 %102, label %60, label %103
103: ; preds = %98, %96, %84
%104 = load i32, i32* %16
%105 = icmp ne i32 %104, 0
br i1 %105, label %109, label %106
106: ; preds = %103
%107 = load i32, i32* %6
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.8, i64 0, i64 0), i32 %107)
br label %109
109: ; preds = %106, %103
%110 = load i32*, i32** %9
%111 = call i32 @fclose(i32* %110)
store i32 0, i32* %3
br label %112
112: ; preds = %109, %56, %49, %20
%113 = load i32, i32* %3
ret i32 %113
}

LLVM IR (-O2):
@.str = [24 x i8] c"Usage: %s [0x01234567]\0A\00"
@.str.1 = [3 x i8] c"0x\00"
@.str.2 = [8 x i8] c"strtoul\00"
@.str.3 = [11 x i8] c"kernel.sym\00"
@.str.4 = [2 x i8] c"r\00"
@.str.5 = [16 x i8] c"Cannot open %s\0A\00"
@.str.6 = [10 x i8] c"%s %s %s\0A\00"
@.str.7 = [52 x i8] c"Found symbol: %s at address 0x%08x matching 0x%08x\0A\00"
@.str.8 = [53 x i8] c"Cannot find any symbol in kernel at address: 0x%08X\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [256 x i8]
%4 = alloca [32 x i8]
%5 = alloca [32 x i8]
%6 = alloca [64 x i8]
%7 = alloca [64 x i8]
%8 = alloca [512 x i8]
%9 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%10 = icmp slt i32 %0, 2
br i1 %10, label %11, label %14
11: ; preds = %2
%12 = load i8*, i8** %1
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* %12)
br label %65
14: ; preds = %2
%15 = getelementptr inbounds i8*, i8** %1, i64 1
%16 = load i8*, i8** %15
%17 = tail call i64 @strncmp(i8* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 2)
%18 = icmp eq i64 %17, 0
br i1 %18, label %24, label %19
19: ; preds = %14
%20 = call i32 @strcpy(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%21 = load i8*, i8** %15
%22 = call i32 @strncat(i8* %9, i8* %21, i32 253)
%23 = call i32 @strtoul(i8* nocapture %9, i32* null, i32 0)
br label %27
24: ; preds = %14
%25 = load i8*, i8** %15
%26 = tail call i32 @strtoul(i8* nocapture %25, i32* null, i32 0)
br label %27
27: ; preds = %24, %19
%28 = phi i32 [ %23, %19 ], [ %26, %24 ]
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %27
%31 = call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %65
32: ; preds = %27
%33 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%34 = icmp eq i32* %33, null
br i1 %34, label %35, label %37
35: ; preds = %32
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
br label %65
37: ; preds = %32
%38 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 0
%39 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 0
%40 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 0
%41 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 0
%42 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%43 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 1
%44 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 64
br label %45
45: ; preds = %55, %37
%46 = phi i32 [ 0, %37 ], [ %51, %55 ]
%47 = call i64 @fscanf(i32* %33, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* %38, i8* %39, i8* %40)
%48 = icmp eq i64 %47, 0
br i1 %48, label %61, label %49
49: ; preds = %45
store i8 48, i8* %42
store i8 120, i8* %43
%50 = call i32 @strcat(i8* %42, i8* %38)
%51 = call i32 @strtoul(i8* nocapture %42, i32* null, i32 0)
%52 = icmp uge i32 %28, %46
%53 = icmp ult i32 %28, %51
%54 = select i1 %52, i1 %53, i1 false
br i1 %54, label %59, label %55
55: ; preds = %49
%56 = call i32 @strcpy(i8* %41, i8* %40)
store i8 0, i8* %44
%57 = call i32 @feof(i32* %33)
%58 = icmp eq i32 %57, 0
br i1 %58, label %45, label %61
59: ; preds = %49
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.7, i64 0, i64 0), i8* %41, i32 %46, i32 %28)
br label %63
61: ; preds = %55, %45
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.8, i64 0, i64 0), i32 %28)
br label %63
63: ; preds = %59, %61
%64 = call i32 @fclose(i32* %33)
br label %65
65: ; preds = %35, %63, %30, %11
%66 = phi i32 [ 1, %11 ], [ 1, %30 ], [ 0, %63 ], [ 1, %35 ]
ret i32 %66
}