#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 */
unsigned int ControlMask;
unsigned int LockMask;
unsigned int Mod1Mask;
unsigned int Mod2Mask;
unsigned int Mod3Mask;
unsigned int Mod4Mask;
unsigned int Mod5Mask;
unsigned int ShiftMask;
scalar_t__ strcasecmp(char *, char *);
scalar_t__ strcmp(char *, char *);
scalar_t__ strncasecmp(char *, char *, int);
unsigned int modname_to_modifier(char *str) {
  if (strcasecmp(str, "shift") == 0 || strcmp(str, "S") == 0)
    return ShiftMask;
  if (strcasecmp(str, "lock") == 0)
    return LockMask;
  if (strcasecmp(str, "control") == 0 || strcasecmp(str, "ctrl") == 0 ||
      strcmp(str, "C") == 0)
    return ControlMask;
  if (strcasecmp(str, "mod1") == 0 || strcasecmp(str, "alt") == 0 ||
      strcasecmp(str, "meta") == 0 || strcmp(str, "A") == 0 ||
      strcmp(str, "M") == 0)
    return Mod1Mask;
  if (strcasecmp(str, "mod2") == 0)
    return Mod2Mask;
  if (strcasecmp(str, "mod3") == 0)
    return Mod3Mask;
  if (strcasecmp(str, "mod4") == 0 || strcasecmp(str, "super") == 0 ||
      strncasecmp(str, "win", 3) == 0 || strcasecmp(str, "hyper") == 0 ||
      strcmp(str, "W") == 0 || strcmp(str, "H") == 0)
    return Mod4Mask;
  if (strcasecmp(str, "mod5") == 0)
    return Mod5Mask;
  return 0;
}


x86 assembly (clang, -O0):
<modname_to_modifier>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xeb9(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     1170 <modname_to_modifier+0x40>
mov    -0x10(%rbp),%rdi
lea    0xea5(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1181 <modname_to_modifier+0x51>
mov    0x2e69(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    13d8 <modname_to_modifier+0x2a8>
mov    -0x10(%rbp),%rdi
lea    0xe7c(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    11ac <modname_to_modifier+0x7c>
mov    0x2e16(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    13d8 <modname_to_modifier+0x2a8>
mov    -0x10(%rbp),%rdi
lea    0xe56(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     11fa <modname_to_modifier+0xca>
mov    -0x10(%rbp),%rdi
lea    0xe44(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     11fa <modname_to_modifier+0xca>
mov    -0x10(%rbp),%rdi
lea    0xe2f(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    120b <modname_to_modifier+0xdb>
mov    0x2dd7(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    13d8 <modname_to_modifier+0x2a8>
mov    -0x10(%rbp),%rdi
lea    0xe06(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     128d <modname_to_modifier+0x15d>
mov    -0x10(%rbp),%rdi
lea    0xdf1(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     128d <modname_to_modifier+0x15d>
mov    -0x10(%rbp),%rdi
lea    0xddb(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     128d <modname_to_modifier+0x15d>
mov    -0x10(%rbp),%rdi
lea    0xdc6(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     128d <modname_to_modifier+0x15d>
mov    -0x10(%rbp),%rdi
lea    0xdae(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    129e <modname_to_modifier+0x16e>
mov    0x2d3c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    13d8 <modname_to_modifier+0x2a8>
mov    -0x10(%rbp),%rdi
lea    0xd85(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    12c9 <modname_to_modifier+0x199>
mov    0x2cf1(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    13d8 <modname_to_modifier+0x2a8>
mov    -0x10(%rbp),%rdi
lea    0xd5f(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    12f4 <modname_to_modifier+0x1c4>
mov    0x2cde(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    13d8 <modname_to_modifier+0x2a8>
mov    -0x10(%rbp),%rdi
lea    0xd39(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     1395 <modname_to_modifier+0x265>
mov    -0x10(%rbp),%rdi
lea    0xd24(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     1395 <modname_to_modifier+0x265>
mov    -0x10(%rbp),%rdi
lea    0xd10(%rip),%rsi
mov    $0x3,%edx
call   1050 <strncasecmp@plt>
cmp    $0x0,%rax
je     1395 <modname_to_modifier+0x265>
mov    -0x10(%rbp),%rdi
lea    0xcf5(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     1395 <modname_to_modifier+0x265>
mov    -0x10(%rbp),%rdi
lea    0xce1(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     1395 <modname_to_modifier+0x265>
mov    -0x10(%rbp),%rdi
lea    0xcc9(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    13a6 <modname_to_modifier+0x276>
mov    0x2c54(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    13d8 <modname_to_modifier+0x2a8>
mov    -0x10(%rbp),%rdi
lea    0xca0(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    13d1 <modname_to_modifier+0x2a1>
mov    0x2bd9(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    13d8 <modname_to_modifier+0x2a8>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<modname_to_modifier>:
push   %rbx
mov    %rdi,%rbx
lea    0xec5(%rip),%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1314 <modname_to_modifier+0x1e4>
lea    0xeb6(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1314 <modname_to_modifier+0x1e4>
lea    0xea0(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1326 <modname_to_modifier+0x1f6>
lea    0xe8d(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     131d <modname_to_modifier+0x1ed>
lea    0xe7d(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     131d <modname_to_modifier+0x1ed>
lea    0xe6a(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     131d <modname_to_modifier+0x1ed>
lea    0xe54(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     132f <modname_to_modifier+0x1ff>
lea    0xe41(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     132f <modname_to_modifier+0x1ff>
lea    0xe2d(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     132f <modname_to_modifier+0x1ff>
lea    0xe1a(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     132f <modname_to_modifier+0x1ff>
lea    0xe04(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     132f <modname_to_modifier+0x1ff>
lea    0xdee(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     133a <modname_to_modifier+0x20a>
lea    0xddb(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     134c <modname_to_modifier+0x21c>
lea    0xdc8(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1343 <modname_to_modifier+0x213>
lea    0xdb5(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1343 <modname_to_modifier+0x213>
lea    0xda3(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
call   1050 <strncasecmp@plt>
test   %rax,%rax
je     1343 <modname_to_modifier+0x213>
lea    0xd8a(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1343 <modname_to_modifier+0x213>
lea    0xd7c(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1343 <modname_to_modifier+0x213>
lea    0xd6a(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1343 <modname_to_modifier+0x213>
lea    0xd58(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
jne    1338 <modname_to_modifier+0x208>
mov    0x2c8e(%rip),%rax
jmp    1336 <modname_to_modifier+0x206>
mov    0x2cc5(%rip),%rax
jmp    1336 <modname_to_modifier+0x206>
mov    0x2cb4(%rip),%rax
jmp    1336 <modname_to_modifier+0x206>
mov    0x2c8b(%rip),%rax
jmp    1336 <modname_to_modifier+0x206>
mov    0x2c9a(%rip),%rax
mov    (%rax),%eax
pop    %rbx
ret
mov    0x2c6f(%rip),%rax
jmp    1336 <modname_to_modifier+0x206>
mov    0x2ca6(%rip),%rax
jmp    1336 <modname_to_modifier+0x206>
mov    0x2c75(%rip),%rax
jmp    1336 <modname_to_modifier+0x206>

LLVM IR (-O0):
@.str = [6 x i8] c"shift\00"
@.str.1 = [2 x i8] c"S\00"
@ShiftMask = global i32 0
@.str.2 = [5 x i8] c"lock\00"
@LockMask = global i32 0
@.str.3 = [8 x i8] c"control\00"
@.str.4 = [5 x i8] c"ctrl\00"
@.str.5 = [2 x i8] c"C\00"
@ControlMask = global i32 0
@.str.6 = [5 x i8] c"mod1\00"
@.str.7 = [4 x i8] c"alt\00"
@.str.8 = [5 x i8] c"meta\00"
@.str.9 = [2 x i8] c"A\00"
@.str.10 = [2 x i8] c"M\00"
@Mod1Mask = global i32 0
@.str.11 = [5 x i8] c"mod2\00"
@Mod2Mask = global i32 0
@.str.12 = [5 x i8] c"mod3\00"
@Mod3Mask = global i32 0
@.str.13 = [5 x i8] c"mod4\00"
@.str.14 = [6 x i8] c"super\00"
@.str.15 = [4 x i8] c"win\00"
@.str.16 = [6 x i8] c"hyper\00"
@.str.17 = [2 x i8] c"W\00"
@.str.18 = [2 x i8] c"H\00"
@Mod4Mask = global i32 0
@.str.19 = [5 x i8] c"mod5\00"
@Mod5Mask = global i32 0
define i32 @modname_to_modifier(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i64 @strcasecmp(i8* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%6 = icmp eq i64 %5, 0
br i1 %6, label %11, label %7
7: ; preds = %1
%8 = load i8*, i8** %3
%9 = call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %7, %1
%12 = load i32, i32* @ShiftMask
store i32 %12, i32* %2
br label %100
13: ; preds = %7
%14 = load i8*, i8** %3
%15 = call i64 @strcasecmp(i8* %14, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = load i32, i32* @LockMask
store i32 %18, i32* %2
br label %100
19: ; preds = %13
%20 = load i8*, i8** %3
%21 = call i64 @strcasecmp(i8* %20, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%22 = icmp eq i64 %21, 0
br i1 %22, label %31, label %23
23: ; preds = %19
%24 = load i8*, i8** %3
%25 = call i64 @strcasecmp(i8* %24, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %31, label %27
27: ; preds = %23
%28 = load i8*, i8** %3
%29 = call i64 @strcmp(i8* %28, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %27, %23, %19
%32 = load i32, i32* @ControlMask
store i32 %32, i32* %2
br label %100
33: ; preds = %27
%34 = load i8*, i8** %3
%35 = call i64 @strcasecmp(i8* %34, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %53, label %37
37: ; preds = %33
%38 = load i8*, i8** %3
%39 = call i64 @strcasecmp(i8* %38, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %53, label %41
41: ; preds = %37
%42 = load i8*, i8** %3
%43 = call i64 @strcasecmp(i8* %42, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%44 = icmp eq i64 %43, 0
br i1 %44, label %53, label %45
45: ; preds = %41
%46 = load i8*, i8** %3
%47 = call i64 @strcmp(i8* %46, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %53, label %49
49: ; preds = %45
%50 = load i8*, i8** %3
%51 = call i64 @strcmp(i8* %50, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %55
53: ; preds = %49, %45, %41, %37, %33
%54 = load i32, i32* @Mod1Mask
store i32 %54, i32* %2
br label %100
55: ; preds = %49
%56 = load i8*, i8** %3
%57 = call i64 @strcasecmp(i8* %56, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%58 = icmp eq i64 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %55
%60 = load i32, i32* @Mod2Mask
store i32 %60, i32* %2
br label %100
61: ; preds = %55
%62 = load i8*, i8** %3
%63 = call i64 @strcasecmp(i8* %62, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %67
65: ; preds = %61
%66 = load i32, i32* @Mod3Mask
store i32 %66, i32* %2
br label %100
67: ; preds = %61
%68 = load i8*, i8** %3
%69 = call i64 @strcasecmp(i8* %68, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%70 = icmp eq i64 %69, 0
br i1 %70, label %91, label %71
71: ; preds = %67
%72 = load i8*, i8** %3
%73 = call i64 @strcasecmp(i8* %72, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
%74 = icmp eq i64 %73, 0
br i1 %74, label %91, label %75
75: ; preds = %71
%76 = load i8*, i8** %3
%77 = call i64 @strncasecmp(i8* %76, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), i32 3)
%78 = icmp eq i64 %77, 0
br i1 %78, label %91, label %79
79: ; preds = %75
%80 = load i8*, i8** %3
%81 = call i64 @strcasecmp(i8* %80, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0))
%82 = icmp eq i64 %81, 0
br i1 %82, label %91, label %83
83: ; preds = %79
%84 = load i8*, i8** %3
%85 = call i64 @strcmp(i8* %84, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0))
%86 = icmp eq i64 %85, 0
br i1 %86, label %91, label %87
87: ; preds = %83
%88 = load i8*, i8** %3
%89 = call i64 @strcmp(i8* %88, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i64 0, i64 0))
%90 = icmp eq i64 %89, 0
br i1 %90, label %91, label %93
91: ; preds = %87, %83, %79, %75, %71, %67
%92 = load i32, i32* @Mod4Mask
store i32 %92, i32* %2
br label %100
93: ; preds = %87
%94 = load i8*, i8** %3
%95 = call i64 @strcasecmp(i8* %94, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0))
%96 = icmp eq i64 %95, 0
br i1 %96, label %97, label %99
97: ; preds = %93
%98 = load i32, i32* @Mod5Mask
store i32 %98, i32* %2
br label %100
99: ; preds = %93
store i32 0, i32* %2
br label %100
100: ; preds = %99, %97, %91, %65, %59, %53, %31, %17, %11
%101 = load i32, i32* %2
ret i32 %101
}

LLVM IR (-O2):
@.str = [6 x i8] c"shift\00"
@.str.1 = [2 x i8] c"S\00"
@ShiftMask = global i32 0
@.str.2 = [5 x i8] c"lock\00"
@LockMask = global i32 0
@.str.3 = [8 x i8] c"control\00"
@.str.4 = [5 x i8] c"ctrl\00"
@.str.5 = [2 x i8] c"C\00"
@ControlMask = global i32 0
@.str.6 = [5 x i8] c"mod1\00"
@.str.7 = [4 x i8] c"alt\00"
@.str.8 = [5 x i8] c"meta\00"
@.str.9 = [2 x i8] c"A\00"
@.str.10 = [2 x i8] c"M\00"
@Mod1Mask = global i32 0
@.str.11 = [5 x i8] c"mod2\00"
@Mod2Mask = global i32 0
@.str.12 = [5 x i8] c"mod3\00"
@Mod3Mask = global i32 0
@.str.13 = [5 x i8] c"mod4\00"
@.str.14 = [6 x i8] c"super\00"
@.str.15 = [4 x i8] c"win\00"
@.str.16 = [6 x i8] c"hyper\00"
@.str.17 = [2 x i8] c"W\00"
@.str.18 = [2 x i8] c"H\00"
@Mod4Mask = global i32 0
@.str.19 = [5 x i8] c"mod5\00"
@Mod5Mask = global i32 0
define i32 @modname_to_modifier(i8* %0) {
%2 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i64 %2, 0
br i1 %3, label %7, label %4
4: ; preds = %1
%5 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %4, %1
%8 = load i32, i32* @ShiftMask
br label %77
9: ; preds = %4
%10 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = load i32, i32* @LockMask
br label %77
14: ; preds = %9
%15 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %23, label %17
17: ; preds = %14
%18 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%19 = icmp eq i64 %18, 0
br i1 %19, label %23, label %20
20: ; preds = %17
%21 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %20, %17, %14
%24 = load i32, i32* @ControlMask
br label %77
25: ; preds = %20
%26 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %40, label %28
28: ; preds = %25
%29 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %40, label %31
31: ; preds = %28
%32 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %40, label %34
34: ; preds = %31
%35 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %40, label %37
37: ; preds = %34
%38 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %37, %34, %31, %28, %25
%41 = load i32, i32* @Mod1Mask
br label %77
42: ; preds = %37
%43 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%44 = icmp eq i64 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %42
%46 = load i32, i32* @Mod2Mask
br label %77
47: ; preds = %42
%48 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %47
%51 = load i32, i32* @Mod3Mask
br label %77
52: ; preds = %47
%53 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%54 = icmp eq i64 %53, 0
br i1 %54, label %70, label %55
55: ; preds = %52
%56 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
%57 = icmp eq i64 %56, 0
br i1 %57, label %70, label %58
58: ; preds = %55
%59 = tail call i64 @strncasecmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), i32 3)
%60 = icmp eq i64 %59, 0
br i1 %60, label %70, label %61
61: ; preds = %58
%62 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0))
%63 = icmp eq i64 %62, 0
br i1 %63, label %70, label %64
64: ; preds = %61
%65 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0))
%66 = icmp eq i64 %65, 0
br i1 %66, label %70, label %67
67: ; preds = %64
%68 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i64 0, i64 0))
%69 = icmp eq i64 %68, 0
br i1 %69, label %70, label %72
70: ; preds = %67, %64, %61, %58, %55, %52
%71 = load i32, i32* @Mod4Mask
br label %77
72: ; preds = %67
%73 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0))
%74 = icmp eq i64 %73, 0
%75 = load i32, i32* @Mod5Mask
%76 = select i1 %74, i32 %75, i32 0
br label %77
77: ; preds = %72, %70, %50, %45, %40, %23, %12, %7
%78 = phi i32 [ %8, %7 ], [ %13, %12 ], [ %24, %23 ], [ %41, %40 ], [ %46, %45 ], [ %51, %50 ], [ %71, %70 ], [ %76, %72 ]
ret i32 %78
}