#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*/ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char);
int /*<<< orphan*/ stdin;
int main() {
  int i;
  char m;
  char input[300];
  fgets(input, 300, stdin);
  for (i = 0; input[i] != '\0'; i++) {
    printf("%c", input[i]);
    switch (input[i]) {
    case 'a':
    case 'e':
    case 'i':
    case 'o':
    case 'u':
    case 'A':
    case 'E':
    case 'I':
    case 'O':
    case 'U':
      m = input[i];
      if (input[i + 1] == 'p' && input[i + 2] == m)
        i = i + 2;
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x150,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x140(%rbp),%rdi
mov    0x2ea8(%rip),%rax
mov    (%rax),%edx
mov    $0x12c,%esi
call   1040 <fgets@plt>
movl   $0x0,-0x8(%rbp)
movslq -0x8(%rbp),%rax
movsbl -0x140(%rbp,%rax,1),%eax
ff
cmp    $0x0,%eax
je     12b8 <main+0x198>
movslq -0x8(%rbp),%rax
movsbl -0x140(%rbp,%rax,1),%esi
ff
lea    0xe85(%rip),%rdi
call   1030 <printf@plt>
movslq -0x8(%rbp),%rax
movsbl -0x140(%rbp,%rax,1),%eax
ff
mov    %eax,-0x144(%rbp)
sub    $0x41,%eax
je     1254 <main+0x134>
jmp    11a0 <main+0x80>
mov    -0x144(%rbp),%eax
sub    $0x45,%eax
je     1254 <main+0x134>
jmp    11b4 <main+0x94>
mov    -0x144(%rbp),%eax
sub    $0x49,%eax
je     1254 <main+0x134>
jmp    11c8 <main+0xa8>
mov    -0x144(%rbp),%eax
sub    $0x4f,%eax
je     1254 <main+0x134>
jmp    11dc <main+0xbc>
mov    -0x144(%rbp),%eax
sub    $0x55,%eax
je     1254 <main+0x134>
jmp    11f0 <main+0xd0>
mov    -0x144(%rbp),%eax
sub    $0x61,%eax
je     1254 <main+0x134>
jmp    1204 <main+0xe4>
mov    -0x144(%rbp),%eax
sub    $0x65,%eax
je     1254 <main+0x134>
jmp    1218 <main+0xf8>
mov    -0x144(%rbp),%eax
sub    $0x69,%eax
je     1254 <main+0x134>
jmp    122c <main+0x10c>
mov    -0x144(%rbp),%eax
sub    $0x6f,%eax
je     1254 <main+0x134>
jmp    1240 <main+0x120>
mov    -0x144(%rbp),%eax
sub    $0x75,%eax
jne    12a5 <main+0x185>
jmp    1254 <main+0x134>
movslq -0x8(%rbp),%rax
mov    -0x140(%rbp,%rax,1),%al
mov    %al,-0x9(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
cltq
movsbl -0x140(%rbp,%rax,1),%eax
ff
cmp    $0x70,%eax
jne    12a0 <main+0x180>
mov    -0x8(%rbp),%eax
add    $0x2,%eax
cltq
movsbl -0x140(%rbp,%rax,1),%eax
ff
movsbl -0x9(%rbp),%ecx
cmp    %ecx,%eax
jne    12a0 <main+0x180>
mov    -0x8(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x8(%rbp)
jmp    12a5 <main+0x185>
jmp    12aa <main+0x18a>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1153 <main+0x33>
mov    -0x4(%rbp),%eax
add    $0x150,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x130,%rsp
mov    0x2eb1(%rip),%rax
mov    (%rax),%edx
mov    %rsp,%r14
mov    %r14,%rdi
mov    $0x12c,%esi
call   1040 <fgets@plt>
mov    (%rsp),%al
test   %al,%al
je     11bf <main+0x9f>
xor    %r13d,%r13d
lea    0xea6(%rip),%r12
movabs $0x10411100104111,%r15
mov    %r14,%rbx
jmp    1188 <main+0x68>
nopl   0x0(%rax)
movslq %r13d,%rax
lea    0x1(%rax),%r13
lea    (%rsp,%rax,1),%rbx
add    $0x1,%rbx
movzbl 0x1(%rsp,%rax,1),%eax
test   %al,%al
je     11bf <main+0x9f>
movsbl %al,%esi
mov    %r12,%rdi
call   1030 <printf@plt>
movsbl (%rbx),%eax
lea    -0x41(%rax),%ecx
cmp    $0x34,%ecx
ja     1170 <main+0x50>
bt     %rcx,%r15
jae    1170 <main+0x50>
movslq %r13d,%rcx
cmpb   $0x70,0x1(%rcx,%r14,1)
jne    1170 <main+0x50>
lea    0x2(%rcx),%rdx
cmp    %al,0x2(%rsp,%rcx,1)
cmove  %edx,%ecx
mov    %ecx,%r13d
jmp    1170 <main+0x50>
xor    %eax,%eax
add    $0x130,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
@stdin = global i32 0
@.str = [3 x i8] c"%c\00"
define i32 @main() {
%1 = alloca [300 x i8]
%2 = getelementptr inbounds [300 x i8], [300 x i8]* %1, i64 0, i64 0
%3 = load i32, i32* @stdin
%4 = call i32 @fgets(i8* %2, i32 300, i32 %3)
%5 = load i8, i8* %2
%6 = icmp eq i8 %5, 0
br i1 %6, label %34, label %7
7: ; preds = %0, %27
%8 = phi i8 [ %32, %27 ], [ %5, %0 ]
%9 = phi i8* [ %31, %27 ], [ %2, %0 ]
%10 = phi i32 [ %29, %27 ], [ 0, %0 ]
%11 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %8)
%12 = load i8, i8* %9
%13 = sext i8 %12 to i32
switch i32 %13, label %27 [
i32 97, label %14
i32 101, label %14
i32 105, label %14
i32 111, label %14
i32 117, label %14
i32 65, label %14
i32 69, label %14
i32 73, label %14
i32 79, label %14
i32 85, label %14
]
14: ; preds = %7, %7, %7, %7, %7, %7, %7, %7, %7, %7
%15 = add nsw i32 %10, 1
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [300 x i8], [300 x i8]* %1, i64 0, i64 %16
%18 = load i8, i8* %17
%19 = icmp eq i8 %18, 112
br i1 %19, label %20, label %27
20: ; preds = %14
%21 = add nsw i32 %10, 2
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [300 x i8], [300 x i8]* %1, i64 0, i64 %22
%24 = load i8, i8* %23
%25 = icmp eq i8 %24, %12
%26 = select i1 %25, i32 %21, i32 %10
br label %27
27: ; preds = %20, %7, %14
%28 = phi i32 [ %10, %7 ], [ %10, %14 ], [ %26, %20 ]
%29 = add nsw i32 %28, 1
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [300 x i8], [300 x i8]* %1, i64 0, i64 %30
%32 = load i8, i8* %31
%33 = icmp eq i8 %32, 0
br i1 %33, label %34, label %7
34: ; preds = %27, %0
ret i32 0
}