#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*/ islower(int);
int /*<<< orphan*/ isupper(int);
int tolower(int);
int is_consonant(int letter) {
  if (!islower(letter) && !isupper(letter))
    return 0;
  switch (tolower(letter)) {
  case 'e':
  case 'y':
  case 'u':
  case 'i':
  case 'o':
  case 'a':
    return 0;
    break;
  }
  return 1;
}


x86 assembly (clang, -O0):
<is_consonant>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <islower@plt>
cmp    $0x0,%eax
jne    1169 <is_consonant+0x39>
mov    -0x8(%rbp),%edi
call   1050 <isupper@plt>
cmp    $0x0,%eax
jne    1169 <is_consonant+0x39>
movl   $0x0,-0x4(%rbp)
jmp    11ec <is_consonant+0xbc>
mov    -0x8(%rbp),%edi
call   1040 <tolower@plt>
mov    %eax,%ecx
mov    %ecx,-0xc(%rbp)
sub    $0x61,%eax
je     11d9 <is_consonant+0xa9>
jmp    1184 <is_consonant+0x54>
mov    -0xc(%rbp),%eax
sub    $0x65,%eax
je     11d9 <is_consonant+0xa9>
jmp    1195 <is_consonant+0x65>
mov    -0xc(%rbp),%eax
sub    $0x69,%eax
je     11d9 <is_consonant+0xa9>
jmp    11a6 <is_consonant+0x76>
mov    -0xc(%rbp),%eax
sub    $0x6f,%eax
je     11d9 <is_consonant+0xa9>
jmp    11b7 <is_consonant+0x87>
mov    -0xc(%rbp),%eax
sub    $0x75,%eax
je     11d9 <is_consonant+0xa9>
jmp    11c8 <is_consonant+0x98>
mov    -0xc(%rbp),%eax
sub    $0x79,%eax
jne    11e5 <is_consonant+0xb5>
jmp    11d9 <is_consonant+0xa9>
movl   $0x0,-0x4(%rbp)
jmp    11ec <is_consonant+0xbc>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_consonant>:
push   %rbx
mov    %edi,%ebx
call   1030 <islower@plt>
test   %eax,%eax
jne    1147 <is_consonant+0x17>
mov    %ebx,%edi
call   1050 <isupper@plt>
test   %eax,%eax
je     116e <is_consonant+0x3e>
mov    %ebx,%edi
call   1040 <tolower@plt>
mov    %eax,%ecx
add    $0xffffff9f,%ecx
ror    %ecx
mov    $0x1,%eax
cmp    $0xc,%ecx
ja     116c <is_consonant+0x3c>
movslq %ecx,%rax
lea    0xe97(%rip),%rcx
mov    (%rcx,%rax,4),%eax
pop    %rbx
ret
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @is_consonant(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = call i32 @islower(i32 %4)
%6 = icmp ne i32 %5, 0
br i1 %6, label %12, label %7
7: ; preds = %1
%8 = load i32, i32* %3
%9 = call i32 @isupper(i32 %8)
%10 = icmp ne i32 %9, 0
br i1 %10, label %12, label %11
11: ; preds = %7
store i32 0, i32* %2
br label %17
12: ; preds = %7, %1
%13 = load i32, i32* %3
%14 = call i32 @tolower(i32 %13)
switch i32 %14, label %16 [
i32 101, label %15
i32 121, label %15
i32 117, label %15
i32 105, label %15
i32 111, label %15
i32 97, label %15
]
15: ; preds = %12, %12, %12, %12, %12, %12
store i32 0, i32* %2
br label %17
16: ; preds = %12
store i32 1, i32* %2
br label %17
17: ; preds = %16, %15, %11
%18 = load i32, i32* %2
ret i32 %18
}

LLVM IR (-O2):
@switch.table.is_consonant = [13 x i32] [i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 1, i32 1, i32 0, i32 1, i32 0]
define i32 @is_consonant(i32 %0) {
%2 = tail call i32 @islower(i32 %0)
%3 = icmp eq i32 %2, 0
br i1 %3, label %4, label %7
4: ; preds = %1
%5 = tail call i32 @isupper(i32 %0)
%6 = icmp eq i32 %5, 0
br i1 %6, label %16, label %7
7: ; preds = %4, %1
%8 = tail call i32 @tolower(i32 %0)
%9 = add i32 %8, -97
%10 = tail call i32 @llvm.fshl.i32(i32 %9, i32 %9, i32 31)
%11 = icmp ult i32 %10, 13
br i1 %11, label %12, label %16
12: ; preds = %7
%13 = sext i32 %10 to i64
%14 = getelementptr inbounds [13 x i32], [13 x i32]* @switch.table.is_consonant, i64 0, i64 %13
%15 = load i32, i32* %14
br label %16
16: ; preds = %7, %12, %4
%17 = phi i32 [ 0, %4 ], [ %15, %12 ], [ 1, %7 ]
ret i32 %17
}