#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 */
int /*<<< orphan*/ assert(int);
int ku_token_cstring_is_reserved_keyword(char *);
void test_ku_is_reserved_keyword_full(void) {
  assert(ku_token_cstring_is_reserved_keyword("char"));
  assert(ku_token_cstring_is_reserved_keyword("for"));
  assert(!ku_token_cstring_is_reserved_keyword("abc"));
  assert(!ku_token_cstring_is_reserved_keyword("fora"));
  assert(!ku_token_cstring_is_reserved_keyword("aif"));
  assert(!ku_token_cstring_is_reserved_keyword("ifchar"));
  assert(!ku_token_cstring_is_reserved_keyword(""));
  assert(!ku_token_cstring_is_reserved_keyword(NULL));
}


x86 assembly (clang, -O0):
<test_ku_is_reserved_keyword_full>:
push   %rbp
mov    %rsp,%rbp
lea    0xee8(%rip),%rdi
call   1030 <ku_token_cstring_is_reserved_keyword@plt>
mov    %eax,%edi
call   1040 <assert@plt>
lea    0xec2(%rip),%rdi
call   1030 <ku_token_cstring_is_reserved_keyword@plt>
mov    %eax,%edi
call   1040 <assert@plt>
lea    0xeb3(%rip),%rdi
call   1030 <ku_token_cstring_is_reserved_keyword@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
lea    0xe99(%rip),%rdi
call   1030 <ku_token_cstring_is_reserved_keyword@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
lea    0xe80(%rip),%rdi
call   1030 <ku_token_cstring_is_reserved_keyword@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
lea    0xe66(%rip),%rdi
call   1030 <ku_token_cstring_is_reserved_keyword@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
lea    0xe43(%rip),%rdi
call   1030 <ku_token_cstring_is_reserved_keyword@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1030 <ku_token_cstring_is_reserved_keyword@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_ku_is_reserved_keyword_full>:
push   %rax
lea    0xeeb(%rip),%rdi
call   1030 <ku_token_cstring_is_reserved_keyword@plt>
mov    %eax,%edi
call   1040 <assert@plt>
lea    0xec5(%rip),%rdi
call   1030 <ku_token_cstring_is_reserved_keyword@plt>
mov    %eax,%edi
call   1040 <assert@plt>
lea    0xeb6(%rip),%rdi
call   1030 <ku_token_cstring_is_reserved_keyword@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1040 <assert@plt>
lea    0xea1(%rip),%rdi
call   1030 <ku_token_cstring_is_reserved_keyword@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1040 <assert@plt>
lea    0xe8d(%rip),%rdi
call   1030 <ku_token_cstring_is_reserved_keyword@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1040 <assert@plt>
lea    0xe78(%rip),%rdi
call   1030 <ku_token_cstring_is_reserved_keyword@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1040 <assert@plt>
lea    0xe5a(%rip),%rdi
call   1030 <ku_token_cstring_is_reserved_keyword@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1040 <assert@plt>
xor    %edi,%edi
call   1030 <ku_token_cstring_is_reserved_keyword@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
pop    %rax
jmp    1040 <assert@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"char\00"
@.str.1 = [4 x i8] c"for\00"
@.str.2 = [4 x i8] c"abc\00"
@.str.3 = [5 x i8] c"fora\00"
@.str.4 = [4 x i8] c"aif\00"
@.str.5 = [7 x i8] c"ifchar\00"
@.str.6 = [1 x i8] zeroinitializer
define void @test_ku_is_reserved_keyword_full() {
%1 = call i32 @ku_token_cstring_is_reserved_keyword(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @assert(i32 %1)
%3 = call i32 @ku_token_cstring_is_reserved_keyword(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @assert(i32 %3)
%5 = call i32 @ku_token_cstring_is_reserved_keyword(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%6 = icmp ne i32 %5, 0
%7 = xor i1 %6, true
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 %8)
%10 = call i32 @ku_token_cstring_is_reserved_keyword(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%11 = icmp ne i32 %10, 0
%12 = xor i1 %11, true
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 %13)
%15 = call i32 @ku_token_cstring_is_reserved_keyword(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%16 = icmp ne i32 %15, 0
%17 = xor i1 %16, true
%18 = zext i1 %17 to i32
%19 = call i32 @assert(i32 %18)
%20 = call i32 @ku_token_cstring_is_reserved_keyword(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%21 = icmp ne i32 %20, 0
%22 = xor i1 %21, true
%23 = zext i1 %22 to i32
%24 = call i32 @assert(i32 %23)
%25 = call i32 @ku_token_cstring_is_reserved_keyword(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0))
%26 = icmp ne i32 %25, 0
%27 = xor i1 %26, true
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 %28)
%30 = call i32 @ku_token_cstring_is_reserved_keyword(i8* null)
%31 = icmp ne i32 %30, 0
%32 = xor i1 %31, true
%33 = zext i1 %32 to i32
%34 = call i32 @assert(i32 %33)
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"char\00"
@.str.1 = [4 x i8] c"for\00"
@.str.2 = [4 x i8] c"abc\00"
@.str.3 = [5 x i8] c"fora\00"
@.str.4 = [4 x i8] c"aif\00"
@.str.5 = [7 x i8] c"ifchar\00"
@.str.6 = [1 x i8] zeroinitializer
define void @test_ku_is_reserved_keyword_full() {
%1 = tail call i32 @ku_token_cstring_is_reserved_keyword(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @assert(i32 %1)
%3 = tail call i32 @ku_token_cstring_is_reserved_keyword(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @assert(i32 %3)
%5 = tail call i32 @ku_token_cstring_is_reserved_keyword(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%6 = icmp eq i32 %5, 0
%7 = zext i1 %6 to i32
%8 = tail call i32 @assert(i32 %7)
%9 = tail call i32 @ku_token_cstring_is_reserved_keyword(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%10 = icmp eq i32 %9, 0
%11 = zext i1 %10 to i32
%12 = tail call i32 @assert(i32 %11)
%13 = tail call i32 @ku_token_cstring_is_reserved_keyword(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%14 = icmp eq i32 %13, 0
%15 = zext i1 %14 to i32
%16 = tail call i32 @assert(i32 %15)
%17 = tail call i32 @ku_token_cstring_is_reserved_keyword(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%18 = icmp eq i32 %17, 0
%19 = zext i1 %18 to i32
%20 = tail call i32 @assert(i32 %19)
%21 = tail call i32 @ku_token_cstring_is_reserved_keyword(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0))
%22 = icmp eq i32 %21, 0
%23 = zext i1 %22 to i32
%24 = tail call i32 @assert(i32 %23)
%25 = tail call i32 @ku_token_cstring_is_reserved_keyword(i8* null)
%26 = icmp eq i32 %25, 0
%27 = zext i1 %26 to i32
%28 = tail call i32 @assert(i32 %27)
ret void
}