#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*/ fprintf(int /*<<< orphan*/, char *, char);
int /*<<< orphan*/ stdout;
int es_vocal(char ch) {
  fprintf(stdout, "es_vocal(%c)\n", ch);
  return (ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u');
}


x86 assembly (clang, -O0):
<es_vocal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    0x2ebb(%rip),%rax
mov    (%rax),%edi
lea    0xed2(%rip),%rsi
movsbl -0x1(%rbp),%edx
call   1030 <fprintf@plt>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x61,%ecx
mov    %al,-0x2(%rbp)
je     118c <es_vocal+0x7c>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x65,%ecx
mov    %al,-0x2(%rbp)
je     118c <es_vocal+0x7c>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x69,%ecx
mov    %al,-0x2(%rbp)
je     118c <es_vocal+0x7c>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x6f,%ecx
mov    %al,-0x2(%rbp)
je     118c <es_vocal+0x7c>
movsbl -0x1(%rbp),%eax
cmp    $0x75,%eax
sete   %al
mov    %al,-0x2(%rbp)
mov    -0x2(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<es_vocal>:
push   %rbx
mov    %edi,%ebx
mov    0x2ec6(%rip),%rax
mov    (%rax),%edi
lea    0xedd(%rip),%rsi
mov    %ebx,%edx
call   1030 <fprintf@plt>
lea    -0x61(%rbx),%eax
ror    %al
cmp    $0x8,%al
jae    1145 <es_vocal+0x35>
movzbl %al,%ecx
mov    $0x1,%eax
mov    $0x95,%edx
bt     %ecx,%edx
jb     114d <es_vocal+0x3d>
xor    %eax,%eax
cmp    $0x75,%bl
sete   %al
pop    %rbx
ret

LLVM IR (-O0):
@stdout = global i32 0
@.str = [14 x i8] c"es_vocal(%c)\0A\00"
define i32 @es_vocal(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i32, i32* @stdout
%4 = load i8, i8* %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8 signext %4)
%6 = load i8, i8* %2
%7 = sext i8 %6 to i32
%8 = icmp eq i32 %7, 97
br i1 %8, label %25, label %9
9: ; preds = %1
%10 = load i8, i8* %2
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 101
br i1 %12, label %25, label %13
13: ; preds = %9
%14 = load i8, i8* %2
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 105
br i1 %16, label %25, label %17
17: ; preds = %13
%18 = load i8, i8* %2
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 111
br i1 %20, label %25, label %21
21: ; preds = %17
%22 = load i8, i8* %2
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 117
br label %25
25: ; preds = %21, %17, %13, %9, %1
%26 = phi i1 [ true, %17 ], [ true, %13 ], [ true, %9 ], [ true, %1 ], [ %24, %21 ]
%27 = zext i1 %26 to i32
ret i32 %27
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [14 x i8] c"es_vocal(%c)\0A\00"
define i32 @es_vocal(i8 signext %0) {
%2 = load i32, i32* @stdout
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8 signext %0)
%4 = add i8 %0, -97
%5 = tail call i8 @llvm.fshl.i8(i8 %4, i8 %4, i8 7)
%6 = icmp ult i8 %5, 8
br i1 %6, label %10, label %7
7: ; preds = %10, %1
%8 = icmp eq i8 %0, 117
%9 = zext i1 %8 to i32
br label %14
10: ; preds = %1
%11 = lshr i8 -107, %5
%12 = and i8 %11, 1
%13 = icmp eq i8 %12, 0
br i1 %13, label %7, label %14
14: ; preds = %10, %7
%15 = phi i32 [ %9, %7 ], [ 1, %10 ]
ret i32 %15
}