#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*/ C();
int /*<<< orphan*/ F();
int /*<<< orphan*/ H();
int /*<<< orphan*/ I();
int /*<<< orphan*/ K();
int /*<<< orphan*/ L();
int /*<<< orphan*/ S();
int /*<<< orphan*/ V();
char getchar();
main() {
  char com;
  while (com = getchar()) {
    switch (com) {
    case 'X':
      return 0;
    case 'I':
      I();
      break;
    case 'L':
      L();
      break;
    case 'S':
      S();
      break;
    case 'C':
      C();
      break;
    case 'V':
      V();
      break;
    case 'H':
      H();
      break;
    case 'F':
      F();
      break;
    case 'K':
      K();
      break;
    default:
      break;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1070 <getchar@plt>
mov    %al,-0x5(%rbp)
cmp    $0x0,%al
je     1251 <main+0xc1>
movsbl -0x5(%rbp),%eax
add    $0xffffffbd,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x15,%eax
ja     1247 <main+0xb7>
mov    -0x10(%rbp),%rax
lea    0xe2e(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x0,-0x4(%rbp)
jmp    1258 <main+0xc8>
mov    $0x0,%al
call   1090 <I@plt>
jmp    124c <main+0xbc>
mov    $0x0,%al
call   1060 <L@plt>
jmp    124c <main+0xbc>
mov    $0x0,%al
call   10b0 <S@plt>
jmp    124c <main+0xbc>
mov    $0x0,%al
call   1080 <C@plt>
jmp    124c <main+0xbc>
mov    $0x0,%al
call   1050 <V@plt>
jmp    124c <main+0xbc>
mov    $0x0,%al
call   1030 <H@plt>
jmp    124c <main+0xbc>
mov    $0x0,%al
call   1040 <F@plt>
jmp    124c <main+0xbc>
mov    $0x0,%al
call   10a0 <K@plt>
jmp    124c <main+0xbc>
jmp    124c <main+0xbc>
jmp    119f <main+0xf>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1070 <getchar@plt>
test   %al,%al
je     120e <main+0x7e>
lea    0xe5d(%rip),%rbx
jmp    11bb <main+0x2b>
xor    %eax,%eax
call   10a0 <K@plt>
nopl   0x0(%rax)
xor    %eax,%eax
call   1070 <getchar@plt>
test   %al,%al
je     120e <main+0x7e>
movsbl %al,%eax
add    $0xffffffbd,%eax
cmp    $0x15,%eax
ja     11b0 <main+0x20>
movslq (%rbx,%rax,4),%rax
add    %rbx,%rax
jmp    *%rax
xor    %eax,%eax
call   1080 <C@plt>
jmp    11b0 <main+0x20>
xor    %eax,%eax
call   1040 <F@plt>
jmp    11b0 <main+0x20>
xor    %eax,%eax
call   1030 <H@plt>
jmp    11b0 <main+0x20>
xor    %eax,%eax
call   1090 <I@plt>
jmp    11b0 <main+0x20>
xor    %eax,%eax
call   1060 <L@plt>
jmp    11b0 <main+0x20>
xor    %eax,%eax
call   10b0 <S@plt>
jmp    11b0 <main+0x20>
xor    %eax,%eax
call   1050 <V@plt>
jmp    11b0 <main+0x20>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
store i32 0, i32* %1
br label %3
3: ; preds = %27, %0
%4 = call signext i8 (...) @getchar()
store i8 %4, i8* %2
%5 = icmp ne i8 %4, 0
br i1 %5, label %6, label %28
6: ; preds = %3
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
switch i32 %8, label %26 [
i32 88, label %9
i32 73, label %10
i32 76, label %12
i32 83, label %14
i32 67, label %16
i32 86, label %18
i32 72, label %20
i32 70, label %22
i32 75, label %24
]
9: ; preds = %6
store i32 0, i32* %1
br label %29
10: ; preds = %6
%11 = call i32 (...) @I()
br label %27
12: ; preds = %6
%13 = call i32 (...) @L()
br label %27
14: ; preds = %6
%15 = call i32 (...) @S()
br label %27
16: ; preds = %6
%17 = call i32 (...) @C()
br label %27
18: ; preds = %6
%19 = call i32 (...) @V()
br label %27
20: ; preds = %6
%21 = call i32 (...) @H()
br label %27
22: ; preds = %6
%23 = call i32 (...) @F()
br label %27
24: ; preds = %6
%25 = call i32 (...) @K()
br label %27
26: ; preds = %6
br label %27
27: ; preds = %26, %24, %22, %20, %18, %16, %14, %12, %10
br label %3
28: ; preds = %3
store i32 0, i32* %1
br label %29
29: ; preds = %28, %9
%30 = load i32, i32* %1
ret i32 %30
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call signext i8 (...) @getchar()
%2 = icmp eq i8 %1, 0
br i1 %2, label %25, label %3
3: ; preds = %0, %22
%4 = phi i8 [ %23, %22 ], [ %1, %0 ]
%5 = sext i8 %4 to i32
switch i32 %5, label %22 [
i32 88, label %25
i32 73, label %6
i32 76, label %8
i32 83, label %10
i32 67, label %12
i32 86, label %14
i32 72, label %16
i32 70, label %18
i32 75, label %20
]
6: ; preds = %3
%7 = tail call i32 (...) @I()
br label %22
8: ; preds = %3
%9 = tail call i32 (...) @L()
br label %22
10: ; preds = %3
%11 = tail call i32 (...) @S()
br label %22
12: ; preds = %3
%13 = tail call i32 (...) @C()
br label %22
14: ; preds = %3
%15 = tail call i32 (...) @V()
br label %22
16: ; preds = %3
%17 = tail call i32 (...) @H()
br label %22
18: ; preds = %3
%19 = tail call i32 (...) @F()
br label %22
20: ; preds = %3
%21 = tail call i32 (...) @K()
br label %22
22: ; preds = %3, %20, %18, %16, %14, %12, %10, %8, %6
%23 = tail call signext i8 (...) @getchar()
%24 = icmp eq i8 %23, 0
br i1 %24, label %25, label %3
25: ; preds = %3, %22, %0
ret i32 0
}