#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, ...);
int /*<<< orphan*/ stderr;
bool chk_tbl_name(char *tbl) {
  int i = 0;
  if (tbl == NULL) {
    {
      fprintf(stderr, "Line %3d of File %s \n", 936,
              "/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 (*tbl == '\0') {
    {
      fprintf(stderr, "Line %3d of File %s \n", 937,
              "/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 (*tbl == '_') {
    {
      fprintf(stderr, "Line %3d of File %s \n", 938,
              "/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;
  }
  for (char *cptr = tbl; *cptr != '\0'; cptr++, i++) {
    if (i >= 31) {
      {
        fprintf(stderr, "Line %3d of File %s \n", 940,
                "/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;
    }
    char letter = *cptr;
    if (((letter >= '0') && (letter <= '9')) ||
        ((letter >= 'a') && (letter <= 'z')) || (letter == '_') ||
        ((letter >= 'A') && (letter <= 'Z'))) {
    } else {
      fprintf(stderr, "%d --> %c \n", i, letter);
      {
        fprintf(stderr, "Line %3d of File %s \n", 949,
                "/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;
    }
  }
  return true;
}


x86 assembly (clang, -O0):
<chk_tbl_name>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    115d <chk_tbl_name+0x4d>
mov    0x2eab(%rip),%rax
mov    (%rax),%edi
lea    0xec2(%rip),%rsi
mov    $0x3a8,%edx
lea    0xecc(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1308 <chk_tbl_name+0x1f8>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    119c <chk_tbl_name+0x8c>
mov    0x2e6c(%rip),%rax
mov    (%rax),%edi
lea    0xe83(%rip),%rsi
mov    $0x3a9,%edx
lea    0xe8d(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1308 <chk_tbl_name+0x1f8>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5f,%eax
jne    11db <chk_tbl_name+0xcb>
mov    0x2e2d(%rip),%rax
mov    (%rax),%edi
lea    0xe44(%rip),%rsi
mov    $0x3aa,%edx
lea    0xe4e(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1308 <chk_tbl_name+0x1f8>
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1301 <chk_tbl_name+0x1f1>
cmpl   $0x1f,-0x14(%rbp)
jl     122c <chk_tbl_name+0x11c>
mov    0x2ddc(%rip),%rax
mov    (%rax),%edi
lea    0xdf3(%rip),%rsi
mov    $0x3ac,%edx
lea    0xdfd(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1308 <chk_tbl_name+0x1f8>
mov    -0x20(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x21(%rbp)
movsbl -0x21(%rbp),%eax
cmp    $0x30,%eax
jl     124f <chk_tbl_name+0x13f>
movsbl -0x21(%rbp),%eax
cmp    $0x39,%eax
jle    1290 <chk_tbl_name+0x180>
movsbl -0x21(%rbp),%eax
cmp    $0x61,%eax
jl     1269 <chk_tbl_name+0x159>
movsbl -0x21(%rbp),%eax
cmp    $0x7a,%eax
jle    1290 <chk_tbl_name+0x180>
movsbl -0x21(%rbp),%eax
cmp    $0x5f,%eax
je     1290 <chk_tbl_name+0x180>
movsbl -0x21(%rbp),%eax
cmp    $0x41,%eax
jl     1295 <chk_tbl_name+0x185>
movsbl -0x21(%rbp),%eax
cmp    $0x5a,%eax
jg     1295 <chk_tbl_name+0x185>
jmp    12e2 <chk_tbl_name+0x1d2>
mov    0x2d44(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%edx
movsbl -0x21(%rbp),%ecx
lea    0xe11(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d26(%rip),%rax
mov    (%rax),%edi
lea    0xd3d(%rip),%rsi
mov    $0x3b5,%edx
lea    0xd47(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1308 <chk_tbl_name+0x1f8>
jmp    12e7 <chk_tbl_name+0x1d7>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11e3 <chk_tbl_name+0xd3>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<chk_tbl_name>:
push   %rbx
test   %rdi,%rdi
je     1127 <chk_tbl_name+0x17>
mov    (%rdi),%al
test   %al,%al
je     112e <chk_tbl_name+0x1e>
cmp    $0x5f,%al
jne    1157 <chk_tbl_name+0x47>
mov    $0x3aa,%edx
jmp    1133 <chk_tbl_name+0x23>
mov    $0x3a8,%edx
jmp    1133 <chk_tbl_name+0x23>
mov    $0x3a9,%edx
mov    0x2ea6(%rip),%rax
mov    (%rax),%edi
lea    0xebd(%rip),%rsi
lea    0xecc(%rip),%rcx
xor    %ebx,%ebx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    %ebx,%eax
pop    %rbx
ret
xor    %edx,%edx
mov    $0x1,%ebx
jmp    116d <chk_tbl_name+0x5d>
movzbl 0x2(%rdi,%rdx,1),%eax
add    $0x2,%rdx
test   %al,%al
je     1153 <chk_tbl_name+0x43>
lea    -0x30(%rax),%ecx
cmp    $0xa,%cl
jb     1186 <chk_tbl_name+0x76>
cmp    $0x5f,%al
je     1186 <chk_tbl_name+0x76>
mov    %eax,%ecx
and    $0xdf,%cl
add    $0xbf,%cl
cmp    $0x1a,%cl
jae    11b0 <chk_tbl_name+0xa0>
movzbl 0x1(%rdi,%rdx,1),%eax
test   %al,%al
je     1153 <chk_tbl_name+0x43>
cmp    $0x1e,%edx
je     11d4 <chk_tbl_name+0xc4>
lea    -0x30(%rax),%ecx
cmp    $0xa,%cl
jb     1160 <chk_tbl_name+0x50>
cmp    $0x5f,%al
je     1160 <chk_tbl_name+0x50>
mov    %eax,%ecx
and    $0xdf,%cl
add    $0xbf,%cl
cmp    $0x19,%cl
jbe    1160 <chk_tbl_name+0x50>
add    $0x1,%edx
movsbl %al,%ecx
mov    0x2e26(%rip),%rax
mov    (%rax),%edi
lea    0xefa(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    $0x3b5,%edx
jmp    1133 <chk_tbl_name+0x23>
mov    $0x3ac,%edx
jmp    1133 <chk_tbl_name+0x23>

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 = [12 x i8] c"%d --> %c \0A\00"
define i32 @chk_tbl_name(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8
store i8* %0, i8** %3
store i32 0, i32* %4
%7 = load i8*, i8** %3
%8 = icmp eq i8* %7, null
br i1 %8, label %9, label %12
9: ; preds = %1
%10 = load i32, i32* @stderr
%11 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 936, i8* getelementptr inbounds ([167 x i8], [167 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %2
br label %87
12: ; preds = %1
%13 = load i8*, i8** %3
%14 = load i8, i8* %13
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %12
%18 = load i32, i32* @stderr
%19 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 937, i8* getelementptr inbounds ([167 x i8], [167 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %2
br label %87
20: ; preds = %12
%21 = load i8*, i8** %3
%22 = load i8, i8* %21
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 95
br i1 %24, label %25, label %28
25: ; preds = %20
%26 = load i32, i32* @stderr
%27 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 938, i8* getelementptr inbounds ([167 x i8], [167 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %2
br label %87
28: ; preds = %20
%29 = load i8*, i8** %3
store i8* %29, i8** %5
br label %30
30: ; preds = %81, %28
%31 = load i8*, i8** %5
%32 = load i8, i8* %31
%33 = sext i8 %32 to i32
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %86
35: ; preds = %30
%36 = load i32, i32* %4
%37 = icmp sge i32 %36, 31
br i1 %37, label %38, label %41
38: ; preds = %35
%39 = load i32, i32* @stderr
%40 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %39, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 940, i8* getelementptr inbounds ([167 x i8], [167 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %2
br label %87
41: ; preds = %35
%42 = load i8*, i8** %5
%43 = load i8, i8* %42
store i8 %43, i8* %6
%44 = load i8, i8* %6
%45 = sext i8 %44 to i32
%46 = icmp sge i32 %45, 48
br i1 %46, label %47, label %51
47: ; preds = %41
%48 = load i8, i8* %6
%49 = sext i8 %48 to i32
%50 = icmp sle i32 %49, 57
br i1 %50, label %71, label %51
51: ; preds = %47, %41
%52 = load i8, i8* %6
%53 = sext i8 %52 to i32
%54 = icmp sge i32 %53, 97
br i1 %54, label %55, label %59
55: ; preds = %51
%56 = load i8, i8* %6
%57 = sext i8 %56 to i32
%58 = icmp sle i32 %57, 122
br i1 %58, label %71, label %59
59: ; preds = %55, %51
%60 = load i8, i8* %6
%61 = sext i8 %60 to i32
%62 = icmp eq i32 %61, 95
br i1 %62, label %71, label %63
63: ; preds = %59
%64 = load i8, i8* %6
%65 = sext i8 %64 to i32
%66 = icmp sge i32 %65, 65
br i1 %66, label %67, label %72
67: ; preds = %63
%68 = load i8, i8* %6
%69 = sext i8 %68 to i32
%70 = icmp sle i32 %69, 90
br i1 %70, label %71, label %72
71: ; preds = %67, %59, %55, %47
br label %80
72: ; preds = %67, %63
%73 = load i32, i32* @stderr
%74 = load i32, i32* %4
%75 = load i8, i8* %6
%76 = sext i8 %75 to i32
%77 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %73, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 %74, i32 %76)
%78 = load i32, i32* @stderr
%79 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %78, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 949, i8* getelementptr inbounds ([167 x i8], [167 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %2
br label %87
80: ; preds = %71
br label %81
81: ; preds = %80
%82 = load i8*, i8** %5
%83 = getelementptr inbounds i8, i8* %82, i32 1
store i8* %83, i8** %5
%84 = load i32, i32* %4
%85 = add nsw i32 %84, 1
store i32 %85, i32* %4
br label %30
86: ; preds = %30
store i32 1, i32* %2
br label %87
87: ; preds = %86, %72, %38, %25, %17, %9
%88 = load i32, i32* %2
ret i32 %88
}

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 = [12 x i8] c"%d --> %c \0A\00"
define i32 @chk_tbl_name(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %45, label %3
3: ; preds = %1
%4 = load i8, i8* %0
switch i8 %4, label %6 [
i8 0, label %45
i8 95, label %5
]
5: ; preds = %3
br label %45
6: ; preds = %3, %40
%7 = phi i8* [ %41, %40 ], [ %0, %3 ]
%8 = phi i32 [ %42, %40 ], [ 0, %3 ]
%9 = phi i8 [ %43, %40 ], [ %4, %3 ]
%10 = add i8 %9, -48
%11 = icmp ult i8 %10, 10
br i1 %11, label %24, label %12
12: ; preds = %6
%13 = icmp eq i8 %9, 95
%14 = and i8 %9, -33
%15 = add i8 %14, -65
%16 = icmp ult i8 %15, 26
%17 = or i1 %13, %16
br i1 %17, label %24, label %18
18: ; preds = %34, %12
%19 = phi i32 [ %8, %12 ], [ %26, %34 ]
%20 = phi i8 [ %9, %12 ], [ %27, %34 ]
%21 = sext i8 %20 to i32
%22 = load i32, i32* @stderr
%23 = tail call i32 (i32, i8*, i32, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 %19, i32 %21)
br label %45
24: ; preds = %6, %12
%25 = getelementptr inbounds i8, i8* %7, i64 1
%26 = or i32 %8, 1
%27 = load i8, i8* %25
%28 = icmp eq i8 %27, 0
br i1 %28, label %49, label %29
29: ; preds = %24
%30 = icmp eq i32 %26, 31
br i1 %30, label %45, label %31
31: ; preds = %29
%32 = add i8 %27, -48
%33 = icmp ult i8 %32, 10
br i1 %33, label %40, label %34
34: ; preds = %31
%35 = icmp eq i8 %27, 95
%36 = and i8 %27, -33
%37 = add i8 %36, -65
%38 = icmp ult i8 %37, 26
%39 = or i1 %35, %38
br i1 %39, label %40, label %18
40: ; preds = %34, %31
%41 = getelementptr inbounds i8, i8* %7, i64 2
%42 = add nuw nsw i32 %8, 2
%43 = load i8, i8* %41
%44 = icmp eq i8 %43, 0
br i1 %44, label %49, label %6
45: ; preds = %29, %3, %1, %5, %18
%46 = phi i32 [ 949, %18 ], [ 938, %5 ], [ 936, %1 ], [ 937, %3 ], [ 940, %29 ]
%47 = load i32, i32* @stderr
%48 = tail call i32 (i32, i8*, i32, ...) @fprintf(i32 %47, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %46, i8* getelementptr inbounds ([167 x i8], [167 x i8]* @.str.1, i64 0, i64 0))
br label %49
49: ; preds = %24, %40, %45
%50 = phi i32 [ 0, %45 ], [ 1, %40 ], [ 1, %24 ]
ret i32 %50
}