#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*/ fprintf(int /*<<< orphan*/, char *, int, char *);
int /*<<< orphan*/ stderr;
scalar_t__ strcasecmp(char *, char *);
bool chk_fld_prop(char *X) {
  int i = 0;
  if (X == NULL) {
    {
      fprintf(stderr, "Line %3d of File %s \n", 963,
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/NerdWalletOSS/Q/refs/heads/master/"
              "DEPRECATED_Q2/BAK.4.23.2015.PARSER/auxil.c");
    };
    return false;
  }
  if (*X == '\0') {
    {
      fprintf(stderr, "Line %3d of File %s \n", 964,
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/NerdWalletOSS/Q/refs/heads/master/"
              "DEPRECATED_Q2/BAK.4.23.2015.PARSER/auxil.c");
    };
    return false;
  }
  if ((strcasecmp(X, "Property") == 0) || (strcasecmp(X, "Min") == 0) ||
      (strcasecmp(X, "Max") == 0) || (strcasecmp(X, "Sum") == 0) ||
      (strcasecmp(X, "Ndv") == 0) || (strcasecmp(X, "ApproxNdv") == 0) ||
      (strcasecmp(X, "NumNN") == 0) || (strcasecmp(X, "ApproxNdv") == 0)) {
    return true;
  } else {
    return false;
  }
}


x86 assembly (clang, -O0):
<chk_fld_prop>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    116b <chk_fld_prop+0x4b>
mov    0x2e9b(%rip),%rax
mov    (%rax),%edi
lea    0xeb2(%rip),%rsi
mov    $0x3c3,%edx
lea    0xebc(%rip),%rcx
call   1040 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    128b <chk_fld_prop+0x16b>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    11a8 <chk_fld_prop+0x88>
mov    0x2e5e(%rip),%rax
mov    (%rax),%edi
lea    0xe75(%rip),%rsi
mov    $0x3c4,%edx
lea    0xe7f(%rip),%rcx
call   1040 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    128b <chk_fld_prop+0x16b>
mov    -0x10(%rbp),%rdi
lea    0xf0a(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     1278 <chk_fld_prop+0x158>
mov    -0x10(%rbp),%rdi
lea    0xef9(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     1278 <chk_fld_prop+0x158>
mov    -0x10(%rbp),%rdi
lea    0xee3(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     1278 <chk_fld_prop+0x158>
mov    -0x10(%rbp),%rdi
lea    0xecd(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     1278 <chk_fld_prop+0x158>
mov    -0x10(%rbp),%rdi
lea    0xebd(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     1278 <chk_fld_prop+0x158>
mov    -0x10(%rbp),%rdi
lea    0xe9d(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     1278 <chk_fld_prop+0x158>
mov    -0x10(%rbp),%rdi
lea    0xe8d(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     1278 <chk_fld_prop+0x158>
mov    -0x10(%rbp),%rdi
lea    0xe69(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    1284 <chk_fld_prop+0x164>
movl   $0x1,-0x4(%rbp)
jmp    128b <chk_fld_prop+0x16b>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<chk_fld_prop>:
push   %rbp
push   %rbx
push   %rax
test   %rdi,%rdi
je     11df <chk_fld_prop+0xbf>
mov    %rdi,%rbx
cmpb   $0x0,(%rdi)
je     11fd <chk_fld_prop+0xdd>
lea    0xf7e(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
mov    $0x1,%ebp
test   %rax,%rax
je     1220 <chk_fld_prop+0x100>
lea    0xf6a(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1220 <chk_fld_prop+0x100>
lea    0xf56(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1220 <chk_fld_prop+0x100>
lea    0xf42(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1220 <chk_fld_prop+0x100>
lea    0xf34(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1220 <chk_fld_prop+0x100>
lea    0xf1a(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1220 <chk_fld_prop+0x100>
lea    0xf10(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
xor    %ebp,%ebp
test   %rax,%rax
sete   %bpl
jmp    1220 <chk_fld_prop+0x100>
mov    0x2dfa(%rip),%rax
mov    (%rax),%edi
lea    0xe11(%rip),%rsi
lea    0xe20(%rip),%rcx
mov    $0x3c3,%edx
jmp    1219 <chk_fld_prop+0xf9>
mov    0x2ddc(%rip),%rax
mov    (%rax),%edi
lea    0xdf3(%rip),%rsi
lea    0xe02(%rip),%rcx
mov    $0x3c4,%edx
call   1040 <fprintf@plt>
xor    %ebp,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [22 x i8] c"Line %3d of File %s \0A\00"
@.str.1 = [167 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/NerdWalletOSS/Q/refs/heads/master/DEPRECATED_Q2/BAK.4.23.2015.PARSER/auxil.c\00"
@.str.2 = [9 x i8] c"Property\00"
@.str.3 = [4 x i8] c"Min\00"
@.str.4 = [4 x i8] c"Max\00"
@.str.5 = [4 x i8] c"Sum\00"
@.str.6 = [4 x i8] c"Ndv\00"
@.str.7 = [10 x i8] c"ApproxNdv\00"
@.str.8 = [6 x i8] c"NumNN\00"
define i32 @chk_fld_prop(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 0, i32* %4
%5 = load i8*, i8** %3
%6 = icmp eq i8* %5, null
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i32, i32* @stderr
%9 = call i32 @fprintf(i32 %8, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 963, i8* getelementptr inbounds ([167 x i8], [167 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %2
br label %52
10: ; preds = %1
%11 = load i8*, i8** %3
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %10
%16 = load i32, i32* @stderr
%17 = call i32 @fprintf(i32 %16, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 964, i8* getelementptr inbounds ([167 x i8], [167 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %2
br label %52
18: ; preds = %10
%19 = load i8*, i8** %3
%20 = call i64 @strcasecmp(i8* %19, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %50, label %22
22: ; preds = %18
%23 = load i8*, i8** %3
%24 = call i64 @strcasecmp(i8* %23, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %50, label %26
26: ; preds = %22
%27 = load i8*, i8** %3
%28 = call i64 @strcasecmp(i8* %27, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %50, label %30
30: ; preds = %26
%31 = load i8*, i8** %3
%32 = call i64 @strcasecmp(i8* %31, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %50, label %34
34: ; preds = %30
%35 = load i8*, i8** %3
%36 = call i64 @strcasecmp(i8* %35, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%37 = icmp eq i64 %36, 0
br i1 %37, label %50, label %38
38: ; preds = %34
%39 = load i8*, i8** %3
%40 = call i64 @strcasecmp(i8* %39, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %50, label %42
42: ; preds = %38
%43 = load i8*, i8** %3
%44 = call i64 @strcasecmp(i8* %43, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %50, label %46
46: ; preds = %42
%47 = load i8*, i8** %3
%48 = call i64 @strcasecmp(i8* %47, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %51
50: ; preds = %46, %42, %38, %34, %30, %26, %22, %18
store i32 1, i32* %2
br label %52
51: ; preds = %46
store i32 0, i32* %2
br label %52
52: ; preds = %51, %50, %15, %7
%53 = load i32, i32* %2
ret i32 %53
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [22 x i8] c"Line %3d of File %s \0A\00"
@.str.1 = [167 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/NerdWalletOSS/Q/refs/heads/master/DEPRECATED_Q2/BAK.4.23.2015.PARSER/auxil.c\00"
@.str.2 = [9 x i8] c"Property\00"
@.str.3 = [4 x i8] c"Min\00"
@.str.4 = [4 x i8] c"Max\00"
@.str.5 = [4 x i8] c"Sum\00"
@.str.6 = [4 x i8] c"Ndv\00"
@.str.7 = [10 x i8] c"ApproxNdv\00"
@.str.8 = [6 x i8] c"NumNN\00"
define i32 @chk_fld_prop(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %3, label %6
3: ; preds = %1
%4 = load i32, i32* @stderr
%5 = tail call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 963, i8* getelementptr inbounds ([167 x i8], [167 x i8]* @.str.1, i64 0, i64 0))
br label %34
6: ; preds = %1
%7 = load i8, i8* %0
%8 = icmp eq i8 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %6
%10 = load i32, i32* @stderr
%11 = tail call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 964, i8* getelementptr inbounds ([167 x i8], [167 x i8]* @.str.1, i64 0, i64 0))
br label %34
12: ; preds = %6
%13 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%14 = icmp eq i64 %13, 0
br i1 %14, label %34, label %15
15: ; preds = %12
%16 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %34, label %18
18: ; preds = %15
%19 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %34, label %21
21: ; preds = %18
%22 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %34, label %24
24: ; preds = %21
%25 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %34, label %27
27: ; preds = %24
%28 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %34, label %30
30: ; preds = %27
%31 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
%33 = zext i1 %32 to i32
br label %34
34: ; preds = %30, %12, %15, %18, %21, %24, %27, %9, %3
%35 = phi i32 [ 0, %3 ], [ 0, %9 ], [ 1, %27 ], [ 1, %24 ], [ 1, %21 ], [ 1, %18 ], [ 1, %15 ], [ 1, %12 ], [ %33, %30 ]
ret i32 %35
}