#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 */
typedef size_t uint8_t;

/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char);
int /*<<< orphan*/ stderr;
size_t strlen(char const *);
const char CharacterFromClass(char characterClass, uint8_t seedByte) {
  const char *classCharacters;
  switch (characterClass) {
  case 'V': {
    classCharacters = "AEIOU";
    break;
  }
  case 'C': {
    classCharacters = "BCDFGHJKLMNPQRSTVWXYZ";
    break;
  }
  case 'v': {
    classCharacters = "aeiou";
    break;
  }
  case 'c': {
    classCharacters = "bcdfghjklmnpqrstvwxyz";
    break;
  }
  case 'A': {
    classCharacters = "AEIOUBCDFGHJKLMNPQRSTVWXYZ";
    break;
  }
  case 'a': {
    classCharacters = "AEIOUaeiouBCDFGHJKLMNPQRSTVWXYZbcdfghjklmnpqrstvwxyz";
    break;
  }
  case 'n': {
    classCharacters = "0123456789";
    break;
  }
  case 'o': {
    classCharacters = "@&%?,=[]_:-+*$#!'^~;()/.";
    break;
  }
  case 'x': {
    classCharacters = "AEIOUaeiouBCDFGHJKLMNPQRSTVWXYZbcdfghjklmnpqrstvwxyz0123"
                      "456789!@#$%^&*()";
    break;
  }
  case ' ': {
    classCharacters = " ";
    break;
  }
  default: {
    fprintf(stderr, "Unknown character class: %c", characterClass);
    abort();
  }
  }
  return classCharacters[seedByte % strlen(classCharacters)];
}


x86 assembly (clang, -O0):
<CharacterFromClass>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    %rsi,-0x10(%rbp)
movsbl -0x1(%rbp),%eax
add    $0xffffffe0,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0x58,%eax
ja     120c <CharacterFromClass+0xdc>
mov    -0x20(%rbp),%rax
lea    0xe9d(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xff1(%rip),%rax
mov    %rax,-0x18(%rbp)
jmp    122c <CharacterFromClass+0xfc>
lea    0xff2(%rip),%rax
mov    %rax,-0x18(%rbp)
jmp    122c <CharacterFromClass+0xfc>
lea    0xfd7(%rip),%rax
mov    %rax,-0x18(%rbp)
jmp    122c <CharacterFromClass+0xfc>
lea    0x1007(%rip),%rax
mov    %rax,-0x18(%rbp)
jmp    122c <CharacterFromClass+0xfc>
lea    0xfbd(%rip),%rax
mov    %rax,-0x18(%rbp)
jmp    122c <CharacterFromClass+0xfc>
lea    0xfc8(%rip),%rax
mov    %rax,-0x18(%rbp)
jmp    122c <CharacterFromClass+0xfc>
lea    0xfed(%rip),%rax
mov    %rax,-0x18(%rbp)
jmp    122c <CharacterFromClass+0xfc>
lea    0xfe8(%rip),%rax
mov    %rax,-0x18(%rbp)
jmp    122c <CharacterFromClass+0xfc>
lea    0xff1(%rip),%rax
mov    %rax,-0x18(%rbp)
jmp    122c <CharacterFromClass+0xfc>
lea    0x102a(%rip),%rax
mov    %rax,-0x18(%rbp)
jmp    122c <CharacterFromClass+0xfc>
mov    0x2dcd(%rip),%rax
mov    (%rax),%edi
lea    0x1013(%rip),%rsi
movsbl -0x1(%rbp),%edx
call   1050 <fprintf@plt>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x18(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,%rcx
mov    -0x30(%rbp),%rax
xor    %edx,%edx
div    %rcx
mov    -0x28(%rbp),%rax
movsbl (%rax,%rdx,1),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CharacterFromClass>:
push   %r14
push   %rbx
push   %rax
lea    -0x20(%rdi),%eax
cmp    $0x58,%eax
ja     11d9 <CharacterFromClass+0xa9>
mov    %rsi,%r14
lea    0x101a(%rip),%rbx
lea    0xeaf(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x10cc(%rip),%rbx
jmp    11a9 <CharacterFromClass+0x79>
lea    0x1006(%rip),%rbx
jmp    11a9 <CharacterFromClass+0x79>
lea    0x1002(%rip),%rbx
jmp    11a9 <CharacterFromClass+0x79>
lea    0x100f(%rip),%rbx
jmp    11a9 <CharacterFromClass+0x79>
lea    0x1025(%rip),%rbx
jmp    11a9 <CharacterFromClass+0x79>
lea    0x1032(%rip),%rbx
jmp    11a9 <CharacterFromClass+0x79>
lea    0x1034(%rip),%rbx
jmp    11a9 <CharacterFromClass+0x79>
lea    0xfca(%rip),%rbx
jmp    11a9 <CharacterFromClass+0x79>
lea    0x103b(%rip),%rbx
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    %rax,%rcx
or     %r14,%rax
shr    $0x20,%rax
je     11c7 <CharacterFromClass+0x97>
mov    %r14,%rax
xor    %edx,%edx
div    %rcx
jmp    11ce <CharacterFromClass+0x9e>
mov    %r14d,%eax
xor    %edx,%edx
div    %ecx
mov    (%rbx,%rdx,1),%al
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
mov    0x2e00(%rip),%rax
mov    (%rax),%eax
movsbl %dil,%edx
lea    0x1042(%rip),%rsi
mov    %eax,%edi
call   1050 <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 signext i8 @CharacterFromClass(i8 signext %0, i64 %1) {
%3 = alloca i8
%4 = alloca i64
%5 = alloca i8*
store i8 %0, i8* %3
store i64 %1, i64* %4
%6 = load i8, i8* %3
%7 = sext i8 %6 to i32
switch i32 %7, label %18 [
i32 86, label %8
i32 67, label %9
i32 118, label %10
i32 99, label %11
i32 65, label %12
i32 97, label %13
i32 110, label %14
i32 111, label %15
i32 120, label %16
i32 32, label %17
]
8: ; preds = %2
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %5
br label %23
9: ; preds = %2
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i8** %5
br label %23
10: ; preds = %2
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8** %5
br label %23
11: ; preds = %2
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8** %5
br label %23
12: ; preds = %2
store i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i8** %5
br label %23
13: ; preds = %2
store i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0), i8** %5
br label %23
14: ; preds = %2
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8** %5
br label %23
15: ; preds = %2
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i8** %5
br label %23
16: ; preds = %2
store i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.8, i64 0, i64 0), i8** %5
br label %23
17: ; preds = %2
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0), i8** %5
br label %23
18: ; preds = %2
%19 = load i32, i32* @stderr
%20 = load i8, i8* %3
%21 = call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.10, i64 0, i64 0), i8 signext %20)
%22 = call i32 (...) @abort()
unreachable
23: ; preds = %17, %16, %15, %14, %13, %12, %11, %10, %9, %8
%24 = load i8*, i8** %5
%25 = load i64, i64* %4
%26 = load i8*, i8** %5
%27 = call i64 @strlen(i8* %26)
%28 = urem i64 %25, %27
%29 = getelementptr inbounds i8, i8* %24, i64 %28
%30 = load i8, i8* %29
ret i8 %30
}

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 signext i8 @CharacterFromClass(i8 signext %0, i64 %1) {
%3 = sext i8 %0 to i32
switch i32 %3, label %13 [
i32 86, label %17
i32 67, label %4
i32 118, label %5
i32 99, label %6
i32 65, label %7
i32 97, label %8
i32 110, label %9
i32 111, label %10
i32 120, label %11
i32 32, label %12
]
4: ; preds = %2
br label %17
5: ; preds = %2
br label %17
6: ; preds = %2
br label %17
7: ; preds = %2
br label %17
8: ; preds = %2
br label %17
9: ; preds = %2
br label %17
10: ; preds = %2
br label %17
11: ; preds = %2
br label %17
12: ; preds = %2
br label %17
13: ; preds = %2
%14 = load i32, i32* @stderr
%15 = tail call i32 @fprintf(i32 %14, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.10, i64 0, i64 0), i8 signext %0)
%16 = tail call i32 (...) @abort()
unreachable
17: ; preds = %2, %12, %11, %10, %9, %8, %7, %6, %5, %4
%18 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0), %12 ], [ getelementptr inbounds ([73 x i8], [73 x i8]* @.str.8, i64 0, i64 0), %11 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), %10 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), %9 ], [ getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0), %8 ], [ getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), %7 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), %6 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), %5 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), %4 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), %2 ]
%19 = tail call i64 @strlen(i8* dereferenceable(1) %18)
%20 = urem i64 %1, %19
%21 = getelementptr inbounds i8, i8* %18, i64 %20
%22 = load i8, i8* %21
ret i8 %22
}