#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 **);
scalar_t__ strcmp(char *, char *);
int main(void) {
  char letra[10];
  printf("Insira uma letra: \n");
  scanf("%s", &letra);
  if ((strcmp(letra, "a") == 0) || (strcmp(letra, "e") == 0) ||
      (strcmp(letra, "o") == 0) || (strcmp(letra, "u") == 0) ||
      (strcmp(letra, "i") == 0))
    printf("Vogal\n");
  else
    printf("Consoante\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
call   1030 <printf@plt>
lea    -0xe(%rbp),%rsi
lea    0xebe(%rip),%rdi
call   1050 <scanf@plt>
lea    -0xe(%rbp),%rdi
lea    0xeb1(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     11dd <main+0xad>
lea    -0xe(%rbp),%rdi
lea    0xe99(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     11dd <main+0xad>
lea    -0xe(%rbp),%rdi
lea    0xe81(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     11dd <main+0xad>
lea    -0xe(%rbp),%rdi
lea    0xe69(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     11dd <main+0xad>
lea    -0xe(%rbp),%rdi
lea    0xe51(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11ee <main+0xbe>
lea    0xe3d(%rip),%rdi
call   1030 <printf@plt>
jmp    11fa <main+0xca>
lea    0xe33(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xecf(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb8(%rip),%rdi
lea    0x6(%rsp),%rbx
mov    %rbx,%rsi
call   1050 <scanf@plt>
lea    0xea7(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
lea    0xebd(%rip),%rbx
test   %rax,%rax
je     11d8 <main+0xa8>
lea    0xeaf(%rip),%rsi
lea    0x6(%rsp),%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     11d8 <main+0xa8>
lea    0xe78(%rip),%rsi
lea    0x6(%rsp),%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     11d8 <main+0xa8>
lea    0xe64(%rip),%rsi
lea    0x6(%rsp),%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     11d8 <main+0xa8>
lea    0xe50(%rip),%rsi
lea    0x6(%rsp),%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
lea    0xe5b(%rip),%rax
lea    0xe4a(%rip),%rbx
cmove  %rax,%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [20 x i8] c"Insira uma letra: \0A\00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [2 x i8] c"a\00"
@.str.3 = [2 x i8] c"e\00"
@.str.4 = [2 x i8] c"o\00"
@.str.5 = [2 x i8] c"u\00"
@.str.6 = [2 x i8] c"i\00"
@.str.7 = [7 x i8] c"Vogal\0A\00"
@.str.8 = [11 x i8] c"Consoante\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x i8]
store i32 0, i32* %1
%3 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%4 = bitcast [10 x i8]* %2 to i8**
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8** %4)
%6 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%7 = call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
br i1 %8, label %25, label %9
9: ; preds = %0
%10 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%11 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %25, label %13
13: ; preds = %9
%14 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%15 = call i64 @strcmp(i8* %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %25, label %17
17: ; preds = %13
%18 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%19 = call i64 @strcmp(i8* %18, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %25, label %21
21: ; preds = %17
%22 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%23 = call i64 @strcmp(i8* %22, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %21, %17, %13, %9, %0
%26 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
br label %29
27: ; preds = %21
%28 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0))
br label %29
29: ; preds = %27, %25
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [2 x i8] c"a\00"
@.str.3 = [2 x i8] c"e\00"
@.str.4 = [2 x i8] c"o\00"
@.str.5 = [2 x i8] c"u\00"
@.str.6 = [2 x i8] c"i\00"
@str = [19 x i8] c"Insira uma letra: \00"
@str.9 = [10 x i8] c"Consoante\00"
@str.10 = [6 x i8] c"Vogal\00"
define i32 @main() {
%1 = alloca [10 x i8]
%2 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 0
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
%4 = bitcast [10 x i8]* %1 to i8**
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8** %4)
%6 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%7 = icmp eq i64 %6, 0
br i1 %7, label %21, label %8
8: ; preds = %0
%9 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%10 = icmp eq i64 %9, 0
br i1 %10, label %21, label %11
11: ; preds = %8
%12 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%13 = icmp eq i64 %12, 0
br i1 %13, label %21, label %14
14: ; preds = %11
%15 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %21, label %17
17: ; preds = %14
%18 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%19 = icmp eq i64 %18, 0
%20 = select i1 %19, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @str.10, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @str.9, i64 0, i64 0)
br label %21
21: ; preds = %17, %0, %8, %11, %14
%22 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @str.10, i64 0, i64 0), %14 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @str.10, i64 0, i64 0), %11 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @str.10, i64 0, i64 0), %8 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @str.10, i64 0, i64 0), %0 ], [ %20, %17 ]
%23 = call i32 @puts(i8* dereferenceable(1) %22)
ret i32 0
}