#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 strlen(char *);
int main(int argc, char *argv[]) {
  if (argc != 2) {
    printf("ERROR: You suck. I need one argument. \n");
    return 1;
  }
  int i = 0;
  int length = strlen(argv[1]);
  char letter;
  char all_letters[length];
  printf("Length of ARGV: %d\n", length);
  for (i = 0; argv[1][i] != '\0'; i++) {
    letter = argv[1][i];
    switch (letter) {
    case 'a':
      all_letters[i] = letter - 32;
      printf("%d: a - is a vowel.\n", i);
      break;
    case 'A':
      printf("%d: A - is a vowel.\n", i);
      all_letters[i] = letter + 32;
      break;
    case 'i':
      all_letters[i] = letter - 32;
      printf("%d: i - is a vowel.\n", i);
      break;
    case 'I':
      printf("%d: I - is a vowel.\n", i);
      all_letters[i] = letter + 32;
      break;
    case 'o':
      all_letters[i] = letter - 32;
      printf("%d: o - is a vowel.\n", i);
      break;
    case 'O':
      printf("%d: O - is a vowel.\n", i);
      all_letters[i] = letter + 32;
      break;
    case 'u':
      all_letters[i] = letter - 32;
      printf("%d: u - is a vowel.\n", i);
      break;
    case 'U':
      printf("%d: U - is a vowel.\n", i);
      all_letters[i] = letter + 32;
      break;
    default:
      printf("%d: is not a vowel.\n", i);
      if (letter < 91) {
        all_letters[i] = letter + 32;
      } else if (letter > 96) {
        all_letters[i] = letter - 32;
      }
    }
  }
  printf("ALL LETTERS:");
  for (i = 0; i < length; i++) {
    printf("%c", all_letters[i]);
  }
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     115a <main+0x3a>
lea    0xf8d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    142e <main+0x30e>
movl   $0x0,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x28(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x38(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x30(%rbp)
mov    -0x18(%rbp),%esi
lea    0xf5b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
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     13c9 <main+0x2a9>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0x19(%rbp)
movsbl -0x19(%rbp),%eax
add    $0xffffffbf,%eax
mov    %eax,%ecx
mov    %rcx,-0x40(%rbp)
sub    $0x34,%eax
ja     1354 <main+0x234>
mov    -0x40(%rbp),%rax
lea    0xe05(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x38(%rbp),%rax
movsbl -0x19(%rbp),%ecx
sub    $0x20,%ecx
mov    %cl,%dl
movslq -0x14(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x14(%rbp),%esi
lea    0xeee(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13b6 <main+0x296>
mov    -0x14(%rbp),%esi
lea    0xeed(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x38(%rbp),%rax
movsbl -0x19(%rbp),%ecx
add    $0x20,%ecx
mov    %cl,%dl
movslq -0x14(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
jmp    13b6 <main+0x296>
mov    -0x38(%rbp),%rax
movsbl -0x19(%rbp),%ecx
sub    $0x20,%ecx
mov    %cl,%dl
movslq -0x14(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x14(%rbp),%esi
lea    0xec4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13b6 <main+0x296>
mov    -0x14(%rbp),%esi
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x38(%rbp),%rax
movsbl -0x19(%rbp),%ecx
add    $0x20,%ecx
mov    %cl,%dl
movslq -0x14(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
jmp    13b6 <main+0x296>
mov    -0x38(%rbp),%rax
movsbl -0x19(%rbp),%ecx
sub    $0x20,%ecx
mov    %cl,%dl
movslq -0x14(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x14(%rbp),%esi
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13b6 <main+0x296>
mov    -0x14(%rbp),%esi
lea    0xe99(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x38(%rbp),%rax
movsbl -0x19(%rbp),%ecx
add    $0x20,%ecx
mov    %cl,%dl
movslq -0x14(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
jmp    13b6 <main+0x296>
mov    -0x38(%rbp),%rax
movsbl -0x19(%rbp),%ecx
sub    $0x20,%ecx
mov    %cl,%dl
movslq -0x14(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x14(%rbp),%esi
lea    0xe70(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13b6 <main+0x296>
mov    -0x14(%rbp),%esi
lea    0xe6f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x38(%rbp),%rax
movsbl -0x19(%rbp),%ecx
add    $0x20,%ecx
mov    %cl,%dl
movslq -0x14(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
jmp    13b6 <main+0x296>
mov    -0x14(%rbp),%esi
lea    0xe5a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsbl -0x19(%rbp),%eax
cmp    $0x5b,%eax
jge    138b <main+0x26b>
mov    -0x38(%rbp),%rax
movsbl -0x19(%rbp),%ecx
add    $0x20,%ecx
mov    %cl,%dl
movslq -0x14(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
jmp    13b1 <main+0x291>
movsbl -0x19(%rbp),%eax
cmp    $0x60,%eax
jle    13ac <main+0x28c>
mov    -0x38(%rbp),%rax
movsbl -0x19(%rbp),%ecx
sub    $0x20,%ecx
mov    %cl,%dl
movslq -0x14(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
jmp    13b1 <main+0x291>
jmp    13b6 <main+0x296>
jmp    13bb <main+0x29b>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11af <main+0x8f>
lea    0xdfd(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1412 <main+0x2f2>
mov    -0x38(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xddd(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    13de <main+0x2be>
lea    0xce1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
cmp    $0x2,%edi
jne    128b <main+0x14b>
mov    %rsi,%rbx
mov    0x8(%rsi),%rdi
call   1050 <strlen@plt>
mov    %rsp,-0x38(%rbp)
mov    %eax,%ecx
mov    %rsp,%r15
mov    %rcx,-0x30(%rbp)
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
sub    %rcx,%r15
mov    %r15,%rsp
lea    0xf4c(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x8(%rbx),%rax
mov    (%rax),%r14b
test   %r14b,%r14b
je     129f <main+0x15f>
lea    0xe58(%rip),%r13
xor    %r12d,%r12d
jmp    11dd <main+0x9d>
add    $0xe0,%r14b
mov    %r14b,(%r15,%r12,1)
lea    0xf2c(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x8(%rbx),%rax
movzbl 0x1(%rax,%r12,1),%r14d
add    $0x1,%r12
test   %r14b,%r14b
je     129f <main+0x15f>
movsbl %r14b,%eax
add    $0xffffffbf,%eax
cmp    $0x34,%eax
ja     11fc <main+0xbc>
movslq 0x0(%r13,%rax,4),%rax
add    %r13,%rax
jmp    *%rax
lea    0xf03(%rip),%rdi
jmp    1238 <main+0xf8>
lea    0xf8d(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x5a,%r14b
jle    1242 <main+0x102>
cmp    $0x61,%r14b
jb     11c6 <main+0x86>
add    $0xe0,%r14b
jmp    1246 <main+0x106>
lea    0xf01(%rip),%rdi
jmp    1238 <main+0xf8>
lea    0xf22(%rip),%rdi
jmp    1238 <main+0xf8>
lea    0xf43(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x20,%r14b
mov    %r14b,(%r15,%r12,1)
jmp    11c6 <main+0x86>
add    $0xe0,%r14b
mov    %r14b,(%r15,%r12,1)
lea    0xeb4(%rip),%rdi
jmp    11bc <main+0x7c>
add    $0xe0,%r14b
mov    %r14b,(%r15,%r12,1)
lea    0xeca(%rip),%rdi
jmp    11bc <main+0x7c>
add    $0xe0,%r14b
mov    %r14b,(%r15,%r12,1)
lea    0xee0(%rip),%rdi
jmp    11bc <main+0x7c>
lea    0xf20(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%r14d
jmp    12e1 <main+0x1a1>
lea    0xeff(%rip),%rdi
xor    %r14d,%r14d
xor    %eax,%eax
call   1060 <printf@plt>
mov    -0x30(%rbp),%r12
test   %r12d,%r12d
jle    12d3 <main+0x193>
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
movsbl (%r15,%rbx,1),%edi
call   1030 <putchar@plt>
add    $0x1,%rbx
cmp    %rbx,%r12
jne    12c0 <main+0x180>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    -0x38(%rbp),%rsp
mov    %r14d,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [40 x i8] c"ERROR: You suck. I need one argument. \0A\00"
@.str.1 = [20 x i8] c"Length of ARGV: %d\0A\00"
@.str.2 = [21 x i8] c"%d: a - is a vowel.\0A\00"
@.str.3 = [21 x i8] c"%d: A - is a vowel.\0A\00"
@.str.4 = [21 x i8] c"%d: i - is a vowel.\0A\00"
@.str.5 = [21 x i8] c"%d: I - is a vowel.\0A\00"
@.str.6 = [21 x i8] c"%d: o - is a vowel.\0A\00"
@.str.7 = [21 x i8] c"%d: O - is a vowel.\0A\00"
@.str.8 = [21 x i8] c"%d: u - is a vowel.\0A\00"
@.str.9 = [21 x i8] c"%d: U - is a vowel.\0A\00"
@.str.10 = [21 x i8] c"%d: is not a vowel.\0A\00"
@.str.11 = [13 x i8] c"ALL LETTERS:\00"
@.str.12 = [3 x i8] c"%c\00"
@.str.13 = [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
%9 = alloca i8*
%10 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%11 = load i32, i32* %4
%12 = icmp ne i32 %11, 2
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %3
br label %177
15: ; preds = %2
store i32 0, i32* %6
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 1
%18 = load i8*, i8** %17
%19 = call i32 @strlen(i8* %18)
store i32 %19, i32* %7
%20 = load i32, i32* %7
%21 = zext i32 %20 to i64
%22 = call i8* @llvm.stacksave()
store i8* %22, i8** %9
%23 = alloca i8, i64 %21
store i64 %21, i64* %10
%24 = load i32, i32* %7
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %24)
store i32 0, i32* %6
br label %26
26: ; preds = %155, %15
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 1
%29 = load i8*, i8** %28
%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 = sext i8 %33 to i32
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %158
36: ; preds = %26
%37 = load i8**, i8*** %5
%38 = getelementptr inbounds i8*, i8** %37, i64 1
%39 = load i8*, i8** %38
%40 = load i32, i32* %6
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, i8* %39, i64 %41
%43 = load i8, i8* %42
store i8 %43, i8* %8
%44 = load i8, i8* %8
%45 = sext i8 %44 to i32
switch i32 %45, label %126 [
i32 97, label %46
i32 65, label %56
i32 105, label %66
i32 73, label %76
i32 111, label %86
i32 79, label %96
i32 117, label %106
i32 85, label %116
]
46: ; preds = %36
%47 = load i8, i8* %8
%48 = sext i8 %47 to i32
%49 = sub nsw i32 %48, 32
%50 = trunc i32 %49 to i8
%51 = load i32, i32* %6
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, i8* %23, i64 %52
store i8 %50, i8* %53
%54 = load i32, i32* %6
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 %54)
br label %154
56: ; preds = %36
%57 = load i32, i32* %6
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i32 %57)
%59 = load i8, i8* %8
%60 = sext i8 %59 to i32
%61 = add nsw i32 %60, 32
%62 = trunc i32 %61 to i8
%63 = load i32, i32* %6
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i8, i8* %23, i64 %64
store i8 %62, i8* %65
br label %154
66: ; preds = %36
%67 = load i8, i8* %8
%68 = sext i8 %67 to i32
%69 = sub nsw i32 %68, 32
%70 = trunc i32 %69 to i8
%71 = load i32, i32* %6
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8, i8* %23, i64 %72
store i8 %70, i8* %73
%74 = load i32, i32* %6
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i32 %74)
br label %154
76: ; preds = %36
%77 = load i32, i32* %6
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i32 %77)
%79 = load i8, i8* %8
%80 = sext i8 %79 to i32
%81 = add nsw i32 %80, 32
%82 = trunc i32 %81 to i8
%83 = load i32, i32* %6
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i8, i8* %23, i64 %84
store i8 %82, i8* %85
br label %154
86: ; preds = %36
%87 = load i8, i8* %8
%88 = sext i8 %87 to i32
%89 = sub nsw i32 %88, 32
%90 = trunc i32 %89 to i8
%91 = load i32, i32* %6
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i8, i8* %23, i64 %92
store i8 %90, i8* %93
%94 = load i32, i32* %6
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i32 %94)
br label %154
96: ; preds = %36
%97 = load i32, i32* %6
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i32 %97)
%99 = load i8, i8* %8
%100 = sext i8 %99 to i32
%101 = add nsw i32 %100, 32
%102 = trunc i32 %101 to i8
%103 = load i32, i32* %6
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds i8, i8* %23, i64 %104
store i8 %102, i8* %105
br label %154
106: ; preds = %36
%107 = load i8, i8* %8
%108 = sext i8 %107 to i32
%109 = sub nsw i32 %108, 32
%110 = trunc i32 %109 to i8
%111 = load i32, i32* %6
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds i8, i8* %23, i64 %112
store i8 %110, i8* %113
%114 = load i32, i32* %6
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i32 %114)
br label %154
116: ; preds = %36
%117 = load i32, i32* %6
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), i32 %117)
%119 = load i8, i8* %8
%120 = sext i8 %119 to i32
%121 = add nsw i32 %120, 32
%122 = trunc i32 %121 to i8
%123 = load i32, i32* %6
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds i8, i8* %23, i64 %124
store i8 %122, i8* %125
br label %154
126: ; preds = %36
%127 = load i32, i32* %6
%128 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0), i32 %127)
%129 = load i8, i8* %8
%130 = sext i8 %129 to i32
%131 = icmp slt i32 %130, 91
br i1 %131, label %132, label %140
132: ; preds = %126
%133 = load i8, i8* %8
%134 = sext i8 %133 to i32
%135 = add nsw i32 %134, 32
%136 = trunc i32 %135 to i8
%137 = load i32, i32* %6
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds i8, i8* %23, i64 %138
store i8 %136, i8* %139
br label %153
140: ; preds = %126
%141 = load i8, i8* %8
%142 = sext i8 %141 to i32
%143 = icmp sgt i32 %142, 96
br i1 %143, label %144, label %152
144: ; preds = %140
%145 = load i8, i8* %8
%146 = sext i8 %145 to i32
%147 = sub nsw i32 %146, 32
%148 = trunc i32 %147 to i8
%149 = load i32, i32* %6
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds i8, i8* %23, i64 %150
store i8 %148, i8* %151
br label %152
152: ; preds = %144, %140
br label %153
153: ; preds = %152, %132
br label %154
154: ; preds = %153, %116, %106, %96, %86, %76, %66, %56, %46
br label %155
155: ; preds = %154
%156 = load i32, i32* %6
%157 = add nsw i32 %156, 1
store i32 %157, i32* %6
br label %26
158: ; preds = %26
%159 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0))
store i32 0, i32* %6
br label %160
160: ; preds = %171, %158
%161 = load i32, i32* %6
%162 = load i32, i32* %7
%163 = icmp slt i32 %161, %162
br i1 %163, label %164, label %174
164: ; preds = %160
%165 = load i32, i32* %6
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds i8, i8* %23, i64 %166
%168 = load i8, i8* %167
%169 = sext i8 %168 to i32
%170 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i32 %169)
br label %171
171: ; preds = %164
%172 = load i32, i32* %6
%173 = add nsw i32 %172, 1
store i32 %173, i32* %6
br label %160
174: ; preds = %160
%175 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
store i32 0, i32* %3
%176 = load i8*, i8** %9
br label %177
177: ; preds = %174, %13
%178 = load i32, i32* %3
ret i32 %178
}

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