#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 */
scalar_t__ isConsonant(char const *);
scalar_t__ isVowel(char const *);
int star_oh(const char *z) {
  return isConsonant(z) && z[0] != 'w' && z[0] != 'x' && z[0] != 'y' &&
         isVowel(z + 1) && isConsonant(z + 2);
}


x86 assembly (clang, -O0):
<star_oh>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <isConsonant@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x9(%rbp)
je     11bc <star_oh+0x9c>
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x77,%ecx
mov    %al,-0x9(%rbp)
je     11bc <star_oh+0x9c>
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x78,%ecx
mov    %al,-0x9(%rbp)
je     11bc <star_oh+0x9c>
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x79,%ecx
mov    %al,-0x9(%rbp)
je     11bc <star_oh+0x9c>
mov    -0x8(%rbp),%rdi
add    $0x1,%rdi
call   1040 <isVowel@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x9(%rbp)
je     11bc <star_oh+0x9c>
mov    -0x8(%rbp),%rdi
add    $0x2,%rdi
call   1030 <isConsonant@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<star_oh>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
call   1030 <isConsonant@plt>
xor    %ebp,%ebp
test   %rax,%rax
je     115d <star_oh+0x3d>
mov    (%rbx),%al
add    $0x89,%al
cmp    $0x3,%al
jb     115d <star_oh+0x3d>
lea    0x1(%rbx),%rdi
call   1040 <isVowel@plt>
test   %rax,%rax
je     115d <star_oh+0x3d>
add    $0x2,%rbx
mov    %rbx,%rdi
call   1030 <isConsonant@plt>
xor    %ebp,%ebp
test   %rax,%rax
setne  %bpl
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @star_oh(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i64 @isConsonant(i8* %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %34
6: ; preds = %1
%7 = load i8*, i8** %2
%8 = getelementptr inbounds i8, i8* %7, i64 0
%9 = load i8, i8* %8
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 119
br i1 %11, label %12, label %34
12: ; preds = %6
%13 = load i8*, i8** %2
%14 = getelementptr inbounds i8, i8* %13, i64 0
%15 = load i8, i8* %14
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %16, 120
br i1 %17, label %18, label %34
18: ; preds = %12
%19 = load i8*, i8** %2
%20 = getelementptr inbounds i8, i8* %19, i64 0
%21 = load i8, i8* %20
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 121
br i1 %23, label %24, label %34
24: ; preds = %18
%25 = load i8*, i8** %2
%26 = getelementptr inbounds i8, i8* %25, i64 1
%27 = call i64 @isVowel(i8* %26)
%28 = icmp ne i64 %27, 0
br i1 %28, label %29, label %34
29: ; preds = %24
%30 = load i8*, i8** %2
%31 = getelementptr inbounds i8, i8* %30, i64 2
%32 = call i64 @isConsonant(i8* %31)
%33 = icmp ne i64 %32, 0
br label %34
34: ; preds = %29, %24, %18, %12, %6, %1
%35 = phi i1 [ false, %24 ], [ false, %18 ], [ false, %12 ], [ false, %6 ], [ false, %1 ], [ %33, %29 ]
%36 = zext i1 %35 to i32
ret i32 %36
}

LLVM IR (-O2):
define i32 @star_oh(i8* %0) {
%2 = tail call i64 @isConsonant(i8* %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %17, label %4
4: ; preds = %1
%5 = load i8, i8* %0
%6 = add i8 %5, -119
%7 = icmp ult i8 %6, 3
br i1 %7, label %17, label %8
8: ; preds = %4
%9 = getelementptr inbounds i8, i8* %0, i64 1
%10 = tail call i64 @isVowel(i8* %9)
%11 = icmp eq i64 %10, 0
br i1 %11, label %17, label %12
12: ; preds = %8
%13 = getelementptr inbounds i8, i8* %0, i64 2
%14 = tail call i64 @isConsonant(i8* %13)
%15 = icmp ne i64 %14, 0
%16 = zext i1 %15 to i32
br label %17
17: ; preds = %4, %12, %8, %1
%18 = phi i32 [ 0, %8 ], [ 0, %1 ], [ %16, %12 ], [ 0, %4 ]
ret i32 %18
}