#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*/ printf(char *);
void printReserveWord(char in) {
  switch (in) {
  case '<':
    printf("OPEN_TAG_XML\n");
    break;
  case '>':
    printf("CLOSE_TAG_XML\n");
    break;
  case '/':
    printf("END_SYMBOL_XML\n");
    break;
  case '=':
    printf("EQUAL_SYMBOL_XML\n");
    break;
  case '\"':
    printf("DOUBLE_QUOT_SYMBOL\n");
    break;
  case ' ':
    printf("SPACE_SYMBOL\n");
    break;
  case '\n':
    printf("NEWLINE_SYMBOL\n");
    break;
  case '\t':
    printf("TAB_SPACE_SYMBOL\n");
    break;
  case '\0':
    printf("NULL_CHAR\n");
    break;
  case '\\':
    printf("BACK_SLASH_SYMBOL\n");
    break;
  case '\'':
    printf("SINGLE_QUOT_SYMBOL\n");
    break;
  default:
    break;
  }
}


x86 assembly (clang, -O0):
<printReserveWord>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x5c,%eax
ja     1200 <printReserveWord+0xf0>
mov    -0x10(%rbp),%rax
lea    0xec4(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x1028(%rip),%rdi
call   1030 <printf@plt>
jmp    1205 <printReserveWord+0xf5>
lea    0x1025(%rip),%rdi
call   1030 <printf@plt>
jmp    1205 <printReserveWord+0xf5>
lea    0x1023(%rip),%rdi
call   1030 <printf@plt>
jmp    1205 <printReserveWord+0xf5>
lea    0x1022(%rip),%rdi
call   1030 <printf@plt>
jmp    1205 <printReserveWord+0xf5>
lea    0x1023(%rip),%rdi
call   1030 <printf@plt>
jmp    1205 <printReserveWord+0xf5>
lea    0x103a(%rip),%rdi
call   1030 <printf@plt>
jmp    1205 <printReserveWord+0xf5>
lea    0x1015(%rip),%rdi
call   1030 <printf@plt>
jmp    1205 <printReserveWord+0xf5>
lea    0x1014(%rip),%rdi
call   1030 <printf@plt>
jmp    1205 <printReserveWord+0xf5>
lea    0x1015(%rip),%rdi
call   1030 <printf@plt>
jmp    1205 <printReserveWord+0xf5>
lea    0x100f(%rip),%rdi
call   1030 <printf@plt>
jmp    1205 <printReserveWord+0xf5>
lea    0x1011(%rip),%rdi
call   1030 <printf@plt>
jmp    1205 <printReserveWord+0xf5>
jmp    1205 <printReserveWord+0xf5>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printReserveWord>:
cmp    $0x5c,%edi
ja     113c <printReserveWord+0x2c>
mov    %edi,%eax
lea    0x10e6(%rip),%rdi
mov    %eax,%eax
lea    0xed9(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x1062(%rip),%rdi
jmp    1030 <puts@plt>
ret
lea    0x105f(%rip),%rdi
jmp    1030 <puts@plt>
lea    0x1064(%rip),%rdi
jmp    1030 <puts@plt>
lea    0x104b(%rip),%rdi
jmp    1030 <puts@plt>
lea    0x105b(%rip),%rdi
jmp    1030 <puts@plt>
lea    0x1000(%rip),%rdi
jmp    1030 <puts@plt>
lea    0x1067(%rip),%rdi
jmp    1030 <puts@plt>
lea    0x104a(%rip),%rdi
jmp    1030 <puts@plt>
lea    0x105e(%rip),%rdi
jmp    1030 <puts@plt>
lea    0xfe3(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [14 x i8] c"OPEN_TAG_XML\0A\00"
@.str.1 = [15 x i8] c"CLOSE_TAG_XML\0A\00"
@.str.2 = [16 x i8] c"END_SYMBOL_XML\0A\00"
@.str.3 = [18 x i8] c"EQUAL_SYMBOL_XML\0A\00"
@.str.4 = [20 x i8] c"DOUBLE_QUOT_SYMBOL\0A\00"
@.str.5 = [14 x i8] c"SPACE_SYMBOL\0A\00"
@.str.6 = [16 x i8] c"NEWLINE_SYMBOL\0A\00"
@.str.7 = [18 x i8] c"TAB_SPACE_SYMBOL\0A\00"
@.str.8 = [11 x i8] c"NULL_CHAR\0A\00"
@.str.9 = [19 x i8] c"BACK_SLASH_SYMBOL\0A\00"
@.str.10 = [20 x i8] c"SINGLE_QUOT_SYMBOL\0A\00"
define void @printReserveWord(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
switch i32 %4, label %27 [
i32 60, label %5
i32 62, label %7
i32 47, label %9
i32 61, label %11
i32 34, label %13
i32 32, label %15
i32 10, label %17
i32 9, label %19
i32 0, label %21
i32 92, label %23
i32 39, label %25
]
5: ; preds = %1
%6 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
br label %28
7: ; preds = %1
%8 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
br label %28
9: ; preds = %1
%10 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
br label %28
11: ; preds = %1
%12 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
br label %28
13: ; preds = %1
%14 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
br label %28
15: ; preds = %1
%16 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
br label %28
17: ; preds = %1
%18 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0))
br label %28
19: ; preds = %1
%20 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
br label %28
21: ; preds = %1
%22 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0))
br label %28
23: ; preds = %1
%24 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
br label %28
25: ; preds = %1
%26 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0))
br label %28
27: ; preds = %1
br label %28
28: ; preds = %27, %25, %23, %21, %19, %17, %15, %13, %11, %9, %7, %5
ret void
}

LLVM IR (-O2):
@str = [19 x i8] c"SINGLE_QUOT_SYMBOL\00"
@str.11 = [18 x i8] c"BACK_SLASH_SYMBOL\00"
@str.12 = [10 x i8] c"NULL_CHAR\00"
@str.13 = [17 x i8] c"TAB_SPACE_SYMBOL\00"
@str.14 = [15 x i8] c"NEWLINE_SYMBOL\00"
@str.15 = [13 x i8] c"SPACE_SYMBOL\00"
@str.16 = [19 x i8] c"DOUBLE_QUOT_SYMBOL\00"
@str.17 = [17 x i8] c"EQUAL_SYMBOL_XML\00"
@str.18 = [15 x i8] c"END_SYMBOL_XML\00"
@str.19 = [14 x i8] c"CLOSE_TAG_XML\00"
@str.20 = [13 x i8] c"OPEN_TAG_XML\00"
define void @printReserveWord(i8 signext %0) {
%2 = sext i8 %0 to i32
switch i32 %2, label %16 [
i32 60, label %13
i32 62, label %3
i32 47, label %4
i32 61, label %5
i32 34, label %6
i32 32, label %7
i32 10, label %8
i32 9, label %9
i32 0, label %10
i32 92, label %11
i32 39, label %12
]
3: ; preds = %1
br label %13
4: ; preds = %1
br label %13
5: ; preds = %1
br label %13
6: ; preds = %1
br label %13
7: ; preds = %1
br label %13
8: ; preds = %1
br label %13
9: ; preds = %1
br label %13
10: ; preds = %1
br label %13
11: ; preds = %1
br label %13
12: ; preds = %1
br label %13
13: ; preds = %1, %3, %4, %5, %6, %7, %8, %9, %10, %11, %12
%14 = phi i8* [ getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0), %12 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @str.11, i64 0, i64 0), %11 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @str.12, i64 0, i64 0), %10 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @str.13, i64 0, i64 0), %9 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @str.14, i64 0, i64 0), %8 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @str.15, i64 0, i64 0), %7 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @str.16, i64 0, i64 0), %6 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @str.17, i64 0, i64 0), %5 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @str.18, i64 0, i64 0), %4 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @str.19, i64 0, i64 0), %3 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @str.20, i64 0, i64 0), %1 ]
%15 = tail call i32 @puts(i8* dereferenceable(1) %14)
br label %16
16: ; preds = %13, %1
ret void
}