#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 IsConceivablyPartOfANumber(char C) {
  bool Result = ('0' <= C && C <= '9') || ('a' <= C && C <= 'f') ||
                ('A' <= C && C <= 'F') || C == '+' || C == '-' || C == '.' ||
                C == 'x';
  return Result;
}


x86 assembly (clang, -O0):
<IsConceivablyPartOfANumber>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%ecx
mov    $0x30,%eax
cmp    %ecx,%eax
jg     112d <IsConceivablyPartOfANumber+0x2d>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x39,%ecx
mov    %al,-0x9(%rbp)
jle    11b6 <IsConceivablyPartOfANumber+0xb6>
movsbl -0x1(%rbp),%ecx
mov    $0x61,%eax
cmp    %ecx,%eax
jg     1150 <IsConceivablyPartOfANumber+0x50>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x66,%ecx
mov    %al,-0x9(%rbp)
jle    11b6 <IsConceivablyPartOfANumber+0xb6>
movsbl -0x1(%rbp),%ecx
mov    $0x41,%eax
cmp    %ecx,%eax
jg     1173 <IsConceivablyPartOfANumber+0x73>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x46,%ecx
mov    %al,-0x9(%rbp)
jle    11b6 <IsConceivablyPartOfANumber+0xb6>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x2b,%ecx
mov    %al,-0x9(%rbp)
je     11b6 <IsConceivablyPartOfANumber+0xb6>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x2d,%ecx
mov    %al,-0x9(%rbp)
je     11b6 <IsConceivablyPartOfANumber+0xb6>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x2e,%ecx
mov    %al,-0x9(%rbp)
je     11b6 <IsConceivablyPartOfANumber+0xb6>
movsbl -0x1(%rbp),%eax
cmp    $0x78,%eax
sete   %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<IsConceivablyPartOfANumber>:
lea    -0x30(%rdi),%ecx
mov    $0x1,%eax
cmp    $0xa,%cl
jb     112b <IsConceivablyPartOfANumber+0x2b>
lea    -0x61(%rdi),%ecx
cmp    $0x6,%cl
jb     112b <IsConceivablyPartOfANumber+0x2b>
lea    -0x2b(%rdi),%ecx
cmp    $0x1b,%cl
ja     112c <IsConceivablyPartOfANumber+0x2c>
movzbl %cl,%ecx
mov    $0xfc0000d,%edx
bt     %rcx,%rdx
jae    112c <IsConceivablyPartOfANumber+0x2c>
ret
xor    %eax,%eax
cmp    $0x78,%dil
sete   %al
ret

LLVM IR (-O0):
define i32 @IsConceivablyPartOfANumber(i8 signext %0) {
%2 = alloca i8
%3 = alloca i32
store i8 %0, i8* %2
%4 = load i8, i8* %2
%5 = sext i8 %4 to i32
%6 = icmp sle i32 48, %5
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = load i8, i8* %2
%9 = sext i8 %8 to i32
%10 = icmp sle i32 %9, 57
br i1 %10, label %43, label %11
11: ; preds = %7, %1
%12 = load i8, i8* %2
%13 = sext i8 %12 to i32
%14 = icmp sle i32 97, %13
br i1 %14, label %15, label %19
15: ; preds = %11
%16 = load i8, i8* %2
%17 = sext i8 %16 to i32
%18 = icmp sle i32 %17, 102
br i1 %18, label %43, label %19
19: ; preds = %15, %11
%20 = load i8, i8* %2
%21 = sext i8 %20 to i32
%22 = icmp sle i32 65, %21
br i1 %22, label %23, label %27
23: ; preds = %19
%24 = load i8, i8* %2
%25 = sext i8 %24 to i32
%26 = icmp sle i32 %25, 70
br i1 %26, label %43, label %27
27: ; preds = %23, %19
%28 = load i8, i8* %2
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 43
br i1 %30, label %43, label %31
31: ; preds = %27
%32 = load i8, i8* %2
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 45
br i1 %34, label %43, label %35
35: ; preds = %31
%36 = load i8, i8* %2
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 46
br i1 %38, label %43, label %39
39: ; preds = %35
%40 = load i8, i8* %2
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %41, 120
br label %43
43: ; preds = %39, %35, %31, %27, %23, %15, %7
%44 = phi i1 [ true, %35 ], [ true, %31 ], [ true, %27 ], [ true, %23 ], [ true, %15 ], [ true, %7 ], [ %42, %39 ]
%45 = zext i1 %44 to i32
store i32 %45, i32* %3
%46 = load i32, i32* %3
ret i32 %46
}

LLVM IR (-O2):
define i32 @IsConceivablyPartOfANumber(i8 signext %0) {
%2 = add i8 %0, -48
%3 = icmp ult i8 %2, 10
%4 = add i8 %0, -97
%5 = icmp ult i8 %4, 6
%6 = or i1 %3, %5
br i1 %6, label %11, label %7
7: ; preds = %1
switch i8 %0, label %8 [
i8 70, label %11
i8 69, label %11
i8 68, label %11
i8 67, label %11
i8 66, label %11
i8 65, label %11
i8 46, label %11
i8 45, label %11
i8 43, label %11
]
8: ; preds = %7
%9 = icmp eq i8 %0, 120
%10 = zext i1 %9 to i32
br label %11
11: ; preds = %7, %7, %7, %7, %7, %7, %7, %7, %7, %1, %8
%12 = phi i32 [ %10, %8 ], [ 1, %1 ], [ 1, %7 ], [ 1, %7 ], [ 1, %7 ], [ 1, %7 ], [ 1, %7 ], [ 1, %7 ], [ 1, %7 ], [ 1, %7 ], [ 1, %7 ]
ret i32 %12
}