#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(int argc, const char *argv[]) {
  printf("This Program detect if you've pressed Sedadar charcters or "
         "not:\nPlease enter 'q' for Quit\n");
  int i, n = 100;
  char c;
  for (i = 0; i < n; i++) {
    scanf("%c", &c);
    if (c == 'a' || c == 'A' || c == 'o' || c == 'O' || c == 'e' || c == 'E') {
      printf("You've enter a sedadar key\n");
    }
    if (c == 'q') {
      printf("Time to Quit\n");
      break;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xec3(%rip),%rdi
call   1030 <printf@plt>
movl   $0x64,-0x18(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    11f7 <main+0xd7>
lea    0xef8(%rip),%rdi
lea    -0x19(%rbp),%rsi
call   1040 <scanf@plt>
movsbl -0x19(%rbp),%eax
cmp    $0x61,%eax
je     11ba <main+0x9a>
movsbl -0x19(%rbp),%eax
cmp    $0x41,%eax
je     11ba <main+0x9a>
movsbl -0x19(%rbp),%eax
cmp    $0x6f,%eax
je     11ba <main+0x9a>
movsbl -0x19(%rbp),%eax
cmp    $0x4f,%eax
je     11ba <main+0x9a>
movsbl -0x19(%rbp),%eax
cmp    $0x65,%eax
je     11ba <main+0x9a>
movsbl -0x19(%rbp),%eax
cmp    $0x45,%eax
jne    11c6 <main+0xa6>
lea    0xe9d(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x19(%rbp),%eax
cmp    $0x71,%eax
jne    11e4 <main+0xc4>
lea    0xea0(%rip),%rdi
call   1030 <printf@plt>
jmp    11f7 <main+0xd7>
jmp    11e9 <main+0xc9>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1150 <main+0x30>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
lea    0xed0(%rip),%rdi
call   1030 <puts@plt>
mov    $0x64,%ebp
lea    0xebc(%rip),%r14
lea    0xf(%rsp),%rbx
movabs $0x401100004011,%r12
lea    0xf10(%rip),%r15
nopw   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <scanf@plt>
movzbl 0xf(%rsp),%eax
lea    -0x41(%rax),%ecx
cmp    $0x2e,%cl
ja     118e <main+0x6e>
movzbl %cl,%ecx
bt     %rcx,%r12
jae    118e <main+0x6e>
mov    %r15,%rdi
call   1030 <puts@plt>
movzbl 0xf(%rsp),%eax
cmp    $0x71,%al
je     1199 <main+0x79>
add    $0xffffffff,%ebp
jne    1160 <main+0x40>
jmp    11a5 <main+0x85>
lea    0xebd(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [91 x i8] c"This Program detect if you've pressed Sedadar charcters or not:\0APlease enter 'q' for Quit\0A\00"
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [28 x i8] c"You've enter a sedadar key\0A\00"
@.str.3 = [14 x i8] c"Time to Quit\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = call i32 @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str, i64 0, i64 0))
store i32 100, i32* %7
store i32 0, i32* %6
br label %10
10: ; preds = %48, %2
%11 = load i32, i32* %6
%12 = load i32, i32* %7
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %51
14: ; preds = %10
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %8)
%16 = load i8, i8* %8
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 97
br i1 %18, label %39, label %19
19: ; preds = %14
%20 = load i8, i8* %8
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 65
br i1 %22, label %39, label %23
23: ; preds = %19
%24 = load i8, i8* %8
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 111
br i1 %26, label %39, label %27
27: ; preds = %23
%28 = load i8, i8* %8
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 79
br i1 %30, label %39, label %31
31: ; preds = %27
%32 = load i8, i8* %8
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 101
br i1 %34, label %39, label %35
35: ; preds = %31
%36 = load i8, i8* %8
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 69
br i1 %38, label %39, label %41
39: ; preds = %35, %31, %27, %23, %19, %14
%40 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0))
br label %41
41: ; preds = %39, %35
%42 = load i8, i8* %8
%43 = sext i8 %42 to i32
%44 = icmp eq i32 %43, 113
br i1 %44, label %45, label %47
45: ; preds = %41
%46 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
br label %51
47: ; preds = %41
br label %48
48: ; preds = %47
%49 = load i32, i32* %6
%50 = add nsw i32 %49, 1
store i32 %50, i32* %6
br label %10
51: ; preds = %45, %10
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%c\00"
@str = [90 x i8] c"This Program detect if you've pressed Sedadar charcters or not:\0APlease enter 'q' for Quit\00"
@str.4 = [13 x i8] c"Time to Quit\00"
@str.5 = [27 x i8] c"You've enter a sedadar key\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i8
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([90 x i8], [90 x i8]* @str, i64 0, i64 0))
br label %8
5: ; preds = %15
%6 = add nuw nsw i32 %9, 1
%7 = icmp eq i32 %6, 100
br i1 %7, label %20, label %8
8: ; preds = %2, %5
%9 = phi i32 [ 0, %2 ], [ %6, %5 ]
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%11 = load i8, i8* %3
switch i8 %11, label %15 [
i8 111, label %12
i8 101, label %12
i8 97, label %12
i8 79, label %12
i8 69, label %12
i8 65, label %12
]
12: ; preds = %8, %8, %8, %8, %8, %8
%13 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.5, i64 0, i64 0))
%14 = load i8, i8* %3
br label %15
15: ; preds = %8, %12
%16 = phi i8 [ %11, %8 ], [ %14, %12 ]
%17 = icmp eq i8 %16, 113
br i1 %17, label %18, label %5
18: ; preds = %15
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.4, i64 0, i64 0))
br label %20
20: ; preds = %5, %18
ret i32 0
}