#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 */
int /*<<< orphan*/ assert(int);
int translate_char(int c) {
  assert(c >= 0);
  switch (c) {
  case '\'':
    return 0x44c;
  case '`':
    return 0x44a;
  case 'J':
  case 'j':
    return -3;
  case 'C':
  case 'c':
  case 'S':
  case 's':
  case 'E':
  case 'e':
  case 'K':
  case 'k':
  case 'Z':
  case 'z':
    return -2;
  case 'A':
    return 0x410;
  case 'B':
    return 0x411;
  case 'V':
    return 0x412;
  case 'G':
    return 0x413;
  case 'D':
    return 0x414;
  case 'I':
    return 0x418;
  case 'L':
    return 0x41B;
  case 'M':
    return 0x41C;
  case 'N':
    return 0x41D;
  case 'O':
    return 0x41E;
  case 'P':
    return 0x41F;
  case 'R':
    return 0x420;
  case 'T':
    return 0x422;
  case 'U':
    return 0x423;
  case 'F':
    return 0x424;
  case 'H':
    return 0x425;
  case 'X':
    return 0x425;
  case 'W':
    return 0x429;
  case 'Y':
    return 0x42B;
  case 'Q':
    return 0x42F;
  case 'a':
    return 0x430;
  case 'b':
    return 0x431;
  case 'v':
    return 0x432;
  case 'g':
    return 0x433;
  case 'd':
    return 0x434;
  case 'i':
    return 0x438;
  case 'l':
    return 0x43b;
  case 'm':
    return 0x43c;
  case 'n':
    return 0x43d;
  case 'o':
    return 0x43e;
  case 'p':
    return 0x43f;
  case 'r':
    return 0x440;
  case 't':
    return 0x442;
  case 'u':
    return 0x443;
  case 'f':
    return 0x444;
  case 'h':
    return 0x445;
  case 'x':
    return 0x445;
  case 'w':
    return 0x449;
  case 'y':
    return 0x44b;
  case 'q':
    return 0x44f;
  }
  return c;
}


x86 assembly (clang, -O0):
<translate_char>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
not    %edi
shr    $0x1f,%edi
call   1030 <assert@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffd9,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x53,%eax
ja     1361 <translate_char+0x251>
mov    -0x10(%rbp),%rax
lea    0xeb8(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x44c,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x44a,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0xfffffffd,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0xfffffffe,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x410,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x411,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x412,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x413,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x414,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x418,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x41b,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x41c,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x41d,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x41e,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x41f,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x420,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x422,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x423,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x424,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x425,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x425,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x429,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x42b,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x42f,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x430,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x431,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x432,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x433,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x434,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x438,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x43b,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x43c,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x43d,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x43e,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x43f,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x440,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x442,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x443,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x444,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x445,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x445,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x449,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x44b,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
movl   $0x44f,-0x4(%rbp)
jmp    1367 <translate_char+0x257>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<translate_char>:
push   %rbx
mov    %edi,%ebx
not    %edi
shr    $0x1f,%edi
call   1030 <assert@plt>
lea    -0x27(%rbx),%ecx
cmp    $0x53,%ecx
ja     1156 <translate_char+0x46>
mov    $0x44c,%eax
lea    0xecf(%rip),%rdx
movslq (%rdx,%rcx,4),%rcx
add    %rdx,%rcx
jmp    *%rcx
mov    $0xfffffffe,%eax
pop    %rbx
ret
mov    $0xfffffffd,%eax
pop    %rbx
ret
mov    $0x425,%eax
pop    %rbx
ret
mov    $0x445,%eax
pop    %rbx
ret
mov    %ebx,%eax
pop    %rbx
ret
mov    $0x410,%eax
pop    %rbx
ret
mov    $0x411,%eax
pop    %rbx
ret
mov    $0x414,%eax
pop    %rbx
ret
mov    $0x424,%eax
pop    %rbx
ret
mov    $0x413,%eax
pop    %rbx
ret
mov    $0x418,%eax
pop    %rbx
ret
mov    $0x41b,%eax
pop    %rbx
ret
mov    $0x41c,%eax
pop    %rbx
ret
mov    $0x41d,%eax
pop    %rbx
ret
mov    $0x41e,%eax
pop    %rbx
ret
mov    $0x41f,%eax
pop    %rbx
ret
mov    $0x42f,%eax
pop    %rbx
ret
mov    $0x420,%eax
pop    %rbx
ret
mov    $0x422,%eax
pop    %rbx
ret
mov    $0x423,%eax
pop    %rbx
ret
mov    $0x412,%eax
pop    %rbx
ret
mov    $0x429,%eax
pop    %rbx
ret
mov    $0x42b,%eax
pop    %rbx
ret
mov    $0x44a,%eax
pop    %rbx
ret
mov    $0x430,%eax
pop    %rbx
ret
mov    $0x431,%eax
pop    %rbx
ret
mov    $0x434,%eax
pop    %rbx
ret
mov    $0x444,%eax
pop    %rbx
ret
mov    $0x433,%eax
pop    %rbx
ret
mov    $0x438,%eax
pop    %rbx
ret
mov    $0x43b,%eax
pop    %rbx
ret
mov    $0x43c,%eax
pop    %rbx
ret
mov    $0x43d,%eax
pop    %rbx
ret
mov    $0x43e,%eax
pop    %rbx
ret
mov    $0x43f,%eax
pop    %rbx
ret
mov    $0x44f,%eax
pop    %rbx
ret
mov    $0x440,%eax
pop    %rbx
ret
mov    $0x442,%eax
pop    %rbx
ret
mov    $0x443,%eax
pop    %rbx
ret
mov    $0x432,%eax
pop    %rbx
ret
mov    $0x449,%eax
pop    %rbx
ret
mov    $0x44b,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @translate_char(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp sge i32 %4, 0
%6 = zext i1 %5 to i32
%7 = call i32 @assert(i32 %6)
%8 = load i32, i32* %3
switch i32 %8, label %53 [
i32 39, label %9
i32 96, label %10
i32 74, label %11
i32 106, label %11
i32 67, label %12
i32 99, label %12
i32 83, label %12
i32 115, label %12
i32 69, label %12
i32 101, label %12
i32 75, label %12
i32 107, label %12
i32 90, label %12
i32 122, label %12
i32 65, label %13
i32 66, label %14
i32 86, label %15
i32 71, label %16
i32 68, label %17
i32 73, label %18
i32 76, label %19
i32 77, label %20
i32 78, label %21
i32 79, label %22
i32 80, label %23
i32 82, label %24
i32 84, label %25
i32 85, label %26
i32 70, label %27
i32 72, label %28
i32 88, label %29
i32 87, label %30
i32 89, label %31
i32 81, label %32
i32 97, label %33
i32 98, label %34
i32 118, label %35
i32 103, label %36
i32 100, label %37
i32 105, label %38
i32 108, label %39
i32 109, label %40
i32 110, label %41
i32 111, label %42
i32 112, label %43
i32 114, label %44
i32 116, label %45
i32 117, label %46
i32 102, label %47
i32 104, label %48
i32 120, label %49
i32 119, label %50
i32 121, label %51
i32 113, label %52
]
9: ; preds = %1
store i32 1100, i32* %2
br label %55
10: ; preds = %1
store i32 1098, i32* %2
br label %55
11: ; preds = %1, %1
store i32 -3, i32* %2
br label %55
12: ; preds = %1, %1, %1, %1, %1, %1, %1, %1, %1, %1
store i32 -2, i32* %2
br label %55
13: ; preds = %1
store i32 1040, i32* %2
br label %55
14: ; preds = %1
store i32 1041, i32* %2
br label %55
15: ; preds = %1
store i32 1042, i32* %2
br label %55
16: ; preds = %1
store i32 1043, i32* %2
br label %55
17: ; preds = %1
store i32 1044, i32* %2
br label %55
18: ; preds = %1
store i32 1048, i32* %2
br label %55
19: ; preds = %1
store i32 1051, i32* %2
br label %55
20: ; preds = %1
store i32 1052, i32* %2
br label %55
21: ; preds = %1
store i32 1053, i32* %2
br label %55
22: ; preds = %1
store i32 1054, i32* %2
br label %55
23: ; preds = %1
store i32 1055, i32* %2
br label %55
24: ; preds = %1
store i32 1056, i32* %2
br label %55
25: ; preds = %1
store i32 1058, i32* %2
br label %55
26: ; preds = %1
store i32 1059, i32* %2
br label %55
27: ; preds = %1
store i32 1060, i32* %2
br label %55
28: ; preds = %1
store i32 1061, i32* %2
br label %55
29: ; preds = %1
store i32 1061, i32* %2
br label %55
30: ; preds = %1
store i32 1065, i32* %2
br label %55
31: ; preds = %1
store i32 1067, i32* %2
br label %55
32: ; preds = %1
store i32 1071, i32* %2
br label %55
33: ; preds = %1
store i32 1072, i32* %2
br label %55
34: ; preds = %1
store i32 1073, i32* %2
br label %55
35: ; preds = %1
store i32 1074, i32* %2
br label %55
36: ; preds = %1
store i32 1075, i32* %2
br label %55
37: ; preds = %1
store i32 1076, i32* %2
br label %55
38: ; preds = %1
store i32 1080, i32* %2
br label %55
39: ; preds = %1
store i32 1083, i32* %2
br label %55
40: ; preds = %1
store i32 1084, i32* %2
br label %55
41: ; preds = %1
store i32 1085, i32* %2
br label %55
42: ; preds = %1
store i32 1086, i32* %2
br label %55
43: ; preds = %1
store i32 1087, i32* %2
br label %55
44: ; preds = %1
store i32 1088, i32* %2
br label %55
45: ; preds = %1
store i32 1090, i32* %2
br label %55
46: ; preds = %1
store i32 1091, i32* %2
br label %55
47: ; preds = %1
store i32 1092, i32* %2
br label %55
48: ; preds = %1
store i32 1093, i32* %2
br label %55
49: ; preds = %1
store i32 1093, i32* %2
br label %55
50: ; preds = %1
store i32 1097, i32* %2
br label %55
51: ; preds = %1
store i32 1099, i32* %2
br label %55
52: ; preds = %1
store i32 1103, i32* %2
br label %55
53: ; preds = %1
%54 = load i32, i32* %3
store i32 %54, i32* %2
br label %55
55: ; preds = %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
%56 = load i32, i32* %2
ret i32 %56
}

LLVM IR (-O2):
define i32 @translate_char(i32 %0) {
%2 = xor i32 %0, -1
%3 = lshr i32 %2, 31
%4 = tail call i32 @assert(i32 %3)
switch i32 %0, label %48 [
i32 39, label %49
i32 96, label %5
i32 74, label %6
i32 106, label %6
i32 67, label %7
i32 99, label %7
i32 83, label %7
i32 115, label %7
i32 69, label %7
i32 101, label %7
i32 75, label %7
i32 107, label %7
i32 90, label %7
i32 122, label %7
i32 65, label %8
i32 66, label %9
i32 86, label %10
i32 71, label %11
i32 68, label %12
i32 73, label %13
i32 76, label %14
i32 77, label %15
i32 78, label %16
i32 79, label %17
i32 80, label %18
i32 82, label %19
i32 84, label %20
i32 85, label %21
i32 70, label %22
i32 72, label %23
i32 88, label %24
i32 87, label %25
i32 89, label %26
i32 81, label %27
i32 97, label %28
i32 98, label %29
i32 118, label %30
i32 103, label %31
i32 100, label %32
i32 105, label %33
i32 108, label %34
i32 109, label %35
i32 110, label %36
i32 111, label %37
i32 112, label %38
i32 114, label %39
i32 116, label %40
i32 117, label %41
i32 102, label %42
i32 104, label %43
i32 120, label %44
i32 119, label %45
i32 121, label %46
i32 113, label %47
]
5: ; preds = %1
br label %49
6: ; preds = %1, %1
br label %49
7: ; preds = %1, %1, %1, %1, %1, %1, %1, %1, %1, %1
br label %49
8: ; preds = %1
br label %49
9: ; preds = %1
br label %49
10: ; preds = %1
br label %49
11: ; preds = %1
br label %49
12: ; preds = %1
br label %49
13: ; preds = %1
br label %49
14: ; preds = %1
br label %49
15: ; preds = %1
br label %49
16: ; preds = %1
br label %49
17: ; preds = %1
br label %49
18: ; preds = %1
br label %49
19: ; preds = %1
br label %49
20: ; preds = %1
br label %49
21: ; preds = %1
br label %49
22: ; preds = %1
br label %49
23: ; preds = %1
br label %49
24: ; preds = %1
br label %49
25: ; preds = %1
br label %49
26: ; preds = %1
br label %49
27: ; preds = %1
br label %49
28: ; preds = %1
br label %49
29: ; preds = %1
br label %49
30: ; preds = %1
br label %49
31: ; preds = %1
br label %49
32: ; preds = %1
br label %49
33: ; preds = %1
br label %49
34: ; preds = %1
br label %49
35: ; preds = %1
br label %49
36: ; preds = %1
br label %49
37: ; preds = %1
br label %49
38: ; preds = %1
br label %49
39: ; preds = %1
br label %49
40: ; preds = %1
br label %49
41: ; preds = %1
br label %49
42: ; preds = %1
br label %49
43: ; preds = %1
br label %49
44: ; preds = %1
br label %49
45: ; preds = %1
br label %49
46: ; preds = %1
br label %49
47: ; preds = %1
br label %49
48: ; preds = %1
br label %49
49: ; preds = %1, %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, %5
%50 = phi i32 [ %0, %48 ], [ 1103, %47 ], [ 1099, %46 ], [ 1097, %45 ], [ 1093, %44 ], [ 1093, %43 ], [ 1092, %42 ], [ 1091, %41 ], [ 1090, %40 ], [ 1088, %39 ], [ 1087, %38 ], [ 1086, %37 ], [ 1085, %36 ], [ 1084, %35 ], [ 1083, %34 ], [ 1080, %33 ], [ 1076, %32 ], [ 1075, %31 ], [ 1074, %30 ], [ 1073, %29 ], [ 1072, %28 ], [ 1071, %27 ], [ 1067, %26 ], [ 1065, %25 ], [ 1061, %24 ], [ 1061, %23 ], [ 1060, %22 ], [ 1059, %21 ], [ 1058, %20 ], [ 1056, %19 ], [ 1055, %18 ], [ 1054, %17 ], [ 1053, %16 ], [ 1052, %15 ], [ 1051, %14 ], [ 1048, %13 ], [ 1044, %12 ], [ 1043, %11 ], [ 1042, %10 ], [ 1041, %9 ], [ 1040, %8 ], [ -2, %7 ], [ -3, %6 ], [ 1098, %5 ], [ 1100, %1 ]
ret i32 %50
}