#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__ _is_numeric_char(char);
unsigned char _is_identifier_char(char c) {
  return ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c == '_') ||
          _is_numeric_char(c) || (c == '$'));
}


x86 assembly (clang, -O0):
<_is_identifier_char>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
cmp    $0x61,%eax
jl     113d <_is_identifier_char+0x2d>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x7a,%ecx
mov    %al,-0x2(%rbp)
jle    1196 <_is_identifier_char+0x86>
movsbl -0x1(%rbp),%eax
cmp    $0x41,%eax
jl     115c <_is_identifier_char+0x4c>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x5a,%ecx
mov    %al,-0x2(%rbp)
jle    1196 <_is_identifier_char+0x86>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x5f,%ecx
mov    %al,-0x2(%rbp)
je     1196 <_is_identifier_char+0x86>
movsbl -0x1(%rbp),%edi
call   1030 <_is_numeric_char@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x2(%rbp)
jne    1196 <_is_identifier_char+0x86>
movsbl -0x1(%rbp),%eax
cmp    $0x24,%eax
sete   %al
mov    %al,-0x2(%rbp)
mov    -0x2(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_is_identifier_char>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebx
lea    -0x61(%rbx),%eax
mov    $0x1,%bpl
cmp    $0x1a,%al
jb     113f <_is_identifier_char+0x2f>
cmp    $0x5f,%bl
je     113f <_is_identifier_char+0x2f>
lea    -0x41(%rbx),%eax
cmp    $0x1a,%al
jb     113f <_is_identifier_char+0x2f>
movsbl %bl,%edi
call   1030 <_is_numeric_char@plt>
test   %rax,%rax
jne    113f <_is_identifier_char+0x2f>
cmp    $0x24,%bl
sete   %bpl
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define zeroext i8 @_is_identifier_char(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = icmp sge i32 %4, 97
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
%9 = icmp sle i32 %8, 122
br i1 %9, label %30, label %10
10: ; preds = %6, %1
%11 = load i8, i8* %2
%12 = sext i8 %11 to i32
%13 = icmp sge i32 %12, 65
br i1 %13, label %14, label %18
14: ; preds = %10
%15 = load i8, i8* %2
%16 = sext i8 %15 to i32
%17 = icmp sle i32 %16, 90
br i1 %17, label %30, label %18
18: ; preds = %14, %10
%19 = load i8, i8* %2
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 95
br i1 %21, label %30, label %22
22: ; preds = %18
%23 = load i8, i8* %2
%24 = call i64 @_is_numeric_char(i8 signext %23)
%25 = icmp ne i64 %24, 0
br i1 %25, label %30, label %26
26: ; preds = %22
%27 = load i8, i8* %2
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %28, 36
br label %30
30: ; preds = %26, %22, %18, %14, %6
%31 = phi i1 [ true, %22 ], [ true, %18 ], [ true, %14 ], [ true, %6 ], [ %29, %26 ]
%32 = zext i1 %31 to i32
%33 = trunc i32 %32 to i8
ret i8 %33
}

LLVM IR (-O2):
define zeroext i8 @_is_identifier_char(i8 signext %0) {
%2 = add i8 %0, -97
%3 = icmp ult i8 %2, 26
br i1 %3, label %15, label %4
4: ; preds = %1
%5 = add i8 %0, -65
%6 = icmp ult i8 %5, 26
%7 = icmp eq i8 %0, 95
%8 = or i1 %7, %6
br i1 %8, label %15, label %9
9: ; preds = %4
%10 = tail call i64 @_is_numeric_char(i8 signext %0)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = icmp eq i8 %0, 36
%14 = zext i1 %13 to i8
br label %15
15: ; preds = %4, %1, %12, %9
%16 = phi i8 [ 1, %9 ], [ %14, %12 ], [ 1, %1 ], [ 1, %4 ]
ret i8 %16
}