#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("Para sair precione 1\n");
  while (1) {
    printf("Insira uma letra: \n");
    scanf("%s", &letra);
    if (strcmp(letra, "1") == 0) {
      printf("Até mais\n");
      break;
    }
    if ((strcmp(letra, "a") == 0) || (strcmp(letra, "e") == 0) ||
        (strcmp(letra, "i") == 0) || (strcmp(letra, "o") == 0) ||
        (strcmp(letra, "u") == 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    0xec4(%rip),%rdi
call   1030 <printf@plt>
lea    -0xe(%rbp),%rsi
lea    0xec8(%rip),%rdi
call   1050 <scanf@plt>
lea    -0xe(%rbp),%rdi
lea    0xebb(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1192 <main+0x62>
lea    0xea7(%rip),%rdi
call   1030 <printf@plt>
jmp    1236 <main+0x106>
lea    -0xe(%rbp),%rdi
lea    0xe9d(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     1214 <main+0xe4>
lea    -0xe(%rbp),%rdi
lea    0xe85(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     1214 <main+0xe4>
lea    -0xe(%rbp),%rdi
lea    0xe6d(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     1214 <main+0xe4>
lea    -0xe(%rbp),%rdi
lea    0xe55(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     1214 <main+0xe4>
lea    -0xe(%rbp),%rdi
lea    0xe3d(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1225 <main+0xf5>
lea    0xe29(%rip),%rdi
call   1030 <printf@plt>
jmp    1231 <main+0x101>
lea    0xe1f(%rip),%rdi
call   1030 <printf@plt>
jmp    114b <main+0x1b>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xec6(%rip),%rdi
call   1030 <puts@plt>
lea    0xecf(%rip),%rdi
call   1030 <puts@plt>
lea    0xea3(%rip),%rdi
lea    0xe(%rsp),%rbx
mov    %rbx,%rsi
call   1050 <scanf@plt>
lea    0xead(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1257 <main+0x127>
lea    0xe7a(%rip),%r14
lea    0xe(%rsp),%rbx
lea    0xea8(%rip),%rbp
lea    0xe84(%rip),%r15
lea    0xe5d(%rip),%r12
lea    0xe74(%rip),%r13
jmp    11d8 <main+0xa8>
nopl   0x0(%rax)
call   1030 <puts@plt>
mov    %r15,%rdi
call   1030 <puts@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1050 <scanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1257 <main+0x127>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <strcmp@plt>
mov    %rbp,%rdi
test   %rax,%rax
je     11b0 <main+0x80>
mov    %rbx,%rdi
lea    0xe46(%rip),%rsi
call   1040 <strcmp@plt>
mov    %rbp,%rdi
test   %rax,%rax
je     11b0 <main+0x80>
mov    %rbx,%rdi
lea    0xdf9(%rip),%rsi
call   1040 <strcmp@plt>
mov    %rbp,%rdi
test   %rax,%rax
je     11b0 <main+0x80>
mov    %rbx,%rdi
lea    0xde4(%rip),%rsi
call   1040 <strcmp@plt>
mov    %rbp,%rdi
test   %rax,%rax
je     11b0 <main+0x80>
mov    %rbx,%rdi
lea    0xdcf(%rip),%rsi
call   1040 <strcmp@plt>
mov    %rbp,%rdi
test   %rax,%rax
je     11b0 <main+0x80>
lea    0xde1(%rip),%rdi
jmp    11b0 <main+0x80>
lea    0xde5(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [22 x i8] c"Para sair precione 1\0A\00"
@.str.1 = [20 x i8] c"Insira uma letra: \0A\00"
@.str.2 = [3 x i8] c"%s\00"
@.str.3 = [2 x i8] c"1\00"
@.str.4 = [11 x i8] c"At\C3\A9 mais\0A\00"
@.str.5 = [2 x i8] c"a\00"
@.str.6 = [2 x i8] c"e\00"
@.str.7 = [2 x i8] c"i\00"
@.str.8 = [2 x i8] c"o\00"
@.str.9 = [2 x i8] c"u\00"
@.str.10 = [7 x i8] c"Vogal\0A\00"
@.str.11 = [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 ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
br label %4
4: ; preds = %0, %37
%5 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%6 = bitcast [10 x i8]* %2 to i8**
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8** %6)
%8 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%9 = call i64 @strcmp(i8* %8, 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 %11, label %13
11: ; preds = %4
%12 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
br label %38
13: ; preds = %4
%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.5, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %33, 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.6, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %33, 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.7, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %33, label %25
25: ; preds = %21
%26 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%27 = call i64 @strcmp(i8* %26, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %33, label %29
29: ; preds = %25
%30 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%31 = call i64 @strcmp(i8* %30, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %35
33: ; preds = %29, %25, %21, %17, %13
%34 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
br label %37
35: ; preds = %29
%36 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0))
br label %37
37: ; preds = %35, %33
br label %4
38: ; preds = %11
ret i32 0
}

LLVM IR (-O2):
@.str.2 = [3 x i8] c"%s\00"
@.str.3 = [2 x i8] c"1\00"
@.str.5 = [2 x i8] c"a\00"
@.str.6 = [2 x i8] c"e\00"
@.str.7 = [2 x i8] c"i\00"
@.str.8 = [2 x i8] c"o\00"
@.str.9 = [2 x i8] c"u\00"
@str = [21 x i8] c"Para sair precione 1\00"
@str.12 = [19 x i8] c"Insira uma letra: \00"
@str.13 = [10 x i8] c"Consoante\00"
@str.14 = [6 x i8] c"Vogal\00"
@str.15 = [10 x i8] c"At\C3\A9 mais\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 ([21 x i8], [21 x i8]* @str, i64 0, i64 0))
%4 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.12, i64 0, i64 0))
%5 = bitcast [10 x i8]* %1 to i8**
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8** %5)
%7 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %27, %0
%10 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.15, i64 0, i64 0))
ret i32 0
11: ; preds = %0, %27
%12 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%13 = icmp eq i64 %12, 0
br i1 %13, label %27, label %14
14: ; preds = %11
%15 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %27, label %17
17: ; preds = %14
%18 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%19 = icmp eq i64 %18, 0
br i1 %19, label %27, label %20
20: ; preds = %17
%21 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%22 = icmp eq i64 %21, 0
br i1 %22, label %27, label %23
23: ; preds = %20
%24 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
%26 = select i1 %25, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @str.14, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @str.13, i64 0, i64 0)
br label %27
27: ; preds = %23, %11, %14, %17, %20
%28 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @str.14, i64 0, i64 0), %20 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @str.14, i64 0, i64 0), %17 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @str.14, i64 0, i64 0), %14 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @str.14, i64 0, i64 0), %11 ], [ %26, %23 ]
%29 = call i32 @puts(i8* dereferenceable(1) %28)
%30 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.12, i64 0, i64 0))
%31 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8** %5)
%32 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %9, label %11
}