#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 *);
int standard_kword(const char *ksym) {
  if (ksym == NULL)
    return 0;
  if (strcmp(ksym, "ORIGINATOR") == 0)
    return 1;
  if (strcmp(ksym, "DESCRIPTOR") == 0)
    return 1;
  if (strcmp(ksym, "CREATED") == 0)
    return 1;
  if (strcmp(ksym, "MANUFACTURER") == 0)
    return 1;
  if (strcmp(ksym, "PROD_DATE") == 0)
    return 1;
  if (strcmp(ksym, "SERIAL") == 0)
    return 1;
  if (strcmp(ksym, "MATERIAL") == 0)
    return 1;
  if (strcmp(ksym, "INSTRUMENTATION") == 0)
    return 1;
  if (strcmp(ksym, "MEASUREMENT_SOURCE") == 0)
    return 1;
  if (strcmp(ksym, "PRINT_CONDITIONS") == 0)
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<standard_kword>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1133 <standard_kword+0x23>
movl   $0x0,-0x4(%rbp)
jmp    12b6 <standard_kword+0x1a6>
mov    -0x10(%rbp),%rdi
lea    0xec2(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1159 <standard_kword+0x49>
movl   $0x1,-0x4(%rbp)
jmp    12b6 <standard_kword+0x1a6>
mov    -0x10(%rbp),%rdi
lea    0xea7(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    117f <standard_kword+0x6f>
movl   $0x1,-0x4(%rbp)
jmp    12b6 <standard_kword+0x1a6>
mov    -0x10(%rbp),%rdi
lea    0xe8c(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11a5 <standard_kword+0x95>
movl   $0x1,-0x4(%rbp)
jmp    12b6 <standard_kword+0x1a6>
mov    -0x10(%rbp),%rdi
lea    0xe6e(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11cb <standard_kword+0xbb>
movl   $0x1,-0x4(%rbp)
jmp    12b6 <standard_kword+0x1a6>
mov    -0x10(%rbp),%rdi
lea    0xe55(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11f1 <standard_kword+0xe1>
movl   $0x1,-0x4(%rbp)
jmp    12b6 <standard_kword+0x1a6>
mov    -0x10(%rbp),%rdi
lea    0xe39(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1217 <standard_kword+0x107>
movl   $0x1,-0x4(%rbp)
jmp    12b6 <standard_kword+0x1a6>
mov    -0x10(%rbp),%rdi
lea    0xe1a(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    123d <standard_kword+0x12d>
movl   $0x1,-0x4(%rbp)
jmp    12b6 <standard_kword+0x1a6>
mov    -0x10(%rbp),%rdi
lea    0xdfd(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1263 <standard_kword+0x153>
movl   $0x1,-0x4(%rbp)
jmp    12b6 <standard_kword+0x1a6>
mov    -0x10(%rbp),%rdi
lea    0xde7(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1289 <standard_kword+0x179>
movl   $0x1,-0x4(%rbp)
jmp    12b6 <standard_kword+0x1a6>
mov    -0x10(%rbp),%rdi
lea    0xdd4(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    12af <standard_kword+0x19f>
movl   $0x1,-0x4(%rbp)
jmp    12b6 <standard_kword+0x1a6>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<standard_kword>:
push   %rbp
push   %rbx
push   %rax
test   %rdi,%rdi
je     11ff <standard_kword+0xef>
mov    %rdi,%rbx
lea    0xeda(%rip),%rsi
call   1030 <strcmp@plt>
mov    $0x1,%ebp
test   %rax,%rax
je     1201 <standard_kword+0xf1>
lea    0xecb(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1201 <standard_kword+0xf1>
lea    0xebe(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1201 <standard_kword+0xf1>
lea    0xeae(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1201 <standard_kword+0xf1>
lea    0xea3(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1201 <standard_kword+0xf1>
lea    0xe99(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1201 <standard_kword+0xf1>
lea    0xe8c(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1201 <standard_kword+0xf1>
lea    0xe81(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1201 <standard_kword+0xf1>
lea    0xe7d(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1201 <standard_kword+0xf1>
lea    0xe7c(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
xor    %ebp,%ebp
test   %rax,%rax
sete   %bpl
jmp    1201 <standard_kword+0xf1>
xor    %ebp,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"ORIGINATOR\00"
@.str.1 = [11 x i8] c"DESCRIPTOR\00"
@.str.2 = [8 x i8] c"CREATED\00"
@.str.3 = [13 x i8] c"MANUFACTURER\00"
@.str.4 = [10 x i8] c"PROD_DATE\00"
@.str.5 = [7 x i8] c"SERIAL\00"
@.str.6 = [9 x i8] c"MATERIAL\00"
@.str.7 = [16 x i8] c"INSTRUMENTATION\00"
@.str.8 = [19 x i8] c"MEASUREMENT_SOURCE\00"
@.str.9 = [17 x i8] c"PRINT_CONDITIONS\00"
define i32 @standard_kword(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = icmp eq i8* %4, null
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 0, i32* %2
br label %58
7: ; preds = %1
%8 = load i8*, i8** %3
%9 = call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %7
store i32 1, i32* %2
br label %58
12: ; preds = %7
%13 = load i8*, i8** %3
%14 = call i64 @strcmp(i8* %13, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %12
store i32 1, i32* %2
br label %58
17: ; preds = %12
%18 = load i8*, i8** %3
%19 = call i64 @strcmp(i8* %18, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %17
store i32 1, i32* %2
br label %58
22: ; preds = %17
%23 = load i8*, i8** %3
%24 = call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %22
store i32 1, i32* %2
br label %58
27: ; preds = %22
%28 = load i8*, i8** %3
%29 = call i64 @strcmp(i8* %28, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %27
store i32 1, i32* %2
br label %58
32: ; preds = %27
%33 = load i8*, i8** %3
%34 = call i64 @strcmp(i8* %33, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %32
store i32 1, i32* %2
br label %58
37: ; preds = %32
%38 = load i8*, i8** %3
%39 = call i64 @strcmp(i8* %38, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %42
41: ; preds = %37
store i32 1, i32* %2
br label %58
42: ; preds = %37
%43 = load i8*, i8** %3
%44 = call i64 @strcmp(i8* %43, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %47
46: ; preds = %42
store i32 1, i32* %2
br label %58
47: ; preds = %42
%48 = load i8*, i8** %3
%49 = call i64 @strcmp(i8* %48, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %47
store i32 1, i32* %2
br label %58
52: ; preds = %47
%53 = load i8*, i8** %3
%54 = call i64 @strcmp(i8* %53, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %57
56: ; preds = %52
store i32 1, i32* %2
br label %58
57: ; preds = %52
store i32 0, i32* %2
br label %58
58: ; preds = %57, %56, %51, %46, %41, %36, %31, %26, %21, %16, %11, %6
%59 = load i32, i32* %2
ret i32 %59
}

LLVM IR (-O2):
@.str = [11 x i8] c"ORIGINATOR\00"
@.str.1 = [11 x i8] c"DESCRIPTOR\00"
@.str.2 = [8 x i8] c"CREATED\00"
@.str.3 = [13 x i8] c"MANUFACTURER\00"
@.str.4 = [10 x i8] c"PROD_DATE\00"
@.str.5 = [7 x i8] c"SERIAL\00"
@.str.6 = [9 x i8] c"MATERIAL\00"
@.str.7 = [16 x i8] c"INSTRUMENTATION\00"
@.str.8 = [19 x i8] c"MEASUREMENT_SOURCE\00"
@.str.9 = [17 x i8] c"PRINT_CONDITIONS\00"
define i32 @standard_kword(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %34, label %3
3: ; preds = %1
%4 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%5 = icmp eq i64 %4, 0
br i1 %5, label %34, label %6
6: ; preds = %3
%7 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
br i1 %8, label %34, label %9
9: ; preds = %6
%10 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%11 = icmp eq i64 %10, 0
br i1 %11, label %34, label %12
12: ; preds = %9
%13 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%14 = icmp eq i64 %13, 0
br i1 %14, label %34, label %15
15: ; preds = %12
%16 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %34, label %18
18: ; preds = %15
%19 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %34, label %21
21: ; preds = %18
%22 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %34, label %24
24: ; preds = %21
%25 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %34, label %27
27: ; preds = %24
%28 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %34, label %30
30: ; preds = %27
%31 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
%33 = zext i1 %32 to i32
br label %34
34: ; preds = %30, %27, %24, %21, %18, %15, %12, %9, %6, %3, %1
%35 = phi i32 [ 0, %1 ], [ 1, %3 ], [ 1, %6 ], [ 1, %9 ], [ 1, %12 ], [ 1, %15 ], [ 1, %18 ], [ 1, %21 ], [ 1, %24 ], [ 1, %27 ], [ %33, %30 ]
ret i32 %35
}