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

/* Variables and functions */
int PATH_MAX;
struct symfile *add_new_file(char *);
int /*<<< orphan*/ add_new_symbol(struct symfile *, char *);
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*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ stderr;
int strlen(char *);
int /*<<< orphan*/ strncat(char *, char *, int);
char *strstr(char *, char *);
void find_export_symbols(char *filename) {
  FILE *fp;
  struct symfile *sym;
  char line[2048];
  if (filename_exist(filename) == NULL) {
    char real_filename[PATH_MAX + 1];
    memset(real_filename, 0, sizeof(real_filename));
    strncat(real_filename, getenv("SRCTREE"), PATH_MAX);
    strncat(real_filename, filename, PATH_MAX - strlen(real_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)) {
      signed char *p;
      signed 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    $0x860,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   10d0 <filename_exist@plt>
cmp    $0x0,%rax
jne    1515 <find_export_symbols+0x325>
mov    0x2dd7(%rip),%rax
mov    (%rax),%eax
add    $0x1,%eax
mov    %rsp,%rcx
mov    %rcx,-0x828(%rbp)
mov    %rax,%rcx
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rdi
sub    %rcx,%rdi
mov    %rdi,-0x848(%rbp)
mov    %rdi,%rsp
mov    %rax,-0x830(%rbp)
mov    %eax,%edx
xor    %esi,%esi
call   1070 <memset@plt>
lea    0xda6(%rip),%rdi
call   1030 <getenv@plt>
mov    -0x848(%rbp),%rdi
mov    %rax,%rsi
mov    0x2d80(%rip),%rax
mov    (%rax),%edx
call   1080 <strncat@plt>
mov    -0x848(%rbp),%rdi
mov    -0x8(%rbp),%rax
mov    %rax,-0x850(%rbp)
mov    0x2d60(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x854(%rbp)
call   1050 <strlen@plt>
mov    -0x854(%rbp),%edx
mov    -0x850(%rbp),%rsi
mov    -0x848(%rbp),%rdi
sub    %eax,%edx
call   1080 <strncat@plt>
mov    -0x8(%rbp),%rdi
call   10a0 <add_new_file@plt>
mov    -0x848(%rbp),%rdi
mov    %rax,-0x18(%rbp)
lea    0xd35(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1308 <find_export_symbols+0x118>
mov    0x2cea(%rip),%rax
mov    (%rax),%edi
lea    0xd13(%rip),%rsi
call   10c0 <fprintf@plt>
mov    -0x848(%rbp),%rdi
call   10f0 <perror@plt>
jmp    130d <find_export_symbols+0x11d>
lea    -0x820(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    $0x800,%esi
call   10b0 <fgets@plt>
cmp    $0x0,%rax
je     1502 <find_export_symbols+0x312>
lea    -0x820(%rbp),%rdi
lea    0xcda(%rip),%rsi
call   1110 <strstr@plt>
mov    %rax,-0x838(%rbp)
cmp    $0x0,%rax
jne    1374 <find_export_symbols+0x184>
lea    -0x820(%rbp),%rdi
lea    0xcc8(%rip),%rsi
call   1110 <strstr@plt>
mov    %rax,-0x838(%rbp)
cmp    $0x0,%rax
je     14fd <find_export_symbols+0x30d>
jmp    1379 <find_export_symbols+0x189>
mov    -0x838(%rbp),%rax
movsbl (%rax),%edi
call   1060 <isalnum@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x855(%rbp)
jne    13b3 <find_export_symbols+0x1c3>
mov    -0x838(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5f,%eax
sete   %al
mov    %al,-0x855(%rbp)
mov    -0x855(%rbp),%al
test   $0x1,%al
jne    13c6 <find_export_symbols+0x1d6>
jmp    13dd <find_export_symbols+0x1ed>
mov    -0x838(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x838(%rbp)
jmp    1379 <find_export_symbols+0x189>
jmp    13e2 <find_export_symbols+0x1f2>
mov    -0x838(%rbp),%rax
movsbl (%rax),%edi
call   1090 <isspace@plt>
cmp    $0x0,%rax
je     1412 <find_export_symbols+0x222>
mov    -0x838(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x838(%rbp)
jmp    13e2 <find_export_symbols+0x1f2>
mov    -0x838(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x28,%eax
je     142a <find_export_symbols+0x23a>
jmp    130d <find_export_symbols+0x11d>
mov    -0x838(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x838(%rbp)
jmp    1441 <find_export_symbols+0x251>
mov    -0x838(%rbp),%rax
movsbl (%rax),%edi
call   1090 <isspace@plt>
cmp    $0x0,%rax
je     1471 <find_export_symbols+0x281>
mov    -0x838(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x838(%rbp)
jmp    1441 <find_export_symbols+0x251>
mov    -0x838(%rbp),%rax
mov    %rax,-0x840(%rbp)
mov    -0x840(%rbp),%rax
movsbl (%rax),%edi
call   1060 <isalnum@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x856(%rbp)
jne    14b9 <find_export_symbols+0x2c9>
mov    -0x840(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5f,%eax
sete   %al
mov    %al,-0x856(%rbp)
mov    -0x856(%rbp),%al
test   $0x1,%al
jne    14cc <find_export_symbols+0x2dc>
jmp    14e3 <find_export_symbols+0x2f3>
mov    -0x840(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x840(%rbp)
jmp    147f <find_export_symbols+0x28f>
mov    -0x840(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x18(%rbp),%rdi
mov    -0x838(%rbp),%rsi
call   1100 <add_new_symbol@plt>
jmp    130d <find_export_symbols+0x11d>
mov    -0x10(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x828(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<find_export_symbols>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x818,%rsp
mov    %rdi,%r14
call   10d0 <filename_exist@plt>
test   %rax,%rax
jne    13c9 <find_export_symbols+0x1d9>
mov    %rsp,-0x30(%rbp)
mov    0x2dd0(%rip),%rbx
mov    (%rbx),%edx
add    $0x1,%edx
mov    %rsp,%r15
lea    0xf(%rdx),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r15
mov    %r15,%rsp
mov    %r15,%rdi
xor    %esi,%esi
call   1070 <memset@plt>
lea    0xdb9(%rip),%rdi
call   1030 <getenv@plt>
mov    (%rbx),%edx
mov    %r15,%rdi
mov    %rax,%rsi
call   1080 <strncat@plt>
mov    (%rbx),%ebx
mov    %r15,%rdi
call   1050 <strlen@plt>
sub    %eax,%ebx
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebx,%edx
call   1080 <strncat@plt>
mov    %r14,%rdi
call   10a0 <add_new_file@plt>
mov    %rax,-0x38(%rbp)
lea    0xd83(%rip),%rsi
mov    %r15,%rdi
call   10e0 <fopen@plt>
mov    %rax,%r12
test   %rax,%rax
je     13d8 <find_export_symbols+0x1e8>
lea    -0x840(%rbp),%rdi
mov    $0x800,%esi
mov    %r12,%rdx
call   10b0 <fgets@plt>
test   %rax,%rax
je     13bd <find_export_symbols+0x1cd>
lea    0xd57(%rip),%r15
lea    -0x840(%rbp),%rbx
jmp    12e9 <find_export_symbols+0xf9>
cs nopw 0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    $0x800,%esi
mov    %r12,%rdx
call   10b0 <fgets@plt>
test   %rax,%rax
je     13bd <find_export_symbols+0x1cd>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1110 <strstr@plt>
mov    %rax,%r13
test   %rax,%rax
jne    1324 <find_export_symbols+0x134>
mov    %rbx,%rdi
lea    0xd20(%rip),%rsi
call   1110 <strstr@plt>
mov    %rax,%r13
test   %rax,%rax
jne    1324 <find_export_symbols+0x134>
jmp    12d0 <find_export_symbols+0xe0>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%r13
movsbl 0x0(%r13),%edi
call   1060 <isalnum@plt>
test   %rax,%rax
jne    1320 <find_export_symbols+0x130>
movzbl 0x0(%r13),%eax
cmp    $0x5f,%al
je     1320 <find_export_symbols+0x130>
movsbl %al,%edi
nop
call   1090 <isspace@plt>
test   %rax,%rax
je     1360 <find_export_symbols+0x170>
movsbl 0x1(%r13),%edi
add    $0x1,%r13
jmp    1340 <find_export_symbols+0x150>
cs nopw 0x0(%rax,%rax,1)
nop
cmpb   $0x28,0x0(%r13)
jne    12d0 <find_export_symbols+0xe0>
nopl   0x0(%rax,%rax,1)
movsbl 0x1(%r13),%edi
add    $0x1,%r13
call   1090 <isspace@plt>
test   %rax,%rax
jne    1370 <find_export_symbols+0x180>
mov    %r13,%r14
jmp    1394 <find_export_symbols+0x1a4>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r14
movsbl (%r14),%edi
call   1060 <isalnum@plt>
test   %rax,%rax
jne    1390 <find_export_symbols+0x1a0>
cmpb   $0x5f,(%r14)
je     1390 <find_export_symbols+0x1a0>
movb   $0x0,(%r14)
mov    -0x38(%rbp),%rdi
mov    %r13,%rsi
call   1100 <add_new_symbol@plt>
jmp    12d0 <find_export_symbols+0xe0>
mov    %r12,%rdi
call   1040 <fclose@plt>
mov    -0x30(%rbp),%rsp
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2bf9(%rip),%rax
mov    (%rax),%edi
lea    0xc22(%rip),%rsi
call   10c0 <fprintf@plt>
mov    %r15,%rdi
call   10f0 <perror@plt>
jmp    1299 <find_export_symbols+0xa9>

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

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