#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 *);
char tolower(char);
int main(void) {
  char let;
  printf("Enter any alphabet character to check vowel or not: ");
  scanf("%c", &let);
  let = tolower(let);
  switch (let) {
  case 'a':
  case 'e':
  case 'i':
  case 'o':
  case 'u':
    printf("%c is vowel letter", let);
    break;
  default:
    printf("\n%c is either consonent or wrong input", let);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee1(%rip),%rdi
lea    -0x5(%rbp),%rsi
call   1050 <scanf@plt>
movsbl -0x5(%rbp),%edi
call   1040 <tolower@plt>
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
mov    %eax,-0xc(%rbp)
sub    $0x61,%eax
je     11c2 <main+0x92>
jmp    117e <main+0x4e>
mov    -0xc(%rbp),%eax
sub    $0x65,%eax
je     11c2 <main+0x92>
jmp    118f <main+0x5f>
mov    -0xc(%rbp),%eax
sub    $0x69,%eax
je     11c2 <main+0x92>
jmp    11a0 <main+0x70>
mov    -0xc(%rbp),%eax
sub    $0x6f,%eax
je     11c2 <main+0x92>
jmp    11b1 <main+0x81>
mov    -0xc(%rbp),%eax
sub    $0x75,%eax
jne    11d9 <main+0xa9>
jmp    11c2 <main+0x92>
movsbl -0x5(%rbp),%esi
lea    0xe6b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11eb <main+0xbb>
movsbl -0x5(%rbp),%esi
lea    0xe67(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeef(%rip),%rdi
lea    0x7(%rsp),%rsi
call   1050 <scanf@plt>
movsbl 0x7(%rsp),%edi
call   1040 <tolower@plt>
mov    %al,0x7(%rsp)
movsbl %al,%esi
lea    -0x61(%rsi),%eax
ror    %eax
cmp    $0xa,%eax
ja     117d <main+0x4d>
cltq
lea    0xf00(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
jmp    1184 <main+0x54>
lea    0xec7(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [53 x i8] c"Enter any alphabet character to check vowel or not: \00"
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [19 x i8] c"%c is vowel letter\00"
@.str.3 = [39 x i8] c"\0A%c is either consonent or wrong input\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
store i32 0, i32* %1
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 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 = call signext i8 @tolower(i8 signext %5)
store i8 %6, i8* %2
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
switch i32 %8, label %13 [
i32 97, label %9
i32 101, label %9
i32 105, label %9
i32 111, label %9
i32 117, label %9
]
9: ; preds = %0, %0, %0, %0, %0
%10 = load i8, i8* %2
%11 = sext i8 %10 to i32
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 %11)
br label %17
13: ; preds = %0
%14 = load i8, i8* %2
%15 = sext i8 %14 to i32
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0), i32 %15)
br label %17
17: ; preds = %13, %9
ret i32 0
}

LLVM IR (-O2):
@.str = [53 x i8] c"Enter any alphabet character to check vowel or not: \00"
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [19 x i8] c"%c is vowel letter\00"
@.str.3 = [39 x i8] c"\0A%c is either consonent or wrong input\00"
@reltable.main = [11 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([19 x i8]* @.str.2 to i64), i64 ptrtoint ([11 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([39 x i8]* @.str.3 to i64), i64 ptrtoint ([11 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([19 x i8]* @.str.2 to i64), i64 ptrtoint ([11 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([39 x i8]* @.str.3 to i64), i64 ptrtoint ([11 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([19 x i8]* @.str.2 to i64), i64 ptrtoint ([11 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([39 x i8]* @.str.3 to i64), i64 ptrtoint ([11 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([39 x i8]* @.str.3 to i64), i64 ptrtoint ([11 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([19 x i8]* @.str.2 to i64), i64 ptrtoint ([11 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([39 x i8]* @.str.3 to i64), i64 ptrtoint ([11 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([39 x i8]* @.str.3 to i64), i64 ptrtoint ([11 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([19 x i8]* @.str.2 to i64), i64 ptrtoint ([11 x i32]* @reltable.main to i64)) to i32)]
define i32 @main() {
%1 = alloca i8
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 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
%5 = call signext i8 @tolower(i8 signext %4)
store i8 %5, i8* %1
%6 = sext i8 %5 to i32
%7 = add nsw i32 %6, -97
%8 = call i32 @llvm.fshl.i32(i32 %7, i32 %7, i32 31)
%9 = icmp ult i32 %8, 11
br i1 %9, label %10, label %14
10: ; preds = %0
%11 = sext i32 %8 to i64
%12 = shl i64 %11, 2
%13 = call i8* @llvm.load.relative.i64(i8* bitcast ([11 x i32]* @reltable.main to i8*), i64 %12)
br label %14
14: ; preds = %0, %10
%15 = phi i8* [ %13, %10 ], [ getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0), %0 ]
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %15, i32 %6)
ret i32 0
}