#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[]) {
  if (argc != 2) {
    printf("ERROR: You need one argument.\n");
    return 1;
  }
  int i = 0;
  for (i = 0; argv[1][i] != '\0'; i++) {
    char letter = argv[1][i];
    switch (letter) {
    case 'a':
    case 'A':
      printf("%d: 'A'\n", i);
    case 'e':
    case 'E':
      printf("%d: 'E'\n", i);
    case 'i':
    case 'I':
      printf("%d: 'I'\n", i);
    case 'o':
    case 'O':
      printf("%d: 'O'\n", i);
    case 'u':
    case 'U':
      printf("%d: 'U'\n", i);
    case 'y':
    case 'Y':
      if (i > 2) {
        printf("%d: 'Y'\n", i);
      }
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     114a <main+0x3a>
lea    0xfad(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    123c <main+0x12c>
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     1235 <main+0x125>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0x15(%rbp)
movsbl -0x15(%rbp),%eax
add    $0xffffffbf,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0x38,%eax
ja     1222 <main+0x112>
mov    -0x20(%rbp),%rax
lea    0xe5c(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x14(%rbp),%esi
lea    0xf4c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xf44(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xf3c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xf34(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xf2c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x2,-0x14(%rbp)
jle    121d <main+0x10d>
mov    -0x14(%rbp),%esi
lea    0xf1a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1222 <main+0x112>
jmp    1227 <main+0x117>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1158 <main+0x48>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%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
jne    138f <main+0x26f>
mov    %rsi,%rbx
mov    0x8(%rsi),%rax
movsbl (%rax),%ecx
xor    %ebp,%ebp
test   %ecx,%ecx
je     13a0 <main+0x280>
add    $0xffffffbf,%ecx
ror    %ecx
cmp    $0x1c,%ecx
ja     11b6 <main+0x96>
lea    0xea7(%rip),%rdx
movslq (%rdx,%rcx,4),%rcx
add    %rdx,%rcx
jmp    *%rcx
lea    0x1067(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1060(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1059(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1052(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x104b(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rbx),%rax
movsbl 0x1(%rax),%ecx
test   %ecx,%ecx
je     13a0 <main+0x280>
add    $0xffffffbf,%ecx
ror    %ecx
cmp    $0x1c,%ecx
ja     123f <main+0x11f>
lea    0xea1(%rip),%rdx
movslq (%rdx,%rcx,4),%rcx
add    %rdx,%rcx
jmp    *%rcx
lea    0xfed(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfe3(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfd9(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfcf(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfc5(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rbx),%rax
movsbl 0x2(%rax),%ecx
test   %ecx,%ecx
je     13a0 <main+0x280>
add    $0xffffffbf,%ecx
ror    %ecx
cmp    $0x1c,%ecx
ja     12c8 <main+0x1a8>
lea    0xe8c(%rip),%rdx
movslq (%rdx,%rcx,4),%rcx
add    %rdx,%rcx
jmp    *%rcx
lea    0xf64(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf5a(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf50(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf46(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf3c(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rbx),%rax
mov    0x3(%rax),%al
test   %al,%al
je     13a0 <main+0x280>
mov    $0x4,%r15d
lea    0xe7c(%rip),%r12
lea    0xf04(%rip),%r13
lea    0xf06(%rip),%rbp
lea    0xf08(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nop
movsbl %al,%eax
add    $0xffffffbf,%eax
ror    %eax
cmp    $0x1c,%eax
ja     1376 <main+0x256>
movslq (%r12,%rax,4),%rax
add    %r12,%rax
jmp    *%rax
lea    -0x1(%r15),%esi
lea    0xeaf(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    -0x1(%r15),%esi
lea    0xea6(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    -0x1(%r15),%esi
lea    0xe9d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    -0x1(%r15),%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    -0x1(%r15),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    -0x1(%r15),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rbx),%rax
movzbl (%rax,%r15,1),%eax
add    $0x1,%r15
test   %al,%al
jne    1300 <main+0x1e0>
xor    %ebp,%ebp
jmp    13a0 <main+0x280>
lea    0xe70(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str.1 = [9 x i8] c"%d: 'A'\0A\00"
@.str.2 = [9 x i8] c"%d: 'E'\0A\00"
@.str.3 = [9 x i8] c"%d: 'I'\0A\00"
@.str.4 = [9 x i8] c"%d: 'O'\0A\00"
@.str.5 = [9 x i8] c"%d: 'U'\0A\00"
@.str.6 = [9 x i8] c"%d: 'Y'\0A\00"
@str = [30 x i8] c"ERROR: You need one argument.\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 2
br i1 %3, label %4, label %72
4: ; preds = %2
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = load i8, i8* %6
%8 = icmp eq i8 %7, 0
br i1 %8, label %104, label %9
9: ; preds = %4
%10 = sext i8 %7 to i32
%11 = add nsw i32 %10, -65
%12 = tail call i32 @llvm.fshl.i32(i32 %11, i32 %11, i32 31)
switch i32 %12, label %25 [
i32 16, label %13
i32 0, label %13
i32 18, label %15
i32 2, label %15
i32 20, label %17
i32 4, label %17
i32 23, label %19
i32 7, label %19
i32 26, label %21
i32 10, label %21
i32 28, label %23
i32 12, label %23
]
13: ; preds = %9, %9
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 0)
br label %15
15: ; preds = %13, %9, %9
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 0)
br label %17
17: ; preds = %15, %9, %9
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 0)
br label %19
19: ; preds = %17, %9, %9
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 0)
br label %21
21: ; preds = %19, %9, %9
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 0)
br label %23
23: ; preds = %9, %9, %21
%24 = load i8*, i8** %5
br label %25
25: ; preds = %23, %9
%26 = phi i8* [ %24, %23 ], [ %6, %9 ]
%27 = getelementptr inbounds i8, i8* %26, i64 1
%28 = load i8, i8* %27
%29 = icmp eq i8 %28, 0
br i1 %29, label %104, label %30
30: ; preds = %25
%31 = sext i8 %28 to i32
%32 = add nsw i32 %31, -65
%33 = tail call i32 @llvm.fshl.i32(i32 %32, i32 %32, i32 31)
switch i32 %33, label %46 [
i32 16, label %34
i32 0, label %34
i32 18, label %36
i32 2, label %36
i32 20, label %38
i32 4, label %38
i32 23, label %40
i32 7, label %40
i32 26, label %42
i32 10, label %42
i32 28, label %44
i32 12, label %44
]
34: ; preds = %30, %30
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 1)
br label %36
36: ; preds = %34, %30, %30
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 1)
br label %38
38: ; preds = %36, %30, %30
%39 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 1)
br label %40
40: ; preds = %38, %30, %30
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 1)
br label %42
42: ; preds = %40, %30, %30
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 1)
br label %44
44: ; preds = %30, %30, %42
%45 = load i8*, i8** %5
br label %46
46: ; preds = %44, %30
%47 = phi i8* [ %45, %44 ], [ %26, %30 ]
%48 = getelementptr inbounds i8, i8* %47, i64 2
%49 = load i8, i8* %48
%50 = icmp eq i8 %49, 0
br i1 %50, label %104, label %51
51: ; preds = %46
%52 = sext i8 %49 to i32
%53 = add nsw i32 %52, -65
%54 = tail call i32 @llvm.fshl.i32(i32 %53, i32 %53, i32 31)
switch i32 %54, label %67 [
i32 16, label %55
i32 0, label %55
i32 18, label %57
i32 2, label %57
i32 20, label %59
i32 4, label %59
i32 23, label %61
i32 7, label %61
i32 26, label %63
i32 10, label %63
i32 28, label %65
i32 12, label %65
]
55: ; preds = %51, %51
%56 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 2)
br label %57
57: ; preds = %55, %51, %51
%58 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 2)
br label %59
59: ; preds = %57, %51, %51
%60 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 2)
br label %61
61: ; preds = %59, %51, %51
%62 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 2)
br label %63
63: ; preds = %61, %51, %51
%64 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 2)
br label %65
65: ; preds = %51, %51, %63
%66 = load i8*, i8** %5
br label %67
67: ; preds = %65, %51
%68 = phi i8* [ %66, %65 ], [ %47, %51 ]
%69 = getelementptr inbounds i8, i8* %68, i64 3
%70 = load i8, i8* %69
%71 = icmp eq i8 %70, 0
br i1 %71, label %104, label %74
72: ; preds = %2
%73 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str, i64 0, i64 0))
br label %104
74: ; preds = %67, %98
%75 = phi i64 [ %99, %98 ], [ 3, %67 ]
%76 = phi i8 [ %102, %98 ], [ %70, %67 ]
%77 = sext i8 %76 to i32
%78 = add nsw i32 %77, -65
%79 = tail call i32 @llvm.fshl.i32(i32 %78, i32 %78, i32 31)
switch i32 %79, label %98 [
i32 16, label %80
i32 0, label %80
i32 18, label %83
i32 2, label %83
i32 20, label %86
i32 4, label %86
i32 23, label %89
i32 7, label %89
i32 26, label %92
i32 10, label %92
i32 28, label %95
i32 12, label %95
]
80: ; preds = %74, %74
%81 = trunc i64 %75 to i32
%82 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 %81)
br label %83
83: ; preds = %74, %74, %80
%84 = trunc i64 %75 to i32
%85 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 %84)
br label %86
86: ; preds = %74, %74, %83
%87 = trunc i64 %75 to i32
%88 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 %87)
br label %89
89: ; preds = %74, %74, %86
%90 = trunc i64 %75 to i32
%91 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 %90)
br label %92
92: ; preds = %74, %74, %89
%93 = trunc i64 %75 to i32
%94 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 %93)
br label %95
95: ; preds = %92, %74, %74
%96 = trunc i64 %75 to i32
%97 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i32 %96)
br label %98
98: ; preds = %95, %74
%99 = add nuw i64 %75, 1
%100 = load i8*, i8** %5
%101 = getelementptr inbounds i8, i8* %100, i64 %99
%102 = load i8, i8* %101
%103 = icmp eq i8 %102, 0
br i1 %103, label %104, label %74
104: ; preds = %98, %25, %46, %67, %4, %72
%105 = phi i32 [ 1, %72 ], [ 0, %4 ], [ 0, %67 ], [ 0, %46 ], [ 0, %25 ], [ 0, %98 ]
ret i32 %105
}