int Lexeme_estKey(char const *t) {
  const char mots[11][10] = {"var",
                             "str",
                             "for",
                             "while",
                             "if",
                             "else"
                             "switch",
                             "case",
                             "function",
                             "return",
                             "class"};
  for (int i = 0; i < 11; i++)
    if (strcmp(t, mots[i]) == 0)
      return 1;
  return 0;
}


x86 assembly (clang, -O0):
<Lexeme_estKey>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x10(%rbp)
lea    -0x80(%rbp),%rdi
lea    0xec6(%rip),%rsi
mov    $0x6e,%edx
call   1040 <memcpy@plt>
movl   $0x0,-0x84(%rbp)
cmpl   $0xb,-0x84(%rbp)
jge    11a4 <Lexeme_estKey+0x84>
mov    -0x10(%rbp),%rdi
movslq -0x84(%rbp),%rax
lea    -0x80(%rbp),%rsi
imul   $0xa,%rax,%rax
add    %rax,%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    118b <Lexeme_estKey+0x6b>
movl   $0x1,-0x4(%rbp)
jmp    11ab <Lexeme_estKey+0x8b>
jmp    1190 <Lexeme_estKey+0x70>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    114e <Lexeme_estKey+0x2e>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Lexeme_estKey>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xee3(%rip),%rsi
call   1030 <strcmp@plt>
mov    $0x1,%ebp
test   %eax,%eax
je     11fd <Lexeme_estKey+0xed>
lea    0xed4(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     11fd <Lexeme_estKey+0xed>
lea    0xec7(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     11fd <Lexeme_estKey+0xed>
lea    0xeba(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     11fd <Lexeme_estKey+0xed>
lea    0xead(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     11fd <Lexeme_estKey+0xed>
lea    0xea4(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     11fd <Lexeme_estKey+0xed>
lea    0xe9b(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     11fd <Lexeme_estKey+0xed>
lea    0xe92(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     11fd <Lexeme_estKey+0xed>
lea    0xe89(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     11fd <Lexeme_estKey+0xed>
lea    0xe80(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     11fd <Lexeme_estKey+0xed>
lea    0xe77(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
xor    %ebp,%ebp
test   %eax,%eax
sete   %bpl
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@__const.Lexeme_estKey.mots = [11 x [10 x i8]] [[10 x i8] c"var\00\00\00\00\00\00\00", [10 x i8] c"str\00\00\00\00\00\00\00", [10 x i8] c"for\00\00\00\00\00\00\00", [10 x i8] c"while\00\00\00\00\00", [10 x i8] c"if\00\00\00\00\00\00\00\00", [10 x i8] c"elseswitch", [10 x i8] c"case\00\00\00\00\00\00", [10 x i8] c"function\00\00", [10 x i8] c"return\00\00\00\00", [10 x i8] c"class\00\00\00\00\00", [10 x i8] zeroinitializer]
define i32 @Lexeme_estKey(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca [11 x [10 x i8]]
%5 = alloca i32
store i8* %0, i8** %3
%6 = bitcast [11 x [10 x i8]]* %4 to i8*
store i32 0, i32* %5
br label %7
7: ; preds = %20, %1
%8 = load i32, i32* %5
%9 = icmp slt i32 %8, 11
br i1 %9, label %10, label %23
10: ; preds = %7
%11 = load i8*, i8** %3
%12 = load i32, i32* %5
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [11 x [10 x i8]], [11 x [10 x i8]]* %4, i64 0, i64 %13
%15 = getelementptr inbounds [10 x i8], [10 x i8]* %14, i64 0, i64 0
%16 = call i32 @strcmp(i8* %11, i8* %15)
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %10
store i32 1, i32* %2
br label %24
19: ; preds = %10
br label %20
20: ; preds = %19
%21 = load i32, i32* %5
%22 = add nsw i32 %21, 1
store i32 %22, i32* %5
br label %7
23: ; preds = %7
store i32 0, i32* %2
br label %24
24: ; preds = %23, %18
%25 = load i32, i32* %2
ret i32 %25
}

LLVM IR (-O2):
@__const.Lexeme_estKey.mots = [11 x [10 x i8]] [[10 x i8] c"var\00\00\00\00\00\00\00", [10 x i8] c"str\00\00\00\00\00\00\00", [10 x i8] c"for\00\00\00\00\00\00\00", [10 x i8] c"while\00\00\00\00\00", [10 x i8] c"if\00\00\00\00\00\00\00\00", [10 x i8] c"elseswitch", [10 x i8] c"case\00\00\00\00\00\00", [10 x i8] c"function\00\00", [10 x i8] c"return\00\00\00\00", [10 x i8] c"class\00\00\00\00\00", [10 x i8] zeroinitializer]
define i32 @Lexeme_estKey(i8* nocapture %0) {
%2 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* getelementptr inbounds ([11 x [10 x i8]], [11 x [10 x i8]]* @__const.Lexeme_estKey.mots, i64 0, i64 0, i64 0))
%3 = icmp eq i32 %2, 0
br i1 %3, label %35, label %4
4: ; preds = %1
%5 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* getelementptr inbounds ([11 x [10 x i8]], [11 x [10 x i8]]* @__const.Lexeme_estKey.mots, i64 0, i64 1, i64 0))
%6 = icmp eq i32 %5, 0
br i1 %6, label %35, label %7
7: ; preds = %4
%8 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* getelementptr inbounds ([11 x [10 x i8]], [11 x [10 x i8]]* @__const.Lexeme_estKey.mots, i64 0, i64 2, i64 0))
%9 = icmp eq i32 %8, 0
br i1 %9, label %35, label %10
10: ; preds = %7
%11 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* getelementptr inbounds ([11 x [10 x i8]], [11 x [10 x i8]]* @__const.Lexeme_estKey.mots, i64 0, i64 3, i64 0))
%12 = icmp eq i32 %11, 0
br i1 %12, label %35, label %13
13: ; preds = %10
%14 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* getelementptr inbounds ([11 x [10 x i8]], [11 x [10 x i8]]* @__const.Lexeme_estKey.mots, i64 0, i64 4, i64 0))
%15 = icmp eq i32 %14, 0
br i1 %15, label %35, label %16
16: ; preds = %13
%17 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* getelementptr inbounds ([11 x [10 x i8]], [11 x [10 x i8]]* @__const.Lexeme_estKey.mots, i64 0, i64 5, i64 0))
%18 = icmp eq i32 %17, 0
br i1 %18, label %35, label %19
19: ; preds = %16
%20 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* getelementptr inbounds ([11 x [10 x i8]], [11 x [10 x i8]]* @__const.Lexeme_estKey.mots, i64 0, i64 6, i64 0))
%21 = icmp eq i32 %20, 0
br i1 %21, label %35, label %22
22: ; preds = %19
%23 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* getelementptr inbounds ([11 x [10 x i8]], [11 x [10 x i8]]* @__const.Lexeme_estKey.mots, i64 0, i64 7, i64 0))
%24 = icmp eq i32 %23, 0
br i1 %24, label %35, label %25
25: ; preds = %22
%26 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* getelementptr inbounds ([11 x [10 x i8]], [11 x [10 x i8]]* @__const.Lexeme_estKey.mots, i64 0, i64 8, i64 0))
%27 = icmp eq i32 %26, 0
br i1 %27, label %35, label %28
28: ; preds = %25
%29 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* getelementptr inbounds ([11 x [10 x i8]], [11 x [10 x i8]]* @__const.Lexeme_estKey.mots, i64 0, i64 9, i64 0))
%30 = icmp eq i32 %29, 0
br i1 %30, label %35, label %31
31: ; preds = %28
%32 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* getelementptr inbounds ([11 x [10 x i8]], [11 x [10 x i8]]* @__const.Lexeme_estKey.mots, i64 0, i64 10, i64 0))
%33 = icmp eq i32 %32, 0
%34 = zext i1 %33 to i32
br label %35
35: ; preds = %31, %28, %25, %22, %19, %16, %13, %10, %7, %4, %1
%36 = phi i32 [ 1, %1 ], [ 1, %4 ], [ 1, %7 ], [ 1, %10 ], [ 1, %13 ], [ 1, %16 ], [ 1, %19 ], [ 1, %22 ], [ 1, %25 ], [ 1, %28 ], [ %34, %31 ]
ret i32 %36
}