#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 at least one argument. \n");
    return 1;
  }
  int j;
  for (j = 1; j < argc; j++) {
    int i = 0;
    char letter;
    for (i = 0, letter = argv[j][i]; argv[j][i] != '\0';
         i++, letter = argv[j][i]) {
      if (letter >= 'A' && letter <= 'Z') {
        letter = 'a' + (letter - 'A');
      }
      if ('a' == letter) {
        printf("%d: 'a'\n", i);
      } else if ('e' == letter) {
        printf("%d: 'e'\n", i);
      } else if ('i' == letter) {
        printf("%d: 'i'\n", i);
      } else if ('o' == letter) {
        printf("%d: 'o'\n", i);
      } else if ('u' == letter) {
        printf("%d: 'u'\n", i);
      } else if ('y' == letter) {
        if (i > 2) {
          printf("%d: 'y'\n", i);
        } else {
          printf("%d: %c is not a vowel\n", i, letter);
        }
      } else {
        printf("%d: %c is not a vowel\n", i, letter);
      }
    }
  }
  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)
jge    114a <main+0x3a>
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1344 <main+0x234>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    133d <main+0x22d>
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0x19(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     132a <main+0x21a>
movsbl -0x19(%rbp),%eax
cmp    $0x41,%eax
jl     11c5 <main+0xb5>
movsbl -0x19(%rbp),%eax
cmp    $0x5a,%eax
jg     11c5 <main+0xb5>
movsbl -0x19(%rbp),%eax
sub    $0x41,%eax
add    $0x61,%eax
mov    %al,-0x19(%rbp)
movsbl -0x19(%rbp),%ecx
mov    $0x61,%eax
cmp    %ecx,%eax
jne    11ec <main+0xdc>
mov    -0x18(%rbp),%esi
lea    0xe49(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1301 <main+0x1f1>
movsbl -0x19(%rbp),%ecx
mov    $0x65,%eax
cmp    %ecx,%eax
jne    1213 <main+0x103>
mov    -0x18(%rbp),%esi
lea    0xe2b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12fc <main+0x1ec>
movsbl -0x19(%rbp),%ecx
mov    $0x69,%eax
cmp    %ecx,%eax
jne    123a <main+0x12a>
mov    -0x18(%rbp),%esi
lea    0xe0d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12f7 <main+0x1e7>
movsbl -0x19(%rbp),%ecx
mov    $0x6f,%eax
cmp    %ecx,%eax
jne    1261 <main+0x151>
mov    -0x18(%rbp),%esi
lea    0xdef(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12f2 <main+0x1e2>
movsbl -0x19(%rbp),%ecx
mov    $0x75,%eax
cmp    %ecx,%eax
jne    1288 <main+0x178>
mov    -0x18(%rbp),%esi
lea    0xdd1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12ed <main+0x1dd>
movsbl -0x19(%rbp),%ecx
mov    $0x79,%eax
cmp    %ecx,%eax
jne    12d3 <main+0x1c3>
cmpl   $0x2,-0x18(%rbp)
jle    12b9 <main+0x1a9>
mov    -0x18(%rbp),%esi
lea    0xda9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12ce <main+0x1be>
mov    -0x18(%rbp),%esi
movsbl -0x19(%rbp),%edx
lea    0xd98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12e8 <main+0x1d8>
mov    -0x18(%rbp),%esi
movsbl -0x19(%rbp),%edx
lea    0xd7e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12ed <main+0x1dd>
jmp    12f2 <main+0x1e2>
jmp    12f7 <main+0x1e7>
jmp    12fc <main+0x1ec>
jmp    1301 <main+0x1f1>
jmp    1306 <main+0x1f6>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0x19(%rbp)
jmp    1181 <main+0x71>
jmp    132f <main+0x21f>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1151 <main+0x41>
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
jge    1146 <main+0x26>
lea    0xf4a(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%eax
jmp    1238 <main+0x118>
mov    %rsi,%rbx
mov    %edi,%eax
mov    %rax,(%rsp)
mov    $0x1,%r13d
lea    0xf0e(%rip),%r14
lea    0xe9d(%rip),%rbp
lea    0xeee(%rip),%r15
jmp    117e <main+0x5e>
nopl   0x0(%rax)
add    $0x1,%r13
cmp    (%rsp),%r13
je     1236 <main+0x116>
mov    (%rbx,%r13,8),%rax
mov    (%rax),%al
test   %al,%al
je     1170 <main+0x50>
xor    %r12d,%r12d
jmp    11bc <main+0x9c>
lea    0xea0(%rip),%rdi
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r12d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rbx,%r13,8),%rax
movzbl 0x1(%rax,%r12,1),%eax
add    $0x1,%r12
test   %al,%al
je     1170 <main+0x50>
lea    -0x41(%rax),%ecx
lea    0x20(%rax),%edx
cmp    $0x1a,%cl
movzbl %al,%ecx
movzbl %dl,%eax
cmovae %ecx,%eax
lea    -0x61(%rax),%ecx
ror    %cl
cmp    $0xc,%cl
ja     11ee <main+0xce>
movzbl %cl,%ecx
movslq 0x0(%rbp,%rcx,4),%rcx
add    %rbp,%rcx
jmp    *%rcx
lea    0xe51(%rip),%rdi
jmp    11a0 <main+0x80>
movsbl %al,%edx
mov    %r14,%rdi
mov    %r12d,%esi
jmp    122a <main+0x10a>
lea    0xe46(%rip),%rdi
jmp    11a0 <main+0x80>
lea    0xe46(%rip),%rdi
jmp    11a0 <main+0x80>
mov    %r15,%rdi
jmp    11a0 <main+0x80>
cmp    $0x3,%r12
jb     121f <main+0xff>
lea    0xe44(%rip),%rdi
jmp    11a0 <main+0x80>
mov    %r14,%rdi
mov    %r12d,%esi
mov    $0x79,%edx
xor    %eax,%eax
call   1040 <printf@plt>
jmp    11aa <main+0x8a>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [41 x i8] c"ERROR: You need at least 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"
@.str.7 = [23 x i8] c"%d: %c is not a vowel\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
%9 = load i32, i32* %4
%10 = icmp slt i32 %9, 2
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %3
br label %133
13: ; preds = %2
store i32 1, i32* %6
br label %14
14: ; preds = %129, %13
%15 = load i32, i32* %6
%16 = load i32, i32* %4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %132
18: ; preds = %14
store i32 0, i32* %7
store i32 0, i32* %7
%19 = load i8**, i8*** %5
%20 = load i32, i32* %6
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8*, i8** %19, i64 %21
%23 = load i8*, i8** %22
%24 = load i32, i32* %7
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, i8* %23, i64 %25
%27 = load i8, i8* %26
store i8 %27, i8* %8
br label %28
28: ; preds = %116, %18
%29 = load i8**, i8*** %5
%30 = load i32, i32* %6
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8*, i8** %29, i64 %31
%33 = load i8*, i8** %32
%34 = load i32, i32* %7
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, i8* %33, i64 %35
%37 = load i8, i8* %36
%38 = sext i8 %37 to i32
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %128
40: ; preds = %28
%41 = load i8, i8* %8
%42 = sext i8 %41 to i32
%43 = icmp sge i32 %42, 65
br i1 %43, label %44, label %54
44: ; preds = %40
%45 = load i8, i8* %8
%46 = sext i8 %45 to i32
%47 = icmp sle i32 %46, 90
br i1 %47, label %48, label %54
48: ; preds = %44
%49 = load i8, i8* %8
%50 = sext i8 %49 to i32
%51 = sub nsw i32 %50, 65
%52 = add nsw i32 97, %51
%53 = trunc i32 %52 to i8
store i8 %53, i8* %8
br label %54
54: ; preds = %48, %44, %40
%55 = load i8, i8* %8
%56 = sext i8 %55 to i32
%57 = icmp eq i32 97, %56
br i1 %57, label %58, label %61
58: ; preds = %54
%59 = load i32, i32* %7
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 %59)
br label %115
61: ; preds = %54
%62 = load i8, i8* %8
%63 = sext i8 %62 to i32
%64 = icmp eq i32 101, %63
br i1 %64, label %65, label %68
65: ; preds = %61
%66 = load i32, i32* %7
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 %66)
br label %114
68: ; preds = %61
%69 = load i8, i8* %8
%70 = sext i8 %69 to i32
%71 = icmp eq i32 105, %70
br i1 %71, label %72, label %75
72: ; preds = %68
%73 = load i32, i32* %7
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 %73)
br label %113
75: ; preds = %68
%76 = load i8, i8* %8
%77 = sext i8 %76 to i32
%78 = icmp eq i32 111, %77
br i1 %78, label %79, label %82
79: ; preds = %75
%80 = load i32, i32* %7
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 %80)
br label %112
82: ; preds = %75
%83 = load i8, i8* %8
%84 = sext i8 %83 to i32
%85 = icmp eq i32 117, %84
br i1 %85, label %86, label %89
86: ; preds = %82
%87 = load i32, i32* %7
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 %87)
br label %111
89: ; preds = %82
%90 = load i8, i8* %8
%91 = sext i8 %90 to i32
%92 = icmp eq i32 121, %91
br i1 %92, label %93, label %105
93: ; preds = %89
%94 = load i32, i32* %7
%95 = icmp sgt i32 %94, 2
br i1 %95, label %96, label %99
96: ; preds = %93
%97 = load i32, i32* %7
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i32 %97)
br label %104
99: ; preds = %93
%100 = load i32, i32* %7
%101 = load i8, i8* %8
%102 = sext i8 %101 to i32
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i32 %100, i32 %102)
br label %104
104: ; preds = %99, %96
br label %110
105: ; preds = %89
%106 = load i32, i32* %7
%107 = load i8, i8* %8
%108 = sext i8 %107 to i32
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i32 %106, i32 %108)
br label %110
110: ; preds = %105, %104
br label %111
111: ; preds = %110, %86
br label %112
112: ; preds = %111, %79
br label %113
113: ; preds = %112, %72
br label %114
114: ; preds = %113, %65
br label %115
115: ; preds = %114, %58
br label %116
116: ; preds = %115
%117 = load i32, i32* %7
%118 = add nsw i32 %117, 1
store i32 %118, i32* %7
%119 = load i8**, i8*** %5
%120 = load i32, i32* %6
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds i8*, i8** %119, i64 %121
%123 = load i8*, i8** %122
%124 = load i32, i32* %7
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds i8, i8* %123, i64 %125
%127 = load i8, i8* %126
store i8 %127, i8* %8
br label %28
128: ; preds = %28
br label %129
129: ; preds = %128
%130 = load i32, i32* %6
%131 = add nsw i32 %130, 1
store i32 %131, i32* %6
br label %14
132: ; preds = %14
store i32 0, i32* %3
br label %133
133: ; preds = %132, %11
%134 = load i32, i32* %3
ret i32 %134
}

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.7 = [23 x i8] c"%d: %c is not a vowel\0A\00"
@str = [40 x i8] c"ERROR: You need at least one argument. \00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = zext i32 %0 to i64
br label %8
6: ; preds = %2
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str, i64 0, i64 0))
br label %58
8: ; preds = %4, %55
%9 = phi i64 [ 1, %4 ], [ %56, %55 ]
%10 = getelementptr inbounds i8*, i8** %1, i64 %9
%11 = load i8*, i8** %10
%12 = load i8, i8* %11
%13 = icmp eq i8 %12, 0
br i1 %13, label %55, label %14
14: ; preds = %8, %49
%15 = phi i64 [ %50, %49 ], [ 0, %8 ]
%16 = phi i8 [ %53, %49 ], [ %12, %8 ]
%17 = add i8 %16, -65
%18 = icmp ult i8 %17, 26
%19 = add i8 %16, 32
%20 = select i1 %18, i8 %19, i8 %16
%21 = add i8 %20, -97
%22 = tail call i8 @llvm.fshl.i8(i8 %21, i8 %21, i8 7)
switch i8 %22, label %45 [
i8 0, label %23
i8 2, label %26
i8 4, label %29
i8 7, label %32
i8 10, label %35
i8 12, label %38
]
23: ; preds = %14
%24 = trunc i64 %15 to i32
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 %24)
br label %49
26: ; preds = %14
%27 = trunc i64 %15 to i32
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 %27)
br label %49
29: ; preds = %14
%30 = trunc i64 %15 to i32
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 %30)
br label %49
32: ; preds = %14
%33 = trunc i64 %15 to i32
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 %33)
br label %49
35: ; preds = %14
%36 = trunc i64 %15 to i32
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 %36)
br label %49
38: ; preds = %14
%39 = icmp ugt i64 %15, 2
%40 = trunc i64 %15 to i32
br i1 %39, label %41, label %43
41: ; preds = %38
%42 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i32 %40)
br label %49
43: ; preds = %38
%44 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i32 %40, i32 121)
br label %49
45: ; preds = %14
%46 = sext i8 %20 to i32
%47 = trunc i64 %15 to i32
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i32 %47, i32 %46)
br label %49
49: ; preds = %23, %29, %35, %41, %43, %45, %32, %26
%50 = add nuw i64 %15, 1
%51 = load i8*, i8** %10
%52 = getelementptr inbounds i8, i8* %51, i64 %50
%53 = load i8, i8* %52
%54 = icmp eq i8 %53, 0
br i1 %54, label %55, label %14
55: ; preds = %49, %8
%56 = add nuw nsw i64 %9, 1
%57 = icmp eq i64 %56, %5
br i1 %57, label %58, label %8
58: ; preds = %55, %6
%59 = phi i32 [ 1, %6 ], [ 0, %55 ]
ret i32 %59
}