#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 *, char);
void esVocal(char c) {
  bool esVocal = false;
  if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
    esVocal = true;
  }
  if (esVocal) {
    printf("%c es vocal \n", c);
  } else {
    printf("%c no es vocal \n", c);
  }
}


x86 assembly (clang, -O0):
<esVocal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movl   $0x0,-0x8(%rbp)
movsbl -0x1(%rbp),%eax
cmp    $0x61,%eax
je     1166 <esVocal+0x56>
movsbl -0x1(%rbp),%eax
cmp    $0x65,%eax
je     1166 <esVocal+0x56>
movsbl -0x1(%rbp),%eax
cmp    $0x69,%eax
je     1166 <esVocal+0x56>
movsbl -0x1(%rbp),%eax
cmp    $0x6f,%eax
je     1166 <esVocal+0x56>
movsbl -0x1(%rbp),%eax
cmp    $0x75,%eax
jne    116d <esVocal+0x5d>
movl   $0x1,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     118c <esVocal+0x7c>
lea    0xe82(%rip),%rdi
movsbl -0x1(%rbp),%esi
call   1030 <printf@plt>
jmp    119c <esVocal+0x8c>
lea    0xe7b(%rip),%rdi
movsbl -0x1(%rbp),%esi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<esVocal>:
lea    -0x61(%rdi),%eax
ror    %al
cmp    $0xa,%al
ja     112d <esVocal+0x1d>
movsbq %al,%rax
lea    0xefc(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    1134 <esVocal+0x24>
lea    0xeda(%rip),%rax
movsbl %dil,%esi
mov    %rax,%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [14 x i8] c"%c es vocal \0A\00"
@.str.1 = [17 x i8] c"%c no es vocal \0A\00"
define void @esVocal(i8 signext %0) {
%2 = alloca i8
%3 = alloca i32
store i8 %0, i8* %2
store i32 0, i32* %3
%4 = load i8, i8* %2
%5 = sext i8 %4 to i32
%6 = icmp eq i32 %5, 97
br i1 %6, label %23, label %7
7: ; preds = %1
%8 = load i8, i8* %2
%9 = sext i8 %8 to i32
%10 = icmp eq i32 %9, 101
br i1 %10, label %23, label %11
11: ; preds = %7
%12 = load i8, i8* %2
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 105
br i1 %14, label %23, label %15
15: ; preds = %11
%16 = load i8, i8* %2
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 111
br i1 %18, label %23, label %19
19: ; preds = %15
%20 = load i8, i8* %2
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 117
br i1 %22, label %23, label %24
23: ; preds = %19, %15, %11, %7, %1
store i32 1, i32* %3
br label %24
24: ; preds = %23, %19
%25 = load i32, i32* %3
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %24
%28 = load i8, i8* %2
%29 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8 signext %28)
br label %33
30: ; preds = %24
%31 = load i8, i8* %2
%32 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8 signext %31)
br label %33
33: ; preds = %30, %27
ret void
}

LLVM IR (-O2):
@.str = [14 x i8] c"%c es vocal \0A\00"
@.str.1 = [17 x i8] c"%c no es vocal \0A\00"
@reltable.esVocal = [11 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str to i64), i64 ptrtoint ([11 x i32]* @reltable.esVocal to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.1 to i64), i64 ptrtoint ([11 x i32]* @reltable.esVocal to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str to i64), i64 ptrtoint ([11 x i32]* @reltable.esVocal to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.1 to i64), i64 ptrtoint ([11 x i32]* @reltable.esVocal to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str to i64), i64 ptrtoint ([11 x i32]* @reltable.esVocal to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.1 to i64), i64 ptrtoint ([11 x i32]* @reltable.esVocal to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.1 to i64), i64 ptrtoint ([11 x i32]* @reltable.esVocal to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str to i64), i64 ptrtoint ([11 x i32]* @reltable.esVocal to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.1 to i64), i64 ptrtoint ([11 x i32]* @reltable.esVocal to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.1 to i64), i64 ptrtoint ([11 x i32]* @reltable.esVocal to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str to i64), i64 ptrtoint ([11 x i32]* @reltable.esVocal to i64)) to i32)]
define void @esVocal(i8 signext %0) {
%2 = add i8 %0, -97
%3 = tail call i8 @llvm.fshl.i8(i8 %2, i8 %2, i8 7)
%4 = icmp ult i8 %3, 11
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = sext i8 %3 to i64
%7 = shl i64 %6, 2
%8 = call i8* @llvm.load.relative.i64(i8* bitcast ([11 x i32]* @reltable.esVocal to i8*), i64 %7)
br label %9
9: ; preds = %1, %5
%10 = phi i8* [ %8, %5 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), %1 ]
%11 = tail call i32 @printf(i8* %10, i8 signext %0)
ret void
}