int test1(buf)
char *buf;
{
  register char *p = buf;
  char *bend;
  char *endfn;
  int contin;
  if (!((1 && isalpha(*p)) || (*p) == '_'))
    return 0;
  bend = skipspace(buf + strlen(buf) - 1, -1);
  switch (*bend) {
  case ';':
    contin = 0;
    break;
  case ')':
    contin = 1;
    break;
  case '{':
    return 0;
  case '}':
    return 0;
  default:
    contin = -1;
  }
  while (((1 && isalnum(*p)) || (*p) == '_'))
    p++;
  endfn = p;
  p = skipspace(p, 1);
  if (*p++ != '(')
    return 0;
  p = skipspace(p, 1);
  if (*p == ')')
    return 0;
  {
    static char *words[] = {
        "asm",      "auto",   "case",     "char",   "const",
        "double",   "extern", "float",    "for",    "if",
        "int",      "long",   "register", "return", "short",
        "signed",   "sizeof", "static",   "switch", "typedef",
        "unsigned", "void",   "volatile", "while",  0};
    char **key = words;
    char *kp;
    int len = endfn - buf;
    while ((kp = *key) != 0) {
      if (strlen(kp) == len && !strncmp(kp, buf, len))
        return 0;
      key++;
    }
  }
  return contin;
}


x86 assembly (clang, -O0):
<test1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movsbl (%rax),%edi
call   1060 <isalpha@plt>
cmp    $0x0,%eax
jne    1195 <test1+0x45>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5f,%eax
je     1195 <test1+0x45>
movl   $0x0,-0x4(%rbp)
jmp    138c <test1+0x23c>
mov    -0x10(%rbp),%rdi
mov    %rdi,-0x50(%rbp)
call   1040 <strlen@plt>
mov    %rax,%rcx
mov    -0x50(%rbp),%rax
lea    -0x1(%rax,%rcx,1),%rdi
xor    %eax,%eax
mov    $0xffffffff,%esi
call   1070 <skipspace@plt>
cltq
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
mov    %eax,-0x48(%rbp)
sub    $0x29,%eax
je     1217 <test1+0xc7>
jmp    11d8 <test1+0x88>
mov    -0x48(%rbp),%eax
sub    $0x3b,%eax
je     120b <test1+0xbb>
jmp    11e9 <test1+0x99>
mov    -0x48(%rbp),%eax
sub    $0x7b,%eax
je     1223 <test1+0xd3>
jmp    11fa <test1+0xaa>
mov    -0x48(%rbp),%eax
sub    $0x7d,%eax
je     122f <test1+0xdf>
jmp    123b <test1+0xeb>
movl   $0x0,-0x2c(%rbp)
jmp    1242 <test1+0xf2>
movl   $0x1,-0x2c(%rbp)
jmp    1242 <test1+0xf2>
movl   $0x0,-0x4(%rbp)
jmp    138c <test1+0x23c>
movl   $0x0,-0x4(%rbp)
jmp    138c <test1+0x23c>
movl   $0xffffffff,-0x2c(%rbp)
jmp    1247 <test1+0xf7>
mov    -0x18(%rbp),%rax
movsbl (%rax),%edi
call   1050 <isalnum@plt>
mov    %eax,%ecx
mov    $0x1,%al
cmp    $0x0,%ecx
mov    %al,-0x51(%rbp)
jne    1273 <test1+0x123>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5f,%eax
sete   %al
mov    %al,-0x51(%rbp)
mov    -0x51(%rbp),%al
test   $0x1,%al
jne    1283 <test1+0x133>
jmp    1294 <test1+0x144>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1247 <test1+0xf7>
mov    -0x18(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1070 <skipspace@plt>
cltq
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x18(%rbp)
movsbl (%rax),%eax
cmp    $0x28,%eax
je     12d9 <test1+0x189>
movl   $0x0,-0x4(%rbp)
jmp    138c <test1+0x23c>
mov    -0x18(%rbp),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1070 <skipspace@plt>
cltq
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x29,%eax
jne    130b <test1+0x1bb>
movl   $0x0,-0x4(%rbp)
jmp    138c <test1+0x23c>
lea    0x2d3e(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    %rcx,%rax
mov    %eax,-0x44(%rbp)
mov    -0x38(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x40(%rbp)
cmp    $0x0,%rax
je     1386 <test1+0x236>
mov    -0x40(%rbp),%rdi
call   1040 <strlen@plt>
movslq -0x44(%rbp),%rcx
cmp    %rcx,%rax
jne    1375 <test1+0x225>
mov    -0x40(%rbp),%rdi
mov    -0x10(%rbp),%rsi
movslq -0x44(%rbp),%rdx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1375 <test1+0x225>
movl   $0x0,-0x4(%rbp)
jmp    138c <test1+0x23c>
mov    -0x38(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x38(%rbp)
jmp    1324 <test1+0x1d4>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test1>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdi,%r14
mov    (%rdi),%bl
movsbl %bl,%edi
call   1060 <isalpha@plt>
test   %eax,%eax
jne    1178 <test1+0x28>
xor    %r15d,%r15d
cmp    $0x5f,%bl
jne    1295 <test1+0x145>
mov    %r14,%rdi
call   1040 <strlen@plt>
lea    (%r14,%rax,1),%rdi
add    $0xffffffffffffffff,%rdi
xor    %r12d,%r12d
mov    $0xffffffff,%esi
xor    %eax,%eax
call   1070 <skipspace@plt>
cltq
movsbl (%rax),%eax
cmp    $0x7a,%eax
jg     11ad <test1+0x5d>
cmp    $0x29,%eax
je     11cd <test1+0x7d>
cmp    $0x3b,%eax
je     11d3 <test1+0x83>
jmp    11c5 <test1+0x75>
cmp    $0x7b,%eax
je     128d <test1+0x13d>
mov    $0x0,%r15d
cmp    $0x7d,%eax
je     1295 <test1+0x145>
mov    $0xffffffff,%r12d
jmp    11d3 <test1+0x83>
mov    $0x1,%r12d
lea    -0x1(%r14),%rbp
movabs $0xffffffff00000000,%r13
ff ff ff
movabs $0x100000000,%r15
nopl   0x0(%rax,%rax,1)
add    %r15,%r13
movzbl 0x1(%rbp),%ebx
add    $0x1,%rbp
movsbl %bl,%edi
call   1050 <isalnum@plt>
test   %eax,%eax
jne    11f0 <test1+0xa0>
cmp    $0x5f,%bl
je     11f0 <test1+0xa0>
xor    %r15d,%r15d
mov    %rbp,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1070 <skipspace@plt>
movslq %eax,%rdi
cmpb   $0x28,(%rdi)
jne    1295 <test1+0x145>
add    $0x1,%rdi
xor    %r15d,%r15d
mov    $0x1,%esi
xor    %eax,%eax
call   1070 <skipspace@plt>
cltq
cmpb   $0x29,(%rax)
je     1295 <test1+0x145>
sar    $0x20,%r13
lea    0xdb5(%rip),%rbp
lea    0x2b06(%rip),%rbx
jmp    126c <test1+0x11c>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    (%rbx),%rbp
add    $0x8,%rbx
test   %rbp,%rbp
je     1292 <test1+0x142>
mov    %rbp,%rdi
call   1040 <strlen@plt>
cmp    %r13,%rax
jne    1260 <test1+0x110>
mov    %rbp,%rdi
mov    %r14,%rsi
mov    %r13,%rdx
call   1030 <strncmp@plt>
test   %eax,%eax
jne    1260 <test1+0x110>
jmp    1295 <test1+0x145>
xor    %r15d,%r15d
jmp    1295 <test1+0x145>
mov    %r12d,%r15d
mov    %r15d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@test1.words = internal global [25 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i32 0, i32 0), i8* null]
@.str = [4 x i8] c"asm\00"
@.str.1 = [5 x i8] c"auto\00"
@.str.2 = [5 x i8] c"case\00"
@.str.3 = [5 x i8] c"char\00"
@.str.4 = [6 x i8] c"const\00"
@.str.5 = [7 x i8] c"double\00"
@.str.6 = [7 x i8] c"extern\00"
@.str.7 = [6 x i8] c"float\00"
@.str.8 = [4 x i8] c"for\00"
@.str.9 = [3 x i8] c"if\00"
@.str.10 = [4 x i8] c"int\00"
@.str.11 = [5 x i8] c"long\00"
@.str.12 = [9 x i8] c"register\00"
@.str.13 = [7 x i8] c"return\00"
@.str.14 = [6 x i8] c"short\00"
@.str.15 = [7 x i8] c"signed\00"
@.str.16 = [7 x i8] c"sizeof\00"
@.str.17 = [7 x i8] c"static\00"
@.str.18 = [7 x i8] c"switch\00"
@.str.19 = [8 x i8] c"typedef\00"
@.str.20 = [9 x i8] c"unsigned\00"
@.str.21 = [5 x i8] c"void\00"
@.str.22 = [9 x i8] c"volatile\00"
@.str.23 = [6 x i8] c"while\00"
define i32 @test1(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8**
%9 = alloca i8*
%10 = alloca i32
store i8* %0, i8** %3
%11 = load i8*, i8** %3
store i8* %11, i8** %4
%12 = load i8*, i8** %4
%13 = load i8, i8* %12
%14 = sext i8 %13 to i32
%15 = call i32 @isalpha(i32 %14)
%16 = icmp ne i32 %15, 0
br i1 %16, label %23, label %17
17: ; preds = %1
%18 = load i8*, i8** %4
%19 = load i8, i8* %18
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 95
br i1 %21, label %23, label %22
22: ; preds = %17
store i32 0, i32* %2
br label %109
23: ; preds = %17, %1
%24 = load i8*, i8** %3
%25 = load i8*, i8** %3
%26 = call i64 @strlen(i8* %25)
%27 = getelementptr inbounds i8, i8* %24, i64 %26
%28 = getelementptr inbounds i8, i8* %27, i64 -1
%29 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @skipspace to i32 (i8*, i32, ...)*)(i8* %28, i32 -1)
%30 = sext i32 %29 to i64
%31 = inttoptr i64 %30 to i8*
store i8* %31, i8** %5
%32 = load i8*, i8** %5
%33 = load i8, i8* %32
%34 = sext i8 %33 to i32
switch i32 %34, label %39 [
i32 59, label %35
i32 41, label %36
i32 123, label %37
i32 125, label %38
]
35: ; preds = %23
store i32 0, i32* %7
br label %40
36: ; preds = %23
store i32 1, i32* %7
br label %40
37: ; preds = %23
store i32 0, i32* %2
br label %109
38: ; preds = %23
store i32 0, i32* %2
br label %109
39: ; preds = %23
store i32 -1, i32* %7
br label %40
40: ; preds = %39, %36, %35
br label %41
41: ; preds = %54, %40
%42 = load i8*, i8** %4
%43 = load i8, i8* %42
%44 = sext i8 %43 to i32
%45 = call i32 @isalnum(i32 %44)
%46 = icmp ne i32 %45, 0
br i1 %46, label %52, label %47
47: ; preds = %41
%48 = load i8*, i8** %4
%49 = load i8, i8* %48
%50 = sext i8 %49 to i32
%51 = icmp eq i32 %50, 95
br label %52
52: ; preds = %47, %41
%53 = phi i1 [ true, %41 ], [ %51, %47 ]
br i1 %53, label %54, label %57
54: ; preds = %52
%55 = load i8*, i8** %4
%56 = getelementptr inbounds i8, i8* %55, i32 1
store i8* %56, i8** %4
br label %41
57: ; preds = %52
%58 = load i8*, i8** %4
store i8* %58, i8** %6
%59 = load i8*, i8** %4
%60 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @skipspace to i32 (i8*, i32, ...)*)(i8* %59, i32 1)
%61 = sext i32 %60 to i64
%62 = inttoptr i64 %61 to i8*
store i8* %62, i8** %4
%63 = load i8*, i8** %4
%64 = getelementptr inbounds i8, i8* %63, i32 1
store i8* %64, i8** %4
%65 = load i8, i8* %63
%66 = sext i8 %65 to i32
%67 = icmp ne i32 %66, 40
br i1 %67, label %68, label %69
68: ; preds = %57
store i32 0, i32* %2
br label %109
69: ; preds = %57
%70 = load i8*, i8** %4
%71 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @skipspace to i32 (i8*, i32, ...)*)(i8* %70, i32 1)
%72 = sext i32 %71 to i64
%73 = inttoptr i64 %72 to i8*
store i8* %73, i8** %4
%74 = load i8*, i8** %4
%75 = load i8, i8* %74
%76 = sext i8 %75 to i32
%77 = icmp eq i32 %76, 41
br i1 %77, label %78, label %79
78: ; preds = %69
store i32 0, i32* %2
br label %109
79: ; preds = %69
store i8** getelementptr inbounds ([25 x i8*], [25 x i8*]* @test1.words, i64 0, i64 0), i8*** %8
%80 = load i8*, i8** %6
%81 = load i8*, i8** %3
%82 = ptrtoint i8* %80 to i64
%83 = ptrtoint i8* %81 to i64
%84 = sub i64 %82, %83
%85 = trunc i64 %84 to i32
store i32 %85, i32* %10
br label %86
86: ; preds = %104, %79
%87 = load i8**, i8*** %8
%88 = load i8*, i8** %87
store i8* %88, i8** %9
%89 = icmp ne i8* %88, null
br i1 %89, label %90, label %107
90: ; preds = %86
%91 = load i8*, i8** %9
%92 = call i64 @strlen(i8* %91)
%93 = load i32, i32* %10
%94 = sext i32 %93 to i64
%95 = icmp eq i64 %92, %94
br i1 %95, label %96, label %104
96: ; preds = %90
%97 = load i8*, i8** %9
%98 = load i8*, i8** %3
%99 = load i32, i32* %10
%100 = sext i32 %99 to i64
%101 = call i32 @strncmp(i8* %97, i8* %98, i64 %100)
%102 = icmp ne i32 %101, 0
br i1 %102, label %104, label %103
103: ; preds = %96
store i32 0, i32* %2
br label %109
104: ; preds = %96, %90
%105 = load i8**, i8*** %8
%106 = getelementptr inbounds i8*, i8** %105, i32 1
store i8** %106, i8*** %8
br label %86
107: ; preds = %86
%108 = load i32, i32* %7
store i32 %108, i32* %2
br label %109
109: ; preds = %107, %103, %78, %68, %38, %37, %22
%110 = load i32, i32* %2
ret i32 %110
}

LLVM IR (-O2):
@test1.words = internal unnamed_addr constant [25 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i32 0, i32 0), i8* null]
@.str = [4 x i8] c"asm\00"
@.str.1 = [5 x i8] c"auto\00"
@.str.2 = [5 x i8] c"case\00"
@.str.3 = [5 x i8] c"char\00"
@.str.4 = [6 x i8] c"const\00"
@.str.5 = [7 x i8] c"double\00"
@.str.6 = [7 x i8] c"extern\00"
@.str.7 = [6 x i8] c"float\00"
@.str.8 = [4 x i8] c"for\00"
@.str.9 = [3 x i8] c"if\00"
@.str.10 = [4 x i8] c"int\00"
@.str.11 = [5 x i8] c"long\00"
@.str.12 = [9 x i8] c"register\00"
@.str.13 = [7 x i8] c"return\00"
@.str.14 = [6 x i8] c"short\00"
@.str.15 = [7 x i8] c"signed\00"
@.str.16 = [7 x i8] c"sizeof\00"
@.str.17 = [7 x i8] c"static\00"
@.str.18 = [7 x i8] c"switch\00"
@.str.19 = [8 x i8] c"typedef\00"
@.str.20 = [9 x i8] c"unsigned\00"
@.str.21 = [5 x i8] c"void\00"
@.str.22 = [9 x i8] c"volatile\00"
@.str.23 = [6 x i8] c"while\00"
define i32 @test1(i8* %0) {
%2 = load i8, i8* %0
%3 = sext i8 %2 to i32
%4 = tail call i32 @isalpha(i32 %3)
%5 = icmp ne i32 %4, 0
%6 = icmp eq i8 %2, 95
%7 = select i1 %5, i1 true, i1 %6
br i1 %7, label %8, label %61
8: ; preds = %1
%9 = tail call i64 @strlen(i8* %0)
%10 = getelementptr inbounds i8, i8* %0, i64 %9
%11 = getelementptr inbounds i8, i8* %10, i64 -1
%12 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @skipspace to i32 (i8*, i32, ...)*)(i8* %11, i32 -1)
%13 = sext i32 %12 to i64
%14 = inttoptr i64 %13 to i8*
%15 = load i8, i8* %14
%16 = sext i8 %15 to i32
switch i32 %16, label %18 [
i32 59, label %19
i32 41, label %17
i32 123, label %61
i32 125, label %61
]
17: ; preds = %8
br label %19
18: ; preds = %8
br label %19
19: ; preds = %8, %18, %17
%20 = phi i32 [ -1, %18 ], [ 1, %17 ], [ 0, %8 ]
br label %21
21: ; preds = %21, %19
%22 = phi i8* [ %0, %19 ], [ %29, %21 ]
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = tail call i32 @isalnum(i32 %24)
%26 = icmp ne i32 %25, 0
%27 = icmp eq i8 %23, 95
%28 = select i1 %26, i1 true, i1 %27
%29 = getelementptr inbounds i8, i8* %22, i64 1
br i1 %28, label %21, label %30
30: ; preds = %21
%31 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @skipspace to i32 (i8*, i32, ...)*)(i8* %22, i32 1)
%32 = sext i32 %31 to i64
%33 = inttoptr i64 %32 to i8*
%34 = load i8, i8* %33
%35 = icmp eq i8 %34, 40
br i1 %35, label %36, label %61
36: ; preds = %30
%37 = getelementptr inbounds i8, i8* %33, i64 1
%38 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @skipspace to i32 (i8*, i32, ...)*)(i8* %37, i32 1)
%39 = sext i32 %38 to i64
%40 = inttoptr i64 %39 to i8*
%41 = load i8, i8* %40
%42 = icmp eq i8 %41, 41
br i1 %42, label %61, label %43
43: ; preds = %36
%44 = ptrtoint i8* %22 to i64
%45 = ptrtoint i8* %0 to i64
%46 = sub i64 %44, %45
%47 = shl i64 %46, 32
%48 = ashr exact i64 %47, 32
br label %49
49: ; preds = %43, %57
%50 = phi i8* [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), %43 ], [ %59, %57 ]
%51 = phi i8** [ getelementptr inbounds ([25 x i8*], [25 x i8*]* @test1.words, i64 0, i64 0), %43 ], [ %58, %57 ]
%52 = tail call i64 @strlen(i8* %50)
%53 = icmp eq i64 %52, %48
br i1 %53, label %54, label %57
54: ; preds = %49
%55 = tail call i32 @strncmp(i8* %50, i8* %0, i64 %48)
%56 = icmp eq i32 %55, 0
br i1 %56, label %61, label %57
57: ; preds = %54, %49
%58 = getelementptr inbounds i8*, i8** %51, i64 1
%59 = load i8*, i8** %58
%60 = icmp eq i8* %59, null
br i1 %60, label %61, label %49
61: ; preds = %54, %57, %36, %30, %8, %8, %1
%62 = phi i32 [ 0, %1 ], [ 0, %8 ], [ 0, %8 ], [ 0, %30 ], [ 0, %36 ], [ 0, %54 ], [ %20, %57 ]
ret i32 %62
}