#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 */
typedef int /*<<< orphan*/ keywords;
typedef int int64_t;

/* Variables and functions */
int match_words(char const *, char const *, char const **, int const);
int64_t match_cpp_keyword(const char *str, const char *beginning_of_line) {
  static const char *keywords[] = {
      "Asm",        "auto",        "bool",
      "case",       "char",        "class",
      "const_cast", "constexpr",   "default",
      "delete",     "do",          "double",
      "else",       "enum",        "dynamic_cast",
      "extern",     "false",       "float",
      "for",        "union",       "unsigned",
      "using",      "friend",      "if",
      "inline",     "int",         "long",
      "mutable",    "virtual",     "namespace",
      "new",        "nullptr",     "operator",
      "private",    "protected",   "public",
      "register",   "void",        "reinterpret_cast",
      "short",      "signed",      "sizeof",
      "static",     "static_cast", "volatile",
      "struct",     "switch",      "template",
      "this",       "true",        "typedef",
      "typeid",     "typename",    "unsigned",
      "wchar_t",    "while",
  };
  static const int64_t keyword_count = sizeof(keywords) / sizeof(keywords[0]);
  return match_words(str, beginning_of_line, keywords, keyword_count);
}


x86 assembly (clang, -O0):
<match_cpp_keyword>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0x2f01(%rip),%rdx
mov    $0x38,%ecx
call   1030 <match_words@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<match_cpp_keyword>:
lea    0x2f19(%rip),%rdx
mov    $0x38,%ecx
jmp    1030 <match_words@plt>

LLVM IR (-O0):
@match_cpp_keyword.keywords = internal global [56 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 ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 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 ([6 x i8], [6 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 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 ([6 x i8], [6 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.28, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.29, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.30, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.31, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.32, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.33, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.34, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.35, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.36, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.37, i32 0, i32 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.38, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.39, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.40, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.41, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.42, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.43, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.44, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.45, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.46, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.47, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.48, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.49, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.50, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.51, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.52, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.53, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.54, i32 0, i32 0)]
@.str = [4 x i8] c"Asm\00"
@.str.1 = [5 x i8] c"auto\00"
@.str.2 = [5 x i8] c"bool\00"
@.str.3 = [5 x i8] c"case\00"
@.str.4 = [5 x i8] c"char\00"
@.str.5 = [6 x i8] c"class\00"
@.str.6 = [11 x i8] c"const_cast\00"
@.str.7 = [10 x i8] c"constexpr\00"
@.str.8 = [8 x i8] c"default\00"
@.str.9 = [7 x i8] c"delete\00"
@.str.10 = [3 x i8] c"do\00"
@.str.11 = [7 x i8] c"double\00"
@.str.12 = [5 x i8] c"else\00"
@.str.13 = [5 x i8] c"enum\00"
@.str.14 = [13 x i8] c"dynamic_cast\00"
@.str.15 = [7 x i8] c"extern\00"
@.str.16 = [6 x i8] c"false\00"
@.str.17 = [6 x i8] c"float\00"
@.str.18 = [4 x i8] c"for\00"
@.str.19 = [6 x i8] c"union\00"
@.str.20 = [9 x i8] c"unsigned\00"
@.str.21 = [6 x i8] c"using\00"
@.str.22 = [7 x i8] c"friend\00"
@.str.23 = [3 x i8] c"if\00"
@.str.24 = [7 x i8] c"inline\00"
@.str.25 = [4 x i8] c"int\00"
@.str.26 = [5 x i8] c"long\00"
@.str.27 = [8 x i8] c"mutable\00"
@.str.28 = [8 x i8] c"virtual\00"
@.str.29 = [10 x i8] c"namespace\00"
@.str.30 = [4 x i8] c"new\00"
@.str.31 = [8 x i8] c"nullptr\00"
@.str.32 = [9 x i8] c"operator\00"
@.str.33 = [8 x i8] c"private\00"
@.str.34 = [10 x i8] c"protected\00"
@.str.35 = [7 x i8] c"public\00"
@.str.36 = [9 x i8] c"register\00"
@.str.37 = [5 x i8] c"void\00"
@.str.38 = [17 x i8] c"reinterpret_cast\00"
@.str.39 = [6 x i8] c"short\00"
@.str.40 = [7 x i8] c"signed\00"
@.str.41 = [7 x i8] c"sizeof\00"
@.str.42 = [7 x i8] c"static\00"
@.str.43 = [12 x i8] c"static_cast\00"
@.str.44 = [9 x i8] c"volatile\00"
@.str.45 = [7 x i8] c"struct\00"
@.str.46 = [7 x i8] c"switch\00"
@.str.47 = [9 x i8] c"template\00"
@.str.48 = [5 x i8] c"this\00"
@.str.49 = [5 x i8] c"true\00"
@.str.50 = [8 x i8] c"typedef\00"
@.str.51 = [7 x i8] c"typeid\00"
@.str.52 = [9 x i8] c"typename\00"
@.str.53 = [8 x i8] c"wchar_t\00"
@.str.54 = [6 x i8] c"while\00"
@match_cpp_keyword.keyword_count = internal constant i32 56
define i32 @match_cpp_keyword(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = load i8*, i8** %4
%7 = call i32 @match_words(i8* %5, i8* %6, i8** getelementptr inbounds ([56 x i8*], [56 x i8*]* @match_cpp_keyword.keywords, i64 0, i64 0), i32 56)
ret i32 %7
}

LLVM IR (-O2):
@match_cpp_keyword.keywords = internal global [56 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 ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 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 ([6 x i8], [6 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 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 ([6 x i8], [6 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.28, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.29, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.30, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.31, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.32, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.33, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.34, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.35, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.36, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.37, i32 0, i32 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.38, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.39, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.40, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.41, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.42, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.43, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.44, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.45, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.46, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.47, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.48, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.49, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.50, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.51, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.52, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.53, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.54, i32 0, i32 0)]
@.str = [4 x i8] c"Asm\00"
@.str.1 = [5 x i8] c"auto\00"
@.str.2 = [5 x i8] c"bool\00"
@.str.3 = [5 x i8] c"case\00"
@.str.4 = [5 x i8] c"char\00"
@.str.5 = [6 x i8] c"class\00"
@.str.6 = [11 x i8] c"const_cast\00"
@.str.7 = [10 x i8] c"constexpr\00"
@.str.8 = [8 x i8] c"default\00"
@.str.9 = [7 x i8] c"delete\00"
@.str.10 = [3 x i8] c"do\00"
@.str.11 = [7 x i8] c"double\00"
@.str.12 = [5 x i8] c"else\00"
@.str.13 = [5 x i8] c"enum\00"
@.str.14 = [13 x i8] c"dynamic_cast\00"
@.str.15 = [7 x i8] c"extern\00"
@.str.16 = [6 x i8] c"false\00"
@.str.17 = [6 x i8] c"float\00"
@.str.18 = [4 x i8] c"for\00"
@.str.19 = [6 x i8] c"union\00"
@.str.20 = [9 x i8] c"unsigned\00"
@.str.21 = [6 x i8] c"using\00"
@.str.22 = [7 x i8] c"friend\00"
@.str.23 = [3 x i8] c"if\00"
@.str.24 = [7 x i8] c"inline\00"
@.str.25 = [4 x i8] c"int\00"
@.str.26 = [5 x i8] c"long\00"
@.str.27 = [8 x i8] c"mutable\00"
@.str.28 = [8 x i8] c"virtual\00"
@.str.29 = [10 x i8] c"namespace\00"
@.str.30 = [4 x i8] c"new\00"
@.str.31 = [8 x i8] c"nullptr\00"
@.str.32 = [9 x i8] c"operator\00"
@.str.33 = [8 x i8] c"private\00"
@.str.34 = [10 x i8] c"protected\00"
@.str.35 = [7 x i8] c"public\00"
@.str.36 = [9 x i8] c"register\00"
@.str.37 = [5 x i8] c"void\00"
@.str.38 = [17 x i8] c"reinterpret_cast\00"
@.str.39 = [6 x i8] c"short\00"
@.str.40 = [7 x i8] c"signed\00"
@.str.41 = [7 x i8] c"sizeof\00"
@.str.42 = [7 x i8] c"static\00"
@.str.43 = [12 x i8] c"static_cast\00"
@.str.44 = [9 x i8] c"volatile\00"
@.str.45 = [7 x i8] c"struct\00"
@.str.46 = [7 x i8] c"switch\00"
@.str.47 = [9 x i8] c"template\00"
@.str.48 = [5 x i8] c"this\00"
@.str.49 = [5 x i8] c"true\00"
@.str.50 = [8 x i8] c"typedef\00"
@.str.51 = [7 x i8] c"typeid\00"
@.str.52 = [9 x i8] c"typename\00"
@.str.53 = [8 x i8] c"wchar_t\00"
@.str.54 = [6 x i8] c"while\00"
define i32 @match_cpp_keyword(i8* %0, i8* %1) {
%3 = tail call i32 @match_words(i8* %0, i8* %1, i8** getelementptr inbounds ([56 x i8*], [56 x i8*]* @match_cpp_keyword.keywords, i64 0, i64 0), i32 56)
ret i32 %3
}