#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 */
bool is_non_symbol(char c) {
  if (c == '\0')
    return 1;
  int c_int = (int)c;
  return (c_int >= 48 && c_int <= 57) || (c_int >= 65 && c_int <= 90) ||
         (c_int >= 97 && c_int <= 122);
}


x86 assembly (clang, -O0):
<is_non_symbol>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0x0,%eax
jne    1123 <is_non_symbol+0x23>
movl   $0x1,-0x4(%rbp)
jmp    1186 <is_non_symbol+0x86>
movsbl -0x5(%rbp),%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x30,-0xc(%rbp)
jl     1143 <is_non_symbol+0x43>
mov    $0x1,%al
cmpl   $0x39,-0xc(%rbp)
mov    %al,-0xd(%rbp)
jle    117b <is_non_symbol+0x7b>
cmpl   $0x41,-0xc(%rbp)
jl     115c <is_non_symbol+0x5c>
mov    $0x1,%al
cmpl   $0x5a,-0xc(%rbp)
mov    %al,-0xd(%rbp)
jle    117b <is_non_symbol+0x7b>
xor    %eax,%eax
cmpl   $0x61,-0xc(%rbp)
mov    %al,-0xe(%rbp)
jl     1175 <is_non_symbol+0x75>
cmpl   $0x7a,-0xc(%rbp)
setle  %al
mov    %al,-0xe(%rbp)
mov    -0xe(%rbp),%al
mov    %al,-0xd(%rbp)
mov    -0xd(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_non_symbol>:
test   %dil,%dil
je     1122 <is_non_symbol+0x22>
lea    -0x30(%rdi),%eax
cmp    $0xa,%al
setb   %al
and    $0xdf,%dil
add    $0xbf,%dil
cmp    $0x1a,%dil
setb   %cl
or     %al,%cl
movzbl %cl,%eax
ret
mov    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @is_non_symbol(i8 signext %0) {
%2 = icmp eq i8 %0, 0
br i1 %2, label %11, label %3
3: ; preds = %1
%4 = add i8 %0, -48
%5 = icmp ult i8 %4, 10
%6 = and i8 %0, -33
%7 = add i8 %6, -65
%8 = icmp ult i8 %7, 26
%9 = or i1 %5, %8
%10 = zext i1 %9 to i32
br label %11
11: ; preds = %1, %3
%12 = phi i32 [ %10, %3 ], [ 1, %1 ]
ret i32 %12
}