#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 strlen(char *);
int main() {
  char nombre[20], vocales[5], nuevoNombre[20], nombreConsonante[20];
  int i, cantidad = 0, x = 0, n, a = 0;
  vocales[0] = 'a';
  vocales[1] = 'e';
  vocales[2] = 'i';
  vocales[3] = 'o';
  vocales[4] = 'u';
  scanf("%s", nombre);
  printf("Tu nombre es : %s\n", nombre);
  printf("Cantidad de caracteres: %c \n", nombre[3]);
  for (i = 0; i < strlen(nombre); i++) {
    for (n = 0; n < strlen(vocales); ++n) {
      if (nombre[i] == vocales[n]) {
        cantidad += 1;
        nuevoNombre[a] = nombre[i];
        a += 1;
        nombre[i] = ' ';
      }
    }
  }
  printf("Cantidad de vocales %d\n", cantidad);
  printf("Nombre con solo vocales :%s\n", nombre);
  printf("Nombre con consonantes es :%s \n", nombreConsonante);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x68(%rbp)
movl   $0x0,-0x6c(%rbp)
movl   $0x0,-0x74(%rbp)
movb   $0x61,-0x25(%rbp)
movb   $0x65,-0x24(%rbp)
movb   $0x69,-0x23(%rbp)
movb   $0x6f,-0x22(%rbp)
movb   $0x75,-0x21(%rbp)
lea    -0x20(%rbp),%rsi
lea    0xe8a(%rip),%rdi
call   1050 <scanf@plt>
lea    -0x20(%rbp),%rsi
lea    0xe7d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsbl -0x1d(%rbp),%esi
lea    0xe7e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
mov    %eax,-0x78(%rbp)
lea    -0x20(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x78(%rbp),%eax
cmp    %ecx,%eax
jge    1250 <main+0x120>
movl   $0x0,-0x70(%rbp)
mov    -0x70(%rbp),%eax
mov    %eax,-0x7c(%rbp)
lea    -0x25(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x7c(%rbp),%eax
cmp    %ecx,%eax
jge    123d <main+0x10d>
movslq -0x64(%rbp),%rax
movsbl -0x20(%rbp,%rax,1),%eax
movslq -0x70(%rbp),%rcx
movsbl -0x25(%rbp,%rcx,1),%ecx
cmp    %ecx,%eax
jne    122a <main+0xfa>
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
movslq -0x64(%rbp),%rax
mov    -0x20(%rbp,%rax,1),%cl
movslq -0x74(%rbp),%rax
mov    %cl,-0x40(%rbp,%rax,1)
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
movslq -0x64(%rbp),%rax
movb   $0x20,-0x20(%rbp,%rax,1)
jmp    122f <main+0xff>
mov    -0x70(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x70(%rbp)
jmp    11c9 <main+0x99>
jmp    1242 <main+0x112>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    11a6 <main+0x76>
mov    -0x68(%rbp),%esi
lea    0xdd9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x20(%rbp),%rsi
lea    0xddf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x60(%rbp),%rsi
lea    0xdea(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x50,%rsp
movl   $0x6f696561,0xb(%rsp)
6f
movb   $0x75,0xf(%rsp)
lea    0xeb0(%rip),%rdi
lea    0x10(%rsp),%r14
mov    %r14,%rsi
call   1050 <scanf@plt>
lea    0xe9f(%rip),%rdi
xor    %r12d,%r12d
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0x13(%rsp),%esi
lea    0xe99(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
call   1030 <strlen@plt>
test   %eax,%eax
jle    1209 <main+0xd9>
xor    %ebx,%ebx
lea    0xb(%rsp),%r14
lea    0x10(%rsp),%r15
xor    %r12d,%r12d
jmp    11c3 <main+0x93>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbx
mov    %r15,%rdi
call   1030 <strlen@plt>
cltq
cmp    %rax,%rbx
jge    1209 <main+0xd9>
mov    %r14,%rdi
call   1030 <strlen@plt>
test   %eax,%eax
jle    11b0 <main+0x80>
xor    %ebp,%ebp
jmp    11f3 <main+0xc3>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%rbp
mov    %r14,%rdi
call   1030 <strlen@plt>
cltq
cmp    %rax,%rbp
jge    11b0 <main+0x80>
movzbl 0x10(%rsp,%rbx,1),%eax
cmp    0xb(%rsp,%rbp,1),%al
jne    11e0 <main+0xb0>
add    $0x1,%r12d
movb   $0x20,0x10(%rsp,%rbx,1)
jmp    11e0 <main+0xb0>
lea    0xe23(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe2a(%rip),%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe34(%rip),%rdi
lea    0x30(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [19 x i8] c"Tu nombre es : %s\0A\00"
@.str.2 = [29 x i8] c"Cantidad de caracteres: %c \0A\00"
@.str.3 = [24 x i8] c"Cantidad de vocales %d\0A\00"
@.str.4 = [29 x i8] c"Nombre con solo vocales :%s\0A\00"
@.str.5 = [32 x i8] c"Nombre con consonantes es :%s \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [20 x i8]
%3 = alloca [5 x i8]
%4 = alloca [20 x i8]
%5 = alloca [20 x i8]
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %10
%11 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
store i8 97, i8* %11
%12 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 1
store i8 101, i8* %12
%13 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 2
store i8 105, i8* %13
%14 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 3
store i8 111, i8* %14
%15 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 4
store i8 117, i8* %15
%16 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%17 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %16)
%18 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* %18)
%20 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 3
%21 = load i8, i8* %20
%22 = sext i8 %21 to i32
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i32 %22)
store i32 0, i32* %6
br label %24
24: ; preds = %67, %0
%25 = load i32, i32* %6
%26 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%27 = call i32 @strlen(i8* %26)
%28 = icmp slt i32 %25, %27
br i1 %28, label %29, label %70
29: ; preds = %24
store i32 0, i32* %9
br label %30
30: ; preds = %63, %29
%31 = load i32, i32* %9
%32 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%33 = call i32 @strlen(i8* %32)
%34 = icmp slt i32 %31, %33
br i1 %34, label %35, label %66
35: ; preds = %30
%36 = load i32, i32* %6
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 %37
%39 = load i8, i8* %38
%40 = sext i8 %39 to i32
%41 = load i32, i32* %9
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 %42
%44 = load i8, i8* %43
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %40, %45
br i1 %46, label %47, label %62
47: ; preds = %35
%48 = load i32, i32* %7
%49 = add nsw i32 %48, 1
store i32 %49, i32* %7
%50 = load i32, i32* %6
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 %51
%53 = load i8, i8* %52
%54 = load i32, i32* %10
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [20 x i8], [20 x i8]* %4, i64 0, i64 %55
store i8 %53, i8* %56
%57 = load i32, i32* %10
%58 = add nsw i32 %57, 1
store i32 %58, i32* %10
%59 = load i32, i32* %6
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 %60
store i8 32, i8* %61
br label %62
62: ; preds = %47, %35
br label %63
63: ; preds = %62
%64 = load i32, i32* %9
%65 = add nsw i32 %64, 1
store i32 %65, i32* %9
br label %30
66: ; preds = %30
br label %67
67: ; preds = %66
%68 = load i32, i32* %6
%69 = add nsw i32 %68, 1
store i32 %69, i32* %6
br label %24
70: ; preds = %24
%71 = load i32, i32* %7
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), i32 %71)
%73 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), i8* %73)
%75 = getelementptr inbounds [20 x i8], [20 x i8]* %5, i64 0, i64 0
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i8* %75)
%77 = load i32, i32* %1
ret i32 %77
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
@.str.1 = [19 x i8] c"Tu nombre es : %s\0A\00"
@.str.2 = [29 x i8] c"Cantidad de caracteres: %c \0A\00"
@.str.3 = [24 x i8] c"Cantidad de vocales %d\0A\00"
@.str.4 = [29 x i8] c"Nombre con solo vocales :%s\0A\00"
@.str.5 = [32 x i8] c"Nombre con consonantes es :%s \0A\00"
define i32 @main() {
%1 = alloca [20 x i8]
%2 = alloca [5 x i8]
%3 = alloca [20 x i8]
%4 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%5 = getelementptr inbounds [5 x i8], [5 x i8]* %2, i64 0, i64 0
%6 = getelementptr inbounds [20 x i8], [20 x i8]* %3, i64 0, i64 0
store i8 97, i8* %5
%7 = getelementptr inbounds [5 x i8], [5 x i8]* %2, i64 0, i64 1
store i8 101, i8* %7
%8 = getelementptr inbounds [5 x i8], [5 x i8]* %2, i64 0, i64 2
store i8 105, i8* %8
%9 = getelementptr inbounds [5 x i8], [5 x i8]* %2, i64 0, i64 3
store i8 111, i8* %9
%10 = getelementptr inbounds [5 x i8], [5 x i8]* %2, i64 0, i64 4
store i8 117, i8* %10
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %4)
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%13 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 3
%14 = load i8, i8* %13
%15 = sext i8 %14 to i32
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i32 %15)
%17 = call i32 @strlen(i8* %4)
%18 = icmp sgt i32 %17, 0
br i1 %18, label %19, label %47
19: ; preds = %0, %41
%20 = phi i64 [ %43, %41 ], [ 0, %0 ]
%21 = phi i32 [ %42, %41 ], [ 0, %0 ]
%22 = call i32 @strlen(i8* %5)
%23 = icmp sgt i32 %22, 0
br i1 %23, label %24, label %41
24: ; preds = %19
%25 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 %20
br label %26
26: ; preds = %24, %35
%27 = phi i64 [ 0, %24 ], [ %37, %35 ]
%28 = phi i32 [ %21, %24 ], [ %36, %35 ]
%29 = load i8, i8* %25
%30 = getelementptr inbounds [5 x i8], [5 x i8]* %2, i64 0, i64 %27
%31 = load i8, i8* %30
%32 = icmp eq i8 %29, %31
br i1 %32, label %33, label %35
33: ; preds = %26
%34 = add nsw i32 %28, 1
store i8 32, i8* %25
br label %35
35: ; preds = %26, %33
%36 = phi i32 [ %34, %33 ], [ %28, %26 ]
%37 = add nuw nsw i64 %27, 1
%38 = call i32 @strlen(i8* %5)
%39 = sext i32 %38 to i64
%40 = icmp slt i64 %37, %39
br i1 %40, label %26, label %41
41: ; preds = %35, %19
%42 = phi i32 [ %21, %19 ], [ %36, %35 ]
%43 = add nuw nsw i64 %20, 1
%44 = call i32 @strlen(i8* %4)
%45 = sext i32 %44 to i64
%46 = icmp slt i64 %43, %45
br i1 %46, label %19, label %47
47: ; preds = %41, %0
%48 = phi i32 [ 0, %0 ], [ %42, %41 ]
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), i32 %48)
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), i8* %4)
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i8* %6)
ret i32 0
}