#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 printf(char *);
int /*<<< orphan*/ scanf(char *, char *);
int main() {
  char x;
  printf("영어 소문자를 입력하세요: ");
  scanf("%c", &x);
  switch (x) {
  default:
    return 0 * printf("자음\n");
  case 'a':
  case 'i':
  case 'u':
  case 'e':
  case 'o':
    printf("모음\n");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
call   1030 <printf@plt>
lea    0xee4(%rip),%rdi
lea    -0x5(%rbp),%rsi
call   1040 <scanf@plt>
movsbl -0x5(%rbp),%eax
mov    %eax,-0xc(%rbp)
sub    $0x61,%eax
je     11bb <main+0x9b>
jmp    1160 <main+0x40>
mov    -0xc(%rbp),%eax
sub    $0x65,%eax
je     11bb <main+0x9b>
jmp    1171 <main+0x51>
mov    -0xc(%rbp),%eax
sub    $0x69,%eax
je     11bb <main+0x9b>
jmp    1182 <main+0x62>
mov    -0xc(%rbp),%eax
sub    $0x6f,%eax
je     11bb <main+0x9b>
jmp    1193 <main+0x73>
mov    -0xc(%rbp),%eax
sub    $0x75,%eax
je     11bb <main+0x9b>
jmp    11a4 <main+0x84>
lea    0xe7e(%rip),%rdi
call   1030 <printf@plt>
imul   $0x0,%eax,%eax
mov    %eax,-0x4(%rbp)
jmp    11c7 <main+0xa7>
lea    0xe6f(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
call   1040 <printf@plt>
lea    0xee2(%rip),%rdi
lea    0x7(%rsp),%rsi
call   1050 <scanf@plt>
movsbl 0x7(%rsp),%eax
add    $0xffffff9f,%eax
ror    %eax
cmp    $0xa,%eax
ja     116f <main+0x3f>
cltq
lea    0xed2(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
jmp    1176 <main+0x46>
lea    0xeba(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [38 x i8] c"\EC\98\81\EC\96\B4 \EC\86\8C\EB\AC\B8\EC\9E\90\EB\A5\BC \EC\9E\85\EB\A0\A5\ED\95\98\EC\84\B8\EC\9A\94: \00"
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [8 x i8] c"\EC\9E\90\EC\9D\8C\0A\00"
@.str.3 = [8 x i8] c"\EB\AA\A8\EC\9D\8C\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
store i32 0, i32* %1
%3 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%5 = load i8, i8* %2
%6 = sext i8 %5 to i32
switch i32 %6, label %7 [
i32 97, label %10
i32 105, label %10
i32 117, label %10
i32 101, label %10
i32 111, label %10
]
7: ; preds = %0
%8 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%9 = mul nsw i32 0, %8
store i32 %9, i32* %1
br label %12
10: ; preds = %0, %0, %0, %0, %0
%11 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %12
12: ; preds = %7, %10
%13 = load i32, i32* %1
ret i32 %13
}

LLVM IR (-O2):
@.str = [38 x i8] c"\EC\98\81\EC\96\B4 \EC\86\8C\EB\AC\B8\EC\9E\90\EB\A5\BC \EC\9E\85\EB\A0\A5\ED\95\98\EC\84\B8\EC\9A\94: \00"
@.str.1 = [3 x i8] c"%c\00"
@str = [7 x i8] c"\EB\AA\A8\EC\9D\8C\00"
@str.4 = [7 x i8] c"\EC\9E\90\EC\9D\8C\00"
@reltable.main = [11 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str to i64), i64 ptrtoint ([11 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str.4 to i64), i64 ptrtoint ([11 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str to i64), i64 ptrtoint ([11 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str.4 to i64), i64 ptrtoint ([11 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str to i64), i64 ptrtoint ([11 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str.4 to i64), i64 ptrtoint ([11 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str.4 to i64), i64 ptrtoint ([11 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str to i64), i64 ptrtoint ([11 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str.4 to i64), i64 ptrtoint ([11 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str.4 to i64), i64 ptrtoint ([11 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str to i64), i64 ptrtoint ([11 x i32]* @reltable.main to i64)) to i32)]
define i32 @main() {
%1 = alloca i8
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%4 = load i8, i8* %1
%5 = sext i8 %4 to i32
%6 = add nsw i32 %5, -97
%7 = call i32 @llvm.fshl.i32(i32 %6, i32 %6, i32 31)
%8 = icmp ult i32 %7, 11
br i1 %8, label %9, label %13
9: ; preds = %0
%10 = sext i32 %7 to i64
%11 = shl i64 %10, 2
%12 = call i8* @llvm.load.relative.i64(i8* bitcast ([11 x i32]* @reltable.main to i8*), i64 %11)
br label %13
13: ; preds = %9, %0
%14 = phi i8* [ getelementptr inbounds ([7 x i8], [7 x i8]* @str.4, i64 0, i64 0), %0 ], [ %12, %9 ]
%15 = call i32 @puts(i8* dereferenceable(1) %14)
ret i32 0
}