#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_without_h_suffix(int c) {
  assert(translate_char(c) == -2);
  switch (c) {
  case 'C':
    return 0x426;
  case 'S':
    return 0x421;
  case 'E':
    return 0x415;
  case 'K':
    return 0x41A;
  case 'Z':
    return 0x417;
  case 'c':
    return 0x446;
  case 's':
    return 0x441;
  case 'e':
    return 0x435;
  case 'k':
    return 0x43a;
  case 'z':
    return 0x437;
  }
  return c;
}


x86 assembly (clang, -O0):
<translate_char_without_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_without_h_suffix+0xc2>
mov    -0x10(%rbp),%rax
lea    0xe9f(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x426,-0x4(%rbp)
jmp    11e8 <translate_char_without_h_suffix+0xc8>
movl   $0x421,-0x4(%rbp)
jmp    11e8 <translate_char_without_h_suffix+0xc8>
movl   $0x415,-0x4(%rbp)
jmp    11e8 <translate_char_without_h_suffix+0xc8>
movl   $0x41a,-0x4(%rbp)
jmp    11e8 <translate_char_without_h_suffix+0xc8>
movl   $0x417,-0x4(%rbp)
jmp    11e8 <translate_char_without_h_suffix+0xc8>
movl   $0x446,-0x4(%rbp)
jmp    11e8 <translate_char_without_h_suffix+0xc8>
movl   $0x441,-0x4(%rbp)
jmp    11e8 <translate_char_without_h_suffix+0xc8>
movl   $0x435,-0x4(%rbp)
jmp    11e8 <translate_char_without_h_suffix+0xc8>
movl   $0x43a,-0x4(%rbp)
jmp    11e8 <translate_char_without_h_suffix+0xc8>
movl   $0x437,-0x4(%rbp)
jmp    11e8 <translate_char_without_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_without_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_without_h_suffix+0x3a>
mov    $0x426,%eax
lea    0xeb6(%rip),%rdx
movslq (%rdx,%rcx,4),%rcx
add    %rdx,%rcx
jmp    *%rcx
mov    $0x415,%eax
pop    %rbx
ret
mov    %ebx,%eax
pop    %rbx
ret
mov    $0x41a,%eax
pop    %rbx
ret
mov    $0x421,%eax
pop    %rbx
ret
mov    $0x417,%eax
pop    %rbx
ret
mov    $0x446,%eax
pop    %rbx
ret
mov    $0x435,%eax
pop    %rbx
ret
mov    $0x43a,%eax
pop    %rbx
ret
mov    $0x441,%eax
pop    %rbx
ret
mov    $0x437,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @translate_char_without_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 1062, i32* %2
br label %22
11: ; preds = %1
store i32 1057, i32* %2
br label %22
12: ; preds = %1
store i32 1045, i32* %2
br label %22
13: ; preds = %1
store i32 1050, i32* %2
br label %22
14: ; preds = %1
store i32 1047, i32* %2
br label %22
15: ; preds = %1
store i32 1094, i32* %2
br label %22
16: ; preds = %1
store i32 1089, i32* %2
br label %22
17: ; preds = %1
store i32 1077, i32* %2
br label %22
18: ; preds = %1
store i32 1082, i32* %2
br label %22
19: ; preds = %1
store i32 1079, 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_without_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 ], [ 1079, %14 ], [ 1082, %13 ], [ 1077, %12 ], [ 1089, %11 ], [ 1094, %10 ], [ 1047, %9 ], [ 1050, %8 ], [ 1045, %7 ], [ 1057, %6 ], [ 1062, %1 ]
ret i32 %17
}