#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__ stringsMatch(char *, char *);
int /*<<< orphan*/ strncpy(char *, char *, int);
int /*<<< orphan*/ upperCase(char *);
char isVowelish(char *theChar) {
  short i;
  while (*theChar == 25) {
    theChar += 4;
  }
  char str[30];
  strncpy(str, theChar, 29);
  for (i = 0; i < 30; i++) {
    upperCase(&(str[i]));
  }
  if (stringsMatch(str, "UNI") || stringsMatch(str, "EU")) {
    return 0;
  } else {
    return (str[0] == 'A' || str[0] == 'E' || str[0] == 'I' || str[0] == 'O' ||
            str[0] == 'U');
  }
}


x86 assembly (clang, -O0):
<isVowelish>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x19,%eax
jne    115d <isVowelish+0x2d>
mov    -0x10(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x10(%rbp)
jmp    113c <isVowelish+0xc>
lea    -0x30(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x1d,%edx
call   1030 <strncpy@plt>
movw   $0x0,-0x12(%rbp)
movswl -0x12(%rbp),%eax
cmp    $0x1e,%eax
jge    11a4 <isVowelish+0x74>
movswq -0x12(%rbp),%rax
lea    -0x30(%rbp),%rdi
add    %rax,%rdi
call   1040 <upperCase@plt>
mov    -0x12(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x12(%rbp)
jmp    1175 <isVowelish+0x45>
lea    -0x30(%rbp),%rdi
lea    0xe51(%rip),%rsi
call   1050 <stringsMatch@plt>
cmp    $0x0,%rax
jne    11d8 <isVowelish+0xa8>
lea    -0x30(%rbp),%rdi
lea    0xe3b(%rip),%rsi
call   1050 <stringsMatch@plt>
cmp    $0x0,%rax
je     11e1 <isVowelish+0xb1>
movb   $0x0,-0x1(%rbp)
jmp    1241 <isVowelish+0x111>
movsbl -0x30(%rbp),%ecx
mov    $0x1,%al
cmp    $0x41,%ecx
mov    %al,-0x31(%rbp)
je     1236 <isVowelish+0x106>
movsbl -0x30(%rbp),%ecx
mov    $0x1,%al
cmp    $0x45,%ecx
mov    %al,-0x31(%rbp)
je     1236 <isVowelish+0x106>
movsbl -0x30(%rbp),%ecx
mov    $0x1,%al
cmp    $0x49,%ecx
mov    %al,-0x31(%rbp)
je     1236 <isVowelish+0x106>
movsbl -0x30(%rbp),%ecx
mov    $0x1,%al
cmp    $0x4f,%ecx
mov    %al,-0x31(%rbp)
je     1236 <isVowelish+0x106>
movsbl -0x30(%rbp),%eax
cmp    $0x55,%eax
sete   %al
mov    %al,-0x31(%rbp)
mov    -0x31(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isVowelish>:
push   %rbx
sub    $0x20,%rsp
mov    %rdi,%rsi
add    $0xfffffffffffffffc,%rsi
nopl   0x0(%rax)
cmpb   $0x19,0x4(%rsi)
lea    0x4(%rsi),%rsi
je     1140 <isVowelish+0x10>
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x1d,%edx
call   1030 <strncpy@plt>
mov    %rbx,%rdi
call   1040 <upperCase@plt>
lea    0x1(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0x2(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0x3(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0x4(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0x5(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0x6(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0x7(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0x8(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0x9(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0xa(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0xb(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0xc(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0xd(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0xe(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0xf(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0x10(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0x11(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0x12(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0x13(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0x14(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0x15(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0x16(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0x17(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0x18(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0x19(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0x1a(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0x1b(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0x1c(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0x1d(%rsp),%rdi
call   1040 <upperCase@plt>
lea    0xd75(%rip),%rsi
mov    %rbx,%rdi
call   1050 <stringsMatch@plt>
test   %rax,%rax
jne    12ac <isVowelish+0x17c>
lea    0xd65(%rip),%rsi
mov    %rsp,%rdi
call   1050 <stringsMatch@plt>
test   %rax,%rax
je     12b4 <isVowelish+0x184>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret
mov    (%rsp),%cl
lea    -0x41(%rcx),%eax
ror    %al
cmp    $0x8,%al
jae    12cf <isVowelish+0x19f>
movzbl %al,%edx
mov    $0x1,%al
mov    $0x95,%esi
bt     %edx,%esi
jb     12ae <isVowelish+0x17e>
cmp    $0x55,%cl
sete   %al
jmp    12ae <isVowelish+0x17e>

LLVM IR (-O0):
@.str = [4 x i8] c"UNI\00"
@.str.1 = [3 x i8] c"EU\00"
define signext i8 @isVowelish(i8* %0) {
%2 = alloca i8
%3 = alloca i8*
%4 = alloca i16
%5 = alloca [30 x i8]
store i8* %0, i8** %3
br label %6
6: ; preds = %11, %1
%7 = load i8*, i8** %3
%8 = load i8, i8* %7
%9 = sext i8 %8 to i32
%10 = icmp eq i32 %9, 25
br i1 %10, label %11, label %14
11: ; preds = %6
%12 = load i8*, i8** %3
%13 = getelementptr inbounds i8, i8* %12, i64 4
store i8* %13, i8** %3
br label %6
14: ; preds = %6
%15 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 0
%16 = load i8*, i8** %3
%17 = call i32 @strncpy(i8* %15, i8* %16, i32 29)
store i16 0, i16* %4
br label %18
18: ; preds = %27, %14
%19 = load i16, i16* %4
%20 = sext i16 %19 to i32
%21 = icmp slt i32 %20, 30
br i1 %21, label %22, label %30
22: ; preds = %18
%23 = load i16, i16* %4
%24 = sext i16 %23 to i64
%25 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 %24
%26 = call i32 @upperCase(i8* %25)
br label %27
27: ; preds = %22
%28 = load i16, i16* %4
%29 = add i16 %28, 1
store i16 %29, i16* %4
br label %18
30: ; preds = %18
%31 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 0
%32 = call i64 @stringsMatch(i8* %31, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%33 = icmp ne i64 %32, 0
br i1 %33, label %38, label %34
34: ; preds = %30
%35 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 0
%36 = call i64 @stringsMatch(i8* %35, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %39
38: ; preds = %34, %30
store i8 0, i8* %2
br label %68
39: ; preds = %34
%40 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 0
%41 = load i8, i8* %40
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %42, 65
br i1 %43, label %64, label %44
44: ; preds = %39
%45 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 0
%46 = load i8, i8* %45
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, 69
br i1 %48, label %64, label %49
49: ; preds = %44
%50 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 0
%51 = load i8, i8* %50
%52 = sext i8 %51 to i32
%53 = icmp eq i32 %52, 73
br i1 %53, label %64, label %54
54: ; preds = %49
%55 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 0
%56 = load i8, i8* %55
%57 = sext i8 %56 to i32
%58 = icmp eq i32 %57, 79
br i1 %58, label %64, label %59
59: ; preds = %54
%60 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 0
%61 = load i8, i8* %60
%62 = sext i8 %61 to i32
%63 = icmp eq i32 %62, 85
br label %64
64: ; preds = %59, %54, %49, %44, %39
%65 = phi i1 [ true, %54 ], [ true, %49 ], [ true, %44 ], [ true, %39 ], [ %63, %59 ]
%66 = zext i1 %65 to i32
%67 = trunc i32 %66 to i8
store i8 %67, i8* %2
br label %68
68: ; preds = %64, %38
%69 = load i8, i8* %2
ret i8 %69
}

LLVM IR (-O2):
@.str = [4 x i8] c"UNI\00"
@.str.1 = [3 x i8] c"EU\00"
define signext i8 @isVowelish(i8* %0) {
%2 = alloca [30 x i8]
br label %3
3: ; preds = %3, %1
%4 = phi i8* [ %0, %1 ], [ %7, %3 ]
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 25
%7 = getelementptr inbounds i8, i8* %4, i64 4
br i1 %6, label %3, label %8
8: ; preds = %3
%9 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 0
%10 = call i32 @strncpy(i8* %9, i8* %4, i32 29)
%11 = call i32 @upperCase(i8* %9)
%12 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 1
%13 = call i32 @upperCase(i8* %12)
%14 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 2
%15 = call i32 @upperCase(i8* %14)
%16 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 3
%17 = call i32 @upperCase(i8* %16)
%18 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 4
%19 = call i32 @upperCase(i8* %18)
%20 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 5
%21 = call i32 @upperCase(i8* %20)
%22 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 6
%23 = call i32 @upperCase(i8* %22)
%24 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 7
%25 = call i32 @upperCase(i8* %24)
%26 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 8
%27 = call i32 @upperCase(i8* %26)
%28 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 9
%29 = call i32 @upperCase(i8* %28)
%30 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 10
%31 = call i32 @upperCase(i8* %30)
%32 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 11
%33 = call i32 @upperCase(i8* %32)
%34 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 12
%35 = call i32 @upperCase(i8* %34)
%36 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 13
%37 = call i32 @upperCase(i8* %36)
%38 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 14
%39 = call i32 @upperCase(i8* %38)
%40 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 15
%41 = call i32 @upperCase(i8* %40)
%42 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 16
%43 = call i32 @upperCase(i8* %42)
%44 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 17
%45 = call i32 @upperCase(i8* %44)
%46 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 18
%47 = call i32 @upperCase(i8* %46)
%48 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 19
%49 = call i32 @upperCase(i8* %48)
%50 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 20
%51 = call i32 @upperCase(i8* %50)
%52 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 21
%53 = call i32 @upperCase(i8* %52)
%54 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 22
%55 = call i32 @upperCase(i8* %54)
%56 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 23
%57 = call i32 @upperCase(i8* %56)
%58 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 24
%59 = call i32 @upperCase(i8* %58)
%60 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 25
%61 = call i32 @upperCase(i8* %60)
%62 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 26
%63 = call i32 @upperCase(i8* %62)
%64 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 27
%65 = call i32 @upperCase(i8* %64)
%66 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 28
%67 = call i32 @upperCase(i8* %66)
%68 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 29
%69 = call i32 @upperCase(i8* %68)
%70 = call i64 @stringsMatch(i8* %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%71 = icmp eq i64 %70, 0
br i1 %71, label %72, label %87
72: ; preds = %8
%73 = call i64 @stringsMatch(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%74 = icmp eq i64 %73, 0
br i1 %74, label %75, label %87
75: ; preds = %72
%76 = load i8, i8* %9
%77 = add i8 %76, -65
%78 = call i8 @llvm.fshl.i8(i8 %77, i8 %77, i8 7)
%79 = icmp ult i8 %78, 8
br i1 %79, label %83, label %80
80: ; preds = %83, %75
%81 = icmp eq i8 %76, 85
%82 = zext i1 %81 to i8
br label %87
83: ; preds = %75
%84 = lshr i8 -107, %78
%85 = and i8 %84, 1
%86 = icmp eq i8 %85, 0
br i1 %86, label %80, label %87
87: ; preds = %83, %80, %8, %72
%88 = phi i8 [ 0, %72 ], [ 0, %8 ], [ %82, %80 ], [ 1, %83 ]
ret i8 %88
}