#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 *);
int /*<<< orphan*/ scanf(char *, char *);
void main() {
  char letra;
  printf("Digite a primeira letra do seu nome: ");
  scanf("%c", &letra);
  switch (letra) {
  case 'a':
  case 'A':
  case 'e':
  case 'E':
  case 'i':
  case 'I':
  case 'o':
  case 'O':
  case 'u':
  case 'U':
    printf("A primeira letra eh do tipo vogal.\n");
    break;
  case 'r':
  case 'R':
  case 's':
  case 'S':
    printf("A primeira letra eh do tipo consoante fricativa.\n");
    break;
  case 'p':
  case 'P':
  case 'b':
  case 'B':
    printf("A primeira letra eh do tipo consoante bilabial.\n");
    break;
  case 'm':
  case 'M':
  case 'n':
  case 'N':
    printf("A primeira letra eh do tipo consoante linguodental.\n");
    break;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xfa5(%rip),%rdi
call   1030 <printf@plt>
lea    0xfbf(%rip),%rdi
lea    -0x1(%rbp),%rsi
call   1040 <scanf@plt>
movsbl -0x1(%rbp),%eax
add    $0xffffffbf,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x34,%eax
ja     11ad <main+0x8d>
mov    -0x10(%rbp),%rax
lea    0xe9b(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf88(%rip),%rdi
call   1030 <printf@plt>
jmp    11ad <main+0x8d>
lea    0xf9b(%rip),%rdi
call   1030 <printf@plt>
jmp    11ad <main+0x8d>
lea    0xfbc(%rip),%rdi
call   1030 <printf@plt>
jmp    11ad <main+0x8d>
lea    0xfdc(%rip),%rdi
call   1030 <printf@plt>
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>
movsbq 0x7(%rsp),%rax
add    $0xffffffffffffffbf,%rax
cmp    $0x34,%eax
ja     1180 <main+0x50>
movabs $0x16f1130016f113,%rcx
bt     %rax,%rcx
jae    1180 <main+0x50>
lea    0xf70(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
call   1030 <puts@plt>
pop    %rax
ret

LLVM IR (-O0):
@.str = [38 x i8] c"Digite a primeira letra do seu nome: \00"
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [36 x i8] c"A primeira letra eh do tipo vogal.\0A\00"
@.str.3 = [50 x i8] c"A primeira letra eh do tipo consoante fricativa.\0A\00"
@.str.4 = [49 x i8] c"A primeira letra eh do tipo consoante bilabial.\0A\00"
@.str.5 = [53 x i8] c"A primeira letra eh do tipo consoante linguodental.\0A\00"
define void @main() {
%1 = alloca i8
%2 = call i32 @printf(i8* 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
switch i32 %5, label %14 [
i32 97, label %6
i32 65, label %6
i32 101, label %6
i32 69, label %6
i32 105, label %6
i32 73, label %6
i32 111, label %6
i32 79, label %6
i32 117, label %6
i32 85, label %6
i32 114, label %8
i32 82, label %8
i32 115, label %8
i32 83, label %8
i32 112, label %10
i32 80, label %10
i32 98, label %10
i32 66, label %10
i32 109, label %12
i32 77, label %12
i32 110, label %12
i32 78, label %12
]
6: ; preds = %0, %0, %0, %0, %0, %0, %0, %0, %0, %0
%7 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0))
br label %14
8: ; preds = %0, %0, %0, %0
%9 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.3, i64 0, i64 0))
br label %14
10: ; preds = %0, %0, %0, %0
%11 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.4, i64 0, i64 0))
br label %14
12: ; preds = %0, %0, %0, %0
%13 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0))
br label %14
14: ; preds = %0, %12, %10, %8, %6
ret void
}

LLVM IR (-O2):
@.str = [38 x i8] c"Digite a primeira letra do seu nome: \00"
@.str.1 = [3 x i8] c"%c\00"
@str = [52 x i8] c"A primeira letra eh do tipo consoante linguodental.\00"
@str.6 = [48 x i8] c"A primeira letra eh do tipo consoante bilabial.\00"
@str.7 = [49 x i8] c"A primeira letra eh do tipo consoante fricativa.\00"
@str.8 = [35 x i8] c"A primeira letra eh do tipo vogal.\00"
@reltable.main = [53 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([48 x i8]* @str.6 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([52 x i8]* @str to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([52 x i8]* @str to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([48 x i8]* @str.6 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([49 x i8]* @str.7 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([49 x i8]* @str.7 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([48 x i8]* @str.6 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([52 x i8]* @str to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([52 x i8]* @str to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([48 x i8]* @str.6 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([49 x i8]* @str.7 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([49 x i8]* @str.7 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @str.8 to i64), i64 ptrtoint ([53 x i32]* @reltable.main to i64)) to i32)]
define void @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, -65
%7 = icmp ult i32 %6, 53
br i1 %7, label %8, label %18
8: ; preds = %0
%9 = zext i32 %6 to i64
%10 = lshr i64 6457513395810579, %9
%11 = and i64 %10, 1
%12 = icmp eq i64 %11, 0
br i1 %12, label %18, label %13
13: ; preds = %8
%14 = sext i32 %6 to i64
%15 = shl i64 %14, 2
%16 = call i8* @llvm.load.relative.i64(i8* bitcast ([53 x i32]* @reltable.main to i8*), i64 %15)
%17 = call i32 @puts(i8* dereferenceable(1) %16)
br label %18
18: ; preds = %8, %0, %13
ret void
}