#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 *);
main() {
  char ch;
  printf("\nEnter a lower cased   			alphabet (a - z) :");
  scanf("%c", &ch);
  if (ch < 'a' || ch > 'z')
    printf("\nCharacter not a lower cased alphabet");
  else
    switch (ch) {
    case 'a':
    case 'e':
    case 'i':
    case 'o':
    case 'u':
      printf("\nCharacter is a vowel");
      break;
    case 'z':
      printf("\nLast Alphabet (z) was entered");
      break;
    default:
      printf("\nCharacter is a consonant");
      break;
    }
}


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    0xeeb(%rip),%rdi
lea    -0x5(%rbp),%rsi
call   1040 <scanf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x61,%eax
jl     1165 <main+0x45>
movsbl -0x5(%rbp),%eax
cmp    $0x7a,%eax
jle    1176 <main+0x56>
lea    0xec4(%rip),%rdi
call   1030 <printf@plt>
jmp    1213 <main+0xf3>
movsbl -0x5(%rbp),%eax
mov    %eax,-0xc(%rbp)
sub    $0x61,%eax
je     11e0 <main+0xc0>
jmp    118b <main+0x6b>
mov    -0xc(%rbp),%eax
sub    $0x65,%eax
je     11e0 <main+0xc0>
jmp    119c <main+0x7c>
mov    -0xc(%rbp),%eax
sub    $0x69,%eax
je     11e0 <main+0xc0>
jmp    11ad <main+0x8d>
mov    -0xc(%rbp),%eax
sub    $0x6f,%eax
je     11e0 <main+0xc0>
jmp    11be <main+0x9e>
mov    -0xc(%rbp),%eax
sub    $0x75,%eax
je     11e0 <main+0xc0>
jmp    11cf <main+0xaf>
mov    -0xc(%rbp),%eax
sub    $0x7a,%eax
je     11f1 <main+0xd1>
jmp    1202 <main+0xe2>
lea    0xe6f(%rip),%rdi
call   1030 <printf@plt>
jmp    120e <main+0xee>
lea    0xe74(%rip),%rdi
call   1030 <printf@plt>
jmp    120e <main+0xee>
lea    0xe83(%rip),%rdi
call   1030 <printf@plt>
jmp    1213 <main+0xf3>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <printf@plt>
lea    0xef9(%rip),%rdi
lea    0x7(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x7(%rsp),%al
lea    -0x7b(%rax),%ecx
cmp    $0xe6,%cl
jae    1153 <main+0x33>
lea    0xedf(%rip),%rdi
jmp    116e <main+0x4e>
add    $0x9f,%al
cmp    $0x19,%al
ja     1186 <main+0x66>
movzbl %al,%eax
mov    $0x104111,%ecx
bt     %rax,%rcx
jae    1177 <main+0x57>
lea    0xee8(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret
cmp    $0x19,%rax
jne    1186 <main+0x66>
lea    0xee8(%rip),%rdi
jmp    116e <main+0x4e>
lea    0xeff(%rip),%rdi
jmp    116e <main+0x4e>

LLVM IR (-O0):
@.str = [45 x i8] c"\0AEnter a lower cased \09\09\09alphabet (a - z) :\00"
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [38 x i8] c"\0ACharacter not a lower cased alphabet\00"
@.str.3 = [22 x i8] c"\0ACharacter is a vowel\00"
@.str.4 = [32 x i8] c"\0ALast Alphabet (z)\C2\A0was entered\00"
@.str.5 = [26 x i8] c"\0ACharacter is a consonant\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
store i32 0, i32* %1
%3 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 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 slt i32 %6, 97
br i1 %7, label %12, label %8
8: ; preds = %0
%9 = load i8, i8* %2
%10 = sext i8 %9 to i32
%11 = icmp sgt i32 %10, 122
br i1 %11, label %12, label %14
12: ; preds = %8, %0
%13 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0))
br label %24
14: ; preds = %8
%15 = load i8, i8* %2
%16 = sext i8 %15 to i32
switch i32 %16, label %21 [
i32 97, label %17
i32 101, label %17
i32 105, label %17
i32 111, label %17
i32 117, label %17
i32 122, label %19
]
17: ; preds = %14, %14, %14, %14, %14
%18 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
br label %23
19: ; preds = %14
%20 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
br label %23
21: ; preds = %14
%22 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
br label %23
23: ; preds = %21, %19, %17
br label %24
24: ; preds = %23, %12
%25 = load i32, i32* %1
ret i32 %25
}

LLVM IR (-O2):
@.str = [45 x i8] c"\0AEnter a lower cased \09\09\09alphabet (a - z) :\00"
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [38 x i8] c"\0ACharacter not a lower cased alphabet\00"
@.str.3 = [22 x i8] c"\0ACharacter is a vowel\00"
@.str.4 = [32 x i8] c"\0ALast Alphabet (z)\C2\A0was entered\00"
@.str.5 = [26 x i8] c"\0ACharacter is a consonant\00"
define i32 @main() {
%1 = alloca i8
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 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 = add i8 %4, -123
%6 = icmp ult i8 %5, -26
br i1 %6, label %10, label %7
7: ; preds = %0
switch i8 %4, label %9 [
i8 97, label %10
i8 101, label %10
i8 105, label %10
i8 111, label %10
i8 117, label %10
i8 122, label %8
]
8: ; preds = %7
br label %10
9: ; preds = %7
br label %10
10: ; preds = %7, %7, %7, %7, %7, %0, %8, %9
%11 = phi i8* [ getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), %8 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), %9 ], [ getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0), %0 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), %7 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), %7 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), %7 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), %7 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), %7 ]
%12 = call i32 @printf(i8* dereferenceable(1) %11)
ret i32 0
}