#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*/ EXIT_FAILURE;
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, int);
int isPalindrome(char *);
int isPassSafe(char *);
int luhnTest(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
int stringCompare(char *, char *);
int stringLength(char *);
int vowelNumber(char *);
int main(int argc, char *argv[]) {
  if (argc < 2 || argc > 3) {
    fprintf(stderr,
            "%s Expected either 1 or 2 arguments but instead received %d \n",
            argv[0], argc - 1);
    exit(EXIT_FAILURE);
  } else {
    printf("\n");
    for (int i = 1; i < argc; i++) {
      int strLength = stringLength(argv[i]);
      printf("[Argv%d] String Length = %d \n", i, strLength);
      int numVowels = vowelNumber(argv[i]);
      printf("[Argv%d] Number of Vowels = %d \n", i, numVowels);
      bool isSafe = isPassSafe(argv[i]);
      printf("[Argv%d] Is Safe = %s \n", i, isSafe ? "TRUE" : "FALSE");
      printf("\n");
    }
    printf("\n");
    printf("STRING COMPARISON \n");
    if (argc == 2) {
      printf("Requires 2 arguments but was given only %d argument \n",
             argc - 1);
    } else {
      printf("Return of 0 signifies Equal Strings \n");
      printf("Return of 1 signifies Argv[1] > Argv[2] \n");
      printf("Return of -1 signifies Argv[1] < Argv[2] \n");
      printf("\n");
      int compareValue = stringCompare(argv[1], argv[2]);
      printf("Compare Value is = %i \n", compareValue);
    }
    printf("\n\n");
    for (int i = 1; i < argc; i++) {
      bool isPal = isPalindrome(argv[i]);
      printf("[Argv%d] Is Palindrome = %s \n", i, isPal ? "TRUE" : "FALSE");
    }
    printf("\n\n");
    printf("CR CARD VALIDATION \n");
    if (argc != 2) {
      printf("Requires 1 arguments but was given only %d argument \n",
             argc - 1);
    } else {
      bool isLuhn = luhnTest(argv[1]);
      printf("[Argv[1] Is Luhn = %s \n", isLuhn ? "TRUE" : "FALSE");
    }
    printf("\n");
    exit(EXIT_SUCCESS);
  }
  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)
cmpl   $0x2,-0x8(%rbp)
jl     11ba <main+0x2a>
cmpl   $0x3,-0x8(%rbp)
jle    11ea <main+0x5a>
mov    0x2e1f(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
lea    0xe29(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2df5(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>
lea    0xf8d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12b4 <main+0x124>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1090 <stringLength@plt>
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xe12(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   10b0 <vowelNumber@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x14(%rbp),%esi
mov    -0x1c(%rbp),%edx
lea    0xe08(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1040 <isPassSafe@plt>
mov    %eax,-0x20(%rbp)
mov    -0x14(%rbp),%esi
mov    -0x20(%rbp),%ecx
lea    0xe1e(%rip),%rdx
lea    0xe12(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdx
lea    0xdec(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11ff <main+0x6f>
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdd7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x2,-0x8(%rbp)
jne    12f3 <main+0x163>
mov    -0x8(%rbp),%esi
sub    $0x1,%esi
lea    0xdcd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1354 <main+0x1c4>
lea    0xdf0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe08(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe24(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe5a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
call   1070 <stringCompare@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%esi
lea    0xe18(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe22(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    13c0 <main+0x230>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1080 <isPalindrome@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%esi
mov    -0x2c(%rbp),%ecx
lea    0xd04(%rip),%rdx
lea    0xcf8(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdx
lea    0xdd5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1369 <main+0x1d9>
lea    0xdb6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdc9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x2,-0x8(%rbp)
je     13ff <main+0x26f>
mov    -0x8(%rbp),%esi
sub    $0x1,%esi
lea    0xdc0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1435 <main+0x2a5>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1060 <luhnTest@plt>
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%ecx
lea    0xc81(%rip),%rsi
lea    0xc75(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rsi
lea    0xdbb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd42(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2b86(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r15
mov    %edi,%ecx
lea    -0x4(%rcx),%eax
cmp    $0xfffffffd,%eax
ja     11f1 <main+0x41>
mov    0x2e11(%rip),%rax
mov    (%rax),%edi
mov    (%r15),%rdx
add    $0xffffffff,%ecx
lea    0xe22(%rip),%rsi
call   1070 <fprintf@plt>
mov    0x2dee(%rip),%rax
mov    (%rax),%edi
call   10c0 <exit@plt>
mov    %ecx,%r12d
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x1,%ebx
lea    0xe90(%rip),%r13
lea    0xe84(%rip),%r14
lea    0xe65(%rip),%rbp
nopl   0x0(%rax,%rax,1)
mov    (%r15,%rbx,8),%rdi
call   10b0 <stringLength@plt>
lea    0xe0e(%rip),%rdi
mov    %ebx,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%r15,%rbx,8),%rdi
call   10d0 <vowelNumber@plt>
lea    0xe11(%rip),%rdi
mov    %ebx,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%r15,%rbx,8),%rdi
call   1060 <isPassSafe@plt>
test   %eax,%eax
mov    %r14,%rdx
cmove  %r13,%rdx
mov    %rbp,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%rbx
cmp    %rbx,%r12
jne    1220 <main+0x70>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xec2(%rip),%rdi
call   1040 <puts@plt>
cmp    $0x2,%r12d
jne    12b1 <main+0x101>
lea    0xdf6(%rip),%rdi
mov    $0x1,%esi
jmp    12f5 <main+0x145>
lea    0xeb5(%rip),%rdi
call   1040 <puts@plt>
lea    0xece(%rip),%rdi
call   1040 <puts@plt>
lea    0xeeb(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x8(%r15),%rdi
mov    0x10(%r15),%rsi
call   1090 <stringCompare@plt>
lea    0xde3(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13,%rbp
lea    0xd54(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%ebx
lea    0xdd7(%rip),%r13
nopw   0x0(%rax,%rax,1)
mov    (%r15,%rbx,8),%rdi
call   10a0 <isPalindrome@plt>
test   %eax,%eax
mov    %r14,%rdx
cmove  %rbp,%rdx
mov    %r13,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%r12
jne    1320 <main+0x170>
lea    0xd0c(%rip),%rdi
call   1040 <puts@plt>
lea    0xe8b(%rip),%rdi
call   1040 <puts@plt>
cmp    $0x2,%r12d
jne    1387 <main+0x1d7>
mov    0x8(%r15),%rdi
call   1080 <luhnTest@plt>
test   %eax,%eax
cmove  %rbp,%r14
lea    0xdc7(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    139a <main+0x1ea>
lea    0xd7e(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x2c25(%rip),%rax
mov    (%rax),%edi
call   10c0 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [62 x i8] c"%s Expected either 1 or 2 arguments but instead received %d \0A\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [30 x i8] c"[Argv%d] String Length = %d \0A\00"
@.str.3 = [33 x i8] c"[Argv%d] Number of Vowels = %d \0A\00"
@.str.4 = [24 x i8] c"[Argv%d] Is Safe = %s \0A\00"
@.str.5 = [5 x i8] c"TRUE\00"
@.str.6 = [6 x i8] c"FALSE\00"
@.str.7 = [20 x i8] c"STRING COMPARISON \0A\00"
@.str.8 = [54 x i8] c"Requires 2 arguments but was given only %d argument \0A\00"
@.str.9 = [38 x i8] c"Return of 0 signifies Equal Strings \0A\00"
@.str.10 = [42 x i8] c"Return of 1 signifies Argv[1] > Argv[2] \0A\00"
@.str.11 = [43 x i8] c"Return of -1 signifies Argv[1] < Argv[2] \0A\00"
@.str.12 = [24 x i8] c"Compare Value is = %i \0A\00"
@.str.13 = [3 x i8] c"\0A\0A\00"
@.str.14 = [30 x i8] c"[Argv%d] Is Palindrome = %s \0A\00"
@.str.15 = [21 x i8] c"CR CARD VALIDATION \0A\00"
@.str.16 = [54 x i8] c"Requires 1 arguments but was given only %d argument \0A\00"
@.str.17 = [24 x i8] c"[Argv[1] Is Luhn = %s \0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = load i32, i32* %4
%15 = icmp slt i32 %14, 2
br i1 %15, label %19, label %16
16: ; preds = %2
%17 = load i32, i32* %4
%18 = icmp sgt i32 %17, 3
br i1 %18, label %19, label %29
19: ; preds = %16, %2
%20 = load i32, i32* @stderr
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 0
%23 = load i8*, i8** %22
%24 = load i32, i32* %4
%25 = sub nsw i32 %24, 1
%26 = call i32 @fprintf(i32 %20, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0), i8* %23, i32 %25)
%27 = load i32, i32* @EXIT_FAILURE
%28 = call i32 @exit(i32 %27)
unreachable
29: ; preds = %16
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %6
br label %31
31: ; preds = %67, %29
%32 = load i32, i32* %6
%33 = load i32, i32* %4
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %70
35: ; preds = %31
%36 = load i8**, i8*** %5
%37 = load i32, i32* %6
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8*, i8** %36, i64 %38
%40 = load i8*, i8** %39
%41 = call i32 @stringLength(i8* %40)
store i32 %41, i32* %7
%42 = load i32, i32* %6
%43 = load i32, i32* %7
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 %42, i32 %43)
%45 = load i8**, i8*** %5
%46 = load i32, i32* %6
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8*, i8** %45, i64 %47
%49 = load i8*, i8** %48
%50 = call i32 @vowelNumber(i8* %49)
store i32 %50, i32* %8
%51 = load i32, i32* %6
%52 = load i32, i32* %8
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i32 %51, i32 %52)
%54 = load i8**, i8*** %5
%55 = load i32, i32* %6
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i8*, i8** %54, i64 %56
%58 = load i8*, i8** %57
%59 = call i32 @isPassSafe(i8* %58)
store i32 %59, i32* %9
%60 = load i32, i32* %6
%61 = load i32, i32* %9
%62 = icmp ne i32 %61, 0
%63 = zext i1 %62 to i64
%64 = select i1 %62, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0)
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), i32 %60, i8* %64)
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %67
67: ; preds = %35
%68 = load i32, i32* %6
%69 = add nsw i32 %68, 1
store i32 %69, i32* %6
br label %31
70: ; preds = %31
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%73 = load i32, i32* %4
%74 = icmp eq i32 %73, 2
br i1 %74, label %75, label %79
75: ; preds = %70
%76 = load i32, i32* %4
%77 = sub nsw i32 %76, 1
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.8, i64 0, i64 0), i32 %77)
br label %93
79: ; preds = %70
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0))
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0))
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.11, i64 0, i64 0))
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%84 = load i8**, i8*** %5
%85 = getelementptr inbounds i8*, i8** %84, i64 1
%86 = load i8*, i8** %85
%87 = load i8**, i8*** %5
%88 = getelementptr inbounds i8*, i8** %87, i64 2
%89 = load i8*, i8** %88
%90 = call i32 @stringCompare(i8* %86, i8* %89)
store i32 %90, i32* %10
%91 = load i32, i32* %10
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i32 %91)
br label %93
93: ; preds = %79, %75
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
store i32 1, i32* %11
br label %95
95: ; preds = %112, %93
%96 = load i32, i32* %11
%97 = load i32, i32* %4
%98 = icmp slt i32 %96, %97
br i1 %98, label %99, label %115
99: ; preds = %95
%100 = load i8**, i8*** %5
%101 = load i32, i32* %11
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i8*, i8** %100, i64 %102
%104 = load i8*, i8** %103
%105 = call i32 @isPalindrome(i8* %104)
store i32 %105, i32* %12
%106 = load i32, i32* %11
%107 = load i32, i32* %12
%108 = icmp ne i32 %107, 0
%109 = zext i1 %108 to i64
%110 = select i1 %108, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0)
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0), i32 %106, i8* %110)
br label %112
112: ; preds = %99
%113 = load i32, i32* %11
%114 = add nsw i32 %113, 1
store i32 %114, i32* %11
br label %95
115: ; preds = %95
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0))
%118 = load i32, i32* %4
%119 = icmp ne i32 %118, 2
br i1 %119, label %120, label %124
120: ; preds = %115
%121 = load i32, i32* %4
%122 = sub nsw i32 %121, 1
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.16, i64 0, i64 0), i32 %122)
br label %134
124: ; preds = %115
%125 = load i8**, i8*** %5
%126 = getelementptr inbounds i8*, i8** %125, i64 1
%127 = load i8*, i8** %126
%128 = call i32 @luhnTest(i8* %127)
store i32 %128, i32* %13
%129 = load i32, i32* %13
%130 = icmp ne i32 %129, 0
%131 = zext i1 %130 to i64
%132 = select i1 %130, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0)
%133 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.17, i64 0, i64 0), i8* %132)
br label %134
134: ; preds = %124, %120
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%136 = load i32, i32* @EXIT_SUCCESS
%137 = call i32 @exit(i32 %136)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [62 x i8] c"%s Expected either 1 or 2 arguments but instead received %d \0A\00"
@EXIT_FAILURE = global i32 0
@.str.2 = [30 x i8] c"[Argv%d] String Length = %d \0A\00"
@.str.3 = [33 x i8] c"[Argv%d] Number of Vowels = %d \0A\00"
@.str.4 = [24 x i8] c"[Argv%d] Is Safe = %s \0A\00"
@.str.5 = [5 x i8] c"TRUE\00"
@.str.6 = [6 x i8] c"FALSE\00"
@.str.8 = [54 x i8] c"Requires 2 arguments but was given only %d argument \0A\00"
@.str.12 = [24 x i8] c"Compare Value is = %i \0A\00"
@.str.14 = [30 x i8] c"[Argv%d] Is Palindrome = %s \0A\00"
@.str.16 = [54 x i8] c"Requires 1 arguments but was given only %d argument \0A\00"
@.str.17 = [24 x i8] c"[Argv[1] Is Luhn = %s \0A\00"
@EXIT_SUCCESS = global i32 0
@str = [19 x i8] c"STRING COMPARISON \00"
@str.18 = [37 x i8] c"Return of 0 signifies Equal Strings \00"
@str.19 = [41 x i8] c"Return of 1 signifies Argv[1] > Argv[2] \00"
@str.20 = [42 x i8] c"Return of -1 signifies Argv[1] < Argv[2] \00"
@str.22 = [2 x i8] c"\0A\00"
@str.23 = [20 x i8] c"CR CARD VALIDATION \00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = add i32 %0, -4
%4 = icmp ult i32 %3, -2
br i1 %4, label %5, label %12
5: ; preds = %2
%6 = load i32, i32* @stderr
%7 = load i8*, i8** %1
%8 = add nsw i32 %0, -1
%9 = tail call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0), i8* %7, i32 %8)
%10 = load i32, i32* @EXIT_FAILURE
%11 = tail call i32 @exit(i32 %10)
unreachable
12: ; preds = %2
%13 = tail call i32 @putchar(i32 10)
%14 = zext i32 %0 to i64
br label %19
15: ; preds = %19
%16 = tail call i32 @putchar(i32 10)
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
%18 = icmp eq i32 %0, 2
br i1 %18, label %37, label %39
19: ; preds = %12, %19
%20 = phi i64 [ 1, %12 ], [ %35, %19 ]
%21 = getelementptr inbounds i8*, i8** %1, i64 %20
%22 = load i8*, i8** %21
%23 = tail call i32 @stringLength(i8* %22)
%24 = trunc i64 %20 to i32
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 %24, i32 %23)
%26 = load i8*, i8** %21
%27 = tail call i32 @vowelNumber(i8* %26)
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i32 %24, i32 %27)
%29 = load i8*, i8** %21
%30 = tail call i32 @isPassSafe(i8* %29)
%31 = icmp eq i32 %30, 0
%32 = select i1 %31, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0)
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), i32 %24, i8* %32)
%34 = tail call i32 @putchar(i32 10)
%35 = add nuw nsw i64 %20, 1
%36 = icmp eq i64 %35, %14
br i1 %36, label %15, label %19
37: ; preds = %15
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.8, i64 0, i64 0), i32 1)
br label %50
39: ; preds = %15
%40 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.18, i64 0, i64 0))
%41 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.19, i64 0, i64 0))
%42 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.20, i64 0, i64 0))
%43 = tail call i32 @putchar(i32 10)
%44 = getelementptr inbounds i8*, i8** %1, i64 1
%45 = load i8*, i8** %44
%46 = getelementptr inbounds i8*, i8** %1, i64 2
%47 = load i8*, i8** %46
%48 = tail call i32 @stringCompare(i8* %45, i8* %47)
%49 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i32 %48)
br label %50
50: ; preds = %37, %39
%51 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.22, i64 0, i64 0))
%52 = zext i32 %0 to i64
br label %56
53: ; preds = %56
%54 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.22, i64 0, i64 0))
%55 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.23, i64 0, i64 0))
br i1 %18, label %69, label %67
56: ; preds = %50, %56
%57 = phi i64 [ 1, %50 ], [ %65, %56 ]
%58 = getelementptr inbounds i8*, i8** %1, i64 %57
%59 = load i8*, i8** %58
%60 = tail call i32 @isPalindrome(i8* %59)
%61 = icmp eq i32 %60, 0
%62 = select i1 %61, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0)
%63 = trunc i64 %57 to i32
%64 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0), i32 %63, i8* %62)
%65 = add nuw nsw i64 %57, 1
%66 = icmp eq i64 %65, %52
br i1 %66, label %53, label %56
67: ; preds = %53
%68 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.16, i64 0, i64 0), i32 2)
br label %76
69: ; preds = %53
%70 = getelementptr inbounds i8*, i8** %1, i64 1
%71 = load i8*, i8** %70
%72 = tail call i32 @luhnTest(i8* %71)
%73 = icmp eq i32 %72, 0
%74 = select i1 %73, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0)
%75 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.17, i64 0, i64 0), i8* %74)
br label %76
76: ; preds = %69, %67
%77 = tail call i32 @putchar(i32 10)
%78 = load i32, i32* @EXIT_SUCCESS
%79 = tail call i32 @exit(i32 %78)
unreachable
}