#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*/ printf(char *);
int /*<<< orphan*/ scanf(char *, char *);
scalar_t__ strchr(char *, char);
int main() {
  char input, vowels[] = "aeiou", upperVowels[] = "AEIOU",
              consonants[] = "bcdfghjklmnopqrstuvwxyz",
              upperConsonants[] = "BCDFGHJKLMNPQRSTVWXYZ";
  printf("Enter the symbol: ");
  scanf("%c", &input);
  if (strchr(vowels, input) != 0)
    printf("vowels!");
  else if (strchr(upperVowels, input) != 0)
    printf("Upper vowels!");
  else if (strchr(consonants, input) != 0)
    printf("Consonants!");
  else if (strchr(upperConsonants, input) != 0)
    printf("Upper Consonants!");
  else
    printf("You entered another character!");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xebb(%rip),%eax
mov    %eax,-0xb(%rbp)
mov    0xeb5(%rip),%ax
mov    %ax,-0x7(%rbp)
mov    0xead(%rip),%eax
mov    %eax,-0x11(%rbp)
mov    0xea7(%rip),%ax
mov    %ax,-0xd(%rbp)
mov    0xf02(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xeff(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xefc(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xf01(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xefe(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0xefc(%rip),%eax
mov    %eax,-0x40(%rbp)
mov    0xef6(%rip),%ax
mov    %ax,-0x3c(%rbp)
lea    0xe53(%rip),%rdi
call   1040 <printf@plt>
lea    0xe5a(%rip),%rdi
lea    -0x5(%rbp),%rsi
call   1050 <scanf@plt>
lea    -0xb(%rbp),%rdi
movsbl -0x5(%rbp),%esi
call   1030 <strchr@plt>
cmp    $0x0,%rax
je     11f6 <main+0xc6>
lea    0xe3c(%rip),%rdi
call   1040 <printf@plt>
jmp    1289 <main+0x159>
lea    -0x11(%rbp),%rdi
movsbl -0x5(%rbp),%esi
call   1030 <strchr@plt>
cmp    $0x0,%rax
je     121e <main+0xee>
lea    0xe0e(%rip),%rdi
call   1040 <printf@plt>
jmp    1284 <main+0x154>
lea    -0x30(%rbp),%rdi
movsbl -0x5(%rbp),%esi
call   1030 <strchr@plt>
cmp    $0x0,%rax
je     1246 <main+0x116>
lea    0xdfa(%rip),%rdi
call   1040 <printf@plt>
jmp    127f <main+0x14f>
lea    -0x50(%rbp),%rdi
movsbl -0x5(%rbp),%esi
call   1030 <strchr@plt>
cmp    $0x0,%rax
je     126e <main+0x13e>
lea    0xdcc(%rip),%rdi
call   1040 <printf@plt>
jmp    127a <main+0x14a>
lea    0xdcd(%rip),%rdi
call   1040 <printf@plt>
jmp    127f <main+0x14f>
jmp    1284 <main+0x154>
jmp    1289 <main+0x159>
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x58,%rsp
movw   $0x75,0x1c(%rsp)
movl   $0x6f696561,0x18(%rsp)
6f
movw   $0x55,0x14(%rsp)
movl   $0x4f494541,0x10(%rsp)
4f
movaps 0xf17(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movabs $0x7a797877767574,%rax
mov    %rax,0x50(%rsp)
movaps 0xf1c(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movabs $0x5a595857565453,%rax
mov    %rax,0x2e(%rsp)
lea    0xe7d(%rip),%rdi
call   1040 <printf@plt>
lea    0xe84(%rip),%rdi
lea    0xf(%rsp),%rsi
call   1050 <scanf@plt>
movsbl 0xf(%rsp),%esi
lea    0x18(%rsp),%rdi
call   1030 <strchr@plt>
test   %rax,%rax
je     11c2 <main+0x92>
lea    0xe68(%rip),%rdi
jmp    1220 <main+0xf0>
movsbl 0xf(%rsp),%esi
lea    0x10(%rsp),%rdi
call   1030 <strchr@plt>
test   %rax,%rax
je     11df <main+0xaf>
lea    0xe45(%rip),%rdi
jmp    1220 <main+0xf0>
movsbl 0xf(%rsp),%esi
lea    0x40(%rsp),%rdi
call   1030 <strchr@plt>
test   %rax,%rax
je     11fc <main+0xcc>
lea    0xe3c(%rip),%rdi
jmp    1220 <main+0xf0>
movsbl 0xf(%rsp),%esi
lea    0x20(%rsp),%rdi
call   1030 <strchr@plt>
test   %rax,%rax
lea    0xe2d(%rip),%rax
lea    0xe14(%rip),%rdi
cmove  %rax,%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x58,%rsp
ret

LLVM IR (-O0):
@__const.main.vowels = [6 x i8] c"aeiou\00"
@__const.main.upperVowels = [6 x i8] c"AEIOU\00"
@__const.main.consonants = [24 x i8] c"bcdfghjklmnopqrstuvwxyz\00"
@__const.main.upperConsonants = [22 x i8] c"BCDFGHJKLMNPQRSTVWXYZ\00"
@.str = [19 x i8] c"Enter the symbol: \00"
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [8 x i8] c"vowels!\00"
@.str.3 = [14 x i8] c"Upper vowels!\00"
@.str.4 = [12 x i8] c"Consonants!\00"
@.str.5 = [18 x i8] c"Upper Consonants!\00"
@.str.6 = [31 x i8] c"You entered another character!\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca [6 x i8]
%4 = alloca [6 x i8]
%5 = alloca [24 x i8]
%6 = alloca [22 x i8]
store i32 0, i32* %1
%7 = bitcast [6 x i8]* %3 to i8*
%8 = bitcast [6 x i8]* %4 to i8*
%9 = bitcast [24 x i8]* %5 to i8*
%10 = bitcast [22 x i8]* %6 to i8*
%11 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%13 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 0
%14 = load i8, i8* %2
%15 = call i64 @strchr(i8* %13, i8 signext %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %0
%18 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %45
19: ; preds = %0
%20 = getelementptr inbounds [6 x i8], [6 x i8]* %4, i64 0, i64 0
%21 = load i8, i8* %2
%22 = call i64 @strchr(i8* %20, i8 signext %21)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %19
%25 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
br label %44
26: ; preds = %19
%27 = getelementptr inbounds [24 x i8], [24 x i8]* %5, i64 0, i64 0
%28 = load i8, i8* %2
%29 = call i64 @strchr(i8* %27, i8 signext %28)
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %26
%32 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
br label %43
33: ; preds = %26
%34 = getelementptr inbounds [22 x i8], [22 x i8]* %6, i64 0, i64 0
%35 = load i8, i8* %2
%36 = call i64 @strchr(i8* %34, i8 signext %35)
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %33
%39 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
br label %42
40: ; preds = %33
%41 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0))
br label %42
42: ; preds = %40, %38
br label %43
43: ; preds = %42, %31
br label %44
44: ; preds = %43, %24
br label %45
45: ; preds = %44, %17
%46 = load i32, i32* %1
ret i32 %46
}

LLVM IR (-O2):
@__const.main.vowels = [6 x i8] c"aeiou\00"
@__const.main.upperVowels = [6 x i8] c"AEIOU\00"
@__const.main.consonants = [24 x i8] c"bcdfghjklmnopqrstuvwxyz\00"
@__const.main.upperConsonants = [22 x i8] c"BCDFGHJKLMNPQRSTVWXYZ\00"
@.str = [19 x i8] c"Enter the symbol: \00"
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [8 x i8] c"vowels!\00"
@.str.3 = [14 x i8] c"Upper vowels!\00"
@.str.4 = [12 x i8] c"Consonants!\00"
@.str.5 = [18 x i8] c"Upper Consonants!\00"
@.str.6 = [31 x i8] c"You entered another character!\00"
define i32 @main() {
%1 = alloca i8
%2 = alloca [6 x i8]
%3 = alloca [6 x i8]
%4 = alloca [24 x i8]
%5 = alloca [22 x i8]
%6 = getelementptr inbounds [6 x i8], [6 x i8]* %2, i64 0, i64 0
%7 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 0
%8 = getelementptr inbounds [24 x i8], [24 x i8]* %4, i64 0, i64 0
%9 = getelementptr inbounds [22 x i8], [22 x i8]* %5, i64 0, i64 0
%10 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%12 = load i8, i8* %1
%13 = call i64 @strchr(i8* %6, i8 signext %12)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %28
15: ; preds = %0
%16 = load i8, i8* %1
%17 = call i64 @strchr(i8* %7, i8 signext %16)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %28
19: ; preds = %15
%20 = load i8, i8* %1
%21 = call i64 @strchr(i8* %8, i8 signext %20)
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %28
23: ; preds = %19
%24 = load i8, i8* %1
%25 = call i64 @strchr(i8* %9, i8 signext %24)
%26 = icmp eq i64 %25, 0
%27 = select i1 %26, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0)
br label %28
28: ; preds = %23, %19, %15, %0
%29 = phi i8* [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), %0 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), %15 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), %19 ], [ %27, %23 ]
%30 = call i32 @printf(i8* dereferenceable(1) %29)
ret i32 0
}