#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 **);
int strlen(char *);
int main(int argc, char const *argv[]) {
  char a[16];
  scanf(" %s", &a);
  if (strlen(a) != 1) {
    printf("1 caractere, por favor!");
  } else {
    if (a[0] == 'a' || a[0] == 'e' || a[0] == 'i' || a[0] == 'o' ||
        a[0] == 'u' || a[0] == 'A' || a[0] == 'E' || a[0] == 'I' ||
        a[0] == 'O' || a[0] == 'U') {
      printf("Eh vogal");
    } else {
      printf("Nao eh vogal");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x20(%rbp),%rsi
lea    0xeaf(%rip),%rdi
call   1050 <scanf@plt>
lea    -0x20(%rbp),%rdi
call   1030 <strlen@plt>
cmp    $0x1,%eax
je     1179 <main+0x49>
lea    0xe95(%rip),%rdi
call   1040 <printf@plt>
jmp    121d <main+0xed>
movsbl -0x20(%rbp),%eax
cmp    $0x61,%eax
je     11fb <main+0xcb>
movsbl -0x20(%rbp),%eax
cmp    $0x65,%eax
je     11fb <main+0xcb>
movsbl -0x20(%rbp),%eax
cmp    $0x69,%eax
je     11fb <main+0xcb>
movsbl -0x20(%rbp),%eax
cmp    $0x6f,%eax
je     11fb <main+0xcb>
movsbl -0x20(%rbp),%eax
cmp    $0x75,%eax
je     11fb <main+0xcb>
movsbl -0x20(%rbp),%eax
cmp    $0x41,%eax
je     11fb <main+0xcb>
movsbl -0x20(%rbp),%eax
cmp    $0x45,%eax
je     11fb <main+0xcb>
movsbl -0x20(%rbp),%eax
cmp    $0x49,%eax
je     11fb <main+0xcb>
movsbl -0x20(%rbp),%eax
cmp    $0x4f,%eax
je     11fb <main+0xcb>
movsbl -0x20(%rbp),%eax
cmp    $0x55,%eax
jne    120c <main+0xdc>
lea    0xe1a(%rip),%rdi
call   1040 <printf@plt>
jmp    1218 <main+0xe8>
lea    0xe12(%rip),%rdi
call   1040 <printf@plt>
jmp    121d <main+0xed>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xec4(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
call   1050 <scanf@plt>
mov    %rbx,%rdi
call   1030 <strlen@plt>
cmp    $0x1,%eax
jne    1179 <main+0x49>
mov    (%rsp),%al
add    $0xbf,%al
cmp    $0x34,%al
ja     118d <main+0x5d>
movzbl %al,%eax
movabs $0x10411100104111,%rcx
bt     %rax,%rcx
jae    118d <main+0x5d>
lea    0xea5(%rip),%rdi
jmp    1180 <main+0x50>
lea    0xe84(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret
lea    0xe91(%rip),%rdi
jmp    1180 <main+0x50>

LLVM IR (-O0):
@.str = [4 x i8] c" %s\00"
@.str.1 = [24 x i8] c"1 caractere, por favor!\00"
@.str.2 = [9 x i8] c"Eh vogal\00"
@.str.3 = [13 x i8] c"Nao eh vogal\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [16 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = bitcast [16 x i8]* %6 to i8**
%8 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8** %7)
%9 = getelementptr inbounds [16 x i8], [16 x i8]* %6, i64 0, i64 0
%10 = call i32 @strlen(i8* %9)
%11 = icmp ne i32 %10, 1
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
br label %69
14: ; preds = %2
%15 = getelementptr inbounds [16 x i8], [16 x i8]* %6, i64 0, i64 0
%16 = load i8, i8* %15
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 97
br i1 %18, label %64, label %19
19: ; preds = %14
%20 = getelementptr inbounds [16 x i8], [16 x i8]* %6, i64 0, i64 0
%21 = load i8, i8* %20
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 101
br i1 %23, label %64, label %24
24: ; preds = %19
%25 = getelementptr inbounds [16 x i8], [16 x i8]* %6, i64 0, i64 0
%26 = load i8, i8* %25
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 105
br i1 %28, label %64, label %29
29: ; preds = %24
%30 = getelementptr inbounds [16 x i8], [16 x i8]* %6, i64 0, i64 0
%31 = load i8, i8* %30
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 111
br i1 %33, label %64, label %34
34: ; preds = %29
%35 = getelementptr inbounds [16 x i8], [16 x i8]* %6, i64 0, i64 0
%36 = load i8, i8* %35
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 117
br i1 %38, label %64, label %39
39: ; preds = %34
%40 = getelementptr inbounds [16 x i8], [16 x i8]* %6, i64 0, i64 0
%41 = load i8, i8* %40
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %42, 65
br i1 %43, label %64, label %44
44: ; preds = %39
%45 = getelementptr inbounds [16 x i8], [16 x i8]* %6, i64 0, i64 0
%46 = load i8, i8* %45
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, 69
br i1 %48, label %64, label %49
49: ; preds = %44
%50 = getelementptr inbounds [16 x i8], [16 x i8]* %6, i64 0, i64 0
%51 = load i8, i8* %50
%52 = sext i8 %51 to i32
%53 = icmp eq i32 %52, 73
br i1 %53, label %64, label %54
54: ; preds = %49
%55 = getelementptr inbounds [16 x i8], [16 x i8]* %6, i64 0, i64 0
%56 = load i8, i8* %55
%57 = sext i8 %56 to i32
%58 = icmp eq i32 %57, 79
br i1 %58, label %64, label %59
59: ; preds = %54
%60 = getelementptr inbounds [16 x i8], [16 x i8]* %6, i64 0, i64 0
%61 = load i8, i8* %60
%62 = sext i8 %61 to i32
%63 = icmp eq i32 %62, 85
br i1 %63, label %64, label %66
64: ; preds = %59, %54, %49, %44, %39, %34, %29, %24, %19, %14
%65 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
br label %68
66: ; preds = %59
%67 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
br label %68
68: ; preds = %66, %64
br label %69
69: ; preds = %68, %12
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c" %s\00"
@.str.1 = [24 x i8] c"1 caractere, por favor!\00"
@.str.2 = [9 x i8] c"Eh vogal\00"
@.str.3 = [13 x i8] c"Nao eh vogal\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [16 x i8]
%4 = getelementptr inbounds [16 x i8], [16 x i8]* %3, i64 0, i64 0
%5 = bitcast [16 x i8]* %3 to i8**
%6 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8** %5)
%7 = call i32 @strlen(i8* %4)
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load i8, i8* %4
switch i8 %10, label %11 [
i8 117, label %12
i8 111, label %12
i8 105, label %12
i8 101, label %12
i8 97, label %12
i8 85, label %12
i8 79, label %12
i8 73, label %12
i8 69, label %12
i8 65, label %12
]
11: ; preds = %9
br label %12
12: ; preds = %9, %9, %9, %9, %9, %9, %9, %9, %9, %9, %2, %11
%13 = phi i8* [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), %11 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), %2 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), %9 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), %9 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), %9 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), %9 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), %9 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), %9 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), %9 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), %9 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), %9 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), %9 ]
%14 = call i32 @printf(i8* dereferenceable(1) %13)
ret i32 0
}