#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 main(int argc, char *argv[]) {
  int i = 0;
  int a = 1;
  for (; a < argc; a++) {
    for (char literal = '\0'; literal = argv[a][i], literal != '\0'; i++) {
      if (literal < 97) {
        literal = literal + 32;
      }
      switch (literal) {
      case 'a':
        printf("%d: A\n", i);
        break;
      case 'e':
        printf("%d: E\n", i);
        break;
      case 'i':
        printf("%d: I\n", i);
        break;
      case 'o':
        printf("%d: O\n", i);
        break;
      case 'u':
        printf("%d: U\n", i);
        break;
      default:
        printf("%d: %c is not a vowel\n", i, literal - 32);
      }
    }
    i = 0;
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1264 <main+0x154>
movb   $0x0,-0x19(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0x19(%rbp)
movsbl -0x19(%rbp),%eax
cmp    $0x0,%eax
je     1241 <main+0x131>
movsbl -0x19(%rbp),%eax
cmp    $0x61,%eax
jge    117e <main+0x6e>
movsbl -0x19(%rbp),%eax
add    $0x20,%eax
mov    %al,-0x19(%rbp)
movsbl -0x19(%rbp),%eax
add    $0xffffff9f,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0x14,%eax
ja     1216 <main+0x106>
mov    -0x28(%rbp),%rax
lea    0xe61(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x14(%rbp),%esi
lea    0xea2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    122e <main+0x11e>
mov    -0x14(%rbp),%esi
lea    0xe93(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    122e <main+0x11e>
mov    -0x14(%rbp),%esi
lea    0xe84(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    122e <main+0x11e>
mov    -0x14(%rbp),%esi
lea    0xe75(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    122e <main+0x11e>
mov    -0x14(%rbp),%esi
lea    0xe66(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    122e <main+0x11e>
mov    -0x14(%rbp),%esi
movsbl -0x19(%rbp),%edx
sub    $0x20,%edx
lea    0xe50(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1233 <main+0x123>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1144 <main+0x34>
movl   $0x0,-0x14(%rbp)
lea    0xe0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1134 <main+0x24>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
cmp    $0x2,%edi
jl     1203 <main+0xe3>
mov    %rsi,%rbx
mov    %edi,%eax
mov    %rax,(%rsp)
mov    $0x1,%r12d
lea    0xeb6(%rip),%r13
lea    0xef0(%rip),%rbp
lea    0xef0(%rip),%r14
jmp    1178 <main+0x58>
nopw   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r12
cmp    (%rsp),%r12
je     1203 <main+0xe3>
mov    (%rbx,%r12,8),%rax
mov    (%rax),%al
test   %al,%al
je     1160 <main+0x40>
xor    %r15d,%r15d
jmp    11ac <main+0x8c>
lea    0xe9e(%rip),%rdi
xchg   %ax,%ax
mov    %r15d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rbx,%r12,8),%rax
movzbl 0x1(%rax,%r15,1),%eax
add    $0x1,%r15
test   %al,%al
je     1160 <main+0x40>
lea    0x20(%rax),%ecx
cmp    $0x61,%al
movzbl %al,%eax
movzbl %cl,%ecx
cmovge %eax,%ecx
movsbl %cl,%edx
lea    -0x61(%rdx),%eax
ror    %eax
cmp    $0xa,%eax
ja     11da <main+0xba>
movslq 0x0(%r13,%rax,4),%rax
add    %r13,%rax
jmp    *%rax
lea    0xe5b(%rip),%rdi
jmp    1190 <main+0x70>
add    $0xffffffe0,%edx
lea    0xe6b(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    119a <main+0x7a>
lea    0xe43(%rip),%rdi
jmp    1190 <main+0x70>
mov    %rbp,%rdi
jmp    1190 <main+0x70>
mov    %r14,%rdi
jmp    1190 <main+0x70>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%d: A\0A\00"
@.str.1 = [7 x i8] c"%d: E\0A\00"
@.str.2 = [7 x i8] c"%d: I\0A\00"
@.str.3 = [7 x i8] c"%d: O\0A\00"
@.str.4 = [7 x i8] c"%d: U\0A\00"
@.str.5 = [23 x i8] c"%d: %c is not a vowel\0A\00"
@.str.6 = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i32 1, i32* %7
br label %9
9: ; preds = %66, %2
%10 = load i32, i32* %7
%11 = load i32, i32* %4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %69
13: ; preds = %9
store i8 0, i8* %8
br label %14
14: ; preds = %61, %13
%15 = load i8**, i8*** %5
%16 = load i32, i32* %7
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8*, i8** %15, i64 %17
%19 = load i8*, i8** %18
%20 = load i32, i32* %6
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, i8* %19, i64 %21
%23 = load i8, i8* %22
store i8 %23, i8* %8
%24 = load i8, i8* %8
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %64
27: ; preds = %14
%28 = load i8, i8* %8
%29 = sext i8 %28 to i32
%30 = icmp slt i32 %29, 97
br i1 %30, label %31, label %36
31: ; preds = %27
%32 = load i8, i8* %8
%33 = sext i8 %32 to i32
%34 = add nsw i32 %33, 32
%35 = trunc i32 %34 to i8
store i8 %35, i8* %8
br label %36
36: ; preds = %31, %27
%37 = load i8, i8* %8
%38 = sext i8 %37 to i32
switch i32 %38, label %54 [
i32 97, label %39
i32 101, label %42
i32 105, label %45
i32 111, label %48
i32 117, label %51
]
39: ; preds = %36
%40 = load i32, i32* %6
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %40)
br label %60
42: ; preds = %36
%43 = load i32, i32* %6
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %43)
br label %60
45: ; preds = %36
%46 = load i32, i32* %6
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %46)
br label %60
48: ; preds = %36
%49 = load i32, i32* %6
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 %49)
br label %60
51: ; preds = %36
%52 = load i32, i32* %6
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %52)
br label %60
54: ; preds = %36
%55 = load i32, i32* %6
%56 = load i8, i8* %8
%57 = sext i8 %56 to i32
%58 = sub nsw i32 %57, 32
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %55, i32 %58)
br label %60
60: ; preds = %54, %51, %48, %45, %42, %39
br label %61
61: ; preds = %60
%62 = load i32, i32* %6
%63 = add nsw i32 %62, 1
store i32 %63, i32* %6
br label %14
64: ; preds = %14
store i32 0, i32* %6
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
br label %66
66: ; preds = %64
%67 = load i32, i32* %7
%68 = add nsw i32 %67, 1
store i32 %68, i32* %7
br label %9
69: ; preds = %9
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"%d: A\0A\00"
@.str.1 = [7 x i8] c"%d: E\0A\00"
@.str.2 = [7 x i8] c"%d: I\0A\00"
@.str.3 = [7 x i8] c"%d: O\0A\00"
@.str.4 = [7 x i8] c"%d: U\0A\00"
@.str.5 = [23 x i8] c"%d: %c is not a vowel\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp sgt i32 %0, 1
br i1 %3, label %4, label %50
4: ; preds = %2
%5 = zext i32 %0 to i64
br label %6
6: ; preds = %4, %12
%7 = phi i64 [ 1, %4 ], [ %14, %12 ]
%8 = getelementptr inbounds i8*, i8** %1, i64 %7
%9 = load i8*, i8** %8
%10 = load i8, i8* %9
%11 = icmp eq i8 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %44, %6
%13 = tail call i32 @putchar(i32 10)
%14 = add nuw nsw i64 %7, 1
%15 = icmp eq i64 %14, %5
br i1 %15, label %50, label %6
16: ; preds = %6, %44
%17 = phi i64 [ %45, %44 ], [ 0, %6 ]
%18 = phi i8 [ %48, %44 ], [ %10, %6 ]
%19 = icmp slt i8 %18, 97
%20 = add i8 %18, 32
%21 = select i1 %19, i8 %20, i8 %18
%22 = sext i8 %21 to i32
%23 = add nsw i32 %22, -97
%24 = tail call i32 @llvm.fshl.i32(i32 %23, i32 %23, i32 31)
switch i32 %24, label %40 [
i32 0, label %25
i32 2, label %28
i32 4, label %31
i32 7, label %34
i32 10, label %37
]
25: ; preds = %16
%26 = trunc i64 %17 to i32
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %26)
br label %44
28: ; preds = %16
%29 = trunc i64 %17 to i32
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %29)
br label %44
31: ; preds = %16
%32 = trunc i64 %17 to i32
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %32)
br label %44
34: ; preds = %16
%35 = trunc i64 %17 to i32
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 %35)
br label %44
37: ; preds = %16
%38 = trunc i64 %17 to i32
%39 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %38)
br label %44
40: ; preds = %16
%41 = add nsw i32 %22, -32
%42 = trunc i64 %17 to i32
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %42, i32 %41)
br label %44
44: ; preds = %25, %28, %31, %34, %37, %40
%45 = add nuw i64 %17, 1
%46 = load i8*, i8** %8
%47 = getelementptr inbounds i8, i8* %46, i64 %45
%48 = load i8, i8* %47
%49 = icmp eq i8 %48, 0
br i1 %49, label %12, label %16
50: ; preds = %12, %2
ret i32 0
}