#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*/ gets(char *);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ puts(char *);
int main(int argc, char *argv[]) {
  char buffer[81];
  int ctr;
  puts("Enter a line of text:");
  gets(buffer);
  for (ctr = 0; buffer[ctr] != '\0'; ctr++) {
    if (buffer[ctr] == 'a' || buffer[ctr] == 'e' || buffer[ctr] == 'i' ||
        buffer[ctr] == 'o' || buffer[ctr] == 'u')
      continue;
    putchar(buffer[ctr]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeb0(%rip),%rdi
call   1040 <puts@plt>
lea    -0x70(%rbp),%rdi
call   1050 <gets@plt>
movl   $0x0,-0x74(%rbp)
movslq -0x74(%rbp),%rax
movsbl -0x70(%rbp,%rax,1),%eax
cmp    $0x0,%eax
je     11f2 <main+0xc2>
movslq -0x74(%rbp),%rax
movsbl -0x70(%rbp,%rax,1),%eax
cmp    $0x61,%eax
je     11d1 <main+0xa1>
movslq -0x74(%rbp),%rax
movsbl -0x70(%rbp,%rax,1),%eax
cmp    $0x65,%eax
je     11d1 <main+0xa1>
movslq -0x74(%rbp),%rax
movsbl -0x70(%rbp,%rax,1),%eax
cmp    $0x69,%eax
je     11d1 <main+0xa1>
movslq -0x74(%rbp),%rax
movsbl -0x70(%rbp,%rax,1),%eax
cmp    $0x6f,%eax
je     11d1 <main+0xa1>
movslq -0x74(%rbp),%rax
movsbl -0x70(%rbp,%rax,1),%eax
cmp    $0x75,%eax
jne    11d6 <main+0xa6>
jmp    11e4 <main+0xb4>
movslq -0x74(%rbp),%rax
movsbl -0x70(%rbp,%rax,1),%edi
call   1030 <putchar@plt>
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
jmp    1165 <main+0x35>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x58,%rsp
lea    0xec2(%rip),%rdi
call   1040 <puts@plt>
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1050 <gets@plt>
mov    $0x104111,%r14d
jmp    1164 <main+0x34>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%rbx
movzbl (%rbx),%eax
lea    -0x61(%rax),%ecx
cmp    $0x14,%cl
ja     1178 <main+0x48>
movzbl %cl,%ecx
bt     %rcx,%r14
jb     1160 <main+0x30>
test   %al,%al
je     1186 <main+0x56>
movsbl %al,%edi
call   1030 <putchar@plt>
jmp    1160 <main+0x30>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [22 x i8] c"Enter a line of text:\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [81 x i8]
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = call i32 @puts(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%9 = getelementptr inbounds [81 x i8], [81 x i8]* %6, i64 0, i64 0
%10 = call i32 @gets(i8* %9)
store i32 0, i32* %7
br label %11
11: ; preds = %60, %2
%12 = load i32, i32* %7
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [81 x i8], [81 x i8]* %6, i64 0, i64 %13
%15 = load i8, i8* %14
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %63
18: ; preds = %11
%19 = load i32, i32* %7
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [81 x i8], [81 x i8]* %6, i64 0, i64 %20
%22 = load i8, i8* %21
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 97
br i1 %24, label %53, label %25
25: ; preds = %18
%26 = load i32, i32* %7
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [81 x i8], [81 x i8]* %6, i64 0, i64 %27
%29 = load i8, i8* %28
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 101
br i1 %31, label %53, label %32
32: ; preds = %25
%33 = load i32, i32* %7
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [81 x i8], [81 x i8]* %6, i64 0, i64 %34
%36 = load i8, i8* %35
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 105
br i1 %38, label %53, label %39
39: ; preds = %32
%40 = load i32, i32* %7
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [81 x i8], [81 x i8]* %6, i64 0, i64 %41
%43 = load i8, i8* %42
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 111
br i1 %45, label %53, label %46
46: ; preds = %39
%47 = load i32, i32* %7
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [81 x i8], [81 x i8]* %6, i64 0, i64 %48
%50 = load i8, i8* %49
%51 = sext i8 %50 to i32
%52 = icmp eq i32 %51, 117
br i1 %52, label %53, label %54
53: ; preds = %46, %39, %32, %25, %18
br label %60
54: ; preds = %46
%55 = load i32, i32* %7
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [81 x i8], [81 x i8]* %6, i64 0, i64 %56
%58 = load i8, i8* %57
%59 = call i32 @putchar(i8 signext %58)
br label %60
60: ; preds = %54, %53
%61 = load i32, i32* %7
%62 = add nsw i32 %61, 1
store i32 %62, i32* %7
br label %11
63: ; preds = %11
ret i32 0
}

LLVM IR (-O2):
@.str = [22 x i8] c"Enter a line of text:\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [81 x i8]
%4 = getelementptr inbounds [81 x i8], [81 x i8]* %3, i64 0, i64 0
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @gets(i8* %4)
br label %7
7: ; preds = %13, %2
%8 = phi i64 [ %14, %13 ], [ 0, %2 ]
%9 = getelementptr inbounds [81 x i8], [81 x i8]* %3, i64 0, i64 %8
%10 = load i8, i8* %9
switch i8 %10, label %11 [
i8 0, label %15
i8 97, label %13
i8 101, label %13
i8 105, label %13
i8 111, label %13
i8 117, label %13
]
11: ; preds = %7
%12 = call i32 @putchar(i8 signext %10)
br label %13
13: ; preds = %7, %7, %7, %7, %7, %11
%14 = add nuw i64 %8, 1
br label %7
15: ; preds = %7
ret i32 0
}