#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 */
typedef int /*<<< orphan*/ str;

/* Variables and functions */
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char);
int /*<<< orphan*/ stdin;
int strlen(char *);
int main() {
  char vogais[6] = "aeiou";
  char str[50];
  int i, j;
  fgets(str, sizeof(str), stdin);
  for (i = 0; i < strlen(str); i++) {
    for (j = 0; j < strlen(vogais); j++) {
      if (str[i] == vogais[j]) {
        str[i] = ' ';
      }
    }
  }
  for (i = 0; i < strlen(str); i++) {
    printf("%c", str[i]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xebb(%rip),%eax
mov    %eax,-0xa(%rbp)
mov    0xeb5(%rip),%ax
mov    %ax,-0x6(%rbp)
lea    -0x40(%rbp),%rdi
mov    0x2e8a(%rip),%rax
mov    (%rax),%edx
mov    $0x32,%esi
call   1050 <fgets@plt>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
mov    %eax,-0x4c(%rbp)
lea    -0x40(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x4c(%rbp),%eax
cmp    %ecx,%eax
jge    11f9 <main+0xc9>
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%eax
mov    %eax,-0x50(%rbp)
lea    -0xa(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x50(%rbp),%eax
cmp    %ecx,%eax
jge    11e6 <main+0xb6>
movslq -0x44(%rbp),%rax
movsbl -0x40(%rbp,%rax,1),%eax
movslq -0x48(%rbp),%rcx
movsbl -0xa(%rbp,%rcx,1),%ecx
cmp    %ecx,%eax
jne    11d3 <main+0xa3>
movslq -0x44(%rbp),%rax
movb   $0x20,-0x40(%rbp,%rax,1)
jmp    11d8 <main+0xa8>
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    1194 <main+0x64>
jmp    11eb <main+0xbb>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1171 <main+0x41>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
mov    %eax,-0x54(%rbp)
lea    -0x40(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x54(%rbp),%eax
cmp    %ecx,%eax
jge    123f <main+0x10f>
movslq -0x44(%rbp),%rax
lea    0xddf(%rip),%rdi
movsbl -0x40(%rbp,%rax,1),%esi
call   1040 <printf@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1200 <main+0xd0>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x48,%rsp
movw   $0x75,0xc(%rsp)
movl   $0x6f696561,0x8(%rsp)
6f
mov    0x2e97(%rip),%rax
mov    (%rax),%edx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x32,%esi
call   1050 <fgets@plt>
mov    %rbx,%rdi
call   1030 <strlen@plt>
test   %eax,%eax
jle    11d7 <main+0xa7>
xor    %r12d,%r12d
lea    0x8(%rsp),%r15
lea    0x10(%rsp),%r14
jmp    1193 <main+0x63>
add    $0x1,%r12
mov    %r14,%rdi
call   1030 <strlen@plt>
cltq
cmp    %rax,%r12
jge    11d7 <main+0xa7>
mov    %r15,%rdi
call   1030 <strlen@plt>
test   %eax,%eax
jle    1180 <main+0x50>
xor    %ebx,%ebx
jmp    11c3 <main+0x93>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%rbx
mov    %r15,%rdi
call   1030 <strlen@plt>
cltq
cmp    %rax,%rbx
jge    1180 <main+0x50>
movzbl 0x10(%rsp,%r12,1),%eax
cmp    0x8(%rsp,%rbx,1),%al
jne    11b0 <main+0x80>
movb   $0x20,0x10(%rsp,%r12,1)
jmp    11b0 <main+0x80>
lea    0x10(%rsp),%rdi
call   1030 <strlen@plt>
test   %eax,%eax
jle    1220 <main+0xf0>
xor    %ebx,%ebx
lea    0xe18(%rip),%r14
lea    0x10(%rsp),%r15
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsbl 0x10(%rsp,%rbx,1),%esi
mov    %r14,%rdi
call   1040 <printf@plt>
add    $0x1,%rbx
mov    %r15,%rdi
call   1030 <strlen@plt>
cltq
cmp    %rax,%rbx
jl     1200 <main+0xd0>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
@__const.main.vogais = [6 x i8] c"aeiou\00"
@stdin = global i32 0
@.str = [3 x i8] c"%c\00"
define i32 @main() {
%1 = alloca [6 x i8]
%2 = alloca [50 x i8]
%3 = getelementptr inbounds [6 x i8], [6 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 0
%5 = load i32, i32* @stdin
%6 = call i32 @fgets(i8* %4, i32 50, i32 %5)
%7 = call i32 @strlen(i8* %4)
%8 = icmp sgt i32 %7, 0
br i1 %8, label %9, label %15
9: ; preds = %0, %30
%10 = phi i64 [ %31, %30 ], [ 0, %0 ]
%11 = call i32 @strlen(i8* %3)
%12 = icmp sgt i32 %11, 0
br i1 %12, label %13, label %30
13: ; preds = %9
%14 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 %10
br label %18
15: ; preds = %30, %0
%16 = call i32 @strlen(i8* %4)
%17 = icmp sgt i32 %16, 0
br i1 %17, label %35, label %44
18: ; preds = %13, %25
%19 = phi i64 [ 0, %13 ], [ %26, %25 ]
%20 = load i8, i8* %14
%21 = getelementptr inbounds [6 x i8], [6 x i8]* %1, i64 0, i64 %19
%22 = load i8, i8* %21
%23 = icmp eq i8 %20, %22
br i1 %23, label %24, label %25
24: ; preds = %18
store i8 32, i8* %14
br label %25
25: ; preds = %18, %24
%26 = add nuw nsw i64 %19, 1
%27 = call i32 @strlen(i8* %3)
%28 = sext i32 %27 to i64
%29 = icmp slt i64 %26, %28
br i1 %29, label %18, label %30
30: ; preds = %25, %9
%31 = add nuw nsw i64 %10, 1
%32 = call i32 @strlen(i8* %4)
%33 = sext i32 %32 to i64
%34 = icmp slt i64 %31, %33
br i1 %34, label %9, label %15
35: ; preds = %15, %35
%36 = phi i64 [ %40, %35 ], [ 0, %15 ]
%37 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 %36
%38 = load i8, i8* %37
%39 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %38)
%40 = add nuw nsw i64 %36, 1
%41 = call i32 @strlen(i8* %4)
%42 = sext i32 %41 to i64
%43 = icmp slt i64 %40, %42
br i1 %43, label %35, label %44
44: ; preds = %35, %15
ret i32 0
}