#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*/ isalnum(char);
int /*<<< orphan*/ stderr;
bool chk_fld_prop(char *X) {
  if (X == NULL) {
    {
      fprintf(stderr, "Line %3d of File %s \n", 1007,
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/NerdWalletOSS/Q/refs/heads/master/"
              "DEPRECATED_Q2/AUX/auxil.c");
    };
    return false;
  }
  if (*X == '\0') {
    {
      fprintf(stderr, "Line %3d of File %s \n", 1008,
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/NerdWalletOSS/Q/refs/heads/master/"
              "DEPRECATED_Q2/AUX/auxil.c");
    };
    return false;
  }
  for (char *cptr = X; *cptr != '\0'; cptr++) {
    if ((!isalnum(*cptr)) && (*cptr != '=')) {
      return false;
    }
  }
  return true;
}


x86 assembly (clang, -O0):
<chk_fld_prop>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1164 <chk_fld_prop+0x44>
mov    0x2ea2(%rip),%rax
mov    (%rax),%edi
lea    0xeb9(%rip),%rsi
mov    $0x3ef,%edx
lea    0xec3(%rip),%rcx
call   1040 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1207 <chk_fld_prop+0xe7>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    11a1 <chk_fld_prop+0x81>
mov    0x2e65(%rip),%rax
mov    (%rax),%edi
lea    0xe7c(%rip),%rsi
mov    $0x3f0,%edx
lea    0xe86(%rip),%rcx
call   1040 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1207 <chk_fld_prop+0xe7>
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1200 <chk_fld_prop+0xe0>
mov    -0x18(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isalnum@plt>
cmp    $0x0,%eax
jne    11ea <chk_fld_prop+0xca>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3d,%eax
je     11ea <chk_fld_prop+0xca>
movl   $0x0,-0x4(%rbp)
jmp    1207 <chk_fld_prop+0xe7>
jmp    11ef <chk_fld_prop+0xcf>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    11a9 <chk_fld_prop+0x89>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<chk_fld_prop>:
push   %rbx
test   %rdi,%rdi
je     115f <chk_fld_prop+0x3f>
mov    %rdi,%rbx
mov    (%rdi),%al
test   %al,%al
je     116d <chk_fld_prop+0x4d>
add    $0x1,%rbx
jmp    114b <chk_fld_prop+0x2b>
cs nopw 0x0(%rax,%rax,1)
nop
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
je     1166 <chk_fld_prop+0x46>
movsbl %al,%edi
call   1030 <isalnum@plt>
test   %eax,%eax
jne    1140 <chk_fld_prop+0x20>
cmpb   $0x3d,-0x1(%rbx)
je     1140 <chk_fld_prop+0x20>
jmp    118e <chk_fld_prop+0x6e>
mov    $0x3ef,%edx
jmp    1172 <chk_fld_prop+0x52>
mov    $0x1,%eax
pop    %rbx
ret
mov    $0x3f0,%edx
mov    0x2e67(%rip),%rax
mov    (%rax),%edi
lea    0xe7e(%rip),%rsi
lea    0xe8d(%rip),%rcx
call   1040 <fprintf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [22 x i8] c"Line %3d of File %s \0A\00"
@.str.1 = [150 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/AUX/auxil.c\00"
define i32 @chk_fld_prop(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
%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 1007, i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %2
br label %41
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 1008, i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %2
br label %41
18: ; preds = %10
%19 = load i8*, i8** %3
store i8* %19, i8** %4
br label %20
20: ; preds = %37, %18
%21 = load i8*, i8** %4
%22 = load i8, i8* %21
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %40
25: ; preds = %20
%26 = load i8*, i8** %4
%27 = load i8, i8* %26
%28 = call i32 @isalnum(i8 signext %27)
%29 = icmp ne i32 %28, 0
br i1 %29, label %36, label %30
30: ; preds = %25
%31 = load i8*, i8** %4
%32 = load i8, i8* %31
%33 = sext i8 %32 to i32
%34 = icmp ne i32 %33, 61
br i1 %34, label %35, label %36
35: ; preds = %30
store i32 0, i32* %2
br label %41
36: ; preds = %30, %25
br label %37
37: ; preds = %36
%38 = load i8*, i8** %4
%39 = getelementptr inbounds i8, i8* %38, i32 1
store i8* %39, i8** %4
br label %20
40: ; preds = %20
store i32 1, i32* %2
br label %41
41: ; preds = %40, %35, %15, %7
%42 = load i32, i32* %2
ret i32 %42
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [22 x i8] c"Line %3d of File %s \0A\00"
@.str.1 = [150 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/AUX/auxil.c\00"
define i32 @chk_fld_prop(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %18, label %3
3: ; preds = %1
%4 = load i8, i8* %0
%5 = icmp eq i8 %4, 0
br i1 %5, label %18, label %6
6: ; preds = %3, %14
%7 = phi i8* [ %15, %14 ], [ %0, %3 ]
%8 = phi i8 [ %16, %14 ], [ %4, %3 ]
%9 = tail call i32 @isalnum(i8 signext %8)
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %6
%12 = load i8, i8* %7
%13 = icmp eq i8 %12, 61
br i1 %13, label %14, label %22
14: ; preds = %6, %11
%15 = getelementptr inbounds i8, i8* %7, i64 1
%16 = load i8, i8* %15
%17 = icmp eq i8 %16, 0
br i1 %17, label %22, label %6
18: ; preds = %3, %1
%19 = phi i32 [ 1007, %1 ], [ 1008, %3 ]
%20 = load i32, i32* @stderr
%21 = tail call i32 @fprintf(i32 %20, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %19, i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.1, i64 0, i64 0))
br label %22
22: ; preds = %11, %14, %18
%23 = phi i32 [ 0, %18 ], [ 1, %14 ], [ 0, %11 ]
ret i32 %23
}