int PR_LookUpCharID(char c) {
  switch (c) {
  case 'A':
    return 1;
    break;
  case 'B':
    return 2;
    break;
  case 'C':
    return 3;
    break;
  case 'D':
    return 4;
    break;
  case 'E':
    return 5;
    break;
  case 'F':
    return 6;
    break;
  case 'G':
    return 7;
    break;
  case 'H':
    return 8;
    break;
  case 'I':
    return 9;
    break;
  case 'J':
    return 10;
    break;
  case 'K':
    return 11;
    break;
  case 'L':
    return 12;
    break;
  case 'M':
    return 13;
    break;
  case 'N':
    return 14;
    break;
  case 'O':
    return 15;
    break;
  case 'P':
    return 16;
    break;
  case 'Q':
    return 17;
    break;
  case 'R':
    return 18;
    break;
  case 'S':
    return 19;
    break;
  case 'T':
    return 20;
    break;
  case 'U':
    return 21;
    break;
  case 'V':
    return 22;
    break;
  case 'W':
    return 23;
    break;
  case 'X':
    return 24;
    break;
  case 'Y':
    return 25;
    break;
  case 'Z':
    return 26;
    break;
  case '.':
    return 27;
    break;
  case 'a':
    return 28;
    break;
  case 'b':
    return 29;
    break;
  case 'c':
    return 30;
    break;
  case 'd':
    return 31;
    break;
  case 'e':
    return 32;
    break;
  case 'f':
    return 33;
    break;
  case 'g':
    return 34;
    break;
  case 'h':
    return 35;
    break;
  case 'i':
    return 36;
    break;
  case 'j':
    return 37;
    break;
  case 'k':
    return 38;
    break;
  case 'l':
    return 39;
    break;
  case 'm':
    return 40;
    break;
  case 'n':
    return 41;
    break;
  case 'o':
    return 42;
    break;
  case 'p':
    return 43;
    break;
  case 'q':
    return 44;
    break;
  case 'r':
    return 45;
    break;
  case 's':
    return 46;
    break;
  case 't':
    return 47;
    break;
  case 'u':
    return 48;
    break;
  case 'v':
    return 49;
    break;
  case 'w':
    return 50;
    break;
  case 'x':
    return 51;
    break;
  case 'y':
    return 52;
    break;
  case 'z':
    return 53;
    break;
  case '0':
    return 54;
    break;
  case '1':
    return 55;
    break;
  case '2':
    return 56;
    break;
  case '3':
    return 57;
    break;
  case '4':
    return 58;
    break;
  case '5':
    return 59;
    break;
  case '6':
    return 60;
    break;
  case '7':
    return 61;
    break;
  case '8':
    return 62;
    break;
  case '9':
    return 63;
    break;
  case '-':
    return 64;
    break;
  case '_':
    return 65;
    break;
  default:
    return 0;
    break;
  }
  return 0;
}


x86 assembly (clang, -O0):
<PR_LookUpCharID>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
add    $0xffffffd3,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x4d,%eax
ja     1440 <PR_LookUpCharID+0x340>
mov    -0x10(%rbp),%rax
lea    0xed5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x1,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x2,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x3,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x4,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x5,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x6,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x7,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x8,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x9,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0xa,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0xb,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0xc,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0xd,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0xe,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0xf,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x10,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x11,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x12,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x13,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x14,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x15,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x16,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x17,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x18,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x19,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x1a,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x1b,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x1c,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x1d,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x1e,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x1f,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x20,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x21,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x22,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x23,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x24,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x25,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x26,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x27,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x28,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x29,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x2a,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x2b,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x2c,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x2d,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x2e,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x2f,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x30,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x31,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x32,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x33,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x34,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x35,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x36,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x37,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x38,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x39,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x3a,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x3b,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x3c,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x3d,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x3e,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x3f,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x40,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x41,-0x4(%rbp)
jmp    1447 <PR_LookUpCharID+0x347>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<PR_LookUpCharID>:
add    $0xffffffd3,%edi
xor    %eax,%eax
cmp    $0x4d,%edi
ja     1117 <PR_LookUpCharID+0x17>
movslq %edi,%rax
lea    0xeec(%rip),%rcx
mov    (%rcx,%rax,4),%eax
ret

LLVM IR (-O0):
define i32 @PR_LookUpCharID(i8 signext %0) {
%2 = alloca i32
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = sext i8 %4 to i32
switch i32 %5, label %71 [
i32 65, label %6
i32 66, label %7
i32 67, label %8
i32 68, label %9
i32 69, label %10
i32 70, label %11
i32 71, label %12
i32 72, label %13
i32 73, label %14
i32 74, label %15
i32 75, label %16
i32 76, label %17
i32 77, label %18
i32 78, label %19
i32 79, label %20
i32 80, label %21
i32 81, label %22
i32 82, label %23
i32 83, label %24
i32 84, label %25
i32 85, label %26
i32 86, label %27
i32 87, label %28
i32 88, label %29
i32 89, label %30
i32 90, label %31
i32 46, label %32
i32 97, label %33
i32 98, label %34
i32 99, label %35
i32 100, label %36
i32 101, label %37
i32 102, label %38
i32 103, label %39
i32 104, label %40
i32 105, label %41
i32 106, label %42
i32 107, label %43
i32 108, label %44
i32 109, label %45
i32 110, label %46
i32 111, label %47
i32 112, label %48
i32 113, label %49
i32 114, label %50
i32 115, label %51
i32 116, label %52
i32 117, label %53
i32 118, label %54
i32 119, label %55
i32 120, label %56
i32 121, label %57
i32 122, label %58
i32 48, label %59
i32 49, label %60
i32 50, label %61
i32 51, label %62
i32 52, label %63
i32 53, label %64
i32 54, label %65
i32 55, label %66
i32 56, label %67
i32 57, label %68
i32 45, label %69
i32 95, label %70
]
6: ; preds = %1
store i32 1, i32* %2
br label %72
7: ; preds = %1
store i32 2, i32* %2
br label %72
8: ; preds = %1
store i32 3, i32* %2
br label %72
9: ; preds = %1
store i32 4, i32* %2
br label %72
10: ; preds = %1
store i32 5, i32* %2
br label %72
11: ; preds = %1
store i32 6, i32* %2
br label %72
12: ; preds = %1
store i32 7, i32* %2
br label %72
13: ; preds = %1
store i32 8, i32* %2
br label %72
14: ; preds = %1
store i32 9, i32* %2
br label %72
15: ; preds = %1
store i32 10, i32* %2
br label %72
16: ; preds = %1
store i32 11, i32* %2
br label %72
17: ; preds = %1
store i32 12, i32* %2
br label %72
18: ; preds = %1
store i32 13, i32* %2
br label %72
19: ; preds = %1
store i32 14, i32* %2
br label %72
20: ; preds = %1
store i32 15, i32* %2
br label %72
21: ; preds = %1
store i32 16, i32* %2
br label %72
22: ; preds = %1
store i32 17, i32* %2
br label %72
23: ; preds = %1
store i32 18, i32* %2
br label %72
24: ; preds = %1
store i32 19, i32* %2
br label %72
25: ; preds = %1
store i32 20, i32* %2
br label %72
26: ; preds = %1
store i32 21, i32* %2
br label %72
27: ; preds = %1
store i32 22, i32* %2
br label %72
28: ; preds = %1
store i32 23, i32* %2
br label %72
29: ; preds = %1
store i32 24, i32* %2
br label %72
30: ; preds = %1
store i32 25, i32* %2
br label %72
31: ; preds = %1
store i32 26, i32* %2
br label %72
32: ; preds = %1
store i32 27, i32* %2
br label %72
33: ; preds = %1
store i32 28, i32* %2
br label %72
34: ; preds = %1
store i32 29, i32* %2
br label %72
35: ; preds = %1
store i32 30, i32* %2
br label %72
36: ; preds = %1
store i32 31, i32* %2
br label %72
37: ; preds = %1
store i32 32, i32* %2
br label %72
38: ; preds = %1
store i32 33, i32* %2
br label %72
39: ; preds = %1
store i32 34, i32* %2
br label %72
40: ; preds = %1
store i32 35, i32* %2
br label %72
41: ; preds = %1
store i32 36, i32* %2
br label %72
42: ; preds = %1
store i32 37, i32* %2
br label %72
43: ; preds = %1
store i32 38, i32* %2
br label %72
44: ; preds = %1
store i32 39, i32* %2
br label %72
45: ; preds = %1
store i32 40, i32* %2
br label %72
46: ; preds = %1
store i32 41, i32* %2
br label %72
47: ; preds = %1
store i32 42, i32* %2
br label %72
48: ; preds = %1
store i32 43, i32* %2
br label %72
49: ; preds = %1
store i32 44, i32* %2
br label %72
50: ; preds = %1
store i32 45, i32* %2
br label %72
51: ; preds = %1
store i32 46, i32* %2
br label %72
52: ; preds = %1
store i32 47, i32* %2
br label %72
53: ; preds = %1
store i32 48, i32* %2
br label %72
54: ; preds = %1
store i32 49, i32* %2
br label %72
55: ; preds = %1
store i32 50, i32* %2
br label %72
56: ; preds = %1
store i32 51, i32* %2
br label %72
57: ; preds = %1
store i32 52, i32* %2
br label %72
58: ; preds = %1
store i32 53, i32* %2
br label %72
59: ; preds = %1
store i32 54, i32* %2
br label %72
60: ; preds = %1
store i32 55, i32* %2
br label %72
61: ; preds = %1
store i32 56, i32* %2
br label %72
62: ; preds = %1
store i32 57, i32* %2
br label %72
63: ; preds = %1
store i32 58, i32* %2
br label %72
64: ; preds = %1
store i32 59, i32* %2
br label %72
65: ; preds = %1
store i32 60, i32* %2
br label %72
66: ; preds = %1
store i32 61, i32* %2
br label %72
67: ; preds = %1
store i32 62, i32* %2
br label %72
68: ; preds = %1
store i32 63, i32* %2
br label %72
69: ; preds = %1
store i32 64, i32* %2
br label %72
70: ; preds = %1
store i32 65, i32* %2
br label %72
71: ; preds = %1
store i32 0, i32* %2
br label %72
72: ; preds = %71, %70, %69, %68, %67, %66, %65, %64, %63, %62, %61, %60, %59, %58, %57, %56, %55, %54, %53, %52, %51, %50, %49, %48, %47, %46, %45, %44, %43, %42, %41, %40, %39, %38, %37, %36, %35, %34, %33, %32, %31, %30, %29, %28, %27, %26, %25, %24, %23, %22, %21, %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6
%73 = load i32, i32* %2
ret i32 %73
}

LLVM IR (-O2):
@switch.table.PR_LookUpCharID = [78 x i32] [i32 64, i32 27, i32 0, i32 54, i32 55, i32 56, i32 57, i32 58, i32 59, i32 60, i32 61, i32 62, i32 63, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 0, i32 0, i32 0, i32 0, i32 65, i32 0, i32 28, i32 29, i32 30, i32 31, i32 32, i32 33, i32 34, i32 35, i32 36, i32 37, i32 38, i32 39, i32 40, i32 41, i32 42, i32 43, i32 44, i32 45, i32 46, i32 47, i32 48, i32 49, i32 50, i32 51, i32 52, i32 53]
define i32 @PR_LookUpCharID(i8 signext %0) {
%2 = sext i8 %0 to i32
%3 = add nsw i32 %2, -45
%4 = icmp ult i32 %3, 78
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = sext i32 %3 to i64
%7 = getelementptr inbounds [78 x i32], [78 x i32]* @switch.table.PR_LookUpCharID, i64 0, i64 %6
%8 = load i32, i32* %7
br label %9
9: ; preds = %1, %5
%10 = phi i32 [ %8, %5 ], [ 0, %1 ]
ret i32 %10
}