#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 */
scalar_t__ strcmp(char const *, char const *);
int isPyKeyword(const char *word) {
  static const char *kwds[] = {"False",
                               "None",
                               "True",
                               "and",
                               "as",
                               "assert",
                               "break",
                               "class",
                               "continue",
                               "def",
                               "del",
                               "elif",
                               "else",
                               "except",
                               "finally",
                               "for",
                               "from",
                               "global",
                               "if",
                               "import",
                               "in",
                               "is",
                               "lambda",
                               "nonlocal",
                               "not",
                               "or",
                               "pass",
                               "raise",
                               "return",
                               "try",
                               "while",
                               "with'"
                               "yield",
                               "exec",
                               "print",
                               NULL};
  const char **kwd;
  for (kwd = kwds; *kwd != NULL; ++kwd)
    if (strcmp(*kwd, word) == 0)
      return 1;
  return 0;
}


x86 assembly (clang, -O0):
<isPyKeyword>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
lea    0x2f0d(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
cmpq   $0x0,(%rax)
je     1171 <isPyKeyword+0x61>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    115b <isPyKeyword+0x4b>
movl   $0x1,-0x4(%rbp)
jmp    1178 <isPyKeyword+0x68>
jmp    1160 <isPyKeyword+0x50>
mov    -0x18(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x18(%rbp)
jmp    1127 <isPyKeyword+0x17>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isPyKeyword>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
lea    0xee2(%rip),%rdi
lea    0x2be3(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r14,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     114d <isPyKeyword+0x3d>
mov    (%rbx),%rdi
add    $0x8,%rbx
test   %rdi,%rdi
jne    1130 <isPyKeyword+0x20>
xor    %eax,%eax
jmp    1152 <isPyKeyword+0x42>
mov    $0x1,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@isPyKeyword.kwds = internal global [35 x i8*] [i8* getelementptr inbounds ([6 x i8], [6 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 ([4 x i8], [4 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 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 ([6 x i8], [6 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 ([9 x i8], [9 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 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 ([5 x i8], [5 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 ([8 x i8], [8 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 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 ([3 x i8], [3 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 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 ([9 x i8], [9 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 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 ([6 x i8], [6 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.28, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.29, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.30, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.31, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.32, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.33, i32 0, i32 0), i8* null]
@.str = [6 x i8] c"False\00"
@.str.1 = [5 x i8] c"None\00"
@.str.2 = [5 x i8] c"True\00"
@.str.3 = [4 x i8] c"and\00"
@.str.4 = [3 x i8] c"as\00"
@.str.5 = [7 x i8] c"assert\00"
@.str.6 = [6 x i8] c"break\00"
@.str.7 = [6 x i8] c"class\00"
@.str.8 = [9 x i8] c"continue\00"
@.str.9 = [4 x i8] c"def\00"
@.str.10 = [4 x i8] c"del\00"
@.str.11 = [5 x i8] c"elif\00"
@.str.12 = [5 x i8] c"else\00"
@.str.13 = [7 x i8] c"except\00"
@.str.14 = [8 x i8] c"finally\00"
@.str.15 = [4 x i8] c"for\00"
@.str.16 = [5 x i8] c"from\00"
@.str.17 = [7 x i8] c"global\00"
@.str.18 = [3 x i8] c"if\00"
@.str.19 = [7 x i8] c"import\00"
@.str.20 = [3 x i8] c"in\00"
@.str.21 = [3 x i8] c"is\00"
@.str.22 = [7 x i8] c"lambda\00"
@.str.23 = [9 x i8] c"nonlocal\00"
@.str.24 = [4 x i8] c"not\00"
@.str.25 = [3 x i8] c"or\00"
@.str.26 = [5 x i8] c"pass\00"
@.str.27 = [6 x i8] c"raise\00"
@.str.28 = [7 x i8] c"return\00"
@.str.29 = [4 x i8] c"try\00"
@.str.30 = [6 x i8] c"while\00"
@.str.31 = [11 x i8] c"with'yield\00"
@.str.32 = [5 x i8] c"exec\00"
@.str.33 = [6 x i8] c"print\00"
define i32 @isPyKeyword(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i8**
store i8* %0, i8** %3
store i8** getelementptr inbounds ([35 x i8*], [35 x i8*]* @isPyKeyword.kwds, i64 0, i64 0), i8*** %4
br label %5
5: ; preds = %17, %1
%6 = load i8**, i8*** %4
%7 = load i8*, i8** %6
%8 = icmp ne i8* %7, null
br i1 %8, label %9, label %20
9: ; preds = %5
%10 = load i8**, i8*** %4
%11 = load i8*, i8** %10
%12 = load i8*, i8** %3
%13 = call i64 @strcmp(i8* %11, i8* %12)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %9
store i32 1, i32* %2
br label %21
16: ; preds = %9
br label %17
17: ; preds = %16
%18 = load i8**, i8*** %4
%19 = getelementptr inbounds i8*, i8** %18, i32 1
store i8** %19, i8*** %4
br label %5
20: ; preds = %5
store i32 0, i32* %2
br label %21
21: ; preds = %20, %15
%22 = load i32, i32* %2
ret i32 %22
}

LLVM IR (-O2):
@isPyKeyword.kwds = internal unnamed_addr constant [35 x i8*] [i8* getelementptr inbounds ([6 x i8], [6 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 ([4 x i8], [4 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 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 ([6 x i8], [6 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 ([9 x i8], [9 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 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 ([5 x i8], [5 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 ([8 x i8], [8 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 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 ([3 x i8], [3 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 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 ([9 x i8], [9 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 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 ([6 x i8], [6 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.28, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.29, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.30, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.31, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.32, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.33, i32 0, i32 0), i8* null]
@.str = [6 x i8] c"False\00"
@.str.1 = [5 x i8] c"None\00"
@.str.2 = [5 x i8] c"True\00"
@.str.3 = [4 x i8] c"and\00"
@.str.4 = [3 x i8] c"as\00"
@.str.5 = [7 x i8] c"assert\00"
@.str.6 = [6 x i8] c"break\00"
@.str.7 = [6 x i8] c"class\00"
@.str.8 = [9 x i8] c"continue\00"
@.str.9 = [4 x i8] c"def\00"
@.str.10 = [4 x i8] c"del\00"
@.str.11 = [5 x i8] c"elif\00"
@.str.12 = [5 x i8] c"else\00"
@.str.13 = [7 x i8] c"except\00"
@.str.14 = [8 x i8] c"finally\00"
@.str.15 = [4 x i8] c"for\00"
@.str.16 = [5 x i8] c"from\00"
@.str.17 = [7 x i8] c"global\00"
@.str.18 = [3 x i8] c"if\00"
@.str.19 = [7 x i8] c"import\00"
@.str.20 = [3 x i8] c"in\00"
@.str.21 = [3 x i8] c"is\00"
@.str.22 = [7 x i8] c"lambda\00"
@.str.23 = [9 x i8] c"nonlocal\00"
@.str.24 = [4 x i8] c"not\00"
@.str.25 = [3 x i8] c"or\00"
@.str.26 = [5 x i8] c"pass\00"
@.str.27 = [6 x i8] c"raise\00"
@.str.28 = [7 x i8] c"return\00"
@.str.29 = [4 x i8] c"try\00"
@.str.30 = [6 x i8] c"while\00"
@.str.31 = [11 x i8] c"with'yield\00"
@.str.32 = [5 x i8] c"exec\00"
@.str.33 = [6 x i8] c"print\00"
define i32 @isPyKeyword(i8* %0) {
br label %5
2: ; preds = %5
%3 = load i8*, i8** %10
%4 = icmp eq i8* %3, null
br i1 %4, label %11, label %5
5: ; preds = %1, %2
%6 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), %1 ], [ %3, %2 ]
%7 = phi i8** [ getelementptr inbounds ([35 x i8*], [35 x i8*]* @isPyKeyword.kwds, i64 0, i64 0), %1 ], [ %10, %2 ]
%8 = tail call i64 @strcmp(i8* %6, i8* %0)
%9 = icmp eq i64 %8, 0
%10 = getelementptr inbounds i8*, i8** %7, i64 1
br i1 %9, label %11, label %2
11: ; preds = %2, %5
%12 = phi i32 [ 1, %5 ], [ 0, %2 ]
ret i32 %12
}