#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 */

/* Variables and functions */
int strcmp(char *, char *);
char *strrchr(char *, char);
int checkext(char *arch) {
  char *token;
  char *token2;
  int dif, dif2;
  token = strrchr(arch, '.');
  token = token + 1;
  dif = strcmp(token, "html");
  if (dif == 0) {
    return 1;
  } else {
    dif = strcmp(token, "jpg");
    dif2 = strcmp(token, "jpeg");
    if (dif == 0 || dif2 == 0) {
      return 2;
    } else {
      dif = strcmp(token, "txt");
      if (dif == 0) {
        return 3;
      } else {
        dif = strcmp(token, "pdf");
        if (dif == 0) {
          return 4;
        } else {
          dif = strcmp(token, "ico");
          if (dif == 0) {
            return 5;
          } else {
            dif = strcmp(token, "css");
            if (dif == 0) {
              return 6;
            } else {
              dif = strcmp(token, "md");
              if (dif == 0) {
                return 7;
              } else {
                dif = strcmp(token, "js");
                if (dif == 0) {
                  return 8;
                } else {
                  token2 = strrchr(token, '?');
                  if (token2[0] == '?') {
                    token2 = token2 + 1;
                    switch (token2[0]) {
                    case 'a':
                      token2 = token2 + 1;
                      switch (token2[0]) {
                      case '1':
                        return 11;
                        break;
                      case '2':
                        return 1001;
                        break;
                      case '3':
                        return 100001;
                        break;
                      case '4':
                        return 1000001;
                        break;
                      case '5':
                        return 10000001;
                        break;
                      case '6':
                        return 50000001;
                        break;
                      case '7':
                        return 100000001;
                        break;
                      case '8':
                        return 100000001;
                        break;
                      }
                      break;
                    case 'b':
                      token2 = token2 + 1;
                      switch (token2[0]) {
                      case '1':
                        return 12;
                        break;
                      case '2':
                        return 1002;
                        break;
                      case '3':
                        return 100002;
                        break;
                      case '4':
                        return 1000002;
                        break;
                      case '5':
                        return 10000002;
                        break;
                      case '6':
                        return 50000002;
                        break;
                      case '7':
                        return 100000002;
                        break;
                      case '8':
                        return 100000002;
                        break;
                      }
                      break;
                    }
                  } else {
                    return -1;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  return -1;
}


x86 assembly (clang, -O0):
<checkext>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x2e,%esi
call   1030 <strrchr@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xeeb(%rip),%rsi
call   1040 <strcmp@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jne    1173 <checkext+0x53>
movl   $0x1,-0x4(%rbp)
jmp    1482 <checkext+0x362>
mov    -0x18(%rbp),%rdi
lea    0xec7(%rip),%rsi
call   1040 <strcmp@plt>
mov    %eax,-0x24(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xeb8(%rip),%rsi
call   1040 <strcmp@plt>
mov    %eax,-0x28(%rbp)
cmpl   $0x0,-0x24(%rbp)
je     11ad <checkext+0x8d>
cmpl   $0x0,-0x28(%rbp)
jne    11b9 <checkext+0x99>
movl   $0x2,-0x4(%rbp)
jmp    1482 <checkext+0x362>
mov    -0x18(%rbp),%rdi
lea    0xe8a(%rip),%rsi
call   1040 <strcmp@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jne    11e2 <checkext+0xc2>
movl   $0x3,-0x4(%rbp)
jmp    1482 <checkext+0x362>
mov    -0x18(%rbp),%rdi
lea    0xe65(%rip),%rsi
call   1040 <strcmp@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jne    120b <checkext+0xeb>
movl   $0x4,-0x4(%rbp)
jmp    1482 <checkext+0x362>
mov    -0x18(%rbp),%rdi
lea    0xe40(%rip),%rsi
call   1040 <strcmp@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jne    1234 <checkext+0x114>
movl   $0x5,-0x4(%rbp)
jmp    1482 <checkext+0x362>
mov    -0x18(%rbp),%rdi
lea    0xe1b(%rip),%rsi
call   1040 <strcmp@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jne    125d <checkext+0x13d>
movl   $0x6,-0x4(%rbp)
jmp    1482 <checkext+0x362>
mov    -0x18(%rbp),%rdi
lea    0xdf6(%rip),%rsi
call   1040 <strcmp@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jne    1286 <checkext+0x166>
movl   $0x7,-0x4(%rbp)
jmp    1482 <checkext+0x362>
mov    -0x18(%rbp),%rdi
lea    0xdd0(%rip),%rsi
call   1040 <strcmp@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jne    12af <checkext+0x18f>
movl   $0x8,-0x4(%rbp)
jmp    1482 <checkext+0x362>
mov    -0x18(%rbp),%rdi
mov    $0x3f,%esi
call   1030 <strrchr@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3f,%eax
jne    1447 <checkext+0x327>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
mov    %eax,-0x2c(%rbp)
sub    $0x61,%eax
je     1306 <checkext+0x1e6>
jmp    12f5 <checkext+0x1d5>
mov    -0x2c(%rbp),%eax
sub    $0x62,%eax
je     13a4 <checkext+0x284>
jmp    1442 <checkext+0x322>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
add    $0xffffffcf,%eax
mov    %eax,%ecx
mov    %rcx,-0x38(%rbp)
sub    $0x7,%eax
ja     139f <checkext+0x27f>
mov    -0x38(%rbp),%rax
lea    0xcea(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0xb,-0x4(%rbp)
jmp    1482 <checkext+0x362>
movl   $0x3e9,-0x4(%rbp)
jmp    1482 <checkext+0x362>
movl   $0x186a1,-0x4(%rbp)
jmp    1482 <checkext+0x362>
movl   $0xf4241,-0x4(%rbp)
jmp    1482 <checkext+0x362>
movl   $0x989681,-0x4(%rbp)
jmp    1482 <checkext+0x362>
movl   $0x2faf081,-0x4(%rbp)
jmp    1482 <checkext+0x362>
movl   $0x5f5e101,-0x4(%rbp)
jmp    1482 <checkext+0x362>
movl   $0x5f5e101,-0x4(%rbp)
jmp    1482 <checkext+0x362>
jmp    1442 <checkext+0x322>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
add    $0xffffffcf,%eax
mov    %eax,%ecx
mov    %rcx,-0x40(%rbp)
sub    $0x7,%eax
ja     143d <checkext+0x31d>
mov    -0x40(%rbp),%rax
lea    0xc2c(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0xc,-0x4(%rbp)
jmp    1482 <checkext+0x362>
movl   $0x3ea,-0x4(%rbp)
jmp    1482 <checkext+0x362>
movl   $0x186a2,-0x4(%rbp)
jmp    1482 <checkext+0x362>
movl   $0xf4242,-0x4(%rbp)
jmp    1482 <checkext+0x362>
movl   $0x989682,-0x4(%rbp)
jmp    1482 <checkext+0x362>
movl   $0x2faf082,-0x4(%rbp)
jmp    1482 <checkext+0x362>
movl   $0x5f5e102,-0x4(%rbp)
jmp    1482 <checkext+0x362>
movl   $0x5f5e102,-0x4(%rbp)
jmp    1482 <checkext+0x362>
jmp    1442 <checkext+0x322>
jmp    1453 <checkext+0x333>
movl   $0xffffffff,-0x4(%rbp)
jmp    1482 <checkext+0x362>
jmp    1458 <checkext+0x338>
jmp    145d <checkext+0x33d>
jmp    1462 <checkext+0x342>
jmp    1467 <checkext+0x347>
jmp    146c <checkext+0x34c>
jmp    1471 <checkext+0x351>
jmp    1476 <checkext+0x356>
jmp    147b <checkext+0x35b>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<checkext>:
push   %rbp
push   %rbx
push   %rax
mov    $0x2e,%esi
call   1030 <strrchr@plt>
mov    %rax,%rbx
add    $0x1,%rbx
lea    0xec5(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     1243 <checkext+0x123>
lea    0xeb3(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
mov    %eax,%ebp
lea    0xea6(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
mov    %eax,%ecx
mov    $0x2,%eax
test   %ebp,%ebp
je     128f <checkext+0x16f>
test   %ecx,%ecx
je     128f <checkext+0x16f>
lea    0xe85(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     124a <checkext+0x12a>
lea    0xe72(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     1251 <checkext+0x131>
lea    0xe5f(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     1258 <checkext+0x138>
lea    0xe4c(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     125f <checkext+0x13f>
lea    0xe39(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     1266 <checkext+0x146>
lea    0xe29(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     126d <checkext+0x14d>
mov    %rbx,%rdi
mov    $0x3f,%esi
call   1030 <strrchr@plt>
mov    %rax,%rcx
mov    $0xffffffff,%eax
cmpb   $0x3f,(%rcx)
jne    128f <checkext+0x16f>
movsbl 0x1(%rcx),%edx
cmp    $0x62,%edx
je     1274 <checkext+0x154>
cmp    $0x61,%edx
jne    128f <checkext+0x16f>
movsbq 0x2(%rcx),%rcx
add    $0xffffffffffffffcf,%rcx
cmp    $0x8,%ecx
jae    128f <checkext+0x16f>
lea    0xde3(%rip),%rax
jmp    1289 <checkext+0x169>
mov    $0x1,%eax
jmp    128f <checkext+0x16f>
mov    $0x3,%eax
jmp    128f <checkext+0x16f>
mov    $0x4,%eax
jmp    128f <checkext+0x16f>
mov    $0x5,%eax
jmp    128f <checkext+0x16f>
mov    $0x6,%eax
jmp    128f <checkext+0x16f>
mov    $0x7,%eax
jmp    128f <checkext+0x16f>
mov    $0x8,%eax
jmp    128f <checkext+0x16f>
movsbq 0x2(%rcx),%rcx
add    $0xffffffffffffffcf,%rcx
cmp    $0x8,%ecx
jae    128f <checkext+0x16f>
lea    0xdbb(%rip),%rax
lea    (%rax,%rcx,4),%rax
mov    (%rax),%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"html\00"
@.str.1 = [4 x i8] c"jpg\00"
@.str.2 = [5 x i8] c"jpeg\00"
@.str.3 = [4 x i8] c"txt\00"
@.str.4 = [4 x i8] c"pdf\00"
@.str.5 = [4 x i8] c"ico\00"
@.str.6 = [4 x i8] c"css\00"
@.str.7 = [3 x i8] c"md\00"
@.str.8 = [3 x i8] c"js\00"
define i32 @checkext(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
store i8* %0, i8** %3
%8 = load i8*, i8** %3
%9 = call i8* @strrchr(i8* %8, i8 signext 46)
store i8* %9, i8** %4
%10 = load i8*, i8** %4
%11 = getelementptr inbounds i8, i8* %10, i64 1
store i8* %11, i8** %4
%12 = load i8*, i8** %4
%13 = call i32 @strcmp(i8* %12, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
store i32 %13, i32* %6
%14 = load i32, i32* %6
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %1
store i32 1, i32* %2
br label %122
17: ; preds = %1
%18 = load i8*, i8** %4
%19 = call i32 @strcmp(i8* %18, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
store i32 %19, i32* %6
%20 = load i8*, i8** %4
%21 = call i32 @strcmp(i8* %20, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
store i32 %21, i32* %7
%22 = load i32, i32* %6
%23 = icmp eq i32 %22, 0
br i1 %23, label %27, label %24
24: ; preds = %17
%25 = load i32, i32* %7
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %24, %17
store i32 2, i32* %2
br label %122
28: ; preds = %24
%29 = load i8*, i8** %4
%30 = call i32 @strcmp(i8* %29, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
store i32 %30, i32* %6
%31 = load i32, i32* %6
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %28
store i32 3, i32* %2
br label %122
34: ; preds = %28
%35 = load i8*, i8** %4
%36 = call i32 @strcmp(i8* %35, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
store i32 %36, i32* %6
%37 = load i32, i32* %6
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %40
39: ; preds = %34
store i32 4, i32* %2
br label %122
40: ; preds = %34
%41 = load i8*, i8** %4
%42 = call i32 @strcmp(i8* %41, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
store i32 %42, i32* %6
%43 = load i32, i32* %6
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %46
45: ; preds = %40
store i32 5, i32* %2
br label %122
46: ; preds = %40
%47 = load i8*, i8** %4
%48 = call i32 @strcmp(i8* %47, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
store i32 %48, i32* %6
%49 = load i32, i32* %6
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %46
store i32 6, i32* %2
br label %122
52: ; preds = %46
%53 = load i8*, i8** %4
%54 = call i32 @strcmp(i8* %53, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
store i32 %54, i32* %6
%55 = load i32, i32* %6
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %58
57: ; preds = %52
store i32 7, i32* %2
br label %122
58: ; preds = %52
%59 = load i8*, i8** %4
%60 = call i32 @strcmp(i8* %59, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
store i32 %60, i32* %6
%61 = load i32, i32* %6
%62 = icmp eq i32 %61, 0
br i1 %62, label %63, label %64
63: ; preds = %58
store i32 8, i32* %2
br label %122
64: ; preds = %58
%65 = load i8*, i8** %4
%66 = call i8* @strrchr(i8* %65, i8 signext 63)
store i8* %66, i8** %5
%67 = load i8*, i8** %5
%68 = getelementptr inbounds i8, i8* %67, i64 0
%69 = load i8, i8* %68
%70 = sext i8 %69 to i32
%71 = icmp eq i32 %70, 63
br i1 %71, label %72, label %112
72: ; preds = %64
%73 = load i8*, i8** %5
%74 = getelementptr inbounds i8, i8* %73, i64 1
store i8* %74, i8** %5
%75 = load i8*, i8** %5
%76 = getelementptr inbounds i8, i8* %75, i64 0
%77 = load i8, i8* %76
%78 = sext i8 %77 to i32
switch i32 %78, label %111 [
i32 97, label %79
i32 98, label %95
]
79: ; preds = %72
%80 = load i8*, i8** %5
%81 = getelementptr inbounds i8, i8* %80, i64 1
store i8* %81, i8** %5
%82 = load i8*, i8** %5
%83 = getelementptr inbounds i8, i8* %82, i64 0
%84 = load i8, i8* %83
%85 = sext i8 %84 to i32
switch i32 %85, label %94 [
i32 49, label %86
i32 50, label %87
i32 51, label %88
i32 52, label %89
i32 53, label %90
i32 54, label %91
i32 55, label %92
i32 56, label %93
]
86: ; preds = %79
store i32 11, i32* %2
br label %122
87: ; preds = %79
store i32 1001, i32* %2
br label %122
88: ; preds = %79
store i32 100001, i32* %2
br label %122
89: ; preds = %79
store i32 1000001, i32* %2
br label %122
90: ; preds = %79
store i32 10000001, i32* %2
br label %122
91: ; preds = %79
store i32 50000001, i32* %2
br label %122
92: ; preds = %79
store i32 100000001, i32* %2
br label %122
93: ; preds = %79
store i32 100000001, i32* %2
br label %122
94: ; preds = %79
br label %111
95: ; preds = %72
%96 = load i8*, i8** %5
%97 = getelementptr inbounds i8, i8* %96, i64 1
store i8* %97, i8** %5
%98 = load i8*, i8** %5
%99 = getelementptr inbounds i8, i8* %98, i64 0
%100 = load i8, i8* %99
%101 = sext i8 %100 to i32
switch i32 %101, label %110 [
i32 49, label %102
i32 50, label %103
i32 51, label %104
i32 52, label %105
i32 53, label %106
i32 54, label %107
i32 55, label %108
i32 56, label %109
]
102: ; preds = %95
store i32 12, i32* %2
br label %122
103: ; preds = %95
store i32 1002, i32* %2
br label %122
104: ; preds = %95
store i32 100002, i32* %2
br label %122
105: ; preds = %95
store i32 1000002, i32* %2
br label %122
106: ; preds = %95
store i32 10000002, i32* %2
br label %122
107: ; preds = %95
store i32 50000002, i32* %2
br label %122
108: ; preds = %95
store i32 100000002, i32* %2
br label %122
109: ; preds = %95
store i32 100000002, i32* %2
br label %122
110: ; preds = %95
br label %111
111: ; preds = %72, %110, %94
br label %113
112: ; preds = %64
store i32 -1, i32* %2
br label %122
113: ; preds = %111
br label %114
114: ; preds = %113
br label %115
115: ; preds = %114
br label %116
116: ; preds = %115
br label %117
117: ; preds = %116
br label %118
118: ; preds = %117
br label %119
119: ; preds = %118
br label %120
120: ; preds = %119
br label %121
121: ; preds = %120
store i32 -1, i32* %2
br label %122
122: ; preds = %121, %112, %109, %108, %107, %106, %105, %104, %103, %102, %93, %92, %91, %90, %89, %88, %87, %86, %63, %57, %51, %45, %39, %33, %27, %16
%123 = load i32, i32* %2
ret i32 %123
}

LLVM IR (-O2):
@.str = [5 x i8] c"html\00"
@.str.1 = [4 x i8] c"jpg\00"
@.str.2 = [5 x i8] c"jpeg\00"
@.str.3 = [4 x i8] c"txt\00"
@.str.4 = [4 x i8] c"pdf\00"
@.str.5 = [4 x i8] c"ico\00"
@.str.6 = [4 x i8] c"css\00"
@.str.7 = [3 x i8] c"md\00"
@.str.8 = [3 x i8] c"js\00"
@switch.table.checkext = [8 x i32] [i32 11, i32 1001, i32 100001, i32 1000001, i32 10000001, i32 50000001, i32 100000001, i32 100000001]
@switch.table.checkext.9 = [8 x i32] [i32 12, i32 1002, i32 100002, i32 1000002, i32 10000002, i32 50000002, i32 100000002, i32 100000002]
define i32 @checkext(i8* %0) {
%2 = tail call i8* @strrchr(i8* dereferenceable(1) %0, i8 signext 46)
%3 = getelementptr inbounds i8, i8* %2, i64 1
%4 = tail call i32 @strcmp(i8* %3, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%5 = icmp eq i32 %4, 0
br i1 %5, label %59, label %6
6: ; preds = %1
%7 = tail call i32 @strcmp(i8* %3, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%8 = tail call i32 @strcmp(i8* %3, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%9 = icmp eq i32 %7, 0
%10 = icmp eq i32 %8, 0
%11 = select i1 %9, i1 true, i1 %10
br i1 %11, label %59, label %12
12: ; preds = %6
%13 = tail call i32 @strcmp(i8* %3, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%14 = icmp eq i32 %13, 0
br i1 %14, label %59, label %15
15: ; preds = %12
%16 = tail call i32 @strcmp(i8* %3, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%17 = icmp eq i32 %16, 0
br i1 %17, label %59, label %18
18: ; preds = %15
%19 = tail call i32 @strcmp(i8* %3, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%20 = icmp eq i32 %19, 0
br i1 %20, label %59, label %21
21: ; preds = %18
%22 = tail call i32 @strcmp(i8* %3, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%23 = icmp eq i32 %22, 0
br i1 %23, label %59, label %24
24: ; preds = %21
%25 = tail call i32 @strcmp(i8* %3, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%26 = icmp eq i32 %25, 0
br i1 %26, label %59, label %27
27: ; preds = %24
%28 = tail call i32 @strcmp(i8* %3, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%29 = icmp eq i32 %28, 0
br i1 %29, label %59, label %30
30: ; preds = %27
%31 = tail call i8* @strrchr(i8* %3, i8 signext 63)
%32 = load i8, i8* %31
%33 = icmp eq i8 %32, 63
br i1 %33, label %34, label %59
34: ; preds = %30
%35 = getelementptr inbounds i8, i8* %31, i64 1
%36 = load i8, i8* %35
%37 = sext i8 %36 to i32
switch i32 %37, label %59 [
i32 97, label %38
i32 98, label %44
]
38: ; preds = %34
%39 = getelementptr inbounds i8, i8* %31, i64 2
%40 = load i8, i8* %39
%41 = sext i8 %40 to i32
%42 = add nsw i32 %41, -49
%43 = icmp ult i32 %42, 8
br i1 %43, label %50, label %59
44: ; preds = %34
%45 = getelementptr inbounds i8, i8* %31, i64 2
%46 = load i8, i8* %45
%47 = sext i8 %46 to i32
%48 = add nsw i32 %47, -49
%49 = icmp ult i32 %48, 8
br i1 %49, label %53, label %59
50: ; preds = %38
%51 = sext i32 %42 to i64
%52 = getelementptr inbounds [8 x i32], [8 x i32]* @switch.table.checkext, i64 0, i64 %51
br label %56
53: ; preds = %44
%54 = sext i32 %48 to i64
%55 = getelementptr inbounds [8 x i32], [8 x i32]* @switch.table.checkext.9, i64 0, i64 %54
br label %56
56: ; preds = %50, %53
%57 = phi i32* [ %55, %53 ], [ %52, %50 ]
%58 = load i32, i32* %57
br label %59
59: ; preds = %56, %34, %38, %44, %30, %27, %24, %21, %18, %15, %12, %6, %1
%60 = phi i32 [ 1, %1 ], [ 2, %6 ], [ 3, %12 ], [ 4, %15 ], [ 5, %18 ], [ 6, %21 ], [ 7, %24 ], [ 8, %27 ], [ -1, %30 ], [ -1, %44 ], [ -1, %38 ], [ -1, %34 ], [ %58, %56 ]
ret i32 %60
}