#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*/ exit(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*/ 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);
      exit(1);
    }
    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    $0x860,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   10d0 <filename_exist@plt>
cmp    $0x0,%rax
jne    152f <find_export_symbols+0x32f>
mov    0x2dc7(%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    0xd96(%rip),%rdi
call   1030 <getenv@plt>
mov    -0x848(%rbp),%rdi
mov    %rax,%rsi
mov    0x2d70(%rip),%rax
mov    (%rax),%edx
call   1080 <strncat@plt>
mov    -0x848(%rbp),%rdi
mov    -0x8(%rbp),%rax
mov    %rax,-0x850(%rbp)
mov    0x2d50(%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    0xd25(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1322 <find_export_symbols+0x122>
mov    0x2cda(%rip),%rax
mov    (%rax),%edi
lea    0xd03(%rip),%rsi
call   10c0 <fprintf@plt>
mov    -0x848(%rbp),%rdi
call   10f0 <perror@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
jmp    1327 <find_export_symbols+0x127>
lea    -0x820(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    $0x800,%esi
call   10b0 <fgets@plt>
cmp    $0x0,%rax
je     151c <find_export_symbols+0x31c>
lea    -0x820(%rbp),%rdi
lea    0xcc0(%rip),%rsi
call   1120 <strstr@plt>
mov    %rax,-0x838(%rbp)
cmp    $0x0,%rax
jne    138e <find_export_symbols+0x18e>
lea    -0x820(%rbp),%rdi
lea    0xcae(%rip),%rsi
call   1120 <strstr@plt>
mov    %rax,-0x838(%rbp)
cmp    $0x0,%rax
je     1517 <find_export_symbols+0x317>
jmp    1393 <find_export_symbols+0x193>
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    13cd <find_export_symbols+0x1cd>
mov    -0x838(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5f,%eax
sete   %al
mov    %al,-0x855(%rbp)
mov    -0x855(%rbp),%al
test   $0x1,%al
jne    13e0 <find_export_symbols+0x1e0>
jmp    13f7 <find_export_symbols+0x1f7>
mov    -0x838(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x838(%rbp)
jmp    1393 <find_export_symbols+0x193>
jmp    13fc <find_export_symbols+0x1fc>
mov    -0x838(%rbp),%rax
movsbl (%rax),%edi
call   1090 <isspace@plt>
cmp    $0x0,%rax
je     142c <find_export_symbols+0x22c>
mov    -0x838(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x838(%rbp)
jmp    13fc <find_export_symbols+0x1fc>
mov    -0x838(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x28,%eax
je     1444 <find_export_symbols+0x244>
jmp    1327 <find_export_symbols+0x127>
mov    -0x838(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x838(%rbp)
jmp    145b <find_export_symbols+0x25b>
mov    -0x838(%rbp),%rax
movsbl (%rax),%edi
call   1090 <isspace@plt>
cmp    $0x0,%rax
je     148b <find_export_symbols+0x28b>
mov    -0x838(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x838(%rbp)
jmp    145b <find_export_symbols+0x25b>
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    14d3 <find_export_symbols+0x2d3>
mov    -0x840(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5f,%eax
sete   %al
mov    %al,-0x856(%rbp)
mov    -0x856(%rbp),%al
test   $0x1,%al
jne    14e6 <find_export_symbols+0x2e6>
jmp    14fd <find_export_symbols+0x2fd>
mov    -0x840(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x840(%rbp)
jmp    1499 <find_export_symbols+0x299>
mov    -0x840(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x18(%rbp),%rdi
mov    -0x838(%rbp),%rsi
call   1110 <add_new_symbol@plt>
jmp    1327 <find_export_symbols+0x127>
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    13d9 <find_export_symbols+0x1d9>
mov    %rsp,-0x30(%rbp)
mov    0x2dc0(%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    0xda9(%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    0xd73(%rip),%rsi
mov    %r15,%rdi
call   10e0 <fopen@plt>
test   %rax,%rax
je     13e8 <find_export_symbols+0x1e8>
mov    %rax,%r12
lea    -0x840(%rbp),%rdi
mov    $0x800,%esi
mov    %rax,%rdx
call   10b0 <fgets@plt>
test   %rax,%rax
je     13cd <find_export_symbols+0x1cd>
lea    0xd47(%rip),%r15
lea    -0x840(%rbp),%rbx
jmp    12f9 <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     13cd <find_export_symbols+0x1cd>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1120 <strstr@plt>
mov    %rax,%r13
test   %rax,%rax
jne    1334 <find_export_symbols+0x134>
mov    %rbx,%rdi
lea    0xd10(%rip),%rsi
call   1120 <strstr@plt>
mov    %rax,%r13
test   %rax,%rax
jne    1334 <find_export_symbols+0x134>
jmp    12e0 <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    1330 <find_export_symbols+0x130>
movzbl 0x0(%r13),%eax
cmp    $0x5f,%al
je     1330 <find_export_symbols+0x130>
movsbl %al,%edi
nop
call   1090 <isspace@plt>
test   %rax,%rax
je     1370 <find_export_symbols+0x170>
movsbl 0x1(%r13),%edi
add    $0x1,%r13
jmp    1350 <find_export_symbols+0x150>
cs nopw 0x0(%rax,%rax,1)
nop
cmpb   $0x28,0x0(%r13)
jne    12e0 <find_export_symbols+0xe0>
nopl   0x0(%rax,%rax,1)
movsbl 0x1(%r13),%edi
add    $0x1,%r13
call   1090 <isspace@plt>
test   %rax,%rax
jne    1380 <find_export_symbols+0x180>
mov    %r13,%r14
jmp    13a4 <find_export_symbols+0x1a4>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r14
movsbl (%r14),%edi
call   1060 <isalnum@plt>
test   %rax,%rax
jne    13a0 <find_export_symbols+0x1a0>
cmpb   $0x5f,(%r14)
je     13a0 <find_export_symbols+0x1a0>
movb   $0x0,(%r14)
mov    -0x38(%rbp),%rdi
mov    %r13,%rsi
call   1110 <add_new_symbol@plt>
jmp    12e0 <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    0x2be9(%rip),%rax
mov    (%rax),%edi
lea    0xc12(%rip),%rsi
call   10c0 <fprintf@plt>
mov    %r15,%rdi
call   10f0 <perror@plt>
mov    $0x1,%edi
call   1100 <exit@plt>

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 %123
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 %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 = call i32 @perror(i8* %18)
%38 = call i32 @exit(i32 1)
unreachable
39: ; preds = %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)
%122 = load i8*, i8** %6
br label %123
123: ; preds = %119, %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 %85
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 %26, label %23
23: ; preds = %6
%24 = call i64 @fgets(i8* %3, i32 2048, i32* %21)
%25 = icmp eq i64 %24, 0
br i1 %25, label %83, label %31
26: ; preds = %6
%27 = load i32, i32* @stderr
%28 = call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%29 = call i32 @perror(i8* %11)
%30 = call i32 @exit(i32 1)
unreachable
31: ; preds = %23, %80
%32 = call i8* @strstr(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%33 = icmp eq i8* %32, null
br i1 %33, label %34, label %37
34: ; preds = %31
%35 = call i8* @strstr(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%36 = icmp eq i8* %35, null
br i1 %36, label %80, label %37
37: ; preds = %34, %31
%38 = phi i8* [ %35, %34 ], [ %32, %31 ]
br label %39
39: ; preds = %37, %50
%40 = phi i8* [ %51, %50 ], [ %38, %37 ]
%41 = load i8, i8* %40
%42 = call i64 @isalnum(i8 signext %41)
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %50
44: ; preds = %39
%45 = load i8, i8* %40
%46 = icmp eq i8 %45, 95
br i1 %46, label %50, label %47
47: ; preds = %44
%48 = call i64 @isspace(i8 signext %45)
%49 = icmp eq i64 %48, 0
br i1 %49, label %58, label %52
50: ; preds = %39, %44
%51 = getelementptr inbounds i8, i8* %40, i64 1
br label %39
52: ; preds = %47, %52
%53 = phi i8* [ %54, %52 ], [ %40, %47 ]
%54 = getelementptr inbounds i8, i8* %53, i64 1
%55 = load i8, i8* %54
%56 = call i64 @isspace(i8 signext %55)
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %52
58: ; preds = %52, %47
%59 = phi i8* [ %40, %47 ], [ %54, %52 ]
%60 = load i8, i8* %59
%61 = icmp eq i8 %60, 40
br i1 %61, label %62, label %80
62: ; preds = %58, %62
%63 = phi i8* [ %64, %62 ], [ %59, %58 ]
%64 = getelementptr inbounds i8, i8* %63, i64 1
%65 = load i8, i8* %64
%66 = call i64 @isspace(i8 signext %65)
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %62
68: ; preds = %62, %76
%69 = phi i8* [ %77, %76 ], [ %64, %62 ]
%70 = load i8, i8* %69
%71 = call i64 @isalnum(i8 signext %70)
%72 = icmp eq i64 %71, 0
br i1 %72, label %73, label %76
73: ; preds = %68
%74 = load i8, i8* %69
%75 = icmp eq i8 %74, 95
br i1 %75, label %76, label %78
76: ; preds = %68, %73
%77 = getelementptr inbounds i8, i8* %69, i64 1
br label %68
78: ; preds = %73
store i8 0, i8* %69
%79 = call i32 @add_new_symbol(%struct.symfile* %20, i8* %64)
br label %80
80: ; preds = %34, %78, %58
%81 = call i64 @fgets(i8* %3, i32 2048, i32* %21)
%82 = icmp eq i64 %81, 0
br i1 %82, label %83, label %31
83: ; preds = %80, %23
%84 = call i32 @fclose(i32* %21)
br label %85
85: ; preds = %83, %1
ret void
}