#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);
int translate_char_and_h_suffix(int c) {
  assert(translate_char(c) == -2);
  switch (c) {
  case 'C':
    return 0x427;
  case 'S':
    return 0x428;
  case 'E':
    return 0x42D;
  case 'K':
    return 0x425;
  case 'Z':
    return 0x416;
  case 'c':
    return 0x447;
  case 's':
    return 0x448;
  case 'e':
    return 0x44d;
  case 'k':
    return 0x445;
  case 'z':
    return 0x436;
  }
  return c;
}


x86 assembly (clang, -O0):
<translate_char_and_h_suffix>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1040 <translate_char@plt>
sub    $0xfffffffe,%eax
sete   %al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffbd,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x37,%eax
ja     11e2 <translate_char_and_h_suffix+0xc2>
mov    -0x10(%rbp),%rax
lea    0xe9f(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x427,-0x4(%rbp)
jmp    11e8 <translate_char_and_h_suffix+0xc8>
movl   $0x428,-0x4(%rbp)
jmp    11e8 <translate_char_and_h_suffix+0xc8>
movl   $0x42d,-0x4(%rbp)
jmp    11e8 <translate_char_and_h_suffix+0xc8>
movl   $0x425,-0x4(%rbp)
jmp    11e8 <translate_char_and_h_suffix+0xc8>
movl   $0x416,-0x4(%rbp)
jmp    11e8 <translate_char_and_h_suffix+0xc8>
movl   $0x447,-0x4(%rbp)
jmp    11e8 <translate_char_and_h_suffix+0xc8>
movl   $0x448,-0x4(%rbp)
jmp    11e8 <translate_char_and_h_suffix+0xc8>
movl   $0x44d,-0x4(%rbp)
jmp    11e8 <translate_char_and_h_suffix+0xc8>
movl   $0x445,-0x4(%rbp)
jmp    11e8 <translate_char_and_h_suffix+0xc8>
movl   $0x436,-0x4(%rbp)
jmp    11e8 <translate_char_and_h_suffix+0xc8>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<translate_char_and_h_suffix>:
push   %rbx
mov    %edi,%ebx
call   1040 <translate_char@plt>
xor    %edi,%edi
cmp    $0xfffffffe,%eax
sete   %dil
call   1030 <assert@plt>
lea    -0x43(%rbx),%ecx
cmp    $0x37,%ecx
ja     115a <translate_char_and_h_suffix+0x3a>
mov    $0x427,%eax
lea    0xeb6(%rip),%rdx
movslq (%rdx,%rcx,4),%rcx
add    %rdx,%rcx
jmp    *%rcx
mov    $0x42d,%eax
pop    %rbx
ret
mov    %ebx,%eax
pop    %rbx
ret
mov    $0x425,%eax
pop    %rbx
ret
mov    $0x428,%eax
pop    %rbx
ret
mov    $0x416,%eax
pop    %rbx
ret
mov    $0x447,%eax
pop    %rbx
ret
mov    $0x44d,%eax
pop    %rbx
ret
mov    $0x445,%eax
pop    %rbx
ret
mov    $0x448,%eax
pop    %rbx
ret
mov    $0x436,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @translate_char_and_h_suffix(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = call i32 @translate_char(i32 %4)
%6 = icmp eq i32 %5, -2
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 %7)
%9 = load i32, i32* %3
switch i32 %9, label %20 [
i32 67, label %10
i32 83, label %11
i32 69, label %12
i32 75, label %13
i32 90, label %14
i32 99, label %15
i32 115, label %16
i32 101, label %17
i32 107, label %18
i32 122, label %19
]
10: ; preds = %1
store i32 1063, i32* %2
br label %22
11: ; preds = %1
store i32 1064, i32* %2
br label %22
12: ; preds = %1
store i32 1069, i32* %2
br label %22
13: ; preds = %1
store i32 1061, i32* %2
br label %22
14: ; preds = %1
store i32 1046, i32* %2
br label %22
15: ; preds = %1
store i32 1095, i32* %2
br label %22
16: ; preds = %1
store i32 1096, i32* %2
br label %22
17: ; preds = %1
store i32 1101, i32* %2
br label %22
18: ; preds = %1
store i32 1093, i32* %2
br label %22
19: ; preds = %1
store i32 1078, i32* %2
br label %22
20: ; preds = %1
%21 = load i32, i32* %3
store i32 %21, i32* %2
br label %22
22: ; preds = %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10
%23 = load i32, i32* %2
ret i32 %23
}

LLVM IR (-O2):
define i32 @translate_char_and_h_suffix(i32 %0) {
%2 = tail call i32 @translate_char(i32 %0)
%3 = icmp eq i32 %2, -2
%4 = zext i1 %3 to i32
%5 = tail call i32 @assert(i32 %4)
switch i32 %0, label %15 [
i32 67, label %16
i32 83, label %6
i32 69, label %7
i32 75, label %8
i32 90, label %9
i32 99, label %10
i32 115, label %11
i32 101, label %12
i32 107, label %13
i32 122, label %14
]
6: ; preds = %1
br label %16
7: ; preds = %1
br label %16
8: ; preds = %1
br label %16
9: ; preds = %1
br label %16
10: ; preds = %1
br label %16
11: ; preds = %1
br label %16
12: ; preds = %1
br label %16
13: ; preds = %1
br label %16
14: ; preds = %1
br label %16
15: ; preds = %1
br label %16
16: ; preds = %1, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6
%17 = phi i32 [ %0, %15 ], [ 1078, %14 ], [ 1093, %13 ], [ 1101, %12 ], [ 1096, %11 ], [ 1095, %10 ], [ 1046, %9 ], [ 1061, %8 ], [ 1069, %7 ], [ 1064, %6 ], [ 1063, %1 ]
ret i32 %17
}