#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_python_keyword(const char *str, const char *beginning_of_line) {
  static const char *keywords[] = {
      "and",   "del",  "from",   "not",  "while", "as",   "elif",   "global",
      "or",    "with", "assert", "else", "if",    "pass", "import", "print",
      "class", "exec", "in",     "is",   "def",   "for",  "lambda", "self",
  };
  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_python_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    $0x18,%ecx
call   1030 <match_words@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@match_python_keyword.keywords = internal global [24 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 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 ([4 x i8], [4 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 ([3 x i8], [3 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 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 ([3 x i8], [3 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 ([7 x i8], [7 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 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 ([5 x i8], [5 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 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 ([5 x i8], [5 x i8]* @.str.23, i32 0, i32 0)]
@.str = [4 x i8] c"and\00"
@.str.1 = [4 x i8] c"del\00"
@.str.2 = [5 x i8] c"from\00"
@.str.3 = [4 x i8] c"not\00"
@.str.4 = [6 x i8] c"while\00"
@.str.5 = [3 x i8] c"as\00"
@.str.6 = [5 x i8] c"elif\00"
@.str.7 = [7 x i8] c"global\00"
@.str.8 = [3 x i8] c"or\00"
@.str.9 = [5 x i8] c"with\00"
@.str.10 = [7 x i8] c"assert\00"
@.str.11 = [5 x i8] c"else\00"
@.str.12 = [3 x i8] c"if\00"
@.str.13 = [5 x i8] c"pass\00"
@.str.14 = [7 x i8] c"import\00"
@.str.15 = [6 x i8] c"print\00"
@.str.16 = [6 x i8] c"class\00"
@.str.17 = [5 x i8] c"exec\00"
@.str.18 = [3 x i8] c"in\00"
@.str.19 = [3 x i8] c"is\00"
@.str.20 = [4 x i8] c"def\00"
@.str.21 = [4 x i8] c"for\00"
@.str.22 = [7 x i8] c"lambda\00"
@.str.23 = [5 x i8] c"self\00"
@match_python_keyword.keyword_count = internal constant i32 24
define i32 @match_python_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 ([24 x i8*], [24 x i8*]* @match_python_keyword.keywords, i64 0, i64 0), i32 24)
ret i32 %7
}

LLVM IR (-O2):
@match_python_keyword.keywords = internal global [24 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 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 ([4 x i8], [4 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 ([3 x i8], [3 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 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 ([3 x i8], [3 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 ([7 x i8], [7 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 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 ([5 x i8], [5 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 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 ([5 x i8], [5 x i8]* @.str.23, i32 0, i32 0)]
@.str = [4 x i8] c"and\00"
@.str.1 = [4 x i8] c"del\00"
@.str.2 = [5 x i8] c"from\00"
@.str.3 = [4 x i8] c"not\00"
@.str.4 = [6 x i8] c"while\00"
@.str.5 = [3 x i8] c"as\00"
@.str.6 = [5 x i8] c"elif\00"
@.str.7 = [7 x i8] c"global\00"
@.str.8 = [3 x i8] c"or\00"
@.str.9 = [5 x i8] c"with\00"
@.str.10 = [7 x i8] c"assert\00"
@.str.11 = [5 x i8] c"else\00"
@.str.12 = [3 x i8] c"if\00"
@.str.13 = [5 x i8] c"pass\00"
@.str.14 = [7 x i8] c"import\00"
@.str.15 = [6 x i8] c"print\00"
@.str.16 = [6 x i8] c"class\00"
@.str.17 = [5 x i8] c"exec\00"
@.str.18 = [3 x i8] c"in\00"
@.str.19 = [3 x i8] c"is\00"
@.str.20 = [4 x i8] c"def\00"
@.str.21 = [4 x i8] c"for\00"
@.str.22 = [7 x i8] c"lambda\00"
@.str.23 = [5 x i8] c"self\00"
define i32 @match_python_keyword(i8* %0, i8* %1) {
%3 = tail call i32 @match_words(i8* %0, i8* %1, i8** getelementptr inbounds ([24 x i8*], [24 x i8*]* @match_python_keyword.keywords, i64 0, i64 0), i32 24)
ret i32 %3
}