#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*/ abort();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char);
int /*<<< orphan*/ stderr;
const char *mpw_charactersInClass(char characterClass) {
  switch (characterClass) {
  case 'V':
    return "AEIOU";
  case 'C':
    return "BCDFGHJKLMNPQRSTVWXYZ";
  case 'v':
    return "aeiou";
  case 'c':
    return "bcdfghjklmnpqrstvwxyz";
  case 'A':
    return "AEIOUBCDFGHJKLMNPQRSTVWXYZ";
  case 'a':
    return "AEIOUaeiouBCDFGHJKLMNPQRSTVWXYZbcdfghjklmnpqrstvwxyz";
  case 'n':
    return "0123456789";
  case 'o':
    return "@&%?,=[]_:-+*$#!'^~;()/.";
  case 'x':
    return "AEIOUaeiouBCDFGHJKLMNPQRSTVWXYZbcdfghjklmnpqrstvwxyz0123456789!@#$%"
           "^&*()";
  case ' ':
    return " ";
  default: {
    fprintf(stderr, "Unknown character class: %c", characterClass);
    abort();
  }
  }
}


x86 assembly (clang, -O0):
<mpw_charactersInClass>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %dil,%al
mov    %al,-0x9(%rbp)
movsbl -0x9(%rbp),%eax
add    $0xffffffe0,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x58,%eax
ja     11f8 <mpw_charactersInClass+0xd8>
mov    -0x18(%rbp),%rax
lea    0xeb1(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x1005(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1218 <mpw_charactersInClass+0xf8>
lea    0x1006(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1218 <mpw_charactersInClass+0xf8>
lea    0xfeb(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1218 <mpw_charactersInClass+0xf8>
lea    0x101b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1218 <mpw_charactersInClass+0xf8>
lea    0xfd1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1218 <mpw_charactersInClass+0xf8>
lea    0xfdc(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1218 <mpw_charactersInClass+0xf8>
lea    0x1001(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1218 <mpw_charactersInClass+0xf8>
lea    0xffc(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1218 <mpw_charactersInClass+0xf8>
lea    0x1005(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1218 <mpw_charactersInClass+0xf8>
lea    0x103e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1218 <mpw_charactersInClass+0xf8>
mov    0x2de1(%rip),%rax
mov    (%rax),%edi
lea    0x1027(%rip),%rsi
movsbl -0x9(%rbp),%edx
call   1040 <fprintf@plt>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mpw_charactersInClass>:
push   %rax
lea    -0x20(%rdi),%ecx
cmp    $0x58,%ecx
ja     1191 <mpw_charactersInClass+0x71>
lea    0x1034(%rip),%rax
lea    0xec9(%rip),%rdx
movslq (%rdx,%rcx,4),%rcx
add    %rdx,%rcx
jmp    *%rcx
lea    0x10e6(%rip),%rax
pop    %rcx
ret
lea    0x1020(%rip),%rax
pop    %rcx
ret
lea    0x101c(%rip),%rax
pop    %rcx
ret
lea    0x1029(%rip),%rax
pop    %rcx
ret
lea    0x103f(%rip),%rax
pop    %rcx
ret
lea    0x104c(%rip),%rax
pop    %rcx
ret
lea    0x104e(%rip),%rax
pop    %rcx
ret
lea    0xfe4(%rip),%rax
pop    %rcx
ret
lea    0x1055(%rip),%rax
pop    %rcx
ret
mov    0x2e48(%rip),%rax
mov    (%rax),%eax
movsbl %dil,%edx
lea    0x108a(%rip),%rsi
mov    %eax,%edi
call   1040 <fprintf@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"AEIOU\00"
@.str.1 = [22 x i8] c"BCDFGHJKLMNPQRSTVWXYZ\00"
@.str.2 = [6 x i8] c"aeiou\00"
@.str.3 = [22 x i8] c"bcdfghjklmnpqrstvwxyz\00"
@.str.4 = [27 x i8] c"AEIOUBCDFGHJKLMNPQRSTVWXYZ\00"
@.str.5 = [53 x i8] c"AEIOUaeiouBCDFGHJKLMNPQRSTVWXYZbcdfghjklmnpqrstvwxyz\00"
@.str.6 = [11 x i8] c"0123456789\00"
@.str.7 = [25 x i8] c"@&%?,=[]_:-+*$#!'^~;()/.\00"
@.str.8 = [73 x i8] c"AEIOUaeiouBCDFGHJKLMNPQRSTVWXYZbcdfghjklmnpqrstvwxyz0123456789!@#$%^&*()\00"
@.str.9 = [2 x i8] c" \00"
@stderr = global i32 0
@.str.10 = [28 x i8] c"Unknown character class: %c\00"
define i8* @mpw_charactersInClass(i8 signext %0) {
%2 = alloca i8*
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = sext i8 %4 to i32
switch i32 %5, label %16 [
i32 86, label %6
i32 67, label %7
i32 118, label %8
i32 99, label %9
i32 65, label %10
i32 97, label %11
i32 110, label %12
i32 111, label %13
i32 120, label %14
i32 32, label %15
]
6: ; preds = %1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %2
br label %21
7: ; preds = %1
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %21
8: ; preds = %1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %21
9: ; preds = %1
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %21
10: ; preds = %1
store i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %21
11: ; preds = %1
store i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %21
12: ; preds = %1
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8** %2
br label %21
13: ; preds = %1
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i8** %2
br label %21
14: ; preds = %1
store i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.8, i64 0, i64 0), i8** %2
br label %21
15: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %21
16: ; preds = %1
%17 = load i32, i32* @stderr
%18 = load i8, i8* %3
%19 = call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.10, i64 0, i64 0), i8 signext %18)
%20 = call i32 (...) @abort()
unreachable
21: ; preds = %15, %14, %13, %12, %11, %10, %9, %8, %7, %6
%22 = load i8*, i8** %2
ret i8* %22
}

LLVM IR (-O2):
@.str = [6 x i8] c"AEIOU\00"
@.str.1 = [22 x i8] c"BCDFGHJKLMNPQRSTVWXYZ\00"
@.str.2 = [6 x i8] c"aeiou\00"
@.str.3 = [22 x i8] c"bcdfghjklmnpqrstvwxyz\00"
@.str.4 = [27 x i8] c"AEIOUBCDFGHJKLMNPQRSTVWXYZ\00"
@.str.5 = [53 x i8] c"AEIOUaeiouBCDFGHJKLMNPQRSTVWXYZbcdfghjklmnpqrstvwxyz\00"
@.str.6 = [11 x i8] c"0123456789\00"
@.str.7 = [25 x i8] c"@&%?,=[]_:-+*$#!'^~;()/.\00"
@.str.8 = [73 x i8] c"AEIOUaeiouBCDFGHJKLMNPQRSTVWXYZbcdfghjklmnpqrstvwxyz0123456789!@#$%^&*()\00"
@.str.9 = [2 x i8] c" \00"
@stderr = global i32 0
@.str.10 = [28 x i8] c"Unknown character class: %c\00"
define i8* @mpw_charactersInClass(i8 signext %0) {
%2 = sext i8 %0 to i32
switch i32 %2, label %12 [
i32 86, label %16
i32 67, label %3
i32 118, label %4
i32 99, label %5
i32 65, label %6
i32 97, label %7
i32 110, label %8
i32 111, label %9
i32 120, label %10
i32 32, label %11
]
3: ; preds = %1
br label %16
4: ; preds = %1
br label %16
5: ; preds = %1
br label %16
6: ; preds = %1
br label %16
7: ; preds = %1
br label %16
8: ; preds = %1
br label %16
9: ; preds = %1
br label %16
10: ; preds = %1
br label %16
11: ; preds = %1
br label %16
12: ; preds = %1
%13 = load i32, i32* @stderr
%14 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.10, i64 0, i64 0), i8 signext %0)
%15 = tail call i32 (...) @abort()
unreachable
16: ; preds = %1, %11, %10, %9, %8, %7, %6, %5, %4, %3
%17 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0), %11 ], [ getelementptr inbounds ([73 x i8], [73 x i8]* @.str.8, i64 0, i64 0), %10 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), %9 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), %8 ], [ getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0), %7 ], [ getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), %6 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), %5 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), %4 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), %3 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), %1 ]
ret i8* %17
}