#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*/ CountYuanYin(char *, int *);
int /*<<< orphan*/ gets(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int n;
  int i, j;
  char line[256];
  int cnt[5] = {0};
  scanf("%d\n", &n);
  for (i = 0; i < n; ++i) {
    gets(line);
    CountYuanYin(line, cnt);
    printf("a:%d\n", cnt[0]);
    printf("e:%d\n", cnt[1]);
    printf("i:%d\n", cnt[2]);
    printf("o:%d\n", cnt[3]);
    printf("u:%d\n", cnt[4]);
    if (i != n - 1)
      printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x130,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x130(%rbp),%rdi
xor    %esi,%esi
mov    $0x14,%edx
call   1040 <memset@plt>
lea    0xe86(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1060 <scanf@plt>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    124d <main+0xfd>
lea    -0x110(%rbp),%rdi
call   1050 <gets@plt>
lea    -0x110(%rbp),%rdi
lea    -0x130(%rbp),%rsi
call   1070 <CountYuanYin@plt>
mov    -0x130(%rbp),%esi
lea    0xe3c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x12c(%rbp),%esi
lea    0xe2e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x128(%rbp),%esi
lea    0xe20(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x124(%rbp),%esi
lea    0xe12(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x120(%rbp),%esi
lea    0xe04(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
je     123a <main+0xea>
lea    0xdd1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    123f <main+0xef>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    118c <main+0x3c>
xor    %eax,%eax
add    $0x130,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x138,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x10(%rsp)
movl   $0x0,0x20(%rsp)
lea    0xe8a(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1060 <scanf@plt>
cmpl   $0x0,0xc(%rsp)
jle    1247 <main+0xf7>
lea    0x30(%rsp),%rbx
lea    0xe6d(%rip),%r12
lea    0xe6c(%rip),%r13
lea    0xe6b(%rip),%rbp
lea    0xe6a(%rip),%r14
xor    %r15d,%r15d
jmp    11c9 <main+0x79>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%r15d
cmp    %eax,%r15d
jge    1247 <main+0xf7>
mov    %rbx,%rdi
call   1050 <gets@plt>
mov    %rbx,%rdi
lea    0x10(%rsp),%rsi
call   1070 <CountYuanYin@plt>
mov    0x10(%rsp),%esi
lea    0xe17(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x14(%rsp),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rsp),%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x1c(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rsp),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%eax
lea    -0x1(%rax),%ecx
cmp    %ecx,%r15d
je     11c0 <main+0x70>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0xc(%rsp),%eax
jmp    11c0 <main+0x70>
xor    %eax,%eax
add    $0x138,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%d\0A\00"
@.str.1 = [6 x i8] c"a:%d\0A\00"
@.str.2 = [6 x i8] c"e:%d\0A\00"
@.str.3 = [6 x i8] c"i:%d\0A\00"
@.str.4 = [6 x i8] c"o:%d\0A\00"
@.str.5 = [6 x i8] c"u:%d\0A\00"
@.str.6 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca [256 x i8]
%6 = alloca [5 x i32]
store i32 0, i32* %1
%7 = bitcast [5 x i32]* %6 to i8*
%8 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32* %2)
store i32 0, i32* %3
br label %9
9: ; preds = %41, %0
%10 = load i32, i32* %3
%11 = load i32, i32* %2
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %44
13: ; preds = %9
%14 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%15 = call i32 @gets(i8* %14)
%16 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%17 = getelementptr inbounds [5 x i32], [5 x i32]* %6, i64 0, i64 0
%18 = call i32 @CountYuanYin(i8* %16, i32* %17)
%19 = getelementptr inbounds [5 x i32], [5 x i32]* %6, i64 0, i64 0
%20 = load i32, i32* %19
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %20)
%22 = getelementptr inbounds [5 x i32], [5 x i32]* %6, i64 0, i64 1
%23 = load i32, i32* %22
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 %23)
%25 = getelementptr inbounds [5 x i32], [5 x i32]* %6, i64 0, i64 2
%26 = load i32, i32* %25
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %26)
%28 = getelementptr inbounds [5 x i32], [5 x i32]* %6, i64 0, i64 3
%29 = load i32, i32* %28
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 %29)
%31 = getelementptr inbounds [5 x i32], [5 x i32]* %6, i64 0, i64 4
%32 = load i32, i32* %31
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 %32)
%34 = load i32, i32* %3
%35 = load i32, i32* %2
%36 = sub nsw i32 %35, 1
%37 = icmp ne i32 %34, %36
br i1 %37, label %38, label %40
38: ; preds = %13
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
br label %40
40: ; preds = %38, %13
br label %41
41: ; preds = %40
%42 = load i32, i32* %3
%43 = add nsw i32 %42, 1
store i32 %43, i32* %3
br label %9
44: ; preds = %9
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
@.str.1 = [6 x i8] c"a:%d\0A\00"
@.str.2 = [6 x i8] c"e:%d\0A\00"
@.str.3 = [6 x i8] c"i:%d\0A\00"
@.str.4 = [6 x i8] c"o:%d\0A\00"
@.str.5 = [6 x i8] c"u:%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [256 x i8]
%3 = alloca [5 x i32]
%4 = bitcast i32* %1 to i8*
%5 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%6 = bitcast [5 x i32]* %3 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32* %1)
%8 = load i32, i32* %1
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %40
10: ; preds = %0
%11 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 0
%12 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 1
%13 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 2
%14 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 3
%15 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 4
br label %16
16: ; preds = %10, %36
%17 = phi i32 [ 0, %10 ], [ %38, %36 ]
%18 = call i32 @gets(i8* %5)
%19 = call i32 @CountYuanYin(i8* %5, i32* %11)
%20 = load i32, i32* %11
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %20)
%22 = load i32, i32* %12
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 %22)
%24 = load i32, i32* %13
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %24)
%26 = load i32, i32* %14
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 %26)
%28 = load i32, i32* %15
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 %28)
%30 = load i32, i32* %1
%31 = add nsw i32 %30, -1
%32 = icmp eq i32 %17, %31
br i1 %32, label %36, label %33
33: ; preds = %16
%34 = call i32 @putchar(i32 10)
%35 = load i32, i32* %1
br label %36
36: ; preds = %16, %33
%37 = phi i32 [ %30, %16 ], [ %35, %33 ]
%38 = add nuw nsw i32 %17, 1
%39 = icmp slt i32 %38, %37
br i1 %39, label %16, label %40
40: ; preds = %36, %0
ret i32 0
}