#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 *);
int main() {
  char ch;
  printf("Enter any English Alphabet: ");
  scanf("%c", &ch);
  if (ch == 'a' || ch == 'A' || ch == 'e' || ch == 'E' || ch == 'i' ||
      ch == 'I' || ch == 'o' || ch == 'O' || ch == 'u' || ch == 'U') {
    printf("\nThe letter is a Vowel.\n");
  } else {
    printf("\nThe letter is a Consonant.\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
call   1030 <printf@plt>
lea    0xedb(%rip),%rdi
lea    -0x5(%rbp),%rsi
call   1040 <scanf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x61,%eax
je     11cd <main+0xad>
movsbl -0x5(%rbp),%eax
cmp    $0x41,%eax
je     11cd <main+0xad>
movsbl -0x5(%rbp),%eax
cmp    $0x65,%eax
je     11cd <main+0xad>
movsbl -0x5(%rbp),%eax
cmp    $0x45,%eax
je     11cd <main+0xad>
movsbl -0x5(%rbp),%eax
cmp    $0x69,%eax
je     11cd <main+0xad>
movsbl -0x5(%rbp),%eax
cmp    $0x49,%eax
je     11cd <main+0xad>
movsbl -0x5(%rbp),%eax
cmp    $0x6f,%eax
je     11cd <main+0xad>
movsbl -0x5(%rbp),%eax
cmp    $0x4f,%eax
je     11cd <main+0xad>
movsbl -0x5(%rbp),%eax
cmp    $0x75,%eax
je     11cd <main+0xad>
movsbl -0x5(%rbp),%eax
cmp    $0x55,%eax
jne    11de <main+0xbe>
lea    0xe4c(%rip),%rdi
call   1030 <printf@plt>
jmp    11ea <main+0xca>
lea    0xe54(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
call   1040 <printf@plt>
lea    0xed9(%rip),%rdi
lea    0x7(%rsp),%rsi
call   1050 <scanf@plt>
mov    0x7(%rsp),%al
add    $0xbf,%al
cmp    $0x34,%al
ja     117b <main+0x4b>
movzbl %al,%eax
movabs $0x10411100104111,%rcx
bt     %rax,%rcx
jae    117b <main+0x4b>
lea    0xeca(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret
lea    0xe9e(%rip),%rdi
jmp    1172 <main+0x42>

LLVM IR (-O0):
@.str = [29 x i8] c"Enter any English Alphabet: \00"
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [25 x i8] c"\0AThe letter is a Vowel.\0A\00"
@.str.3 = [29 x i8] c"\0AThe letter is a Consonant.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
store i32 0, i32* %1
%3 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%5 = load i8, i8* %2
%6 = sext i8 %5 to i32
%7 = icmp eq i32 %6, 97
br i1 %7, label %44, label %8
8: ; preds = %0
%9 = load i8, i8* %2
%10 = sext i8 %9 to i32
%11 = icmp eq i32 %10, 65
br i1 %11, label %44, label %12
12: ; preds = %8
%13 = load i8, i8* %2
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 101
br i1 %15, label %44, label %16
16: ; preds = %12
%17 = load i8, i8* %2
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 69
br i1 %19, label %44, label %20
20: ; preds = %16
%21 = load i8, i8* %2
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 105
br i1 %23, label %44, label %24
24: ; preds = %20
%25 = load i8, i8* %2
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 73
br i1 %27, label %44, label %28
28: ; preds = %24
%29 = load i8, i8* %2
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 111
br i1 %31, label %44, label %32
32: ; preds = %28
%33 = load i8, i8* %2
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 79
br i1 %35, label %44, label %36
36: ; preds = %32
%37 = load i8, i8* %2
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %38, 117
br i1 %39, label %44, label %40
40: ; preds = %36
%41 = load i8, i8* %2
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %42, 85
br i1 %43, label %44, label %46
44: ; preds = %40, %36, %32, %28, %24, %20, %16, %12, %8, %0
%45 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
br label %48
46: ; preds = %40
%47 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
br label %48
48: ; preds = %46, %44
ret i32 0
}

LLVM IR (-O2):
@.str = [29 x i8] c"Enter any English Alphabet: \00"
@.str.1 = [3 x i8] c"%c\00"
@str = [28 x i8] c"\0AThe letter is a Consonant.\00"
@str.4 = [24 x i8] c"\0AThe letter is a Vowel.\00"
define i32 @main() {
%1 = alloca i8
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%4 = load i8, i8* %1
switch i8 %4, label %5 [
i8 117, label %6
i8 111, label %6
i8 105, label %6
i8 101, label %6
i8 97, label %6
i8 85, label %6
i8 79, label %6
i8 73, label %6
i8 69, label %6
i8 65, label %6
]
5: ; preds = %0
br label %6
6: ; preds = %0, %0, %0, %0, %0, %0, %0, %0, %0, %0, %5
%7 = phi i8* [ getelementptr inbounds ([28 x i8], [28 x i8]* @str, i64 0, i64 0), %5 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @str.4, i64 0, i64 0), %0 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @str.4, i64 0, i64 0), %0 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @str.4, i64 0, i64 0), %0 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @str.4, i64 0, i64 0), %0 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @str.4, i64 0, i64 0), %0 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @str.4, i64 0, i64 0), %0 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @str.4, i64 0, i64 0), %0 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @str.4, i64 0, i64 0), %0 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @str.4, i64 0, i64 0), %0 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @str.4, i64 0, i64 0), %0 ]
%8 = call i32 @puts(i8* dereferenceable(1) %7)
ret i32 0
}