#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*/ *strpbrk(char *, char *);
int ContainsVowel(char *word) {
  if ('\0' == *word)
    return (0);
  else
    return (('a' == (*word) || 'e' == (*word) || 'i' == (*word) ||
             'o' == (*word) || 'u' == (*word)) ||
            (NULL != strpbrk(word + 1, "aeiouy")));
}


x86 assembly (clang, -O0):
<ContainsVowel>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    %ecx,%eax
jne    1139 <ContainsVowel+0x29>
movl   $0x0,-0x4(%rbp)
jmp    11e3 <ContainsVowel+0xd3>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edx
mov    $0x1,%al
mov    $0x61,%ecx
cmp    %edx,%ecx
mov    %al,-0x11(%rbp)
je     11d8 <ContainsVowel+0xc8>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edx
mov    $0x1,%al
mov    $0x65,%ecx
cmp    %edx,%ecx
mov    %al,-0x11(%rbp)
je     11d8 <ContainsVowel+0xc8>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edx
mov    $0x1,%al
mov    $0x69,%ecx
cmp    %edx,%ecx
mov    %al,-0x11(%rbp)
je     11d8 <ContainsVowel+0xc8>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edx
mov    $0x1,%al
mov    $0x6f,%ecx
cmp    %edx,%ecx
mov    %al,-0x11(%rbp)
je     11d8 <ContainsVowel+0xc8>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edx
mov    $0x1,%al
mov    $0x75,%ecx
cmp    %edx,%ecx
mov    %al,-0x11(%rbp)
je     11d8 <ContainsVowel+0xc8>
mov    -0x10(%rbp),%rdi
add    $0x1,%rdi
lea    0xe3b(%rip),%rsi
call   1030 <strpbrk@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
setne  %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ContainsVowel>:
push   %rax
mov    (%rdi),%cl
lea    -0x61(%rcx),%edx
cmp    $0x14,%dl
ja     1130 <ContainsVowel+0x20>
mov    $0x1,%eax
movzbl %dl,%edx
mov    $0x104111,%esi
bt     %rdx,%rsi
jae    1130 <ContainsVowel+0x20>
pop    %rcx
ret
xor    %eax,%eax
test   %cl,%cl
je     112e <ContainsVowel+0x1e>
add    $0x1,%rdi
lea    0xebf(%rip),%rsi
call   1030 <strpbrk@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
setne  %al
pop    %rcx
ret

LLVM IR (-O0):
@.str = [7 x i8] c"aeiouy\00"
define i32 @ContainsVowel(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = load i8, i8* %4
%6 = sext i8 %5 to i32
%7 = icmp eq i32 0, %6
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 0, i32* %2
br label %42
9: ; preds = %1
%10 = load i8*, i8** %3
%11 = load i8, i8* %10
%12 = sext i8 %11 to i32
%13 = icmp eq i32 97, %12
br i1 %13, label %39, label %14
14: ; preds = %9
%15 = load i8*, i8** %3
%16 = load i8, i8* %15
%17 = sext i8 %16 to i32
%18 = icmp eq i32 101, %17
br i1 %18, label %39, label %19
19: ; preds = %14
%20 = load i8*, i8** %3
%21 = load i8, i8* %20
%22 = sext i8 %21 to i32
%23 = icmp eq i32 105, %22
br i1 %23, label %39, label %24
24: ; preds = %19
%25 = load i8*, i8** %3
%26 = load i8, i8* %25
%27 = sext i8 %26 to i32
%28 = icmp eq i32 111, %27
br i1 %28, label %39, label %29
29: ; preds = %24
%30 = load i8*, i8** %3
%31 = load i8, i8* %30
%32 = sext i8 %31 to i32
%33 = icmp eq i32 117, %32
br i1 %33, label %39, label %34
34: ; preds = %29
%35 = load i8*, i8** %3
%36 = getelementptr inbounds i8, i8* %35, i64 1
%37 = call i32* @strpbrk(i8* %36, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%38 = icmp ne i32* null, %37
br label %39
39: ; preds = %34, %29, %24, %19, %14, %9
%40 = phi i1 [ true, %29 ], [ true, %24 ], [ true, %19 ], [ true, %14 ], [ true, %9 ], [ %38, %34 ]
%41 = zext i1 %40 to i32
store i32 %41, i32* %2
br label %42
42: ; preds = %39, %8
%43 = load i32, i32* %2
ret i32 %43
}

LLVM IR (-O2):
@.str = [7 x i8] c"aeiouy\00"
define i32 @ContainsVowel(i8* %0) {
%2 = load i8, i8* %0
switch i8 %2, label %3 [
i8 0, label %10
i8 97, label %8
i8 101, label %8
i8 105, label %8
i8 111, label %8
i8 117, label %8
]
3: ; preds = %1
%4 = getelementptr inbounds i8, i8* %0, i64 1
%5 = tail call i32* @strpbrk(i8* %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%6 = icmp ne i32* %5, null
%7 = zext i1 %6 to i32
br label %8
8: ; preds = %1, %1, %1, %1, %1, %3
%9 = phi i32 [ %7, %3 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ]
br label %10
10: ; preds = %1, %8
%11 = phi i32 [ %9, %8 ], [ 0, %1 ]
ret i32 %11
}