#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 symfile {
  int dummy;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
struct symfile *add_new_file(char *);
int /*<<< orphan*/ add_new_symbol(struct symfile *, char *);
char *alloca(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *filename_exist(char *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
char *getenv(char *);
scalar_t__ isalnum(char);
scalar_t__ isspace(char);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
char *strstr(char *, char *);
void find_export_symbols(char *filename) {
  FILE *fp;
  struct symfile *sym;
  char line[2048];
  if (filename_exist(filename) == NULL) {
    int rflen = strlen(getenv("SRCTREE")) + strlen(filename);
    char *real_filename = alloca(rflen + 1);
    strcpy(real_filename, getenv("SRCTREE"));
    strcat(real_filename, filename);
    sym = add_new_file(filename);
    fp = fopen(real_filename, "r");
    if (fp == NULL) {
      fprintf(stderr, "docproc: ");
      perror(real_filename);
    }
    while (fgets(line, 2048, fp)) {
      char *p;
      char *e;
      if (((p = strstr(line, "EXPORT_SYMBOL_GPL")) != 0) ||
          ((p = strstr(line, "EXPORT_SYMBOL")) != 0)) {
        while (isalnum(*p) || *p == '_')
          p++;
        while (isspace(*p))
          p++;
        if (*p != '(')
          continue;
        else
          p++;
        while (isspace(*p))
          p++;
        e = p;
        while (isalnum(*e) || *e == '_')
          e++;
        *e = '\0';
        add_new_symbol(sym, p);
      }
    }
    fclose(fp);
  }
}


x86 assembly (clang, -O0):
<find_export_symbols>:
push   %rbp
mov    %rsp,%rbp
sub    $0x850,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   10d0 <filename_exist@plt>
cmp    $0x0,%rax
jne    14f6 <find_export_symbols+0x2f6>
lea    0xdd7(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,%rdi
call   1060 <strlen@plt>
mov    %eax,-0x84c(%rbp)
mov    -0x8(%rbp),%rdi
call   1060 <strlen@plt>
mov    %eax,%ecx
mov    -0x84c(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x824(%rbp)
mov    -0x824(%rbp),%edi
add    $0x1,%edi
call   10c0 <alloca@plt>
mov    %rax,-0x830(%rbp)
mov    -0x830(%rbp),%rax
mov    %rax,-0x848(%rbp)
lea    0xd81(%rip),%rdi
call   1030 <getenv@plt>
mov    -0x848(%rbp),%rdi
mov    %rax,%rsi
call   1040 <strcpy@plt>
mov    -0x830(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1100 <strcat@plt>
mov    -0x8(%rbp),%rdi
call   1090 <add_new_file@plt>
mov    %rax,-0x18(%rbp)
mov    -0x830(%rbp),%rdi
lea    0xd4a(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    12f3 <find_export_symbols+0xf3>
mov    0x2d07(%rip),%rax
mov    (%rax),%edi
lea    0xd28(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x830(%rbp),%rdi
call   10f0 <perror@plt>
jmp    12f8 <find_export_symbols+0xf8>
lea    -0x820(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    $0x800,%esi
call   10a0 <fgets@plt>
cmp    $0x0,%rax
je     14ed <find_export_symbols+0x2ed>
lea    -0x820(%rbp),%rdi
lea    0xcef(%rip),%rsi
call   1120 <strstr@plt>
mov    %rax,-0x838(%rbp)
cmp    $0x0,%rax
jne    135f <find_export_symbols+0x15f>
lea    -0x820(%rbp),%rdi
lea    0xcdd(%rip),%rsi
call   1120 <strstr@plt>
mov    %rax,-0x838(%rbp)
cmp    $0x0,%rax
je     14e8 <find_export_symbols+0x2e8>
jmp    1364 <find_export_symbols+0x164>
mov    -0x838(%rbp),%rax
movsbl (%rax),%edi
call   1070 <isalnum@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x84d(%rbp)
jne    139e <find_export_symbols+0x19e>
mov    -0x838(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5f,%eax
sete   %al
mov    %al,-0x84d(%rbp)
mov    -0x84d(%rbp),%al
test   $0x1,%al
jne    13b1 <find_export_symbols+0x1b1>
jmp    13c8 <find_export_symbols+0x1c8>
mov    -0x838(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x838(%rbp)
jmp    1364 <find_export_symbols+0x164>
jmp    13cd <find_export_symbols+0x1cd>
mov    -0x838(%rbp),%rax
movsbl (%rax),%edi
call   1080 <isspace@plt>
cmp    $0x0,%rax
je     13fd <find_export_symbols+0x1fd>
mov    -0x838(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x838(%rbp)
jmp    13cd <find_export_symbols+0x1cd>
mov    -0x838(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x28,%eax
je     1415 <find_export_symbols+0x215>
jmp    12f8 <find_export_symbols+0xf8>
mov    -0x838(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x838(%rbp)
jmp    142c <find_export_symbols+0x22c>
mov    -0x838(%rbp),%rax
movsbl (%rax),%edi
call   1080 <isspace@plt>
cmp    $0x0,%rax
je     145c <find_export_symbols+0x25c>
mov    -0x838(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x838(%rbp)
jmp    142c <find_export_symbols+0x22c>
mov    -0x838(%rbp),%rax
mov    %rax,-0x840(%rbp)
mov    -0x840(%rbp),%rax
movsbl (%rax),%edi
call   1070 <isalnum@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x84e(%rbp)
jne    14a4 <find_export_symbols+0x2a4>
mov    -0x840(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5f,%eax
sete   %al
mov    %al,-0x84e(%rbp)
mov    -0x84e(%rbp),%al
test   $0x1,%al
jne    14b7 <find_export_symbols+0x2b7>
jmp    14ce <find_export_symbols+0x2ce>
mov    -0x840(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x840(%rbp)
jmp    146a <find_export_symbols+0x26a>
mov    -0x840(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x18(%rbp),%rdi
mov    -0x838(%rbp),%rsi
call   1110 <add_new_symbol@plt>
jmp    12f8 <find_export_symbols+0xf8>
mov    -0x10(%rbp),%rdi
call   1050 <fclose@plt>
add    $0x850,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<find_export_symbols>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x808,%rsp
mov    %rdi,%rbx
call   10d0 <filename_exist@plt>
test   %rax,%rax
jne    13b7 <find_export_symbols+0x1b7>
lea    0xdd7(%rip),%r14
mov    %r14,%rdi
call   1030 <getenv@plt>
mov    %rax,%rdi
call   1060 <strlen@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   1060 <strlen@plt>
lea    (%rax,%rbp,1),%edi
add    $0x1,%edi
call   10c0 <alloca@plt>
mov    %rax,%rbp
mov    %r14,%rdi
call   1030 <getenv@plt>
mov    %rbp,%rdi
mov    %rax,%rsi
call   1040 <strcpy@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1100 <strcat@plt>
mov    %rbx,%rdi
call   1090 <add_new_file@plt>
mov    %rax,%r14
lea    0xd87(%rip),%rsi
mov    %rbp,%rdi
call   10e0 <fopen@plt>
mov    %rax,%r12
test   %rax,%rax
je     13c9 <find_export_symbols+0x1c9>
mov    %rsp,%rdi
mov    $0x800,%esi
mov    %r12,%rdx
call   10a0 <fgets@plt>
test   %rax,%rax
je     13af <find_export_symbols+0x1af>
lea    0xd5f(%rip),%r15
mov    %rsp,%rbx
jmp    12d9 <find_export_symbols+0xd9>
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    $0x800,%esi
mov    %r12,%rdx
call   10a0 <fgets@plt>
test   %rax,%rax
je     13af <find_export_symbols+0x1af>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1120 <strstr@plt>
mov    %rax,%rbp
test   %rax,%rax
jne    1314 <find_export_symbols+0x114>
mov    %rbx,%rdi
lea    0xd30(%rip),%rsi
call   1120 <strstr@plt>
mov    %rax,%rbp
test   %rax,%rax
jne    1314 <find_export_symbols+0x114>
jmp    12c0 <find_export_symbols+0xc0>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%rbp
movsbl 0x0(%rbp),%edi
call   1070 <isalnum@plt>
test   %rax,%rax
jne    1310 <find_export_symbols+0x110>
movzbl 0x0(%rbp),%eax
cmp    $0x5f,%al
je     1310 <find_export_symbols+0x110>
movsbl %al,%edi
nopl   (%rax)
call   1080 <isspace@plt>
test   %rax,%rax
je     1350 <find_export_symbols+0x150>
movsbl 0x1(%rbp),%edi
add    $0x1,%rbp
jmp    1330 <find_export_symbols+0x130>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
cmpb   $0x28,0x0(%rbp)
jne    12c0 <find_export_symbols+0xc0>
nopw   0x0(%rax,%rax,1)
movsbl 0x1(%rbp),%edi
add    $0x1,%rbp
call   1080 <isspace@plt>
test   %rax,%rax
jne    1360 <find_export_symbols+0x160>
mov    %rbp,%r13
jmp    1384 <find_export_symbols+0x184>
nopw   0x0(%rax,%rax,1)
add    $0x1,%r13
movsbl 0x0(%r13),%edi
call   1070 <isalnum@plt>
test   %rax,%rax
jne    1380 <find_export_symbols+0x180>
cmpb   $0x5f,0x0(%r13)
je     1380 <find_export_symbols+0x180>
movb   $0x0,0x0(%r13)
mov    %r14,%rdi
mov    %rbp,%rsi
call   1110 <add_new_symbol@plt>
jmp    12c0 <find_export_symbols+0xc0>
mov    %r12,%rdi
call   1050 <fclose@plt>
add    $0x808,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2c10(%rip),%rax
mov    (%rax),%edi
lea    0xc31(%rip),%rsi
call   10b0 <fprintf@plt>
mov    %rbp,%rdi
call   10f0 <perror@plt>
jmp    1295 <find_export_symbols+0x95>

LLVM IR (-O0):
%struct.symfile = type { i32 }
@.str = [8 x i8] c"SRCTREE\00"
@.str.1 = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.2 = [10 x i8] c"docproc: \00"
@.str.3 = [18 x i8] c"EXPORT_SYMBOL_GPL\00"
@.str.4 = [14 x i8] c"EXPORT_SYMBOL\00"
define void @find_export_symbols(i8* %0) {
%2 = alloca i8*
%3 = alloca i32*
%4 = alloca %struct.symfile*
%5 = alloca [2048 x i8]
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
store i8* %0, i8** %2
%10 = load i8*, i8** %2
%11 = call i32* @filename_exist(i8* %10)
%12 = icmp eq i32* %11, null
br i1 %12, label %13, label %122
13: ; preds = %1
%14 = call i8* @getenv(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%15 = call i32 @strlen(i8* %14)
%16 = load i8*, i8** %2
%17 = call i32 @strlen(i8* %16)
%18 = add nsw i32 %15, %17
store i32 %18, i32* %6
%19 = load i32, i32* %6
%20 = add nsw i32 %19, 1
%21 = call i8* @alloca(i32 %20)
store i8* %21, i8** %7
%22 = load i8*, i8** %7
%23 = call i8* @getenv(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%24 = call i32 @strcpy(i8* %22, i8* %23)
%25 = load i8*, i8** %7
%26 = load i8*, i8** %2
%27 = call i32 @strcat(i8* %25, i8* %26)
%28 = load i8*, i8** %2
%29 = call %struct.symfile* @add_new_file(i8* %28)
store %struct.symfile* %29, %struct.symfile** %4
%30 = load i8*, i8** %7
%31 = call i32* @fopen(i8* %30, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %31, i32** %3
%32 = load i32*, i32** %3
%33 = icmp eq i32* %32, null
br i1 %33, label %34, label %39
34: ; preds = %13
%35 = load i32, i32* @stderr
%36 = call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%37 = load i8*, i8** %7
%38 = call i32 @perror(i8* %37)
br label %39
39: ; preds = %34, %13
br label %40
40: ; preds = %118, %83, %39
%41 = getelementptr inbounds [2048 x i8], [2048 x i8]* %5, i64 0, i64 0
%42 = load i32*, i32** %3
%43 = call i64 @fgets(i8* %41, i32 2048, i32* %42)
%44 = icmp ne i64 %43, 0
br i1 %44, label %45, label %119
45: ; preds = %40
%46 = getelementptr inbounds [2048 x i8], [2048 x i8]* %5, i64 0, i64 0
%47 = call i8* @strstr(i8* %46, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
store i8* %47, i8** %8
%48 = icmp ne i8* %47, null
br i1 %48, label %53, label %49
49: ; preds = %45
%50 = getelementptr inbounds [2048 x i8], [2048 x i8]* %5, i64 0, i64 0
%51 = call i8* @strstr(i8* %50, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
store i8* %51, i8** %8
%52 = icmp ne i8* %51, null
br i1 %52, label %53, label %118
53: ; preds = %49, %45
br label %54
54: ; preds = %66, %53
%55 = load i8*, i8** %8
%56 = load i8, i8* %55
%57 = call i64 @isalnum(i8 signext %56)
%58 = icmp ne i64 %57, 0
br i1 %58, label %64, label %59
59: ; preds = %54
%60 = load i8*, i8** %8
%61 = load i8, i8* %60
%62 = sext i8 %61 to i32
%63 = icmp eq i32 %62, 95
br label %64
64: ; preds = %59, %54
%65 = phi i1 [ true, %54 ], [ %63, %59 ]
br i1 %65, label %66, label %69
66: ; preds = %64
%67 = load i8*, i8** %8
%68 = getelementptr inbounds i8, i8* %67, i32 1
store i8* %68, i8** %8
br label %54
69: ; preds = %64
br label %70
70: ; preds = %75, %69
%71 = load i8*, i8** %8
%72 = load i8, i8* %71
%73 = call i64 @isspace(i8 signext %72)
%74 = icmp ne i64 %73, 0
br i1 %74, label %75, label %78
75: ; preds = %70
%76 = load i8*, i8** %8
%77 = getelementptr inbounds i8, i8* %76, i32 1
store i8* %77, i8** %8
br label %70
78: ; preds = %70
%79 = load i8*, i8** %8
%80 = load i8, i8* %79
%81 = sext i8 %80 to i32
%82 = icmp ne i32 %81, 40
br i1 %82, label %83, label %84
83: ; preds = %78
br label %40
84: ; preds = %78
%85 = load i8*, i8** %8
%86 = getelementptr inbounds i8, i8* %85, i32 1
store i8* %86, i8** %8
br label %87
87: ; preds = %84
br label %88
88: ; preds = %93, %87
%89 = load i8*, i8** %8
%90 = load i8, i8* %89
%91 = call i64 @isspace(i8 signext %90)
%92 = icmp ne i64 %91, 0
br i1 %92, label %93, label %96
93: ; preds = %88
%94 = load i8*, i8** %8
%95 = getelementptr inbounds i8, i8* %94, i32 1
store i8* %95, i8** %8
br label %88
96: ; preds = %88
%97 = load i8*, i8** %8
store i8* %97, i8** %9
br label %98
98: ; preds = %110, %96
%99 = load i8*, i8** %9
%100 = load i8, i8* %99
%101 = call i64 @isalnum(i8 signext %100)
%102 = icmp ne i64 %101, 0
br i1 %102, label %108, label %103
103: ; preds = %98
%104 = load i8*, i8** %9
%105 = load i8, i8* %104
%106 = sext i8 %105 to i32
%107 = icmp eq i32 %106, 95
br label %108
108: ; preds = %103, %98
%109 = phi i1 [ true, %98 ], [ %107, %103 ]
br i1 %109, label %110, label %113
110: ; preds = %108
%111 = load i8*, i8** %9
%112 = getelementptr inbounds i8, i8* %111, i32 1
store i8* %112, i8** %9
br label %98
113: ; preds = %108
%114 = load i8*, i8** %9
store i8 0, i8* %114
%115 = load %struct.symfile*, %struct.symfile** %4
%116 = load i8*, i8** %8
%117 = call i32 @add_new_symbol(%struct.symfile* %115, i8* %116)
br label %118
118: ; preds = %113, %49
br label %40
119: ; preds = %40
%120 = load i32*, i32** %3
%121 = call i32 @fclose(i32* %120)
br label %122
122: ; preds = %119, %1
ret void
}

LLVM IR (-O2):
%struct.symfile = type { i32 }
@.str = [8 x i8] c"SRCTREE\00"
@.str.1 = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.2 = [10 x i8] c"docproc: \00"
@.str.3 = [18 x i8] c"EXPORT_SYMBOL_GPL\00"
@.str.4 = [14 x i8] c"EXPORT_SYMBOL\00"
define void @find_export_symbols(i8* %0) {
%2 = alloca [2048 x i8]
%3 = getelementptr inbounds [2048 x i8], [2048 x i8]* %2, i64 0, i64 0
%4 = tail call i32* @filename_exist(i8* %0)
%5 = icmp eq i32* %4, null
br i1 %5, label %6, label %80
6: ; preds = %1
%7 = tail call i8* @getenv(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 @strlen(i8* %7)
%9 = tail call i32 @strlen(i8* %0)
%10 = add i32 %8, 1
%11 = add i32 %10, %9
%12 = tail call i8* @alloca(i32 %11)
%13 = tail call i8* @getenv(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%14 = tail call i32 @strcpy(i8* %12, i8* %13)
%15 = tail call i32 @strcat(i8* %12, i8* %0)
%16 = tail call %struct.symfile* @add_new_file(i8* %0)
%17 = tail call i32* @fopen(i8* %12, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%18 = icmp eq i32* %17, null
br i1 %18, label %19, label %23
19: ; preds = %6
%20 = load i32, i32* @stderr
%21 = tail call i32 @fprintf(i32 %20, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%22 = tail call i32 @perror(i8* %12)
br label %23
23: ; preds = %19, %6
%24 = call i64 @fgets(i8* %3, i32 2048, i32* %17)
%25 = icmp eq i64 %24, 0
br i1 %25, label %78, label %26
26: ; preds = %23, %75
%27 = call i8* @strstr(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%28 = icmp eq i8* %27, null
br i1 %28, label %29, label %32
29: ; preds = %26
%30 = call i8* @strstr(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%31 = icmp eq i8* %30, null
br i1 %31, label %75, label %32
32: ; preds = %29, %26
%33 = phi i8* [ %30, %29 ], [ %27, %26 ]
br label %34
34: ; preds = %32, %45
%35 = phi i8* [ %46, %45 ], [ %33, %32 ]
%36 = load i8, i8* %35
%37 = call i64 @isalnum(i8 signext %36)
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %45
39: ; preds = %34
%40 = load i8, i8* %35
%41 = icmp eq i8 %40, 95
br i1 %41, label %45, label %42
42: ; preds = %39
%43 = call i64 @isspace(i8 signext %40)
%44 = icmp eq i64 %43, 0
br i1 %44, label %53, label %47
45: ; preds = %34, %39
%46 = getelementptr inbounds i8, i8* %35, i64 1
br label %34
47: ; preds = %42, %47
%48 = phi i8* [ %49, %47 ], [ %35, %42 ]
%49 = getelementptr inbounds i8, i8* %48, i64 1
%50 = load i8, i8* %49
%51 = call i64 @isspace(i8 signext %50)
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %47
53: ; preds = %47, %42
%54 = phi i8* [ %35, %42 ], [ %49, %47 ]
%55 = load i8, i8* %54
%56 = icmp eq i8 %55, 40
br i1 %56, label %57, label %75
57: ; preds = %53, %57
%58 = phi i8* [ %59, %57 ], [ %54, %53 ]
%59 = getelementptr inbounds i8, i8* %58, i64 1
%60 = load i8, i8* %59
%61 = call i64 @isspace(i8 signext %60)
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %57
63: ; preds = %57, %71
%64 = phi i8* [ %72, %71 ], [ %59, %57 ]
%65 = load i8, i8* %64
%66 = call i64 @isalnum(i8 signext %65)
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %71
68: ; preds = %63
%69 = load i8, i8* %64
%70 = icmp eq i8 %69, 95
br i1 %70, label %71, label %73
71: ; preds = %63, %68
%72 = getelementptr inbounds i8, i8* %64, i64 1
br label %63
73: ; preds = %68
store i8 0, i8* %64
%74 = call i32 @add_new_symbol(%struct.symfile* %16, i8* %59)
br label %75
75: ; preds = %29, %73, %53
%76 = call i64 @fgets(i8* %3, i32 2048, i32* %17)
%77 = icmp eq i64 %76, 0
br i1 %77, label %78, label %26
78: ; preds = %75, %23
%79 = call i32 @fclose(i32* %17)
br label %80
80: ; preds = %78, %1
ret void
}