int e_tast_sim(int c) {
  if (c >= 'A' && c <= 'Z')
    return (c + 1024 - 'A');
  switch (c) {
  case 'a':
    return (285);
  case 'b':
    return (303);
  case 'c':
    return (301);
  case 'd':
    return (287);
  case 'e':
    return (273);
  case 'f':
    return (288);
  case 'g':
    return (289);
  case 'h':
    return (290);
  case 'i':
    return (278);
  case 'j':
    return (291);
  case 'k':
    return (292);
  case 'l':
    return (293);
  case 'm':
    return (305);
  case 'n':
    return (304);
  case 'o':
    return (279);
  case 'p':
    return (280);
  case 'q':
    return (271);
  case 'r':
    return (274);
  case 's':
    return (286);
  case 't':
    return (275);
  case 'u':
    return (277);
  case 'v':
    return (302);
  case 'w':
    return (272);
  case 'x':
    return (300);
  case 'y':
    return (299);
  case 'z':
    return (276);
  case '1':
    return (375);
  case '2':
    return (376);
  case '3':
    return (377);
  case '4':
    return (378);
  case '5':
    return (379);
  case '6':
    return (380);
  case '7':
    return (381);
  case '8':
    return (382);
  case '9':
    return (383);
  case '0':
    return (384);
  case ' ':
    return (386);
  case '#':
    return (298);
  case 1:
    return (387);
  case 5:
    return (373);
  case 2:
    return (370);
  case 6:
    return (371);
  case 16:
    return (374);
  case 14:
    return (372);
  case 8:
    return (385);
  default:
    return (0);
  }
}


x86 assembly (clang, -O0):
<e_tast_sim>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x41,-0x8(%rbp)
jl     112e <e_tast_sim+0x2e>
cmpl   $0x5a,-0x8(%rbp)
jg     112e <e_tast_sim+0x2e>
mov    -0x8(%rbp),%eax
add    $0x400,%eax
sub    $0x41,%eax
mov    %eax,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x79,%eax
ja     1373 <e_tast_sim+0x273>
mov    -0x10(%rbp),%rax
lea    0xeb2(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x11d,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x12f,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x12d,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x11f,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x111,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x120,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x121,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x122,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x116,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x123,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x124,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x125,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x131,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x130,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x117,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x118,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x10f,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x112,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x11e,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x113,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x115,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x12e,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x110,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x12c,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x12b,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x114,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x177,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x178,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x179,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x17a,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x17b,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x17c,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x17d,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x17e,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x17f,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x180,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x182,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x12a,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x183,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x175,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x172,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x173,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x176,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x174,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x181,-0x4(%rbp)
jmp    137a <e_tast_sim+0x27a>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<e_tast_sim>:
lea    -0x41(%rdi),%eax
cmp    $0x19,%eax
ja     1111 <e_tast_sim+0x11>
add    $0x3bf,%edi
mov    %edi,%eax
ret
add    $0xffffffff,%edi
cmp    $0x79,%edi
ja     113a <e_tast_sim+0x3a>
mov    $0x11d,%eax
lea    0xedb(%rip),%rcx
movslq (%rcx,%rdi,4),%rdx
add    %rcx,%rdx
jmp    *%rdx
mov    $0x183,%eax
ret
mov    $0x172,%eax
ret
xor    %eax,%eax
ret
mov    $0x175,%eax
ret
mov    $0x173,%eax
ret
mov    $0x181,%eax
ret
mov    $0x174,%eax
ret
mov    $0x176,%eax
ret
mov    $0x182,%eax
ret
mov    $0x12a,%eax
ret
mov    $0x180,%eax
ret
mov    $0x177,%eax
ret
mov    $0x178,%eax
ret
mov    $0x179,%eax
ret
mov    $0x17a,%eax
ret
mov    $0x17b,%eax
ret
mov    $0x17c,%eax
ret
mov    $0x17d,%eax
ret
mov    $0x17e,%eax
ret
mov    $0x17f,%eax
ret
mov    $0x12f,%eax
ret
mov    $0x12d,%eax
ret
mov    $0x11f,%eax
ret
mov    $0x111,%eax
ret
mov    $0x120,%eax
ret
mov    $0x121,%eax
ret
mov    $0x122,%eax
ret
mov    $0x116,%eax
ret
mov    $0x123,%eax
ret
mov    $0x124,%eax
ret
mov    $0x125,%eax
ret
mov    $0x131,%eax
ret
mov    $0x130,%eax
ret
mov    $0x117,%eax
ret
mov    $0x118,%eax
ret
mov    $0x10f,%eax
ret
mov    $0x112,%eax
ret
mov    $0x11e,%eax
ret
mov    $0x113,%eax
ret
mov    $0x115,%eax
ret
mov    $0x12e,%eax
ret
mov    $0x110,%eax
ret
mov    $0x12c,%eax
ret
mov    $0x12b,%eax
ret
mov    $0x114,%eax
ret

LLVM IR (-O0):
define i32 @e_tast_sim(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp sge i32 %4, 65
br i1 %5, label %6, label %13
6: ; preds = %1
%7 = load i32, i32* %3
%8 = icmp sle i32 %7, 90
br i1 %8, label %9, label %13
9: ; preds = %6
%10 = load i32, i32* %3
%11 = add nsw i32 %10, 1024
%12 = sub nsw i32 %11, 65
store i32 %12, i32* %2
br label %61
13: ; preds = %6, %1
%14 = load i32, i32* %3
switch i32 %14, label %60 [
i32 97, label %15
i32 98, label %16
i32 99, label %17
i32 100, label %18
i32 101, label %19
i32 102, label %20
i32 103, label %21
i32 104, label %22
i32 105, label %23
i32 106, label %24
i32 107, label %25
i32 108, label %26
i32 109, label %27
i32 110, label %28
i32 111, label %29
i32 112, label %30
i32 113, label %31
i32 114, label %32
i32 115, label %33
i32 116, label %34
i32 117, label %35
i32 118, label %36
i32 119, label %37
i32 120, label %38
i32 121, label %39
i32 122, label %40
i32 49, label %41
i32 50, label %42
i32 51, label %43
i32 52, label %44
i32 53, label %45
i32 54, label %46
i32 55, label %47
i32 56, label %48
i32 57, label %49
i32 48, label %50
i32 32, label %51
i32 35, label %52
i32 1, label %53
i32 5, label %54
i32 2, label %55
i32 6, label %56
i32 16, label %57
i32 14, label %58
i32 8, label %59
]
15: ; preds = %13
store i32 285, i32* %2
br label %61
16: ; preds = %13
store i32 303, i32* %2
br label %61
17: ; preds = %13
store i32 301, i32* %2
br label %61
18: ; preds = %13
store i32 287, i32* %2
br label %61
19: ; preds = %13
store i32 273, i32* %2
br label %61
20: ; preds = %13
store i32 288, i32* %2
br label %61
21: ; preds = %13
store i32 289, i32* %2
br label %61
22: ; preds = %13
store i32 290, i32* %2
br label %61
23: ; preds = %13
store i32 278, i32* %2
br label %61
24: ; preds = %13
store i32 291, i32* %2
br label %61
25: ; preds = %13
store i32 292, i32* %2
br label %61
26: ; preds = %13
store i32 293, i32* %2
br label %61
27: ; preds = %13
store i32 305, i32* %2
br label %61
28: ; preds = %13
store i32 304, i32* %2
br label %61
29: ; preds = %13
store i32 279, i32* %2
br label %61
30: ; preds = %13
store i32 280, i32* %2
br label %61
31: ; preds = %13
store i32 271, i32* %2
br label %61
32: ; preds = %13
store i32 274, i32* %2
br label %61
33: ; preds = %13
store i32 286, i32* %2
br label %61
34: ; preds = %13
store i32 275, i32* %2
br label %61
35: ; preds = %13
store i32 277, i32* %2
br label %61
36: ; preds = %13
store i32 302, i32* %2
br label %61
37: ; preds = %13
store i32 272, i32* %2
br label %61
38: ; preds = %13
store i32 300, i32* %2
br label %61
39: ; preds = %13
store i32 299, i32* %2
br label %61
40: ; preds = %13
store i32 276, i32* %2
br label %61
41: ; preds = %13
store i32 375, i32* %2
br label %61
42: ; preds = %13
store i32 376, i32* %2
br label %61
43: ; preds = %13
store i32 377, i32* %2
br label %61
44: ; preds = %13
store i32 378, i32* %2
br label %61
45: ; preds = %13
store i32 379, i32* %2
br label %61
46: ; preds = %13
store i32 380, i32* %2
br label %61
47: ; preds = %13
store i32 381, i32* %2
br label %61
48: ; preds = %13
store i32 382, i32* %2
br label %61
49: ; preds = %13
store i32 383, i32* %2
br label %61
50: ; preds = %13
store i32 384, i32* %2
br label %61
51: ; preds = %13
store i32 386, i32* %2
br label %61
52: ; preds = %13
store i32 298, i32* %2
br label %61
53: ; preds = %13
store i32 387, i32* %2
br label %61
54: ; preds = %13
store i32 373, i32* %2
br label %61
55: ; preds = %13
store i32 370, i32* %2
br label %61
56: ; preds = %13
store i32 371, i32* %2
br label %61
57: ; preds = %13
store i32 374, i32* %2
br label %61
58: ; preds = %13
store i32 372, i32* %2
br label %61
59: ; preds = %13
store i32 385, i32* %2
br label %61
60: ; preds = %13
store i32 0, i32* %2
br label %61
61: ; preds = %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, %9
%62 = load i32, i32* %2
ret i32 %62
}

LLVM IR (-O2):
define i32 @e_tast_sim(i32 %0) {
%2 = add i32 %0, -65
%3 = icmp ult i32 %2, 26
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = add nuw nsw i32 %0, 959
br label %52
6: ; preds = %1
switch i32 %0, label %51 [
i32 97, label %52
i32 98, label %7
i32 99, label %8
i32 100, label %9
i32 101, label %10
i32 102, label %11
i32 103, label %12
i32 104, label %13
i32 105, label %14
i32 106, label %15
i32 107, label %16
i32 108, label %17
i32 109, label %18
i32 110, label %19
i32 111, label %20
i32 112, label %21
i32 113, label %22
i32 114, label %23
i32 115, label %24
i32 116, label %25
i32 117, label %26
i32 118, label %27
i32 119, label %28
i32 120, label %29
i32 121, label %30
i32 122, label %31
i32 49, label %32
i32 50, label %33
i32 51, label %34
i32 52, label %35
i32 53, label %36
i32 54, label %37
i32 55, label %38
i32 56, label %39
i32 57, label %40
i32 48, label %41
i32 32, label %42
i32 35, label %43
i32 1, label %44
i32 5, label %45
i32 2, label %46
i32 6, label %47
i32 16, label %48
i32 14, label %49
i32 8, label %50
]
7: ; preds = %6
br label %52
8: ; preds = %6
br label %52
9: ; preds = %6
br label %52
10: ; preds = %6
br label %52
11: ; preds = %6
br label %52
12: ; preds = %6
br label %52
13: ; preds = %6
br label %52
14: ; preds = %6
br label %52
15: ; preds = %6
br label %52
16: ; preds = %6
br label %52
17: ; preds = %6
br label %52
18: ; preds = %6
br label %52
19: ; preds = %6
br label %52
20: ; preds = %6
br label %52
21: ; preds = %6
br label %52
22: ; preds = %6
br label %52
23: ; preds = %6
br label %52
24: ; preds = %6
br label %52
25: ; preds = %6
br label %52
26: ; preds = %6
br label %52
27: ; preds = %6
br label %52
28: ; preds = %6
br label %52
29: ; preds = %6
br label %52
30: ; preds = %6
br label %52
31: ; preds = %6
br label %52
32: ; preds = %6
br label %52
33: ; preds = %6
br label %52
34: ; preds = %6
br label %52
35: ; preds = %6
br label %52
36: ; preds = %6
br label %52
37: ; preds = %6
br label %52
38: ; preds = %6
br label %52
39: ; preds = %6
br label %52
40: ; preds = %6
br label %52
41: ; preds = %6
br label %52
42: ; preds = %6
br label %52
43: ; preds = %6
br label %52
44: ; preds = %6
br label %52
45: ; preds = %6
br label %52
46: ; preds = %6
br label %52
47: ; preds = %6
br label %52
48: ; preds = %6
br label %52
49: ; preds = %6
br label %52
50: ; preds = %6
br label %52
51: ; preds = %6
br label %52
52: ; preds = %6, %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, %4
%53 = phi i32 [ %5, %4 ], [ 0, %51 ], [ 385, %50 ], [ 372, %49 ], [ 374, %48 ], [ 371, %47 ], [ 370, %46 ], [ 373, %45 ], [ 387, %44 ], [ 298, %43 ], [ 386, %42 ], [ 384, %41 ], [ 383, %40 ], [ 382, %39 ], [ 381, %38 ], [ 380, %37 ], [ 379, %36 ], [ 378, %35 ], [ 377, %34 ], [ 376, %33 ], [ 375, %32 ], [ 276, %31 ], [ 299, %30 ], [ 300, %29 ], [ 272, %28 ], [ 302, %27 ], [ 277, %26 ], [ 275, %25 ], [ 286, %24 ], [ 274, %23 ], [ 271, %22 ], [ 280, %21 ], [ 279, %20 ], [ 304, %19 ], [ 305, %18 ], [ 293, %17 ], [ 292, %16 ], [ 291, %15 ], [ 278, %14 ], [ 290, %13 ], [ 289, %12 ], [ 288, %11 ], [ 273, %10 ], [ 287, %9 ], [ 301, %8 ], [ 303, %7 ], [ 285, %6 ]
ret i32 %53
}